1515//
1616// `isolated` keeps vitest defaults (fresh fork registry per file) for
1717// everything else — fixture stacks, custom security/plugins, env-flag files.
18+ //
19+ // ── #13517: this suite asks the SchemaRegistry for quiet, DECLARATIVELY ─────
20+ //
21+ // Measured on this suite (one full run, `origin/main` eb649cb8bc): 66,976
22+ // lines on the run's stdout, 39,738 of them `[Registry] …` — 94.9% of
23+ // everything this suite writes through `console`. They are per-item
24+ // registration lines (`Registered object/namespace/action/view/…`), emitted
25+ // once per registered item per app boot, and this suite boots real example
26+ // apps ~130 times.
27+ //
28+ // `OS_REGISTRY_LOG` is `@objectstack/objectql`'s OWN published seam for that
29+ // verbosity (`SchemaRegistryOptions.logLevel` / `REGISTRY_LOG_LEVELS`,
30+ // registry.ts) — at `warn` the registry's private `log()` returns before
31+ // writing. What it does NOT silence is the diagnostics: the ADR-0005
32+ // `[Registry] Collision` lines go through a bare `console.warn` that the
33+ // level never gates, so a real shadowing still speaks here.
34+ //
35+ // ⛔ Two things this deliberately is NOT. It does not move the engine's
36+ // SHIPPED default (still `'info'`, unchanged for every production reader),
37+ // and it does not make library code sniff `process.env.VITEST` — a library
38+ // that behaves differently under a test runner would make every log reading
39+ // in tests a reading of something other than production. The request lives
40+ // HERE, in the harness, where the test author can see it.
1841import { defineConfig } from 'vitest/config' ;
1942import path from 'path' ;
2043
@@ -62,6 +85,11 @@ export default defineConfig({
6285 // vitest 4.1.10). Mechanism: examples/app-showcase/vitest.config.ts.
6386 // Enforced by scripts/check-console-intercept-disarm.mjs.
6487 disableConsoleIntercept : true ,
88+ // #13517: quiet the registry's per-item registration chatter — the
89+ // engine's own `OS_REGISTRY_LOG` seam, not a change to its shipped
90+ // default. Header docblock carries the measurement and the rationale.
91+ // PER PROJECT for the same measured reason as the line above.
92+ env : { OS_REGISTRY_LOG : 'warn' } ,
6593 name : 'shared-showcase' ,
6694 include : SHARED_SHOWCASE ,
6795 isolate : false ,
@@ -74,6 +102,11 @@ export default defineConfig({
74102 // vitest 4.1.10). Mechanism: examples/app-showcase/vitest.config.ts.
75103 // Enforced by scripts/check-console-intercept-disarm.mjs.
76104 disableConsoleIntercept : true ,
105+ // #13517: quiet the registry's per-item registration chatter — the
106+ // engine's own `OS_REGISTRY_LOG` seam, not a change to its shipped
107+ // default. Header docblock carries the measurement and the rationale.
108+ // PER PROJECT for the same measured reason as the line above.
109+ env : { OS_REGISTRY_LOG : 'warn' } ,
77110 name : 'isolated' ,
78111 include : [ 'test/**/*.test.ts' ] ,
79112 exclude : SHARED_SHOWCASE ,
0 commit comments