Repository navigation
fix: account for transcript cancellation lint exceptions - #167185
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 8, 2026, 7:28 AM ET / 11:28 UTC (Revision 2). ClawSweeper reviewWhat this changesRecords the two existing transcript cancellation lint exceptions in the expected suppression inventory. Review scores
ProductKind: Maintenance · Worth it: Yes Merge readiness✅ Ready for maintainer review This PR remains useful: current main still lacks the inventory record, and the patch preserves strict suppression checking. No actionable defect or additional merge blocker was found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe repository’s lint-suppression check scans production source and compares every exception’s file, rule, and count against an explicit inventory. This change reconciles that inventory with existing transcript cancellation code. flowchart LR
A[Production source] --> B[Suppression scanner]
B --> C[File and rule counts]
D[Expected exception inventory] --> E[Exact comparison]
C --> E
E --> F[Check passes or reports drift]
Technical reviewBest possible solution: Keep the exact inventory aligned with the intentional cancellation exceptions while preserving rejection-reason identity. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the mismatch: two discovered exceptions are absent from main’s exact expected inventory; the linked main job also failed. This review did not execute tests. Is this the best way to solve the issue? Yes, recording the existing file, rule, and count is the narrow repair and leaves discovery and exact comparison intact. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a7fa7b2264c9. Provenance checked
TestingProof path: unit tests only. Added test files: 1. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +1. Total +1 across 1 file. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
|
|
Fixed: the suppression inventory now accounts for the existing transcript cancellation exceptions. |
The two cancellation branches added in #166293 rejected raw abort reasons, requiring new lint suppressions. Preserve existing Error identity and wrap other reasons with the canonical AbortError factory, retaining string messages and the exact original cause. Keep listener cleanup, FIFO ordering, and accepted-work draining unchanged. Cover both already-aborted and queued operations with Error, string, and object reasons. The four non-Error regressions fail before this change. Remove the now-obsolete exact inventory entry added by #167185. No persistence format, migration, or public SDK signature changes. Validation: the six-case regression fails on the original non-Error paths and passes with this change. Linux runtime-config passed 5,492 tests; all 40 SDK lock/read cases passed. Full infra completed with 27,124 passes and two stale fixtures already fixed on the landing base. Full tooling's runner prerequisite and Git-shape failures were reconciled by unchanged 17-file replays (1,407 passing tests, no skips). Production/all-exports Knip, source contracts, architecture, formatting, typed/boundary lint, core/root test types, and changed-file lanes passed. The suppression guard passes on the rebased tree. P2 review is scoped-clean.
…7185) Record the two existing transcript cancellation lint exceptions by exact file, rule, and count while preserving cancellation reasons and suppression drift checks.
The two cancellation branches added in openclaw#166293 rejected raw abort reasons, requiring new lint suppressions. Preserve existing Error identity and wrap other reasons with the canonical AbortError factory, retaining string messages and the exact original cause. Keep listener cleanup, FIFO ordering, and accepted-work draining unchanged. Cover both already-aborted and queued operations with Error, string, and object reasons. The four non-Error regressions fail before this change. Remove the now-obsolete exact inventory entry added by openclaw#167185. No persistence format, migration, or public SDK signature changes. Validation: the six-case regression fails on the original non-Error paths and passes with this change. Linux runtime-config passed 5,492 tests; all 40 SDK lock/read cases passed. Full infra completed with 27,124 passes and two stale fixtures already fixed on the landing base. Full tooling's runner prerequisite and Git-shape failures were reconciled by unchanged 17-file replays (1,407 passing tests, no skips). Production/all-exports Knip, source contracts, architecture, formatting, typed/boundary lint, core/root test types, and changed-file lanes passed. The suppression guard passes on the rebased tree. P2 review is scoped-clean.
What Problem This Solves
The production lint-suppression inventory fails because it does not include two existing cancellation-related exceptions in the transcript settlement owner. The scanner finds the correct source entries but rejects them as unrecorded inventory.
User Impact
The inventory check can validate the intentional suppression set again. Transcript cancellation keeps the original caller-supplied reason, and the check continues to reject changes to the recorded file, rule, or count.
Why This Change Was Made
Both exceptions allow a promise to reject with
AbortSignal.reason, which can be a non-Error value. Wrapping that value would change the cancellation contract. This change records the existing file, rule, and count of two without adding a suppression or changing runtime code, scanner discovery, or comparison logic.Evidence
The main CI failed check identifies this exact missing entry. Source review confirms that the two sites handle pre-aborted and pending cancellation, and that the inventory still compares the full observed suppression set.
Remote macOS proof with Node 24.21.0 passed formatting, typed lint, and the affected test-root compiler checks.
pnpm test test/scripts/lint-suppressions.test.tspassed all three existing cases in 4.18 seconds wrapper time / 2.98 seconds Vitest time; no test case was added.Direct checks of the unchanged settlement owner preserved the identical non-Error cancellation reason in both pre-aborted and pending cases, prevented the cancelled operation from running, and retained ordinary successful settlement. Independent source review and separate automated review found no actionable issue. The full hosted CI run passed. The exact-head ClawSweeper review found no actionable issues.