Commit 9468a24
committed
docs(P-036): address Codex review — SCC-level cache keys, span re-projection
Two P2 review points on the "Incrementality and caching" section, both
accepted:
- Recursive SCCs: per-method keys that embed callee summary hashes are
circular inside a recursive component (A's key needs B's cached summary and
vice versa). The cacheable unit for a recursive component is now the SCC
itself, keyed by the members' local inputs plus dependencies OUTSIDE the
component — reconstructible bottom-up over the acyclic condensation.
Cross-member hashes are validated after load, never used for lookup.
- Evidence spans: a semantic body hash survives pure line movement while
cached spans go stale. Cache hits reuse semantic effects and evidence
structure only; spans are re-projected from current frontend facts at
diagnostic time (the existing "formatting is a projection" rule), i.e. a
cached span is valid only with the source-map version it was minted against.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015de4MezSeUnZBoWq1fFU5M1 parent 3373763 commit 9468a24
1 file changed
Lines changed: 21 additions & 0 deletions
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
627 | 627 | | |
628 | 628 | | |
629 | 629 | | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
630 | 651 | | |
631 | 652 | | |
632 | 653 | | |
| |||
0 commit comments