* test(#2711): derive the omit-rule guarded set from the corpus instead of a hand list The GUARDED array was a Goodhart metric: it reported green across 15 non-compliant workflows for no better reason than that nobody had added them to it. The guard now derives its set — every workflow emitting a model="{…}" dispatch site must state the omit-on-inherit/empty rule — and asserts the derivation is non-empty so a broken scan fails rather than passes. Rule detection stays a PROPERTY check, not a template match: plan-phase.md and execute-phase.md state it in different words and both are correct. RED expected on 15 workflows: audit-milestone, code-review, code-review-fix, debug, discuss-phase-assumptions, docs-update, map-codebase, new-milestone, new-project, quick, secure-phase, ui-phase, ui-review, validate-phase, verify-work. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPq9ovaovP2UvSVLjD4Lso * fix(#2711): propagate the #2517 omit-on-inherit rule to all 15 unguarded workflows 15 of the 19 model=-dispatching workflows carried no omit-on-inherit/empty guidance — 43 unguarded dispatch sites. Each would emit model="" whenever the bound *_model resolved empty, which is the DEFAULT state on non-Claude runtimes: the installer writes resolve_model_ids:"omit" into ~/.gsd/defaults.json for every one of them (references/model-profiles.md:101), and resolveModelInternal returns "" for that case (src/model-resolver.cts:383-386) and "inherit" for opus-tier agents and the inherit profile (:395). Both 404 on runtimes without native tier aliases — the failure #2517 documented and fixed in one file. Each file now carries a `<!-- #2517 model-omit-on-inherit -->` blockquote naming its own bound placeholders and linking the canonical statement in references/model-profile-resolution.md, mirroring the `<!-- #2508 runtime-aware-dispatch -->` block already present in all 15. The rule text lives in the reference; the workflows carry a pointer plus the one-line instruction, so the next revision edits one file rather than fifteen. plan-phase.md and execute-phase.md are deliberately untouched — they already state the rule in their own wording, and the guard checks the property rather than a template string. No dispatch site is edited and no placeholder renamed: the #2684 binding guard reports the same 19 files / 60 placeholders / 0 findings before and after, which is the independence proof that this change is additive prose only. There is no Hyrum's-Law routing change to disclose. Placement is span-aware. An initial pass anchored to the #2508 marker, but in six files that marker sits INSIDE the Agent(prompt="…") string, so the new paragraph's literal model= landed in a dispatch call span and tripped the #2284 fail-closed Hermes projection guard (bin/install.js:3704), refusing the install. Blocks are now anchored before the opening Agent( of the span owning the first dispatch, and verified to fall inside no span. gen:golden exits 0 across all 19 runtimes. Fixes #2711 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPq9ovaovP2UvSVLjD4Lso * fix(#2711): cite the issue number in the changeset body and tidy block placement Review findings from the two orthogonal passes: - The changeset body ended (#0). Repo convention across every prior fragment (e.g. #2617/#2693, #2608, #2605) is that the trailing (#NNN) is the ISSUE number, known at authoring time; only the frontmatter pr: field carries the 0 placeholder pending backfill. (#0) would have rendered a dead link in the published release notes. - new-milestone.md glued the inserted block directly under the preceding paragraph with no blank line, inconsistent with the other 14 insertions. - The derived-guard non-vacuity floor was >=17 against an actual derived count of 19, tolerating a silent two-file regression. Tightened to >=19. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPq9ovaovP2UvSVLjD4Lso * fix(#2711): reword the omit block so it survives Hermes projection, and exempt quick.md by size The first block wording regressed two suites on the full matrix (4 failures on both linux-node22 and linux-node24). gen:golden passing was not sufficient evidence — it exercises the installer's own fail-closed guard, which is narrower than the dedicated tests. 1. tests/fix-2284-hermes-agent-delegate-task-projection.test.cjs asserts that the INSTALLED code-review-fix.md contains no `model=` anywhere outside a string literal — masked whole-file, not merely inside call spans. The block's backticked `model=` survived the mask. The assertion is right: on Hermes the projection strips the parameter because delegate_task has no per-call model at all, so instructing the orchestrator to "omit the model= parameter" is advice about a parameter that does not exist there. The block now says "the `model` parameter" and carries no bare `model=` token. 2. tests/prompt-injection-scan.security.test.cjs flagged quick.md at 50,164 normalized chars against a 50,000 prompt-stuffing threshold. quick.md sits just under the line on next, so any insertion trips it — the situation review.md is already documented for in SIZE_ONLY_WORKFLOWS ("sat at 49,971 chars — 29 below the threshold — so it was going to trip on whatever was added to it next"). quick.md joins it with the same justification. This is a size-finding exemption only: the file is still fully injection scanned, and every other security check still runs on it. Because the canonical block can no longer carry a literal `model=`, the guard's detector now accepts the `<!-- #2517 model-omit-on-inherit -->` marker as the canonical signal, falling back to the inline-prose property for the four files that predate it (plan-phase, execute-phase, scan, ship — all four match the legacy branch). That is strictly stronger than word-proximity matching, and it keeps the guard a property check rather than a template match. Verified: derived guard 19/19 with 0 missing; the #2684 binding guard unchanged at 19 files / 60 placeholders / 0 findings; no inserted block contains a bare model= token; the masked-projection assertion passes for code-review-fix.md; gen:golden exits 0 across all 19 runtimes; lint:ci exits 0. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPq9ovaovP2UvSVLjD4Lso * chore(#2711): backfill changeset PR number Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPq9ovaovP2UvSVLjD4Lso --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -289,18 +289,18 @@
|
||||
"gsd-core/workflows/ai-integration-phase.md": "95afc8120daf3828",
|
||||
"gsd-core/workflows/analyze-dependencies.md": "77aff48f97fa6f1c",
|
||||
"gsd-core/workflows/audit-fix.md": "0085e65548706996",
|
||||
"gsd-core/workflows/audit-milestone.md": "86c4dcd30648322f",
|
||||
"gsd-core/workflows/audit-milestone.md": "777f67e317f441fe",
|
||||
"gsd-core/workflows/audit-uat.md": "c800099fab1e1c1b",
|
||||
"gsd-core/workflows/autonomous.md": "0757a088361be372",
|
||||
"gsd-core/workflows/check-todos.md": "527cfab62417c719",
|
||||
"gsd-core/workflows/cleanup.md": "9d510a45aec81ba1",
|
||||
"gsd-core/workflows/code-review-fix.md": "2c16f549e4e46553",
|
||||
"gsd-core/workflows/code-review.md": "5262146d89e12bfa",
|
||||
"gsd-core/workflows/code-review-fix.md": "da8fdf6389d07969",
|
||||
"gsd-core/workflows/code-review.md": "da6bb2bda95c2afa",
|
||||
"gsd-core/workflows/complete-milestone.md": "9482dadd0f8902d2",
|
||||
"gsd-core/workflows/debug.md": "c1ea3f073fca8777",
|
||||
"gsd-core/workflows/debug.md": "8bd8b4692c0fcf52",
|
||||
"gsd-core/workflows/diagnose-issues.md": "1e7c760973276b57",
|
||||
"gsd-core/workflows/discovery-phase.md": "0ef23f38adfb0e6e",
|
||||
"gsd-core/workflows/discuss-phase-assumptions.md": "c59dc0a63fb83b46",
|
||||
"gsd-core/workflows/discuss-phase-assumptions.md": "d87a8f50f1c60392",
|
||||
"gsd-core/workflows/discuss-phase-power.md": "5c0d1ca6abda0383",
|
||||
"gsd-core/workflows/discuss-phase.md": "3a62a8d4c374c69f",
|
||||
"gsd-core/workflows/discuss-phase/modes/advisor.md": "83ca3ea4fac785af",
|
||||
@@ -316,7 +316,7 @@
|
||||
"gsd-core/workflows/discuss-phase/templates/context.md": "da6bf5281bf7d2bf",
|
||||
"gsd-core/workflows/discuss-phase/templates/discussion-log.md": "04e4feee14772275",
|
||||
"gsd-core/workflows/do.md": "532afe82bbf9f775",
|
||||
"gsd-core/workflows/docs-update.md": "f6210dc8ff7776d5",
|
||||
"gsd-core/workflows/docs-update.md": "55cbaed5020bdd71",
|
||||
"gsd-core/workflows/edit-phase.md": "1876c855fb0a0a39",
|
||||
"gsd-core/workflows/eval-review.md": "4f932c3ea3eb807b",
|
||||
"gsd-core/workflows/execute-phase.md": "78169e590b406fa8",
|
||||
@@ -346,11 +346,11 @@
|
||||
"gsd-core/workflows/list-seeds.md": "9b05425fa7d24827",
|
||||
"gsd-core/workflows/list-workspaces.md": "dc6d30036c6dc426",
|
||||
"gsd-core/workflows/manager.md": "eda80c0d3d32dbf6",
|
||||
"gsd-core/workflows/map-codebase.md": "59c2c74fc9de513c",
|
||||
"gsd-core/workflows/map-codebase.md": "9794578db9c07fca",
|
||||
"gsd-core/workflows/milestone-summary.md": "321ea8a6a206f38f",
|
||||
"gsd-core/workflows/mvp-phase.md": "94360741a1d8d7ce",
|
||||
"gsd-core/workflows/new-milestone.md": "372aa3a92916398e",
|
||||
"gsd-core/workflows/new-project.md": "b04ffce6846ab6b7",
|
||||
"gsd-core/workflows/new-milestone.md": "d3f76f0d65d9a8ba",
|
||||
"gsd-core/workflows/new-project.md": "8bc9400aade6b943",
|
||||
"gsd-core/workflows/new-workspace.md": "53f8abf8baca9345",
|
||||
"gsd-core/workflows/next.md": "8975ad00f87f90dc",
|
||||
"gsd-core/workflows/node-repair.md": "07a1628e5a1ff96b",
|
||||
@@ -367,14 +367,14 @@
|
||||
"gsd-core/workflows/pr-branch.md": "929b7cb0c99c7b9e",
|
||||
"gsd-core/workflows/profile-user.md": "9275d5895237b801",
|
||||
"gsd-core/workflows/progress.md": "c3d7149133d571a9",
|
||||
"gsd-core/workflows/quick.md": "d6a8da51867039f8",
|
||||
"gsd-core/workflows/quick.md": "38527d9107054ce6",
|
||||
"gsd-core/workflows/reapply-patches.md": "a0e9b53f90abceb2",
|
||||
"gsd-core/workflows/remove-phase.md": "dea4661e8f89596f",
|
||||
"gsd-core/workflows/remove-workspace.md": "21a8581add5f31ae",
|
||||
"gsd-core/workflows/resume-project.md": "ad9f06a10bab8cc0",
|
||||
"gsd-core/workflows/review.md": "c775d08988c05be6",
|
||||
"gsd-core/workflows/scan.md": "bc69d7c058805c47",
|
||||
"gsd-core/workflows/secure-phase.md": "ef09f40dfd4d2424",
|
||||
"gsd-core/workflows/secure-phase.md": "2731f2e7d0d0a70b",
|
||||
"gsd-core/workflows/session-report.md": "2e5b1205324ddefa",
|
||||
"gsd-core/workflows/settings-advanced.md": "252b0d3edc315339",
|
||||
"gsd-core/workflows/settings-integrations.md": "1c3997dc6953e7eb",
|
||||
@@ -390,14 +390,14 @@
|
||||
"gsd-core/workflows/sync-skills.md": "7e2c138cdbef4282",
|
||||
"gsd-core/workflows/thread.md": "82652edb1883af59",
|
||||
"gsd-core/workflows/transition.md": "372b6fc7c0c68a89",
|
||||
"gsd-core/workflows/ui-phase.md": "e8903466bd312c4c",
|
||||
"gsd-core/workflows/ui-review.md": "efc1281fce8ff5b0",
|
||||
"gsd-core/workflows/ui-phase.md": "5d8538230f65e031",
|
||||
"gsd-core/workflows/ui-review.md": "567784aa43497a66",
|
||||
"gsd-core/workflows/ultraplan-phase.md": "f4bad8de3fdb49fa",
|
||||
"gsd-core/workflows/undo.md": "bbb91a18ee896975",
|
||||
"gsd-core/workflows/update.md": "f032775aef6795bf",
|
||||
"gsd-core/workflows/validate-phase.md": "2dc5eca30bf7a6c6",
|
||||
"gsd-core/workflows/validate-phase.md": "865dac4dd2887658",
|
||||
"gsd-core/workflows/verify-phase.md": "73025aa5d8bf7bd5",
|
||||
"gsd-core/workflows/verify-work.md": "11c352fbb54b1f81",
|
||||
"gsd-core/workflows/verify-work.md": "7bdbe268979a994f",
|
||||
"hooks/gsd-check-update-worker.js": "385fb7c67810baf6",
|
||||
"hooks/gsd-check-update.js": "4549451414ffa7d7",
|
||||
"hooks/gsd-config-reload.js": "96546e0e8bb47904",
|
||||
|
||||
Reference in New Issue
Block a user