Skip to content

feat(conventions+gate): api-client path/call-shape guide + two-cause PathsWithMethod steer#152

Merged
agjs merged 1 commit into
mainfrom
fix/api-client-usage-guide
Jul 20, 2026
Merged

feat(conventions+gate): api-client path/call-shape guide + two-cause PathsWithMethod steer#152
agjs merged 1 commit into
mainfrom
fix/api-client-usage-guide

Conversation

@agjs

@agjs agjs commented Jul 20, 2026

Copy link
Copy Markdown
Owner

Stacked on i18n PR. build12 parked: every colocated test sprayed on generated api-client USAGE (path /api/supplier vs /api/v1/…, 3-arg PATCH, Readable); model reran generate:api 5× (wrong lever). data-fetching guide gets verified path format + call shapes; gate-stages PathsWithMethod steer REWRITTEN to name all 3 causes call-site-first (supersedes #149's route-only steer). Panel PASS (4/4).

…PathsWithMethod steer

build12 (i18n active) built the full slice + cleared the dead-key wall, then PARKED
because every colocated test sprayed on generated api-client USAGE errors — panel 4/4:
wrong path (`/api/supplier` vs real `/api/v1/supplier[/{id}]`), PATCH called with 3
args, Readable<SuccessResponse> mistaken for the item. Model reran generate:api 5×
(wrong lever — these are consumer bugs, the route was already in the spec).

- data-fetching guide: verified path format (/api/v1/<resource>[/{id}], literal {id})
  and call shapes. Options object is OPTIONAL (plain GET is 1 arg); params+body go in
  ONE options object — never a third positional arg (fixes the panel's 'ALWAYS two
  args' contradiction). Readable<SuccessResponse> = route response-schema fix.
- gate-stages PathsWithMethod steer: REWRITTEN to name BOTH causes call-site-FIRST
  (wrong /api/v1 string vs unregistered route) — the old steer said only 'route not in
  spec + generate:api', directly contradicting the guide and mis-steering build12's
  wrong-string case. Now consistent front-load + per-error steer.
- tests: method<->shape pairings (not loose fragments); gate-stages test asserts the
  two-cause steer + wrong-lever note.
Base automatically changed from fix/i18n-locale-keys-guide to main July 20, 2026 21:02
@agjs
agjs merged commit 7cd1dd4 into main Jul 20, 2026
1 check passed
@agjs
agjs deleted the fix/api-client-usage-guide 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