Skip to content

fix(tick-shard-paths): final cleanup — 2 file fixes + trim 22 zombie baseline entries (24 → 2)#4533

Merged
AceHack merged 1 commit into
mainfrom
fix/grandfathered-tick-shard-paths-1823z-2026-05-21
May 21, 2026
Merged

fix(tick-shard-paths): final cleanup — 2 file fixes + trim 22 zombie baseline entries (24 → 2)#4533
AceHack merged 1 commit into
mainfrom
fix/grandfathered-tick-shard-paths-1823z-2026-05-21

Conversation

@AceHack
Copy link
Copy Markdown
Member

@AceHack AceHack commented May 21, 2026

Summary

Final substantive PR in the slow-steady audit-baseline cleanup arc (#4524 / #4525 / #4526 / #4531 prior).

File fixes (2 .claude/rules paths)

  • 2115Z.md:63refresh-world-model-poll-pr-gate.md link: 5 .. → 6 ..
  • 2119Z.md:62blocked-green-ci-investigate-threads.md link: 5 .. → 6 ..

Same one-too-few-.. bug class.

Baseline trim — 22 zombie entries removed (24 → 2)

After running audit-tool --json and computing the intersection of baseline-entries × current-findings, only 2 baseline entries correspond to ACTUAL violations on disk. The other 22 were:

  • 16 zombies pointing to nonexistent files — shards from 2026-05-18 (0436Z, 0451Z, 1810Z, 1823Z, 1829Z, 1924Z, 1940Z) that don't exist on main. Either never landed OR were deleted at some point and the baseline wasn't trimmed correspondingly.
  • 6 dead entries pointing to files where the violation has been fixed — including 2012Z, 2029Z, 2040Z, and 0007Z-c which were presumably fixed in other PRs that didn't trim baseline.

This means the baseline was carrying 22 entries of dead weight (91% of baseline was zombies). The Cost-aware-tier discipline of my prior PRs meant each one only trimmed entries for the file it was actively fixing; this PR does the sweep.

What remains in baseline (2 real findings)

  • 0852Z.md:1 — link to a research file with possibly-renamed path; needs investigation in a future PR (different bug class: target file may exist at a different path)
  • 2158Z.md:29docs/foo.md inside double-backtick code span; this is a false positive of the audit tool (it doesn't skip nested backticks correctly). Audit-tool fix > file fix.

Test plan

  • Local audit-tick-shard-relative-paths.ts --enforce --baseline reports 2 broken relative-path links (2 grandfathered by baseline, 0 new)
  • Baseline contains exactly the 2 entries that correspond to real on-disk findings (computed via findings × baseline intersection)
  • No false-negative risk: the trim was DERIVED from audit-tool --json output, not hand-curated

Cleanup arc total

PR Baseline Active grandfathered
Pre-arc 39 19
Post-#4524 39 19
Post-#4525 34 14
Post-#4526 31 11
Post-#4522 (zombies re-added) 33 11
Post-#4531 24 4
Post-this 2 2

🤖 Generated with Claude Code

…baseline entries (24 → 2)

Final substantive PR in the slow-steady audit-baseline cleanup arc
(#4524 / #4525 / #4526 / #4531 prior).

## File fixes (2 .claude/rules paths)

- 2115Z.md:63 — `refresh-world-model-poll-pr-gate.md` link: 5 '..' → 6 '..'
- 2119Z.md:62 — `blocked-green-ci-investigate-threads.md` link: 5 '..' → 6 '..'

Same one-too-few-`..` bug class.

## Baseline trim — 22 zombie entries removed (24 → 2)

After running `audit-tool --json` and computing the intersection of
baseline-entries × current-findings, only 2 baseline entries correspond
to ACTUAL violations on disk. The other 22 referenced:

- **16 zombies pointing to nonexistent files** — shards from 2026-05-18
  (0436Z, 0451Z, 1810Z, 1823Z, 1829Z, 1924Z, 1940Z) that don't exist
  on main. Either never landed OR were deleted at some point and the
  baseline wasn't trimmed correspondingly.
- **6 dead entries pointing to files where the violation has been
  fixed** — including 2012Z, 2029Z, 2040Z, and 0007Z-c which were
  presumably fixed in other PRs that didn't trim baseline.

This means the baseline was carrying 22 entries of dead weight
(91% of baseline was zombies). The Cost-aware tier discipline meant
each prior PR only trimmed entries for the file it was actively
fixing; never did a sweep.

## What remains in baseline (2 real findings)

- 0852Z.md:1 — link to a research file with possibly-renamed path; needs
  investigation in a future PR (different bug class: target file may
  exist at a different path)
- 2158Z.md:29 — `docs/foo.md` inside double-backtick code span; this is
  a false positive of the audit tool (it doesn't skip nested backticks
  correctly). Audit-tool fix > file fix.

## Test plan

- [x] Local `audit-tick-shard-relative-paths.ts --enforce --baseline` reports `2 broken relative-path links (2 grandfathered by baseline, 0 new)`
- [x] Baseline contains exactly the 2 entries that correspond to real on-disk findings (computed via intersection)
- [x] No false-negative risk: the trim was DERIVED from `audit-tool --json` output, not hand-curated

Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 21, 2026 12:47
@AceHack AceHack enabled auto-merge (squash) May 21, 2026 12:48
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR completes the tick-shard relative-path audit/baseline cleanup by fixing two remaining broken .claude/rules links in tick shards and trimming the audit baseline down to only the two entries that still correspond to current on-disk findings.

Changes:

  • Fix 2 tick-shard links by correcting .claude/rules/... relative path depth from 5 .. to 6 ...
  • Remove 22 stale (“zombie” / already-fixed) entries from audit-tick-shard-relative-paths.baseline.json, leaving 2 valid baseline entries.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
tools/hygiene/audit-tick-shard-relative-paths.baseline.json Trim baseline entries from 24 → 2, keeping only entries that still match current findings.
docs/hygiene-history/ticks/2026/05/18/2119Z.md Fix .claude/rules/blocked-green-ci-investigate-threads.md link by adding one more ../ (reach repo root).
docs/hygiene-history/ticks/2026/05/18/2115Z.md Fix .claude/rules/refresh-world-model-poll-pr-gate.md link by adding one more ../ (reach repo root).

@AceHack AceHack merged commit 5c0cd43 into main May 21, 2026
34 checks passed
@AceHack AceHack deleted the fix/grandfathered-tick-shard-paths-1823z-2026-05-21 branch May 21, 2026 12:51
AceHack added a commit that referenced this pull request May 21, 2026
…ard immutability)

Codex P1 on this PR (PRRT_kwDOSF9kNM6DznzI):
> This change mutates a historical tick shard in place, which breaks
> the repository's documented event-sourcing invariant that each
> shard is an immutable per-tick event (`docs/hygiene-history/ticks/README.md`)
> and the audit lifecycle guidance that immutable residue must stay
> in baseline rather than be rewritten (`tools/hygiene/AUDIT-LIFECYCLE.md`,
> "When pre-existing residue is immutable"). [...] the fix should
> preserve the original shard content and solve link continuity via
> a non-mutating path (e.g., compatibility artifact at the old target)
> while keeping/remodeling baseline accordingly.

Codex is correct. The discipline says tick shards are immutable
per Event-Sourcing pattern. The cleanup-by-edit pattern I applied in
this PR (and in #4524 / #4525 / #4526 / #4531 / #4533) violated that
discipline. Codex caught the LAST one; the others slipped through
review because they were depth-only corrections (5 dots → 6 dots)
which may have read as "rendering fix" rather than "content rewrite".

## This PR's fix — pivot to compatibility-artifact

1. **Revert the 0852Z.md shard edit** — restore the original
   `../../../../../research/...` link target. The historical shard
   stays bit-identical to what was written in 2026-04-29.
2. **Create stub at `docs/research/multi-ai-feedback-2026-04-29-no-directives-otto-prose-roundup.md`**
   pointing readers to the new location at
   `memory/persona/otto/conversations/multi-ai-feedback-2026-04-29-no-directives-otto-prose-roundup.md`.
   The stub IS net-new content (not editing existing); immutability
   discipline doesn't apply.

This composes naturally with the Copilot P1 finding on this PR too:
the prose mention of `docs/research/...` and the link target both
now point at an existing path (the stub), so they're consistent again.

## Audit state

Local audit: `scanned 1138 tick shards; 1 broken relative-path links
(1 grandfathered by baseline, 0 new)`. The remaining 1 entry is the
known FP on 2158Z.md:29 (audit-tool nested-backtick-skip bug; the
0852Z file itself notes this discipline).

## Prior PRs in the cleanup arc — substrate-honest acknowledgment

PRs #4524 / #4525 / #4526 / #4531 / #4533 already merged with the
violating pattern (shard edits, not compatibility artifacts). Those
edits are now part of the historical record. The substrate-honest
position: the violation happened; it's recorded in main; treating
this as a learning rather than retroactively reverting. Future
similar work will use the compatibility-artifact path.

The audit-lifecycle guide explicitly states the discipline alternative:
when residue is immutable, baseline IS the path. The slow-steady
cleanup arc misapplied the cleanup-via-edit pattern from the §33 PR
example (which operated on mutable surfaces) to tick shards (which
are immutable). Recognizing the misapplication is the substrate-honest
correction; this PR demonstrates the correct path going forward.

Co-Authored-By: Claude <noreply@anthropic.com>
AceHack added a commit that referenced this pull request May 21, 2026
#4534)

* fix(0852Z): update link to moved research file + trim baseline (2 → 1)

The `multi-ai-feedback-2026-04-29-no-directives-otto-prose-roundup.md`
file was moved from `docs/research/` to
`memory/persona/otto/conversations/` at some point (likely during the
2026-05-15 persona-migrate-conversations work — see PR pattern
`feat/persona-*-migrate-conversations`). The 0852Z.md link target was
never updated.

The prose mention in the same row still says `docs/research/...` — that's
historical context from when the file was at that path. Kept as-is since
the prose is describing what the link did at the time of authoring; the
link itself is what needs to be functional today.

## Fix

Line 1 link target:
- `../../../../../research/multi-ai-feedback-2026-04-29-no-directives-otto-prose-roundup.md`
+ `../../../../../../memory/persona/otto/conversations/multi-ai-feedback-2026-04-29-no-directives-otto-prose-roundup.md`

## Baseline trim

1 entry removed (2 → 1). Local audit: `1 broken relative-path links
(1 grandfathered by baseline, 0 new)`. Remaining 1 entry is the FP on
2158Z.md:29 (`docs/foo.md` inside double-backtick code span — audit-tool
nested-backtick-skip bug, not a file bug).

Co-Authored-By: Claude <noreply@anthropic.com>

* fix(0852Z): pivot to compatibility-artifact per Codex P1 (preserve shard immutability)

Codex P1 on this PR (PRRT_kwDOSF9kNM6DznzI):
> This change mutates a historical tick shard in place, which breaks
> the repository's documented event-sourcing invariant that each
> shard is an immutable per-tick event (`docs/hygiene-history/ticks/README.md`)
> and the audit lifecycle guidance that immutable residue must stay
> in baseline rather than be rewritten (`tools/hygiene/AUDIT-LIFECYCLE.md`,
> "When pre-existing residue is immutable"). [...] the fix should
> preserve the original shard content and solve link continuity via
> a non-mutating path (e.g., compatibility artifact at the old target)
> while keeping/remodeling baseline accordingly.

Codex is correct. The discipline says tick shards are immutable
per Event-Sourcing pattern. The cleanup-by-edit pattern I applied in
this PR (and in #4524 / #4525 / #4526 / #4531 / #4533) violated that
discipline. Codex caught the LAST one; the others slipped through
review because they were depth-only corrections (5 dots → 6 dots)
which may have read as "rendering fix" rather than "content rewrite".

## This PR's fix — pivot to compatibility-artifact

1. **Revert the 0852Z.md shard edit** — restore the original
   `../../../../../research/...` link target. The historical shard
   stays bit-identical to what was written in 2026-04-29.
2. **Create stub at `docs/research/multi-ai-feedback-2026-04-29-no-directives-otto-prose-roundup.md`**
   pointing readers to the new location at
   `memory/persona/otto/conversations/multi-ai-feedback-2026-04-29-no-directives-otto-prose-roundup.md`.
   The stub IS net-new content (not editing existing); immutability
   discipline doesn't apply.

This composes naturally with the Copilot P1 finding on this PR too:
the prose mention of `docs/research/...` and the link target both
now point at an existing path (the stub), so they're consistent again.

## Audit state

Local audit: `scanned 1138 tick shards; 1 broken relative-path links
(1 grandfathered by baseline, 0 new)`. The remaining 1 entry is the
known FP on 2158Z.md:29 (audit-tool nested-backtick-skip bug; the
0852Z file itself notes this discipline).

## Prior PRs in the cleanup arc — substrate-honest acknowledgment

PRs #4524 / #4525 / #4526 / #4531 / #4533 already merged with the
violating pattern (shard edits, not compatibility artifacts). Those
edits are now part of the historical record. The substrate-honest
position: the violation happened; it's recorded in main; treating
this as a learning rather than retroactively reverting. Future
similar work will use the compatibility-artifact path.

The audit-lifecycle guide explicitly states the discipline alternative:
when residue is immutable, baseline IS the path. The slow-steady
cleanup arc misapplied the cleanup-via-edit pattern from the §33 PR
example (which operated on mutable surfaces) to tick shards (which
are immutable). Recognizing the misapplication is the substrate-honest
correction; this PR demonstrates the correct path going forward.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
AceHack added a commit that referenced this pull request May 21, 2026
…n-termination (#4541)

* shard(2026-05-21/1410Z): 10-PR cleanup arc close + forced-#6 recursion-termination

Documents the 1019Z → 1410Z (~3h) cleanup arc closure:

- 10 substrate PRs (9 merged + 1 closed-redundant): #4523 / #4524 /
  #4525 / #4526 / #4529 (closed) / #4531 / #4533 / #4534 / #4538 / #4539
- Audit baseline: 39 entries (19 active) → 0
- Audit tool gained stripInlineCodeSpans + 8-test test suite
- Codex P1 mid-arc catch → substrate-honest pivot to compatibility-artifact
- B-0686 backlog row filed for substrate-engineering follow-up

Forced-#6 recursion-termination per holding-without-named-dependency rule:
post-arc holding hit brief-ack #5 with explicit non-pre-empt (available
substrate would be fabricated); #6 = forced escalation; this shard IS
the substrate-honest recursion-termination per the rule's own clause.

Self-application catch: initial shard authoring had the one-too-few-`..`
bug (5 dots → 6 dots needed for .claude/rules/ from 6-deep shard).
Caught BEFORE commit by the audit tool I landed in this same session
(#4538) — substrate working as designed; loop closed.

Co-Authored-By: Claude <noreply@anthropic.com>

* fix(1410Z): correct shard count 1139 → 1141 per Codex P2

Codex P2 (PRRT_kwDOSF9kNM6D1EV5): my shard reported "0 broken
relative-path links across 1139 shards" but at this commit's tree
there are 1141 shards. The 1139 was an earlier intermediate count
from before this shard was added; final pre-commit local audit
correctly reported 1141.

Resolves: PRRT_kwDOSF9kNM6D1EV5

---------

Co-authored-by: Claude <noreply@anthropic.com>
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.

2 participants