diff --git a/ship/sections/budget-handoff.md b/ship/sections/budget-handoff.md index 732613333..1b036c551 100644 --- a/ship/sections/budget-handoff.md +++ b/ship/sections/budget-handoff.md @@ -17,11 +17,12 @@ Field-by-field reference: docs/ship-budget.md. Exit 0 continue or delegate, 3 st - Elsewhere: `--meter estimate` (printed `meter=estimate`), only when the owner accepts it. **Every boundary.** `gstack-ship-budget check --run --step --next --reading `. -Before each dispatch batch, reserve the batch as one sum, then pass the printed id once: +Before each dispatch batch, reserve the batch as one sum, then pass the printed id once +(`READING` is the current counter reading; `RESERVATION_ID` is the id the check prints): ```bash -~/.claude/skills/gstack/bin/gstack-ship-budget check --run --step 9 --next dispatch:specialist,red-team --reading -~/.claude/skills/gstack/bin/gstack-review-log --start review --reservation +~/.claude/skills/gstack/bin/gstack-ship-budget check --run --step 9 --next dispatch:specialist,red-team --reading "$READING" +~/.claude/skills/gstack/bin/gstack-review-log --start review --reservation "$RESERVATION_ID" ``` `--finish` settles it. A dispatch with no `review-log --start` settles with diff --git a/ship/sections/budget-handoff.md.tmpl b/ship/sections/budget-handoff.md.tmpl index 6c45aa361..fa41ceb04 100644 --- a/ship/sections/budget-handoff.md.tmpl +++ b/ship/sections/budget-handoff.md.tmpl @@ -15,11 +15,12 @@ Field-by-field reference: docs/ship-budget.md. Exit 0 continue or delegate, 3 st - Elsewhere: `--meter estimate` (printed `meter=estimate`), only when the owner accepts it. **Every boundary.** `gstack-ship-budget check --run --step --next --reading `. -Before each dispatch batch, reserve the batch as one sum, then pass the printed id once: +Before each dispatch batch, reserve the batch as one sum, then pass the printed id once +(`READING` is the current counter reading; `RESERVATION_ID` is the id the check prints): ```bash -~/.claude/skills/gstack/bin/gstack-ship-budget check --run --step 9 --next dispatch:specialist,red-team --reading -~/.claude/skills/gstack/bin/gstack-review-log --start review --reservation +~/.claude/skills/gstack/bin/gstack-ship-budget check --run --step 9 --next dispatch:specialist,red-team --reading "$READING" +~/.claude/skills/gstack/bin/gstack-review-log --start review --reservation "$RESERVATION_ID" ``` `--finish` settles it. A dispatch with no `review-log --start` settles with diff --git a/test/helpers/free-fixtures-data.ts b/test/helpers/free-fixtures-data.ts index 3b62728c3..2029f8668 100644 --- a/test/helpers/free-fixtures-data.ts +++ b/test/helpers/free-fixtures-data.ts @@ -32,6 +32,7 @@ export const FREE_FIXTURES: Readonly> = { 'test/fixtures/autoplan-with-result-au.json': ['test/autoplan-phase-observer.test.ts'], 'test/fixtures/browse-judge/**': ['test/workflow-judge-cache.test.ts'], 'test/fixtures/ceo-completion-handoff-m-call.json': ['test/plan-count-completion.test.ts'], + 'test/fixtures/claude-usage-2.1.292.json': ['test/claude-usage.test.ts'], 'test/fixtures/context-restore-transcript.jsonl': ['test/context-restore-transcripts.test.ts'], 'test/fixtures/ceo-completion-handoff-o-call.json': ['test/plan-count-completion.test.ts'], 'test/fixtures/ceo-completion-handoff-q-call.json': ['test/plan-count-completion.test.ts'], diff --git a/test/size-ledger/ship/capy-token-cap-with-real.json b/test/size-ledger/ship/capy-token-cap-with-real.json new file mode 100644 index 000000000..0ba857060 --- /dev/null +++ b/test/size-ledger/ship/capy-token-cap-with-real.json @@ -0,0 +1,4 @@ +{ + "bytes": 96, + "why": "fence placeholders become shell variables (GSTA-152 PR A pregate fix)" +}