fix(#4023): preserve decimal phase ids in init progress ordering and smart-entry output (#4110)

* test(#4023): reproduce decimal phase-id coercions

* fix(#4023): preserve decimal phase ids in progress signals

* test(#4023): align phase token contract expectations

* chore(#4023): point the changeset at PR #4110

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Tom Boucher <trekkie@nomorestars.com>
This commit is contained in:
BeeHiggs
2026-09-01 11:58:20 -06:00
committed by GitHub
parent 80d2236ca5
commit 41466e8e88
6 changed files with 95 additions and 17 deletions

View File

@@ -6157,7 +6157,7 @@ describe('#3187 chain-owner identity — every consumer agrees with stateFieldVa
stateDocument.stateFieldValue(fm, body, null, 'Phase').value;
const output = JSON.parse(runGsdTools('smart-entry --json', tmpDir).output);
assert.strictEqual(output.signals.current_phase, parseInt(ownerPhaseRaw, 10));
assert.strictEqual(output.signals.current_phase, ownerPhaseRaw);
});
test('C5: workstream projection matches the owner', () => {
@@ -6258,7 +6258,7 @@ describe('#3187 chain-owner identity — every consumer agrees with stateFieldVa
// C4: smart-entry
const smartEntry = JSON.parse(runGsdTools('smart-entry --json', tmpDir).output);
assert.strictEqual(smartEntry.signals.current_phase, Number(ownerPhase));
assert.strictEqual(smartEntry.signals.current_phase, ownerPhase);
// C6: complete-phase idempotency guard (no frontmatter in this fixture,
// so this row does not exercise the frontmatter tier — see C6's own test