Skip to content

fix(slack): restore lint and import-cycle checks - #150483

Closed
steipete wants to merge 2 commits into
mainfrom
codex/slack-approval-callback-20260916
Closed

steipete wants to merge 2 commits into
mainfrom
codex/slack-approval-callback-20260916

Conversation

@steipete

@steipete steipete commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes two Slack CI failures: the approval callback violates typescript/unbound-method, and ingress/thread resolution form a circular dependency through their shared lifecycle type.

User Impact

No user-visible change is intended. Quiet preambles, tool telemetry, approval presentation, and transient authorization retry behavior remain unchanged.

Why This Change Was Made

Forward approval events through an arrow that calls the compositor method on its owner and returns its promise unchanged. Move the unchanged internal lifecycle type into the existing monitor type module, update every consumer, and remove the old ingress export so thread resolution no longer depends on ingress implementation.

Evidence

  • The previous head's architecture check reproduced the ingress/thread-resolution cycle. Runtime and Madge import-cycle checks both report zero cycles after the type relocation.
  • Slack's package typecheck and canonical type-aware lint pass for the affected files; formatting and git diff --check pass.
  • All 27 existing thread-resolution tests pass. The callback repair also passed 18 focused Slack dispatch tests covering approval request/resolution and quiet preamble behavior.
  • Fresh independent review of both repairs found no actionable findings. No live Slack/provider calls or native queue/auth-retry tests were run.

@clawsweeper

clawsweeper Bot commented Sep 17, 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.

@steipete
steipete marked this pull request as ready for review September 17, 2026 01:46
@openclaw-barnacle openclaw-barnacle Bot added channel: slack Channel integration: slack size: XS maintainer Maintainer-authored PR labels Sep 17, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 17, 2026
@clawsweeper

clawsweeper Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 16, 2026, 10:18 PM ET / September 17, 2026, 02:18 UTC (Revision 2).

ClawSweeper review

What this changes

The PR restores Slack’s static checks by forwarding approval callbacks through their owning object and moving the shared ingress lifecycle type out of the ingress implementation.

Merge readiness

⛔ Blocked before merge - 3 items remain

Both repairs are already present on fetched main, and no introduced correctness defect was found. The protected maintainer label reserves disposition of this overlapping PR for a maintainer.

Priority: P3
Reviewed head: 33c9b637608b9ac9b0e88d8fa321b00c1e209983
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, behavior-preserving repair with reported targeted validation and no actionable findings; disposition is separate from patch quality.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied maintainer classification exempts this internal static-check repair from external-contributor live proof; focused checks are reported, and no live Slack behavior is claimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied maintainer classification exempts this internal static-check repair from external-contributor live proof; focused checks are reported, and no live Slack behavior is claimed.
Evidence reviewed 9 items Introduced patch and continuity: The local merge-base-to-head diff matches the supplied introduction evidence. The callback remains unchanged from the previously reviewed head; the new changes relocate the unchanged lifecycle type and update its consumers.
Complete private-type cutover: Repository-wide references show the moved type remains private to Slack, with all type consumers updated; runtime lifecycle resolution remains in ingress. This does not change the public plugin SDK.
Approval callback contract: The compositor accepts the same approval payload and returns its asynchronous result; the new arrow preserves both. The change does not grant approval authority or alter authorization decisions.
Findings None None.
Security None None.

How this fits together

Slack’s ingress monitor accepts incoming events and passes them through thread resolution into agent dispatch. Dispatch forwards approval presentation events to the shared progress compositor.

flowchart LR
  A[Slack events] --> B[Ingress monitor]
  B --> C[Thread resolution]
  C --> D[Agent dispatch]
  E[Shared lifecycle types] -.-> B
  E -.-> C
  D --> F[Approval progress compositor]
Loading

Decision needed

Question Recommendation
Should this protected PR be retired now that the merged integration contains both repairs? Retire the overlapping branch: Close this PR manually with credit and a link to the merged integration containing both repairs.

Why: The requested outcome is present on main, but the maintainer label prevents automatic closure.

Before merge

  • Resolve merge risk (P1) - GitHub reports a merge conflict on the reviewed head; there is no verified test-merge result to assess if the branch is retained.
  • Complete next step (P2) - Have a maintainer decide whether to retire this overlapping PR; if retained for distinct work, resolve its current merge conflict.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
Agent review details

Security

None.

PR surface

Source +1, Tests 0. Total +1 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 5 14 13 +1
Tests 1 1 1 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 15 14 +1

Review metrics

None.

Root-cause cluster

Relationship: superseded
Canonical: #111148
Summary: The merged integration explicitly incorporated both Slack static-check repairs.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Retain main’s existing callback repair and single leaf lifecycle-type owner without introducing another relocation.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Retain main’s existing callback repair and single leaf lifecycle-type owner without introducing another relocation.

Do we have a high-confidence way to reproduce the issue?

Not applicable to a current runtime bug: the reported failures concern static checks, and fetched main already contains both source repairs; checks were not rerun here.

Is this the best way to solve the issue?

Yes, the patch is a narrow repair against its pinned base, but main’s equivalent implementation leaves no demonstrated need for another merge.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against c5cff2f122e2; fix evidence: commit a13ecd23b32b, main fix timestamp 2026-09-17T02:00:40Z.

Labels

Label justifications:

  • P3: This is a bounded static-check repair with no intended user-visible behavior change, already covered on main.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied maintainer classification exempts this internal static-check repair from external-contributor live proof; focused checks are reported, and no live Slack behavior is claimed.

Evidence

What I checked:

  • Introduced patch and continuity: The local merge-base-to-head diff matches the supplied introduction evidence. The callback remains unchanged from the previously reviewed head; the new changes relocate the unchanged lifecycle type and update its consumers. (extensions/slack/src/monitor/message-handler/dispatch.ts:623, 33c9b637608b)
  • Complete private-type cutover: Repository-wide references show the moved type remains private to Slack, with all type consumers updated; runtime lifecycle resolution remains in ingress. This does not change the public plugin SDK. (extensions/slack/src/monitor/types.ts:9, 33c9b637608b)
  • Approval callback contract: The compositor accepts the same approval payload and returns its asynchronous result; the new arrow preserves both. The change does not grant approval authority or alter authorization decisions. (src/channels/progress-draft-compositor.ts:560, 33c9b637608b)
  • Equivalent repairs on main: The main commit contains the identical callback repair and moves the same lifecycle declaration and consumers to ingress.types.ts. Its parent comparison establishes both repairs directly. (extensions/slack/src/monitor/ingress.types.ts:3, a13ecd23b32b)
  • Merged integration explicitly documents Slack fixes: GitHub verifies fix(discord): rejoin threads on unarchive to restore MESSAGE_CREATE events #111148 merged as a13ecd2. Its CI integration prerequisites explicitly describe both Slack repairs and their focused validation. (a13ecd23b32b)
  • Main inclusion and release boundary: The ancestry check confirms the repair commit is included in fetched main. Its timestamp is 2026-09-17T02:00:40Z; no containing local release tag was returned. GitHub’s latest release remains v2026.9.4, published September 11, so release inclusion is not established. (c5cff2f122e2)

Likely related people:

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

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-17T01:55:00.633Z sha f068ad5 :: needs maintainer review before merge. :: none

@steipete steipete changed the title fix(slack): restore typed lint for approval callbacks fix(slack): restore lint and import-cycle checks Sep 17, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Closing as already fixed by #111148 in a13ecd2. That commit contains the identical receiver-preserving approval callback and moves the unchanged lifecycle type into ingress.types.ts, with all four consumers migrated and no back-edge through the ingress implementation.

Verified that the commit is an ancestor of main at 7331aa9fcbf4ff49be4c587e515788c41e05b1f1 and that the landed Slack repairs remain unchanged there. Keeping that canonical type owner; no further implementation is needed from this PR. Thanks @hanamizuki and the contributors to #111148.

@steipete steipete closed this Sep 17, 2026
@RomneyDa
RomneyDa deleted the codex/slack-approval-callback-20260916 branch October 22, 2026 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: slack Channel integration: slack maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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