Repository navigation
feat: let the suggestion investigation list and read the Project's boards - #5
Merged
Merged
Conversation
…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.
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
hide-ai; depends on #3 (board record, merged). Pairs with with-hide/hide-privatedocs/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
hide-core/src/runtime/suggestions.rs-investigation_partsruns underMutex<Runtime>; it now hashes each non-deleted board's checkout (≤256) and clones up to 20 boards (≤64 KiB each).hide-core/src/suggestions/investigation/prompt.rs- the board list reaches the provider without passingfulfil, so the title and kept path are masked there; the schema moves tosuggestions_investigation.v4.hide-core/src/runtime/hosts.rs-catalog_projectismemory_scope's cached-facts lookup moved out unchanged; Memory's hooks and the board list both call it, andmemory_scope's tests pass untouched.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 addsends anagent_note.Tests
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.suggestions::investigation::(24 tests, 4 new) × 5 runs locally, all green; the runtime test withruntime::tests::suggestions::,memory::andinbound::green; no repeat job on the fork.Evidence
bash scripts/verify-cargo.sh test-scoped -p hide-core --lib suggestions::investigation::24 passed;fmt-checkclean; the mission'scheck.sh(lint, Rust tests, web unit gates) at the head commit, macOS only.boards::markdown(board); chained reads of a 12-block board with a 6000-character block reach the last block, each text ≤ 8 KiB; aghp_token in the title and in a block appears in no request input.verifyrun 43340818312 atdae772e38: 21 jobs pass, 0 fail, includingrust workspace(Linux),windows check,os contracton Linux and Windows, andremote mailbox(Ubuntu).verifyjobs the fork skips (among them the Windows e2e lanes andremote 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 theboardread.docs/suggestion-investigation.mdis not updated.