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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
docs: record the ADR authorizing the Eidoverse promote envelope to federate (#7635)
[._.]/ Adam Eivy4ff8aaa3f041
diff --git a/AGENTS.md b/AGENTS.mdindex a5610071f8..51c48567d9 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -38,7 +38,7 @@ 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`).- **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) — and 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)). 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. **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.**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/docs/README.md b/docs/README.mdindex 8ceb0acc2e..5cbacd57ab 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), [numeric PortOS quality federation](./decisions/2026-09-10-portos-quality-federation.md)), and why H3 [ships the draft-decode gates without an asset](./decisions/2026-08-30-h3-draft-decoder-asset.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 ([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)), and why H3 [ships the draft-decode gates without an asset](./decisions/2026-08-30-h3-draft-decoder-asset.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/decisions/2026-09-18-federated-eidoverse-foundations.md b/docs/decisions/2026-09-18-federated-eidoverse-foundations.mdnew file mode 100644index 0000000000..51b7b37f2e--- /dev/null+++ b/docs/decisions/2026-09-18-federated-eidoverse-foundations.md@@ -0,0 +1,131 @@+# ADR: The Eidoverse foundation promote envelope may cross registered peers++- **Date:** 2026-09-18+- **Status:** Accepted+- **Related:** [machine-local privacy records](./2026-08-08-privacy-records-machine-local.md), [Eidoverse guest chat](./2026-09-05-eidoverse-guest-chat.md), [Eidoverse](../features/eidoverse.md), #7455, epic #7453, provenance edges #7461++## Context++#7455 shipped a receiver-pull transport at `GET /api/peer-sync/eidoverse-foundations`:+a full-sync peer pulls the promote candidates this install has promoted to its+shared `baseline` layer and inherits the ones that pass the accept-side gate.+Four places in the code — `server/lib/schemaVersions.js`,+`server/routes/peerSync.js`, `server/lib/eidoverseFoundations.js`, and+`server/services/eidoverseFoundationLedger.js` — cited "the machine-local+privacy ADR" as the authorization for this crossing. That ADR+(`2026-08-08-privacy-records-machine-local.md`) never mentions foundations; its+own "Scope of the rule this ADR states" section names exactly one carve-out+(federated visual prompts), and root `AGENTS.md` names three, none of them+this one. The transport shipped correct and carefully gated, but the decision+to let it cross was never recorded — this ADR is that record, written after+the fact from the gate the code already enforces.++## Decision++**An explicitly promoted Eidoverse foundation's promote envelope may cross to+an enabled, registered, outbound-enabled peer.** This is a fourth carve-out+alongside submitted image/video job bodies, lyrics/conditioning images, and+Eidoverse guest chat — each independently gated, none implying the others.++### What crosses++Only the promote envelope built by `packageFoundationCandidate()`+(`server/lib/eidoverseFoundations.js`) and validated against+`eidoverseFoundationCandidateSchema`:++- `kind`, `title`, `summary`, `contributionId`, `body`, `disclosure` — the+ promotable substance, capped and schema-validated.+- `candidateVersion`, `foundationId`, `fingerprint` — the content-addressed+ wire identity.+- `provenance` — an **opaque PortOS federation instance id**+ (`originInstanceId`, never a hostname or tailnet name), a coarse+ `authorKind` (`mind` | `cos` | `user`, never a display name), `createdAt`,+ `packagedAt`, `portosVersion`.+- `assay` — the agent-free resilience-assay verdict this envelope's body+ passed before it could be packaged.++An envelope crosses only when the foundation is BOTH promoted to `baseline`+**and** locally authored: `verifyFoundationCandidate()` runs the full gate —+envelope schema, fingerprint match, assay-evidence check, and+`federationSafetyFindings()` — on both the sending and the receiving side, and+a self-referential pull (an install re-offered its own inherited copy back to+its origin) is refused.++### What never crosses++- **`style`** — palette, motif, asset paths, placement, district, display+ aliases. `packageFoundationCandidate()` drops it outright at construction;+ `eidoverseFoundationCandidateSchema` has no field for it. A style-shaped key+ found inside `body` refuses the package rather than being silently stripped.+- **The local ledger** — the full `eidoverseFoundationRecordSchema` record,+ including `layer`, `promotedAt`, `inheritance`, and the stored `candidate`+ verbatim copy, stays in `data/eidoverseFoundations.json` and is never served.+- **Assay prose beyond the verdict shape** — only the fixed+ `foundationAssayEvidenceSchema` fields travel (`harness`, `contributionId`,+ `pass`, `disturbances`, `ranAt`, bounded `reasons`); no free-form assay+ transcript or resilience-harness log.+- **Disclosure notes beyond the envelope's own caps** — `disclosure` travels+ as declared on `foundationDisclosureSchema`, not as an open-ended text field.+- **Any record-bearing status/capability payload.** As with every other+ federation carve-out, this authorizes exactly the promote envelope in the+ pull response body — never a peer/status/capability response naming a+ foundation, its author, or its ledger state.+- **Machine identity, PII, or credential-shaped values.** `federationSafetyFindings()`+ walks the canonicalized envelope (minus its own fingerprint) and **refuses**+ the package outright — it does not redact — naming the offending JSON path.+ A redacted promote would leave the author believing they published what+ they wrote, so packaging fails closed instead.++### The gate++1. **Promotion is explicit.** `vernacular` (local-only) is the default layer+ for everything authored on an install; only `promoteEidoverseFoundation()`+ moves a foundation to `baseline`, and every promote re-runs ownership,+ the agent-free resilience assay, the style-leak scan, federation safety,+ and the content-addressed fingerprint from scratch — nothing rests on a+ stale stored verdict.+2. **`verifyFoundationCandidate()` runs on both ends** — envelope schema,+ fingerprint-matches-body, assay-evidence-still-valid, and+ `federationSafetyFindings()` — before a sender offers a candidate and+ again before a receiver stores an inherited copy.+3. **`federationSafetyFindings()` refuses rather than redacts.** Any finding+ fails the whole package; nothing partial ships.+4. **Registered, outbound-enabled peers only, and always enforced.** The route+ authorizes with `alwaysEnforce: true` rather than the warn-first+ authorization ramp older pull routes use — there is no existing sync+ history to protect on a brand-new endpoint, so only a peer this install has+ explicitly registered and enabled outbound sync for is ever served an+ offering.++### Direction and version contract++- **Pull-only.** A full-sync peer fetches `GET /api/peer-sync/eidoverse-foundations`;+ nothing pushes a foundation unsolicited.+- **`EIDOVERSE_FOUNDATION_CANDIDATE_VERSION`** (`server/lib/eidoverseFoundations.js`)+ pins the envelope's own shape, independent of the transport's schema+ category.+- **`PORTOS_SCHEMA_VERSIONS.eidoverseFoundations`** (`server/lib/schemaVersions.js`)+ gates the transport. It rides `NON_RECORD_SCHEMA_CATEGORIES` like+ `mediaLibrary`/`cosHistory`/`cosTasks` (receiver-pull, no push to gate), and+ a receiver **gently skips** a sender ahead of its own version rather than+ 409-ing, because the envelope's vocabulary is still being extended — a v1+ receiver applying a v2 envelope would store a foundation it cannot interpret+ with no re-fetch path to later correct it.++## Compatibility++An install with the Eidoverse feature disabled offers and accepts nothing —+`buildEidoverseFoundationOffering()` returns an empty candidate list rather+than erroring. An older peer that predates this transport entirely simply+never calls the route; there is no negative interaction to guard.++## Revisiting++If a future slice widens the envelope (a richer provenance graph, #7461's+edges, author display names, or a freeform note field), it needs its own gate+change AND its own bump to `EIDOVERSE_FOUNDATION_CANDIDATE_VERSION` — this+ADR authorizes the fields enumerated above, not "whatever the envelope grows+into." A guard test+(`server/services/sharing/eidoverseFoundationsNeverFederatesStyle.test.js`)+fails loudly if `style`, the local ledger's local-only keys, or unbounded+assay/disclosure prose ever reaches a built offering.diff --git a/docs/features/eidoverse.md b/docs/features/eidoverse.mdindex d6eb4f9a46..ff1e0e8b6c 100644--- a/docs/features/eidoverse.md+++ b/docs/features/eidoverse.md@@ -842,6 +842,8 @@ relay of another install's work.### The peer pull/inherit transport (#7455)+Authorized to cross the federation layer by the+[federated Eidoverse foundations ADR](../decisions/2026-09-18-federated-eidoverse-foundations.md).`server/services/sharing/peerEidoverseFoundationSync.js` is the wire betweenthe two gates above. It owns no policy of its own — which foundations aninstall offers is `listPromotedFoundationCandidates()` in the ledger, anddiff --git a/server/lib/eidoverseFoundations.js b/server/lib/eidoverseFoundations.jsindex e49a782032..0d2476505b 100644--- a/server/lib/eidoverseFoundations.js+++ b/server/lib/eidoverseFoundations.js@@ -42,15 +42,16 @@* place in the tree that runs untrusted controller code. The ledger runs* the assay fresh on every package attempt, so evidence is never older* than the body it vouches for.- * 2. **Federation safety.** A promote payload is the one Eidoverse artifact- * authorized to cross the federation layer, so it fails closed:- * `lib/federationSafety.js` refuses the package outright when the- * candidate carries machine identity, PII, credential-shaped values or- * credential-NAMED fields, naming the offending JSON path. Nothing is- * redacted and shipped — a redacted promote would leave the author- * believing they published what they wrote. See the "PII must not ride- * the federation layer" rule in root `AGENTS.md` and the machine-local- * privacy ADR.+ * 2. **Federation safety.** A promote payload is the one durable Eidoverse+ * artifact authorized to cross the federation layer, alongside live guest+ * conversation, so it fails closed: `lib/federationSafety.js` refuses the+ * package outright when the candidate carries machine identity, PII,+ * credential-shaped values or credential-NAMED fields, naming the+ * offending JSON path. Nothing is redacted and shipped — a redacted+ * promote would leave the author believing they published what they+ * wrote. See the "PII must not ride the federation layer" rule in root+ * `AGENTS.md` and the federated Eidoverse foundations ADR+ * (docs/decisions/2026-09-18-federated-eidoverse-foundations.md).** `fingerprint` is content-addressed (sha256 over the canonicalized envelope* minus the fingerprint itself), so a peer can verify a candidate it was handeddiff --git a/server/lib/schemaVersions.js b/server/lib/schemaVersions.jsindex a863d5d721..e89da3e73f 100644--- a/server/lib/schemaVersions.js+++ b/server/lib/schemaVersions.js@@ -689,8 +689,9 @@ export const PORTOS_SCHEMA_VERSIONS = Object.freeze({// evidence. Older peers may clip that evidence or substitute a smaller model.cosTasks: 9,// v1 = the Eidoverse foundation promote-candidate envelope (#7455, epic- // #7453) — the ONE Eidoverse artifact the machine-local privacy ADR- // authorizes to cross the federation layer. A sender advertises its promoted+ // #7453) — authorized to cross the federation layer by the federated+ // Eidoverse foundations ADR (docs/decisions/2026-09-18-federated-eidoverse-foundations.md).+ // A sender advertises its promoted// `baseline` foundations at GET /api/peer-sync/eidoverse-foundations; a// receiver pulls, re-runs the full accept-side gate per envelope// (`verifyFoundationCandidate`), and stores each acceptance under adiff --git a/server/routes/peerSync.js b/server/routes/peerSync.jsindex 503c7b17b0..ff78969150 100644--- a/server/routes/peerSync.js+++ b/server/routes/peerSync.js@@ -211,8 +211,9 @@ router.get('/cos-tasks', asyncHandler(async (req, res) => {// instance has PROMOTED (#7455) so a full-sync peer can pull and inherit them.//// Returns `{ schemaVersion, listHash, candidates: [<promote envelope>, …] }`.-// The envelope is the one Eidoverse artifact the machine-local privacy ADR-// authorizes to cross, and it has no `style` layer by construction, so an+// The envelope is authorized to cross by the federated Eidoverse foundations+// ADR (docs/decisions/2026-09-18-federated-eidoverse-foundations.md), and it+// has no `style` layer by construction, so an// inheriting peer gets the substance and keeps its own cosmetics. The receiver// re-runs the whole accept-side gate on every envelope before it stores one.//diff --git a/server/services/eidoverseFoundationLedger.js b/server/services/eidoverseFoundationLedger.jsindex 635c32b986..b241e85d06 100644--- a/server/services/eidoverseFoundationLedger.js+++ b/server/services/eidoverseFoundationLedger.js@@ -284,7 +284,8 @@ export async function packageEidoverseFoundationCandidate(id, { now = new Date()* `listPromotedFoundationCandidates()` reads it for the peer-facing offering* at `GET /api/peer-sync/eidoverse-foundations`. The promoted record keeps its* `style` locally — only the candidate envelope, which has no style layer at- * all, is ever authorized to cross.+ * all, is authorized to cross, per the federated Eidoverse foundations ADR+ * (docs/decisions/2026-09-18-federated-eidoverse-foundations.md).** @returns {Promise<{ outcome: 'promoted'|'refused'|'unknown-foundation', promoted: boolean, foundation: object|null, candidate: object|null, assay: object|null, reasons: string[], findings: Array }>}*/diff --git a/server/services/sharing/eidoverseFoundationsNeverFederatesStyle.test.js b/server/services/sharing/eidoverseFoundationsNeverFederatesStyle.test.jsnew file mode 100644index 0000000000..e2599fb277--- /dev/null+++ b/server/services/sharing/eidoverseFoundationsNeverFederatesStyle.test.js@@ -0,0 +1,118 @@+/**+ * Guard: the Eidoverse foundation promote envelope must NEVER carry `style`,+ * the local ledger's local-only keys, or unbounded assay/disclosure prose.+ *+ * This is the positive-authorization mirror of `privacyNeverFederates.test.js`,+ * `beeperNeverFederates.test.js` and `providerGraphNeverFederates.test.js` — ADR+ * `docs/decisions/2026-09-18-federated-eidoverse-foundations.md` authorizes+ * exactly the promote envelope, enumerated field by field, to cross the+ * federation layer. If you are here because this test failed, the answer is+ * almost certainly "don't widen the envelope without a matching ADR change and+ * `EIDOVERSE_FOUNDATION_CANDIDATE_VERSION` bump" — read that ADR's+ * "Revisiting" section first.+ */+import { describe, expect, it } from 'vitest';+import {+ DEFAULT_EIDOVERSE_FOUNDATION_LAYER,+ eidoverseFoundationCandidateSchema,+ packageFoundationCandidate,+ styleLeakFindings,+} from '../../lib/eidoverseFoundations.js';++const DISTURBANCES = ['reconnect', 'restart-world-host', 'missing-optional-deps'];+const NOW = '2026-03-04T05:06:07.000Z';++const passingAssay = (contributionId = 'lantern-relay-demo') => ({+ harness: 'eidoverse-resilience-assay',+ contributionId,+ pass: true,+ disturbances: [...DISTURBANCES],+ ranAt: NOW,+ reasons: [],+});++// Everything a real local ledger record carries — including the fields the+// ADR says stay machine-local — so the assertions below prove those fields+// were DROPPED by packaging rather than merely absent from this fixture.+const makeRecord = (overrides = {}) => ({+ id: 'tide-lantern',+ layer: DEFAULT_EIDOVERSE_FOUNDATION_LAYER,+ kind: 'controller',+ title: 'Tide Lantern',+ summary: 'A lantern that keeps pulsing between mind wakes.',+ contributionId: 'lantern-relay-demo',+ body: { schema: { pulses: 'integer' }, affordance: { inspect: 'reads the pulse count' } },+ style: { palette: ['#102030'], motif: 'weathered brass', districtId: 'commons', accent: '#ffaa00' },+ provenance: { originInstanceId: 'instance-example-0001', authorKind: 'mind', createdAt: NOW },+ disclosure: { requires: [], effects: ['emits a pulse each tick'], license: null, notes: null },+ assay: passingAssay(),+ candidate: null,+ promotedAt: null,+ inheritance: null,+ updatedAt: NOW,+ ...overrides,+});++const packageRecord = (overrides) => packageFoundationCandidate({+ record: makeRecord(overrides),+ requiredDisturbances: DISTURBANCES,+ portosVersion: '9.9.9',+ now: NOW,+});++// Ledger-only keys that must never appear on a built envelope. `style` is the+// headline case the issue names; the rest are the local ledger's own+// bookkeeping (ownership layer, promotion timestamp, provenance edge, and the+// stored-verbatim candidate the record keeps for itself).+const LEDGER_ONLY_KEYS = ['style', 'layer', 'promotedAt', 'inheritance', 'candidate'];++describe('eidoverse foundation promote envelope never carries style or ledger-only fields (ADR 2026-09-18, #7635)', () => {+ it('drops style and every other ledger-only key when packaging a candidate', () => {+ const { outcome, candidate } = packageRecord();+ expect(outcome).toBe('packaged');+ for (const key of LEDGER_ONLY_KEYS) {+ expect(Object.prototype.hasOwnProperty.call(candidate, key)).toBe(false);+ }+ });++ it('declares no `style` field on the wire schema itself', () => {+ expect(Object.keys(eidoverseFoundationCandidateSchema.shape)).not.toContain('style');+ for (const key of LEDGER_ONLY_KEYS) {+ expect(Object.keys(eidoverseFoundationCandidateSchema.shape)).not.toContain(key);+ }+ });++ it('refuses (does not silently strip) a style-shaped key smuggled inside body', () => {+ const findings = styleLeakFindings({ palette: ['#102030'] });+ expect(findings).toEqual([+ expect.objectContaining({ code: 'style-in-body' }),+ ]);+ const { outcome, findings: packageFindings } = packageRecord({+ body: { schema: { pulses: 'integer' }, palette: ['#102030'] },+ });+ expect(outcome).toBe('refused');+ expect(packageFindings.some((f) => f.code === 'style-in-body')).toBe(true);+ });++ it('carries only an opaque instance id and coarse authorKind — never a display name', () => {+ const { candidate } = packageRecord();+ expect(Object.keys(candidate.provenance).sort()).toEqual(+ ['authorKind', 'createdAt', 'originInstanceId', 'packagedAt', 'portosVersion'].sort(),+ );+ expect(['mind', 'cos', 'user']).toContain(candidate.provenance.authorKind);+ expect(candidate.provenance.originInstanceId).toMatch(/^[A-Za-z0-9_-]+$/);+ });++ it('caps assay evidence to the fixed verdict shape — no free-form transcript', () => {+ const { candidate } = packageRecord();+ expect(Object.keys(candidate.assay).sort()).toEqual(+ ['contributionId', 'disturbances', 'harness', 'pass', 'ranAt', 'reasons'].sort(),+ );+ });++ it('carries no property outside the envelope schema on a packaged candidate', () => {+ const { candidate } = packageRecord();+ const parsed = eidoverseFoundationCandidateSchema.safeParse(candidate);+ expect(parsed.success).toBe(true);+ });+});diff --git a/server/services/sharing/peerEidoverseFoundationSync.js b/server/services/sharing/peerEidoverseFoundationSync.jsindex a185e0e24d..715127a217 100644--- a/server/services/sharing/peerEidoverseFoundationSync.js+++ b/server/services/sharing/peerEidoverseFoundationSync.js@@ -28,8 +28,9 @@** **What crosses.** Only the promote envelope, which has no `style` layer by* construction: an inheriting peer gets the substance and keeps its own- * cosmetics. The machine-local privacy ADR authorizes exactly this one- * Eidoverse artifact to cross, and the federation-safety scan REFUSES a+ * cosmetics. The federated Eidoverse foundations ADR+ * (docs/decisions/2026-09-18-federated-eidoverse-foundations.md) authorizes+ * exactly this envelope to cross, and the federation-safety scan REFUSES a* payload carrying machine identity, PII or credentials rather than redacting* it — on both sides, because a peer's payload is untrusted input and this* install's own ledger is a file a human can edit.