fix(#1863): use named flags for state.* calls in executor + workflows (#1873)

* fix(#1863): use named flags for state.* calls in executor + workflows

The named-only state-command router (parseNamedArgs) silently drops
positional args, so state.cjs threw its required-arg error and
metrics/decisions/blockers/session continuity were never recorded.

Convert record-metric / add-decision / add-blocker / record-session in
agents/gsd-executor.md to the named-flag form (mirroring execute-plan.md),
and fix the two remaining positional record-session calls in
gsd-core/workflows/milestone-summary.md and forensics.md. Recapture the
golden-install-parity fixtures and size baselines for the edited files.

Also fix a pre-existing detached-rebuild handle leak in
tests/graphify-auto-update.slow.test.cjs: three dispatch tests returned
after observing only the synchronous "running" status without awaiting the
detached rebuild's terminal state. That leak was latent until the new
#1863 regression block's added runtime shifted --test-force-exit timing
and surfaced it as a non-zero chunk exit. The three tests now await
terminal status via the file's existing waitForBuildStatus helper.

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

* chore(#1863): add changeset

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

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Tom Boucher <trekkie@nomorestars.com>
This commit is contained in:
Behruz Nassre Esfahani
2026-07-02 10:01:10 -07:00
committed by GitHub
parent 8751379cfc
commit 7bef6a6496
24 changed files with 154 additions and 68 deletions

View File

@@ -16,7 +16,7 @@
"agents/gsd-domain-researcher.md": "1c1a800108a2b225",
"agents/gsd-eval-auditor.md": "3d3e9336c01e90fe",
"agents/gsd-eval-planner.md": "4ebdd7fe9cbb0cfe",
"agents/gsd-executor.md": "0ccab15e5ef8f0be",
"agents/gsd-executor.md": "a5041170a536bebd",
"agents/gsd-framework-selector.md": "7726fccc86bfeb50",
"agents/gsd-integration-checker.md": "2d8339790bbb2dc3",
"agents/gsd-intel-updater.md": "ec317a56d4abc4d3",
@@ -306,7 +306,7 @@
"gsd-core/workflows/explore.md": "11523b829cc67c29",
"gsd-core/workflows/extract-learnings.md": "a2e4836abdeb1fdb",
"gsd-core/workflows/fast.md": "94136fb570d20a9d",
"gsd-core/workflows/forensics.md": "76bea6e254652c2c",
"gsd-core/workflows/forensics.md": "b4bde768fd27a982",
"gsd-core/workflows/graduation.md": "00d1b7fe7ed8578b",
"gsd-core/workflows/health.md": "e3cb8ff4e01e9e53",
"gsd-core/workflows/help.md": "5d040504b9ab35e3",
@@ -323,7 +323,7 @@
"gsd-core/workflows/list-workspaces.md": "6e5c402000090d7b",
"gsd-core/workflows/manager.md": "a31f7e255dd7d01d",
"gsd-core/workflows/map-codebase.md": "582bddef590de9c6",
"gsd-core/workflows/milestone-summary.md": "f956783f7d063963",
"gsd-core/workflows/milestone-summary.md": "8b6ceec4aa454b8a",
"gsd-core/workflows/mvp-phase.md": "bfa668107be972ed",
"gsd-core/workflows/new-milestone.md": "23d2135a555e95df",
"gsd-core/workflows/new-project.md": "2fa5ddc0fe749b28",