Repository navigation
feat: give the core a board record and the hide board command - #3
Merged
Merged
Conversation
A board is a record the core keeps for the native session that drew it, as a plan is: a title and blocks (section, callout, table, code, quote, diagram, divider), checked with the failing field named, changed by five edit operations applied all or none, and exported as one Markdown text. Boards live in a folder of their own under the state folder, one file per board beside an index. The runtime reads the folder when it is made, and one save thread with one pending body per board keeps it, so links.sqlite3 and workspace-views.json keep their schemas. A session's deleted or pruned records take its boards, and a core move or a device's new id rekeys each board's file as it does a mission's.
hide board new, set, edit, show, list and delete reach the core through the pane capability a plan uses, with no shell open. The command reads a quote's lines from the caller's checkout on the machine that holds the file, and refuses a quote that leaves the checkout or names a credential before anything is sent. A refusal names the field to fix in its next action. The CLI contract and the CLI reference gain the board topic, the guides gain a Session boards section, and the first test of board.spec.ts runs the journey as an agent in its own pane.
…path rule The board's quote guard called its own copy of the rule the suggestion investigation reads by; it now asks that rule, so every path a board quotes is one Hide AI may read, and a move refused partway no longer puts its block back in a draft the refusal drops.
… oldest stub go The read a mission's Conductor relies on, a board drawn by its worker in the worker's own worktree, had no test: it now runs with the sessions keyed as production keys them (the row's native session, the ledger's native session beside the actor's digest). A full book's eviction is tested too, and boards updated in the same millisecond go in the order they were drawn.
HyunjunJeon
force-pushed
the
feat/board-record
branch
from
November 12, 2026 08:41
b05ae5b to
7decfa3
Compare
…tory checks The board store is one of the core's own stores, so the machine-touch check lists it with its five touches and why; the board command's usage is help text the user docs lane reads; and the release-state scenario has an agent on the core and one on the device draw a board, which a release before boards records as not done.
…e lock A board body or delete that failed on disk was dropped while the index went on without it, so a failed delete brought the board back after a restart. The writer now keeps what failed for the next save unless a newer one of that board came first, tries it once more when it is dropped, and a start removes a file the index already let go. A show copies the boards it prints under the lock and draws their Markdown after it. The quote read stops at its cap, a --json document may span lines, and the quote path rule names its length limit from the investigation's own constant. Tests now pin who reads a board (a parent in another checkout, nobody else, never a child reading up), the eviction order past the cap, the archive delete taking a session's boards, and that the command refuses a credential quote before reading anything.
# Conflicts: # contracts/hide-cli.json
install-agent-clis.py read contracts/agent-adapters.json and contracts/agent-journey.json with the system's default encoding, so on Windows (cp1252) the prompt mark U+276F in agent-adapters.json stopped the agent CLIs lane. This pull request runs that lane because it changes the lane plan; both repository files are now read as UTF-8.
…ng the agent CLIs The installer's reads of its text files name UTF-8, the downloaded SHA256SUMS.txt included, and a test reads the two contracts with the system default set to cp1252, as a Windows runner has it: without the encoding it fails with the error the Windows agent CLIs lane showed.
This was referenced Nov 13, 2026
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
record(boards in Hide itself); nodesviewandhide-aibuild on it.Summary
An agent had no way to show the operator something with parts (an explanation, a table, quoted code, a diagram, a decision) that stays current after the operator looked: a file View reads its file once.
This gives Hide's core a board record of its own:
hide board new|set|edit|show|list|deletedraws a board for the agent's native session, changes it block by block, and keeps it instate/boards/, outside every other store.No View yet:
newonly creates the record, and its answer carries noview.What nodes
viewandhide-aibuild on (public names inhide_core::boards):Board(id,owner,checkout,title,blocks,next_block,revision, times, flattenedstate),Block(id,changed_at, flattenedBody),Body(section|callout|table|code|quote|diagram|divider,kind()),Tone,BoardState(name():open|kept|deleted),Remover,BoardCheckout.block_markdown(&Body)for one block andmarkdown(&Board)for a whole board, as design section 4 and its "Optional titles and notes" say;summary(&Board)is the answer line.self.boards.boards()iterates every board (deleted stubs and kept ones included) andself.boards.get(id)finds one; nothing else of the book is reachable.{"ok":true,"result":{"board":{"id","title","revision","state","blocks":[{"id","type"}]}}};show <board>adds"markdown";show --jsonanswers{"board":<record>};listand a bareshowanswer{"boards":[...]}; a refusal answers{"ok":false,"reason","next_action"}, the field to fix in parentheses at the end ofnext_action.boards.rsholds a quote's path tosuggestions::investigation::reads::readable_path(and itsREAD_PATH_CHARS), so nodehide-aikeeps that function and its meaning: changing it changes what a board may quote.No screenshot: the only site change is seven CLI reference notes, which the docs check generates as text; no page or component changes.
Review
setkeeps a block's id when the block names it ("id": "b3"); without it everysetrenumbers the board. (Judged sound in review.)readable_path, 240 characters at most, so every quoted path is one Hide AI may read. (Judged sound in review.)insertandmovewithoutafterput the block last, as the reference model does, so no edit puts a block first;setdoes. Kept: a first-place form ("after": nullor abefore) would be a second spelling of one place for every agent to learn.boards.file_unreadable); its id is never given again. Kept: it may be a newer build's board, and this build never writes over or deletes what it cannot read. A file the index let go is removed.hide-core/src/runtime/boards.rs- each command runs underMutex<Runtime>: it checks the board and serializes it once to hold it to 64 KiB; ashowcopies its boards there and draws their Markdown after the lock is released (BoardTurn); no file I/O there.hide-core/src/board_store.rs- the save thread and the read at creation: a body file is the authority unless the index let it go; a failed write or delete is kept for the next save (a newer one wins) and tried once more on drop; an index of another schema keeps every command out rather than being written over.hide-core/src/node_migration{.rs,/reown.rs,/devices.rs}- board files are rekeyed by newKEYSrows on a core move and a device's new id, as mission files are; the index names no machine.hided/src/server.rs-ScopedRequest::Boardneeds no shell and takes the full frame, like a plan.hided/src/board_cli.rs- the quote guard: a path is refused before any read unless it is a readable path, and a link that leads out of the checkout or to a credential is refused after it is resolved; the file is read to its 1 MiB cap and no further.scripts/install-agent-clis.py- a gate fix: it readcontracts/agent-adapters.json,contracts/agent-journey.jsonand the downloadedSHA256SUMS.txtwith the system's default encoding, and Windows' cp1252 cannot decode the prompt mark U+276F already on main; this pull request runs that lane because it changes the lane plan (scripts/ci-plan.py), so all three reads name UTF-8, andscripts/tests/test_agent_clis.pyreads the contracts as a cp1252 system would (without the encoding it fails with the lane's own error).Tests
boards::tests,board_store::tests,board_cli::tests), core runtime (runtime::tests::boards, 14 tests on the delivery fixture's two agent panes),node_migration(core move, device rename), and one e2e.web/e2e/board.spec.ts) protects the agent's journey through the real CLI: the pane capability, the hook route that names the checkout for a quote read, the daemon's refusal detail. A core test cannot see the CLI read a quote or the daemon split a refusal.may_readalways true, or its ancestor clause removed, fails onlya_parent_reads_a_board_its_child_drew_in_another_checkout_and_no_one_else_does, whose sessions are keyed as production keys them (the row's native session; the ledger's native session beside the actor's digest).a_failed_write_is_written_again_with_the_next_saveanda_failed_delete_is_done_again_and_its_board_never_comes_back; dropping the owner check failsonly_the_session_that_drew_a_board_changes_it.a_saved_board_leaves_the_link_record_at_16_and_the_view_layouts_at_5, readsPRAGMA user_versionof a link record the worker made and the savedworkspace-views.jsonafter a board is on disk.boardfilter ofhide-core(75 tests: model, store, runtime,node_migrationboard cases) x 10 runs, all green, and the e2e--repeat-each=3, 3 of 3, locally at284bcfd39; this pull request'sverifyrun also has the fork's repeat lane.board.spec.tssets a 120 s test budget, annotated: two agent stand-ins start and report their sessions (agentPaneallows each 20 s). The Rust tests wait withwait_foron a board file's revision, a deleted file and the link record's schema, or join the save thread; no sleep.Evidence
d953f9693, exit 0:verify-cargo.sh lintclean, 8520 Rust tests passed and 0 failed, web unit 2970 and desktop unit 325 passed (macOS). Two earlier runs at the same head each failed one test this change does not touch, which passed 5 of 5 alone:runtime::tests::missions::one_cause_on_five_nodes_shows_the_operator_one_card_at_most(it reads the clock once and asserts a raise 19 minutes back against a 20-minute threshold) andhide-nodean_install_sends_only_what_the_device_does_not_hold_whole(a child ended with a broken pipe).284bcfd39:verify-cargo.sh test-scoped -p hide-core --lib board: 75 passed;node_migration::: 70 passed;-p hided --lib -- board_cli:: cli_contract::: 12 passed;verify-cargo.sh lint: clean.verify-cargo.sh cliandpnpm --dir web build,pnpm --dir web exec playwright test e2e/board.spec.ts --repeat-each=3: 3 passed on an isolated daemon (macOS).python3 scripts/check-core-touches-no-machine.py,check-timed-waits.py,check-no-attribution.py,check-no-workstation-identity.sh: clean;scripts/teststest_ci_plan.py(97) andtest_core_touches_no_machine.py(8): OK.284bcfd39(43185635239) passed 49 jobs; it failed onlyagent CLIs (windows), on the encoding fixed here, and four macOS jobs no hosted runner picked up. The run ford953f9693(43228925112) records the mission'sciline.verifyrun on the fork; nothing here is written for one system, and the store, the pane capability and the quote read go throughhide_platformand the existing capability.scripts/release_state/scenario.pynow has the step, so the first release that ships boards adds the folder, and until then the rekey is tested with hand fixtures (board_files_follow_the_core_owner,board_files_follow_a_device_rename).How to run the journey
From the worktree, with no
HIDE_*variable set (the mission'srun.shclears them):