Skip to content

Complete a type listing in the reply, and score eval groups whose setup state already exists (#3268) - #3482

Merged
malibio merged 3 commits into
mainfrom
issue-3268-list-types-eval
Oct 1, 2026
Merged

malibio merged 3 commits into
mainfrom
issue-3268-list-types-eval

Conversation

@malibio

@malibio malibio commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #3268: the two acceptance criteria PR #3463 left open.

Criterion 5 — the eval scenario had no score

outcome-list-types was excluded in every rep, with three other scenarios. Groups in a rep share a database, so a setup turn can find its type already there. A model that sees the type and creates nothing is right, but fails the setup turn's create_schema assertion, and the runner then drops every scenario after it.

  • EvalFixture.setupStatePresent(env, scenario): asked when a setup turn fails its own assertion by doing nothing at all — no tool call, no clarifying question, no failed send. The group is scored only if the fixture then shows the state present (setupLeftStateMissing). A turn that asked a question or called another tool still blocks its group, and so does a state check that fails.
  • The decisions fixture answers it from schema list, matching the company and venue types by the same word hints the seed already uses.
  • The setup turn's result records setupStateAlreadyPresent, so a results file shows which groups were scored on that basis.

One rep now scores all 12 scenarios; 4 of 12 were excluded before. In that rep the venue setup turn did nothing in 8 of 12 groups, each time replying that the type already exists.

Criterion 3 — the reply did not name every type

The turn runs the schema search and gets every type back, then names the custom ones and writes "…and several built-in types like task, text, date, etc."

Measured on gemma-4-e4b-q4km, "What schemas do we have here?" on three workspaces with different custom types, pass = the reply names task, person, project and every custom type, with no link to an id that is not a type:

Arm Passed
main 0 of 3
clause in the tool description ("the answer names each one") 0 of 3
"these are all N types" note on the result 1 of 3
complete: true on the result 0 of 3
result rows without empty fields 2 of 3
rows without empty fields + turn-end backstop (this PR) 3 of 3

Two changes:

  • search_nodes rows carry only what they have. A type's row was an id beside an empty property map and a snippet repeating its title, twenty-odd times. resolve_query, which answers from the same row, copies the keys that are there.
  • type_listing_backstop, applied over the finished turn like duplicate_entity_backstop. When the turn ran an unfiltered search over schema nodes that was not cut off at the limit, and the reply links at least two of the types it returned but not all, the rest are appended as links. The model's wording stands.

Two ways a listing turn ends with no usable reply are covered, each only on evidence that the turn was a listing:

  • The model writes nothing after the search ("• node search completed"). The list is written out when listing the types is all the turn did.
  • One slip in a long list of links (a space inside an id) has the fabricated-id guard suppress the whole reply. Where it is suppressed, the list is written out instead when the turn wrote nothing, the suppressed text itself links at least two of the listed types, and every bad id in it is a listed type's id cut short (nodespace://code for nodespace://code-block). A narrated tool call, or a reply carrying an invented record id, still gets the request to confirm.

Evals on the branch (one rep each)

Taken on the first commit, before the review changes. The three-workspace check above was re-run after them and still passes 3 of 3; the two evals were not re-run.

  • eval:decisions: 10 of 12, all scored. outcome-list-types passes. skill-instance-request and declarative-fact-report-resolved fail.
  • eval:routing: 18 of 19 (indirect-schema-freelance fails), the same result as a second rep on this branch.

Not fixed

  • "What types do we have?" / "which types exist in this workspace" still draw one Stage-1 clarifying question. A vocabulary line in the Stage-1 prompt and a sentence in route_clarify's description changed nothing (0 of 3 phrasings). A seeded "Types & Schemas" skill routed all three, with all six vague controls still clarifying — but with it one rep of eval:routing went from 18 of 19 to 16 of 19 ("show me stuff about our release process" started clarifying; one indirect schema request created plain nodes). It is not in this PR.
  • The backstop also completes a reply to a narrower question answered off the same unfiltered search — "which custom types do I have?" answered with two custom types gets the built-in ones appended.
  • A reply that names a type in plain text without linking it gets that type appended as a link.
  • The appended list is every schema node the search returns, internal types included.
  • The eval's type match is by word: an unrelated custom type whose id contains "event" would read as the venue type.

Tests

  • Agent: the backstop's completion; the empty-reply and slipped-link cases; and each case it must leave alone (one link, a narrowed search, a truncated result, a narrated call, an invented id on a non-listing reply, a turn that also wrote, read something else or had a failed call); the result row shape and resolve_query's payload. The completion test fails with the backstop call removed.
  • Scripts: setupLeftStateMissing, setupTypePresent, and that every setup scenario names the type it establishes.
  • bun run test:changed (Rust workspace, scripts, generated-types check) and quality:fix pass.

🤖 Generated with Claude Code

@malibio

malibio commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator Author

Pragmatic Code Review — PR #3482

Review Type: Initial Review (no prior reviews or comments on the PR)

Verdict: REQUEST CHANGES — one finding (the stand-in path of the backstop). Everything else is optional.

The append path of the backstop, the row trimming and the eval change are sound and well tested. The stand-in path decides "this turn was a type listing" from the tool calls alone, and that is not enough to tell: it can replace a confirmation request, or a neutral summary, with a type list the user did not ask for.

What I verified, and what I could not

Verified by reading the code or running tests:

  • The 11 new agent tests pass (cargo-nextest -p nodespace-agent --lib, filtered to the new tests) and bun run test:scripts passes (1187 pass, 0 fail).
  • The completion test pins the behaviour: without the type_listing_backstop call the reply stays the partial text and the assert_eq! fails.
  • complete_type_listing matches what the executor does: "", whitespace, "*", null and an absent query all enumerate (normalize_enumerate_query, null_as_default); limit is a strict usize with no clamp downstream, so nodes.len() >= limit is a correct, conservative truncation test.
  • The type check is CoreNodeType::Schema.is_exactly(..), not a literal comparison (ADR-086).
  • No ADR-064 issue: no resident prose or tool-description text is added; the change is a trimmed tool result plus a system-side guard.
  • Nothing outside the agent crate reads type / snippet / properties from a search row: the frontend does not, and the eval harness reads CLI payloads, not tool rows. One in-crate reader is affected (finding 2).
  • The two "Not fixed" items about the backstop (narrower question answered off the same search; plain-text type name re-appended as a link) are accurate descriptions of the code.

Not verifiable here (no model runs): the 0/3 → 2/3 → 3/3 table, "10 of 12, all scored" for eval:decisions, 18 of 19 for eval:routing, and the Stage-1 clarify result for the "types" phrasings.

Requirements Check (issue #3268)

Criterion Status Notes
3 — "What schemas/types do we have?" returns every schema Partly met For a turn that runs the unfiltered schema search, the reply is now completed deterministically, so the "schemas" phrasing is covered in code. By the PR's own "Not fixed" list, "What types do we have?" still draws a Stage-1 clarifying question, and the criterion names both phrasings. Either tick it with that limit recorded on the issue, or leave it open.
5 — eval:decisions covering "what schemas do we have" on the default model Met in code; run result unverified outcome-list-types exists and is no longer excluded once the setup state is present. Note it asserts four names (task, person, project, compan…), not every type, so it is weaker than the pass rule used for the table in the description.

Code Review Findings

🟡 Important

1. The stand-in path can show a type list in answer to a different request
📁 packages/agent/src/local_agent/agent_loop.rs:1118-1148

let read_only = !result.tool_calls_made.iter().any(|r| super::tools::is_write_tool(&r.name));
let stand_in = result.response == CONFIRMATION_REQUEST
    || result.response == summarize_executions(&result.tool_calls_made);
if read_only && stand_in { /* "This workspace has N types: …" */ }

The append path has a signal that the reply was a listing (two or more linked types). The stand-in path has none: it fires whenever any call in the turn was a complete type listing and the turn wrote nothing. By code reading (not observed in a run):

  • Listing followed by another read, then an empty reply. "Show my open tasks" → schema search → task search → no text. The stand-in is • node search completed (2×), which equals summarize_executions(all calls), and find_map over the reversed calls still finds the earlier listing. The user gets the type list.
  • Narrated tool call. "Set up a type for sponsors" → schema search to check what exists → the model prints create_schema(...) as text. The narrated-call guard returns CONFIRMATION_REQUEST; the backstop replaces it with the type list. The user is no longer told nothing happened.
  • Fabricated id on a non-listing question takes the same route.
  • A failed read in the same turn: • node search completed\n• … failed is also an exact match, and the failure line is replaced.

CONFIRMATION_REQUEST exists so a suppressed reply is not mistaken for an answer; replacing it with a confident answer to a question nobody asked undoes that guard.

Recommendation:

  • Empty-reply case: require every executed call in the turn to be a complete type listing (no errors, no other reads).
  • Suppressed-reply case: the evidence that the reply was a listing is the suppressed text itself, which is gone by turn end. Record it where the fabricated-id guard still has it, for example a field on TurnEnd holding how many grounded type links the suppressed reply carried, and apply the same TYPE_LISTING_MIN_LINKED rule. Leave a narrated-call suppression alone.
  • Add a test for each: listing + second read + empty reply keeps the stand-in; listing + narrated call keeps CONFIRMATION_REQUEST.

Principle: a guard that replaces a reply must not weaken what an earlier guard established; the precondition should rest on evidence about the reply, not only on which tools ran.

2. resolve_query now returns "properties": null for a node with no properties
📁 packages/agent/src/local_agent/tools.rs:637-651 and 3000-3008

"type": node["type"],
"properties": node["properties"],

run_node_query is shared with resolve_query, whose single-match payload indexes the row. With the key removed, node["properties"] is Value::Null, so a resolved node with no set fields goes from "properties": {} to "properties": null — the opposite of "a row carries only what it has". Recommendation: copy only the keys the row has, and add a resolve_query assertion for a property-less node. Principle: one row shape, one place that decides what is in it.

3. A setup turn that failed for another reason no longer blocks its group
📁 scripts/eval/runner.ts:1207-1224, scripts/eval/fixtures/decisions.ts:897-912

setupStatePresent checks the database, not what the setup turn did, and the group's scenarios run in the same chat as the setup turns. Two consequences:

  • seedRun creates the company type before any group, so setup-company can never block a group again, in the first group included (the description says "from the second group on").
  • A setup turn that failed by asking a clarifying question, by creating an instance instead of a type, or by a send failure now leaves the group scored against a conversation the scenarios do not assume. A pending clarification is the clearest case: the next scored prompt is read as its answer and further clarifications are suppressed for that intent.

So the state is really there, but "state present" is being used to mean "setup was a correct no-op". Recommendation: release the block only when the failed setup turn made no write and asked no question, or at minimum mark the result (for example setupSkippedAsPresent) so the report shows which groups were scored on that basis. Principle: an eval should not score a scenario under a precondition it did not check.

🟢 Suggestions

4. Two comments in the fixture now disagree
📁 scripts/eval/fixtures/decisions.ts:297-299 vs 877-882

seedNorthwind's doc still says "a create_schema against an existing type is idempotent at the store"; the edited block says a second create_schema "is refused". Make them agree.

5. setupLeftStateMissing's first branch is unreachable from its only caller
📁 scripts/eval/runner.ts:1207-1212

It is called inside if (scenario.setup && !verdict.passed) with verdict.passed, so turnPassed is always false there, and the first unit test pins a path production never takes. Either make the helper the whole condition (if (scenario.setup && setupLeftStateMissing(...)) with the "already present" log on the other branch) or drop the parameter.

6. A failing schema list inside setupStatePresent is not reported as an environment failure
📁 scripts/eval/fixtures/decisions.ts:902-911

runNs throws on a non-zero exit. seedGroup and seedRun are wrapped into EnvironmentError; this call is not, so a daemon hiccup here surfaces as a raw exception mid-rep. Wrap it the same way, or return undefined on failure (which blocks the group, the safe direction).

7. The hint match is loose for the venue type
📁 scripts/eval/fixtures/decisions.ts:247-252

Any custom type whose id contains event, place or venue counts as the venue type, and later scenarios create types in the same database. It is the matcher the seed already uses, so this is not new risk in kind, but it now also decides whether a group is scored. A test with a non-venue id containing one of the hints would document the limit.

8. The backstop lists every schema node, internal ones included
📁 packages/agent/src/local_agent/agent_loop.rs:1065-1075

The appended list is whatever the search returned, so abstract bases and internal types appear in the user's reply. That matches the criterion's wording ("every schema"); raise it only if the list reads badly in the app.

Nitpicks

  • Nit: packages/agent/src/local_agent/tools.rs:2700 — the blank line removed after let mut result = … is unrelated churn.
  • Nit: packages/agent/src/local_agent/agent_loop.rs:1085-1094 — the doc comment narrates the measurement in the past tense ("each left the reply partial", "got two of the three"). The present-tense reason ("the model shortens a long list, so the list is completed here") is enough; the numbers are in the PR.
  • Nit: the fixture rows in type_listing_result() carry "type": "schema", and the tools test's type_row uses nodeType: "schema", while the comment removed from search_result_summary said a schema node has no nodeType. I did not confirm which is true on the wire; if schema rows do carry it, the old comment was stale and this is fine.

Recommendation

REQUEST CHANGES for finding 1. Findings 2 and 3 are worth folding into the same pass; the rest are optional.

@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: REQUEST CHANGES (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.

@malibio

malibio commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator Author

Review addressed (commit bc275ab)

Addressed

# Finding What changed
1 The stand-in path could show a type list in answer to a different request Reworked on the principle the finding names: the decision rests on evidence about the reply. Empty reply: written out only when every call in the turn was a complete type listing — a second read, a failed call or a write keeps the summary. Suppressed reply: handled in the fabricated-id guard, where the text still exists (suppressed_type_listing), and only when that text links at least TYPE_LISTING_MIN_LINKED of the listed types on a turn that wrote nothing. The backstop no longer looks for CONFIRMATION_REQUEST at all, so a narrated call keeps it. Tests added for each case the finding listed.
2 resolve_query returned "properties": null resolved_payload copies the keys the row has. Test added for a node with no properties.
3 A setup turn that failed for another reason no longer blocked its group The block is released only when the turn did nothing — no tool call, no Stage-1 clarification, no failed send — and the state is present. The setup result records setupStateAlreadyPresent. In the measured rep every released turn was of that kind (tools=[], routing query).
4 Two fixture comments disagreed Both now say a second create_schema is refused and changes nothing.
5 Unreachable first branch in setupLeftStateMissing The helper takes the turn record instead of the verdict; its tests cover the paths production takes.
6 A failing schema list in the state check Caught; returns undefined, which blocks the group.
7 Loose hint match A test documents the limit; noted in the PR's "Not fixed".
nit Blank line Restored.
nit Past-tense doc comment Reworded to the present-tense reason.

Not changed

  • 8 — the appended list includes internal types. It is every schema node the search returns, which is what the criterion asks for ("every schema: core types … skill"). Noted in "Not fixed".

Verification: agent lib + it 841 passed; test:scripts 1188 passed; bun run test:changed and quality:fix pass. The three-workspace live check was re-run on this commit: "What schemas do we have here?" names every type in 3 of 3. eval:decisions and eval:routing were not re-run after these changes.

Re-Review Decision

Decision: RE-REVIEW NEEDED

Rationale: Finding 1 changed where and on what evidence a reply is replaced, including a new branch inside the fabricated-id guard, and finding 3 changed the rule that decides whether an eval group is scored. Both are logic changes in the areas the review flagged.

@malibio

malibio commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator Author

Pragmatic Code Review — PR #3482

Review Type: Re-Review (commit bc275ab2, diff e4bfd6a0..HEAD)

Verdict: APPROVE — the blocking finding is fixed and the fix is sound. Three non-blocking findings remain, one of them a test gap worth closing in this PR.

Previous Review Summary: 8 findings and 3 nits. 7 findings and 2 nits addressed, finding 8 declined with a reason I accept, 1 nit unanswered (no action needed). 3 new findings, none blocking.

What I verified, and what I could not

  • Read the full diff and the surrounding guard chain in agent_loop.rs (anti-fabrication, fabricated-id, narrated-call, no-op-success, tool-failure surfacing, empty-reply summary, then the turn-end backstops).
  • Ran the affected agent tests: 19 of 19 pass (cargo-nextest -p nodespace-agent --lib, filtered to the type-listing, fabricated-id and resolved_payload tests).
  • Ran bun run test:scripts: 1188 pass, 0 fail.
  • Not done: no mutation run (this review does not edit files), so "unpinned" below is from reading the tests, not from watching one fail. No evals or live-model runs; the author's "3 of 3" live check is unverified, and the author states eval:decisions and eval:routing were not re-run on this commit.

Status of each earlier finding

# Finding Status
1 Stand-in path could show a type list for a different request Addressed, sound. The backstop no longer matches CONFIRMATION_REQUEST. The empty-reply path requires every call in the turn to be a complete type listing. The suppressed-reply path moved into the fabricated-id guard, where the text still exists, and needs two linked listed types on a turn with no write call. All four cases from the first review now keep their stand-in; a narrated call cannot reach the new branch. Residual cases in new findings 1 and 2.
2 resolve_query returned "properties": null Addressed. resolved_payload copies only the keys the row has; the test pins the property-less shape with a whole-value assert_eq!.
3 A setup turn that failed for another reason no longer blocked its group Addressed. The block is released only when the turn made no tool call, did not route to clarify, did not fail to send, and the state is present. The result records setupStateAlreadyPresent. One gap in new finding 3.
4 Two fixture comments disagreed Addressed. Both say a second create_schema is refused.
5 Unreachable first branch in setupLeftStateMissing Addressed. The helper takes the turn record; its tests cover only paths the caller takes.
6 A failing schema list was not handled Addressed. Caught and returned as undefined, which blocks the group.
7 Loose hint match Addressed as proposed. A test documents the limit; it is in the PR's "Not fixed".
8 List includes internal types Not changed, accepted. It matches the criterion's wording and is in "Not fixed".
nit Blank line in tools.rs Addressed.
nit Past-tense doc comment Addressed.
nit "type": "schema" in test rows vs the wire's nodeType No reply. No action needed: search_result_summary maps nodeType to type, so the test rows match what the backstop reads.

New Findings

🟡 Important (non-blocking)

1. The write check in suppressed_type_listing has no test
📁 packages/agent/src/local_agent/agent_loop.rs:1114-1119

if executions.iter().any(|r| super::tools::is_write_tool(&r.name)) {
    return None;
}

This is the only thing that keeps WRITE_MISREPORTED_NOTICE in place when a turn wrote and then gave a reply that links two types plus a bad id. TypeListingExecutor offers only search_nodes, so no test reaches this branch; by reading, deleting it leaves every test green. The equivalent check on the empty-reply path is tested (an_empty_reply_is_written_out_only_when…).

Recommendation: suppressed_type_listing is a pure function, so test it directly: a listing plus a create_node record returns None; a listing alone with two linked types returns the types. Principle: a guard that protects another guard's output needs a test that fails without it.

🟢 Suggestions

2. A suppressed reply that links two types is still replaced by the list when the turn was about something else
📁 packages/agent/src/local_agent/agent_loop.rs:1120-1126, 3346-3349

let types = executions.iter().rev().find_map(complete_type_listing)?;
…
(named >= TYPE_LISTING_MIN_LINKED).then_some(types)

The empty-reply path requires the turn to be nothing but listings; this path only requires no write. Two cases, by reading the code, not observed:

  • "Set up a type for sponsors" → schema search → "I created Sponsor next to Task and Person". The reply becomes "This workspace has N types: …" in place of the request to confirm. The list is true and lacks Sponsor, but the user is no longer told nothing was set up.
  • Listing, then a second read, then a reply that links two types beside an invented record id.

This is the rule the first review recommended, and it is much narrower than before, so it does not block. If it is worth tightening, the cheap option is to also require every call in the turn to be a listing, as the empty path does; the cost is that a failed first search followed by a successful retry would fall back to the request to confirm. Otherwise add the first case to "Not fixed" and a test that records the chosen behaviour (the existing test covers zero and one linked type, not two beside an invented record).

Checked and fine: a failed read in the same turn is still reported, because the tool-failure guard runs after this one and replaces the list. The exception is a type whose title contains "error", "fail" or "unable", which that guard's substring test reads as the reply acknowledging the failure. The narrated-call guard cannot match the written list ([title](uri) never puts ( after a tool name), the no-op-success guard needs a write, and the turn-end backstop finds nothing missing and leaves the list alone.

3. A setup turn that asks its question in prose still counts as "did nothing"
📁 scripts/eval/runner.ts:500-505

const didNothing =
  turn.toolsCalled.length === 0 &&
  turn.sendFailed !== true &&
  turn.routingDecision !== "clarify";

Only a Stage-1 clarification is detected. A Stage-2 reply that asks a question in its own words ("Which fields should Company have?") has no tool call and routes as query, so it has the same record as "that type already exists". The harness cannot tell them apart from the record, so I would not try; say so in the doc comment, which currently reads as if every question is caught. Two smaller points in the same block:

  • The comment says a turn "that called some other tool changed the workspace". A read does not. The rule is conservative, which is the safe direction; the comment should say that any tool call blocks, not that it changed something.
  • setupStateAlreadyPresent is written to the result but nothing counts or prints it in the summary. Fine for now; a count beside setupFailedCount would make it visible without opening the results file.

Nitpicks

  • Nit: scripts/eval/fixtures/decisions.ts:910-914 — the catch drops the error. One console.error line would let a daemon failure be told apart from a setup that established nothing.
  • Nit: scripts/eval/runner.ts:1234 — results[results.length - 1] depends on nothing being pushed between the result and this line. Holding the pushed object in a const removes that.
  • Nit: packages/agent/src/local_agent/agent_loop.rs:3344-3349 — the warn line says "replacing response" for both outcomes. A field saying the list was written out would match the info line the empty-reply path logs.
  • Nit: packages/agent/src/local_agent/agent_loop.rs:1091-1097 — "This workspace has 1 types" / "0 types: ." on the empty-reply path if the search returns one or no rows. Not reachable in a real workspace (core types are always present), and it predates this commit.

Project rules

No compatibility code, lint suppression, #[allow(dead_code)], issue numbers in new comments or literal node-type comparisons in the new commit. The new scripts/ tests are DOM-free.

Recommendation

APPROVE. Finding 1 from the first review is fixed on the principle it named. New finding 1 (the missing test) is worth adding before merge; findings 2 and 3 are judgment calls for the author.

@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 1, 2026

Copy link
Copy Markdown
Collaborator Author

Re-review addressed (commit ecaacdd)

Addressed

# Finding What changed
1 The write check in suppressed_type_listing had no test a_suppressed_reply_is_a_slipped_listing_only_when_every_condition_holds calls the function directly and covers each condition on its own: a turn that wrote, an invented id, the bare scheme, one linked type, and no complete listing.
2 A suppressed reply linking two types was replaced by the list when the turn was about something else Tightened on the evidence that separates the two cases: every ungrounded id must be the cut-short form of a listed type's id, which is what the observed slip produces. An invented record id is not the start of any type's id, so "I created Sponsor next to [Task] and [Person]" keeps the request to confirm. That reply is now a test case. I did not add the "every call is a listing" requirement: it would not have caught the Sponsor case, whose only call is the listing.
3 A prose question still counts as "did nothing" The doc comment says so, and says that any tool call blocks rather than that it changed the workspace.
nit Swallowed error in the state check Logged.
nit Result updated by index Held in a const.
nit Warn line the same for both outcomes It carries type_listing_written_out.

Not changed

  • A count of setupStateAlreadyPresent in the run summary. The flag is in the results file; a summary line can follow if it proves useful.
  • "This workspace has 1 types". Not reachable: the core types are always present, and a one-row result would need a limit of 2 or less, which the truncation check rejects.

Verification: agent lib + it 842 passed; bun run test:changed and quality:fix pass.

Re-Review Decision

Decision: NO RE-REVIEW NEEDED

Rationale: The re-review approved with no blocking findings. This commit narrows one already-reviewed branch with a single extra condition that has direct tests, adds the missing test, and makes comment, logging and naming changes. Nothing new is reachable that was not reachable before; one path is reachable in fewer cases.

malibio and others added 3 commits October 2, 2026 01:09
…up state already exists (#3268)

agent
- A turn-end backstop completes a reply that lists some of the workspace's
  types and not the rest: when the turn ran an unfiltered search over schema
  nodes and the reply links at least two of the types it returned, the ones
  left out are appended. When the reply is only the stand-in for an empty or
  suppressed one, and the turn wrote nothing, the list is written out.
- search_nodes result rows omit an empty type, an empty property map and a
  snippet that repeats the title.

eval
- A setup turn that fails its own assertion blocks its group only when the
  fixture cannot show the state present. Groups in a rep share a database, so
  from the second group on the type exists and a model that creates nothing
  is right; four of twelve decisions groups were being excluded for it.

Measured on gemma-4-e4b-q4km, three workspaces: "What schemas do we have
here?" names every type in 3 of 3 (0 of 3 before). One rep of eval:decisions
scores all 12 scenarios, 10 passing, the new outcome-list-types among them;
eval:routing is 18 of 19, as without the change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tools ran

- The backstop no longer writes a type list over any stand-in reply on a
  read-only turn. An empty reply is written out only when listing the types
  is all the turn did. A reply suppressed for an ungrounded id is handled
  where it is suppressed, and only when its own text links at least two of
  the listed types; a narrated call, or an invented id on some other
  question, keeps the request to confirm.
- resolve_query copies the keys its row has instead of indexing ones the row
  may have left out, so a node with no properties does not resolve with
  "properties": null.
- A setup turn that failed its assertion leaves its group scoreable only when
  it did nothing at all (no tool, no clarifying question, no failed send) and
  the fixture shows the state present. The result records it
  (setupStateAlreadyPresent). A state check that itself fails blocks the group.
- Two fixture comments agree that re-creating a type is refused; a test
  documents that the type match is by word.

Not changed: the appended list includes every schema node the search returns,
internal types included, which is what the acceptance criterion asks for.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…when its bad ids are listed ids cut short

- suppressed_type_listing also requires every ungrounded id in the reply to
  be the cut-short form of a listed type's id, which is the slip a space
  inside an id produces. A reply that invents a record id keeps the request
  to confirm however many types it links beside it.
- Direct tests for each condition, the write check included; it had none.
- The guard's log line says whether the list was written out.
- eval: the setup rule's comment says a prose question is not detected and
  that any tool call blocks; the result is held by name rather than by
  index; a failed state check is logged.

Co-Authored-By: Claude Opus 5.5 <[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.

1 participant