Skip to content

feat: check each open question against the turn's own answer - #2484

Merged
yansfil merged 2 commits into
mainfrom
feat/strict-ask-extraction
Nov 12, 2026
Merged

yansfil merged 2 commits into
mainfrom
feat/strict-ask-extraction

Conversation

@yansfil

@yansfil yansfil commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Related: follows #2473. Paired private docs: with-hide/hide-private#882.

Summary

나를 기다리는 것 listed things that were not questions for the operator: the agent's own notes and next steps, offers, and in a delegated session questions meant for the parent agent.
Hide AI now uses a strict definition of a question (two real examples included) and gives, for each one, the sentence of the answer that asks it and whom it waits on.
Hide drops a question whose sentence is not in the turn's answer, and keeps a question for the parent agent folded under 정리됨, where one press opens it.
A step only a person can take (an approval, a sign-in, a permission) stays open whoever it is addressed to, as before.
Measured over 92 real turns, wrong questions fell from about 28% to 6% while as many real questions were found.

No screenshot: no screen changes; a question for the parent uses the existing 정리됨 list.

Review

  • Decide: a question for the parent folds with no reason line, since the reason would be text the core writes in one language; the line itself says what was asked.
  • Decide: the prompt is the measured C2v with its Korean phrases and examples put in English, because no label prompt may name or carry a language; the English version measured the same (Evidence).
  • Decide: past three new lines the rest are dropped, the operator's first, where the ledger used to refuse the whole turn.
  • Risky files: hide-core/src/labels/context_label.rs - END prompt v28, the new schema fields, and JudgedWork::checked.
  • Risky files: hide-core/src/links/ledger_store.rs - a parent's question is inserted as Folded, and asked again in the flow it adds no second line.
  • Cost: no new model call; the END prompt grows by about 1,400 tokens (8.4k characters of ask rules and examples), cached with the rest of the system prompt. The check is one string search per new question.

Tests

  • Layer: unit for the checks and the schema (context_label.rs), the real ledger store for the folded parent question, and the label worker with a scripted provider for the delegated turn end.
  • Catches: a question quoted from the answer before the request, or made up, reaching the ledger; the turn's earlier answer counted as its own; a parent question shown to the operator or stored twice; a person-only step folded; four new lines costing the turn its record.
  • Catches: planted defects: skipping the quote check fails the worker test and the check test; dropping the folded-repeat clause fails the ledger test.
  • Repeat: the five new tests 5 times locally, all green.
  • Waits: none.

Evidence

  • Verified: hide-core filtered nextest over labels::, links:: and the open-ask, link and backlog runtime tests, 394/394; fmt; clippy with tests.
  • Verified: the English prompt against the measured one on the same 92 hand-labelled turns with haiku, 3 runs each: precision 0.93 vs 0.94, recall 0.88 vs 0.87, false closes 0.27 vs 0.26.
  • Verified: replay of 22 recent real turns through the v28 prompt from this code, twice: 9 and 10 new questions listed; the quote check dropped 0 and 2 (one parent question quoted from an earlier message, one real person step in a delegated child quoted in paraphrase, kept in the other run).
  • Not verified: no run on an installed build; the replay rebuilt each turn from its session file with no open questions and no request summaries.
  • Not verified: the e2e stand-in answers were updated for the new fields but the e2e suites run in CI only; the full Rust suite too.
Replay of recent real turns (2 runs, haiku, v28 prompt from this branch)

22 turns from the last 36 hours: 14 where the current judgment recorded a question, 8 where it recorded none, root and delegated sessions.

run 1 run 2
new questions listed 9 10
dropped by the quote check 0 2
folded for the parent 1 1
turns with none before that now list one 1 (folded) 1 (folded)
  • Run 2's drops: a delegated child's question for its Conductor quoted from a message before the turn (correct drop), and a delegated child relaying that the operator picks one of three mockups, quoted as "알려 줍니다" where the answer says "알려 주고" (wrong drop; a delegated child's questions do not reach the operator's rows).
  • 7 of the 14 turns with a recorded question list none now. 3 carried a question from an earlier turn, which the live judgment relists by same_as (the replay gave no open questions); 1 was the child's question to its Conductor; 2 are borderline: an operator step stated as "when ready" and a reviewer saying the operator may decide.
  • The 7th is 1 real question not listed: asked in the turn's first message ("남길까요?") before the agent went on to publish; the definition reads the last answer.

The turn-end judgment (context_label.v28) now asks each question for the sentence it quotes, whether only a person can take its step, and whom it waits on, with a strict definition and two examples. The core drops a new question whose sentence is not in the turn's answer, keeps one for the parent agent folded, and keeps the first three new lines instead of refusing the turn.
@yansfil
yansfil added this pull request to the merge queue Nov 12, 2026
Merged via the queue into main with commit 8199221 Nov 12, 2026
40 checks passed
@yansfil
yansfil deleted the feat/strict-ask-extraction branch November 12, 2026 10:05
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