Skip to content

feat: fold questions Hide AI reads as settled instead of leaving them open - #2473

Merged
yansfil merged 6 commits into
mainfrom
feat/fold-open-asks
Nov 12, 2026
Merged

yansfil merged 6 commits into
mainfrom
feat/fold-open-asks

Conversation

@yansfil

@yansfil yansfil commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

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 정리됨 N below 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.

정리됨 opened (dark): each folded question with Hide AI's reason and 다시 열기
Look at the lines under 정리됨 2: the question in the subtle colour, the reason under it, 다시 열기 at the right.

Review

  • Decide: an approval the agent reserves for the operator ("only your OK is left") counts as the operator's own step, so it never folds. On the sample this keeps one settled merge question (fc86b2) in Needs You.
  • Decide: the fold is shown closed as 정리됨 N under 나를 기다리는 것, only in the session record; rows and the pane head ignore folded lines.
  • Risky files: hide-core/src/links/ledger_store.rs - the close and fold updates in one turn-end transaction; schema 16 adds two nullable columns to ledger_missed.
  • Risky files: hide-core/src/labels/context_label.rs - END prompt v27 adds operator_only on each missed item and reason on each resolved id.
  • Cost: no new model call. The existing END call returns two more fields, and the turn-end write runs one more UPDATE.

Tests

  • Layer: unit, against the real ledger store (links/ledger_store_tests.rs), plus a vitest render of the session record.
  • Fixture: the e2e stand-in provider now answers every missed line with operator_only: false and every resolution with reason: "" (web/e2e/pane-fixture.ts); without them the v27 schema refused its answers and the session-record e2e tests saw no questions.
  • Catches: a parent's letter closing the operator's own step; a fold of an unmarked or operator-only line; a reopened line folding again. Dropping the operator_only guard from the parent-answer close (closing every line) fails both new ledger tests.
  • Repeat: the two new ledger tests and fix: close a child's questions when its parent answers by bell #2470's bell test 5 times locally, all green.
  • Waits: none.

Evidence

  • Verified: verify green 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.
  • Verified: after merging main (feat: quiet the open-question marks and give missed work its own colour #2469 included): hide-core filtered nextest 350/350; web typecheck, lint, and vitest for SessionRecord, agentRow, PaneHeaderBand and i18n (159/159); design contract.
  • Verified: the v27 prompt on haiku, with production flags, over the hand-labelled sample. The person-step mark caught 3 of 3 operator steps and wrongly marked 2 of 12 other questions. That error leaves a question held, never closed.
  • Not verified: no run on an installed build. The measurement rebuilds each turn from the session file (last 3,500 characters, at most 5 later turns), and 9 questions were not listed again in that context.
  • Not verified: the full Rust suite and the other lanes run in CI only. 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)
stale cleared live lost
before (#2470 not merged) 0/20 0/3
#2470's rule alone, no relisting 15/20 2/3 (both operator steps)
#2470 + this, v27 judgment (one run) 8/20 (7 closed, 1 folded) 0/3

Needs You over the 16 root sessions holding questions of 11-11/12, at the copy's last turn:

Needs You false live lost
before 16 2 (fc86b2, dfc3c6), f89171 unclear 0
after 16 2 (fc86b2, dfc3c6), f89171 unclear 0
More evidence

정리됨 closed at first (light), below 나를 기다리는 것
Closed at first, light theme.

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
Base automatically changed from feat/quiet-open-asks to main November 12, 2026 02:45
@yansfil
yansfil added this pull request to the merge queue Nov 12, 2026
Merged via the queue into main with commit ee9d0e1 Nov 12, 2026
67 checks passed
@yansfil
yansfil deleted the feat/fold-open-asks branch November 12, 2026 03:45
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>
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