Repository navigation
Description
Split out of #1866, where it was measured as the second of two mechanisms still blocking agent-matrix scenario 4 after that issue's guidance fix landed.
Symptom
Asked to track one kind of thing, the model creates two schemas splitting the attributes between them, then instantiates only one — leaving the other type empty and the values it owns unstored.
Measured in run 1 of 3 (E4B @ n_ctx 32768, purged DB, daemon rebuilt from 4b66ec4f). Prompt (scenario 3):
"I want to keep a record of the equipment my team checks out, whether it's been returned, and what each item costs to replace"
create_schema → "Equipment Item" fields: is_returned, replacement_cost
create_schema → "Checkout Record" fields: checked_out_date, due_return_date
create_relationship checkout_record --tracks--> equipment_item ← ERRORED
create_node → node_type: "checkout_record" properties: {checked_out_date}
search_nodes → node_type: "equipment_item" → count: 0
Why it matters
The split is not obviously unreasonable in isolation — an equipment item and a checkout event are genuinely different things. What makes it a defect is that nothing reconciles the two halves:
replacement_costhas a home (equipment_item) but no instance was ever created there, so 2400 is never stored.- The
create_relationshipmeant to tie them together failed, so even the structural link is absent. - The next turn's
search_nodesqueriedequipment_itemand gotcount: 0— it searched the type with no instances.
So one user request produced two types, one populated node, a failed relationship, and an unsearchable half. Scenario 4's assertion passed on the date alone, which is precisely why a green scenario 4 does not imply a healthy chain — worth noting for anyone reading that assertion as a proxy for correctness.
Scenario 3 already asserts noExtraTypes and correctly caught this (Expected exactly one create_schema … got 2). This issue is about the behavior, not the assertion.
Relationship to existing guidance
ONE SCHEMA PER REQUEST in skill_rules.rs already covers this:
"Create exactly the type the user named, in a single create_schema call, then stop and report it. Do NOT proactively invent or create related types … A relationship's targetType must already exist in ENTITY TYPES; if it doesn't, omit the relationship rather than creating the other type."
The rule was present in the measured build and was violated on both clauses — two types created, and a relationship attempted against a type that did not exist when the call was formed (which is likely why it errored). As with #1895, the instruction exists and is correct, so restating it harder is probably not the fix.
Worth investigating whether the prompt's own phrasing drives this: the scenario names three distinct things to track (items, returned status, replacement cost), and the cost clause was added deliberately so scenarios 6 and 7 have something to discriminate on. A request that enumerates attributes of one thing may read as enumerating several things.
Acceptance criteria
- A single-kind tracking request produces exactly one schema
- If a split is ever correct, the resulting types are actually linked and both are populated — no silently empty half
- Scenario 3 passes across repeated runs
Evidence: 3 results files + .trace.jsonl from the #1866 post-fix measurement.
Activity
malibio commentedon Aug 1, 2026
Frontend baseline: 171 test files passed (4108 tests), Duration 49.55s
malibio commentedon Aug 1, 2026
PR #1904 addresses acceptance criteria 1 and 3 (routing fix, verified stable across repeated purged-DB/rebuilt-daemon matrix runs). Criterion 2 (link + populate enforcement if a split is ever legitimate) is split out to #1905 per code review — the enforcement mechanism needs its own investigation/design decision separate from the routing fix.