Repository navigation
Conversation
…ycle Extract shared transient Slack Web API error classification into a leaf module used by ingress, thread resolution, and authorization. Preserve temporary authorization failure retries from #150457 while removing the import cycle that fails the main architecture check.
|
🦞👀 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. |
|
Continuing the previously adopted native LAND ownership for dependent #110138. I have read back Peter’s new @clawsweeper re-review |
|
Coordination: #150026 already published an independently reviewed fix for the same Madge cycle in commit |
Restore receiver-preserving invocation of the approval progress method after #150407 replaced its wrapper with an unbound reference. Keep the existing payload and promise result while fixing the check-lint failure.
|
Codex review: needs maintainer review before merge. Reviewed September 16, 2026, 9:55 PM ET / September 17, 2026, 01:55 UTC. ClawSweeper reviewWhat this changesThe PR moves Slack’s temporary-error classifier into a shared leaf module, removing a static import cycle while preserving authorization and thread-lookup retry behavior. Merge readiness✅ Ready for maintainer review Keep open: this is a focused, maintainer-requested repair that fetched main still needs. No actionable correctness findings remain, and the discussion establishes active landing ownership. Priority: P3 Review scores
Verification
How this fits togetherSlack’s monitor admits incoming events, checks authorization, and resolves message threads before dispatch. Its shared error classifier determines which lookup failures remain eligible for retry. flowchart LR
A[Slack events] --> B[Durable ingress]
B --> C[Authorization and thread lookup]
C --> D[Shared error classifier]
D --> E[Retry temporary failures]
D --> F[Preserve permanent failure handling]
C --> G[Authorized message dispatch]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +1, Tests -2. Total -1 across 5 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep one plugin-local classifier shared by ingress, authorization, and thread resolution, with existing retry semantics intact. Do we have a high-confidence way to reproduce the issue? Yes: fetched main contains both static import edges, and the inspected architecture checker includes type imports. This review verified the mechanism from source without running the checker. Is this the best way to solve the issue? Yes: extracting the unchanged classifier removes the dependency cycle at its owner while preserving callers, tests, and private API boundaries. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 13c6d9e16c1e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Please refresh the existing review for current head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Closing as superseded by the verified landed correction in #111148 ( I acquired current main The dependent OpenRouter #110138 continuation now incorporates landed main and contains no Slack diff. The CI watcher stopped on the now-redundant integration conflict; no green result is claimed for that superseded run. Task-owned local checkout cleanup follows; the published branch is retained for contributor recovery. |
Related: #150457, #150407
What Problem This Solves
Repairs two Slack regressions that make main CI fail:
typescript(unbound-method)in the lint job.User Impact
Preserves temporary authorization retries across restart, terminal rejection of invalid credentials, quiet preamble previews, and approval-request rendering. No configuration or migration changes are required.
Why This Change Was Made
Ingress imported the transient-error classifier from thread resolution, which already imported the ingress lifecycle type. Move the unchanged classifier into the leaf
monitor/web-api-errors.tsasisTransientSlackApiErrorand update ingress, authorization, thread resolution, and existing classifier tests to import it directly.The separate callback fix invokes
progress.progressDraft.pushApprovalEvent(payload)through an arrow function, preserving its receiver, payload, and returned promise. The rest of #150407's changed files contain no other instance introduced by that commit. Both fixes retain the existing lint rules and import-cycle checks; neither adds an exemption.Evidence
pnpm check:madge-import-cyclesandpnpm check:import-cyclespass afterward. The architecture job also passed on the current head.node scripts/run-vitest.mjs extensions/slack/src/monitor/message-handler/after the callback fix: 10 files, 477 tests passed, including immediate approval attention/resolution and quiet preamble preview coverage.oxfmt --check,git diff --check, andpnpm check:line-cap-ratchet --base origin/mainpassed. No grandfathered file grew;dispatch.tsremains 755 lines.check-lintpassed on the current head, covering the Slack extension with the CI lint pipeline.node --import ./scripts/tsx.mjs scripts/run-oxlint-shards.mts --only=extensions:16 --extension-stripe=1/1 --threads=1) reject an ancestor install'snode_modules/@types/events/package.jsonwithDeclaration input escapes checkout. The task is confined to this nested worktree, so the declaration boundary was preserved. The full local changed gate remains blocked by that checkout layout; hosted lint now supplies passing lint proof for the current head.Current-head CI: run 35172507267, head
d158c583035fe58f60e6a8588daef8e8ef7dacbe.Requested handoff: PR only; do not merge as part of this task.