mirror of
https://github.com/merlinhu1/truthmark.git
synced 2026-08-25 07:53:25 +02:00
Repository policy lived only in docs/repo/ai/repo-rules.md, which an agent reads once via a tool call and a summarizer drops first. The instruction files are injected as session context instead, so they survive compaction. Generate a repo-rules region into both files from the source doc's always-on section rather than moving or symlinking policy there. The doc stays the authority and the region is generated output under rule 8, so no second file claims authority. Symlinks were rejected: sync/classify.ts already treats these files as derived, Git on Windows materializes symlinks as text when core.symlinks is off, and init and uninstall write each path independently. Marker names are referenced without comment syntax in the source doc because a literal marker inside the rendered region duplicates it in the instruction files and makes the Truthmark managed block unparseable. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>