Skip to content

war-strategy structure lock — two-site location-anchored lock for plan-literal-lint.mjs - #1077

Merged
Ljferrer merged 4 commits into
masterfrom
dev/2026-07-22-war-strategy-structure-lock
Jul 24, 2026
Merged

war-strategy structure lock — two-site location-anchored lock for plan-literal-lint.mjs#1077
Ljferrer merged 4 commits into
masterfrom
dev/2026-07-22-war-strategy-structure-lock

Conversation

@Ljferrer

Copy link
Copy Markdown
Owner

Campaign plan 9 of 9 (FINAL, run-resilience-and-hardening, stack-and-plow ADR 0011). Stacked on plan 8's branch dev/2026-07-22-cli-main-guard-normalization (PR #1073).

What

Replaces the single bare check_f 'plan-literal-lint.mjs' lock in skills/war-strategy/war-strategy-structure.test.sh with two location-anchored check_f fragments (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.

  • Phase 1 (merge ed4a03f): task 1.1 (two anchored locks + in-task RED discrimination probe) + task 1.2 (dated lesson closure note). Structure test green with both new ok - lines; full gate 894/894.
  • No release phase — dev-side test-granularity fix + lesson body note; no runtime/version change (all four version slots untouched at v0.14.56).

Source

  • Plan: docs/plans/2026-07-22-war-strategy-structure-lock.md
  • Spec: docs/specs/2026-07-22-war-strategy-structure-lock-design.md
  • Red-team: docs/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's grep is a ugrep shim while /usr/bin/grep confirms 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

WAR Test and others added 4 commits July 23, 2026 14:50
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
@Ljferrer
Ljferrer merged commit 1b2c238 into master Jul 24, 2026
1 check passed
@Ljferrer
Ljferrer deleted the dev/2026-07-22-war-strategy-structure-lock branch July 24, 2026 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant