Repository navigation
Let the brain owner's remote credential read private fact rows, hop context and takes (GST-3058) - #9707
Merged
Conversation
…ext and takes like the local CLI A credential bound to the brain owner and speaking for itself now gets the Facts fence as stored on get_page and fetch_page, the stored edge context on graph hops, and every take holder when it carries no holders list of its own. An explicit holders list stays honoured, and every other remote caller reads exactly what it read before (GST-3058, R94). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: p1/red-team#1 reader=red-team Review-Finding: p1/specialist-batched#1 reader=security Review-Finding: test/access-owner-protected-sections-gst3058.test.ts:1:testing reader=core Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
… the owner's markdown The brain owner's own put_page now takes the Facts fence as written, so editing a private row leaves one row with the new text and deleting one removes it. Every other remote writer still gets the rows it could not read restored. The owner mark comes from the server-verified owner binding, re-checked when the stored write is applied. A segmented page's view: 'markdown' now reads for the owner credential with no holders list as it does for the local CLI. The get_page read view stays the same text for every caller, the local CLI included. Review-Finding: p1/adversarial-native#1 reader=adversarial-native Review-Finding: p1/outside-voice#1 reader=outside-voice Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Round two's owner skip of the hidden-row restore deleted a private Facts row for good when an owner token with a holders list read a segmented page's markdown view, which hides the row, and put the page back. The write path is back to master's: every remote writer, the owner included, has the private rows restored, so an owner's edit or delete of a private row does not stick yet (follow-up GST-3064). The segmented markdown read fix stays. Tests now pin both round trips: the owner token's segmented markdown put keeps the private row, and the owner client's unchanged inline put keeps every private row exactly once. Review-Finding: p2/fix-check#1 reader=fix-check Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
With a room declared, the owner's own credential reads private Facts rows,
held rows and takes in get_page, but the room mark judged only the page row
and said the room could read it. get_page results now carry a check the room
marker runs only under a room: remoteReadStrips compares the body the caller
gets with what a world-only read of it keeps, and any difference marks the
page room_access {readable: false, reason: 'private_label'}. The mark is per
page. A member in the same room is marked as before.
Also adds the upgrade-notice row and the changelog fragment, and states the
known limit that an owner's private-row edit through put_page does not stick.
Review-Finding: p3/red-team#1 reader=red-team
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…efore The owner's every-holder default and its graph-hop text exemption now apply only when no room is declared. In a declared room the owner's credential reads world takes and gated hop text, as before this change, until GST-3066 adds room marks to those operations. Its get_page keeps the Facts rows and the room mark; a segmented page's markdown view in a room reads as before. With no room nothing changes. The room switch reads the same declaration the room marker uses, through one internal caller-access flag. Also corrects the upgrade notice, changelog fragment and runbook to say what the room mark covers and what it does not (held rows in read-view windows and in a holders-list owner's segmented markdown, as before), that the local CLI's --room marks change, and which reads give the owner every take holder. Review-Finding: p4/fix-check#1 reader=fix-check Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Shortens the owner-read entry and moves the two write-gate entries to the continuation page, which the room note pushed over the 60000-byte cap. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ct call The owner's wider reads (Facts rows as stored on get_page and fetch_page, a segmented page's markdown view, every take holder for a credential with no holders list, and graph-hop text) were on wherever a context resolved to the owner, with each exception switched off by hand; delegated agent jobs were one nobody had switched off. They are now off by default, and dispatch switches them on for exactly one case: a direct remote call from an owner-bound credential speaking for itself with no room declared. Agent jobs, group chats, stdio, on-behalf-of audiences and attested actors read as before this change. A census test fails if a second site sets the flag. An agent job also reads its client's stored takes holders list, read fresh with the grant, else world takes as before. Review-Finding: p5/fix-check#1 reader=fix-check Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Known limits from #9707's final review: the room mark is judged with the caller's own fact grant (GST-3066), and owner tokens minted with gbrain auth create store ['world']. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…er-reads-protected-sections-3058 Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # src/mcp/http-transport.ts
The census shells out to git grep, which made the structural-suite classifier list the whole database suite as structural; on its own file only the census is. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…d the pages.ts size verify on the master merge: the test's Postgres arm runs in the Postgres lane, bodyStripsFor (inline pages only) and protectedTakesFilter (body flags on a segmented page) are reviewed body readers, and pages.ts grows 8 lines for the owner option and the room body check. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…er-reads-protected-sections-3058
…of the schema closure A static import from verbs.ts pulled src/core/ops/context.ts (and through it src/version.ts) into the PGLite snapshot schema closure, which test/snapshot-inputs-closure.test.ts refuses. The handler already imports ops/context.ts lazily; readHolders now comes from that import. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
keepRoomBody put a fresh closure on every get_page result under an enumerable symbol key, so two get_page calls on the same page stopped comparing equal (test/get-page-timeline-entries.test.ts, "body fields match the call without the flag"). The check is now a non-enumerable property on the object the handler returns. The room marker still reads it through the real handler path, pinned by test/access-owner-protected-sections-gst3058.test.ts: "room marks: in a room the owner's credential reads get_page as before this change and a page showing held rows is marked ..." and "room marks on a segmented page and fetch_page ...". Both fail when the check is not attached. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
garrytan
added a commit
that referenced
this pull request
Nov 18, 2026
garrytan
added a commit
that referenced
this pull request
Nov 18, 2026
garrytan
added a commit
that referenced
this pull request
Nov 18, 2026
garrytan
pushed a commit
that referenced
this pull request
Nov 18, 2026
…9707, small-fix wave #9710) into rust-store The three new BrainEngine members (listIdentityDecisions, listRestrictedIdentityMembers, applyIdentityDecisions) are classified 'pages' in the Rust member table and refuse with a typed engine_capability_missing; the pages capability was already unreported. Goldens, coverage table and module-size ceilings re-summed at the merge.
This was referenced Nov 18, 2026
Merged
capy-ai Bot
added a commit
that referenced
this pull request
Nov 19, 2026
Publishes gbrain v0.60.741.0 from master e50f391, folding the 12 changelog fragments landed since v0.60.740.0. In it: embedding_disabled stops every route that still sent text to the embedding provider, including reindex work already queued or running (#9723, #9754); the Mac helper can send a one-to-one iMessage for the owner's agent, with nothing installed by upgrading and sending off until the owner turns it on (#9729); duplicate people and companies can be confirmed or rejected (#9701, #9732); the owner's remote credential reads what the local CLI reads (#9707); calls imported before attendee scoping can be fixed with a preview (#9679); the Rust storage engine ships as a library that nothing selects yet (#9688, #9731); plus two small-fix waves (#9710, #9724). This commit changes only version files, CHANGELOG.md, the upgrade-notice rows and their generated table, and removes the folded fragments. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Co-authored-by: garrytan <garrytan@gmail.com>
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.
A credential bound to the brain owner, making a direct remote MCP call for itself with no room declared, now reads what the local CLI reads: private and held Facts rows on get_page and fetch_page, the stored edge context on graph hops, and every take holder when the credential has no holders list of its own. Every other caller and context reads exactly as before.
This restores the owner's full read access for the owner's own remote callers (GST-3058, R94) without adding exposure anywhere a room mark doesn't cover.
Known limits: agent jobs and group chats (a declared room) read as before this PR until GST-3066; an owner's edit or delete of a private Facts row through remote put_page does not stick yet (GST-3064); owner tokens minted with
gbrain auth createstore ['world'], so they read world takes unless the list is changed.What changed
CallerAccess.ownerReads, read throughownerWidened()) for exactly one case: a direct remote call from an owner-bound credential, not over stdio, with no room, audience, attested actor, read mode or enforced member. Agent jobs, on-behalf-of audiences, stdio, attested actors and group chats read as on master. test/owner-widening-census-gst3058.test.ts fails if a second site sets the flag.view: 'markdown'reads as for the local CLI when the credential has no list. The read view (windows, lines, bytes, section, grep) is the same text for every caller, as on master.credentialHoldersgives both HTTP transports a credential's stored list, none for an owner-bound credential without one, and['world']for everyone else.readHoldersgives every holder only under the switch. Every read that filters takes by holder goes through it, among them takes_list, takes_search, takes_scorecard, takes_calibration, search, query, recall, delta, think and synthesize; synthesize now reads world takes only for a non-owner with no list.view: 'markdown'whose returned body carries rows a world-only read strips is markedroom_access: {readable: false, reason: 'private_label'}, per page. Remote owners read master's body in a room, so the mark there catches the held rows an owner already read on master. The local CLI's--roommarks private rows, held rows and takes the same way.ctx.takesHoldersAllowListoutside readHolders.Tests
--roomwith private rows, takes and segmented markdown, fetch never marked readable, a member unchanged).Agent notes
remoteReadStripscompares text, so a non-canonical world-only fence over-marks on the local CLI's--room; the room deadline does not stop the body checks; group-chat safety depends on the harness declaring a room; the owner's edit_page matches against the remote fence view; one extra config read per credential with no list; belief history treats "no list" as world; an owner on stdio gets [world] takes.