Skip to content

fix: account for transcript cancellation lint exceptions - #167185

Merged
shakkernerd merged 1 commit into
mainfrom
fix/transcript-cancellation-inventory
Oct 8, 2026
Merged

shakkernerd merged 1 commit into
mainfrom
fix/transcript-cancellation-inventory

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

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.ts passed 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.

@clawsweeper

clawsweeper Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 8, 2026
@clawsweeper

clawsweeper Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 8, 2026, 7:28 AM ET / 11:28 UTC (Revision 2).

ClawSweeper review

What this changes

Records the two existing transcript cancellation lint exceptions in the expected suppression inventory.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A precise, useful correction supported by source and focused test evidence, with no actionable findings.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: This member-authored, test-only correction has no changed production behavior requiring runtime proof; focused test results and exact-head CI support the inventory repair.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes
Reason: The inventory currently rejects intentional exceptions already present in production source. Reconciliation restores a useful validation contract without changing runtime behavior.

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
Reviewed head: 6e3cc53d54289f038638c9abb2351c9332effa7c

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • test/scripts/lint-suppressions.test.ts intentional suppression inventory keeps the original intent (153d06f: Guard the intentional production suppression tail using an explicit exact inventory.)

Testing

Proof path: unit tests only. Added test files: 1.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

PR surface

Tests +1. Total +1 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 1 0 +1
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 0 +1

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is a narrowly scoped test-inventory correction with no production behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only; repair and merge need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-08T11:11:16.245Z sha 6e3cc53 :: needs maintainer review before merge. :: none

@shakkernerd shakkernerd self-assigned this Oct 8, 2026
@shakkernerd
shakkernerd merged commit 076f11b into main Oct 8, 2026
85 checks passed
@shakkernerd
shakkernerd deleted the fix/transcript-cancellation-inventory branch October 8, 2026 11:33
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Fixed: the suppression inventory now accounts for the existing transcript cancellation exceptions.

steipete added a commit that referenced this pull request Oct 8, 2026
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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 9, 2026
…7185)

Record the two existing transcript cancellation lint exceptions by exact file, rule, and count while preserving cancellation reasons and suppression drift checks.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 9, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant