Commit e8141f9
feat(selfhost): Step 2 diagnostics — self-hosted feature codes RS0006/RS0016/RS0017
First expansion of the self-hosted checker beyond RS0005, the "functions-first"
analog for diagnostics parity (per the step-2 scoping). check.rss now reproduces,
from the same top-level token scan:
- RS0016 UNKNOWN_FILE_FEATURE — a `features:` entry outside the known set
(local/native/unsafe/async/device/ffi/reflection).
- RS0017 DUPLICATE_FILE_FEATURE — a feature repeated WITHIN one header (per-header
seen-set, matching parse_features).
- RS0006 DUPLICATE_FEATURE_DECLARATION — a second top-level `features:` header.
The existing top-level driver already isolates headers at declaration granularity,
so a `features` struct field (features_field_name.rss) can't misfire.
CHECKER_TARGET_CODES extended to the 4 codes; checker_parity_corpus is byte-exact
over all 576 files (code-mismatches: 0), and the three codes + CLEAN verified
firing on crafted inputs and the unknown-file-feature fixture.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 97b4e44 commit e8141f9
2 files changed
Lines changed: 50 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
| 506 | + | |
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
168 | 174 | | |
169 | 175 | | |
170 | 176 | | |
| |||
176 | 182 | | |
177 | 183 | | |
178 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
179 | 190 | | |
180 | 191 | | |
181 | 192 | | |
| |||
193 | 204 | | |
194 | 205 | | |
195 | 206 | | |
196 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
197 | 234 | | |
198 | 235 | | |
199 | 236 | | |
| |||
304 | 341 | | |
305 | 342 | | |
306 | 343 | | |
307 | | - | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
308 | 355 | | |
309 | 356 | | |
310 | 357 | | |
| |||
0 commit comments