Repository navigation
Commit 791ca4c
committed
test(analysis): find the OWN007 rows by code, and correct what None means here
RED 16B.1a.1, test-only. Hardens the guard 4783e8c added and fixes a factual
claim in the same file, both before the GREEN that has to satisfy them —
changing the instrument in the commit that first tries to please it is the
accounting this whole RED sequence exists to avoid.
THE GUARD looked at `identity[0]` in each half of the OWN007 pair. That is
today equivalent to looking at the OWN007 row, because each half emits exactly
one diagnostic — and only today. A reference change that emitted anything
before it would move the guard onto a different code while it kept passing.
It now selects rows BY CODE, asserts one OWN007 per half, and checks the split.
It also stops re-asserting the exact identity string. `a#9` is already frozen
in the JSON and re-checked by the fresh-render comparison; a second copy in the
guard is a second thing to drift. What no other case pins is the STRUCTURE —
one half null, the other not — so that is what the guard holds.
Verified by mutating the frozen halves: making the anonymous half named and
making the named half anonymous are both CAUGHT. Prepending an unrelated row
is NOT caught by this guard and should not be — it is caught by the staleness
check, and the guard staying quiet is precisely the hardening working: it is
no longer reading position 0.
THE CLAIM. The handoff after 4783e8c said `_consume_like` was "the only known
subjectless ownership site". Measured against the tree: of the reference's 28
`err` sites, TEN pass no subject — the borrow-permission errors (OWN006,
OWN011, OWN012), the use-outside-region check (OWN004), the owned-use-under-
mutable-loan case (OWN013), the effect-kind mismatches (OWN034, OWN041), and
the `_consume_like` half of OWN007 among them.
So the rule the GREEN ports is not "ownership diagnostics carry identity, one
site excepted". `None` is as normative as a string, and it is a property of the
emission path. The docstring now says so, because the next reader will be
building the audit table from it.
Oracle unchanged at 87 cases / 84 rows / 81 named / 3 anonymous.
Refs #250, #259.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017umyRWQed6WaoRbVagGYVw1 parent 4783e8c commit 791ca4c
1 file changed
Lines changed: 32 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
49 | 55 | | |
50 | 56 | | |
51 | 57 | | |
| |||
283 | 289 | | |
284 | 290 | | |
285 | 291 | | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
286 | 302 | | |
287 | | - | |
288 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
289 | 310 | | |
290 | 311 | | |
291 | 312 | | |
292 | 313 | | |
293 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
294 | 320 | | |
295 | | - | |
296 | | - | |
297 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
298 | 324 | | |
299 | 325 | | |
300 | 326 | | |
| |||
0 commit comments