Repository navigation
feat: fold questions Hide AI reads as settled instead of leaving them open - #2473
Merged
Merged
Conversation
Hide AI could only close a question in a turn an answer came in, so a question settled another way (the agent decided, another agent relayed the operator's choice, the work moved on) stayed open forever, and a parent's letter closed a question only the operator could act on. The turn-end judgment now marks a question the operator alone can take the step of (sign-in, approval, permission, typed information), and a parent's letter leaves those open. A question the judgment reads as settled with no answer is folded with its one-line reason rather than removed, never one the operator alone can act on, and the session record keeps the folded ones under 정리됨 with a one-press reopen that makes the line the operator's own.
…fold-open-asks # Conflicts: # docs/status-model.md # web/src/i18n/resources/sessionWork.ts
# Conflicts: # docs/status-model.md
Yolohyo
pushed a commit
to Yolohyo/hide
that referenced
this pull request
Nov 13, 2026
…de#2484) Related: follows with-hide#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. <details><summary>Replay of recent real turns (2 runs, haiku, v28 prompt from this branch)</summary> 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. </details>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: follows #2470 and #2469 (both merged). Paired private docs: with-hide/hide-private#879.
Summary
Some questions in
나를 기다리는 것were settled without anyone answering them in the session. Another agent relayed the operator's decision, or the agent did the thing itself. They stayed open anyway and kept the task in Needs You.Hide AI may now fold such a question, never delete it. It moves under
정리됨 Nbelow the list, with a one-line reason, and one press of다시 열기brings it back for good.A step only the operator can take (sign-in, approval, permission, typed information) is marked when the question is listed. Hide AI never folds it, and a parent's letter no longer closes it; only the operator's own answer does.
Questions recorded before this change carry no mark and are never folded.
Look at the lines under
정리됨 2: the question in the subtle colour, the reason under it,다시 열기at the right.Review
정리됨 Nunder나를 기다리는 것, only in the session record; rows and the pane head ignore folded lines.hide-core/src/links/ledger_store.rs- the close and fold updates in one turn-end transaction; schema 16 adds two nullable columns toledger_missed.hide-core/src/labels/context_label.rs- END prompt v27 addsoperator_onlyon each missed item andreasonon each resolved id.Tests
links/ledger_store_tests.rs), plus a vitest render of the session record.operator_only: falseand every resolution withreason: ""(web/e2e/pane-fixture.ts); without them the v27 schema refused its answers and the session-record e2e tests saw no questions.operator_onlyguard from the parent-answer close (closing every line) fails both new ledger tests.Evidence
verifygreen on 1ff2732 (all lanes, web e2e Linux 6/6 and Windows, desktop e2e Windows). The first run's e2e reds were the stand-in answers the v27 schema refused, fixed in the fixture.hide-corefiltered nextest 350/350; web typecheck, lint, and vitest for SessionRecord, agentRow, PaneHeaderBand and i18n (159/159); design contract.verify-web.sh's install step is refused locally by pnpm 12 (ignored build scripts), so its steps were run one by one.Measured on the labelled sample (open questions of 11-11/12 with later turns: 20 stale, 3 live, labelled by hand)
Needs You over the 16 root sessions holding questions of 11-11/12, at the copy's last turn:
More evidence
Closed at first, light theme.