diff --git a/docs/work/2026-05-13-binder-wrap-helper/01-wire-use-case-helper/_story.md b/docs/work/2026-05-13-binder-wrap-helper/01-wire-use-case-helper/_story.md index 229c96d..076fecd 100644 --- a/docs/work/2026-05-13-binder-wrap-helper/01-wire-use-case-helper/_story.md +++ b/docs/work/2026-05-13-binder-wrap-helper/01-wire-use-case-helper/_story.md @@ -3,7 +3,7 @@ id: 01-wire-use-case-helper epic: 2026-05-13-binder-wrap-helper title: Introduce wireUseCase helper in core-shared type: technical-story -status: in-progress +status: done feature: core-shared depends-on: [] blocks: [02-migrate-feature-binders, 03-update-generator-templates] @@ -40,4 +40,4 @@ Every feature binder currently inlines the same `withSpan + withCapture` wrappin ## Tasks -- [ ] Add `wire-use-case.ts` + `wire-use-case.test.ts` to `packages/core-shared/src/conformance/` and export from the conformance index — implement the helper (options object: `container`, `symbol`, `factory`, `deps`, `feature`, `layer`, `name`, `tracer`, `logger`, optional `auditLog`) with full unit tests covering both audit and no-audit paths, brand presence assertions via `isInstrumented` / `isCaptured` / `isAudited`, container binding, and idempotent re-bind; all gates pass on this single commit. +- [x] Add `wire-use-case.ts` + `wire-use-case.test.ts` to `packages/core-shared/src/conformance/` and export from the conformance index — implement the helper (options object: `container`, `symbol`, `factory`, `deps`, `feature`, `layer`, `name`, `tracer`, `logger`, optional `auditLog`) with full unit tests covering both audit and no-audit paths, brand presence assertions via `isInstrumented` / `isCaptured` / `isAudited`, container binding, and idempotent re-bind; all gates pass on this single commit. diff --git a/docs/work/_state.json b/docs/work/_state.json index 4b6cb69..d1269b4 100644 --- a/docs/work/_state.json +++ b/docs/work/_state.json @@ -1,5 +1,5 @@ { - "updated_at": "2026-05-13T17:17:12.493Z", + "updated_at": "2026-05-13T17:43:46.451Z", "epics": { "2026-05-13-binder-wrap-helper": { "status": "in-progress", @@ -7,10 +7,10 @@ "prd": "docs/work/prds/2026-05-13-binder-wrap-helper.prd.md", "stories": { "01-wire-use-case-helper": { - "status": "in-progress", + "status": "done", "title": "Introduce wireUseCase helper in core-shared", "ac_total": 1, - "ac_completed": 0, + "ac_completed": 1, "depends_on": [], "blocks": [ "02-migrate-feature-binders", @@ -56,29 +56,17 @@ } }, "ready": [ - { - "epic": "2026-05-13-binder-wrap-helper", - "story": "01-wire-use-case-helper", - "title": "Introduce wireUseCase helper in core-shared" - } - ], - "blocked": [ { "epic": "2026-05-13-binder-wrap-helper", "story": "02-migrate-feature-binders", - "title": "Migrate all five feature binders to wireUseCase", - "waiting_on": [ - "2026-05-13-binder-wrap-helper/01-wire-use-case-helper" - ] + "title": "Migrate all five feature binders to wireUseCase" }, { "epic": "2026-05-13-binder-wrap-helper", "story": "03-update-generator-templates", - "title": "Update feature generator templates to emit wireUseCase call shape", - "waiting_on": [ - "2026-05-13-binder-wrap-helper/01-wire-use-case-helper" - ] + "title": "Update feature generator templates to emit wireUseCase call shape" } ], + "blocked": [], "needs_prd_ship": [] }