fix(pm): correct stale four/two-copy decision-frame comments to two-copy truth - #15105

Merged
os-steve merged 1 commit into
mainfrom
claude/issue-14870-frame-copies-comments
Sep 3, 2026
Merged

fix(pm): correct stale four/two-copy decision-frame comments to two-copy truth#15105
os-steve merged 1 commit into
mainfrom
claude/issue-14870-frame-copies-comments

Conversation

@os-steve

Copy link
Copy Markdown
Collaborator

Fixes#14870

What

check:skill-frame-sync's COPIES table dropped from four entries to two (internal-pm.claude/skills/pm-dispatch/SKILL.md, published-pmskills/objectstack-pm-dispatch/SKILL.md) once the dev-side frame copies were retired — the dispatch PM now pastes its own copy into the dev prompt's {decision_frame} slot at dispatch time instead of either side embedding one. Six comments across three gate scripts still described the old four/two-copy state as present-tense fact. This PR rewrites exactly those six sites to the current truth, plus one unrelated one-word usage-line fix folded in by the seat. Comment/string text only — no behaviour, no verdict line, no ceiling value changed anywhere.

The six sites (before → after)

scripts/pm/dispatch-gates.mjs

  1. MANDATORY_TIER_GLOBS why-string for .claude/agents/os-dev.md — kept the mandate (clause ① protocol semantics still holds), fixed only the false reason:
    • before: …every dispatched dev runs under it, and it carries an enforced copy of the decision frame
    • after: …every dispatched dev runs under it, and receives the decision frame the PM pastes into its prompt at dispatch time rather than carrying a copy of its own
  2. MANDATORY_TIER_GLOBS why-string for skills/objectstack-pm-dispatch/SKILL.md:
    • before: …the published PM skill carries two enforced copies of the decision frame (check:skill-frame-sync COPIES)…
    • after: …the published PM skill carries one enforced copy of the decision frame (check:skill-frame-sync COPIES)…
  3. Self-test assertion label only (the boolean it asserts is untouched):
    • before: t('the published PM skill (two enforced frame copies) is fable-mandatory', …)
    • after: t('the published PM skill (one enforced frame copy) is fable-mandatory', …)

Docblock line at the old :8468 ("every file carrying an enforced copy of the decision frame (the COPIES table…)") was checked against the ruling's "if it counts wrongly" condition and left untouched: it never asserts a specific number, and it already lists the dev-agent definition as a separate item rather than as a frame-copy carrier — so it doesn't count wrongly post-reduction.

scripts/pm/check-skill-line-ratchet.mjs — the os-dev.md ceiling ledger comment justifying its 466→469 raise:

scripts/check-skills-token-ratchet.mjs — three ledger comments for skills/objectstack-pm-dispatch/SKILL.md's history:

  • …and this file carries TWO enforced frame copies (check:skill-frame-sync COPIES)……and this file carries one enforced frame copy (check:skill-frame-sync COPIES)…
  • …this file carries TWO\n enforced frame copies (check:skill-frame-sync COPIES)……this file carries one\n enforced frame copy (check:skill-frame-sync COPIES)…
  • …the two gate-pinned copies of the decision frame stay in this file……the one gate-pinned copy of the decision frame stays in this file…
  • Checked the nearby "The largest of the five and the frame the other four are read under" sentence (:324) against the same "if it counts wrongly" condition: it's an unrelated sense of "frame" (the skill-package reading order, not the decision frame) and an unrelated "five"/"four" (SKILL.md package count, not COPIES) — left untouched, per the mechanism-assumptions note that this file's comment block counts other things ("the five rules/*.md rows" elsewhere) for reasons that have nothing to do with frame COPIES.
  • Ceiling values are unchanged throughout.

The one-word member (folded in per the seat's dispatch)

dispatch-gates.mjs's USAGE_LINE presented --changed as a whole-invocation alternative that takes no other flag (… [<path> ...] | --changed | --self-test), though --changed --commands is legal and answers (verified live: exit 0, 23 commands). Moved --changed into the position <path> ... occupies — the other path source it stands in for — matching how #15036 placed --residue inside the alternation it really combines with:

- ' [--repo owner/name] [<path> ...] | --changed | --self-test';
+ ' [--repo owner/name] [<path> ... | --changed] | --self-test';

Pinned beside the existing #15036 usage-line pins with three new self-test cases, including a live CONTROL that --changed --commands really answers (so the fix isn't cosmetic on a refusal that doesn't exist).

Tests

All run through the shared verify lock; self-test verdict lines quoted exactly, before/after byte-identical for the six comment-text sites.

  • node scripts/check-skill-frame-sync.mjs (unaffected file, sanity check both before and after): ✓ check-skill-frame-sync: 2 copies of the decision frame are structurally isomorphic across 2 files — unchanged.
  • node scripts/pm/check-skill-line-ratchet.mjs --self-test: before✓ check-skill-line-ratchet self-test: 136 cases pass.after✓ check-skill-line-ratchet self-test: 136 cases pass. (identical).
  • node scripts/pm/check-skill-line-ratchet.mjs (regular verdict, post-edit): green, ceilings/headroom unchanged (AGENTS.md 1157/1162, CLAUDE.md 36/86, one declared cross-file move, etc.) — no ratcheted file was touched by this PR.
  • node scripts/check-skills-token-ratchet.mjs --self-test: before✓ check-skills-token-ratchet self-test: 64 cases pass.after✓ check-skills-token-ratchet self-test: 64 cases pass. (identical).
  • node scripts/check-skills-token-ratchet.mjs (regular verdict): before/after diff on full output is empty (byte-identical) — ✓ check-skills-token-ratchet: 36 authored bundle file(s) within their ceilings; 11 generator-owned file(s) measured, not ratcheted.
  • node scripts/pm/dispatch-gates.mjs --self-test (the heavy one, run through the lock each time):
    • baseline (pre-edit, origin/main0f94cc7c): ✓ dispatch-gates self-test: 1319 cases pass.
    • final (all edits applied, working tree): ✓ dispatch-gates self-test: 1322 cases pass. — exactly +3, the new --changed usage-line pins (item 2); zero anywhere in either run.
  • pnpm check:pm-skill-ratchet (the wrapped gate form): green, same ceiling readings as the direct run above.
  • pnpm check:skill-frame-sync: ✓ check-skill-frame-sync self-test: 13 cases pass, plus 5 dispatch-gates declaration cases and 3 scan-population cases then ✓ check-skill-frame-sync: 2 copies … across 2 files — the 5 "dispatch-gates declaration cases" cross-check MANDATORY_TIER_GLOBS against COPIES and stayed green, confirming cross-file consistency after the edits.
  • node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack (live re-derivation against this diff, no paths passed): 28 families owed total (21 matched by path + 1 by change-kind convention [node scripts/pm/bare-root-worklist.mjs --self-test, triggered because this diff edits gate scripts] + 6 always-run whole-tree). All 28 run below.
  • Re-run on the committed HEAD cd303b24 (this PR's exact head, after push): node scripts/pm/dispatch-gates.mjs --self-test✓ dispatch-gates self-test: 1322 cases pass. (exit 0); node scripts/pm/check-skill-line-ratchet.mjs --self-test✓ check-skill-line-ratchet self-test: 136 cases pass. (exit 0, identical to baseline); node scripts/check-skills-token-ratchet.mjs --self-test✓ check-skills-token-ratchet self-test: 64 cases pass. (exit 0, identical to baseline).
  • npx eslint scripts/pm/dispatch-gates.mjs scripts/pm/check-skill-line-ratchet.mjs scripts/check-skills-token-ratchet.mjs --no-inline-config --format json: 3 files linted (count read from the JSON output itself), 0 errors, 0 warnings. Narrowed-but-proven per this repo's own lint config, which never enables type-aware linting for any file (eslint.config.mjs's own comment: "never enables type-aware linting … for ANY" file) — so this diff (comment/string edits in 3 files) cannot move any untouched file's verdict, and the full repo-wide pnpm lint is deferred to CI rather than re-run locally.

Full local gate table (all green, exit code captured before any pipe)

node scripts/check-ci-filter-parity.mjs — OK
node scripts/check-closing-keyword-parity.mjs --self-test — ✓ 24 assertions, 5 mutations driven red
node scripts/check-closing-keyword-parity.mjs — OK (5 files carrying the grammar, all registered)
node scripts/check-comment-mask-corpus.mjs — ✓ 5849 files, 0 disagree
node scripts/check-cross-package-test-inputs.mjs — OK
node scripts/check-self-test-wired.mjs --self-test — ✓ 7 batteries, 50 cases
node scripts/check-self-test-wired.mjs — ✓ 166/166 self-tests wired
node scripts/check-shard-attestation.mjs — ✓ 2 aggregates, 3 legs
node scripts/check-test-completeness.mjs — exit 3, PREREQUISITE NOT MET (NOT MEASURED, by design — no local turbo-test log; no vitest package touched)
node scripts/check-whole-set-label-write.mjs --self-test — ✓ all cases pass
node scripts/check-whole-set-label-write.mjs — ✓ (160 pins cleared)
node scripts/pm/bare-root-worklist.mjs --self-test — OK (66 rows, none stale/missing/contradicted) — convention-triggered by editing gate scripts
pnpm check:agent-test-spelling — EXIT 0
pnpm check:bash32-floor — ✓ 153 self-test cases; 26 shell files clean
pnpm check:cli-command-ids — ✓ 39 self-test cases; 324 literals resolve
pnpm check:cross-package-test-inputs — ✓ 117 self-test cases; OK
pnpm check:declared-population-live — ✓ 16 assertions; 190/240 families
pnpm check:entry-guard — ✓ 54 self-test cases; 206 files clean
pnpm check:nul-bytes — ✓ 75 self-test assertions; OK (8211 files, 0 raw control bytes)
pnpm check:parse-guard — EXIT 0
pnpm check:pm-dispatch-gates — = dispatch-gates.mjs --self-test (see above); wrapper confirmed equivalent from its own header
pnpm check:pm-skill-ratchet — green (see Tests above)
pnpm check:pnpm-filter-targets — ✓ 54+40 self-test assertions; 142/181 filters resolve
pnpm check:ratchet-remedy-authority — OK 186 scripts swept
pnpm check:refd-timer-probe — ✓ 11 self-test cases; 1 approved site
pnpm check:watch-hint-literal — ✓ 57 self-test cases; 48 declarations clean
node scripts/check-skills-token-ratchet.mjs --self-test — ✓ 64 cases pass (identical before/after)
node scripts/check-skills-token-ratchet.mjs — ✓ (identical before/after, diff empty)

Also ran ad hoc (not on the given list, but load-bearing for this PR):

node scripts/check-nul-bytes.mjs (targeted grep on the 3 touched files) — clean, no control bytes
git grep for stray "carries two enforced"/"four…COPIES" text repo-wide outside the 3 files — zero hits

Repo-wide pnpm lint and the changeset-triggered gate family were not run locally — this PR's surface is exactly three scripts/** files (no package publish, no .changeset/), so those either don't apply or are deferred to CI per the standard local-scope discipline.

Scope discipline

skip-changeset

This PR publishes nothing from any released package (scripts/pm/** and scripts/*.mjs tooling only) — applying the skip-changeset label per the repo's real mechanism, with an additive write and read-back.


Generated by Claude Code

…opy truth
check:skill-frame-sync's COPIES table dropped from four entries to two
(internal-pm, published-pm) when the dev-side frame copies were retired —
the dev prompt now receives the frame pasted from the PM's own copy at
dispatch time instead of embedding one. Six comments across
dispatch-gates.mjs, check-skill-line-ratchet.mjs and
check-skills-token-ratchet.mjs still described the old four/two-copy state
as present-tense fact; this rewrites them to the current truth without
touching any behaviour, verdict line, or ceiling value (every affected
self-test prints the identical case count before and after).
Also moves dispatch-gates.mjs's `--changed` flag from a whole-invocation
usage-line alternative (implying it excludes --commands/--json) to the
position `<path> ...` occupies, matching how #15036 placed --residue —
`--changed --commands` is legal and answers, so the old line advertised a
refusal the argv chain does not make. New self-test pins lock the fix,
including a live CONTROL that the combination really works.
Fixes#14870
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019RfFHiRCSs3JXLK4cwcfox
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/sskip-changesetPR has no user-facing published change; bypasses the changeset gate

Projects

None yet

2 participants

@os-steve@claude
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

fix(pm): correct stale four/two-copy decision-frame comments to two-copy truth - #15105

Merged
os-steve merged 1 commit into
mainfrom
claude/issue-14870-frame-copies-comments
Sep 3, 2026
Merged

fix(pm): correct stale four/two-copy decision-frame comments to two-copy truth#15105
os-steve merged 1 commit into
mainfrom
claude/issue-14870-frame-copies-comments

Conversation

@os-steve

Copy link
Copy Markdown
Collaborator

Fixes#14870

What

check:skill-frame-sync's COPIES table dropped from four entries to two (internal-pm.claude/skills/pm-dispatch/SKILL.md, published-pmskills/objectstack-pm-dispatch/SKILL.md) once the dev-side frame copies were retired — the dispatch PM now pastes its own copy into the dev prompt's {decision_frame} slot at dispatch time instead of either side embedding one. Six comments across three gate scripts still described the old four/two-copy state as present-tense fact. This PR rewrites exactly those six sites to the current truth, plus one unrelated one-word usage-line fix folded in by the seat. Comment/string text only — no behaviour, no verdict line, no ceiling value changed anywhere.

The six sites (before → after)

scripts/pm/dispatch-gates.mjs

  1. MANDATORY_TIER_GLOBS why-string for .claude/agents/os-dev.md — kept the mandate (clause ① protocol semantics still holds), fixed only the false reason:
    • before: …every dispatched dev runs under it, and it carries an enforced copy of the decision frame
    • after: …every dispatched dev runs under it, and receives the decision frame the PM pastes into its prompt at dispatch time rather than carrying a copy of its own
  2. MANDATORY_TIER_GLOBS why-string for skills/objectstack-pm-dispatch/SKILL.md:
    • before: …the published PM skill carries two enforced copies of the decision frame (check:skill-frame-sync COPIES)…
    • after: …the published PM skill carries one enforced copy of the decision frame (check:skill-frame-sync COPIES)…
  3. Self-test assertion label only (the boolean it asserts is untouched):
    • before: t('the published PM skill (two enforced frame copies) is fable-mandatory', …)
    • after: t('the published PM skill (one enforced frame copy) is fable-mandatory', …)

Docblock line at the old :8468 ("every file carrying an enforced copy of the decision frame (the COPIES table…)") was checked against the ruling's "if it counts wrongly" condition and left untouched: it never asserts a specific number, and it already lists the dev-agent definition as a separate item rather than as a frame-copy carrier — so it doesn't count wrongly post-reduction.

scripts/pm/check-skill-line-ratchet.mjs — the os-dev.md ceiling ledger comment justifying its 466→469 raise:

scripts/check-skills-token-ratchet.mjs — three ledger comments for skills/objectstack-pm-dispatch/SKILL.md's history:

  • …and this file carries TWO enforced frame copies (check:skill-frame-sync COPIES)……and this file carries one enforced frame copy (check:skill-frame-sync COPIES)…
  • …this file carries TWO\n enforced frame copies (check:skill-frame-sync COPIES)……this file carries one\n enforced frame copy (check:skill-frame-sync COPIES)…
  • …the two gate-pinned copies of the decision frame stay in this file……the one gate-pinned copy of the decision frame stays in this file…
  • Checked the nearby "The largest of the five and the frame the other four are read under" sentence (:324) against the same "if it counts wrongly" condition: it's an unrelated sense of "frame" (the skill-package reading order, not the decision frame) and an unrelated "five"/"four" (SKILL.md package count, not COPIES) — left untouched, per the mechanism-assumptions note that this file's comment block counts other things ("the five rules/*.md rows" elsewhere) for reasons that have nothing to do with frame COPIES.
  • Ceiling values are unchanged throughout.

The one-word member (folded in per the seat's dispatch)

dispatch-gates.mjs's USAGE_LINE presented --changed as a whole-invocation alternative that takes no other flag (… [<path> ...] | --changed | --self-test), though --changed --commands is legal and answers (verified live: exit 0, 23 commands). Moved --changed into the position <path> ... occupies — the other path source it stands in for — matching how #15036 placed --residue inside the alternation it really combines with:

- ' [--repo owner/name] [<path> ...] | --changed | --self-test';
+ ' [--repo owner/name] [<path> ... | --changed] | --self-test';

Pinned beside the existing #15036 usage-line pins with three new self-test cases, including a live CONTROL that --changed --commands really answers (so the fix isn't cosmetic on a refusal that doesn't exist).

Tests

All run through the shared verify lock; self-test verdict lines quoted exactly, before/after byte-identical for the six comment-text sites.

  • node scripts/check-skill-frame-sync.mjs (unaffected file, sanity check both before and after): ✓ check-skill-frame-sync: 2 copies of the decision frame are structurally isomorphic across 2 files — unchanged.
  • node scripts/pm/check-skill-line-ratchet.mjs --self-test: before✓ check-skill-line-ratchet self-test: 136 cases pass.after✓ check-skill-line-ratchet self-test: 136 cases pass. (identical).
  • node scripts/pm/check-skill-line-ratchet.mjs (regular verdict, post-edit): green, ceilings/headroom unchanged (AGENTS.md 1157/1162, CLAUDE.md 36/86, one declared cross-file move, etc.) — no ratcheted file was touched by this PR.
  • node scripts/check-skills-token-ratchet.mjs --self-test: before✓ check-skills-token-ratchet self-test: 64 cases pass.after✓ check-skills-token-ratchet self-test: 64 cases pass. (identical).
  • node scripts/check-skills-token-ratchet.mjs (regular verdict): before/after diff on full output is empty (byte-identical) — ✓ check-skills-token-ratchet: 36 authored bundle file(s) within their ceilings; 11 generator-owned file(s) measured, not ratcheted.
  • node scripts/pm/dispatch-gates.mjs --self-test (the heavy one, run through the lock each time):
    • baseline (pre-edit, origin/main0f94cc7c): ✓ dispatch-gates self-test: 1319 cases pass.
    • final (all edits applied, working tree): ✓ dispatch-gates self-test: 1322 cases pass. — exactly +3, the new --changed usage-line pins (item 2); zero anywhere in either run.
  • pnpm check:pm-skill-ratchet (the wrapped gate form): green, same ceiling readings as the direct run above.
  • pnpm check:skill-frame-sync: ✓ check-skill-frame-sync self-test: 13 cases pass, plus 5 dispatch-gates declaration cases and 3 scan-population cases then ✓ check-skill-frame-sync: 2 copies … across 2 files — the 5 "dispatch-gates declaration cases" cross-check MANDATORY_TIER_GLOBS against COPIES and stayed green, confirming cross-file consistency after the edits.
  • node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack (live re-derivation against this diff, no paths passed): 28 families owed total (21 matched by path + 1 by change-kind convention [node scripts/pm/bare-root-worklist.mjs --self-test, triggered because this diff edits gate scripts] + 6 always-run whole-tree). All 28 run below.
  • Re-run on the committed HEAD cd303b24 (this PR's exact head, after push): node scripts/pm/dispatch-gates.mjs --self-test✓ dispatch-gates self-test: 1322 cases pass. (exit 0); node scripts/pm/check-skill-line-ratchet.mjs --self-test✓ check-skill-line-ratchet self-test: 136 cases pass. (exit 0, identical to baseline); node scripts/check-skills-token-ratchet.mjs --self-test✓ check-skills-token-ratchet self-test: 64 cases pass. (exit 0, identical to baseline).
  • npx eslint scripts/pm/dispatch-gates.mjs scripts/pm/check-skill-line-ratchet.mjs scripts/check-skills-token-ratchet.mjs --no-inline-config --format json: 3 files linted (count read from the JSON output itself), 0 errors, 0 warnings. Narrowed-but-proven per this repo's own lint config, which never enables type-aware linting for any file (eslint.config.mjs's own comment: "never enables type-aware linting … for ANY" file) — so this diff (comment/string edits in 3 files) cannot move any untouched file's verdict, and the full repo-wide pnpm lint is deferred to CI rather than re-run locally.

Full local gate table (all green, exit code captured before any pipe)

node scripts/check-ci-filter-parity.mjs — OK
node scripts/check-closing-keyword-parity.mjs --self-test — ✓ 24 assertions, 5 mutations driven red
node scripts/check-closing-keyword-parity.mjs — OK (5 files carrying the grammar, all registered)
node scripts/check-comment-mask-corpus.mjs — ✓ 5849 files, 0 disagree
node scripts/check-cross-package-test-inputs.mjs — OK
node scripts/check-self-test-wired.mjs --self-test — ✓ 7 batteries, 50 cases
node scripts/check-self-test-wired.mjs — ✓ 166/166 self-tests wired
node scripts/check-shard-attestation.mjs — ✓ 2 aggregates, 3 legs
node scripts/check-test-completeness.mjs — exit 3, PREREQUISITE NOT MET (NOT MEASURED, by design — no local turbo-test log; no vitest package touched)
node scripts/check-whole-set-label-write.mjs --self-test — ✓ all cases pass
node scripts/check-whole-set-label-write.mjs — ✓ (160 pins cleared)
node scripts/pm/bare-root-worklist.mjs --self-test — OK (66 rows, none stale/missing/contradicted) — convention-triggered by editing gate scripts
pnpm check:agent-test-spelling — EXIT 0
pnpm check:bash32-floor — ✓ 153 self-test cases; 26 shell files clean
pnpm check:cli-command-ids — ✓ 39 self-test cases; 324 literals resolve
pnpm check:cross-package-test-inputs — ✓ 117 self-test cases; OK
pnpm check:declared-population-live — ✓ 16 assertions; 190/240 families
pnpm check:entry-guard — ✓ 54 self-test cases; 206 files clean
pnpm check:nul-bytes — ✓ 75 self-test assertions; OK (8211 files, 0 raw control bytes)
pnpm check:parse-guard — EXIT 0
pnpm check:pm-dispatch-gates — = dispatch-gates.mjs --self-test (see above); wrapper confirmed equivalent from its own header
pnpm check:pm-skill-ratchet — green (see Tests above)
pnpm check:pnpm-filter-targets — ✓ 54+40 self-test assertions; 142/181 filters resolve
pnpm check:ratchet-remedy-authority — OK 186 scripts swept
pnpm check:refd-timer-probe — ✓ 11 self-test cases; 1 approved site
pnpm check:watch-hint-literal — ✓ 57 self-test cases; 48 declarations clean
node scripts/check-skills-token-ratchet.mjs --self-test — ✓ 64 cases pass (identical before/after)
node scripts/check-skills-token-ratchet.mjs — ✓ (identical before/after, diff empty)

Also ran ad hoc (not on the given list, but load-bearing for this PR):

node scripts/check-nul-bytes.mjs (targeted grep on the 3 touched files) — clean, no control bytes
git grep for stray "carries two enforced"/"four…COPIES" text repo-wide outside the 3 files — zero hits

Repo-wide pnpm lint and the changeset-triggered gate family were not run locally — this PR's surface is exactly three scripts/** files (no package publish, no .changeset/), so those either don't apply or are deferred to CI per the standard local-scope discipline.

Scope discipline

skip-changeset

This PR publishes nothing from any released package (scripts/pm/** and scripts/*.mjs tooling only) — applying the skip-changeset label per the repo's real mechanism, with an additive write and read-back.


Generated by Claude Code

…opy truth
check:skill-frame-sync's COPIES table dropped from four entries to two
(internal-pm, published-pm) when the dev-side frame copies were retired —
the dev prompt now receives the frame pasted from the PM's own copy at
dispatch time instead of embedding one. Six comments across
dispatch-gates.mjs, check-skill-line-ratchet.mjs and
check-skills-token-ratchet.mjs still described the old four/two-copy state
as present-tense fact; this rewrites them to the current truth without
touching any behaviour, verdict line, or ceiling value (every affected
self-test prints the identical case count before and after).
Also moves dispatch-gates.mjs's `--changed` flag from a whole-invocation
usage-line alternative (implying it excludes --commands/--json) to the
position `<path> ...` occupies, matching how #15036 placed --residue —
`--changed --commands` is legal and answers, so the old line advertised a
refusal the argv chain does not make. New self-test pins lock the fix,
including a live CONTROL that the combination really works.
Fixes#14870
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019RfFHiRCSs3JXLK4cwcfox
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/sskip-changesetPR has no user-facing published change; bypasses the changeset gate

Projects

None yet

2 participants

@os-steve@claude
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

fix(pm): correct stale four/two-copy decision-frame comments to two-copy truth - #15105

Merged
os-steve merged 1 commit into
mainfrom
claude/issue-14870-frame-copies-comments
Sep 3, 2026
Merged

fix(pm): correct stale four/two-copy decision-frame comments to two-copy truth#15105
os-steve merged 1 commit into
mainfrom
claude/issue-14870-frame-copies-comments

Conversation

@os-steve

Copy link
Copy Markdown
Collaborator

Fixes#14870

What

check:skill-frame-sync's COPIES table dropped from four entries to two (internal-pm.claude/skills/pm-dispatch/SKILL.md, published-pmskills/objectstack-pm-dispatch/SKILL.md) once the dev-side frame copies were retired — the dispatch PM now pastes its own copy into the dev prompt's {decision_frame} slot at dispatch time instead of either side embedding one. Six comments across three gate scripts still described the old four/two-copy state as present-tense fact. This PR rewrites exactly those six sites to the current truth, plus one unrelated one-word usage-line fix folded in by the seat. Comment/string text only — no behaviour, no verdict line, no ceiling value changed anywhere.

The six sites (before → after)

scripts/pm/dispatch-gates.mjs

  1. MANDATORY_TIER_GLOBS why-string for .claude/agents/os-dev.md — kept the mandate (clause ① protocol semantics still holds), fixed only the false reason:
    • before: …every dispatched dev runs under it, and it carries an enforced copy of the decision frame
    • after: …every dispatched dev runs under it, and receives the decision frame the PM pastes into its prompt at dispatch time rather than carrying a copy of its own
  2. MANDATORY_TIER_GLOBS why-string for skills/objectstack-pm-dispatch/SKILL.md:
    • before: …the published PM skill carries two enforced copies of the decision frame (check:skill-frame-sync COPIES)…
    • after: …the published PM skill carries one enforced copy of the decision frame (check:skill-frame-sync COPIES)…
  3. Self-test assertion label only (the boolean it asserts is untouched):
    • before: t('the published PM skill (two enforced frame copies) is fable-mandatory', …)
    • after: t('the published PM skill (one enforced frame copy) is fable-mandatory', …)

Docblock line at the old :8468 ("every file carrying an enforced copy of the decision frame (the COPIES table…)") was checked against the ruling's "if it counts wrongly" condition and left untouched: it never asserts a specific number, and it already lists the dev-agent definition as a separate item rather than as a frame-copy carrier — so it doesn't count wrongly post-reduction.

scripts/pm/check-skill-line-ratchet.mjs — the os-dev.md ceiling ledger comment justifying its 466→469 raise:

scripts/check-skills-token-ratchet.mjs — three ledger comments for skills/objectstack-pm-dispatch/SKILL.md's history:

  • …and this file carries TWO enforced frame copies (check:skill-frame-sync COPIES)……and this file carries one enforced frame copy (check:skill-frame-sync COPIES)…
  • …this file carries TWO\n enforced frame copies (check:skill-frame-sync COPIES)……this file carries one\n enforced frame copy (check:skill-frame-sync COPIES)…
  • …the two gate-pinned copies of the decision frame stay in this file……the one gate-pinned copy of the decision frame stays in this file…
  • Checked the nearby "The largest of the five and the frame the other four are read under" sentence (:324) against the same "if it counts wrongly" condition: it's an unrelated sense of "frame" (the skill-package reading order, not the decision frame) and an unrelated "five"/"four" (SKILL.md package count, not COPIES) — left untouched, per the mechanism-assumptions note that this file's comment block counts other things ("the five rules/*.md rows" elsewhere) for reasons that have nothing to do with frame COPIES.
  • Ceiling values are unchanged throughout.

The one-word member (folded in per the seat's dispatch)

dispatch-gates.mjs's USAGE_LINE presented --changed as a whole-invocation alternative that takes no other flag (… [<path> ...] | --changed | --self-test), though --changed --commands is legal and answers (verified live: exit 0, 23 commands). Moved --changed into the position <path> ... occupies — the other path source it stands in for — matching how #15036 placed --residue inside the alternation it really combines with:

- ' [--repo owner/name] [<path> ...] | --changed | --self-test';
+ ' [--repo owner/name] [<path> ... | --changed] | --self-test';

Pinned beside the existing #15036 usage-line pins with three new self-test cases, including a live CONTROL that --changed --commands really answers (so the fix isn't cosmetic on a refusal that doesn't exist).

Tests

All run through the shared verify lock; self-test verdict lines quoted exactly, before/after byte-identical for the six comment-text sites.

  • node scripts/check-skill-frame-sync.mjs (unaffected file, sanity check both before and after): ✓ check-skill-frame-sync: 2 copies of the decision frame are structurally isomorphic across 2 files — unchanged.
  • node scripts/pm/check-skill-line-ratchet.mjs --self-test: before✓ check-skill-line-ratchet self-test: 136 cases pass.after✓ check-skill-line-ratchet self-test: 136 cases pass. (identical).
  • node scripts/pm/check-skill-line-ratchet.mjs (regular verdict, post-edit): green, ceilings/headroom unchanged (AGENTS.md 1157/1162, CLAUDE.md 36/86, one declared cross-file move, etc.) — no ratcheted file was touched by this PR.
  • node scripts/check-skills-token-ratchet.mjs --self-test: before✓ check-skills-token-ratchet self-test: 64 cases pass.after✓ check-skills-token-ratchet self-test: 64 cases pass. (identical).
  • node scripts/check-skills-token-ratchet.mjs (regular verdict): before/after diff on full output is empty (byte-identical) — ✓ check-skills-token-ratchet: 36 authored bundle file(s) within their ceilings; 11 generator-owned file(s) measured, not ratcheted.
  • node scripts/pm/dispatch-gates.mjs --self-test (the heavy one, run through the lock each time):
    • baseline (pre-edit, origin/main0f94cc7c): ✓ dispatch-gates self-test: 1319 cases pass.
    • final (all edits applied, working tree): ✓ dispatch-gates self-test: 1322 cases pass. — exactly +3, the new --changed usage-line pins (item 2); zero anywhere in either run.
  • pnpm check:pm-skill-ratchet (the wrapped gate form): green, same ceiling readings as the direct run above.
  • pnpm check:skill-frame-sync: ✓ check-skill-frame-sync self-test: 13 cases pass, plus 5 dispatch-gates declaration cases and 3 scan-population cases then ✓ check-skill-frame-sync: 2 copies … across 2 files — the 5 "dispatch-gates declaration cases" cross-check MANDATORY_TIER_GLOBS against COPIES and stayed green, confirming cross-file consistency after the edits.
  • node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack (live re-derivation against this diff, no paths passed): 28 families owed total (21 matched by path + 1 by change-kind convention [node scripts/pm/bare-root-worklist.mjs --self-test, triggered because this diff edits gate scripts] + 6 always-run whole-tree). All 28 run below.
  • Re-run on the committed HEAD cd303b24 (this PR's exact head, after push): node scripts/pm/dispatch-gates.mjs --self-test✓ dispatch-gates self-test: 1322 cases pass. (exit 0); node scripts/pm/check-skill-line-ratchet.mjs --self-test✓ check-skill-line-ratchet self-test: 136 cases pass. (exit 0, identical to baseline); node scripts/check-skills-token-ratchet.mjs --self-test✓ check-skills-token-ratchet self-test: 64 cases pass. (exit 0, identical to baseline).
  • npx eslint scripts/pm/dispatch-gates.mjs scripts/pm/check-skill-line-ratchet.mjs scripts/check-skills-token-ratchet.mjs --no-inline-config --format json: 3 files linted (count read from the JSON output itself), 0 errors, 0 warnings. Narrowed-but-proven per this repo's own lint config, which never enables type-aware linting for any file (eslint.config.mjs's own comment: "never enables type-aware linting … for ANY" file) — so this diff (comment/string edits in 3 files) cannot move any untouched file's verdict, and the full repo-wide pnpm lint is deferred to CI rather than re-run locally.

Full local gate table (all green, exit code captured before any pipe)

node scripts/check-ci-filter-parity.mjs — OK
node scripts/check-closing-keyword-parity.mjs --self-test — ✓ 24 assertions, 5 mutations driven red
node scripts/check-closing-keyword-parity.mjs — OK (5 files carrying the grammar, all registered)
node scripts/check-comment-mask-corpus.mjs — ✓ 5849 files, 0 disagree
node scripts/check-cross-package-test-inputs.mjs — OK
node scripts/check-self-test-wired.mjs --self-test — ✓ 7 batteries, 50 cases
node scripts/check-self-test-wired.mjs — ✓ 166/166 self-tests wired
node scripts/check-shard-attestation.mjs — ✓ 2 aggregates, 3 legs
node scripts/check-test-completeness.mjs — exit 3, PREREQUISITE NOT MET (NOT MEASURED, by design — no local turbo-test log; no vitest package touched)
node scripts/check-whole-set-label-write.mjs --self-test — ✓ all cases pass
node scripts/check-whole-set-label-write.mjs — ✓ (160 pins cleared)
node scripts/pm/bare-root-worklist.mjs --self-test — OK (66 rows, none stale/missing/contradicted) — convention-triggered by editing gate scripts
pnpm check:agent-test-spelling — EXIT 0
pnpm check:bash32-floor — ✓ 153 self-test cases; 26 shell files clean
pnpm check:cli-command-ids — ✓ 39 self-test cases; 324 literals resolve
pnpm check:cross-package-test-inputs — ✓ 117 self-test cases; OK
pnpm check:declared-population-live — ✓ 16 assertions; 190/240 families
pnpm check:entry-guard — ✓ 54 self-test cases; 206 files clean
pnpm check:nul-bytes — ✓ 75 self-test assertions; OK (8211 files, 0 raw control bytes)
pnpm check:parse-guard — EXIT 0
pnpm check:pm-dispatch-gates — = dispatch-gates.mjs --self-test (see above); wrapper confirmed equivalent from its own header
pnpm check:pm-skill-ratchet — green (see Tests above)
pnpm check:pnpm-filter-targets — ✓ 54+40 self-test assertions; 142/181 filters resolve
pnpm check:ratchet-remedy-authority — OK 186 scripts swept
pnpm check:refd-timer-probe — ✓ 11 self-test cases; 1 approved site
pnpm check:watch-hint-literal — ✓ 57 self-test cases; 48 declarations clean
node scripts/check-skills-token-ratchet.mjs --self-test — ✓ 64 cases pass (identical before/after)
node scripts/check-skills-token-ratchet.mjs — ✓ (identical before/after, diff empty)

Also ran ad hoc (not on the given list, but load-bearing for this PR):

node scripts/check-nul-bytes.mjs (targeted grep on the 3 touched files) — clean, no control bytes
git grep for stray "carries two enforced"/"four…COPIES" text repo-wide outside the 3 files — zero hits

Repo-wide pnpm lint and the changeset-triggered gate family were not run locally — this PR's surface is exactly three scripts/** files (no package publish, no .changeset/), so those either don't apply or are deferred to CI per the standard local-scope discipline.

Scope discipline

skip-changeset

This PR publishes nothing from any released package (scripts/pm/** and scripts/*.mjs tooling only) — applying the skip-changeset label per the repo's real mechanism, with an additive write and read-back.


Generated by Claude Code

…opy truth
check:skill-frame-sync's COPIES table dropped from four entries to two
(internal-pm, published-pm) when the dev-side frame copies were retired —
the dev prompt now receives the frame pasted from the PM's own copy at
dispatch time instead of embedding one. Six comments across
dispatch-gates.mjs, check-skill-line-ratchet.mjs and
check-skills-token-ratchet.mjs still described the old four/two-copy state
as present-tense fact; this rewrites them to the current truth without
touching any behaviour, verdict line, or ceiling value (every affected
self-test prints the identical case count before and after).
Also moves dispatch-gates.mjs's `--changed` flag from a whole-invocation
usage-line alternative (implying it excludes --commands/--json) to the
position `<path> ...` occupies, matching how #15036 placed --residue —
`--changed --commands` is legal and answers, so the old line advertised a
refusal the argv chain does not make. New self-test pins lock the fix,
including a live CONTROL that the combination really works.
Fixes#14870
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019RfFHiRCSs3JXLK4cwcfox
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/sskip-changesetPR has no user-facing published change; bypasses the changeset gate

Projects

None yet

2 participants

@os-steve@claude
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

fix(pm): correct stale four/two-copy decision-frame comments to two-copy truth - #15105

Merged
os-steve merged 1 commit into
mainfrom
claude/issue-14870-frame-copies-comments
Sep 3, 2026
Merged

fix(pm): correct stale four/two-copy decision-frame comments to two-copy truth#15105
os-steve merged 1 commit into
mainfrom
claude/issue-14870-frame-copies-comments

Conversation

@os-steve

Copy link
Copy Markdown
Collaborator

Fixes#14870

What

check:skill-frame-sync's COPIES table dropped from four entries to two (internal-pm.claude/skills/pm-dispatch/SKILL.md, published-pmskills/objectstack-pm-dispatch/SKILL.md) once the dev-side frame copies were retired — the dispatch PM now pastes its own copy into the dev prompt's {decision_frame} slot at dispatch time instead of either side embedding one. Six comments across three gate scripts still described the old four/two-copy state as present-tense fact. This PR rewrites exactly those six sites to the current truth, plus one unrelated one-word usage-line fix folded in by the seat. Comment/string text only — no behaviour, no verdict line, no ceiling value changed anywhere.

The six sites (before → after)

scripts/pm/dispatch-gates.mjs

  1. MANDATORY_TIER_GLOBS why-string for .claude/agents/os-dev.md — kept the mandate (clause ① protocol semantics still holds), fixed only the false reason:
    • before: …every dispatched dev runs under it, and it carries an enforced copy of the decision frame
    • after: …every dispatched dev runs under it, and receives the decision frame the PM pastes into its prompt at dispatch time rather than carrying a copy of its own
  2. MANDATORY_TIER_GLOBS why-string for skills/objectstack-pm-dispatch/SKILL.md:
    • before: …the published PM skill carries two enforced copies of the decision frame (check:skill-frame-sync COPIES)…
    • after: …the published PM skill carries one enforced copy of the decision frame (check:skill-frame-sync COPIES)…
  3. Self-test assertion label only (the boolean it asserts is untouched):
    • before: t('the published PM skill (two enforced frame copies) is fable-mandatory', …)
    • after: t('the published PM skill (one enforced frame copy) is fable-mandatory', …)

Docblock line at the old :8468 ("every file carrying an enforced copy of the decision frame (the COPIES table…)") was checked against the ruling's "if it counts wrongly" condition and left untouched: it never asserts a specific number, and it already lists the dev-agent definition as a separate item rather than as a frame-copy carrier — so it doesn't count wrongly post-reduction.

scripts/pm/check-skill-line-ratchet.mjs — the os-dev.md ceiling ledger comment justifying its 466→469 raise:

scripts/check-skills-token-ratchet.mjs — three ledger comments for skills/objectstack-pm-dispatch/SKILL.md's history:

  • …and this file carries TWO enforced frame copies (check:skill-frame-sync COPIES)……and this file carries one enforced frame copy (check:skill-frame-sync COPIES)…
  • …this file carries TWO\n enforced frame copies (check:skill-frame-sync COPIES)……this file carries one\n enforced frame copy (check:skill-frame-sync COPIES)…
  • …the two gate-pinned copies of the decision frame stay in this file……the one gate-pinned copy of the decision frame stays in this file…
  • Checked the nearby "The largest of the five and the frame the other four are read under" sentence (:324) against the same "if it counts wrongly" condition: it's an unrelated sense of "frame" (the skill-package reading order, not the decision frame) and an unrelated "five"/"four" (SKILL.md package count, not COPIES) — left untouched, per the mechanism-assumptions note that this file's comment block counts other things ("the five rules/*.md rows" elsewhere) for reasons that have nothing to do with frame COPIES.
  • Ceiling values are unchanged throughout.

The one-word member (folded in per the seat's dispatch)

dispatch-gates.mjs's USAGE_LINE presented --changed as a whole-invocation alternative that takes no other flag (… [<path> ...] | --changed | --self-test), though --changed --commands is legal and answers (verified live: exit 0, 23 commands). Moved --changed into the position <path> ... occupies — the other path source it stands in for — matching how #15036 placed --residue inside the alternation it really combines with:

- ' [--repo owner/name] [<path> ...] | --changed | --self-test';
+ ' [--repo owner/name] [<path> ... | --changed] | --self-test';

Pinned beside the existing #15036 usage-line pins with three new self-test cases, including a live CONTROL that --changed --commands really answers (so the fix isn't cosmetic on a refusal that doesn't exist).

Tests

All run through the shared verify lock; self-test verdict lines quoted exactly, before/after byte-identical for the six comment-text sites.

  • node scripts/check-skill-frame-sync.mjs (unaffected file, sanity check both before and after): ✓ check-skill-frame-sync: 2 copies of the decision frame are structurally isomorphic across 2 files — unchanged.
  • node scripts/pm/check-skill-line-ratchet.mjs --self-test: before✓ check-skill-line-ratchet self-test: 136 cases pass.after✓ check-skill-line-ratchet self-test: 136 cases pass. (identical).
  • node scripts/pm/check-skill-line-ratchet.mjs (regular verdict, post-edit): green, ceilings/headroom unchanged (AGENTS.md 1157/1162, CLAUDE.md 36/86, one declared cross-file move, etc.) — no ratcheted file was touched by this PR.
  • node scripts/check-skills-token-ratchet.mjs --self-test: before✓ check-skills-token-ratchet self-test: 64 cases pass.after✓ check-skills-token-ratchet self-test: 64 cases pass. (identical).
  • node scripts/check-skills-token-ratchet.mjs (regular verdict): before/after diff on full output is empty (byte-identical) — ✓ check-skills-token-ratchet: 36 authored bundle file(s) within their ceilings; 11 generator-owned file(s) measured, not ratcheted.
  • node scripts/pm/dispatch-gates.mjs --self-test (the heavy one, run through the lock each time):
    • baseline (pre-edit, origin/main0f94cc7c): ✓ dispatch-gates self-test: 1319 cases pass.
    • final (all edits applied, working tree): ✓ dispatch-gates self-test: 1322 cases pass. — exactly +3, the new --changed usage-line pins (item 2); zero anywhere in either run.
  • pnpm check:pm-skill-ratchet (the wrapped gate form): green, same ceiling readings as the direct run above.
  • pnpm check:skill-frame-sync: ✓ check-skill-frame-sync self-test: 13 cases pass, plus 5 dispatch-gates declaration cases and 3 scan-population cases then ✓ check-skill-frame-sync: 2 copies … across 2 files — the 5 "dispatch-gates declaration cases" cross-check MANDATORY_TIER_GLOBS against COPIES and stayed green, confirming cross-file consistency after the edits.
  • node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack (live re-derivation against this diff, no paths passed): 28 families owed total (21 matched by path + 1 by change-kind convention [node scripts/pm/bare-root-worklist.mjs --self-test, triggered because this diff edits gate scripts] + 6 always-run whole-tree). All 28 run below.
  • Re-run on the committed HEAD cd303b24 (this PR's exact head, after push): node scripts/pm/dispatch-gates.mjs --self-test✓ dispatch-gates self-test: 1322 cases pass. (exit 0); node scripts/pm/check-skill-line-ratchet.mjs --self-test✓ check-skill-line-ratchet self-test: 136 cases pass. (exit 0, identical to baseline); node scripts/check-skills-token-ratchet.mjs --self-test✓ check-skills-token-ratchet self-test: 64 cases pass. (exit 0, identical to baseline).
  • npx eslint scripts/pm/dispatch-gates.mjs scripts/pm/check-skill-line-ratchet.mjs scripts/check-skills-token-ratchet.mjs --no-inline-config --format json: 3 files linted (count read from the JSON output itself), 0 errors, 0 warnings. Narrowed-but-proven per this repo's own lint config, which never enables type-aware linting for any file (eslint.config.mjs's own comment: "never enables type-aware linting … for ANY" file) — so this diff (comment/string edits in 3 files) cannot move any untouched file's verdict, and the full repo-wide pnpm lint is deferred to CI rather than re-run locally.

Full local gate table (all green, exit code captured before any pipe)

node scripts/check-ci-filter-parity.mjs — OK
node scripts/check-closing-keyword-parity.mjs --self-test — ✓ 24 assertions, 5 mutations driven red
node scripts/check-closing-keyword-parity.mjs — OK (5 files carrying the grammar, all registered)
node scripts/check-comment-mask-corpus.mjs — ✓ 5849 files, 0 disagree
node scripts/check-cross-package-test-inputs.mjs — OK
node scripts/check-self-test-wired.mjs --self-test — ✓ 7 batteries, 50 cases
node scripts/check-self-test-wired.mjs — ✓ 166/166 self-tests wired
node scripts/check-shard-attestation.mjs — ✓ 2 aggregates, 3 legs
node scripts/check-test-completeness.mjs — exit 3, PREREQUISITE NOT MET (NOT MEASURED, by design — no local turbo-test log; no vitest package touched)
node scripts/check-whole-set-label-write.mjs --self-test — ✓ all cases pass
node scripts/check-whole-set-label-write.mjs — ✓ (160 pins cleared)
node scripts/pm/bare-root-worklist.mjs --self-test — OK (66 rows, none stale/missing/contradicted) — convention-triggered by editing gate scripts
pnpm check:agent-test-spelling — EXIT 0
pnpm check:bash32-floor — ✓ 153 self-test cases; 26 shell files clean
pnpm check:cli-command-ids — ✓ 39 self-test cases; 324 literals resolve
pnpm check:cross-package-test-inputs — ✓ 117 self-test cases; OK
pnpm check:declared-population-live — ✓ 16 assertions; 190/240 families
pnpm check:entry-guard — ✓ 54 self-test cases; 206 files clean
pnpm check:nul-bytes — ✓ 75 self-test assertions; OK (8211 files, 0 raw control bytes)
pnpm check:parse-guard — EXIT 0
pnpm check:pm-dispatch-gates — = dispatch-gates.mjs --self-test (see above); wrapper confirmed equivalent from its own header
pnpm check:pm-skill-ratchet — green (see Tests above)
pnpm check:pnpm-filter-targets — ✓ 54+40 self-test assertions; 142/181 filters resolve
pnpm check:ratchet-remedy-authority — OK 186 scripts swept
pnpm check:refd-timer-probe — ✓ 11 self-test cases; 1 approved site
pnpm check:watch-hint-literal — ✓ 57 self-test cases; 48 declarations clean
node scripts/check-skills-token-ratchet.mjs --self-test — ✓ 64 cases pass (identical before/after)
node scripts/check-skills-token-ratchet.mjs — ✓ (identical before/after, diff empty)

Also ran ad hoc (not on the given list, but load-bearing for this PR):

node scripts/check-nul-bytes.mjs (targeted grep on the 3 touched files) — clean, no control bytes
git grep for stray "carries two enforced"/"four…COPIES" text repo-wide outside the 3 files — zero hits

Repo-wide pnpm lint and the changeset-triggered gate family were not run locally — this PR's surface is exactly three scripts/** files (no package publish, no .changeset/), so those either don't apply or are deferred to CI per the standard local-scope discipline.

Scope discipline

skip-changeset

This PR publishes nothing from any released package (scripts/pm/** and scripts/*.mjs tooling only) — applying the skip-changeset label per the repo's real mechanism, with an additive write and read-back.


Generated by Claude Code

…opy truth
check:skill-frame-sync's COPIES table dropped from four entries to two
(internal-pm, published-pm) when the dev-side frame copies were retired —
the dev prompt now receives the frame pasted from the PM's own copy at
dispatch time instead of embedding one. Six comments across
dispatch-gates.mjs, check-skill-line-ratchet.mjs and
check-skills-token-ratchet.mjs still described the old four/two-copy state
as present-tense fact; this rewrites them to the current truth without
touching any behaviour, verdict line, or ceiling value (every affected
self-test prints the identical case count before and after).
Also moves dispatch-gates.mjs's `--changed` flag from a whole-invocation
usage-line alternative (implying it excludes --commands/--json) to the
position `<path> ...` occupies, matching how #15036 placed --residue —
`--changed --commands` is legal and answers, so the old line advertised a
refusal the argv chain does not make. New self-test pins lock the fix,
including a live CONTROL that the combination really works.
Fixes#14870
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019RfFHiRCSs3JXLK4cwcfox
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/sskip-changesetPR has no user-facing published change; bypasses the changeset gate

Projects

None yet

2 participants

@os-steve@claude
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

fix(pm): correct stale four/two-copy decision-frame comments to two-copy truth - #15105

Merged
os-steve merged 1 commit into
mainfrom
claude/issue-14870-frame-copies-comments
Sep 3, 2026
Merged

fix(pm): correct stale four/two-copy decision-frame comments to two-copy truth#15105
os-steve merged 1 commit into
mainfrom
claude/issue-14870-frame-copies-comments

Conversation

@os-steve

Copy link
Copy Markdown
Collaborator

Fixes#14870

What

check:skill-frame-sync's COPIES table dropped from four entries to two (internal-pm.claude/skills/pm-dispatch/SKILL.md, published-pmskills/objectstack-pm-dispatch/SKILL.md) once the dev-side frame copies were retired — the dispatch PM now pastes its own copy into the dev prompt's {decision_frame} slot at dispatch time instead of either side embedding one. Six comments across three gate scripts still described the old four/two-copy state as present-tense fact. This PR rewrites exactly those six sites to the current truth, plus one unrelated one-word usage-line fix folded in by the seat. Comment/string text only — no behaviour, no verdict line, no ceiling value changed anywhere.

The six sites (before → after)

scripts/pm/dispatch-gates.mjs

  1. MANDATORY_TIER_GLOBS why-string for .claude/agents/os-dev.md — kept the mandate (clause ① protocol semantics still holds), fixed only the false reason:
    • before: …every dispatched dev runs under it, and it carries an enforced copy of the decision frame
    • after: …every dispatched dev runs under it, and receives the decision frame the PM pastes into its prompt at dispatch time rather than carrying a copy of its own
  2. MANDATORY_TIER_GLOBS why-string for skills/objectstack-pm-dispatch/SKILL.md:
    • before: …the published PM skill carries two enforced copies of the decision frame (check:skill-frame-sync COPIES)…
    • after: …the published PM skill carries one enforced copy of the decision frame (check:skill-frame-sync COPIES)…
  3. Self-test assertion label only (the boolean it asserts is untouched):
    • before: t('the published PM skill (two enforced frame copies) is fable-mandatory', …)
    • after: t('the published PM skill (one enforced frame copy) is fable-mandatory', …)

Docblock line at the old :8468 ("every file carrying an enforced copy of the decision frame (the COPIES table…)") was checked against the ruling's "if it counts wrongly" condition and left untouched: it never asserts a specific number, and it already lists the dev-agent definition as a separate item rather than as a frame-copy carrier — so it doesn't count wrongly post-reduction.

scripts/pm/check-skill-line-ratchet.mjs — the os-dev.md ceiling ledger comment justifying its 466→469 raise:

scripts/check-skills-token-ratchet.mjs — three ledger comments for skills/objectstack-pm-dispatch/SKILL.md's history:

  • …and this file carries TWO enforced frame copies (check:skill-frame-sync COPIES)……and this file carries one enforced frame copy (check:skill-frame-sync COPIES)…
  • …this file carries TWO\n enforced frame copies (check:skill-frame-sync COPIES)……this file carries one\n enforced frame copy (check:skill-frame-sync COPIES)…
  • …the two gate-pinned copies of the decision frame stay in this file……the one gate-pinned copy of the decision frame stays in this file…
  • Checked the nearby "The largest of the five and the frame the other four are read under" sentence (:324) against the same "if it counts wrongly" condition: it's an unrelated sense of "frame" (the skill-package reading order, not the decision frame) and an unrelated "five"/"four" (SKILL.md package count, not COPIES) — left untouched, per the mechanism-assumptions note that this file's comment block counts other things ("the five rules/*.md rows" elsewhere) for reasons that have nothing to do with frame COPIES.
  • Ceiling values are unchanged throughout.

The one-word member (folded in per the seat's dispatch)

dispatch-gates.mjs's USAGE_LINE presented --changed as a whole-invocation alternative that takes no other flag (… [<path> ...] | --changed | --self-test), though --changed --commands is legal and answers (verified live: exit 0, 23 commands). Moved --changed into the position <path> ... occupies — the other path source it stands in for — matching how #15036 placed --residue inside the alternation it really combines with:

- ' [--repo owner/name] [<path> ...] | --changed | --self-test';
+ ' [--repo owner/name] [<path> ... | --changed] | --self-test';

Pinned beside the existing #15036 usage-line pins with three new self-test cases, including a live CONTROL that --changed --commands really answers (so the fix isn't cosmetic on a refusal that doesn't exist).

Tests

All run through the shared verify lock; self-test verdict lines quoted exactly, before/after byte-identical for the six comment-text sites.

  • node scripts/check-skill-frame-sync.mjs (unaffected file, sanity check both before and after): ✓ check-skill-frame-sync: 2 copies of the decision frame are structurally isomorphic across 2 files — unchanged.
  • node scripts/pm/check-skill-line-ratchet.mjs --self-test: before✓ check-skill-line-ratchet self-test: 136 cases pass.after✓ check-skill-line-ratchet self-test: 136 cases pass. (identical).
  • node scripts/pm/check-skill-line-ratchet.mjs (regular verdict, post-edit): green, ceilings/headroom unchanged (AGENTS.md 1157/1162, CLAUDE.md 36/86, one declared cross-file move, etc.) — no ratcheted file was touched by this PR.
  • node scripts/check-skills-token-ratchet.mjs --self-test: before✓ check-skills-token-ratchet self-test: 64 cases pass.after✓ check-skills-token-ratchet self-test: 64 cases pass. (identical).
  • node scripts/check-skills-token-ratchet.mjs (regular verdict): before/after diff on full output is empty (byte-identical) — ✓ check-skills-token-ratchet: 36 authored bundle file(s) within their ceilings; 11 generator-owned file(s) measured, not ratcheted.
  • node scripts/pm/dispatch-gates.mjs --self-test (the heavy one, run through the lock each time):
    • baseline (pre-edit, origin/main0f94cc7c): ✓ dispatch-gates self-test: 1319 cases pass.
    • final (all edits applied, working tree): ✓ dispatch-gates self-test: 1322 cases pass. — exactly +3, the new --changed usage-line pins (item 2); zero anywhere in either run.
  • pnpm check:pm-skill-ratchet (the wrapped gate form): green, same ceiling readings as the direct run above.
  • pnpm check:skill-frame-sync: ✓ check-skill-frame-sync self-test: 13 cases pass, plus 5 dispatch-gates declaration cases and 3 scan-population cases then ✓ check-skill-frame-sync: 2 copies … across 2 files — the 5 "dispatch-gates declaration cases" cross-check MANDATORY_TIER_GLOBS against COPIES and stayed green, confirming cross-file consistency after the edits.
  • node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack (live re-derivation against this diff, no paths passed): 28 families owed total (21 matched by path + 1 by change-kind convention [node scripts/pm/bare-root-worklist.mjs --self-test, triggered because this diff edits gate scripts] + 6 always-run whole-tree). All 28 run below.
  • Re-run on the committed HEAD cd303b24 (this PR's exact head, after push): node scripts/pm/dispatch-gates.mjs --self-test✓ dispatch-gates self-test: 1322 cases pass. (exit 0); node scripts/pm/check-skill-line-ratchet.mjs --self-test✓ check-skill-line-ratchet self-test: 136 cases pass. (exit 0, identical to baseline); node scripts/check-skills-token-ratchet.mjs --self-test✓ check-skills-token-ratchet self-test: 64 cases pass. (exit 0, identical to baseline).
  • npx eslint scripts/pm/dispatch-gates.mjs scripts/pm/check-skill-line-ratchet.mjs scripts/check-skills-token-ratchet.mjs --no-inline-config --format json: 3 files linted (count read from the JSON output itself), 0 errors, 0 warnings. Narrowed-but-proven per this repo's own lint config, which never enables type-aware linting for any file (eslint.config.mjs's own comment: "never enables type-aware linting … for ANY" file) — so this diff (comment/string edits in 3 files) cannot move any untouched file's verdict, and the full repo-wide pnpm lint is deferred to CI rather than re-run locally.

Full local gate table (all green, exit code captured before any pipe)

node scripts/check-ci-filter-parity.mjs — OK
node scripts/check-closing-keyword-parity.mjs --self-test — ✓ 24 assertions, 5 mutations driven red
node scripts/check-closing-keyword-parity.mjs — OK (5 files carrying the grammar, all registered)
node scripts/check-comment-mask-corpus.mjs — ✓ 5849 files, 0 disagree
node scripts/check-cross-package-test-inputs.mjs — OK
node scripts/check-self-test-wired.mjs --self-test — ✓ 7 batteries, 50 cases
node scripts/check-self-test-wired.mjs — ✓ 166/166 self-tests wired
node scripts/check-shard-attestation.mjs — ✓ 2 aggregates, 3 legs
node scripts/check-test-completeness.mjs — exit 3, PREREQUISITE NOT MET (NOT MEASURED, by design — no local turbo-test log; no vitest package touched)
node scripts/check-whole-set-label-write.mjs --self-test — ✓ all cases pass
node scripts/check-whole-set-label-write.mjs — ✓ (160 pins cleared)
node scripts/pm/bare-root-worklist.mjs --self-test — OK (66 rows, none stale/missing/contradicted) — convention-triggered by editing gate scripts
pnpm check:agent-test-spelling — EXIT 0
pnpm check:bash32-floor — ✓ 153 self-test cases; 26 shell files clean
pnpm check:cli-command-ids — ✓ 39 self-test cases; 324 literals resolve
pnpm check:cross-package-test-inputs — ✓ 117 self-test cases; OK
pnpm check:declared-population-live — ✓ 16 assertions; 190/240 families
pnpm check:entry-guard — ✓ 54 self-test cases; 206 files clean
pnpm check:nul-bytes — ✓ 75 self-test assertions; OK (8211 files, 0 raw control bytes)
pnpm check:parse-guard — EXIT 0
pnpm check:pm-dispatch-gates — = dispatch-gates.mjs --self-test (see above); wrapper confirmed equivalent from its own header
pnpm check:pm-skill-ratchet — green (see Tests above)
pnpm check:pnpm-filter-targets — ✓ 54+40 self-test assertions; 142/181 filters resolve
pnpm check:ratchet-remedy-authority — OK 186 scripts swept
pnpm check:refd-timer-probe — ✓ 11 self-test cases; 1 approved site
pnpm check:watch-hint-literal — ✓ 57 self-test cases; 48 declarations clean
node scripts/check-skills-token-ratchet.mjs --self-test — ✓ 64 cases pass (identical before/after)
node scripts/check-skills-token-ratchet.mjs — ✓ (identical before/after, diff empty)

Also ran ad hoc (not on the given list, but load-bearing for this PR):

node scripts/check-nul-bytes.mjs (targeted grep on the 3 touched files) — clean, no control bytes
git grep for stray "carries two enforced"/"four…COPIES" text repo-wide outside the 3 files — zero hits

Repo-wide pnpm lint and the changeset-triggered gate family were not run locally — this PR's surface is exactly three scripts/** files (no package publish, no .changeset/), so those either don't apply or are deferred to CI per the standard local-scope discipline.

Scope discipline

skip-changeset

This PR publishes nothing from any released package (scripts/pm/** and scripts/*.mjs tooling only) — applying the skip-changeset label per the repo's real mechanism, with an additive write and read-back.


Generated by Claude Code

…opy truth
check:skill-frame-sync's COPIES table dropped from four entries to two
(internal-pm, published-pm) when the dev-side frame copies were retired —
the dev prompt now receives the frame pasted from the PM's own copy at
dispatch time instead of embedding one. Six comments across
dispatch-gates.mjs, check-skill-line-ratchet.mjs and
check-skills-token-ratchet.mjs still described the old four/two-copy state
as present-tense fact; this rewrites them to the current truth without
touching any behaviour, verdict line, or ceiling value (every affected
self-test prints the identical case count before and after).
Also moves dispatch-gates.mjs's `--changed` flag from a whole-invocation
usage-line alternative (implying it excludes --commands/--json) to the
position `<path> ...` occupies, matching how #15036 placed --residue —
`--changed --commands` is legal and answers, so the old line advertised a
refusal the argv chain does not make. New self-test pins lock the fix,
including a live CONTROL that the combination really works.
Fixes#14870
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019RfFHiRCSs3JXLK4cwcfox
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/sskip-changesetPR has no user-facing published change; bypasses the changeset gate

Projects

None yet

2 participants

@os-steve@claude
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

fix(pm): correct stale four/two-copy decision-frame comments to two-copy truth - #15105

Merged
os-steve merged 1 commit into
mainfrom
claude/issue-14870-frame-copies-comments
Sep 3, 2026
Merged

fix(pm): correct stale four/two-copy decision-frame comments to two-copy truth#15105
os-steve merged 1 commit into
mainfrom
claude/issue-14870-frame-copies-comments

Conversation

@os-steve

Copy link
Copy Markdown
Collaborator

Fixes#14870

What

check:skill-frame-sync's COPIES table dropped from four entries to two (internal-pm.claude/skills/pm-dispatch/SKILL.md, published-pmskills/objectstack-pm-dispatch/SKILL.md) once the dev-side frame copies were retired — the dispatch PM now pastes its own copy into the dev prompt's {decision_frame} slot at dispatch time instead of either side embedding one. Six comments across three gate scripts still described the old four/two-copy state as present-tense fact. This PR rewrites exactly those six sites to the current truth, plus one unrelated one-word usage-line fix folded in by the seat. Comment/string text only — no behaviour, no verdict line, no ceiling value changed anywhere.

The six sites (before → after)

scripts/pm/dispatch-gates.mjs

  1. MANDATORY_TIER_GLOBS why-string for .claude/agents/os-dev.md — kept the mandate (clause ① protocol semantics still holds), fixed only the false reason:
    • before: …every dispatched dev runs under it, and it carries an enforced copy of the decision frame
    • after: …every dispatched dev runs under it, and receives the decision frame the PM pastes into its prompt at dispatch time rather than carrying a copy of its own
  2. MANDATORY_TIER_GLOBS why-string for skills/objectstack-pm-dispatch/SKILL.md:
    • before: …the published PM skill carries two enforced copies of the decision frame (check:skill-frame-sync COPIES)…
    • after: …the published PM skill carries one enforced copy of the decision frame (check:skill-frame-sync COPIES)…
  3. Self-test assertion label only (the boolean it asserts is untouched):
    • before: t('the published PM skill (two enforced frame copies) is fable-mandatory', …)
    • after: t('the published PM skill (one enforced frame copy) is fable-mandatory', …)

Docblock line at the old :8468 ("every file carrying an enforced copy of the decision frame (the COPIES table…)") was checked against the ruling's "if it counts wrongly" condition and left untouched: it never asserts a specific number, and it already lists the dev-agent definition as a separate item rather than as a frame-copy carrier — so it doesn't count wrongly post-reduction.

scripts/pm/check-skill-line-ratchet.mjs — the os-dev.md ceiling ledger comment justifying its 466→469 raise:

scripts/check-skills-token-ratchet.mjs — three ledger comments for skills/objectstack-pm-dispatch/SKILL.md's history:

  • …and this file carries TWO enforced frame copies (check:skill-frame-sync COPIES)……and this file carries one enforced frame copy (check:skill-frame-sync COPIES)…
  • …this file carries TWO\n enforced frame copies (check:skill-frame-sync COPIES)……this file carries one\n enforced frame copy (check:skill-frame-sync COPIES)…
  • …the two gate-pinned copies of the decision frame stay in this file……the one gate-pinned copy of the decision frame stays in this file…
  • Checked the nearby "The largest of the five and the frame the other four are read under" sentence (:324) against the same "if it counts wrongly" condition: it's an unrelated sense of "frame" (the skill-package reading order, not the decision frame) and an unrelated "five"/"four" (SKILL.md package count, not COPIES) — left untouched, per the mechanism-assumptions note that this file's comment block counts other things ("the five rules/*.md rows" elsewhere) for reasons that have nothing to do with frame COPIES.
  • Ceiling values are unchanged throughout.

The one-word member (folded in per the seat's dispatch)

dispatch-gates.mjs's USAGE_LINE presented --changed as a whole-invocation alternative that takes no other flag (… [<path> ...] | --changed | --self-test), though --changed --commands is legal and answers (verified live: exit 0, 23 commands). Moved --changed into the position <path> ... occupies — the other path source it stands in for — matching how #15036 placed --residue inside the alternation it really combines with:

- ' [--repo owner/name] [<path> ...] | --changed | --self-test';
+ ' [--repo owner/name] [<path> ... | --changed] | --self-test';

Pinned beside the existing #15036 usage-line pins with three new self-test cases, including a live CONTROL that --changed --commands really answers (so the fix isn't cosmetic on a refusal that doesn't exist).

Tests

All run through the shared verify lock; self-test verdict lines quoted exactly, before/after byte-identical for the six comment-text sites.

  • node scripts/check-skill-frame-sync.mjs (unaffected file, sanity check both before and after): ✓ check-skill-frame-sync: 2 copies of the decision frame are structurally isomorphic across 2 files — unchanged.
  • node scripts/pm/check-skill-line-ratchet.mjs --self-test: before✓ check-skill-line-ratchet self-test: 136 cases pass.after✓ check-skill-line-ratchet self-test: 136 cases pass. (identical).
  • node scripts/pm/check-skill-line-ratchet.mjs (regular verdict, post-edit): green, ceilings/headroom unchanged (AGENTS.md 1157/1162, CLAUDE.md 36/86, one declared cross-file move, etc.) — no ratcheted file was touched by this PR.
  • node scripts/check-skills-token-ratchet.mjs --self-test: before✓ check-skills-token-ratchet self-test: 64 cases pass.after✓ check-skills-token-ratchet self-test: 64 cases pass. (identical).
  • node scripts/check-skills-token-ratchet.mjs (regular verdict): before/after diff on full output is empty (byte-identical) — ✓ check-skills-token-ratchet: 36 authored bundle file(s) within their ceilings; 11 generator-owned file(s) measured, not ratcheted.
  • node scripts/pm/dispatch-gates.mjs --self-test (the heavy one, run through the lock each time):
    • baseline (pre-edit, origin/main0f94cc7c): ✓ dispatch-gates self-test: 1319 cases pass.
    • final (all edits applied, working tree): ✓ dispatch-gates self-test: 1322 cases pass. — exactly +3, the new --changed usage-line pins (item 2); zero anywhere in either run.
  • pnpm check:pm-skill-ratchet (the wrapped gate form): green, same ceiling readings as the direct run above.
  • pnpm check:skill-frame-sync: ✓ check-skill-frame-sync self-test: 13 cases pass, plus 5 dispatch-gates declaration cases and 3 scan-population cases then ✓ check-skill-frame-sync: 2 copies … across 2 files — the 5 "dispatch-gates declaration cases" cross-check MANDATORY_TIER_GLOBS against COPIES and stayed green, confirming cross-file consistency after the edits.
  • node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack (live re-derivation against this diff, no paths passed): 28 families owed total (21 matched by path + 1 by change-kind convention [node scripts/pm/bare-root-worklist.mjs --self-test, triggered because this diff edits gate scripts] + 6 always-run whole-tree). All 28 run below.
  • Re-run on the committed HEAD cd303b24 (this PR's exact head, after push): node scripts/pm/dispatch-gates.mjs --self-test✓ dispatch-gates self-test: 1322 cases pass. (exit 0); node scripts/pm/check-skill-line-ratchet.mjs --self-test✓ check-skill-line-ratchet self-test: 136 cases pass. (exit 0, identical to baseline); node scripts/check-skills-token-ratchet.mjs --self-test✓ check-skills-token-ratchet self-test: 64 cases pass. (exit 0, identical to baseline).
  • npx eslint scripts/pm/dispatch-gates.mjs scripts/pm/check-skill-line-ratchet.mjs scripts/check-skills-token-ratchet.mjs --no-inline-config --format json: 3 files linted (count read from the JSON output itself), 0 errors, 0 warnings. Narrowed-but-proven per this repo's own lint config, which never enables type-aware linting for any file (eslint.config.mjs's own comment: "never enables type-aware linting … for ANY" file) — so this diff (comment/string edits in 3 files) cannot move any untouched file's verdict, and the full repo-wide pnpm lint is deferred to CI rather than re-run locally.

Full local gate table (all green, exit code captured before any pipe)

node scripts/check-ci-filter-parity.mjs — OK
node scripts/check-closing-keyword-parity.mjs --self-test — ✓ 24 assertions, 5 mutations driven red
node scripts/check-closing-keyword-parity.mjs — OK (5 files carrying the grammar, all registered)
node scripts/check-comment-mask-corpus.mjs — ✓ 5849 files, 0 disagree
node scripts/check-cross-package-test-inputs.mjs — OK
node scripts/check-self-test-wired.mjs --self-test — ✓ 7 batteries, 50 cases
node scripts/check-self-test-wired.mjs — ✓ 166/166 self-tests wired
node scripts/check-shard-attestation.mjs — ✓ 2 aggregates, 3 legs
node scripts/check-test-completeness.mjs — exit 3, PREREQUISITE NOT MET (NOT MEASURED, by design — no local turbo-test log; no vitest package touched)
node scripts/check-whole-set-label-write.mjs --self-test — ✓ all cases pass
node scripts/check-whole-set-label-write.mjs — ✓ (160 pins cleared)
node scripts/pm/bare-root-worklist.mjs --self-test — OK (66 rows, none stale/missing/contradicted) — convention-triggered by editing gate scripts
pnpm check:agent-test-spelling — EXIT 0
pnpm check:bash32-floor — ✓ 153 self-test cases; 26 shell files clean
pnpm check:cli-command-ids — ✓ 39 self-test cases; 324 literals resolve
pnpm check:cross-package-test-inputs — ✓ 117 self-test cases; OK
pnpm check:declared-population-live — ✓ 16 assertions; 190/240 families
pnpm check:entry-guard — ✓ 54 self-test cases; 206 files clean
pnpm check:nul-bytes — ✓ 75 self-test assertions; OK (8211 files, 0 raw control bytes)
pnpm check:parse-guard — EXIT 0
pnpm check:pm-dispatch-gates — = dispatch-gates.mjs --self-test (see above); wrapper confirmed equivalent from its own header
pnpm check:pm-skill-ratchet — green (see Tests above)
pnpm check:pnpm-filter-targets — ✓ 54+40 self-test assertions; 142/181 filters resolve
pnpm check:ratchet-remedy-authority — OK 186 scripts swept
pnpm check:refd-timer-probe — ✓ 11 self-test cases; 1 approved site
pnpm check:watch-hint-literal — ✓ 57 self-test cases; 48 declarations clean
node scripts/check-skills-token-ratchet.mjs --self-test — ✓ 64 cases pass (identical before/after)
node scripts/check-skills-token-ratchet.mjs — ✓ (identical before/after, diff empty)

Also ran ad hoc (not on the given list, but load-bearing for this PR):

node scripts/check-nul-bytes.mjs (targeted grep on the 3 touched files) — clean, no control bytes
git grep for stray "carries two enforced"/"four…COPIES" text repo-wide outside the 3 files — zero hits

Repo-wide pnpm lint and the changeset-triggered gate family were not run locally — this PR's surface is exactly three scripts/** files (no package publish, no .changeset/), so those either don't apply or are deferred to CI per the standard local-scope discipline.

Scope discipline

skip-changeset

This PR publishes nothing from any released package (scripts/pm/** and scripts/*.mjs tooling only) — applying the skip-changeset label per the repo's real mechanism, with an additive write and read-back.


Generated by Claude Code

…opy truth
check:skill-frame-sync's COPIES table dropped from four entries to two
(internal-pm, published-pm) when the dev-side frame copies were retired —
the dev prompt now receives the frame pasted from the PM's own copy at
dispatch time instead of embedding one. Six comments across
dispatch-gates.mjs, check-skill-line-ratchet.mjs and
check-skills-token-ratchet.mjs still described the old four/two-copy state
as present-tense fact; this rewrites them to the current truth without
touching any behaviour, verdict line, or ceiling value (every affected
self-test prints the identical case count before and after).
Also moves dispatch-gates.mjs's `--changed` flag from a whole-invocation
usage-line alternative (implying it excludes --commands/--json) to the
position `<path> ...` occupies, matching how #15036 placed --residue —
`--changed --commands` is legal and answers, so the old line advertised a
refusal the argv chain does not make. New self-test pins lock the fix,
including a live CONTROL that the combination really works.
Fixes#14870
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019RfFHiRCSs3JXLK4cwcfox
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/sskip-changesetPR has no user-facing published change; bypasses the changeset gate

Projects

None yet

2 participants

@os-steve@claude
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

fix(pm): correct stale four/two-copy decision-frame comments to two-copy truth - #15105

Merged
os-steve merged 1 commit into
mainfrom
claude/issue-14870-frame-copies-comments
Sep 3, 2026
Merged

fix(pm): correct stale four/two-copy decision-frame comments to two-copy truth#15105
os-steve merged 1 commit into
mainfrom
claude/issue-14870-frame-copies-comments

Conversation

@os-steve

Copy link
Copy Markdown
Collaborator

Fixes#14870

What

check:skill-frame-sync's COPIES table dropped from four entries to two (internal-pm.claude/skills/pm-dispatch/SKILL.md, published-pmskills/objectstack-pm-dispatch/SKILL.md) once the dev-side frame copies were retired — the dispatch PM now pastes its own copy into the dev prompt's {decision_frame} slot at dispatch time instead of either side embedding one. Six comments across three gate scripts still described the old four/two-copy state as present-tense fact. This PR rewrites exactly those six sites to the current truth, plus one unrelated one-word usage-line fix folded in by the seat. Comment/string text only — no behaviour, no verdict line, no ceiling value changed anywhere.

The six sites (before → after)

scripts/pm/dispatch-gates.mjs

  1. MANDATORY_TIER_GLOBS why-string for .claude/agents/os-dev.md — kept the mandate (clause ① protocol semantics still holds), fixed only the false reason:
    • before: …every dispatched dev runs under it, and it carries an enforced copy of the decision frame
    • after: …every dispatched dev runs under it, and receives the decision frame the PM pastes into its prompt at dispatch time rather than carrying a copy of its own
  2. MANDATORY_TIER_GLOBS why-string for skills/objectstack-pm-dispatch/SKILL.md:
    • before: …the published PM skill carries two enforced copies of the decision frame (check:skill-frame-sync COPIES)…
    • after: …the published PM skill carries one enforced copy of the decision frame (check:skill-frame-sync COPIES)…
  3. Self-test assertion label only (the boolean it asserts is untouched):
    • before: t('the published PM skill (two enforced frame copies) is fable-mandatory', …)
    • after: t('the published PM skill (one enforced frame copy) is fable-mandatory', …)

Docblock line at the old :8468 ("every file carrying an enforced copy of the decision frame (the COPIES table…)") was checked against the ruling's "if it counts wrongly" condition and left untouched: it never asserts a specific number, and it already lists the dev-agent definition as a separate item rather than as a frame-copy carrier — so it doesn't count wrongly post-reduction.

scripts/pm/check-skill-line-ratchet.mjs — the os-dev.md ceiling ledger comment justifying its 466→469 raise:

scripts/check-skills-token-ratchet.mjs — three ledger comments for skills/objectstack-pm-dispatch/SKILL.md's history:

  • …and this file carries TWO enforced frame copies (check:skill-frame-sync COPIES)……and this file carries one enforced frame copy (check:skill-frame-sync COPIES)…
  • …this file carries TWO\n enforced frame copies (check:skill-frame-sync COPIES)……this file carries one\n enforced frame copy (check:skill-frame-sync COPIES)…
  • …the two gate-pinned copies of the decision frame stay in this file……the one gate-pinned copy of the decision frame stays in this file…
  • Checked the nearby "The largest of the five and the frame the other four are read under" sentence (:324) against the same "if it counts wrongly" condition: it's an unrelated sense of "frame" (the skill-package reading order, not the decision frame) and an unrelated "five"/"four" (SKILL.md package count, not COPIES) — left untouched, per the mechanism-assumptions note that this file's comment block counts other things ("the five rules/*.md rows" elsewhere) for reasons that have nothing to do with frame COPIES.
  • Ceiling values are unchanged throughout.

The one-word member (folded in per the seat's dispatch)

dispatch-gates.mjs's USAGE_LINE presented --changed as a whole-invocation alternative that takes no other flag (… [<path> ...] | --changed | --self-test), though --changed --commands is legal and answers (verified live: exit 0, 23 commands). Moved --changed into the position <path> ... occupies — the other path source it stands in for — matching how #15036 placed --residue inside the alternation it really combines with:

- ' [--repo owner/name] [<path> ...] | --changed | --self-test';
+ ' [--repo owner/name] [<path> ... | --changed] | --self-test';

Pinned beside the existing #15036 usage-line pins with three new self-test cases, including a live CONTROL that --changed --commands really answers (so the fix isn't cosmetic on a refusal that doesn't exist).

Tests

All run through the shared verify lock; self-test verdict lines quoted exactly, before/after byte-identical for the six comment-text sites.

  • node scripts/check-skill-frame-sync.mjs (unaffected file, sanity check both before and after): ✓ check-skill-frame-sync: 2 copies of the decision frame are structurally isomorphic across 2 files — unchanged.
  • node scripts/pm/check-skill-line-ratchet.mjs --self-test: before✓ check-skill-line-ratchet self-test: 136 cases pass.after✓ check-skill-line-ratchet self-test: 136 cases pass. (identical).
  • node scripts/pm/check-skill-line-ratchet.mjs (regular verdict, post-edit): green, ceilings/headroom unchanged (AGENTS.md 1157/1162, CLAUDE.md 36/86, one declared cross-file move, etc.) — no ratcheted file was touched by this PR.
  • node scripts/check-skills-token-ratchet.mjs --self-test: before✓ check-skills-token-ratchet self-test: 64 cases pass.after✓ check-skills-token-ratchet self-test: 64 cases pass. (identical).
  • node scripts/check-skills-token-ratchet.mjs (regular verdict): before/after diff on full output is empty (byte-identical) — ✓ check-skills-token-ratchet: 36 authored bundle file(s) within their ceilings; 11 generator-owned file(s) measured, not ratcheted.
  • node scripts/pm/dispatch-gates.mjs --self-test (the heavy one, run through the lock each time):
    • baseline (pre-edit, origin/main0f94cc7c): ✓ dispatch-gates self-test: 1319 cases pass.
    • final (all edits applied, working tree): ✓ dispatch-gates self-test: 1322 cases pass. — exactly +3, the new --changed usage-line pins (item 2); zero anywhere in either run.
  • pnpm check:pm-skill-ratchet (the wrapped gate form): green, same ceiling readings as the direct run above.
  • pnpm check:skill-frame-sync: ✓ check-skill-frame-sync self-test: 13 cases pass, plus 5 dispatch-gates declaration cases and 3 scan-population cases then ✓ check-skill-frame-sync: 2 copies … across 2 files — the 5 "dispatch-gates declaration cases" cross-check MANDATORY_TIER_GLOBS against COPIES and stayed green, confirming cross-file consistency after the edits.
  • node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack (live re-derivation against this diff, no paths passed): 28 families owed total (21 matched by path + 1 by change-kind convention [node scripts/pm/bare-root-worklist.mjs --self-test, triggered because this diff edits gate scripts] + 6 always-run whole-tree). All 28 run below.
  • Re-run on the committed HEAD cd303b24 (this PR's exact head, after push): node scripts/pm/dispatch-gates.mjs --self-test✓ dispatch-gates self-test: 1322 cases pass. (exit 0); node scripts/pm/check-skill-line-ratchet.mjs --self-test✓ check-skill-line-ratchet self-test: 136 cases pass. (exit 0, identical to baseline); node scripts/check-skills-token-ratchet.mjs --self-test✓ check-skills-token-ratchet self-test: 64 cases pass. (exit 0, identical to baseline).
  • npx eslint scripts/pm/dispatch-gates.mjs scripts/pm/check-skill-line-ratchet.mjs scripts/check-skills-token-ratchet.mjs --no-inline-config --format json: 3 files linted (count read from the JSON output itself), 0 errors, 0 warnings. Narrowed-but-proven per this repo's own lint config, which never enables type-aware linting for any file (eslint.config.mjs's own comment: "never enables type-aware linting … for ANY" file) — so this diff (comment/string edits in 3 files) cannot move any untouched file's verdict, and the full repo-wide pnpm lint is deferred to CI rather than re-run locally.

Full local gate table (all green, exit code captured before any pipe)

node scripts/check-ci-filter-parity.mjs — OK
node scripts/check-closing-keyword-parity.mjs --self-test — ✓ 24 assertions, 5 mutations driven red
node scripts/check-closing-keyword-parity.mjs — OK (5 files carrying the grammar, all registered)
node scripts/check-comment-mask-corpus.mjs — ✓ 5849 files, 0 disagree
node scripts/check-cross-package-test-inputs.mjs — OK
node scripts/check-self-test-wired.mjs --self-test — ✓ 7 batteries, 50 cases
node scripts/check-self-test-wired.mjs — ✓ 166/166 self-tests wired
node scripts/check-shard-attestation.mjs — ✓ 2 aggregates, 3 legs
node scripts/check-test-completeness.mjs — exit 3, PREREQUISITE NOT MET (NOT MEASURED, by design — no local turbo-test log; no vitest package touched)
node scripts/check-whole-set-label-write.mjs --self-test — ✓ all cases pass
node scripts/check-whole-set-label-write.mjs — ✓ (160 pins cleared)
node scripts/pm/bare-root-worklist.mjs --self-test — OK (66 rows, none stale/missing/contradicted) — convention-triggered by editing gate scripts
pnpm check:agent-test-spelling — EXIT 0
pnpm check:bash32-floor — ✓ 153 self-test cases; 26 shell files clean
pnpm check:cli-command-ids — ✓ 39 self-test cases; 324 literals resolve
pnpm check:cross-package-test-inputs — ✓ 117 self-test cases; OK
pnpm check:declared-population-live — ✓ 16 assertions; 190/240 families
pnpm check:entry-guard — ✓ 54 self-test cases; 206 files clean
pnpm check:nul-bytes — ✓ 75 self-test assertions; OK (8211 files, 0 raw control bytes)
pnpm check:parse-guard — EXIT 0
pnpm check:pm-dispatch-gates — = dispatch-gates.mjs --self-test (see above); wrapper confirmed equivalent from its own header
pnpm check:pm-skill-ratchet — green (see Tests above)
pnpm check:pnpm-filter-targets — ✓ 54+40 self-test assertions; 142/181 filters resolve
pnpm check:ratchet-remedy-authority — OK 186 scripts swept
pnpm check:refd-timer-probe — ✓ 11 self-test cases; 1 approved site
pnpm check:watch-hint-literal — ✓ 57 self-test cases; 48 declarations clean
node scripts/check-skills-token-ratchet.mjs --self-test — ✓ 64 cases pass (identical before/after)
node scripts/check-skills-token-ratchet.mjs — ✓ (identical before/after, diff empty)

Also ran ad hoc (not on the given list, but load-bearing for this PR):

node scripts/check-nul-bytes.mjs (targeted grep on the 3 touched files) — clean, no control bytes
git grep for stray "carries two enforced"/"four…COPIES" text repo-wide outside the 3 files — zero hits

Repo-wide pnpm lint and the changeset-triggered gate family were not run locally — this PR's surface is exactly three scripts/** files (no package publish, no .changeset/), so those either don't apply or are deferred to CI per the standard local-scope discipline.

Scope discipline

skip-changeset

This PR publishes nothing from any released package (scripts/pm/** and scripts/*.mjs tooling only) — applying the skip-changeset label per the repo's real mechanism, with an additive write and read-back.


Generated by Claude Code

…opy truth
check:skill-frame-sync's COPIES table dropped from four entries to two
(internal-pm, published-pm) when the dev-side frame copies were retired —
the dev prompt now receives the frame pasted from the PM's own copy at
dispatch time instead of embedding one. Six comments across
dispatch-gates.mjs, check-skill-line-ratchet.mjs and
check-skills-token-ratchet.mjs still described the old four/two-copy state
as present-tense fact; this rewrites them to the current truth without
touching any behaviour, verdict line, or ceiling value (every affected
self-test prints the identical case count before and after).
Also moves dispatch-gates.mjs's `--changed` flag from a whole-invocation
usage-line alternative (implying it excludes --commands/--json) to the
position `<path> ...` occupies, matching how #15036 placed --residue —
`--changed --commands` is legal and answers, so the old line advertised a
refusal the argv chain does not make. New self-test pins lock the fix,
including a live CONTROL that the combination really works.
Fixes#14870
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019RfFHiRCSs3JXLK4cwcfox
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/sskip-changesetPR has no user-facing published change; bypasses the changeset gate

Projects

None yet

2 participants

@os-steve@claude
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

fix(pm): correct stale four/two-copy decision-frame comments to two-copy truth - #15105

Merged
os-steve merged 1 commit into
mainfrom
claude/issue-14870-frame-copies-comments
Sep 3, 2026
Merged

fix(pm): correct stale four/two-copy decision-frame comments to two-copy truth#15105
os-steve merged 1 commit into
mainfrom
claude/issue-14870-frame-copies-comments

Conversation

@os-steve

Copy link
Copy Markdown
Collaborator

Fixes#14870

What

check:skill-frame-sync's COPIES table dropped from four entries to two (internal-pm.claude/skills/pm-dispatch/SKILL.md, published-pmskills/objectstack-pm-dispatch/SKILL.md) once the dev-side frame copies were retired — the dispatch PM now pastes its own copy into the dev prompt's {decision_frame} slot at dispatch time instead of either side embedding one. Six comments across three gate scripts still described the old four/two-copy state as present-tense fact. This PR rewrites exactly those six sites to the current truth, plus one unrelated one-word usage-line fix folded in by the seat. Comment/string text only — no behaviour, no verdict line, no ceiling value changed anywhere.

The six sites (before → after)

scripts/pm/dispatch-gates.mjs

  1. MANDATORY_TIER_GLOBS why-string for .claude/agents/os-dev.md — kept the mandate (clause ① protocol semantics still holds), fixed only the false reason:
    • before: …every dispatched dev runs under it, and it carries an enforced copy of the decision frame
    • after: …every dispatched dev runs under it, and receives the decision frame the PM pastes into its prompt at dispatch time rather than carrying a copy of its own
  2. MANDATORY_TIER_GLOBS why-string for skills/objectstack-pm-dispatch/SKILL.md:
    • before: …the published PM skill carries two enforced copies of the decision frame (check:skill-frame-sync COPIES)…
    • after: …the published PM skill carries one enforced copy of the decision frame (check:skill-frame-sync COPIES)…
  3. Self-test assertion label only (the boolean it asserts is untouched):
    • before: t('the published PM skill (two enforced frame copies) is fable-mandatory', …)
    • after: t('the published PM skill (one enforced frame copy) is fable-mandatory', …)

Docblock line at the old :8468 ("every file carrying an enforced copy of the decision frame (the COPIES table…)") was checked against the ruling's "if it counts wrongly" condition and left untouched: it never asserts a specific number, and it already lists the dev-agent definition as a separate item rather than as a frame-copy carrier — so it doesn't count wrongly post-reduction.

scripts/pm/check-skill-line-ratchet.mjs — the os-dev.md ceiling ledger comment justifying its 466→469 raise:

scripts/check-skills-token-ratchet.mjs — three ledger comments for skills/objectstack-pm-dispatch/SKILL.md's history:

  • …and this file carries TWO enforced frame copies (check:skill-frame-sync COPIES)……and this file carries one enforced frame copy (check:skill-frame-sync COPIES)…
  • …this file carries TWO\n enforced frame copies (check:skill-frame-sync COPIES)……this file carries one\n enforced frame copy (check:skill-frame-sync COPIES)…
  • …the two gate-pinned copies of the decision frame stay in this file……the one gate-pinned copy of the decision frame stays in this file…
  • Checked the nearby "The largest of the five and the frame the other four are read under" sentence (:324) against the same "if it counts wrongly" condition: it's an unrelated sense of "frame" (the skill-package reading order, not the decision frame) and an unrelated "five"/"four" (SKILL.md package count, not COPIES) — left untouched, per the mechanism-assumptions note that this file's comment block counts other things ("the five rules/*.md rows" elsewhere) for reasons that have nothing to do with frame COPIES.
  • Ceiling values are unchanged throughout.

The one-word member (folded in per the seat's dispatch)

dispatch-gates.mjs's USAGE_LINE presented --changed as a whole-invocation alternative that takes no other flag (… [<path> ...] | --changed | --self-test), though --changed --commands is legal and answers (verified live: exit 0, 23 commands). Moved --changed into the position <path> ... occupies — the other path source it stands in for — matching how #15036 placed --residue inside the alternation it really combines with:

- ' [--repo owner/name] [<path> ...] | --changed | --self-test';
+ ' [--repo owner/name] [<path> ... | --changed] | --self-test';

Pinned beside the existing #15036 usage-line pins with three new self-test cases, including a live CONTROL that --changed --commands really answers (so the fix isn't cosmetic on a refusal that doesn't exist).

Tests

All run through the shared verify lock; self-test verdict lines quoted exactly, before/after byte-identical for the six comment-text sites.

  • node scripts/check-skill-frame-sync.mjs (unaffected file, sanity check both before and after): ✓ check-skill-frame-sync: 2 copies of the decision frame are structurally isomorphic across 2 files — unchanged.
  • node scripts/pm/check-skill-line-ratchet.mjs --self-test: before✓ check-skill-line-ratchet self-test: 136 cases pass.after✓ check-skill-line-ratchet self-test: 136 cases pass. (identical).
  • node scripts/pm/check-skill-line-ratchet.mjs (regular verdict, post-edit): green, ceilings/headroom unchanged (AGENTS.md 1157/1162, CLAUDE.md 36/86, one declared cross-file move, etc.) — no ratcheted file was touched by this PR.
  • node scripts/check-skills-token-ratchet.mjs --self-test: before✓ check-skills-token-ratchet self-test: 64 cases pass.after✓ check-skills-token-ratchet self-test: 64 cases pass. (identical).
  • node scripts/check-skills-token-ratchet.mjs (regular verdict): before/after diff on full output is empty (byte-identical) — ✓ check-skills-token-ratchet: 36 authored bundle file(s) within their ceilings; 11 generator-owned file(s) measured, not ratcheted.
  • node scripts/pm/dispatch-gates.mjs --self-test (the heavy one, run through the lock each time):
    • baseline (pre-edit, origin/main0f94cc7c): ✓ dispatch-gates self-test: 1319 cases pass.
    • final (all edits applied, working tree): ✓ dispatch-gates self-test: 1322 cases pass. — exactly +3, the new --changed usage-line pins (item 2); zero anywhere in either run.
  • pnpm check:pm-skill-ratchet (the wrapped gate form): green, same ceiling readings as the direct run above.
  • pnpm check:skill-frame-sync: ✓ check-skill-frame-sync self-test: 13 cases pass, plus 5 dispatch-gates declaration cases and 3 scan-population cases then ✓ check-skill-frame-sync: 2 copies … across 2 files — the 5 "dispatch-gates declaration cases" cross-check MANDATORY_TIER_GLOBS against COPIES and stayed green, confirming cross-file consistency after the edits.
  • node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack (live re-derivation against this diff, no paths passed): 28 families owed total (21 matched by path + 1 by change-kind convention [node scripts/pm/bare-root-worklist.mjs --self-test, triggered because this diff edits gate scripts] + 6 always-run whole-tree). All 28 run below.
  • Re-run on the committed HEAD cd303b24 (this PR's exact head, after push): node scripts/pm/dispatch-gates.mjs --self-test✓ dispatch-gates self-test: 1322 cases pass. (exit 0); node scripts/pm/check-skill-line-ratchet.mjs --self-test✓ check-skill-line-ratchet self-test: 136 cases pass. (exit 0, identical to baseline); node scripts/check-skills-token-ratchet.mjs --self-test✓ check-skills-token-ratchet self-test: 64 cases pass. (exit 0, identical to baseline).
  • npx eslint scripts/pm/dispatch-gates.mjs scripts/pm/check-skill-line-ratchet.mjs scripts/check-skills-token-ratchet.mjs --no-inline-config --format json: 3 files linted (count read from the JSON output itself), 0 errors, 0 warnings. Narrowed-but-proven per this repo's own lint config, which never enables type-aware linting for any file (eslint.config.mjs's own comment: "never enables type-aware linting … for ANY" file) — so this diff (comment/string edits in 3 files) cannot move any untouched file's verdict, and the full repo-wide pnpm lint is deferred to CI rather than re-run locally.

Full local gate table (all green, exit code captured before any pipe)

node scripts/check-ci-filter-parity.mjs — OK
node scripts/check-closing-keyword-parity.mjs --self-test — ✓ 24 assertions, 5 mutations driven red
node scripts/check-closing-keyword-parity.mjs — OK (5 files carrying the grammar, all registered)
node scripts/check-comment-mask-corpus.mjs — ✓ 5849 files, 0 disagree
node scripts/check-cross-package-test-inputs.mjs — OK
node scripts/check-self-test-wired.mjs --self-test — ✓ 7 batteries, 50 cases
node scripts/check-self-test-wired.mjs — ✓ 166/166 self-tests wired
node scripts/check-shard-attestation.mjs — ✓ 2 aggregates, 3 legs
node scripts/check-test-completeness.mjs — exit 3, PREREQUISITE NOT MET (NOT MEASURED, by design — no local turbo-test log; no vitest package touched)
node scripts/check-whole-set-label-write.mjs --self-test — ✓ all cases pass
node scripts/check-whole-set-label-write.mjs — ✓ (160 pins cleared)
node scripts/pm/bare-root-worklist.mjs --self-test — OK (66 rows, none stale/missing/contradicted) — convention-triggered by editing gate scripts
pnpm check:agent-test-spelling — EXIT 0
pnpm check:bash32-floor — ✓ 153 self-test cases; 26 shell files clean
pnpm check:cli-command-ids — ✓ 39 self-test cases; 324 literals resolve
pnpm check:cross-package-test-inputs — ✓ 117 self-test cases; OK
pnpm check:declared-population-live — ✓ 16 assertions; 190/240 families
pnpm check:entry-guard — ✓ 54 self-test cases; 206 files clean
pnpm check:nul-bytes — ✓ 75 self-test assertions; OK (8211 files, 0 raw control bytes)
pnpm check:parse-guard — EXIT 0
pnpm check:pm-dispatch-gates — = dispatch-gates.mjs --self-test (see above); wrapper confirmed equivalent from its own header
pnpm check:pm-skill-ratchet — green (see Tests above)
pnpm check:pnpm-filter-targets — ✓ 54+40 self-test assertions; 142/181 filters resolve
pnpm check:ratchet-remedy-authority — OK 186 scripts swept
pnpm check:refd-timer-probe — ✓ 11 self-test cases; 1 approved site
pnpm check:watch-hint-literal — ✓ 57 self-test cases; 48 declarations clean
node scripts/check-skills-token-ratchet.mjs --self-test — ✓ 64 cases pass (identical before/after)
node scripts/check-skills-token-ratchet.mjs — ✓ (identical before/after, diff empty)

Also ran ad hoc (not on the given list, but load-bearing for this PR):

node scripts/check-nul-bytes.mjs (targeted grep on the 3 touched files) — clean, no control bytes
git grep for stray "carries two enforced"/"four…COPIES" text repo-wide outside the 3 files — zero hits

Repo-wide pnpm lint and the changeset-triggered gate family were not run locally — this PR's surface is exactly three scripts/** files (no package publish, no .changeset/), so those either don't apply or are deferred to CI per the standard local-scope discipline.

Scope discipline

skip-changeset

This PR publishes nothing from any released package (scripts/pm/** and scripts/*.mjs tooling only) — applying the skip-changeset label per the repo's real mechanism, with an additive write and read-back.


Generated by Claude Code

…opy truth
check:skill-frame-sync's COPIES table dropped from four entries to two
(internal-pm, published-pm) when the dev-side frame copies were retired —
the dev prompt now receives the frame pasted from the PM's own copy at
dispatch time instead of embedding one. Six comments across
dispatch-gates.mjs, check-skill-line-ratchet.mjs and
check-skills-token-ratchet.mjs still described the old four/two-copy state
as present-tense fact; this rewrites them to the current truth without
touching any behaviour, verdict line, or ceiling value (every affected
self-test prints the identical case count before and after).
Also moves dispatch-gates.mjs's `--changed` flag from a whole-invocation
usage-line alternative (implying it excludes --commands/--json) to the
position `<path> ...` occupies, matching how #15036 placed --residue —
`--changed --commands` is legal and answers, so the old line advertised a
refusal the argv chain does not make. New self-test pins lock the fix,
including a live CONTROL that the combination really works.
Fixes#14870
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019RfFHiRCSs3JXLK4cwcfox
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/sskip-changesetPR has no user-facing published change; bypasses the changeset gate

Projects

None yet

2 participants

@os-steve@claude