Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

docs: clarify federation across user-controlled machines (#7664)

[._.]/ Adam Eivydac109dbbac2
diff --git a/AGENTS.md b/AGENTS.md
index c535fc8a22..a37194c44b 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -38,7 +38,11 @@ npm run test:db # DB-backed suites → portos_test ONLY (see Se
- **Auth** — an optional instance password (`server/services/auth.js`, enforced by `server/services/authGate.js`) gates all of `/api/*` and `/data/*` when set, with a small always-public set (`/api/auth/status`, `/api/system/health`). Peers reach a password-gated instance via a per-peer Basic credential on the peer record, attached to every outbound hop by `peerFetch` (`server/lib/peerHttpClient.js`). **A PortOS-spawned agent authenticates with `PORTOS_API_TOKEN`** — a loopback session token the server mints and injects into the agent's environment (`server/services/agentApiAuth.js`). Any `curl` you write against this install's own API carries `-H "Authorization: Bearer ${PORTOS_API_TOKEN:-}"`; a bare `401 AUTH_REQUIRED` means the header was dropped, not that the endpoint is down. The variable is empty when no password is set (the gate ignores it) and is never given to a public-content review stage.
- **HTTPS** — provisioned by `npm run setup:cert`; `:5555` flips to TLS with a loopback-only HTTP mirror on `:5553`. Peer hops set `rejectUnauthorized: false` ("Tailnet is the trust boundary"): between two tailnet nodes WireGuard supplies mutual auth, but a non-tailnet peer (plain LAN IP / non-`.ts.net` host, see `peerRequiresTailscale()`) gets no server authentication.
-Because both are off by default, **never treat "the password is set" as an available guarantee** — gate on it explicitly, or design for the default posture. **PII must not ride the federation layer at all** — ADR [privacy records machine-local](docs/decisions/2026-08-08-privacy-records-machine-local.md). That governs *records* and *status/capability payloads*. The only carve-outs are a submitted job body carrying the conditioning an allowlisted peer is asked to render — the prompt (ADR [federated visual prompts](docs/decisions/2026-08-20-federated-visual-prompts.md)) and, under the same gate, lyrics and conditioning images (ADR [conditioning crosses to an allowlisted peer](docs/decisions/2026-08-22-federated-media-input-assets.md), which also records what stays refused: model weights and multi-step chain state) — explicit Eidoverse guest conversations, where submitted world-chat messages and live replies may cross an enabled registered peer under guest admission and the independent default-off Mind travel grant (ADR [Eidoverse guest chat](docs/decisions/2026-09-05-eidoverse-guest-chat.md)) — and an explicitly promoted Eidoverse foundation's promote envelope, which a registered outbound-enabled peer may pull, style-free and re-verified on both ends (ADR [federated Eidoverse foundations](docs/decisions/2026-09-18-federated-eidoverse-foundations.md)). No private records, secrets, automatic conversation-history exports, or record-bearing status payloads are authorized by those exceptions.
+Because both are off by default, **never treat "the password is set" as an available guarantee** — gate on it explicitly, or design for the default posture.
+
+**Federation trust boundary.** PortOS supports the user sharing their own data across machines they own/control on their private network. **Personal or private record content is not, by itself, a reason to prohibit that sync.** Brain records, including tracked-topic threads derived from assigned issues or tickets, may travel through the established Brain sync channel between those machines. Preserve the configured peer/category controls and each domain's wire contract; network reachability or an inbound peer announcement alone is not permission to publish data to other people. See ADR [federation between user-controlled machines](docs/decisions/2026-09-19-user-controlled-federation.md).
+
+**Keep record sync, configuration, and other audiences distinct.** Credentials, tokens, encryption keys, and machine-local execution/sync settings stay in their existing local stores. A documentation clarification does not add sync support to a currently local-only store: Privacy Center, message mirrors, provider configuration, and other guarded stores retain their current implementation until a scoped change supplies their sync semantics. The [Privacy Center ADR](docs/decisions/2026-08-08-privacy-records-machine-local.md) describes those implementation boundaries; it is not a blanket ban on personal records crossing to the user's own machines. Status/capability endpoints retain their bounded projections rather than becoming an alternate record-export path. Sharing with a non-self peer, guest, public world, or external service follows that surface's explicit audience and admission controls: [visual prompts](docs/decisions/2026-08-20-federated-visual-prompts.md), [media conditioning](docs/decisions/2026-08-22-federated-media-input-assets.md), [Eidoverse guest chat](docs/decisions/2026-09-05-eidoverse-guest-chat.md), and [promoted foundations](docs/decisions/2026-09-18-federated-eidoverse-foundations.md). The Sensitive Data & Privacy rules below still prohibit publishing live instance data in code, logs, issues, or PRs.
**Distribution model (across installs).** PortOS is distributed software: many independent people each run their own install, upgrading on their own schedule, and a single user commonly runs **several machines federated as sync peers**. Backward/forward compatibility across installs and versions is first-class:
diff --git a/PRD.md b/PRD.md
index f99ff8efe6..bb557cadae 100644
--- a/PRD.md
+++ b/PRD.md
@@ -202,7 +202,7 @@ Reused verbatim (condensed to objective statements) from [GOALS.md](./GOALS.md)'
| NR-1 | The system MUST NOT fire AI provider calls from server boot/init sequences (cache warm-ups, pre-generation, startup backfills), nor silently expand a single user-requested generation into an unrequested batch. | Prevents unannounced cost/latency surprises on a fresh install or newly merged feature; the one sanctioned exception is a user-configured scheduled automation (CoS job, autopilot, cron task). |
| NR-2 | The system MUST NOT run DB-backed test suites against the production `portos` database. | A 2026-06-13/14 incident wiped real data when a test suite's write guard was insufficiently strict; the guard now keys on `NODE_ENV==='test' OR VITEST` and backstops all row-mutating statements against a non-test DB under the runner. |
| NR-3 | The system MUST NOT define a backup exclude pattern without a leading `/` anchor. | An unanchored rsync-filter pattern matches at any depth and silently drops unrelated user data — a data-loss bug class, not a style preference. |
-| NR-4 | The system MUST NOT let PII or machine identity (hostnames, Tailscale node names, IPs, tokens, real names/addresses) cross the federation/peer-sync layer. | Federation payloads leave the local machine; privacy-sensitive fields must stay machine-local by design (ADR: `docs/decisions/2026-08-08-privacy-records-machine-local.md`). |
+| NR-4 | The system MUST support the user sharing their own records across machines they own/control through the configured federation channels. Personal or private content alone MUST NOT disqualify a record from that sync. Credentials and machine-local configuration remain local; sharing with other people or services requires the applicable explicit audience controls. | Federation within the user's private network is a product capability, distinct from public disclosure. Preserve existing peer/category controls, wire contracts, and currently local-only store behavior; see [user-controlled federation](docs/decisions/2026-09-19-user-controlled-federation.md). |
| NR-5 | The system MUST NOT add multi-user authentication, roles, or tenancy. | PortOS is architected single-user-per-install; adding this would add complexity with no benefit to the actual usage model. |
| NR-6 | The system MUST NOT add CORS restrictions, request-level rate limiting, or cross-actor concurrency defenses (mutex/atomic-write races) as protection against competing human actors within one install. | The trust model is one human per install on a private Tailnet — these defenses solve a problem PortOS doesn't have and add maintenance surface. |
| NR-7 | The system MUST NOT treat leakage of a free, non-monetary third-party API key (e.g. CivitAI) to an unintended host as a security finding requiring host-allowlisting or key-stripping. | Won't-fix precedent (#2200): worst case is quota abuse against a free service, borne by that service — no monetary loss or meaningful security consequence. Does not extend to paid/quota-billed providers or money-bearing/destructive-action keys, which retain full hardening requirements. |
diff --git a/docs/README.md b/docs/README.md
index 694cecd068..912965ed91 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -59,7 +59,7 @@ Comms & voice: [beeper](./features/beeper.md) · [openclaw-operator-chat](./feat
## Point-in-time records
- **[plans/](./plans/README.md)** — dated design plans (`YYYY-MM-DD-<slug>.md`), archived on approval before implementation. Historical records, not living docs. See [provider connections and harnesses](./plans/2026-09-06-provider-connections-and-harnesses.md) for stable executable routes, migration and management flows.
-- **decisions/** — ADRs (`YYYY-MM-DD-<slug>.md`), e.g. the [Postgres-as-primary-datastore decision](./decisions/2026-06-07-postgres-as-primary-datastore.md) and what may cross the federation layer ([privacy records machine-local](./decisions/2026-08-08-privacy-records-machine-local.md), [federated visual prompts](./decisions/2026-08-20-federated-visual-prompts.md), [conditioning crosses to an allowlisted peer](./decisions/2026-08-22-federated-media-input-assets.md), [AI usage metrics federate on by default](./decisions/2026-09-01-federated-usage-metrics.md), [Eidoverse guest chat](./decisions/2026-09-05-eidoverse-guest-chat.md), [numeric PortOS quality federation](./decisions/2026-09-10-portos-quality-federation.md), [federated Eidoverse foundations](./decisions/2026-09-18-federated-eidoverse-foundations.md)), why H3 [ships the draft-decode gates without an asset](./decisions/2026-08-30-h3-draft-decoder-asset.md), and why closed-set decisions run on a [local entailment model that abstains](./decisions/2026-09-18-local-jev-decision-service.md).
+- **decisions/** — ADRs (`YYYY-MM-DD-<slug>.md`), e.g. the [Postgres-as-primary-datastore decision](./decisions/2026-06-07-postgres-as-primary-datastore.md) and what may cross the federation layer ([user-controlled federation](./decisions/2026-09-19-user-controlled-federation.md), [Privacy Center storage](./decisions/2026-08-08-privacy-records-machine-local.md), [federated visual prompts](./decisions/2026-08-20-federated-visual-prompts.md), [conditioning crosses to an allowlisted peer](./decisions/2026-08-22-federated-media-input-assets.md), [AI usage metrics federate on by default](./decisions/2026-09-01-federated-usage-metrics.md), [Eidoverse guest chat](./decisions/2026-09-05-eidoverse-guest-chat.md), [numeric PortOS quality federation](./decisions/2026-09-10-portos-quality-federation.md), [federated Eidoverse foundations](./decisions/2026-09-18-federated-eidoverse-foundations.md)), why H3 [ships the draft-decode gates without an asset](./decisions/2026-08-30-h3-draft-decoder-asset.md), and why closed-set decisions run on a [local entailment model that abstains](./decisions/2026-09-18-local-jev-decision-service.md).
- **research/** — dated investigation and incident write-ups (e.g. the [mflux GPU-watchdog panic](./research/2026-06-13-mflux-training-watchdog-panic.md) and the [local LLM performance audit](./research/2026-08-22-local-llm-performance-audit.md)).
- **superpowers/** — plan/spec pairs from superpowers-driven builds: `specs/<date>-<slug>-design.md` (design) + `plans/<date>-<slug>.md` (implementation plan).
diff --git a/docs/STORAGE.md b/docs/STORAGE.md
index 753ee32005..e1edd0150a 100644
--- a/docs/STORAGE.md
+++ b/docs/STORAGE.md
@@ -36,7 +36,7 @@ PostgreSQL is a **required** install/runtime dependency (see [Backup & Restore](
- `catalog_scraps` / `catalog_ingredient_sources` — the catalog's SECOND grouping seam alongside refs (universe/series/work): a scrap is the raw pasted/imported text an ingredient was extracted from, and `catalog_ingredient_sources` links `(ingredient_id, scrap_id)` with an optional `span`. The ingredient detail page's `GET /ingredients/:id/details` joins the scrap's `title` onto each source link and batches every sibling ingredient extracted from the SAME scrap (`listSiblingIngredientsBySource`) in the one round-trip, so "what else came out of this piece?" is a rendered list, never a second fetch. `GET /ingredients?scrapId=<id>` (and `/catalog?scrap=<id>` client-side) filters the catalog to one scrap's whole extraction set — a provenance dimension orthogonal to the universe/series ref filters, so it composes with them rather than joining their mutual-exclusivity rule (#7617).
- `memories` / `memory_links` — long-term memory + pgvector similarity.
- `post_runs` / `post_attempts` — normalized MeatSpace POST test, benchmark, and training history. A run owns its planned composition and lifecycle timestamps; attempts carry queryable module/drill, difficulty/config version, correctness/score, latency/completion, hint/confidence, input mode, and scorer provenance, with the compatibility payload retained in JSONB. The complete attempt set is replaced in one transaction and stable client ids make retries idempotent. Migrated from `data/meatspace/post-sessions.json` and `post-training-log.json` by `server/scripts/migratePostRunsToDB.js`; the sources are parked as `.imported` recovery copies. **Intentionally machine-local — never federated** because cognitive-performance history is personal activity data. Adapter: `server/services/postRunStore.js` (legacy JSON only under the dev/test file escape hatch).
-- `user_action_events` — the operator-action ledger (#5594, epic #5593): one row per action the HUMAN took in PortOS (queued a CoS task, edited/deleted/approved/force-spawned one, rated an agent run, hit Run Now on a scheduled task, saved settings; phase 3 / #5596 also records event-only creative/Brain pointers, instance-feature toggles, and CoS schedule updates that skip `PUT /api/settings`). The leftover-branch idle detector is a **consumer** of this ledger (plus live git state), not a store of its own. `db-primary` because the value is in querying it — by type, actor, target, and time window — which is exactly what a JSONL append log cannot do. Columns carry the queryable axes (`type`/`actor`/`happened_at`/`target`/`success`) with structured detail in `payload` JSONB and the hook site in `source` JSONB; a unique `(type, dedupe_key)` index plus `ON CONFLICT DO NOTHING` makes a retried request idempotent. Bounded inline after each insert by BOTH a 20,000-row cap and a 90-day age cap — no cron. Credential-shaped payload keys are dropped at write time and their paths listed under `payload.redactedKeys`. **Intentionally machine-local — never federated**: it records what one operator did on one machine, and PII must not ride the federation layer (ADR [privacy records machine-local](./decisions/2026-08-08-privacy-records-machine-local.md)); guarded in `server/services/sharing/peerSync.test.js`. Deliberately NOT in `auditedTables` — auditing an audit log doubles every row, same rationale as `post_runs`. Adapter: `server/services/userActions.js` (file backend only under the dev/test escape hatch).
+- `user_action_events` — the operator-action ledger (#5594, epic #5593): one row per action the HUMAN took in PortOS (queued a CoS task, edited/deleted/approved/force-spawned one, rated an agent run, hit Run Now on a scheduled task, saved settings; phase 3 / #5596 also records event-only creative/Brain pointers, instance-feature toggles, and CoS schedule updates that skip `PUT /api/settings`). The leftover-branch idle detector is a **consumer** of this ledger (plus live git state), not a store of its own. `db-primary` because the value is in querying it — by type, actor, target, and time window — which is exactly what a JSONL append log cannot do. Columns carry the queryable axes (`type`/`actor`/`happened_at`/`target`/`success`) with structured detail in `payload` JSONB and the hook site in `source` JSONB; a unique `(type, dedupe_key)` index plus `ON CONFLICT DO NOTHING` makes a retried request idempotent. Bounded inline after each insert by BOTH a 20,000-row cap and a 90-day age cap — no cron. Credential-shaped payload keys are dropped at write time and their paths listed under `payload.redactedKeys`. **Intentionally machine-local — never federated**: it records what one operator did on one machine, and this ledger has no cross-machine merge contract. This is a store-specific implementation boundary, not a ban on syncing personal records to the user's own machines (ADR [user-controlled federation](./decisions/2026-09-19-user-controlled-federation.md)); guarded in `server/services/sharing/peerSync.test.js`. Deliberately NOT in `auditedTables` — auditing an audit log doubles every row, same rationale as `post_runs`. Adapter: `server/services/userActions.js` (file backend only under the dev/test escape hatch).
- `creative_director_projects` — Creative Director project/treatment/scene/run state, one row per project (`id`/`status`/timestamps as columns, the full record in `data` JSONB). Migrated from the monolithic `data/creative-director-projects.json` in Phase 3 (#997); CD is local-only, so the row carries no sync cursor/tombstone. Adapter: `server/services/creativeDirector/projectsDB.js`.
- `catalog_user_types` — user-defined ingredient types (the registry that defines catalog row semantics), one row per type (`id` PK, the definition in `data` JSONB, `updated_at`/`deleted_at` mirroring the federation LWW clock + tombstone). Migrated from the `data/settings.json` `catalogUserTypes` slice in Phase 4 lead-in (#1001) so type evolution versions/syncs alongside the catalog data it governs. Federates via the catalog sync `catalogTypes` envelope block (wire shape unchanged by the move). Adapter: `server/services/catalogUserTypes/db.js`, dispatched via `store.js`.
- `universes` / `universe_runs` — Universe Builder records (canon bibles, categories, composite sheets, locks, influences, and portable character production packages) one row per universe with the full sanitized record in `data` JSONB and `name`/`schema_version`/`ephemeral`/`updated_at`/`deleted`/`deleted_at` mirrored into columns; render-run history one row per run (local-only, capped 200, never federated). Character production packages carry only versioned voice direction and approved managed-image roles; local profiles, recordings, provider ids, and training artifacts are excluded from the federated wire. Migrated from `data/universes/{id}/index.json` (collectionStore) in Phase 3 Create slice 1 (#1014). **NO `sync_sequence`** — universes federate via the EXISTING `dataSync` snapshot/push model (LWW on the body's `updatedAt`), so the storage swap is invisible to peers (no schema-version bump). The store bumps an in-process mutation epoch on every write that `dataSync` folds into its checksum fingerprint, since a DB edit no longer changes the `data/universes/` directory the fingerprint used to watch. **`universe_runs` is intentionally never federated** — a regenerable render cache under a 200-row *global* cap that two producers would mutually evict, while the durable universe record already syncs (ADR [tribe + universe-runs local](./decisions/2026-06-26-tribe-and-universe-runs-local.md), #1724). Adapter: `server/services/universeBuilder/db.js`, dispatched via `store.js`. **One universe ships with the product:** `universe-reality` ("Reality"), seeded by `scripts/migrations/395-reality-universe-seed.js` — not by `data.reference/`, because universes are PG rows and `setup-data.js` only copies files. It carries the federated `factual: true` flag (#7616), which marks a world whose people and places are real so the catalog extractor reads captured text as lived record rather than invented story; `factual` is persisted ONLY when true, so every fiction universe keeps its exact on-disk shape and wire checksum, and `PORTOS_SCHEMA_VERSIONS.universes` is 12 so a `factual`-unaware peer cannot strip-then-LWW the flag away. The migration gates on the ABSENCE of any row with that id — tombstone included — so a Reality the user deleted is never resurrected by an upgrade.
diff --git a/docs/decisions/2026-08-08-privacy-records-machine-local.md b/docs/decisions/2026-08-08-privacy-records-machine-local.md
index b5db28a09e..fbbab3e1ef 100644
--- a/docs/decisions/2026-08-08-privacy-records-machine-local.md
+++ b/docs/decisions/2026-08-08-privacy-records-machine-local.md
@@ -1,7 +1,7 @@
-# ADR: Privacy Center Records Stay Machine-Local — Never Federated
+# ADR: Privacy Center Records Are Currently Machine-Local
- **Date:** 2026-08-08
-- **Status:** Accepted
+- **Status:** Amended 2026-09-19 by [user-controlled federation](./2026-09-19-user-controlled-federation.md). The current storage implementation remains local-only; the blanket prohibition on personal-data federation is superseded.
- **Related:** issue #2148 (closes the federation half; household subjects split
out), epic #2138,
[design record](../plans/2026-07-04-privacy-center-pii-vault-broker-optout.md),
@@ -40,7 +40,7 @@ as written:
optional instance password is off (the default posture), that is every host
on the tailnet.
-2. **Everything federated today is creative work.** `PEER_SUBSCRIBABLE_KINDS` is
+2. **The record-sharing registry examined for this decision covered creative work.** This is not an inventory of all federation channels: Brain also syncs personal records. At the time, `PEER_SUBSCRIBABLE_KINDS` was
`universe, series, mediaCollection, author, artist, album, track,
creativeDirectorProject, moodBoard, writersRoomWork, writersRoomFolder,
writersRoomExercise, musicVideoProject, commissionFeedback,
@@ -67,10 +67,9 @@ radius the encryption layer exists to bound.
## Decision
-**No Privacy Center record federates. All eight tables are machine-local, and
-that is an intentional product guarantee — not a missing feature.**
-
-Concretely, and permanently unless this ADR is superseded:
+**Privacy Center records currently remain machine-local.** The following
+implementation boundaries remain in place; they do not prohibit a future
+user-requested sync design between machines the user owns/controls:
- No privacy kind is added to `PEER_SUBSCRIBABLE_KINDS`.
- No privacy category is added to `dataSync`'s `CATEGORIES`.
@@ -82,41 +81,35 @@ Concretely, and permanently unless this ADR is superseded:
A guard test (`server/services/sharing/privacyNeverFederates.test.js`) enforces
the first two so the boundary fails loudly rather than eroding.
-### Scope of the rule this ADR states
-
-`AGENTS.md` summarizes this decision as the flat rule that **PII must not ride
-the federation layer at all**, and for Privacy Center records that is exact and
-unconditional. The rule governs *records* — what one instance replicates to
-another, and what a status or capability payload may disclose. It is not a rule
-that no user-authored text may ever be addressed to a peer: its one scoped
-carve-out, submitted image/video job bodies, is decided in ADR
-[federated visual prompts](./2026-08-20-federated-visual-prompts.md) (#4682).
+### Scope after the 2026-09-19 clarification
-### Covered paths beyond the Privacy Center tables
+The [user-controlled federation ADR](./2026-09-19-user-controlled-federation.md)
+supersedes the interpretation that all personal or private data must remain on
+one machine. This decision documents the Privacy Center's current local-only
+implementation, not a universal restriction on the user's own network.
+Brain's established sync of personal records, including threads derived from
+private trackers, is permitted.
-The rule was written for the nine `privacy_*` tables, but it governs a *class* of
-record — private data about the operator, held on one machine — not a table
-prefix. Later work has added derived records of the same class, each with its own
-guard test modelled on `privacyNeverFederates.test.js`:
+Other stores also currently have explicit local-only implementations:
| Path | What it holds | Guard |
|---|---|---|
-| the nine `privacy_*` tables | the PII vault, orgs, holdings, broker cases | `privacyNeverFederates.test.js` |
+| `privacy_*` tables | the PII vault, orgs, holdings, broker cases | `privacyNeverFederates.test.js` |
| `beeper_*` tables | mirrored conversation bodies and attachment metadata | `beeperNeverFederates.test.js` |
| `ai_connections` / `ai_*_bindings` | this machine's endpoints and credential material | `providerGraphNeverFederates.test.js` |
-| **`data/jev/`** (#7689) | **trained project heads, their training corpora, and cached frozen-encoder outputs** | `jevNeverFederates.test.js` |
+| `data/jev/` (#7689) | trained project heads, training corpora, cached encoder outputs | `jevNeverFederates.test.js` |
+
+Those guards describe current support and remain unchanged. In particular,
+`data/jev/` can contain private repository history; model weights are not an
+anonymization step. That matters when choosing an audience, but it is not a
+reason to reject a future explicit sync design for the user's own machines.
+Credentials remain machine-local, and adding support to any of these stores
+requires a scoped implementation rather than simply deleting its guard.
-`data/jev/` earns its place for a reason worth stating: nothing in it *looks* like
-PII. A corpus is this install's merged pull requests, closed-unmerged ones and
-issues closed as not planned, rendered as premises; a trained head is a few
-thousand floats fit on exactly that. Both are **derived records of private
-repository history and the operator's own judgement calls about what was worth
-shipping** — a corpus quotes it directly, and a head encodes it. Pooling corpora
-across peers to train a better shared head is the obvious feature request and is
-refused for the same reason the vault is: it would move that history across the
-federation layer, and a model's weights are not an anonymization step.
+### Historical rationale: HTTPS + the instance password
-### Why not "federate, but gate it on HTTPS + the instance password"
+This section records the original tradeoff, not additional prerequisites on
+user-controlled federation after the 2026-09-19 clarification.
This was seriously considered, and the machinery for it already exists: the
optional instance password (`server/services/auth.js` + `server/services/authGate.js`)
@@ -155,14 +148,15 @@ benefits **every** federated kind. That is tracked separately (see Consequences)
and is explicitly *not* a precondition for revisiting this decision — it is a
fix for the creative-data federation that already exists.
-## Consequences
+## Consequences of the original implementation
- The Privacy Center is single-machine. The UI and docs should state this as a
- guarantee, so users understand the vault's contents have never traversed a
- network from PortOS.
+ current sync limitation; this is not a claim that user-directed backups or
+ other explicit transfers can never carry those contents.
- A user wanting the vault on a second machine restores from backup and copies
`PRIVACY_VAULT_KEY` by hand. This is documented, not automated — a manual key
- copy is a moment of deliberate consent, which continuous replication is not.
+ copy is deliberate. User-configured continuous replication can also express
+ consent; it is simply not implemented for this store.
- Household subjects (the other half of #2148) is unaffected: it is a
same-machine, multi-subject feature with no federation dependency, and is
split into **#3658**.
@@ -177,9 +171,10 @@ fix for the creative-data federation that already exists.
## Revisiting
-Superseding this ADR requires more than "the transport got safer." It requires a
-concrete user need that a backup restore genuinely cannot serve, plus, at
-minimum: per-peer identity and category authorization on the pull path, an
-explicit per-category opt-in that defaults off, a hard refusal to transmit when
-the far end reports auth disabled, and a resolution for `masked_value` (it must
-not travel in plaintext). Absent all of those, the answer stays no.
+A future Privacy Center sync design should address its actual storage and
+workflow constraints: encryption-key ownership, masks and plaintext projections,
+record identity and deletion, compatibility, and avoiding duplicate broker
+submissions. The user's explicit selection of their own machines can authorize
+continuous replication. The [2026-09-19 decision](./2026-09-19-user-controlled-federation.md)
+removes the earlier blanket veto and its requirement to prove a backup could
+not serve the user's need; it does not change any runtime guard or transport.
diff --git a/docs/decisions/2026-08-20-federated-visual-prompts.md b/docs/decisions/2026-08-20-federated-visual-prompts.md
index 4391bdaeb1..9370f32086 100644
--- a/docs/decisions/2026-08-20-federated-visual-prompts.md
+++ b/docs/decisions/2026-08-20-federated-visual-prompts.md
@@ -11,9 +11,10 @@
## Context
-`AGENTS.md` states flatly that **PII must not ride the federation layer at all**,
-pointing at the privacy-records ADR. Read literally against the federated media
-wire, that rule looks violated: a federated image or video job carries its
+At the time of this decision, `AGENTS.md` imposed a blanket personal-data
+federation ban. That wording is superseded by the
+[user-controlled federation ADR](./2026-09-19-user-controlled-federation.md).
+Read literally against the federated media wire, the old rule looked violated: a federated image or video job carries its
`prompt` to the peer as submitted, and a Creative Director / Creative Commission
prompt is generated from project records — it can embed universe canon, character
names, and other personal app data.
@@ -33,8 +34,8 @@ readable together.
**A submitted job body may carry the prompt the user (or their project) asked to
render. A status or capability payload may never carry prompt or record content.
-Those are two different payload classes, and the "no PII on federation" rule
-governs the second.**
+Those are two different payload classes; this projection boundary does not
+prohibit personal records on their established sync channels.**
Concretely:
diff --git a/docs/decisions/2026-09-01-federated-usage-metrics.md b/docs/decisions/2026-09-01-federated-usage-metrics.md
index b22e5b8b66..f90afc7334 100644
--- a/docs/decisions/2026-09-01-federated-usage-metrics.md
+++ b/docs/decisions/2026-09-01-federated-usage-metrics.md
@@ -90,12 +90,12 @@ names the default-on set so the rest of the system can reason about it:
- The switches that still stop everything: turning the **category** off for a
peer, or disabling the **peer** (`enabled: false`).
-## Why this does not contradict the PII rule
+## The usage projection boundary
-`AGENTS.md` states that PII must not ride the federation layer, decided in the
-[privacy-records ADR](./2026-08-08-privacy-records-machine-local.md). That rule
-governs *records* — the user's identity, holdings, relationships, and personal
-history. A usage digest is none of those. It carries:
+The [user-controlled federation ADR](./2026-09-19-user-controlled-federation.md)
+permits personal records on their established sync channels. This usage channel
+keeps a narrower aggregate projection because its purpose is fleet accounting.
+It carries:
- provider ids and model ids (`anthropic`, `claude-opus-5`)
- session / message / token / cache counts and their day+month buckets
diff --git a/docs/decisions/2026-09-19-user-controlled-federation.md b/docs/decisions/2026-09-19-user-controlled-federation.md
new file mode 100644
index 0000000000..294c402932
--- /dev/null
+++ b/docs/decisions/2026-09-19-user-controlled-federation.md
@@ -0,0 +1,66 @@
+# ADR: Federation Between User-Controlled Machines
+
+- **Date:** 2026-09-19
+- **Status:** Accepted
+- **Related:** #7664; [Privacy Center storage](./2026-08-08-privacy-records-machine-local.md); [storage contracts](../STORAGE.md)
+- **Amends:** the blanket personal-data prohibition in `AGENTS.md`, PRD NR-4, and the scope interpretation of the Privacy Center ADR.
+
+## Context
+
+PortOS federation lets one user carry their records across machines they
+own/control on their private network. Brain already replicates personal ideas,
+projects, journals, and threads through its delta log and reconciliation
+snapshots. A requirement that all personal records remain on one machine
+contradicts that capability.
+
+The earlier Privacy Center decision was generalized into a prohibition on all
+PII and private records crossing any federation channel. That wording blocked
+assigned-issue ingestion into Brain threads in #7664 even though the requested
+destination was the user's own machines. The owner's clarification establishes
+the audience, rather than the mere presence of personal content, as the relevant
+boundary.
+
+## Decision
+
+1. **The user may sync their own records between machines they own/control.**
+ Personal names, private project titles, and tracker references do not make
+ such a record ineligible for an established record-sync channel. Brain
+ threads use the same channel as other Brain entities, including its delta,
+ snapshot, tombstone, and compatibility behavior.
+2. **Use the configured channel and its controls.** Preserve peer enablement,
+ category selection, direction controls, and wire contracts where implemented.
+ This decision does not claim that every transport cryptographically proves
+ common ownership. The user configures their private network and peers;
+ an inbound announcement or reachable host does not establish permission to
+ send records to another person. Optional authentication remains optional;
+ this clarification adds no password or HTTPS prerequisite to Brain sync.
+3. **Credentials and machine-local configuration stay local.** Forge auth,
+ JIRA credentials, encryption keys, execution endpoints, and source-selection
+ or scheduling settings are not thread data. Assigned-item ingestion must
+ keep those settings local while allowing the resulting thread record to
+ sync. Enabling ingestion is an explicit user choice; it makes no AI calls.
+4. **Other audiences retain their own contracts.** Non-self peers, guest chat,
+ public worlds, and external services are not implicitly authorized by this
+ decision. Their admission and sharing controls still apply. Status and
+ capability payloads keep their existing bounded shapes; they are not record
+ export endpoints. Published code, tests, logs, issues, and PRs must still
+ exclude observations of live private data.
+5. **Permission to sync is distinct from implemented support.** This decision
+ adds no record kind, category, endpoint, migration, or background job. Stores
+ that are currently local-only remain so. A future change to one must define
+ identity, merge/deletion behavior, compatibility, and configuration ownership
+ and update its guards accordingly. Personal content alone is not a veto;
+ a documentation edit alone is not an implementation of that contract.
+
+## Application to Brain threads
+
+Phases 1–3 of #7664 already provide thread storage, refs, the API, UI, search,
+and attach actions. The remaining ingestion phase may create records containing
+tracker titles, cached ref labels, and source identity through that existing
+Brain store. It must preserve human edits and tombstones, distinguish a failed
+tracker query from an empty result, and never infer that an issue is closed
+merely because it disappeared from an assigned/open query.
+
+This documentation change resolves the policy conflict. It does not implement
+Phase 4's ingestion, scheduler reconciliation, or settings UI, and does not
+change the runtime behavior of Brain or any currently local-only store.