@@ -663,12 +663,12 @@ const SPEC_SCRIPTS_PRECEDENT = 'packages/spec/tsconfig.scripts.json';
663663const TEST_ROOTDIR_PRECEDENT = '`packages/client/tsconfig.test.json` and `packages/cli/tsconfig.test.json`' ;
664664const GENERATED_INCLUDE_ISSUE = 'https://github.com/objectstack-ai/objectstack/issues/10880' ;
665665
666- // A path in the root program whose edits move the `@objectstack/spec-monorepo`
667- // count below, declared as a bare, whole-literal path so the dispatch
668- // derivation can read it. It accounted for 29 of that entry's 80, and is 1 of
669- // the 26 standing now -- still the root script an ordinary card edits. The note on
670- // that entry carries the accounting and references this constant instead of
671- // spelling the path inside its sentence .
666+ // A path in the root program, declared as a bare, whole-literal path so the
667+ // dispatch derivation can read it. It accounted for 29 of the
668+ // `@objectstack/spec-monorepo` DEBT entry's 80 errors , and for 1 of the 26 left
669+ // when that entry graduated (#26236). The root program is now type-checked by the
670+ // root's `typecheck:root` script, which lint.yml runs, and this is still the
671+ // root script an ordinary card edits .
672672//
673673// Why the SHAPE and not just the mention: scripts/pm/dispatch-gates.mjs scans
674674// each gate's own module body for path literals and accepts one only when the
@@ -832,22 +832,17 @@ const ROOT_PROGRAM_COUPLED_SCRIPT = 'scripts/check-test-typecheck.mts';
832832// fixed the test config showed 4 more (TS2883 on the `vi.fn()` fields of
833833// `src/__mocks__/runtime.ts`, annotated `Mock`) that the build config never shows.
834834// No cast, no `@ts-expect-error`, no `src` signature widened.
835- const DEBT = {
836- '@objectstack/spec-monorepo' : {
837- errors : 26 ,
838- note : 'the workspace root itself: config-tier 18 (TS2307 x17, TS2550 x1); noise 8 (TS7006 x7, '
839- + 'TS6133 x1). The root `tsconfig.json` is the program for `scripts/` and the top-level configs and '
840- + 'declares `types:["node"]`; packages extend `tsconfig.base.json` instead. Declaring the Node types '
841- + 'moved this count by zero -- the TS2591 / TS2584 pile an older note blamed on their absence was '
842- + 'already gone. What stands: the analytics-reconcile tree imports `@objectstack/*` and example '
843- + 'sources the root program cannot resolve (the root package declares no workspace dependency), '
844- + 'which is all 17 TS2307 and the 7 TS7006 they cascade into; ' + ROOT_PROGRAM_COUPLED_SCRIPT
845- + ' calls `Object.hasOwn` under lib ES2020 (TS2550); and `exclude` only drops files from the '
846- + 'initial walk, so an example source a script imports is still compiled here -- the TS6133 is in '
847- + 'examples/app-showcase/src, and this entry moves with the showcase as well as with scripts/. '
848- + 'Graduating also needs a `typecheck:root` script and its step in .github/workflows/lint.yml.' ,
849- } ,
850- } ;
835+ //
836+ // `@objectstack/spec-monorepo` -- the workspace ROOT itself -- GRADUATED from this
837+ // ledger (#26236; entry: 26 raw, repaired to 0). Its program is the root
838+ // `tsconfig.json`: `scripts/` and the top-level configs. 24 of the 26 were the
839+ // obsolete ADR-0021 analytics-reconcile harness, which was deleted (its imports hid
840+ // 31 more errors on keys the spec had removed). The other two were `Object.hasOwn`
841+ // under lib ES2020, fixed by giving the root program lib ES2022, and an unused
842+ // const in an example source a script imported. Graduated the root's way: a
843+ // `typecheck:root` script plus its step in .github/workflows/lint.yml, both of
844+ // which the root branch of `evaluate` requires.
845+ const DEBT = { } ;
851846
852847// Package name -> why running tsc over it is not applicable at all. An EXEMPT
853848// entry is a statement about the package's nature, not about its debt; if the
0 commit comments