Commit cf07c12
committed
feat(devx): ratchet the declared registry log level across engine-booting suites
objectql's `SchemaRegistry` logs one `[Registry] Registered <kind>: <name>`
line per registered item per construction, at its shipped `'info'` default. A
suite that boots app stacks pays items x boots of that on a CI shard log nobody
reads. PR #13985 and PR #14016 declared `OS_REGISTRY_LOG` in four harnesses and
removed ~47,900 console-carried lines — and nothing held them there. Deleting
one `env` line restored five figures of output while every assertion stayed
green and every outcome was unchanged.
This gate asserts the declaration. It reuses `check-console-intercept-disarm`'s
exported `workspacePackageDirs` walk and its verdict format, so only the
assertion and the population are new.
THE POPULATION IS DERIVED, not a roster. A vitest-running package is selected
when its OWN TEST SOURCES construct a `SchemaRegistry`, boot a stack through
`@objectstack/verify`'s `bootStack`, or import an `@objectstack/example-*` app.
On this tree that selects 8 of 72 with zero over- and zero under-selection.
A roster of the four suites that already declared would have been a hand list
this repo could show to be wrong on the day it shipped:
docs/audits/2026-09-test-log-volume-census.md measures `packages/rest` — its
own named control — at 528 residual `[Registry]` lines, eight times declared
objectql's 66. The four packages the predicate newly selects adopt the
declaration in the four commits preceding this one.
Comment masking is what makes the predicate honest rather than merely
plausible: `packages/cli` names `bootStack` and `@objectstack/verify` in eight
places, all of them prose, and would otherwise be selected while booting no
stack in any test. The registry-construction signal additionally masks string
and template content, so a spelling inside a literal is never the setting.
The level vocabulary is READ from objectql's own `REGISTRY_LOG_LEVELS` rather
than copied, because `registry.ts` resolves an unrecognised value to the
`'info'` DEFAULT silently — `OS_REGISTRY_LOG: 'quiet'` would read as a
considered choice and quiet nothing.
Out of scope and untouched: which level any suite picks, objectql's shipped
`'info'` default, and any library awareness of a test runner.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012zGPuVVX3deAx9LdjK8jCk1 parent 0bafd00 commit cf07c12
3 files changed
Lines changed: 976 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3140 | 3140 | | |
3141 | 3141 | | |
3142 | 3142 | | |
| 3143 | + | |
| 3144 | + | |
| 3145 | + | |
| 3146 | + | |
| 3147 | + | |
| 3148 | + | |
| 3149 | + | |
| 3150 | + | |
| 3151 | + | |
| 3152 | + | |
| 3153 | + | |
| 3154 | + | |
| 3155 | + | |
| 3156 | + | |
| 3157 | + | |
| 3158 | + | |
| 3159 | + | |
3143 | 3160 | | |
3144 | 3161 | | |
3145 | 3162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| |||
0 commit comments