docs: stale-test-binary trap + concurrency rules in CLAUDE.md; bump corpus#75
Merged
Merged
Conversation
…orpus CLAUDE.md gains two verified-recurring-failure guards: - stale-test-binary trap: '--target pineforge' rebuilds only the lib; ctest never rebuilds, so a lib-only build falsely passes stale test binaries — full 'cmake --build build' required before ctest, and libpineforge.a must be newer than the working tree's src/include before trusting any result - new Concurrency section: ensure_derived() rebuilds race when run concurrently (fixed tmp name); run_corpus.sh must never overlap external harnesses that link build/lib/libpineforge.a or read corpus/data/derived/ (it rewrites both) Corpus pointer -> c49e1fd (docs accuracy pass + corpus CLAUDE.md). Co-Authored-By: Claude Fable 5 <[email protected]>
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.
Two verified recurring failure modes written into agent memory, plus the corpus docs-pass pointer bump (pineforge-corpus#8).
cmake --build build --target pineforgerebuilds only the static lib; test executables are separate targets andctestrebuilds nothing — a lib-only build lets ctest falsely pass on stale binaries (this bit a real R7 gate). CLAUDE.md now requires a full build before ctest and a lib-newer-than-working-tree check before trusting results.ensure_derived()rebuilds are not concurrent-safe (fixed*.csv.newtmp name);run_corpus.shmust never overlap external harnesses linkingbuild/lib/libpineforge.aor readingcorpus/data/derived/(it rewrites both).c49e1fd(README accuracy vs current verifier + corpus CLAUDE.md guardrails).Docs + pointer only; no engine code.
🤖 Generated with Claude Code