Skip to content

test(kin): the reply model checks what a carried provider session may hold - #1091

Merged
GLDRoger merged 7 commits into
kinfrom
verify/kin-reply-model-carried-sessions
Nov 29, 2026
Merged

GLDRoger merged 7 commits into
kinfrom
verify/kin-reply-model-carried-sessions

Conversation

@GLDRoger

Copy link
Copy Markdown
Owner

The reply model checked who gets a reply, but not what a later provider request may inherit from an earlier wake. A carried session can hold private figures, another chat's lines or outside text that the next wake must not see.

What changed:

  • The reply model gains a rule, SessionOnlyToEntitled: a request may continue only a completed session from its own chat, built for the same readers, view, seat and tools.
  • A mail wake may continue a clean session and add its own mail, but no later wake may continue it. In the proposed per-chat policy, the same holds for a session that held another agent's hand-off answer or another chat's lines.
  • The model is checked with owner-only carry (PerChat = FALSE, the default) and with the proposed per-chat carry (PerChat = TRUE).
  • Six new broken variants show it catches carrying after a join, after a demotion, across chats, after an outside read, after a hand-off and after an aborted turn.
  • sessionCarry.ts is added to the files the reply model covers. No product code changes.

People-change: none

Checked as part of train 17's one check at the tip.

An independent review by Claude Opus 5.5 found that the per-chat setting could not see another chat's text in a continued session. It added the guard, the rule and a sixth variant, and says this lands after those fixes.

🤖 Generated with Claude Code

GLDRoger and others added 7 commits November 29, 2026 02:35
Model the chat, audience, transcript and lifecycle a provider session can carry. Check owner-only and per-chat carry, including outside text that retires the session after the current wake.

Implemented by GPT-6.2 Sol in Codex.

People-change: none
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
In the per-chat design the reply model let a room's next wake continue a session
whose first turn held a hand-off answer or another chat's lines, text a fresh
start for the room would not show; the invariant compared only the envelope,
so it could not see it. Such a session now ends after that wake, the invariant
refuses those labels, and `carry-after-handoff` breaks it.

Reviewed by Claude Opus 5.5 in Claude Code.

People-change: none
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Joins verify/kin-reply-model-carried-sessions (76017d0) onto train 17
after step 2. Its branch forked from an older train 16 tip; the merge
changes only the model's files and its one MODEL_COVERS entry. The one
conflict, verification/kin/reply/README.md, was two sets of appended
paragraphs: kin's three dated train 16 lines are kept, then the branch's
"Provider sessions" section.

People-change: none
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…irst, and three models re-confirmed for train 17

Step 1 checks an outside read before it checks whose item a cancel names.
So in LeadMemory.shared.test.ts, cancelling another agent's reminder after
this turn read outside text now gets OUTSIDE_REFUSAL, not "Only the agent
that set it up can cancel or replace it…". It is still refused. The test
passes on kin and fails from step 1 on. Its other assertion, the mark
followed from another wake, still gets the ownership refusal as on kin.
No product code changes.

The reply (both PerChat settings), discussion and checkin models were
re-run at the tip. Each README gets its dated line.

People-change: none
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…can't set it up

After an outside read, both Haiku 5.5 and Opus 5.5 answered the schedule
refusal by offering a kin_ask Yes/No card in 16 of 16 eval samples. A tap
can't set up a schedule, so the owner's tap led to a second refusal. The
tool result now says so:

old: "This turn read text from a connected service, so it can't set up a
schedule now. Say what you would set up and ask for a reply in the owner's
own words to go ahead. The owner's next message can start it."
new: "This turn read text from a connected service, so it can't set up a
schedule now. Say what you would set up and ask the owner to type a
go-ahead. Don't offer a kin_ask card: a tap can't set up a schedule. The
owner's next message can."

The rule is unchanged. The two eval cases' mocks carry the new sentence,
and the routine case now fails if kin_ask is called. Case data only; the
REVIEWED_RUNNER pin does not move. Instructions version stays 121.

People-change: After an agent reads a mail, it asks the owner to type a go-ahead for a routine instead of showing a Yes/No card that couldn't start it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since kin's host-policy change, a Kin that starts logs "Managed policy
applies." before it fails, so the three startup cases that counted every
log failed on kin itself (2 for 1). Each case now counts and reads only
Kin's own "Kin disabled: …" lines. ManagedPolicy.ts and layer.ts are
unchanged.

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 de2553b into kin Nov 29, 2026
14 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-29T00:49:19.751299Z 8df445c 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