Commit 13bc2c6
docs+test(pipeline): PR#9 final polish -- CallSiteKey completeness + identity_migration design note
Two small, low-risk finishing touches now that slices A-D + the churn
regression test have all landed and been verified:
- golden_graph_equivalence.rs's CallSiteKey gains callee_start_rel/
callee_end_rel alongside the pre-existing absolute byte fields, per the
plan's own explicit instruction to update this struct in lockstep with
the v3 schema. The existing suite already passed without this (slice
D's position-refresh fix keeps callee_start_byte/callee_end_byte always
current, which was sufficient for the mutation-round tests to catch the
real bug they caught), but comparing the relative columns too closes a
theoretical gap: a hypothetical divergence in relative-offset
computation specifically, decoupled from the absolute one.
- identity_migration.rs::needs_call_site_identity_baseline gains a doc
comment explaining why it deliberately does NOT gain a v2-vs-v3 check
the way it already has one for v1-vs-v2: a permanent, by-design mix of
v2 (module-level calls, no real enclosing symbol to be relative to) and
v3 (calls inside a real function/method) is the correct steady state,
and the churn v3 fixes only matters for files that actually get
reindexed -- reconcile_call_sites already upgrades a v2 row to v3
organically on the next edit to its file, at the cost of exactly one
identity transition, cheaper and lower-risk than a global forced
rebuild that would churn every proof in the database at once for files
that may never be touched again anyway. No code/behavior change.
This closes out PR#9 (docs/plans/2026-08-19-evidence-architecture-
execution-plan.md Part E): position-independent call-site identity (v3),
upsert-by-identity reconciliation fixing the actual proof-churn root
cause, and a regression test proving the plan's own DoD is met.
Verified: cargo build/clippy -p calm-core --all-targets clean, cargo test
-p calm-core 1249 passed/0 failed/12 ignored including both
golden_equivalence_{continued,incremental}_vs_fresh_across_mutation_rounds,
cargo fmt clean.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent ab0f161 commit 13bc2c6
2 files changed
Lines changed: 30 additions & 1 deletion
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
45 | 63 | | |
46 | 64 | | |
47 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
31 | 38 | | |
32 | 39 | | |
33 | 40 | | |
| |||
78 | 85 | | |
79 | 86 | | |
80 | 87 | | |
81 | | - | |
| 88 | + | |
82 | 89 | | |
83 | 90 | | |
84 | 91 | | |
| |||
100 | 107 | | |
101 | 108 | | |
102 | 109 | | |
| 110 | + | |
| 111 | + | |
103 | 112 | | |
104 | 113 | | |
105 | 114 | | |
| |||
108 | 117 | | |
109 | 118 | | |
110 | 119 | | |
| 120 | + | |
| 121 | + | |
111 | 122 | | |
112 | 123 | | |
113 | 124 | | |
| |||
0 commit comments