Repository navigation
chore(test): shrink Discord assertion baseline - #128203
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 23, 2026, 7:58 AM ET / 11:58 UTC. ClawSweeper reviewWhat this changesUpdates the Discord type-assertion safety ledger from nine to eight assertions. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open: the checker’s AST rule and the eight current unsafe assertions support the new ledger value; no functional or security finding. The protected Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThe assertion-safety ledger is a shrink-only CI baseline for unsafe TypeScript assertions. The checker parses production source, compares its count with the ledger, and fails the fast CI lane when the ledger is stale or expands. flowchart LR
A[Discord gateway source] --> B[TypeScript AST assertion counter]
C[Assertion safety ledger] --> D[Baseline comparison]
B --> D
D --> E[Fast CI ratchet]
E --> F[Pass or stale-baseline failure]
Before merge
Agent review detailsSecurityNone. PR surfaceOther 0. Total 0 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the shrink-only checker and its corrected value of eight, then let exact-head CI verify the merge result. Do we have a high-confidence way to reproduce the issue? Yes—source-reproducible: the checker’s AST rule counts eight eligible assertions while the base ledger records nine. The review remained read-only, so the command itself was not run locally. Is this the best way to solve the issue? Yes—the ledger is explicitly shrink-only, so correcting its stale count is preferable to changing the source or weakening the checker to preserve nine. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1e9d493be9b9. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready at
This is a one-line shrink-only CI ledger correction with no product behavior change. Live behavior proof is not applicable, and no proof gap remains. |
|
Merged via squash.
|
What Problem This Solves
Resolves a problem where the fast baseline-ratchet CI job fails on current
mainafter Discord gateway assertion usage dropped from 9 to 8.Why This Change Was Made
Updates the assertion-safety ledger to the lower count already enforced by the Discord source. No production behavior changes.
User Impact
No user-visible behavior change. Required CI can correctly accept the stricter assertion count instead of reporting a stale-baseline failure.
Evidence
pnpm check:assertion-safetynode scripts/check-changed.mjs -- config/assertion-safety-baseline.txtgit diff --check