Skip to content

Commit 0e2c01a

Browse files
committed
P-037 B0: record the owner ruling on B0 and A14
Governance only, no code or semantic change. docs/notes/p037-formal-kernel.md §10.7 records the ruling verbatim: - B0 PASS accepted, and both §E.4 interpretations stand; - B1 shadow is authorized with all 16 entry obligations, conditional on static dispatch and with no change to public semantics; - A14 is NOT accepted as a permanent production assumption. It is a mandatory pre-Phase-C kill-gate: measure dispatch exposure on the first B1 shadow population, and hard KILL if any admissible runtime target can invalidate a static-target MUST, in which case non-exact dispatch fails closed; - no OwnIR amendment before the measurement shows it is needed. The manifest's A14 entry gains phase_c_gate pointing at the ruling. The B0 note's status line records the acceptance. The audit and selftest still pass. Refs #304 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KmiyfrkaG9sJruTcshM2oq
1 parent d93dfa2 commit 0e2c01a

3 files changed

Lines changed: 89 additions & 3 deletions

File tree

‎docs/notes/p037-formal-kernel.md‎

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,3 +873,87 @@ Consequences for Phase B (OWNER RULING, from the same decision):
873873
- a material share (for example 15–20 % of real wrapper chains breaking
874874
at expression-bodied members): that is the basis for paying for an IR
875875
extension, through the kill-first comparison above.
876+
877+
### 10.7 Owner ruling on B0 and A14 (Phase B0, #372)
878+
879+
B0 (`docs/notes/p037-phase-b-proof-boundary.md`) closed with PASS and
880+
escalated one inherited assumption, A14 (static dispatch), as a phase-C
881+
obligation. The owner ruled:
882+
883+
```text
884+
OWNER RULING — B0 / A14 (2026-09-28)
885+
886+
B0 PASS accepted.
887+
888+
The two §E.4 interpretations stand.
889+
890+
B1 shadow is authorized with all 16 entry obligations.
891+
B1 must report guarded results as conditional on static dispatch and
892+
must not change public semantics.
893+
894+
A14 is NOT accepted as a permanent production assumption.
895+
896+
A14 is a mandatory pre-Phase-C gate.
897+
898+
Before guarded summaries can become authoritative:
899+
1. measure dynamic-dispatch exposure on the first B1 shadow population;
900+
2. test whether any admissible runtime target can invalidate a static-target
901+
positive conclusion, especially MUST;
902+
3. if yes, Phase C must fail closed for non-exact dispatch, either through
903+
a minimal dispatch fact or another explicitly approved mechanism;
904+
4. no non-exact call may fabricate MUST merely from the statically resolved
905+
callee.
906+
907+
Do not amend OwnIR before the measurement establishes that the information
908+
is actually needed.
909+
```
910+
911+
What the owner said alongside it, recorded as ruling context:
912+
913+
- **The two §E.4 interpretations.**
914+
- `PRODUCTION_GUARANTOR` means a mechanism that exists now: future B1 code
915+
cannot be its own proof of correctness. The 16 B1 obligations stay B1's
916+
debts; they are not "proven production properties".
917+
- `apply` / `lower` are the formal-to-production seam, because A1 must
918+
reuse the kernel rather than rewrite it. If B1 builds another semantic
919+
path around `apply`, F9 must kill it. B1 must move the K7 witness onto the
920+
real adapter.
921+
- **Why A14 is a hard pre-C blocker and not a B1 blocker.** "Legacy does
922+
static dispatch too" is enough to allow a shadow experiment that changes
923+
nothing. It is not enough to make the guarded engine authoritative. At a
924+
virtual call the statically chosen callee may have `must` while the override
925+
that actually runs does not: a potentially fabricated consume, not merely a
926+
precision loss. An old bug does not earn citizenship by having lived here
927+
long enough.
928+
- **The A14 gate (kill-first, hours not a week), after the first B1 shadow
929+
run and before phase C.**
930+
- Population: the repo tree, the committed corpus, the P-037 controls and
931+
shapes, and the first B1 shadow corpus.
932+
- Count:
933+
- relevant calls in total;
934+
- statically non-virtual / exact calls;
935+
- virtual / interface / abstract dispatch candidates;
936+
- candidates that take part in a guarded summary chain;
937+
- candidates where two or more possible implementations have different
938+
summary classes.
939+
- Cheapest falsifier of "we need a dispatch fact": if relevant
940+
dynamic-dispatch sites are practically absent, or none shows a summary
941+
disagreement, build no infrastructure. A14 stays an explicit boundary, and
942+
work proceeds only if conservative behavior can be guaranteed.
943+
- Hard KILL the other way: if even one reachable virtual/interface call
944+
exists where the static callee can give `must` and an admissible runtime
945+
target does not, static dispatch cannot be allowed into an authoritative
946+
phase C. Then either:
947+
1. the producer adds a minimal dispatch fact that tells an exact call
948+
from open-world dispatch; or
949+
2. non-exact dispatch degrades to Opaque/Unknown in the guarded adapter,
950+
never to `must`.
951+
952+
Preferred: option 2, if one cheap source fact such as
953+
`dispatch: exact | open` suffices, rather than a set of possible targets.
954+
Soundness needs to know when the static target cannot be trusted as the
955+
only one, not the whole virtual hierarchy.
956+
- **A13 / A16 are not touched now.** A13 is an ordinary B1 implementation
957+
obligation. A16 is honestly classified as inherited normal-return scope. If
958+
the first shadow shows that catch/exception paths make a material hole, that
959+
is a separate experiment; B1 does not rewrite C# semantics wholesale.

‎docs/notes/p037-phase-b-proof-boundary.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# P-037 Phase B0: the formal/production proof-boundary audit (pre-registered)
22

33
> Status: **RESULT: PASS — PROOF BOUNDARY CLOSED FOR PHASE B SHADOW (§E),
4-
> with 16 B1 entry obligations and 2 phase-C obligations. One phase-C item
5-
> (A14, static dispatch) needs an owner decision before phase C.**
4+
> with 16 B1 entry obligations and 2 phase-C obligations. ACCEPTED by owner
5+
> ruling (`docs/notes/p037-formal-kernel.md` §10.7). Both §E.4 interpretations
6+
> stand, B1 shadow is authorized, and A14 is a mandatory pre-Phase-C gate.**
67
> §§A–D were pre-registered in `ee73dd1`, before any audit artifact, and are
78
> left as registered; the result is judged against them rather than an
89
> impression afterwards. Governance:

‎formal/p037-kernel/proof-boundary.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@
186186
"not_proved": "That a virtual, override, abstract or interface call executes the resolved body; the sidecar carries no dispatch fact.",
187187
"why_outside": "This is an analyzer-wide assumption inherited from the legacy path: ConsumesParam and the MOS summary keying read the resolved body too. It cannot be discharged fail-closed from the A2 facts, because no fact says a call is virtual.",
188188
"controlled_by": ["legacy-consumesparam-static"],
189-
"phase_c_obligation": "Before guarded summaries become authoritative (phase C), either add a dispatch fact (a case-5 OwnIR amendment) or obtain an owner ruling that accepts the inherited assumption. It does not block B0/B1, because B1 moves no verdict. INFERENCE: through a virtual call the guarded consume set stays within the legacy end-to-end consume set as long as ConsumesParam folds any-path disposal into a release, so the shadow does not widen it.",
189+
"phase_c_gate": "OWNER RULING §10.7 (docs/notes/p037-formal-kernel.md): NOT accepted as a permanent production assumption. A mandatory pre-Phase-C kill-gate measures dynamic-dispatch exposure on the first B1 shadow population. If any admissible runtime target can invalidate a static-target MUST, phase C fails closed for non-exact dispatch (preferred: a minimal dispatch: exact | open fact with non-exact degrading to Opaque/Unknown). No OwnIR amendment before the measurement shows it is needed.",
190+
"phase_c_obligation": "Before guarded summaries become authoritative (phase C), pass the §10.7 A14 gate. It does not block B0/B1, because B1 moves no verdict. INFERENCE: through a virtual call the guarded consume set stays within the legacy end-to-end consume set as long as ConsumesParam folds any-path disposal into a release, so the shadow does not widen it.",
190191
"b1_obligation": "The B1 shadow report states that its refinement counts are conditional on static dispatch."},
191192
{"id": "A15", "class": "OUTSIDE_KANI_BOUNDARY",
192193
"found_by": "B0 exploration: proof-boundary manifest amendment (§10.1 case 2)",

0 commit comments

Comments
 (0)