Repository navigation
feat(kin): Kin's standing instructions travel as a marked first block that new Claude sessions reuse - #1092
Merged
Conversation
T3-file: evals/mcp-tool-use/kin.ts: use the product placement for the baseline and candidate T3-file: evals/mcp-tool-use/run.ts: model the provider placement before case history T3-file: evals/mcp-tool-use/kinAppServer.ts: read the text of the unchanged Codex placement T3-file: evals/mcp-tool-use/changed/surface.ts: pin the reviewed shared runner People-change: none Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
T3-file: apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts: attach the supplied cache block only at native delivery without storing or logging a different app prompt T3-file: apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts: prove native first-offer, resume, steer, goal and attachment behavior T3-file: evals/mcp-tool-use/cases/kin.ndjson: cover later mail and member messages posing as standing instructions T3-file: evals/mcp-tool-use/kin-session.test.ts: pin the observed request hashes and assert instruction placement and restoration People-change: An agent’s standing rules now arrive at the start of the conversation instead of the system text; nothing a person sees changes. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
People-change: none Co-Authored-By: GPT-6.2 Sol <noreply@openai.com> # Conflicts: # apps/server/src/kin/lead/turn/providers/provider.ts # evals/mcp-tool-use/cases/kin.ndjson
T3-file: evals/mcp-tool-use/run.ts: stage leading text ahead of replayed messages and avoid an empty message before a compact hook resume T3-file: evals/mcp-tool-use/kin-session-wire.ts: retain the mark on a single marked text block T3-file: evals/mcp-tool-use/changed/surface.ts: pin the reviewed runner used by both gate arms People-change: none Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
People-change: none Co-Authored-By: GPT-6.2 Sol <noreply@openai.com> # Conflicts: # apps/server/src/kin/lead/turn/providers/provider.ts
T3-file: evals/mcp-tool-use/kin-session.test.ts: assert the observed request digests and exact restored layout People-change: none Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
T3-file: apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts: allow a marked opening block to retain the provider default People-change: none Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
The block's sections, minus the one new sentence, are exactly the system rendering's sections: none dropped, none duplicated, the version line first and the guarding sections next. People-change: none Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Kin seat sends no system text, so the leading block is its only copy of the rules. A /goal as the first offer consumed the block without sending it, and every later message in that session ran with no rules. The block now waits for the first offer that is not a /goal. T3-file: apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts: a /goal first offer leaves the leading block for the next offer People-change: none Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner and shared Claude seats send no system text, so a /clear, which moves the live process to an empty native session, left every later request in that session, including carried wakes, with no rules. The SessionStart hook now re-attaches the block on clear as it does after a compaction. People-change: none Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
T3-file: apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts: attach the first native-session block T3-file: evals/mcp-tool-use: carry placement through the eval harness People-change: none Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
People-change: Hosts can keep Kin instructions in the system prompt when their model route caches it. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
People-change: none Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
People-change: Shared Claude chats now request the same one-hour cache lifetime as the owner chat. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
People-change: After reading a file or photo, Kin uses the bill reader instead of typing in an expense. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
T3-file: evals/mcp-tool-use: replay the captured compaction context without a mid-list system entry T3-file: apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts: keep the fixture text typed as a string People-change: The compaction eval now runs the model instead of failing on the request layout. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Haiku 5.5 and Opus 5.5 each passed all 32 smoke samples, including both compaction replays and both instruction spoof cases. The train gate is still separate. People-change: none Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
People-change: Reading an attachment does not stop Kin from retrying an interrupted turn. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Any native Read on the owner seat, the agent's own memory notes included, and any attached spreadsheet or text file marked the turn, so an expense the person typed was refused and pointed at bills_add, which reads only photos and PDFs. The mark now follows what bills_add and the instructions cover: a PDF's text, a picture, or a Read of a PDF or image. People-change: A typed expense is recorded even when the agent read its own notes or a spreadsheet in that turn. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t new sessions reuse 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.
Kin's standing instructions sit in the system part of every Claude request, and on this route nothing there is reused between sessions. Every new or cold session rewrites about 19,000 tokens of the same rules.
kinInstructionPlacement, defaults to"first_block". With it, the system text is empty and the instructions travel as a marked first block of the conversation's first message, with a one-hour cache lifetime."system"keeps the old placement./goalor/clearno longer uses up or loses the block.People-change: New Claude chats can reuse Kin's instructions, and an expense from a file or photo goes through the bill reader.
Checked as part of train 18's one check at the tip.
An independent review by Claude Opus 5.5 found it LANDS AFTER FIXES, and its fixes are on this branch.
🤖 Generated with Claude Code