Skip to content

fix(agents): resolve the committed conflict block and guard against a repeat - #69

Merged
sbracewell64 merged 1 commit into
mainfrom
fm/agents-md-conflict-marker-hotfix
Aug 9, 2026
Merged

sbracewell64 merged 1 commit into
mainfrom
fm/agents-md-conflict-marker-hotfix

Conversation

@sbracewell64

Copy link
Copy Markdown
Owner

What

The PR 59 squash (4abdc88) landed literal git conflict markers in AGENTS.md at lines 360-366, inside the section 7 validation-judgment paragraph. AGENTS.md is the always-loaded instruction file, so the marker block read as authoritative text to every session.

  • Resolved by keeping the d9d423f side, the typed-verdict wording that commit set out to land, and deleting the HEAD side and all three marker lines.
  • git grep over the whole tree confirms no other conflict marker in any tracked file.

Guard

bin/fm-conflict-marker-check.sh sweeps tracked text files for the <<<<<<< ours header, the ||||||| diff3 base header, and the >>>>>>> theirs footer, each anchored at line start. It is wired into the existing invariants job in .github/workflows/ci.yml, alongside the symlink and personal-fleet-path checks.

Two deliberate design points, both documented in the script header:

  • Every pattern is assembled at runtime from repeated characters, so the checker and its test never match themselves and need no exclusion entry. list_excluded_pathspecs is the seam for a future fixture that genuinely must embed marker text on disk; it is currently empty because nothing in the tree needs it.
  • A bare ======= separator is not a trigger on its own: a seven-character setext heading underline in Markdown is exactly that string, and a real conflict always leaves a header and footer too, so the separator would add false positives and no detection.

Verification

Red-capable, proven against the real file rather than only a fixture. With AGENTS.md restored to the 4abdc88 content:

fm-conflict-marker-check: unresolved conflict markers in tracked files:
AGENTS.md:360:<<<<<<< HEAD
AGENTS.md:366:>>>>>>> d9d423f (...)
exit=1

After the resolution, the same command exits 0.

tests/fm-conflict-marker-check.test.sh (8 assertions, all passing) covers each marker form separately, the negative control that resolving turns the same check green, an untracked working file not tripping the tracked-tree contract, the setext underline staying clean, and this repo itself being clean. It lands in the derived portable-serial lane; bin/fm-test-run.sh --check-coverage reports ok total=144. bin/fm-lint.sh passes.

Note on CI

This PR was opened by hand rather than through the no-mistakes pipeline, so the structural attestation check (Require no-mistakes) will be red by construction: it reads a head-bound attestation that only a pipeline push publishes. Every other CI lane is expected to pass.

… repeat

The PR 59 squash landed literal conflict markers inside the section 7
validation-judgment paragraph of AGENTS.md, the always-loaded instruction
file, where they read as authoritative text to every session. Resolve them by
keeping the typed-verdict wording that commit set out to land.

Add bin/fm-conflict-marker-check.sh and wire it into the repo-invariants CI
job so the class cannot land silently again. It sweeps tracked text files for
the ours, diff3 base, and theirs headers, assembling every pattern at runtime
so the checker and its test never match themselves, and deliberately does not
trigger on a bare separator line, which a seven-character setext heading
underline reproduces exactly.
@sbracewell64
sbracewell64 merged commit ef1ff03 into main Aug 9, 2026
13 of 14 checks passed
sbracewell64 added a commit that referenced this pull request Aug 10, 2026
… repeat (#69)

The PR 59 squash landed literal conflict markers inside the section 7
validation-judgment paragraph of AGENTS.md, the always-loaded instruction
file, where they read as authoritative text to every session. Resolve them by
keeping the typed-verdict wording that commit set out to land.

Add bin/fm-conflict-marker-check.sh and wire it into the repo-invariants CI
job so the class cannot land silently again. It sweeps tracked text files for
the ours, diff3 base, and theirs headers, assembling every pattern at runtime
so the checker and its test never match themselves, and deliberately does not
trigger on a bare separator line, which a seven-character setext heading
underline reproduces exactly.
sbracewell64 added a commit that referenced this pull request Aug 11, 2026
… repeat (#69)

The PR 59 squash landed literal conflict markers inside the section 7
validation-judgment paragraph of AGENTS.md, the always-loaded instruction
file, where they read as authoritative text to every session. Resolve them by
keeping the typed-verdict wording that commit set out to land.

Add bin/fm-conflict-marker-check.sh and wire it into the repo-invariants CI
job so the class cannot land silently again. It sweeps tracked text files for
the ours, diff3 base, and theirs headers, assembling every pattern at runtime
so the checker and its test never match themselves, and deliberately does not
trigger on a bare separator line, which a seven-character setext heading
underline reproduces exactly.
sbracewell64 added a commit that referenced this pull request Aug 11, 2026
… repeat (#69)

The PR 59 squash landed literal conflict markers inside the section 7
validation-judgment paragraph of AGENTS.md, the always-loaded instruction
file, where they read as authoritative text to every session. Resolve them by
keeping the typed-verdict wording that commit set out to land.

Add bin/fm-conflict-marker-check.sh and wire it into the repo-invariants CI
job so the class cannot land silently again. It sweeps tracked text files for
the ours, diff3 base, and theirs headers, assembling every pattern at runtime
so the checker and its test never match themselves, and deliberately does not
trigger on a bare separator line, which a seven-character setext heading
underline reproduces exactly.
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