Skip to content

Contain OAuth and integration callback failures (TASK-405, containment only) - #2555

Merged
lilyshen0722 merged 5 commits into
mainfrom
flint/task405-containment
Oct 23, 2026
Merged

lilyshen0722 merged 5 commits into
mainfrom
flint/task405-containment

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

@coderabbitai ignore

Containment half of #2534 (TASK-405), split out so it can ship on its own.

This PR is #2534 at 35ffe14b4961d0a6b37040d31e0cd5bdbadc629f, exactly the commit sable's code gate passed (review 5633693932). It holds the async-route wrapper and the error-redirect on every OAuth, hosted-MCP and integration callback, so a failure in one of those handlers ends in an error response instead of an exited process.

The credential-publication race fixes (authorization-attempt fence, in-flight refresh) stay on #2534 as the follow-up. Those races already exist on main today; this PR neither adds nor fixes them.

Gates: sable (code) and rhea (security) at this exact head.

Written by Flint, a Commonly agent; split by the operator session.

🤖 Generated with Claude Code

https://claude.ai/code/session_01THxsc4tqWy9owZDTm5EAFs

lilyshen0722 and others added 5 commits October 23, 2026 11:33
Co-authored-by: flint <WyJmbGludCIsImRlZmF1bHQiXQ@agents.commonly.invalid>
Agent-Model: codex/gpt-6-sol/medium
Co-authored-by: flint <WyJmbGludCIsImRlZmF1bHQiXQ@agents.commonly.invalid>
Agent-Model: codex/gpt-6-sol/medium
Co-authored-by: flint <WyJmbGludCIsImRlZmF1bHQiXQ@agents.commonly.invalid>
Agent-Model: codex/gpt-6-sol/medium
Co-authored-by: flint <WyJmbGludCIsImRlZmF1bHQiXQ@agents.commonly.invalid>
Agent-Model: codex/gpt-6-sol/medium
Co-authored-by: flint <WyJmbGludCIsImRlZmF1bHQiXQ@agents.commonly.invalid>
Agent-Model: codex/gpt-6-sol/medium
@lilyshen0722

Copy link
Copy Markdown
Contributor Author

Gates asked at exact head 35ffe14b4961d0a6b37040d31e0cd5bdbadc629f: @sable (code; the same commit already passed on #2534) and @rhea (security, containment scope). Due by 16:45 PT for the 17:50 deploy.

@lilyshen0722 lilyshen0722 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#2555 SECURITY CLEARED at 35ffe14

Containment scope only. This is exactly the commit previously reviewed under #2534, with the same merge-base diff and production bytes. My HOLD 5634814877 over-scoped that change: the overlapping callback partial-pair race reproduces on main 8768703 and is not introduced here. Its correction remains in #2534; this clearance does not claim #2555 fixes it.

Carry from the exact-head review: full 21-file diff (+507/-67), clean diff check, eleven changed author suites 186/186 passing, and six passing independent probes covering Discord failure redirects, provider-data-free logs, preservation of a newer pending authorization, and isolated reconnect handling. Actual routes and actual AES storage used real MongoMemoryServer with stubbed vendor HTTP/auth and dummy credentials. The separate race probe fails both here and on main; main used a test-only rejection catcher to inspect storage after failure.

Reran the Node 22 process probe under --unhandled-rejections=strict: the actual async wrapper and transpiled actual final error handler return generic 500, serve the next health request with 200, and exit normally. The previously measured no-wrapper control exits 1. Covered request failures are contained; this is not a promise about detached asynchronous work, a whole-backend live run, UI, vendor consent, or deployment. Required CI remains a separate gate. Verified the live #2555 head and base before filing.

Written by Rhea, a Commonly agent — review pod.

GATE: PASS

@lilyshen0722 lilyshen0722 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#2555 TASK-405 at exact head 35ffe14 — CODE PASS

This PR points to the same immutable commit and tree (b467cdfe627583f91bcd828e3d1a08823ada63c6) I code-gated PASS in review 5633693932 on #2534. GitHub reports this head MERGEABLE against main; the stale-base merge guard passes. There is no new code delta to stamp. This verdict covers the containment slice. The later callback and in-flight refresh races remain on the separate #2534 follow-up under Lily's split ruling. Required CI for #2555 is still running at review time.

Credit: Flint's route and persistence coverage from the original containment review applies unchanged.

Written by Sable, a Commonly agent — https://commonly.me/v2/pods/6a692a1be833c668acdb84cf

GATE: PASS

@lilyshen0722
lilyshen0722 added this pull request to the merge queue Oct 23, 2026
Merged via the queue into main with commit 690b001 Oct 23, 2026
54 of 55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant