Commit bbb7837
committed
Re-express the two storage tests against the row-completeness contract
Both pinned the preemption rule the previous commit replaced, and both were
mirror images of what the rule now says. `preempts()` used to authorize a
model-free parse on column coverage alone, so `spac-sponsors` and
`beneficial-ownership` stood in for the model; requiring a row-completeness
claim retires both, because two prose patterns cannot report that the section
named no other sponsor and a walk that filters its own rows cannot tell a row
it dropped from a row the table never had. The destination is cleared before
persist, so a subset there is filed data lost with no dead letter — the model
call is the cheaper side of that trade.
So the assertions flip rather than relax. Each test now proves the section
reaches the model and that the entity is still persisted through it: the
section's prompt appears in the recorded calls, and the observation's
provenance carries the model's id instead of `deterministic`. Each also opens
by running the deterministic parse over the same section text and requiring it
to read the filing outright, which is what makes the filing the case that
demonstrates the rule — coverage is not the question, and a parse that handles
the section perfectly still does not get to answer for it.
The ownership resale test keeps every assertion and gains an accurate name: it
no longer discriminates preemption from non-preemption, since no ownership
section preempts now, and what it verifies is that the class, offered and
after-offering figures the table states survive the model path — the three the
walk would have written null.
Verified on this branch: `bun run test` 428 files / 3885 tests passed, 3
files / 20 tests skipped, 0 failed; `bun run format-check` and `bun run build`
clean. The two tests were confirmed to pass on `code-extractors` and fail at
this branch's head before the change, and the replacements fail on
`code-extractors` and pass here.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ske1Jwk7fDFxHykfZGEzce1 parent fa62f14 commit bbb7837
2 files changed
Lines changed: 118 additions & 12 deletions
File tree
- src/sec/forms/registration-statements
Lines changed: 82 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
13 | 20 | | |
14 | 21 | | |
15 | 22 | | |
| |||
56 | 63 | | |
57 | 64 | | |
58 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
59 | 104 | | |
60 | 105 | | |
61 | 106 | | |
| |||
69 | 114 | | |
70 | 115 | | |
71 | 116 | | |
72 | | - | |
73 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
74 | 141 | | |
75 | 142 | | |
76 | 143 | | |
| |||
89 | 156 | | |
90 | 157 | | |
91 | 158 | | |
| 159 | + | |
| 160 | + | |
92 | 161 | | |
93 | 162 | | |
94 | 163 | | |
95 | 164 | | |
96 | 165 | | |
97 | 166 | | |
98 | 167 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | 168 | | |
103 | 169 | | |
104 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
105 | 178 | | |
106 | 179 | | |
107 | | - | |
108 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
109 | 184 | | |
110 | 185 | | |
111 | 186 | | |
| |||
Lines changed: 36 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
| 17 | + | |
| 18 | + | |
14 | 19 | | |
15 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
16 | 24 | | |
17 | 25 | | |
18 | 26 | | |
19 | | - | |
| 27 | + | |
20 | 28 | | |
21 | 29 | | |
22 | 30 | | |
| |||
28 | 36 | | |
29 | 37 | | |
30 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
31 | 46 | | |
32 | 47 | | |
33 | 48 | | |
| |||
41 | 56 | | |
42 | 57 | | |
43 | 58 | | |
44 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
45 | 71 | | |
46 | 72 | | |
47 | 73 | | |
| |||
50 | 76 | | |
51 | 77 | | |
52 | 78 | | |
53 | | - | |
| 79 | + | |
54 | 80 | | |
55 | 81 | | |
56 | 82 | | |
57 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
58 | 87 | | |
59 | 88 | | |
60 | 89 | | |
| |||
74 | 103 | | |
75 | 104 | | |
76 | 105 | | |
| 106 | + | |
| 107 | + | |
77 | 108 | | |
78 | 109 | | |
79 | 110 | | |
80 | 111 | | |
81 | | - | |
82 | 112 | | |
83 | 113 | | |
84 | | - | |
| 114 | + | |
| 115 | + | |
85 | 116 | | |
86 | 117 | | |
0 commit comments