Skip to content

Seed the decision fixture instead of setup turns, name exclusion causes, and ask about a typeless duplicate create (closes #3500) - #3504

Merged
malibio merged 11 commits into
mainfrom
issue-3500-eval-scenario-failures
Oct 3, 2026
Merged

malibio merged 11 commits into
mainfrom
issue-3500-eval-scenario-failures

Conversation

@malibio

@malibio malibio commented Oct 3, 2026

Copy link
Copy Markdown
Collaborator

Closes #3500

What was wrong

schema-on-menu-company did not regress from a commit. The model's first call in every failing run was create_node {"content":"Northwind Trading","field_values":{"name":"Northwind Trading, signed_date:"}}: no node_type, so the duplicate guard (which matched on type and title) let it through, the executor refused it for the missing field, and the turn ended apologising for the tool error. Bisected across d9f8974…9dbc804 with prompt dumps, the call came out whole or broken with the **workspace**, not the build. Every broken one was asked with a second venue type beside the first (event_placeandevent_venue), which a later chat's setup turn had named differently from an earlier one's; the whole one, on the #3496-only build, had one venue type. main`'s own build, run on this branch's seeded fixture, passes 3 of 3 with a well-formed call.

The decision fixture's setup turns made every scenario depend on the chats before it. The run seed already created the company type, so setup-company was a refused no-op in every chat and setup-venue in every chat after the first. Each scenario was asked after two failed turns, model-named duplicate types accumulated, and a setup turn that answered "that type already exists" blocked its scenario.

The summary called every unscored scenario a "degenerate empty generation", whatever excluded it.

Change

eval harness

  • The decision fixture seeds both custom types (company_sold_to, event_venue) and Northwind once per rep, and has no setup turns: every scenario is the first turn of its own chat, against the same two types, whatever ran first. The setupStatePresent hook and setupLeftStateMissing, which existed only to let those setup turns meet existing types, are deleted.
  • The reliability table and the baseline diff name what excluded a scenario: an empty generation, an asserted tool never offered, or a failed group setup, with rep counts when causes differ across reps.
  • The skill-index wait counts a skill as retrievable only once its vector exists. It counted the stale embedding row a node gets at creation, so with no setup turns to fill the time the held-turn scenarios were sent ~30s before their linked skills were embedded, and retrieval never saw them.
  • Routing: a clarify scenario passes when the turn asked (Stage 1's clarification, or a reply that puts a question to the user) and wrote nothing. A fixed phrase list had scored "Could you provide more context…?" as no question, so ambiguous-client-contacts passed or failed on which of two equivalent phrasings the model picked. A search before the question is accepted for that scenario, and the fixture says why.
  • declarative-fact-report-resolved: decision recorded in the fixture (kept as scored, no fix): see its comment.

agent

  • The duplicate guard matches a create_node that names a mentioned entity's title and no type. That call cannot run, and left to the executor the user was told a tool call failed instead of being asked about the record they named.

Tests

  • agent_loop unit tests: a create with no type (or a blank one) matches by title; another type or another title does not; the malformed call above is refused and the user is asked.
  • runner.test.ts: exclusion causes per scenario, the table naming each, describeExclusions.
  • routing.test.ts: clarify scoring (Stage 1 ask, search-then-ask, ask after a write, no question).
  • preflight.test.ts: the default embedded-skill query against a real SQLite file ignores stale rows.
  • decisions.test.ts: one chat per scenario, no setup turns.
  • bun run test:changed passes (rust, scripts, types and node-types drift).

Eval

Before/after results, from full runs of both fixtures on gemma-4-e4b-q4km, are posted on #3500.

🤖 Generated with Claude Code

@malibio

malibio commented Oct 3, 2026

Copy link
Copy Markdown
Collaborator Author

Pragmatic Code Review: PR #3504 (initial review)

Review type: Initial review
Recommendation: APPROVE (with two optional improvements)

Summary

This PR improves the code. It removes the cause of the problems, the setup turns that made each decision scenario depend on the chats before it, instead of patching around them. It also deletes the workaround machinery those turns needed: setupStatePresent, setupLeftStateMissing, setupStateAlreadyPresent, establishes, the type-hint matching and ListedSchema. That removes about 485 lines and leaves nothing dangling. The setup: machinery in the runner is still used by agent-matrix.ts, so keeping it is correct. Exclusion causes are now counted from the same per-result flags that partitionExcluded uses, so the label and the denominator always agree. The agent change is narrow, and its reasoning holds: a create_node without node_type can never run, because with_offered_types keeps the parameter required. Refusing it as a duplicate therefore cannot block a create that would otherwise have worked. It only replaces a tool error with a question to the user.

Harness tests: bun test scripts/eval/fixtures scripts/eval/runner.test.ts scripts/eval/preflight.test.ts passes 238 of 238. I did not run the Rust unit tests here; the PR says test:changed passed.

Requirements check (#3500)

Criterion Status Notes
Regressing commit identified; schema-on-menu-company passes 3/3 in a full run ⏳ The PR finds that no commit caused it: whether the call came out malformed followed the workspace (two venue types), not the build. The explanation is consistent with the evidence in the issue: the failing runs had the event_place/event_venue duplication and the passing run did not. The bisect itself can't be re-checked here. The fixture records the finding, and the guard now catches the typeless call. Waiting on the 3/3 full-run result.
ambiguous-client-contacts fixed or its expectation changed with the reason recorded ✅ A search before the question is accepted. The reason is written next to the scenario. The scoring no longer depends on which phrasing the model picks.
declarative-fact-report-resolved decision recorded ✅ Kept as scored, with no fix. The comment says plainly that 2 of the 3 passes rely on the agent's reply backstop.
Setup turns don't depend on earlier chats ✅ There are no setup turns now. Types and Northwind are seeded once per rep, by fixed id, and the seed is idempotent and fails loudly if a type is missing.
A declined setup is not reported as a degenerate empty generation ✅ describeExclusions / countExclusions name each cause. The table marker is ⊘ only when every excluded rep was an empty generation.
Before and after results from full runs of both fixtures ⏳ The author is posting these on #3500 separately.

Findings

Critical

None.

Improvements

  • 🟡 packages/agent/src/local_agent/agent_loop.rs:1019-1029: the disarm filter runs after find, so a title-only match can pick an entity that is already disarmed and stop there.
    This was harmless while matches needed type and title. With typeless matching, several mentioned entities can share a title under different types. Say the first one was already asked about (it appears in composed_clarifications): find returns it, .filter drops it, and the guard returns None. The call then goes to the executor and fails with "missing field node_type", which is the apology turn this PR exists to remove. The same applies to a typed call if two entities ever share both type and title.
    Fix: move the disarm check into the find predicate so the search moves on to the next candidate:

    .find(|e| {
        node_type.is_none_or(|t| e.node_type == t)
            && comparable_title(&e.title) == title
            && !composed_clarifications.iter().any(|asked| asked.contains(e.id.as_str()))
    })

    Then add a unit test with two same-titled entities where the first is disarmed. Principle: correctness at the edges the change creates. Widening the match makes "several candidates" possible, and the selection logic should handle it.

  • 🟡 scripts/eval/fixtures/routing.ts:335-356 (isClarification): the wider phrase list raises the false-positive rate, because the ? and the phrase can come from different sentences.
    could you, let me know and what kind now count, and hasQuestion / asksTheUser are each checked against the whole reply. Two examples that would pass:

    • "Here are your docs: 'What kind of DB?' … Let me know if you need more." (a quoted title supplies the ?)
    • "I couldn't find anything. Let me know if you want help. Anything else?"

    In clarify scenarios the new universal no-mutation rule limits the damage: a turn that organized something still fails. But a read-only turn that never asks the user anything can now pass, which matters for ambiguous-manage-projects. There is also a false negative: "Want me to try another search?" matches no phrase.
    Fix (cheap): split the reply into sentences and require a sentence that ends in ? and contains one of the phrases. Add a test for the quoted-title case. Principle: a scorer should fail closed. A permissive heuristic quietly turns real misses into passes.

Nits

  • 🟢 Nit: scripts/eval/fixtures/routing.ts:483-486. The comment says a read before the question is allowed "(see ambiguous-client-contacts for why)", and the PR body says it is accepted "for that scenario". The code allows it for every clarify scenario, as it did before this PR. Reword the comment to say the rule is general and the justification lives on that scenario. That keeps a later reader from looking for a per-scenario switch.
  • 🟢 Nit: routing.ts, universal no-mutation rule. This makes ambiguous-manage-projects stricter: before, a mutation after a question passed for a non-adversarial scenario. That is the right call, but a before/after flip on that scenario will come from this change, not from the model. Mention it in the results comment on Three eval scenarios fail on main, one of them a regression of a closed fix; the decision fixture's setup depends on earlier chats #3500.
  • 🟢 Nit: scripts/eval/fixtures/decisions.ts SEEDED_TYPES. The company type passes its id as name (company_sold_to), while the venue type passes a display name (Event Venue) and relies on the daemon deriving event_venue. The post-create check catches a mismatch, so this is cosmetic. Using the same form for both would make the seed easier to read.
  • 🟢 Nit: decisions.ts, company type name field. The new comment says "a record's name is its title". The company type still carries a separate name field, and the malformed call put the title into field_values.name. Keeping the field preserves comparability with earlier runs, which is a fair reason. Worth watching as a possible trigger of the half-written field value.
  • 🟢 Nit: scripts/eval/preflight.ts:333 (stale = 0). embeddings.rs re-marks an existing row stale when its node is updated, and the old vector stays. A skill edited after embedding will therefore drop out of the count until it is re-embedded. That is conservative (the wait is slower, never wrong), but the comment only mentions creation. One clause covering updates would make the gate's behaviour fully predictable.
  • 🟢 Nit: several new comments are written as history ("It once read as a regression…", "They were once two setup turns…"). They do explain why the current shape exists, which is legitimate. Trim them to the constraint where the history adds nothing, so the fixture doesn't become a changelog.

Verdict

APPROVE. None of the findings block. The find/filter ordering is a small fix and worth folding in now, because the widened match introduced it. The isClarification tightening is optional but cheap.

@malibio malibio left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated pragmatic-code-review: APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.

@malibio

malibio commented Oct 3, 2026

Copy link
Copy Markdown
Collaborator Author

Review addressed (ba6f987)

Addressed

  • 🟡 mentioned_entity_duplicated_by: the already-asked check is now inside the find predicate, so a typeless create still matches a second entity with the same title when the first was already asked about. New unit test a_typeless_create_skips_a_same_titled_entity_already_asked_about; the 14 duplicate-guard tests pass.
  • 🟡 isClarification: the phrase must sit in a sentence ending in ?; quoted text is ignored ("What kind of DB?" as a title no longer passes); a full stop splits a sentence only before whitespace, so "(e.g., Feature Specs, ADRs)?" stays one question; "want me to" added. Tests cover each case. Re-scoring every recorded routing turn (the before rep and all three after reps) with the new scorer changes no verdict except the intended one: ambiguous-client-contacts in the before rep.
  • 🟢 The read-before-asking allowance is stated as general to clarify scenarios.
  • 🟢 The stale = 0 comment covers edits as well as creation.
  • 🟢 The schema-on-menu-company note states the constraint instead of the history.
  • 🟢 ambiguous-manage-projects under the stricter no-write rule: passed 3/3 in the after run, so the scoring change moved nothing there. Noted with the results.

Skipped

  • 🟢 Seeding the company type under a display name, and dropping its name field. Both would change the type every earlier run was scored against, and the after run already passes the scenario with the type as it is. Worth revisiting if the half-written field value reappears.

quality:fix clean. Harness tests 240/240.

Re-Review Decision

Decision: NO RE-REVIEW NEEDED

Rationale: Two small, test-covered changes: one predicate merged into another in the guard, and a stricter, sentence-scoped version of a scorer function, validated against every recorded routing turn. Everything else is comment wording.

@malibio

malibio commented Oct 3, 2026

Copy link
Copy Markdown
Collaborator Author

Pragmatic Code Review: PR #3504 (re-review)

Review type: Re-review of 849e7e52..HEAD (ba6f987, 0c0af89, b07fc70)
Recommendation: APPROVE (one test fix worth folding in; it is small)

Previous review summary

Count
Recommendations in the initial review 8 (2 improvements, 6 nits)
Addressed 6 (both improvements and 4 nits, two of them covered by the results note)
Skipped, with a stated reason 1 (company type display name and name field: keeps earlier runs comparable. Accepted.)
Not addressed 0 (the "comments written as history" nit was partly done: the schema-on-menu-company note was trimmed)
New issues in this round 1 improvement, 3 nits

Previous findings, verified:

  • mentioned_entity_duplicated_by: the already-asked check now sits inside the find predicate. The new test a_typeless_create_skips_a_same_titled_entity_already_asked_about is the exact case raised (two entities with the same title, the first already asked about), and it asserts the second one is matched. Fixed correctly.
  • isClarification: the check is now scoped to the sentence. It strips quoted text, keeps "e.g." inside its sentence (\.(?=\S)), adds "want me to" and drops "let me know". The tests cover the quoted title, the "Let me know… Anything else?" reply, the abbreviation and the offer. This closes the scorer as recommended. It also no longer passes the false positives I gave.
  • The comment nits (the read-before-asking allowance is general, the stale = 0 comment covers edits, the constraint is stated instead of the history) are all done.

Tests: harness 240/240. nodespace-agent filtered unit tests (tool_failure | failed_lookup | duplicate_entity | same_titled) 8/8.

New findings

Critical

None.

Improvements

  • 🟡 packages/agent/src/local_agent/agent_loop.rs, the negative half of a_failed_lookup_recovered_by_another_lookup_keeps_the_answer: it doesn't test what its comment says.
    The comment says "A write is not a lookup: it cannot stand in for one that failed." But FieldFilterRefusedExecutor returns is_error: true for every tool except search_semantic, so the update_node in that run fails as well. A failed later call never counts as recovery under any rule, so this assertion would still pass if is_graph_lookup_tool returned true for UpdateNode, or for every tool. The boundary the commit draws ("a write still does not") has no test.
    Fix: make update_node succeed in the executor, e.g. "search_semantic" | "update_node" => (json!({...}), false). The negative case then shows that a successful write does not recover a failed lookup. Principle: a test must be able to fail. A negative case whose setup guarantees the outcome pins nothing.

Nits

  • 🟢 Nit: packages/agent/src/local_agent/tools.rs:2838-2853 (is_graph_lookup_tool): it duplicates Tool::resolves_entities, and it isn't an exhaustive match.
    The five tools are exactly the set Tool::resolves_entities returns true for (SearchNodes | ResolveQuery | SearchSemantic | GetNode | GetRelatedNodes). The module doc says tool classifications are "computed from here" so the lists cannot drift. Each predicate on Tool is an exhaustive match so that "a tool added later must be classified by whoever adds it". The new function is a matches! list outside impl Tool. The failure direction is safe: an unclassified new read tool simply does not recover, so the error is still shown. So this is a consistency nit, not a bug. Either have it delegate (Tool::from_name(tool).is_some_and(Tool::resolves_entities), with one line saying a tool that surfaces graph nodes is also a lookup), or make it an exhaustive Tool::is_graph_lookup method next to resolves_entities. Principle: DRY / single source of truth for tool classification, as the registry's own doc asks.

  • 🟢 Nit: agent_loop.rs ~3917-3938, recovery that matches no target. The widened rule recovers a failed lookup with any later successful lookup, whatever its target. Take a two-part question: get_node(A) fails, then search_semantic("B") succeeds. A's failure is now dropped from the guard, and if the reply covers only B, the user is not told A could not be read. This hole already existed for repeats of the same tool (get_node(A) fails, get_node(B) succeeds), so the change widens an existing trade-off rather than creating a new one. Matching targets across different tool argument shapes is not worth doing here, and the eval case is the common one. I accept this as is. Consider one sentence in the comment saying that recovery is per kind of tool, not per target, so a later reader doesn't take it as "the same question was answered".

  • 🟢 Nit: scripts/eval/fixtures/decisions.ts seed (b07fc70). node update takes --property more than once (Vec<(String, Value)>, deep-merged). Northwind Trading is not valid JSON, so it is stored as a string. Both values are rewritten on every rep, so the seed is idempotent and also fixes a rep left half-seeded. The change is correct. In the last round, changes to the company type were skipped because they "would change the type every earlier run was scored against". Filling name does change what a name-filtered search returns, so outcome-record-field-is-answered can now pass where the before run would not, for a reason that has nothing to do with the model. Mention it next to that scenario's before/after numbers on Three eval scenarios fail on main, one of them a regression of a closed fix; the decision fixture's setup depends on earlier chats #3500, as was done for ambiguous-manage-projects.

Verdict

APPROVE. The two earlier improvements are fixed, with tests that pin them. The widened lookup recovery is a reasonable reading of "what grounds the answer", and it never extends to writes. The only gap worth closing before merge is the negative test, which cannot currently fail. It is a one-line change to the executor.

@malibio malibio left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated pragmatic-code-review (re-review): APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.

@malibio

malibio commented Oct 3, 2026

Copy link
Copy Markdown
Collaborator Author

Re-review addressed (3b7afca)

Addressed

No behaviour change; 5/5 failure-surfacing tests pass.

Re-Review Decision

Decision: NO RE-REVIEW NEEDED

Rationale: A test fixture correction, a helper replaced by the identical existing classification, and a comment.

@malibio

malibio commented Oct 3, 2026

Copy link
Copy Markdown
Collaborator Author

Pragmatic Code Review: PR #3504 (re-review of 68a5cac)

Review type: Re-review of 3b7afcae..68a5cac6 (one commit: the decision workspace is set back before every chat)
Recommendation: APPROVE (one dead-code removal worth folding in)

Previous review summary

The last re-review had 1 improvement and 3 nits. All four were addressed in 3b7afca, and address-review decided no re-review was needed. This round covers only the new commit.

What was verified

  • The runner calls seedGroup before every group, the first of a cold rep included. It runs in runRep (runner.ts ~1092), after newChat and before the pre-turn snapshot. So the reset Northwind is in before and never counts as the turn's createdNode or updatedNode.
  • A cold rep still works. seedWorkspace creates its own two types when they are missing, and throws if they are still absent afterwards. It depends on nothing a setup turn creates. That dependency is what made the old seedGroup approach no-op silently, and it no longer exists.
  • No scenario relies on an earlier chat's write. Each scenario has its own chat, and none is a setup turn (the test asserts this). Resetting signed_date and name before each chat is what outcome-record-field-is-answered needs, and it also undoes declarative-state-change-resolved's 20 March write.
  • It is idempotent. Types are created only when missing, Northwind is found by title before anything is created, and the update is a fixed overwrite.
  • Linked-skill seeding still comes last and runs once per linked group. It runs after the workspace inside seedGroup, and it is itself idempotent.
  • Cost: about four CLI calls per chat (two schema list, one node query, one node update). That is negligible next to a turn.
  • Tests: bun test scripts/eval/fixtures scripts/eval/runner.test.ts scripts/eval/preflight.test.ts: 240/240 pass.

Findings

Critical

None.

Improvements

  • 🟡 scripts/eval/types.ts:412-437 and scripts/eval/runner.ts:1501-1520: seedRun is now dead, and its docs contradict this commit.
    decisions.ts was the only fixture that implemented seedRun, and nothing else defines it any more. The hook's doc and the runner's comment still say that seedGroup "cannot" re-establish instance state, and that "a fixture whose scenarios act on named INSTANCES wants this one". This commit shows the opposite: a seedGroup that creates its own types works on a cold rep. The next reader would take that doc as the rule and move the seed back.
    Fix: delete EvalFixture.seedRun and the per-rep block in runner.ts. Keep one sentence in the seedGroup doc: a seed that runs before every group must create everything it depends on, and must not wait on state a setup turn makes. That sentence is the lesson the deleted text was guarding.
    Principle: YAGNI. CLAUDE.md says to delete unused code rather than keep it around, and a doc that contradicts the code is worse than no doc.

  • 🟡 scripts/eval/fixtures/decisions.ts:334-340 (the seedWorkspace doc): "each scenario starts from the same workspace whichever chats ran before it" claims more than the code does.
    The reset restores Northwind's two fields. It does not remove nodes that earlier chats created. Two scenarios can create such nodes:

    • schema-on-menu-company ("Add Northwind Trading to the companies we sell to."): this is the case where the guard misses and a second Northwind gets created.
    • schema-field-disambiguates ("Northwind can seat 200 people now."): the model may create an event_venue called Northwind.

    After either one, find keeps whichever Northwind the query returns first, and every later scenario resolves the name against two nodes. That is the same class of fault as the April bug: an earlier chat's write is scored against a later chat. The hazard is older than this commit, but this commit's doc now says it cannot happen.
    Fix: either narrow the doc ("Northwind's fields are set back; records an earlier chat created are not removed"), or make the invariant true. To make it true, seedWorkspace deletes every company_sold_to / event_venue node titled Northwind except the one it keeps. The second fix is a few lines and closes the hole.
    Principle: correctness of stated invariants. A harness comment that promises isolation is what a reader trusts when results look odd.

Nits

  • 🟢 Nit: decisions.ts, the node update in seedWorkspace. This now runs before every chat even when nothing changed. A node update re-queues the root for embedding (queue_root_for_embedding), so every chat may start with Northwind's vector stale and re-embedding while the turn runs. Consider skipping the update when the queried node already holds both values. That needs a properties read, or a node get.
  • 🟢 Nit: decisions.test.ts, "every chat is seeded with the workspace, and only the last ones with linked skills". The title says "the last ones", but nothing checks the order. Add an assertion that the linked groups form a suffix of fixture.groups. The "must stay last" comment above the linked scenarios would then be enforced.
  • 🟢 Nit: decisions.ts, the seedLinkedSkills doc. It says "seeding them per run would change what every other scenario is scored against". Now that nothing is seeded per run, "seeding them for every chat" says what is meant.

Verdict

APPROVE. The fix is right and the analysis behind it is sound. groupSeeds keeps the policy pure and testable, and the cold-rep failure that seedRun was built for cannot happen with a seed that creates what it depends on. Before merge, delete the now-unused seedRun hook along with its contradicting docs, and either narrow the isolation claim or make it true.

@malibio malibio left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated pragmatic-code-review (re-review of 68a5cac): APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.

@malibio

malibio commented Oct 3, 2026

Copy link
Copy Markdown
Collaborator Author

Re-review of 68a5cac addressed (cf14ff3)

Addressed

  • 🟡 EvalFixture.seedRun and the runner's per-rep seeding block are deleted (no fixture uses them; their docs pointed instance seeding back out of seedGroup). The seedGroup doc now says a seed runs before a cold rep's first group too and must create what it depends on.
  • 🟡 seedWorkspace's doc is narrowed: only seeded state is set back, and a node an earlier chat created (a Northwind duplicate the guard missed) stays.
  • 🟢 seedLinkedSkills wording; the test title matches what it asserts (that linked groups run last is pinned by its own test).

Skipped

  • 🟢 Skipping Northwind's update when its fields already match. The final measured run reset it before every chat; changing that now would make the posted numbers describe different seeding. Worth doing if entity resolution starts flipping on a stale vector.

Re-Review Decision

Decision: NO RE-REVIEW NEEDED

Rationale: Deletion of an unused hook and its block, and documentation wording. No behaviour change for any fixture in the repo.

malibio and others added 11 commits October 3, 2026 10:40
…and name what excluded a scenario (#3500)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ot on its phrasing (#3500)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…e bisect and the declarative decision in the fixture (#3500)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…and read a clarification from the question sentence

- mentioned_entity_duplicated_by filters already-asked entities in the find
  predicate, so a typeless create still matches a second same-titled entity.
- isClarification needs the phrase in a sentence ending in '?', ignores quoted
  text and abbreviations, and knows 'want me to'. Re-scoring every recorded
  routing turn changes no verdict but the intended one.
- Comments: the read-before-asking allowance is general; stale embedding rows
  come from edits too; the schema-on-menu-company note states the constraint.

Skipped: seeding the company type under a display name, or without its name
field. Both would change the type every earlier run was scored against.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…3500)

The tool-failure guard counted a failed call as recovered only by a later
call to the same tool. A refused search_nodes filter followed by a
search_semantic that found the record left the answer in place on the model's
side and showed the user the first call's error. Any later successful graph
lookup now recovers a failed one; a write still does not.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The company type declares a name field the seed never filled, so a search
filtering on it found nothing and the field question was answered with
'no such record'.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…t the write case of the recovery test fail

- The failure guard uses resolves_entities_tool, the registry's exhaustive
  classification of tools whose results are graph nodes, instead of a second
  list of the same five tools.
- update_node succeeds in the recovery test, so its negative half fails if a
  write is ever counted as a lookup.
- The guard's comment says recovery is by kind of tool, not by target.

No behaviour change.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…3500)

op-read-then-write moves Northwind's date to April, and
outcome-record-field-is-answered, asked in a later chat of the same rep, was
answered with April and scored as wrong. seedWorkspace now runs before every
chat (creating the types only when missing, resetting Northwind's fields), so
a scenario's state no longer depends on the chats before it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…the reseed does not undo

- EvalFixture.seedRun and the runner's per-rep seeding block go: no fixture
  uses them, and their docs told a reader to move instance seeding back out of
  seedGroup. The seedGroup doc says a seed must create what it depends on.
- seedWorkspace's doc says only seeded state is set back; a node an earlier
  chat created stays.
- Wording: linked skills are kept out of other chats, a test title matches its
  assertion.

Skipped: skipping Northwind's update when its fields already match. The final
measured run reset it before every chat, and the change would make the
reported numbers describe different seeding.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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.

Three eval scenarios fail on main, one of them a regression of a closed fix; the decision fixture's setup depends on earlier chats

1 participant