Repository navigation
Commit 8504ad4
committed
P-037 B1: own-guarded, the guarded shadow read over the A2 facts
A new workspace crate that computes a guarded summary per (method,
parameter) coordinate from the A2 sidecar, the legacy body and the
functions[] records, and classifies it against a legacy MOS dump it is
handed. Every lattice operation, the election import, the edge read, the
branch mask and the call-site application are p037_kernel's; the crate
defines none of them. Shadow only: nothing on the production path reads
it (docs/notes/p037-phase-b1-shadow.md §0).
Fail closed (§0.9): an ambiguous join, a missing record or sidecar, an
unresolved callee, an unmapped ordinal (A17), a bound failure or an
unsupported placement is NO_GUARDED_EVIDENCE(reason), and a forward into
such a coordinate taints its caller callee-first.
Acceptance controls (tests/acceptance.rs) run on facts the extractor
produced from the B0 probes, the ctor-initializer shape and a B1 fixture
file: A15 probe outcomes, the K7 witness on the adapter, A13, the
record-absence boundary, WF, A12 fault injection, A2/A5 edges and
selection, the N4 required read, A14, and both classifiers (G13).
Architecture: own-guarded's one workspace edge is own-ir, and a new dag.rs
guard reads every package's dependencies of every kind so that only
own-guarded names p037-kernel, only own-shadow may name own-guarded, and
no production crate reaches either. Demonstrated to fire on
own-bridge -> own-guarded (G1) and a second crate naming the kernel (G2).
Size: own-guarded is 894 counted lines (cap 900). The first formatted
draft measured 1107; de-duplication brought it under, with no formatting
changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KmiyfrkaG9sJruTcshM2oq1 parent 667873e commit 8504ad4
11 files changed
Lines changed: 2926 additions & 1 deletion
File tree
- rust
- crates
- own-diagnostics/tests
- own-guarded
- src
- tests
- fixtures
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
| |||
274 | 278 | | |
275 | 279 | | |
276 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
0 commit comments