Commit f919fb9
jgstern-agent
feat(ir): add is_example_file + is_config_file booleans to Symbol
Per the WI-gumoz-zoboz audit verdict (DOCUMENT + EXTEND), surface two
sibling role flags on Symbol that mirror is_test_file (WI-rigun) and
is_generated_file (WI-tizij):
- is_example_file: True when the file matches an EXAMPLE_PATTERN
(examples/, demos/, samples/, tutorials/).
- is_config_file: True when the basename matches a known
dependency/build manifest (pyproject.toml, package.json, Cargo.toml,
go.mod, etc.).
The integer supply_chain_tier is unchanged. Within tier 2 (INTERNAL_DEP),
the role flags is_test_file / is_example_file / is_config_file are
mutually exclusive — at most one is True per Symbol — making the
four-way distinction inside tier 2 derivable as the XOR of the bits.
The is_config bit is suppressed on a file when is_test or is_example
already fires (e.g., examples/foo/package.json is is_example, not
is_config) to preserve mutual exclusion.
Wired through Symbol.to_dict / from_dict (round-trips via supply_chain
sub-object) and both supply-chain-classification call sites in cli.py
(_classify_symbols) and sketch.py.
Also: closes a pre-existing per-package isolation coverage gap on
mainstream/py.py:1724 by adding a _detect_source_roots test covering
the skip-list / dot-prefixed directory branch (verified existed on
plain dev before this PR).
Closes WI-jobuj.
Signed-off-by: jgstern-agent <josh-agent@iterabloom.com>1 parent 3b45c0d commit f919fb9
7 files changed
Lines changed: 392 additions & 14 deletions
File tree
- .ci
- packages
- hypergumbo-core
- src/hypergumbo_core
- tests
- hypergumbo-lang-mainstream/tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| 75 | + | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
| |||
102 | 105 | | |
103 | 106 | | |
104 | 107 | | |
| 108 | + | |
105 | 109 | | |
106 | 110 | | |
107 | 111 | | |
| |||
163 | 167 | | |
164 | 168 | | |
165 | 169 | | |
| 170 | + | |
166 | 171 | | |
167 | 172 | | |
168 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6094 | 6094 | | |
6095 | 6095 | | |
6096 | 6096 | | |
| 6097 | + | |
| 6098 | + | |
6097 | 6099 | | |
6098 | 6100 | | |
6099 | 6101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
226 | 239 | | |
227 | 240 | | |
228 | 241 | | |
| |||
251 | 264 | | |
252 | 265 | | |
253 | 266 | | |
| 267 | + | |
| 268 | + | |
254 | 269 | | |
255 | 270 | | |
256 | 271 | | |
| |||
291 | 306 | | |
292 | 307 | | |
293 | 308 | | |
| 309 | + | |
| 310 | + | |
294 | 311 | | |
295 | 312 | | |
296 | 313 | | |
| |||
325 | 342 | | |
326 | 343 | | |
327 | 344 | | |
| 345 | + | |
| 346 | + | |
328 | 347 | | |
329 | 348 | | |
330 | 349 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5025 | 5025 | | |
5026 | 5026 | | |
5027 | 5027 | | |
| 5028 | + | |
| 5029 | + | |
5028 | 5030 | | |
5029 | 5031 | | |
5030 | 5032 | | |
| |||
Lines changed: 82 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
173 | 180 | | |
174 | 181 | | |
175 | 182 | | |
176 | 183 | | |
177 | 184 | | |
178 | 185 | | |
| 186 | + | |
| 187 | + | |
179 | 188 | | |
180 | 189 | | |
181 | 190 | | |
| |||
295 | 304 | | |
296 | 305 | | |
297 | 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 | + | |
298 | 347 | | |
299 | 348 | | |
300 | 349 | | |
| |||
397 | 446 | | |
398 | 447 | | |
399 | 448 | | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
400 | 461 | | |
401 | 462 | | |
402 | 463 | | |
| |||
437 | 498 | | |
438 | 499 | | |
439 | 500 | | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
440 | 506 | | |
441 | 507 | | |
442 | 508 | | |
| |||
449 | 515 | | |
450 | 516 | | |
451 | 517 | | |
| 518 | + | |
452 | 519 | | |
453 | 520 | | |
454 | 521 | | |
455 | 522 | | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
456 | 528 | | |
457 | 529 | | |
458 | 530 | | |
| |||
502 | 574 | | |
503 | 575 | | |
504 | 576 | | |
505 | | - | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
506 | 580 | | |
507 | 581 | | |
508 | 582 | | |
| |||
0 commit comments