Skip to content

ref(chat): normalize resource events with local destinations - #1713

Merged
dcramer merged 7 commits into
mainfrom
codex/1563-plain-resource-mailbox
Aug 27, 2026
Merged

dcramer merged 7 commits into
mainfrom
codex/1563-plain-resource-mailbox

Conversation

@dcramer

@dcramer dcramer commented Aug 27, 2026 •

Copy link
Copy Markdown
Member

Routing now converts Conversation API messages and resource events into one Turn input with an Actor, Message author, Source, and Inbound message. The worker consumes that input without checking message metadata kinds. Resource events with a local Destination use the same mailbox path as Conversation API messages.

Resource events now use the canonical system Actor for both new and resumed Runs. Slack and core share the same synthetic Message author. System input cannot start interactive authorization. Authorization cleanup reads the Actor from the saved authorization request instead of assuming it matches the current input.

The integration test starts with a real resource event, pauses and resumes the Turn, and confirms the same system Actor, credential context, Destination, and Turn. It also confirms that Junior stores one assistant Message without falsely labeling either Message as web input. The full owning integration file passes.

The current AgentRun Source union still represents this resource-event path as local. Issue #1563 now documents the target input contract and concrete API, Slack, and resource-event examples. Changing the shared Source contract remains a separate slice.

Refs #1563

@vercel

vercel Bot commented Aug 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Aug 27, 2026 5:39am

Request Review

@dcramer dcramer changed the title ref(chat): route local resource events as mailbox work ref(chat): remove the special case for local resource events Aug 27, 2026
@dcramer dcramer changed the title ref(chat): remove the special case for local resource events ref(chat): remove separate handling for resource events without Slack Aug 27, 2026
@dcramer dcramer changed the title ref(chat): remove separate handling for resource events without Slack ref(chat): simplify resource events with local destinations Aug 27, 2026
@dcramer dcramer changed the title ref(chat): simplify resource events with local destinations ref(chat): normalize resource events with local destinations Aug 27, 2026
@dcramer
dcramer marked this pull request as ready for review August 27, 2026 05:42
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Aug 27, 2026
@dcramer
dcramer merged commit d24db8e into main Aug 27, 2026
39 checks passed
@dcramer
dcramer deleted the codex/1563-plain-resource-mailbox branch August 27, 2026 05:49

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 63a7f4b3 Deployed Aug 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant