Skip to content

feat: let the suggestion investigation list and read the Project's boards - #5

Merged
HyunjunJeon merged 2 commits into
mainfrom
feat/board-hide-ai
Nov 13, 2026
Merged

HyunjunJeon merged 2 commits into
mainfrom
feat/board-hide-ai

Conversation

@HyunjunJeon

@HyunjunJeon HyunjunJeon commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Related: mission-6 node hide-ai; depends on #3 (board record, merged). Pairs with with-hide/hide-private docs/suggestion-investigation.md, which could not be opened from this fork.

Summary

Hide AI's suggestion investigation could reach a file only if some text named it, so it never found a board an agent drew.
Each turn's input now lists the Project's boards: id, title, agent, a record of the session that drew it, state, hours since it changed, and a kept board's file.
At most 20, newest first, none deleted, in a 4 KiB share of the 12 KiB records budget.
A new {"tool":"board","board":"board-12","from_block"?:"b4"} read returns one board as Markdown, redacted and clipped to 8 KiB, with the next block to read from.
A board of another Project, a deleted board, and a board in a folder whose Project the catalog has not read are never listed and are refused when read.

Review

  • Risky files: hide-core/src/runtime/suggestions.rs - investigation_parts runs under Mutex<Runtime>; it now hashes each non-deleted board's checkout (≤256) and clones up to 20 boards (≤64 KiB each).
  • Risky files: hide-core/src/suggestions/investigation/prompt.rs - the board list reaches the provider without passing fulfil, so the title and kept path are masked there; the schema moves to suggestions_investigation.v4.
  • Risky files: hide-core/src/runtime/hosts.rs - catalog_project is memory_scope's cached-facts lookup moved out unchanged; Memory's hooks and the board list both call it, and memory_scope's tests pass untouched.
  • Cost: once per daily run, under the lock: ≤256 SHA-256 hashes and ≤1.25 MiB copied; no I/O, no node call. No hot path, nothing resident, no new thread.
    A run reads the copies it took when it began: a board deleted while that run goes on (up to 20 minutes) stays readable to that run until it ends, as the design's "answered from the boards captured with the parts" accepts; the next run neither lists nor reads it.

Project Memory does not read boards (out of the mission). It would attach by handing a board's export in as a note event, the way hide memory add sends an agent_note.

Tests

  • Layer: unit, in hide-core/src/suggestions/investigation/tests.rs, through the real router and scripted provider like the rest of that suite; one runtime test (runtime/tests/suggestions.rs) runs the real Project lookup on a git worktree here and on a device's facts.
  • Catches: a board of another Project, a deleted board or a board whose Project is unknown reaching the input or a read; a read that drops content between parts or never ends; a list that crowds out the records; an unredacted title or block. Planted defects, each failing its test: an unmasked title, an unmasked kept path, and the lookup hashing the checkout's own folder instead of the Project's root.
  • Repeat: suggestions::investigation:: (24 tests, 4 new) × 5 runs locally, all green; the runtime test with runtime::tests::suggestions::, memory:: and inbound:: green; no repeat job on the fork.
  • Waits: none.

Evidence

  • Verified: bash scripts/verify-cargo.sh test-scoped -p hide-core --lib suggestions::investigation:: 24 passed; fmt-check clean; the mission's check.sh (lint, Rust tests, web unit gates) at the head commit, macOS only.
  • Verified: an unclipped read equals boards::markdown(board); chained reads of a 12-block board with a 6000-character block reach the last block, each text ≤ 8 KiB; a ghp_ token in the title and in a block appears in no request input.
  • Verified: the fork's verify run 43340818312 at dae772e38: 21 jobs pass, 0 fail, including rust workspace (Linux), windows check, os contract on Linux and Windows, and remote mailbox (Ubuntu).
  • Not verified: the 19 verify jobs the fork skips (among them the Windows e2e lanes and remote mailbox arm64); a board on a live connected device (the device lookup is tested on hand-made catalog facts, not a running device); a real provider choosing the board read.
  • Not verified: the paired private document update; with-hide/hide-private cannot be reached from this fork, so docs/suggestion-investigation.md is not updated.

…ards

Each turn's input lists the boards the Project's sessions drew (at most 20,
newest first, none deleted, inside the records' bytes), and a board read
answers one from the copies the run took with its parts, in whole blocks
under the one-result bound with the next block to continue from, through
the same redaction as every other read.
… Memory and boards

memory_scope and the investigation's board lookup now both call
catalog_project, so a board takes the Project Memory's hooks take, and a
runtime test runs the real lookup for a worktree on this machine and on a
device. A kept board's path is pinned masked in the list.
@HyunjunJeon
HyunjunJeon merged commit 70ac4a7 into main Nov 13, 2026
67 checks passed
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