Case 04, the first interactive evaluation, stopped at 100 Orchestrator turns on two router faults: - A reply that quoted the agent's question back was judged on that question. A reply now reaches the router with quoted questions and Q:/A: labels removed, and the questions are given to the decider as background. - At a Revision limit the reply was read as another change request for the same Deliverable, and the refusal repeated. The user is now told once, the reply is taken as the answer, that Deliverable is not reopened again, and the Execution carries on with it as it stands. - Any run that asks the user four times running with no work done in between now ends with a warning. The validator is told to confirm with the user in an interactive Execution. Plans record the fixes and the rerun, which did not finish: both fixes held, and a third fault appeared that is not fixed here. A scripted answer restating a requirement, given to a draft-confirmation question, reopens requirements. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6.1 KiB
Step 12 — Implementation Detail
Built against a scripted decider. No call has been made to the live Jev service, and no evaluation has run on it: the owner holds evaluation runs until the Jev work is in.
app/nodes/router.py.Routerdecides an Orchestrator turn in three stages: readings (_read_ledgerfrom the Ledger and data;_read_messageand_read_gapfrom the decider), a disposition byThresholds(act at 0.75, close at 0.15, choice confidence 0.6), and the playbook in_choose: ordered groups, the strongest action whose conditions hold, escalate when none applies.- Permission stays with the tools. The router calls the same
OrchestratorToolboxtools the model did. A refused action is skipped for the rest of the turn and the next one that holds is taken. Past the Revision limit the user is asked. - What Jev is asked (
Questionobjects, batched when they rest on the same evidence):- of the user's message:
asks_change(noul),change_target(choice over submitted Deliverables),change_clarity(score: vague, partial, specific); - of validation gaps:
gap_material(noul); - of the user's reply about gaps:
wants_revision(noul). What is sent is Deliverable names, the count of waiting questions, the user's message, and for gaps the proposed Check statements and unverifiable Check ids.
- of the user's message:
- Rules when Jev gives no answer. A requested change is acted on only when one Deliverable is named outright, otherwise the user is asked which. A free-text reply is treated as an answer. A gap is revised for when a Check cannot be verified or an addition names a real requirement or recommendation id.
- A new reading from the run of 2026-10-07: a Check that fails in two validations running is sent to the Target architecture, not the code. That run retried one unimplementable Check as code three times.
- Decisions are recorded in the Execution's state under
decisions: turn, group, action and what was judged, with confidence. - The reply writer. A new role,
agents/reply-writer.md, writes the Approval summary from facts (approval_facts) through one tool. When it fails or is absent,assembled_summarybuilds the summary from the same facts. - Wiring.
ORCHESTRATOR=router(the default) ormodel;open_assemblybuilds the router with the decider and the thresholds (JEV_ACT_THRESHOLD,JEV_CLOSE_THRESHOLD,JEV_CONFIDENCE_THRESHOLD). State gainedlast_reply,pending_change,awaiting_gap_decision,validation_settledanddecisions.
Changed from the plan and the ADR's first wording:
- Jev does not propose the next action. It supplies readings, and the playbook in code picks the action. This follows the owner's triage model and keeps every decision explainable by a rule and a threshold.
- The model Orchestrator is kept behind
ORCHESTRATOR=model. The 40 or so engine tests drive the Ledger's rules by scripting its tool calls in arbitrary order, which the router cannot do.agents/orchestrator.mdis therefore unchanged and unused in router mode. - An unclear change is confirmed once. If the reply still does not settle it, a named Deliverable is acted on and anything else is dropped.
- A pre-approved Execution's automatic replies are not routed. There is no user message to read.
Not built from the ADR's routes:
- A message that starts something (new request, Change request, question about delivered work, out of scope). It needs an entry point that can answer from a case's files, and Change requests (iteration 7).
- Which Deliverables a Change request reaches. Iteration 7.
Tests: tests/execution/test_router.py (18), tests/test_assembly.py.
Unverified:
- Whether Jev's answers to these five questions are good enough at these thresholds. The thresholds are the ones in the owner's example and are untuned.
- Whether the reply writer's summaries are accurate. It is instructed to state only the facts it is given; nothing checks that it does.
- Run time. The Orchestrator made 31 model requests in the last run; the router makes none, and one small writer call per Approval. No run has measured it.
Faults found by evaluation case 04, fixed on 2026-10-08
Case 04 is the first interactive run. It stopped at 100 Orchestrator turns (../../iter-06-target-architecture-graph/steps/step-11.md). Three changes:
- Only the user's own words are their message. A reply to questions now reaches the router with the questions it answered (
asked) and with any quoted question andQ:/A:labels removed from its text (_own_wordsinapp/nodes/execution_nodes.py)._read_messagegives the questions to the decider as background and the cleaned text as the message. Before, a describer's "please confirm my draft" question, quoted back by the scripted user, was judged a request to change the Target architecture, twice. - A Revision limit is told to the user once. When a reopen is refused at the limit, the router records the Deliverable in
revision_limit_askedand setsawaiting_limit_decision. The reply is not read as a request for changes, every action that would reopen that Deliverable is barred from then on, and the Execution carries on with it as it stands. Before, the reply was read as another change request for the same Deliverable and the refusal repeated until the turn limit. - A run that only asks is stopped. The engine counts questions put to the user with no change in any Deliverable's status or attempt, or any Phase's status, in between. At the fourth it ends with a warning (
MAX_IDLE_ASKS). This holds for any Orchestrator, whatever the cause.
Also: agents/validator.md now tells the validator to confirm with the user before submitting in an interactive Execution, which the case's specialists_ask_before_submitting check found it did not.
Tests: tests/execution/test_router.py, "the two faults of evaluation case 04" (5).
Rerun on 2026-10-08 (unfinished, 86 minutes): changes 1 and 2 held. A third fault appeared and is not fixed: a reply that restates a requirement, given in answer to a draft-confirmation question, is read as a request to change requirements. See the run record in ../../iter-06-target-architecture-graph/steps/step-11.md.