From ccb64dc967ae82c638c666f7684e47568e0f8272 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 15 Oct 2026 04:32:28 +0000 Subject: [PATCH] test(spec): four ruled-class test files declare their measured CI budget MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Each file carries one `// test-budget: SECONDS — CLASS: REASON` header line (ruling record 6181973363, letter B): the slowest CI reading of the three hourly full-battery runs that executed @objectstack/spec after the liveness read memo landed, x 1.25, rounded up to the next 10 s. - scripts/build-schemas-check-mode.test.ts: 940 s (749.9 s, run 38657693085) - scripts/liveness/check-liveness.test.ts: 410 s (320.4 s, run 38657693085) - src/shared/alias-integrity.test.ts: 50 s (34.9 s, run 38651452634) - src/eager-entry-import.test.ts: 30 s (19.9 s, run 38657693085) No other line changes. Claude-Session: https://claude.ai/code/session_01LFqdRsuM5nkqoJdHd5ztVk Co-authored-by: Claude --- packages/spec/scripts/build-schemas-check-mode.test.ts | 1 + packages/spec/scripts/liveness/check-liveness.test.ts | 1 + packages/spec/src/eager-entry-import.test.ts | 1 + packages/spec/src/shared/alias-integrity.test.ts | 1 + 4 files changed, 4 insertions(+) diff --git a/packages/spec/scripts/build-schemas-check-mode.test.ts b/packages/spec/scripts/build-schemas-check-mode.test.ts index 47f1e5b20b6..3e06c6be5b9 100644 --- a/packages/spec/scripts/build-schemas-check-mode.test.ts +++ b/packages/spec/scripts/build-schemas-check-mode.test.ts @@ -1,4 +1,5 @@ // Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license. +// test-budget: 940 — spawns the real producer once per single-cause fixture: every case runs the real schema generator (build-schemas.ts --check) in its own sandbox git tree, one fixture per cause; slowest CI reading 749.9 s (hourly run 38657693085) x 1.25, rounded up // // Pins that `build-schemas.ts --check` — the script behind // `check:authorable-surface`, one of the eight generated-artifact gates diff --git a/packages/spec/scripts/liveness/check-liveness.test.ts b/packages/spec/scripts/liveness/check-liveness.test.ts index d2a03bc93da..79507d33345 100644 --- a/packages/spec/scripts/liveness/check-liveness.test.ts +++ b/packages/spec/scripts/liveness/check-liveness.test.ts @@ -1,4 +1,5 @@ // Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license. +// test-budget: 410 — spawns the real producer once per single-cause fixture: each case spawns the real liveness gate (check-liveness.mts) on a ledger copy with exactly one cause for its verdict; slowest CI reading 320.4 s (hourly run 38657693085) x 1.25, rounded up // // Self-test for the liveness gate's EVIDENCE guard (#5623). // diff --git a/packages/spec/src/eager-entry-import.test.ts b/packages/spec/src/eager-entry-import.test.ts index 605d248fe16..982873e6251 100644 --- a/packages/spec/src/eager-entry-import.test.ts +++ b/packages/spec/src/eager-entry-import.test.ts @@ -1,4 +1,5 @@ // Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license. +// test-budget: 30 — whole-package import: every published entry of the package is imported first in its own fresh tsx child process, eagerly, plus two unflagged controls; slowest CI reading 19.9 s (hourly run 38657693085) x 1.25, rounded up /** * Every published entry of `@objectstack/spec` imports cleanly as a process's diff --git a/packages/spec/src/shared/alias-integrity.test.ts b/packages/spec/src/shared/alias-integrity.test.ts index 5231fc1e858..b278947094f 100644 --- a/packages/spec/src/shared/alias-integrity.test.ts +++ b/packages/spec/src/shared/alias-integrity.test.ts @@ -1,4 +1,5 @@ // Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license. +// test-budget: 50 — whole-package import: the walk imports every module of this package's src tree so the strictObject registry is complete, and its floor is vitest's transform of the whole package; slowest CI reading 34.9 s (hourly run 38651452634) x 1.25, rounded up /** * #5013 — repo-wide alias-table integrity for every `strictObject(` authoring