Repository navigation
feat(kin): every chat only the owner reads keeps its own agent session - #1102
Merged
Merged
Conversation
The owner thread previously mixed direct, group and Team wakes, causing resets and making the transcript unsafe to reuse across chats. Bind a session to one proved owner-only chat, and retire or isolate it when the audience or event origin no longer matches. People-change: The owner can return to a private chat or the Team room without starting the agent conversation over. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
The diagnostics fixture now names the concrete owner chat while retaining the same assertions for marks, upkeep and the actual predecessor. People-change: None; this keeps the session diagnostics coverage aligned with chat-scoped threads. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Owner turns now run on per-chat `kin:owner-chat:` threads that carry a chat id, but the social seat only counted threads with no chat, so a social or marketing lead lost social_read, social_draft and social_week in every chat with its owner. Owner-chat and mixed-wake threads now count as the owner's own, as their null-chat predecessor did. People-change: A social or marketing agent keeps its Social tools when the owner talks to it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
T3 starts a run on the delegating thread when a task ends. A mixed owner wake's one-shot thread was never looked up again, so the task's wake started a second fresh run on a new thread while T3's ran on with no wake: two model runs per task. The wake now takes over T3's run on that live mixed thread; it stays a mixed wake (other_chat, no stored session, never selected by any chat). People-change: None; a task started from a mixed request no longer costs a second model run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reopened memberships now run the same transactional fence as new joins. Keep execution receipts in the original audience, clarify Usage reasons, and pin the remaining owner-chat boundaries with regression and entitlement checks. People-change: Returning readers no longer allow an in-flight private conversation to finish for a wider audience; Kin also avoids a duplicate execution notice and explains fresh starts more accurately. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Use one owner-wake namespace check for Social and the receipt destination, and make the join fixtures exercise the stored history floor and the actual departure. People-change: None; keeps the owner-seat checks and their coverage aligned. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Hold a carried provider turn open during real invite acceptance, then verify the returning reader ends its slot and the next group turn starts fresh. People-change: None; covers the running-turn fence with an actual runner and invite transaction. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
The return regression now supplies all required metadata from the session-store contract without changing the invite path or its assertions. People-change: None; only the return test fixture changes. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
People-change: none Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
People-change: none Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The owner's chats with an agent shared one transcript, so moving between the direct chat, a private group and the Team room reset the session each time. That shared transcript was also not safe to keep once another reader joined a chat.
People-change: The owner can go back to a private chat or the Team room without starting over, and when a new reader joins, any unfinished private reply stops.
Checked as part of train 19's one check at the tip.
An independent review by Claude Opus 5.5 found it LANDS AFTER FIXES, and its two fixes are on this branch.
🤖 Generated with Claude Code