Thanks to visit codestin.com
Credit goes to github.com

Skip to content

docs: stale-test-binary trap + concurrency rules in CLAUDE.md; bump corpus#75

Merged
luisleo526 merged 1 commit into
mainfrom
docs/claude-md-build-trap-and-concurrency
Jul 7, 2026
Merged

docs: stale-test-binary trap + concurrency rules in CLAUDE.md; bump corpus#75
luisleo526 merged 1 commit into
mainfrom
docs/claude-md-build-trap-and-concurrency

Conversation

@luisleo526

Copy link
Copy Markdown
Collaborator

Two verified recurring failure modes written into agent memory, plus the corpus docs-pass pointer bump (pineforge-corpus#8).

  • Stale-test-binary trap: cmake --build build --target pineforge rebuilds only the static lib; test executables are separate targets and ctest rebuilds 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.
  • Concurrency section: ensure_derived() rebuilds are not concurrent-safe (fixed *.csv.new tmp name); run_corpus.sh must never overlap external harnesses linking build/lib/libpineforge.a or reading corpus/data/derived/ (it rewrites both).
  • Corpus submodule → c49e1fd (README accuracy vs current verifier + corpus CLAUDE.md guardrails).

Docs + pointer only; no engine code.

🤖 Generated with Claude Code

…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]>
@luisleo526 luisleo526 merged commit fbe7385 into main Jul 7, 2026
@luisleo526 luisleo526 deleted the docs/claude-md-build-trap-and-concurrency branch July 7, 2026 15:22
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