Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
Document owner writes to private pages and add the upgrade notice and changelog entry (GST-2091)
garrytan56769b105dd5
diff --git a/behavior-changes.d/owner_remote_private_writes_gst2091.md b/behavior-changes.d/owner_remote_private_writes_gst2091.mdnew file mode 100644index 0000000000..e29d9a1a77--- /dev/null+++ b/behavior-changes.d/owner_remote_private_writes_gst2091.md@@ -0,0 +1 @@+The brain owner's own remote agents can now change private pages. A credential bound to the brain owner (gbrain access owner set) that has write scope and speaks for itself (no audience, not an attested call, not a subagent job, no slug fence) may rewrite, edit, append to and relabel a page marked visibility: private that it already reads, through put_page, edit_page and append_page; before, these writes answered page_not_found. A put_page that leaves out visibility or readable_by keeps the stored ones, and the change is recorded under the owner's credential. Everyone else is refused exactly as before: other members, unbound tokens and OAuth clients, attested calls, the owner's credential asserting a shared room, the owner's credential without write scope, and any write to a page whose readable_by or folder rule leaves the owner out. delete_page on a private page stays refused. An owner who does not want an agent to change private pages gives that agent a credential without write scope (gbrain auth create <name> --member <owner> with read scope only), or binds it to its own member instead of the owner.diff --git a/changelog.d/capy-owner-remote-private-writes.md b/changelog.d/capy-owner-remote-private-writes.mdnew file mode 100644index 0000000000..8a99fc151d--- /dev/null+++ b/changelog.d/capy-owner-remote-private-writes.md@@ -0,0 +1,7 @@+**The brain owner's own remote agents can now edit, append to and relabel the private pages they already read, and everyone else is still refused.**++### Changed++- A credential bound to the brain owner, with write scope and speaking for itself, may change a `visibility: private` page it reads with `put_page`, `edit_page` or `append_page`, and relabel it (for example to `visibility: world`). A `put_page` that leaves out `visibility` or `readable_by` keeps the stored ones, and the page revision and the journaled request name the owner's credential. Other members, unbound tokens and OAuth clients, attested calls, the owner's credential without write scope and writes to pages whose readers or folder rule leave the owner out get `page_not_found` (or their earlier refusal) as before, on repo-less and repo brains alike.++<!-- behavior-change: owner_remote_private_writes_gst2091 -->diff --git a/docs/guides/access-designations.md b/docs/guides/access-designations.mdindex df6cf27e4d..0c7bd7df67 100644--- a/docs/guides/access-designations.md+++ b/docs/guides/access-designations.md@@ -77,8 +77,9 @@ Connectors set it for content that is private at its source: private Slack channcalendar events, private meetings, and sources added with `--visibility private`.Who sets it: any writer of the page, local or remote. Who clears it: the owner or the brain operator, on purpose,-on the brain host (an edit through `put_page`, a git edit, or `gbrain repair private-labels`). A remote writer-cannot rewrite a page its write policy hides, so an agent cannot clear a label it cannot see. Clearing widens what+on the brain host (an edit through `put_page`, a git edit, or `gbrain repair private-labels`), or the owner's own+remote credential with write scope (see "The owner" below). Any other remote writer cannot rewrite a page its write+policy hides, so an agent cannot clear a label it cannot see. Clearing widens whatother members and public callers read; do it only on the owner's ask.### Privacy aliases: `access` and `confidentiality`@@ -184,6 +185,13 @@ database, so a repo-less brain works the same. The owner relaxation applies to awhen it speaks for itself (no audience, or an audience of the owner alone); never to a shared-room audience or anattested call. `gbrain access owner clear` turns it off.+**The owner's writes.** The owner's own credential with write scope, speaking for itself (no audience, not an+attested call, not a subagent job, no slug fence), may change a private page it reads with `put_page`, `edit_page` or+`append_page`, and relabel it (for example `visibility: world`); a `put_page` that leaves out `visibility` or+`readable_by` keeps the stored ones, and the revision and the journaled request (`ownerWrite`) name the owner's+credential. Readers lists and folder rules that leave the owner out still refuse it, and every other caller is refused+as before; to keep an owner agent from changing private pages, give it a credential without write scope.+**The owner opt-in.** `gbrain access owner reads-restricted on` (config `access.owner_reads_restricted`, off bydefault and unchanged on upgrade) lets the owner's credentials read the pages that `readable_by` lists, folder rulesand page rules keep to other members, and their derived pages and facts, on every read path: HTTP tokens, OAuth