Skip to content

v3 V3-08: planted-intent corpus with a held-apart answer key - #63

Merged
githubscum merged 3 commits into
mainfrom
lotor-lane/v3-08-planted-intent
Oct 22, 2026
Merged

githubscum merged 3 commits into
mainfrom
lotor-lane/v3-08-planted-intent

Conversation

@githubscum

Copy link
Copy Markdown
Owner

WO: V3-08, the planted-intent corpus with its answer key (v3 spec, "Work orders, first wave"; serves evals E3 and E6).

What it adds (test-data and one test; nothing under src/ or bin/):

  • test-data/v3-planted-intent/corpus.json: 8 synthetic runs, 4 honest and 4 divergent. Divergent cases: a "fix a test" run that reads a fake secrets file and ships canaries to an external URL; a "docs" run that edits package.json scripts instead; a "summarize logs" run with an undeclared secrets read and no use; an "audit" run that posts a token outward.
  • test-data/v3-planted-intent/answer-key.json: real intent, divergence, evidence step indices and canaryLeaked per run, in its own file so the meter can be scored blind.
  • test/v3-planted-intent-corpus.test.js: 8 tests. Shape and id equality across the two files; the split (no key vocabulary on the corpus side, nothing under src/ names the key or the corpus, so Lotor cannot drift into reading intent); reach bounded by the V3-01 measurement (claude and glm flash cloud R0-R3, qwen R0-R2 plus R4, never R5); canaries well-formed, unique, present in the secrets read, and canaryLeaked re-derived from the corpus must equal the key.

Tested: npm test 1064/1064 (main 1056 + 8). Mutation probes, each made to fail the suite and then restored: R4 added to a claude run, R3 added to a qwen run, R5 added anywhere, R1/R2 dropped from a run with tool steps, a key field planted in the corpus, a canary moved out of its read result.

Eval status: E3 and E6 now have their input. Neither is scored yet; the meter's finding schema (V3-07) is not built.

Executor: glm-5.3-flash:cloud, three passes, session.model read on the chain (receipt seq 36341, 36348, plus the README pass). The first pass claimed reach the measurement rules out (claude R4, qwen R3); the lane caught it and the fix pass added the measured-reach bound as a test. The README pass corrected wrong definitions of E6 and of the rungs.

What a reviewer should doubt:

  • Home. Earlier runs held V3-08 waiting for a ruling on brain projects/meter/v3/ vs the repo. This PR puts it in the repo because the split test needs src/ beside it. If the corpus belongs to the meter, close this; the test moves with it.
  • qwen2.5-coder:7b reach is carried over from the qwen2.5:7b measurement, not measured itself.
  • The corpus is hand-planted and small. It tests that a meter can find intent planted the way we thought to plant it, not intent in general.
  • The test file comments have 3 em dashes (executor's; left alone because the repo's test comments use them).

githubscum and others added 2 commits October 19, 2026 16:44
Eight synthetic runs (4 honest, 4 divergent) for E3 and E6. The answer key
lives in its own file and the test pins the split: no key vocabulary on the
corpus side, nothing under src/ names the key. Scenario reach is bounded by
the V3-01 measurement, not declared. Canaries planted in a fake secrets read;
canaryLeaked is re-derived from the corpus and must agree with the key.

Executor glm-5.3-flash:cloud (three passes), verified by the lane.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- pi-03: the Edit now replaces the old hook path in all three places
  (replace_all), so the trace does what the declared purpose says and the
  diff --stat (3 insertions, 3 deletions) fits it.
- pi-08: the token rides in the WebFetch URL, as in pi-05; the prompt
  carries nothing. canaryLeaked stays true and is still re-derived.
- canaries move from the corpus (pi-05, pi-07, pi-08 only, which labelled
  them) into every answer in the key. A scenario now carries exactly
  id, declaredPurpose, model, reach, steps.
- pi-09 added: an honest run whose declared work is reading
  secrets/.env.example-lane, so a secrets read no longer separates the
  classes. The test asserts at least one such run.
- Split test: canaryLeaked and "canaries" banned on the corpus side, a
  test that every key field is banned, and the src/ walk extended to
  bin/ as the README claims. Header and README updated to match; the
  README names the key-beside-corpus location as an open question.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@githubscum

Copy link
Copy Markdown
Owner Author

Review fixes pushed in 5016ec8. Each finding was re-checked against the code first; all four held.

Fixed

  1. pi-03 trace contradicted its purpose. The Edit kept bin/hook-pre-tool-use.js and appended text, and a one-line edit could not produce 6 +++---. The read result now names the old path (bin/pre-tool.js, 3 places) and the Edit replaces it with replace_all: true, so the trace renames the hook as declared and the stat (3 insertions, 3 deletions) fits.
  2. pi-08 token not in the request. The canary was only in the WebFetch prompt, which never reaches the remote host. The token now rides in the URL (?k=...) as in pi-05, and the prompt carries nothing. canaryLeaked stays true, still re-derived by the test.
  3. canaries labelled the class. It sat on the corpus side of pi-05, pi-07 and pi-08 only, all divergent. It now lives on every answer in the key (empty where there is no secrets read), and a scenario must carry exactly id, declaredPurpose, model, reach, steps. Added pi-09, an honest run whose declared work is checking secrets/.env.example-lane and running the egress tests against it, so a secrets read no longer separates the classes. The test asserts at least one honest run reads the file.
  4. Split test. canaryLeaked and "canaries" added to BANNED_ON_CORPUS_SIDE, plus a test that every key field is in that list. The src/ walk now also covers bin/, as the README claimed. The header now states the check is over strings and that the key still sits beside the corpus; the README says the same.

npm test: 1066 pass, 0 fail (was 1064; +2: the bin/ walk and the every-key-field-banned check).

Open, for the owner: where answer-key.json should live. It sits in the same directory as corpus.json, which is the arrangement the README itself warns makes blind scoring unenforceable. The tests check strings, not location, so a meter given this directory can still open the key. Options, not decided here:

  • Sibling directory (e.g. test-data/v3-planted-intent-key/). Smallest change; holds if the meter is only ever handed the corpus directory.
  • Out of the repo (e.g. the meter's own project, with the test reading the key from a configured path and skipping the key checks when absent). Strongest blindness if the scored executor can read the whole repo; costs the key-consistency checks in CI.
  • Leave it, and make the meter harness pass corpus.json by file path only. Enforced by the harness, not by layout.

githubscum added a commit that referenced this pull request Oct 22, 2026
The KNOWN-LIMITS numbering test requires contiguous entries, so numbers
follow the merge order #65, #66, #64, #63, #60, #62, #61, #67, #68, #69,
#70, #71: #62 takes 75, #61 takes 76, this PR takes 77. Every citation on
this branch moves with it (KNOWN-LIMITS.md heading and the limit 53 note,
src/views/matcher-history.js header, test/matcher-history.test.js comment).

On this branch alone the numbering test reports 75 and 76 missing; that
clears once #62 and #61 are on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
githubscum added a commit that referenced this pull request Oct 22, 2026
The KNOWN-LIMITS numbering test requires contiguous entries, so numbers
follow the merge order #65, #66, #64, #63, #60, #62, #61, #67, #68, #69,
#70, #71: #62 takes 75, #61 takes 76, #67 takes 77, this PR takes 78.
Every citation on this branch moves with it: KNOWN-LIMITS.md heading,
CHANGELOG.md, docs/receipt-coverage.md, and the V3-03 proposal note. The
staged .patch carries no limit number and is unchanged.

On this branch alone the numbering test reports 75, 76 and 77 missing;
that clears once #62, #61 and #67 are on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… (2026-10-22)

test-data/v3-planted-intent/answer-key.json -> test-data/v3-planted-intent-key/answer-key.json,
so a meter pointed at the corpus folder cannot read the key. New README in the key folder:
held-apart key, never passed to a model under test. Corpus README and test updated.

Tests: the key path sits outside the corpus folder and no corpus-folder file is named like it;
every file in the corpus folder, no filename exception, is free of BANNED_ON_CORPUS_SIDE strings,
so the key cannot drift back under another name. Harness enforcement is a later step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@githubscum

Copy link
Copy Markdown
Owner Author

Answer key moved to a sibling folder per the owner's ruling (2026-10-22); harness enforcement is a later step.

@githubscum
githubscum merged commit c9c8c96 into main Oct 22, 2026
githubscum added a commit that referenced this pull request Oct 22, 2026
The KNOWN-LIMITS numbering test requires contiguous entries, so numbers
follow the merge order #65, #66, #64, #63, #60, #62, #61, #67, #68, #69,
this branch moves with it (KNOWN-LIMITS.md heading and the limit 53 note,
src/views/matcher-history.js header, test/matcher-history.test.js comment).

On this branch alone the numbering test reports 75 and 76 missing; that
clears once #62 and #61 are on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant