docs: persist the understanding-checklist in the teaching contract#619
Conversation
Add one clause (EN + DE) to the "Explaining and Teaching" contract: for a long or multi-session explanation, persist the running checklist as a file so it survives context loss and can be resumed. Derived from an empirical A/B comparison of our contract against the source prompt it was distilled from (both run headless in a clean room with no CLAUDE.md leakage). The source prompt's only genuine edge was the durable checklist file it wrote to disk; this closes that gap while keeping the scale-to-the-question and opt-out behaviour our contract already had. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughDer ChangesExplaining & Teaching Contract: Checklist-Persistenz
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What
Adds one clause (EN + DE) to the Explaining and Teaching contract in
contracts.json:Why
We ran an empirical A/B comparison of this contract against the original prompt it was distilled from. Both were driven in a fresh headless Claude session in a clean room (a separate
HOMEwith auth only, noCLAUDE.md/ memory / hooks — verified no leakage via four channels), against identical learner probes on the same code-change scenario.Findings:
The source prompt's one genuine advantage was that it persisted the running understanding-checklist as a durable, resumable file (
HERO_COLLAPSE_LESSON.md). Our contract kept the checklist only in-conversation, so it was lost on context loss. This PR ports that single capability — gated on "long or multi-session" so the scale-to-the-question behaviour (a small ask still gets a one-line answer) is untouched, and without copying the source prompt's habit of announcing the file (the existing "don't announce the method" clause covers that).The global
~/.claude/CLAUDE.mdsource of this contract is updated in lockstep; this PR keeps the public/contractsmirror in sync.🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes