Repository navigation
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
Open
HyunjunJeon wants to merge 14 commits into
HyunjunJeon wants to merge 14 commits into
Conversation
… 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.
…keep or delete it
…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.
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: mission-6 node
keep(boards in Hide itself), after nodeview(#6), which this builds on; nodeteachruns 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 (defaultdocs/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 nodeview'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
로그인 흐름 정리: 토큰 갱신→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.hide board deletenow closes the board's Views too, instead of leaving themunavailable(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 readsunavailable.set/edit/deleteof that board are refused asboard_keeping, so the file holds the board as the person saw it.board_keptthen names that checkout. A View of the board in any other checkout closes.hide-core/src/runtime/boards.rs- keep, delete and the person's open underMutex<Runtime>; the file write runs on one worker thread per keep, never under the lock.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.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).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; nofocus_checkout, no device brought forward.hide-core/src/runtime/view_areas.rs- the replace branch takes a display only when it is a new tab or a kept swapshow_kept_filerecorded; 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 askeep_openbefore anything is written (a View already open would keep showing what it read), and goes through once the tab is closed.hide-core/src/runtime/boards.rs(wire) -rest.boards.items[].keepjoins the projection's fingerprint;contracts/snapshot-wire-enums.jsonpinsboard_keep_stateandboard_keep_failure.hide-core/src/boards.rs-BoardState::Keptgains an optionalkept_checkout(a record without it reads as the board's own);node_migration::KEYSrewrites its machine id.web/src/actions.tsopenRecordBoard- 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 beforeboard_open; only the kept branch looks its checkout up.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, andset/edit/deletegain the refusalboard_keeping(the guide's Boards section came with nodeteach, feat: teach every agent to draw a board with hide board #7, merged in).Tests
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 andboard_openbrings 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 andboard_keptnames 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 askeep_openuntil 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_migrationrewrites a kept board's checkout machine id.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.boards::keep_path_refused(characters, not bytes), hided'sboard_keepboundary, webdefaultKeepPath, the record's board tiles, the head's controls and failure line, the wire enums against the contract.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 answersboard_deleted. Only the page proves the head's popover, the dialog and the tile reach the core.a_board_opened_again_comes_in_front_of_what_its_agents_strip_rememberedwith 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.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 at2706704aa: it opened the board before the keep's second worker had swapped the View; it waits for that state since7100b9294). Web:e2e/board.spec.ts --repeat-each=3, 9 of 9 locally; the fork's repeat job at1499fe8fe: web e2e repeat-linux passed (its Rust repeat lane was skipped by the workflow).data-record-boardanddata-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.scripts/release_state/scenario.pykeeps the device's board after drawing it, so a release writeskept_checkoutforupgrade_tests; a release before keep records the step as not done.Evidence
47a098356(after mergingmainwith nodeteach): exit 0,verify-cargo.sh lintclean, 8563 Rust tests passed and 0 failed, web 2992 and desktop 325 unit tests passed (macOS);verifyon the fork passed at1499fe8fe(run).verify-cargo.sh cliandpnpm --dir web build,pnpm --dir web exec playwright test e2e/board.spec.ts --repeat-each=3at47a098356: 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.verify-cargo.sh lintclean;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.verifyrun on the fork covers them; nothing here is written for one system.busy/unknownare handled, but the remote lanes that prove the route run only upstream.docs/tasks-and-pr-list.mdowns; it cannot be opened from this fork, so no paired pull request is named and nothing of it is restated.scripts/release_state/generate.pyruns (two containers), not here; no release writes the field yet, so no folder is regenerated.gen:typeswas run and changed nothing, since the generator emits no type forpath_refusedkinds; the page readsboard_keep's refusal as apath_refusedframe.