Repository navigation
fix(agents): resolve the committed conflict block and guard against a repeat - #69
Merged
Merged
Conversation
… 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
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.
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.
What
The PR 59 squash (
4abdc88) landed literal git conflict markers inAGENTS.mdat lines 360-366, inside the section 7 validation-judgment paragraph.AGENTS.mdis the always-loaded instruction file, so the marker block read as authoritative text to every session.d9d423fside, the typed-verdict wording that commit set out to land, and deleting the HEAD side and all three marker lines.git grepover the whole tree confirms no other conflict marker in any tracked file.Guard
bin/fm-conflict-marker-check.shsweeps 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 existinginvariantsjob in.github/workflows/ci.yml, alongside the symlink and personal-fleet-path checks.Two deliberate design points, both documented in the script header:
list_excluded_pathspecsis 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.=======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.mdrestored to the4abdc88content: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-coveragereportsok total=144.bin/fm-lint.shpasses.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.