|
| 1 | +{ |
| 2 | + "_comment": "Per-file tsc error debt of the @objectstack/objectql TEST layer (#5286). `tsconfig.test.json` compiles `src/**/*.test.ts` — which `tsconfig.json` excludes and therefore no gate ever read — and every file below still carries errors from before that gate existed. THIS FIELD IS GENERATED: every regeneration rewrites it from scripts/check-test-typecheck.mts, and the EXACT ratchet below requires a regeneration on every repair — so an edit made here is gone by the next one. Anything true of THIS package goes in the sibling `_note` field, which is authored, is preserved verbatim, and is never written by the generator (#12624). This comment states NO cause for the errors, deliberately: the classes differ per package and per file, they move as the debt is paid down, and a cause written here is rewritten verbatim into every ledger by every regeneration — so it outlives its own repair and cannot be corrected in the file where it is read. Measure instead, before repairing anything: `tsc --noEmit --pretty false -p tsconfig.test.json` in the package prints the real classes with their TS codes. Each entry maps a file to its per-SIGNATURE error counts, never to a bare total (#13470): a signature is the TS code plus the diagnostic message with structural type blobs collapsed, and it carries NO line or column — so the pin survives edits that move code around, and only stops matching when the error itself becomes a different error. EXACT ratchet, judged by re-running tsc: a file that gains errors is red, a file that loses them is red until its number is re-recorded, a file that reaches zero is red until its entry is deleted, a signature that ARRIVES or VANISHES is red even when the file total is unchanged, and a file NOT listed here may have no errors at all. Regenerate with: pnpm --filter @objectstack/objectql gen:test-typecheck-debt", |
| 3 | + "_note": "SEEDED at 2a181174a6 by the PR that first put this layer in front of tsc (#13676), workspace closure built first. All 242 errors across 44 files are PRE-EXISTING: that PR edits no test file, and every one of these would have been reported on origin/main had this program ever existed. ⛔ Not one `any` and not one `@ts-expect-error` was added anywhere to open the gate — bulk-suppressing this residue is the exact shape the card was filed to prevent, and it would turn a real gate into a phantom one. The residue is NOT annotation debt to sweep: 14 of the 17 in src/datasource-mapping.test.ts and the bulk of the TS2345 population are one story — a driver double that does not satisfy IDataDriver — and src/engine.test.ts alone carries 102 of the 242, so read the classes before touching anything (`tsc --noEmit --pretty false -p tsconfig.test.json`). ⚠️ src/engine-filter-array-lowering.test.ts is DELIBERATELY ABSENT and must stay absent: it is the #13357 point-3 negative pin proving a refused filter shape cannot reach the reference matcher, it reports zero errors, and an unledgered file is red on its first error. ⚠️ But its zero is a weak guarantee today and must not be read as 'that pin is type-checked': the file holds `const driver: any` and `interface SeenRead { ast: any }` at the very seam the proof reads, so a drifted IDataDriver signature would not redden it. Repairing that is tracked separately and is not a licence to loosen tsconfig.test.json.", |
| 4 | + "entries": { |
| 5 | + "src/build-probes.test.ts": { |
| 6 | + "TS2493: Tuple type '…' of length '0' has no element at index '1'.": 1 |
| 7 | + }, |
| 8 | + "src/datasource-mapping.test.ts": { |
| 9 | + "TS2345: Argument of type '…' is not assignable to parameter of type 'IDataDriver'.": 14, |
| 10 | + "TS6133: 'obj' is declared but its value is never read.": 3 |
| 11 | + }, |
| 12 | + "src/engine-audit-anchor-write.test.ts": { |
| 13 | + "TS2532: Object is possibly 'undefined'.": 1 |
| 14 | + }, |
| 15 | + "src/engine-autonumber-default-format.test.ts": { |
| 16 | + "TS2339: Property 'getObject' does not exist on type 'typeof SchemaRegistry'.": 3 |
| 17 | + }, |
| 18 | + "src/engine-autonumber-defer.test.ts": { |
| 19 | + "TS2339: Property 'getObject' does not exist on type 'typeof SchemaRegistry'.": 4 |
| 20 | + }, |
| 21 | + "src/engine-autonumber-resync.test.ts": { |
| 22 | + "TS2339: Property 'getObject' does not exist on type 'typeof SchemaRegistry'.": 1 |
| 23 | + }, |
| 24 | + "src/engine-autonumber-seed-outage.test.ts": { |
| 25 | + "TS2339: Property 'getObject' does not exist on type 'typeof SchemaRegistry'.": 1 |
| 26 | + }, |
| 27 | + "src/engine-autonumber-seed-scan.test.ts": { |
| 28 | + "TS2339: Property 'getObject' does not exist on type 'typeof SchemaRegistry'.": 5 |
| 29 | + }, |
| 30 | + "src/engine-autonumber-seed-suffix.test.ts": { |
| 31 | + "TS2339: Property 'getObject' does not exist on type 'typeof SchemaRegistry'.": 1 |
| 32 | + }, |
| 33 | + "src/engine-cascade-delete.test.ts": { |
| 34 | + "TS2345: Argument of type '…' is not assignable to parameter of type '…'.": 1 |
| 35 | + }, |
| 36 | + "src/engine-data-events.test.ts": { |
| 37 | + "TS6133: 'warn' is declared but its value is never read.": 1 |
| 38 | + }, |
| 39 | + "src/engine-delete-prior-read-scope.test.ts": { |
| 40 | + "TS2749: 'ObjectSchema' refers to a value, but is being used as a type here. Did you mean 'typeof ObjectSchema'?": 3, |
| 41 | + "TS6196: 'ObjectSchema' is declared but never used.": 1 |
| 42 | + }, |
| 43 | + "src/engine-lifecycle-datasource.test.ts": { |
| 44 | + "TS2345: Argument of type '…' is not assignable to parameter of type '…'.": 1 |
| 45 | + }, |
| 46 | + "src/engine-update-prior-read-scope.test.ts": { |
| 47 | + "TS2345: Argument of type 'unknown' is not assignable to parameter of type '…'.": 1 |
| 48 | + }, |
| 49 | + "src/engine.test.ts": { |
| 50 | + "TS2339: Property 'getObject' does not exist on type 'typeof SchemaRegistry'.": 75, |
| 51 | + "TS2339: Property 'registerKind' does not exist on type 'typeof SchemaRegistry'.": 1, |
| 52 | + "TS2339: Property 'registerObject' does not exist on type 'typeof SchemaRegistry'.": 3, |
| 53 | + "TS2353: Object literal may only specify known properties, and 'filter' does not exist in type '…'.": 1, |
| 54 | + "TS7006: Parameter 'name' implicitly has an 'any' type.": 22 |
| 55 | + }, |
| 56 | + "src/function-registry-effect.test.ts": { |
| 57 | + "TS2352: Conversion of type '…' to type '…' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.": 1 |
| 58 | + }, |
| 59 | + "src/hook-binder.test.ts": { |
| 60 | + "TS2339: Property 'then' does not exist on type '…'.": 1, |
| 61 | + "TS7006: Parameter 'e' implicitly has an 'any' type.": 1 |
| 62 | + }, |
| 63 | + "src/hook-condition-bulk-previous.test.ts": { |
| 64 | + "TS2339: Property 'then' does not exist on type '…'.": 3, |
| 65 | + "TS7006: Parameter 'e' implicitly has an 'any' type.": 3 |
| 66 | + }, |
| 67 | + "src/hook-condition-fail-loud.test.ts": { |
| 68 | + "TS2339: Property 'catch' does not exist on type '…'.": 2, |
| 69 | + "TS2339: Property 'then' does not exist on type '…'.": 5, |
| 70 | + "TS7006: Parameter 'e' implicitly has an 'any' type.": 5 |
| 71 | + }, |
| 72 | + "src/hook-condition-merged-record.test.ts": { |
| 73 | + "TS2322: Type '…' is not assignable to type '…'.": 1, |
| 74 | + "TS2339: Property 'then' does not exist on type '…'.": 1, |
| 75 | + "TS7006: Parameter 'e' implicitly has an 'any' type.": 1 |
| 76 | + }, |
| 77 | + "src/hook-condition-previous-scope.test.ts": { |
| 78 | + "TS2322: Type '…' is not assignable to type '…'.": 1, |
| 79 | + "TS2339: Property 'then' does not exist on type '…'.": 1, |
| 80 | + "TS6133: 'reads' is declared but its value is never read.": 1, |
| 81 | + "TS7006: Parameter 'e' implicitly has an 'any' type.": 1 |
| 82 | + }, |
| 83 | + "src/in-memory-aggregation.test.ts": { |
| 84 | + "TS2345: Argument of type '…' is not assignable to parameter of type '…'.": 3 |
| 85 | + }, |
| 86 | + "src/layered-overlay-integration.test.ts": { |
| 87 | + "TS2322: Type '…' is not assignable to type 'SysMetadataEngine'.": 1, |
| 88 | + "TS2353: Object literal may only specify known properties, and 'org' does not exist in type 'InMemoryRepositoryOptions'.": 1 |
| 89 | + }, |
| 90 | + "src/metadata-service-roundtrip-conformance.test.ts": { |
| 91 | + "TS2322: Type 'WritableFixtureLoader' is not assignable to type 'MetadataLoader'.": 1, |
| 92 | + "TS2416: Property 'save' in type 'WritableFixtureLoader' is not assignable to the same property in base type 'MetadataLoader'.": 1 |
| 93 | + }, |
| 94 | + "src/plugin-authored-hooks.test.ts": { |
| 95 | + "TS6133: 'obj' is declared but its value is never read.": 1 |
| 96 | + }, |
| 97 | + "src/plugin.integration.test.ts": { |
| 98 | + "TS2749: 'ObjectSchema' refers to a value, but is being used as a type here. Did you mean 'typeof ObjectSchema'?": 11, |
| 99 | + "TS6133: 'ObjectSchema' is declared but its value is never read.": 1 |
| 100 | + }, |
| 101 | + "src/protocol-boot-hydration-scoped.test.ts": { |
| 102 | + "TS2322: Type '…' is not assignable to type 'string'.": 3 |
| 103 | + }, |
| 104 | + "src/protocol-boot-object-package-binding.test.ts": { |
| 105 | + "TS2345: Argument of type 'Row' is not assignable to parameter of type '…'.": 3 |
| 106 | + }, |
| 107 | + "src/protocol-discovery.test.ts": { |
| 108 | + "TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ data: string; metadata: string; discovery?: string | undefined; ui?: string | undefined; auth?: string | undefined; automation?: string | undefined; storage?: string | undefined; analytics?: string | undefined; ... 8 more ...; mcp?: string | undefined; }'.": 1 |
| 109 | + }, |
| 110 | + "src/protocol-lock-enforcement.test.ts": { |
| 111 | + "TS6133: 'beforeEach' is declared but its value is never read.": 1 |
| 112 | + }, |
| 113 | + "src/protocol-package-lifecycle.test.ts": { |
| 114 | + "TS2339: Property 'mock' does not exist on type 'never'.": 3, |
| 115 | + "TS2339: Property 'mockResolvedValue' does not exist on type 'never'.": 2, |
| 116 | + "TS7006: Parameter 'c' implicitly has an 'any' type.": 3 |
| 117 | + }, |
| 118 | + "src/protocol-publish-rollback.test.ts": { |
| 119 | + "TS6133: 'rows' is declared but its value is never read.": 1 |
| 120 | + }, |
| 121 | + "src/protocol-recorded-by-null.test.ts": { |
| 122 | + "TS2345: Argument of type '…' is not assignable to parameter of type '…'.": 2 |
| 123 | + }, |
| 124 | + "src/protocol-registry-shadow.test.ts": { |
| 125 | + "TS2345: Argument of type '…' is not assignable to parameter of type '…'.": 2 |
| 126 | + }, |
| 127 | + "src/protocol-save-meta-repo-path-real-engine.test.ts": { |
| 128 | + "TS2345: Argument of type '…' is not assignable to parameter of type '…'.": 3 |
| 129 | + }, |
| 130 | + "src/protocol-save-meta-repo-path.test.ts": { |
| 131 | + "TS18048: 'row.checksum' is possibly 'undefined'.": 1 |
| 132 | + }, |
| 133 | + "src/protocol-writepath-object-ownership.test.ts": { |
| 134 | + "TS2345: Argument of type 'Row' is not assignable to parameter of type '…'.": 2 |
| 135 | + }, |
| 136 | + "src/query-expression-conformance.test.ts": { |
| 137 | + "TS2322: Type '…' is not assignable to type 'QueryInput'.": 2 |
| 138 | + }, |
| 139 | + "src/registry-invalidate.test.ts": { |
| 140 | + "TS2459: Module '\"@objectstack/spec\"' declares 'ServiceObject' locally, but it is not exported.": 1 |
| 141 | + }, |
| 142 | + "src/registry.test.ts": { |
| 143 | + "TS18048: 'out.enable' is possibly 'undefined'.": 7, |
| 144 | + "TS2339: Property 'indexed' does not exist on type '…'.": 3 |
| 145 | + }, |
| 146 | + "src/sys-metadata-repository-list-drafts.test.ts": { |
| 147 | + "TS2345: Argument of type '…' is not assignable to parameter of type '…'.": 1 |
| 148 | + }, |
| 149 | + "src/sys-metadata-repository.test.ts": { |
| 150 | + "TS2322: Type '\"theme\"' is not assignable to type '…'.": 2, |
| 151 | + "TS2322: Type '\"trigger\"' is not assignable to type '…'.": 1, |
| 152 | + "TS2322: Type '\"webhook\"' is not assignable to type '…'.": 1, |
| 153 | + "TS2322: Type '…' is not assignable to type 'SysMetadataEngine'.": 1 |
| 154 | + }, |
| 155 | + "src/validation/record-validator.test.ts": { |
| 156 | + "TS2367: This comparison appears to be unintentional because the types 'number' and 'boolean' have no overlap.": 1 |
| 157 | + }, |
| 158 | + "src/validation/rule-fail-closed.test.ts": { |
| 159 | + "TS2345: Argument of type '…' is not assignable to parameter of type '…'.": 1, |
| 160 | + "TS2353: Object literal may only specify known properties, and 'name' does not exist in type 'ConditionalFieldDef'.": 2 |
| 161 | + } |
| 162 | + } |
| 163 | +} |
0 commit comments