feat(directives): scavenge sweep 3/5 (docs/reports/2026-06-08): 6 directives

Lifted:
- test_instantiation_not_mock_away: tests must exercise actual instantiation,
  not mock away the constructor (caught the MiniMax 401 regression)
- preserve_prior_versions_of_review_docs: when iterating on a review,
  preserve prior versions as separate files (v2/v2.1/v2.2/v2.3)
- neutral_language_for_doc_drift: doc-drift fixes use 'predates/stale/
  outdated', not 'fictional' (value judgment, not technical description)
- preserve_before_compact_archive: at 80%+ context, write a comprehensive
  session-synthesis archive before compaction
- user_corrections_log_in_state_toml: per-track state.toml has a
  user_corrections_log section for any reviewed-by-user track
- surface_dirty_state_in_test_runner: when subprocess is dead/degraded,
  print a clear [BATCH-WARN] rather than silent timeout
This commit is contained in:
ed
2026-07-04 01:05:54 -04:00
parent a89d0cb30e
commit b193df100f
12 changed files with 60 additions and 0 deletions
@@ -0,0 +1,9 @@
# preserve_before_compact_archive
## v1
**Why this iteration:** Lifted from `docs/reports/2026-06-08/workflow_markdown_audit_20260608.md` §1.8 ("Document the preserve-before-compact archive pattern"). At 94% context (478,992 tokens) the user explicitly requested "the biggest in-depth report you can muster... I want to preserve as much information synthesized by it". The artifact produced was `docs/reports/session_synthesis_20260608.md` (579 lines, 40KB) — a session-level synthesis with 12 sections covering artifacts produced, source transcripts, commit chain, user-corrections log, track decisions, handoff to next session. The pattern is pre-compaction; the existing AGENTS.md Compaction Recovery is post-compaction.
**Source:** `docs/reports/2026-06-08/workflow_markdown_audit_20260608.md` §1.8 + `docs/reports/2026-06-08/session_synthesis_20260608.md` (the first instance)
---
**Lifted:** 2026-07-03 (scavenge sweep batch 3/5: docs/reports/2026-06-08)
@@ -0,0 +1 @@
# When context usage approaches exhaustion, write a comprehensive session-synthesis archive before compaction so the next session can re-anchor