A run that asked the user ends IN the question (fixed-code clarify) #22

Merged
onibot merged 1 commits from feature/clarify-answer into main 2026-10-23 17:16:52 +02:00
Owner

His 23/10 run: ROUTE correctly deferred to the user, the user expert recorded needs_user_input — and then the ANSWER prompt ran anyway and invented 'The provided evidence does not identify who was the President…'. The machine had decided to ask; the final node swallowed the question.

Fix: _finish checks pending user rows BEFORE any synthesis. When present, the final answer is composed by FIXED CODE (zero LLM calls): 'I need to ask you: (so far: )' — the dependency's value as context, the ambiguity note when the row is ambiguous. Branches own the ambiguity-with-dependents shape (the fork); clarify owns every other honest defer. A synthesis prompt can never again re-render a machine decision as 'evidence is unknown'.

test_user_expert_fails_question asserted the old behaviour ('synthesis still happens') — that was the bug codified; updated to the law. New defer-path test. Suite 18/18.

His 23/10 run: ROUTE correctly deferred to the user, the user expert recorded needs_user_input — and then the ANSWER prompt ran anyway and invented 'The provided evidence does not identify who was the President…'. The machine had decided to ask; the final node swallowed the question. Fix: _finish checks pending user rows BEFORE any synthesis. When present, the final answer is composed by FIXED CODE (zero LLM calls): 'I need to ask you: <the instantiated question> (so far: <what the machine holds>)' — the dependency's value as context, the ambiguity note when the row is ambiguous. Branches own the ambiguity-with-dependents shape (the fork); clarify owns every other honest defer. A synthesis prompt can never again re-render a machine decision as 'evidence is unknown'. test_user_expert_fails_question asserted the old behaviour ('synthesis still happens') — that was the bug codified; updated to the law. New defer-path test. Suite 18/18.
onibot added 1 commit 2026-10-23 17:16:48 +02:00
His 23/10 run review: ROUTE correctly deferred Q2 to the user (the
evidence only flagged ambiguity — layer-3 policy working), the user
expert recorded needs_user_input, the cascade killed the dependents…
and then the ANSWER step ran anyway: the synthesis prompt read
'note=needs_user_input' as plain text and invented 'The provided
evidence does not identify who was the President…' — the machine had
DECIDED to ask, and the final node swallowed the question.

The fix (his call): a run that ASKED ends IN THE QUESTION.

- _finish now checks pending user rows (note=needs_user_input) BEFORE
  any synthesis; when present the final answer is composed by FIXED
  CODE (_clarify_answer, zero LLM calls): 'I need to ask you: <the
  instantiated question> (so far: <what the machine holds>)' — the
  dependency's value rendered as context, with the ambiguity note when
  the row is ambiguous ('so far: Socialist International — but other
  defensible readings exist: Spain').
- Ordering vs the branch answer: branches own the
  ambiguity-with-dependents shape (the fork); clarify owns every OTHER
  honest defer. A synthesis prompt can no longer re-render a machine
  decision as 'evidence is unknown'.
- test_user_expert_fails_question updated: it asserted the OLD
  behaviour ('synthesis still happens, honestly') — that assertion
  codified exactly the bug he rejected; the run that asks now ends in
  the ask.

New test: the defer path ends in the question, no synthesis runs.
Suite 18/18.
onibot merged commit e594339629 into main 2026-10-23 17:16:52 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: onibot/floop#22