Repository navigation
Commit 4177327
committed
spec: Inference.md — normative spec of the interprocedural ownership layer (roadmap stage 0)
Lifts the verdict-determining inference layer from an undocumented
bridge concern (architecture-review R2, tech-debt-register §3's hard
port prerequisite) into a normative, descriptive spec pinned by tests —
the same posture as OwnIR.md.
Covers: the MOS artifact and its two axes; the transfer lattice and join
(INF-L); parameter skeleton derivation (INF-S, incl. the definite-release
rule from D1 and the reserved adopt/return kinds from D3); return
inference (INF-R); overload merge and the arity residual (INF-M); the
SCC-condensation fixpoint (INF-F, incl. the observable-degradation rule
from D5); call-site application and the tier ladder (INF-A, incl. the
optimistic untrack from D6); the reporting policy and advisories
OWN051/OWN052 (INF-P); the deterministic summary-dump serialization
(incl. the omitted escapes axis from D2). Honestly marks every reserved
element (escapes, adopt/return, strict mode, Tier C, source tiers beyond
'inferred') as 'in the model, no producer'.
§11 maps every INF-* rule to its pinning test in test_ownership.py /
test_ownir.py; registered in spec/README.md; OWN051/052 documented in
spec/Diagnostics.md with a new interprocedural-advisory section. A
conformance check pins the codes the spec names to the catalogue. Full
suite green (ownir 245/245).
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LBmDyLWHqoQUGqiydSxroi1 parent f9e4f04 commit 4177327
6 files changed
Lines changed: 392 additions & 14 deletions
File tree
- docs/notes
- spec
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
141 | 143 | | |
| 144 | + | |
142 | 145 | | |
143 | 146 | | |
144 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
86 | 104 | | |
87 | 105 | | |
88 | 106 | | |
| |||
0 commit comments