Skip to content

check:type-check-debt is red on main: @objectstack/service-analytics DEBT drifted 10 → 14 (+4) with #8198 #8235

Description

@huangyiirene

pnpm check:type-check-debt fails on current main (measured at merge a5dcb74eb, 2026-08-12 ~21:50Z, during #8032's post-merge re-verify):

check-type-check-coverage --re-measure: 1 ledger entr(ies) drifted upward
- @objectstack/service-analytics: DEBT records 10 raw tsc error(s), tsc --noEmit now reports 14 (+4).

Attribution

The new errors are in src/__tests__/cross-field-engine-fallback.test.ts and reference surfaces PR #8198 (fix(driver-sql,driver-turso): a cross-field $field refusal stops naming the two columns it compared, merged today) changed in @objectstack/driver-sql:

  • error TS2614: Module '"@objectstack/driver-sql"' has no exported member 'CROSS_FIELD_OPERAND_NAMES' (line 65)
  • error TS2339: Property 'diagnosticIncludes' does not exist on type 'CrossFieldRefusalCase' (lines 322, 330)
  • error TS7006: Parameter 'm' implicitly has an 'any' type (line 322)

git log on that test file confirms a5dcb74eb (#8198) is the last commit touching it. Because service-analytics' test layer sits behind a frozen DEBT entry (nothing else compiles it), #8198 could rename the driver-sql export without anything forcing the consumer test or the ledger to move — exactly the swallowed-regression shape the gate's own message warns about (#6376: driver-mongodb's 33 swallowed a whole signature reversion).

Fix options

  1. Update cross-field-engine-fallback.test.ts to fix(driver-sql,driver-turso): a cross-field $field refusal stops naming the two columns it compared (#7929, #7988) #8198's new export/diagnostic shape (preferred — it un-drifts the ledger back toward 10 rather than raising it).
  2. Raise the service-analytics DEBT entry to 14 in scripts/check-type-check-coverage.mjs AND rewrite its note to name the fix(driver-sql,driver-turso): a cross-field $field refusal stops naming the two columns it compared (#7929, #7988) #8198 composition (the gate's stated fallback, only if the errors are genuinely irreducible today).

Found during #8032 (unrelated diff — spec groupBy declaration); not fixed there per scope discipline. Every PR merging main from a5dcb74eb onward will report this same red until it is stanched.


Generated by Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions