war-strategy structure lock — two-site location-anchored lock for plan-literal-lint.mjs - #1077
Merged
Merged
Conversation
9/9 probes on-target; lock-granularity discrimination proven (each anchor reds independently on its site's deletion; old bare lock stayed green). One Minor patched: hardened the Task 1.2 grep-c caveat — the env's grep is a ugrep shim (-oc counts occurrences), real BSD grep /usr/bin/grep confirms the caveat (-oc=line count); reworded to name /usr/bin/grep + the ugrep gotcha. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
….mjs (#1075) The structure test pinned SKILL.md's two ratified plan-literal-lint.mjs sites (§2 convention block, §4 lint-the-authored-plan step) with a single bare `check_f 'plan-literal-lint.mjs'` lock. Because whole-file presence is satisfied by either occurrence alone, deleting one site stayed green via the other — either ratified requirement could silently regress. Replace the bare lock with two location-unique check_f fragments, one per site, each carrying a per-site comment so a future red run names which mention regressed. Matches the in-file requiresPackaging two-site precedent; no new helper, no occurrence-count check. SKILL.md is read, never written. Both fragments verified grep -cF = 1 against SKILL.md (§2 L106, §4 L195); in-task RED probe (scratch copies) confirms each site now reds on its own anchor independently where the old bare lock stayed green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
#1076) Appends a 2026-07-23 closure paragraph directly after the Verification note in structure-test-check-f-locks-presence-anywhere-not-intended-location.md: the plan-literal-lint.mjs two-site duplicate (§2 convention block + §4 conversion-flow step) is confirmed present on the integrated tree and now closed by two location-unique check_f anchors (issue #991), superseding the note's earlier stale-worktree "not found" reading. Mechanism-level guidance (options a/b) stays live, with the added grep -c line-count-not-occurrence-count caveat (red-team adjudication 1, docs/red-team/2026-07-22-war-strategy-structure-lock.md). Body-only edit: description, metadata.keywords, and provenance (code-verified) are byte-unchanged. Validated via `node skills/_shared/war-memory.mjs lint docs/learnings/` (clean).
Base automatically changed from
dev/2026-07-22-cli-main-guard-normalization
to
master
July 24, 2026 03:35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Campaign plan 9 of 9 (FINAL,
run-resilience-and-hardening, stack-and-plow ADR 0011). Stacked on plan 8's branchdev/2026-07-22-cli-main-guard-normalization(PR #1073).What
Replaces the single bare
check_f 'plan-literal-lint.mjs'lock inskills/war-strategy/war-strategy-structure.test.shwith two location-anchoredcheck_ffragments (one per ratified SKILL.md site — the §2 convention mention and the §4 lint step), so deleting either mention reds its own anchor instead of hiding green behind the other. Closes the origin lesson's stale verification note with a dated #991 instance-closure paragraph.ed4a03f): task 1.1 (two anchored locks + in-task RED discrimination probe) + task 1.2 (dated lesson closure note). Structure test green with both newok -lines; full gate 894/894.Source
docs/plans/2026-07-22-war-strategy-structure-lock.mddocs/specs/2026-07-22-war-strategy-structure-lock-design.mddocs/red-team/2026-07-22-war-strategy-structure-lock.md(CLEARED-WITH-NOTES; the grep-c caveat was hardened after the self-confound gate found this env'sgrepis a ugrep shim while/usr/bin/grepconfirms the caveat)Deferred validations (backstops)
None — every validation runs in-task (uniqueness counts, RED discrimination probe, structure-test green, redaction lint, frontmatter byte-identity) or at the refiner gate (full shell suite via self-discovery).
Merge order: this is the top of the stack — merge PR #1073 (plan 8) before this one; the full bottom-up order is #1008 → #1018 → #1024 → #1042 → #1052 → #1061 → #1067 → #1073 → this PR.
🤖 Generated with Claude Code