Skip to content

feat(kin): every chat only the owner reads keeps its own agent session - #1102

Merged
GLDRoger merged 10 commits into
kinfrom
train-19-1129/step-1
Nov 29, 2026
Merged

GLDRoger merged 10 commits into
kinfrom
train-19-1129/step-1

Conversation

@GLDRoger

Copy link
Copy Markdown
Owner

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.

  • Each chat only the owner reads gets its own thread. Kin checks that chat's readers before it continues the stored session, and starts fresh when they changed. When someone joins or comes back, the unfinished private reply stops.
  • A turn that mixes the owner's chats runs on a one-shot thread of its own and is never stored as a session. A task it handed off answers on the run that already started for it, so the model doesn't run twice.
  • A Social lead keeps its Social tools in every chat with its owner. Execution notices stay with the chat that asked for the action. Kin's compaction works on each owner chat. The Usage explanations for a fresh session now describe the new reasons.

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

GLDRoger and others added 10 commits November 29, 2026 22:03
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>
@GLDRoger
GLDRoger merged commit d28feba into kin Nov 29, 2026
13 of 17 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T22:27:49.116537Z 74fcf62 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant