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": "71250e759ca9e723",
"agents/gsd-eval-auditor.md": "d9c7034244882d86",
"agents/gsd-eval-planner.md": "60bddb70a937f796",
"agents/gsd-executor.md": "e185b21a5df49e0d",
"agents/gsd-executor.md": "9726bd59fcc09611",
"agents/gsd-framework-selector.md": "1c0a10355e787675",
"agents/gsd-integration-checker.md": "a9de5928e5a5c649",
"agents/gsd-intel-updater.md": "f9ef2797738b7f09",
@@ -306,7 +306,7 @@
"gsd-core/workflows/explore.md": "96ba55f53899a261",
"gsd-core/workflows/extract-learnings.md": "b8851263c2d28702",
"gsd-core/workflows/fast.md": "54fe93778b45a7eb",
"gsd-core/workflows/forensics.md": "706b3983dd315789",
"gsd-core/workflows/forensics.md": "6ce026e4bc6c875e",
"gsd-core/workflows/graduation.md": "7d03b353a0323cce",
"gsd-core/workflows/health.md": "1fad392ce1aec410",
"gsd-core/workflows/help.md": "5d040504b9ab35e3",
@@ -323,7 +323,7 @@
"gsd-core/workflows/list-workspaces.md": "74aa5ac3cb9b00bf",
"gsd-core/workflows/manager.md": "e77230eb5a8a1c78",
"gsd-core/workflows/map-codebase.md": "40624186d001658f",
"gsd-core/workflows/milestone-summary.md": "0acae8647e544018",
"gsd-core/workflows/milestone-summary.md": "19cced11010ad8eb",
"gsd-core/workflows/mvp-phase.md": "efeb5d11f5b10e73",
"gsd-core/workflows/new-milestone.md": "08d97dcb66df7776",
"gsd-core/workflows/new-project.md": "d3c0ce0e163d5048",