Skip to content

feat(conventions): near-green idioms build16 oscillated on (hook-annotation + empty-fn)#157

Merged
agjs merged 1 commit into
mainfrom
fix/test-empty-fn-vifn
Jul 20, 2026
Merged

feat(conventions): near-green idioms build16 oscillated on (hook-annotation + empty-fn)#157
agjs merged 1 commit into
mainfrom
fix/test-empty-fn-vifn

Conversation

@agjs

@agjs agjs commented Jul 20, 2026

Copy link
Copy Markdown
Owner

Stacked on #156. build16 = FIRST fully-green autonomous build (done in 167 turns) but spent ~40 turns oscillating on two self-corrected habits; front-load them: (1) the Readable<…> mismatch also hits the useQuery/useMutation HOOK generic (UseMutationResult vs ), not just the fn return — leave BOTH un-annotated, infer; (2) no-op test callbacks must be vi.fn(), never () => {} (no-empty-function — build16's final blocker: 9 in one row-hook test). Guide + gate-stages steer both updated (consistent), no-empty-function mapped into TOPIC_RULES.testing for reactive push. Panel PASS.

…on before greening

build16 reached the FIRST fully-green autonomous supplier build (done in 167 turns) — but
spent ~40 turns oscillating 1↔5 near-green on two repeated over-annotation/placeholder
habits it eventually self-corrected via the steers. Front-load them so future builds don't:
- data-fetching: the Readable<…> mismatch appears on the HOOK generic too
  (UseMutationResult<Readable<…>> vs UseMutationResult<IEntity>), not just the fn return —
  leave BOTH the fn and the useQuery/useMutation hook UN-annotated and let TS infer.
- testing: a no-op/placeholder callback must be vi.fn(), never an empty () => {}
  (no-empty-function — build16's final blocker was 9 of these in one row-hook test).

Tests updated. Full suite green (2833).
Base automatically changed from fix/api-client-readable-unwrap to main July 20, 2026 21:02
@agjs
agjs merged commit 0f53ac7 into main Jul 20, 2026
1 check passed
@agjs
agjs deleted the fix/test-empty-fn-vifn branch July 20, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant