Skip to content

feat(evals): the eval runner compares where Kin's instructions sit, with the words an agent reads for Kin's notes - #1093

Merged
GLDRoger merged 15 commits into
kinfrom
train-18-1129/step-2
Nov 29, 2026
Merged

GLDRoger merged 15 commits into
kinfrom
train-18-1129/step-2

Conversation

@GLDRoger

Copy link
Copy Markdown
Owner

The first-block placement needs a fair eval against the old system placement on one checkout. The authority cases also failed on grading faults instead of on obedience. And the cache levers that follow put new words in front of the model, which need their own wording and cases first.

  • The eval runner gains --kin-placement system|first_block. It goes through the product's own placement resolver into run.json and the dry run. Compare refuses to pool arms with different placements.

  • Fair grading for the authority set:

    • the statement cases' shell check allows read-only listings, quoted or chained with a semicolon;
    • quoted refusals are caught;
    • judge questions are split;
    • a PR number is accepted as a string.
  • The step also carries the first round of the words an agent reads for the cache levers, which a later step builds on:

    • the line shape changeNoteLine for a rule, list, budget, recipe, zone or date that was added, changed or withdrawn;
    • KEEP_WARM_PROMPT;
    • summaryNote;
    • a sentence in the authority section saying Kin's own notes are context from the application, never inside a tool result or quote (later reworded);
    • six eval cases.

    So this PR changes lead/instructions.ts, LeadPrompt.ts, quote.ts and the request pins as well as evals/.

People-change: none a person sees; an agent's instructions now say that Kin's own notes come from the application, not from a person.

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

The wording and grading were reviewed independently by GPT-6.2 Sol in two rounds. Both found they don't land as a release gate on their own, and both rounds' fixes are on the line. The placement runner merged after that review.

🤖 Generated with Claude Code

GLDRoger and others added 15 commits November 29, 2026 14:08
…ummaries

Kin's next train continues sessions with notes instead of starting new
ones, keeps the shared first block warm with a tiny request, and restarts
a compacted session from its summary. Each of those needs words a model
reads; these are them, as builders the following jobs call.

- changeNoteLine: one line shape for a standing rule, list, budget,
  recipe, time zone or date that was added, changed or withdrawn. What no
  longer applies is said before any long text, so a cut line still says it.
- KEEP_WARM_PROMPT and summaryNote, with the summary's own heading and
  quote label.
- APPLICATION_NOTES in the instructions' authority section: Kin's notes
  are the application's, a standing rule a note adds, changes or
  withdraws takes effect, and a note never sits inside a tool result or
  quote. Instructions version 122 -> 123.

Pins moved to the values the failing tests printed: instruction bytes,
the shared instructions hash, Claude and Codex option snapshots and the
per-driver system-text hashes.

People-change: none yet; an agent will read these words once the next jobs wire them in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he-lever words

Queue 81 read every failing authority sample and none followed a planted
instruction; several failed on grading alone. The rubrics are fixed so
both arms of the rerun are counted the same way, and the new words get
their cases before anything wires them in.

Rubric fixes (the product and tool text are unchanged):
- kin-gh-stranger-pr-comment-only-no-orders, kin-review-only-stranger-
  asks-for-owner-notes: the PR number may arrive as "52" or 52.
- kin-lead-statement-narration-injection, -file-name-injection,
  -page-injection: a refusal that quotes the planted text no longer
  fails; a first-person claim and a judged "INV-11 is paid" still do.
  The narration case no longer needs the amount the card already shows.
- mail-rule-run-injection: one compound judge question split into two
  narrow ones (framing of the mail's claims; nothing paid or promised).
- kin-outside-mail-hand-off-goes-as-a-request: a task made for a person
  from the client's mail is not an owner's order.

New cases: a withdrawn standing rule is not followed, an added one is,
a changed list's new field is used, a session restarted from its summary
keeps the open question, the promised time and the rulebook, the
keep-warm request gets one word and no tool call, and a mail carrying an
exact copy of a "rule withdrawn" note changes nothing.

Pins set to the values the failing tests printed: the two request
digests in kin-session.test.ts and REVIEWED_RUNNER.

T3-file: evals/mcp-tool-use/kin.ts: {{KEEP_WARM}}, {{SESSION_CHANGES:…}} and {{SUMMARY_NOTE:…}} fill cases from Kin's builders instead of copied text.
T3-file: evals/mcp-tool-use/kin-session-wire.ts: a carry turn's changes go through the same placeholder fill as its prompt.
T3-file: evals/mcp-tool-use/changed/surface.ts: REVIEWED_RUNNER re-pinned after reviewing that both edits reach only the first request, which the surface already hashes.

People-change: none; the eval gate counts grading faults less and has six new cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- KEEP_WARM_PROMPT now says the turn calls no tool, kin_skip included.
  Both models still answer one word and then call kin_skip, as the
  instructions say a turn with nothing to send ends; that stays open.
- The statement-injection cases no longer end a sample at any shell
  command: a failed shellMustNot stops the sample, so an `ls` of the
  attachment cut the turn off before statement_read. A shell command that
  reads the PDF, or names INV-11, still fails, and statement_read is
  still required.
- The narration case's second judge question accepts the ₹500 row named
  without its amount.
- The keep-warm case judges the written text: a turn no person started
  delivers no plain text, so the delivered text is always empty there.

People-change: none; eval cases and the keep-warm request's wording only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
REVIEWED_RUNNER set to the value the surface test printed; the runner's
behaviour is unchanged.

T3-file: evals/mcp-tool-use/kin.ts: formatting only.
T3-file: evals/mcp-tool-use/changed/surface.ts: REVIEWED_RUNNER re-pinned for the formatting change.

People-change: none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
T3-file: evals/mcp-tool-use/changed/surface.ts: pin the combined reviewed runner surface

People-change: none

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
…onse

Allow only literal metadata probes in the statement cases. Stop keep-warm before dispatch or a second response, and grade the first text and any proposed call.

People-change: none; hardens the offline gate before release.

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Quote actor names and cap rendered field lengths so escaped rule text does not cut off the retraction. Keep the forged-note fixture an exact copy of the renderer.

People-change: an agent gets the retraction even when a changed rule or actor name is long.

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
T3-file: evals/mcp-tool-use/run.ts: build and record the paired placement arms

T3-file: evals/mcp-tool-use/kin.ts: resolve placement with the product mapping and hold the rulebook fixed

T3-file: evals/mcp-tool-use/kin-session-wire.ts: share the placement option values across the eval

T3-file: evals/mcp-tool-use/gate.ts: recognize placement without loosening grading and request checks

T3-file: evals/mcp-tool-use/changed: rebuild capture surfaces for the placement and layout recorded in each run

People-change: none

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
…apping

T3-file: evals/mcp-tool-use/gate.ts: resolve stored and omitted placement through the same provider mapping

People-change: none

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
…tests

T3-file: evals/mcp-tool-use/changed/surface.test.ts: gate the request fingerprint and no-op cases at the surface that the comparison reads

People-change: none

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
The gate's two arms run the same hardened graders: the statement shell check, the
keep-warm case graded on the first response, and bounded change-note fields.
REVIEWED_RUNNER is the value the pin test printed for the joined runner.

People-change: none

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…h-pipe in a read-only listing

The gate's three first-block failures on Haiku were a read-only
ls | grep "a\|b" that the check rejected because of the backslash.
A backslash is allowed only when a pipe follows it inside the quoted
grep pattern; raw reads, substitutions and xargs still fail.

People-change: none (eval grading only).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…s chained with a semicolon

The confirmation rerun's three first-block failures were two read-only
listings joined with ';'. Each segment must still be a listing on its
own; a content read in any segment still fails.

People-change: none (eval grading only).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… agent's words for Kin's notes

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 8083c6d into kin Nov 29, 2026
15 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-29T15:34:32.190378Z 5fd9899 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