Skip to content

feat: let the operator keep a board as a file, delete it, and open it again - #8

Open
HyunjunJeon wants to merge 14 commits into
mainfrom
feat/board-keep
Open

HyunjunJeon wants to merge 14 commits into
mainfrom
feat/board-keep

Conversation

@HyunjunJeon

@HyunjunJeon HyunjunJeon commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Related: mission-6 node keep (boards in Hide itself), after node view (#6), which this builds on; node teach runs beside it.

Summary

A board an agent drew could only be read on screen: the person could not keep it in the repository, could not remove it, and lost it once its View closed.
A board's head now has 파일로 남기기: a popover with a path (default docs/boards/<date>-<title as written>.md, a Korean title kept in Korean) that writes the board as a new Markdown file of the checkout the person is looking at and shows that file in the same place. Git is not touched. A worker's board that its Conductor showed in the project checkout is kept there, not in the worker's worktree.
지우기, confirmed once, deletes the board and closes every View of it, so a deleted board never waits in Needs You (the defect node view's verifier found).
The session record's 결과물 lists the session's boards, open on screen or not; pressing an open one opens it where the person is, in the Workspace in front, switching nothing (a kept one opens its file).

No screenshot: captures are kept in the mission's run folder; the fork has no image uploader

Review

  • Decide (the operator's): the default name keeps the title's own letters in any script, 로그인 흐름 정리: 토큰 갱신 → docs/boards/<date>-로그인-흐름-정리-토큰-갱신.md; every layer (hided's boundary, the core's rule, the host on this machine and as a device spells paths, the file View, the tile, board_kept, Hide AI) takes it as written.
  • Decide (the Conductor's, after two review rounds): a record tile of an open board opens it where the operator is, in the active area of the Workspace in front, whichever checkout or machine drew it (a worker's board in the project checkout, a device's board on this machine, and the other way round); it switches no Workspace or machine. Such a View is not put back after a restart, as an ancestor's is not. A kept board's tile opens the file where it was kept.
  • Decide: an agent's own hide board delete now closes the board's Views too, instead of leaving them unavailable (design table row 5 said a View "left open elsewhere reads unavailable"; the brief supersedes it). Only a board that went with its session's records still reads unavailable.
  • Decide: while a keep runs, the agent's set/edit/delete of that board are refused as board_keeping, so the file holds the board as the person saw it.
  • Decide (asked by the Conductor): keep writes into the checkout of the View it was pressed in, not the board's own; board_kept then names that checkout. A View of the board in any other checkout closes.
  • Risky files: hide-core/src/runtime/boards.rs - keep, delete and the person's open under Mutex<Runtime>; the file write runs on one worker thread per keep, never under the lock.
  • Risky files: hide-core/src/files.rs - write_new_file: Create folders, Create the file, Save against the empty file's revision; a lost answer is read back once and never resent.
  • Risky files: hide-core/src/runtime/view_areas.rs - the in-place replace branch now also takes the display of the board kept as that file (and clears its board id).
  • Risky files: hide-core/src/runtime/boards.rs - board_open {board, workspace} checks the board and that the Workspace is a catalog checkout before the layout changes, places the View there, settles the strip (the reopened View's agent mark can switch it to that agent) and then focuses it; no focus_checkout, no device brought forward.
  • Risky files: hide-core/src/runtime/view_areas.rs - the replace branch takes a display only when it is a new tab or a kept swap show_kept_file recorded; a file already shown there wins (the board's display closes), and a display gone by then falls through to an ordinary open with no error. A keep at a path whose file View is open in that Workspace is refused as keep_open before anything is written (a View already open would keep showing what it read), and goes through once the tab is closed.
  • Risky files: hide-core/src/runtime/boards.rs (wire) - rest.boards.items[].keep joins the projection's fingerprint; contracts/snapshot-wire-enums.json pins board_keep_state and board_keep_failure.
  • Risky files: hide-core/src/boards.rs - BoardState::Kept gains an optional kept_checkout (a record without it reads as the board's own); node_migration::KEYS rewrites its machine id.
  • Risky files: web/src/actions.ts openRecordBoard - an open board's tile needs no catalog row for the checkout that drew it (a merged worker's worktree), and pressed in the Overview it brings the Workspace behind it back on screen before board_open; only the kept branch looks its checkout up.
  • Risky files: hided/assets/guide.md, hided/assets/board/help.md, contracts/hide-cli.json - what every agent reads: a delete closes the board's Views, the operator can keep or delete a board, and set/edit/delete gain the refusal board_keeping (the guide's Boards section came with node teach, feat: teach every agent to draw a board with hide board #7, merged in).
  • Cost: no timer, watcher or resident thread; one short-lived worker per keep the person presses (one per board at a time); the record's board list is rebuilt only while a record is shown, when the book or the View lists change.

Tests

  • Layer: core runtime (runtime::tests::boards, 10 new or rewritten): keep writes the export into a new file making its folders and the View becomes the file in the same place; path refusals and a non-empty file; after a refused, busy or lost-before save only the empty file is written; a lost-after save reads back as kept; delete (agent's and person's) closes the View and its Needs You row; delete closes the View in another checkout; the record lists an open board whose View closed and board_open brings it back seen with its agent's mark; a reopened board comes in front of what its agent's strip remembered; a worker's board kept from the Conductor's View is written in the Conductor's checkout and board_kept names it; a keep from a Workspace that does not show the board writes nothing; a worktree's board opened from the record lands in the checkout in front and the worktree is untouched; a device's board opens in this machine's checkout and this machine's board in a device's Workspace, with no error and nothing switched; a refused open (a deleted board, a Workspace the catalog does not hold) moves nothing; a keep at a file open in a tab is refused as keep_open until the tab closes; a View of the file opened while it was written takes the board's place once; a board deleted before its View became the file's opens the file in the area with no error; a View closed while the file was written gets the file in the active area; a Korean path is kept as written. Web: the slug's rules (Korean, Korean with English, Japanese, Chinese, NFD input, emoji only, Windows-forbidden characters, a long title cut on a boundary within 255 bytes). node_migration rewrites a kept board's checkout machine id.
  • Layer: web unit (actions.test.ts): an open board's tile opens in the Workspace in front when the checkout that drew it is gone, and from the Overview brings that Workspace back; a kept board whose checkout is gone sends nothing; a kept board's tile from the Overview brings the Workspace back. Web unit (boards.test.ts): the head's notice after a core refusal then a boundary refusal, and the reverse.
  • Layer: unit: boards::keep_path_refused (characters, not bytes), hided's board_keep boundary, web defaultKeepPath, the record's board tiles, the head's controls and failure line, the wire enums against the contract.
  • Layer: e2e, the third test of web/e2e/board.spec.ts: the person keeps a board through the popover, the file appears in the checkout and the same place shows it; a closed board comes back from the record's 결과물; confirming 지우기 removes the View and the agent's edit answers board_deleted. Only the page proves the head's popover, the dialog and the tile reach the core.
  • Catches (planted and reverted): closing no View on delete fails 3 tests (both delete tests and the record test); writing into a non-empty existing file fails both keep refusal tests; dropping the strip settle before the person's open fails a_board_opened_again_comes_in_front_of_what_its_agents_strip_remembered with the file in front, the exact failure the e2e first showed; keeping into the board's own checkout again fails the Conductor case; opening in the board's own checkout again fails the worktree, device and refused-open tests; ignoring a file already shown, or treating a gone display as an error, each fails its window test.
  • Repeat: Rust: the 45 runtime::tests::boards:: tests x 25 runs, all green, while the full hide-core suite ran beside them as load (the kept-tile test had failed twice on CI's Linux runner at 2706704aa: it opened the board before the keep's second worker had swapped the View; it waits for that state since 7100b9294). Web: e2e/board.spec.ts --repeat-each=3, 9 of 9 locally; the fork's repeat job at 1499fe8fe: web e2e repeat-linux passed (its Rust repeat lane was skipped by the workflow).
  • Waits: none new; the e2e waits on the file's existence, the front tab's label, data-record-board and data-board-view, with the default timeouts; the core tests wait on the board's View becoming the file's, and the fake host holds a save on a condvar, not a timer.
  • Layer: release state: scripts/release_state/scenario.py keeps the device's board after drawing it, so a release writes kept_checkout for upgrade_tests; a release before keep records the step as not done.

Evidence

  • Verified: the mission's check at 47a098356 (after merging main with node teach): exit 0, verify-cargo.sh lint clean, 8563 Rust tests passed and 0 failed, web 2992 and desktop 325 unit tests passed (macOS); verify on the fork passed at 1499fe8fe (run).
  • Verified: after verify-cargo.sh cli and pnpm --dir web build, pnpm --dir web exec playwright test e2e/board.spec.ts --repeat-each=3 at 47a098356: 9 passed on an isolated daemon (macOS), the keep step with a Korean title; captures of the popover, the file in place, the record's tiles and the delete dialog (and the gallery's Korean states) are in the mission's run folder.
  • Verified: verify-cargo.sh lint clean; check-timed-waits.py, check-core-touches-no-machine.py, check-no-workstation-identity.sh, check-capability-readers-off-lock.sh, check-design-contract.mjs, check-no-attribution.py, check-harness-ignore-anchor.sh, pnpm --dir web lint, node scripts/docs/check-all.mjs: clean.
  • Not verified: Windows and Linux on a workstation: only this pull request's verify run on the fork covers them; nothing here is written for one system.
  • Not verified: keeping a board in a connected device's checkout: the write goes through that device's host with the same calls, and busy/unknown are handled, but the remote lanes that prove the route run only upstream.
  • Not verified: the private design document: the board tiles join the session record's 결과물, which with-hide/hide-private docs/tasks-and-pr-list.md owns; it cannot be opened from this fork, so no paired pull request is named and nothing of it is restated.
  • Not verified: the release-state scenario's new keep step: it runs only where scripts/release_state/generate.py runs (two containers), not here; no release writes the field yet, so no folder is regenerated.
  • Not verified: gen:types was run and changed nothing, since the generator emits no type for path_refused kinds; the page reads board_keep's refusal as a path_refused frame.

… again

A board View's head gains 파일로 남기기 (a popover with the path, default
docs/boards/<date>-<slug>.md) and 지우기 (confirmed once). Keeping writes the
board's export into a new Markdown file below its checkout on the machine
that holds it, off the lock, and its View becomes that file's in the same
place; deleting closes every View of the board, so nothing waits to be
looked at. The session record's 결과물 lists the session's boards, open on
screen or not, and opens one again.
A board opened again from the session record wears its agent's mark,
which can make the keyboard's strip that agent's; the strip now settles
before the open brings the board forward, so the remembered View of that
strip does not take the front back.
…ions a record holds

A failed keep's line also goes with its board.
…ep in

A mission's Conductor shows a worker's board in the project checkout; a
keep pressed there wrote into the worker's worktree, which goes once the
node merges. The file now goes in the checkout the operator is looking
at, the kept record names that checkout, and board_kept names it too.
… letters in its file name

- board_open brings the board's checkout forward itself, after every check
  that can refuse it, so a tile press is one event and a refused one moves
  nothing.
- The default path keeps the title's letters and digits in any script
  (NFC), joins the rest with one hyphen, and is cut on a character
  boundary within 255 bytes for the name.
- A save refused as a conflict is read back, so a late earlier save of the
  same export reads as written; a View closed while the file was written
  gets the file in its checkout's active area.
- Hide AI's board list names the folder a kept board's file is in.
- The release-state scenario keeps the device's board, so a release writes
  kept_checkout.
- The kept-tile test waits for the View to become the file's before it
  opens the board, which a slower runner had not yet done.
…thing

A record tile's board_open now carries the Workspace it was pressed in
and opens the board there as the operator's own View, whichever checkout
or machine drew it; it calls no focus_checkout and brings no device
forward, so a device's board no longer reaches an unregistered-Workspace
error and a refused open moves nothing.

- A kept board's display waits as a recorded swap: when its file already
  shows in that Workspace the board's display closes, and when the
  display is gone (closed, or the board deleted) the file opens in the
  area, with no error; an open View of the file without unsaved text
  reads it again.
- The default slug is lower-cased before NFC and capped at 80 characters.
- The release-state step fails when a release takes board_keep and never
  reads the board kept.
… from the Overview or a gone checkout

- The keep no longer reloads a View already open on the file: the read
  landed over text typed while it was in flight. That View shows the
  empty file it was opened on, as before.
- A tile of an open board no longer needs the checkout that drew it in
  the catalog, so a merged worker's board still opens.
- Pressed in the Overview, the Workspace behind it comes back on screen,
  unchanged, to show the board.
…sal, and leave the Overview for a kept tile

- A keep at a path whose file View is open in that Workspace answers
  keep_open before anything is written, so no View shows the empty file
  over the written board; it goes through once the tab is closed.
- The head shows the refusal of the last attempt with its path: a path
  hided's boundary refused speaks over an earlier core failure.
- A kept board's tile pressed in the Overview brings the Workspace back,
  as an open board's does.
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