You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The stub debt gate (#2353) currently tracks 12 @ts-expect-error suppressions
via .stub-debt-baseline. The gate prevents the count from growing, but the
end goal is zero tolerance: no @ts-expect-error in the scanned directories
at all.
This can be done incrementally — each suppression fix can decrement the
baseline in its own PR. The final PR removes the baseline file and
simplifies the script.
Summary
The stub debt gate (#2353) currently tracks 12
@ts-expect-errorsuppressionsvia
.stub-debt-baseline. The gate prevents the count from growing, but theend goal is zero tolerance: no
@ts-expect-errorin the scanned directoriesat all.
This issue covers the full progression:
baselined (6 fork-stub typing mismatches tracked in fix(test): resolve 6 fork-stub typing mismatches in agent-runner e2e test #2352, plus 6 others
across
security.test.ts,profiles.test.ts,integration.test.ts,and
uuid.test.ts)..stub-debt-baselineas suppressionsare removed, reaching 0.
.stub-debt-baselineentirely.scripts/check-stub-debt.mjstofail on any
@ts-expect-errormatch (no baseline comparison needed).Acceptance Criteria
@ts-expect-errorsuppressions resolved (types fixed, notreplaced with
@ts-ignoreoranycasts).stub-debt-baselinefile deleted from the repositoryscripts/check-stub-debt.mjssimplified: scans for@ts-expect-errorand exits non-zero if any are found (no baseline file read/comparison)
stub-debt-gateCI job passes with the simplified scriptpnpm checkorpnpm testContext
.stub-debt-baseline= 12agent-runner.runreplyagent.e2e.test.tsinfrastructure entries (see inventory in chore(ci): add stub debt gate (ADR 0005 H5) #2353)
Notes
This can be done incrementally — each suppression fix can decrement the
baseline in its own PR. The final PR removes the baseline file and
simplifies the script.