Repository navigation
Description
A plan only: no code changes here. Agreed order for /integrationen/backup and /integrationen/bridge: mockups → refactoring without visible change → the new UI on the clean building blocks. This issue is step two's plan, from a read-only review of main at cc89104 (v0.67.0). The design issues for the two pages did not exist yet when this was written; section 5 says which building block is meant for which part of a page, to be aligned once they do.
It continues #844 for the bridge (its B6 and C1 are still open and are taken up here as BR2 and BR6).
Correctness findings have their own issues: #1067 #1068 #1069 #1070 #1071 #1072 #1073 (backup: the first three; hosted bridge: the other four).
1. Three layers
| Layer | What it is | Rule |
|---|---|---|
| (a) headless | logic and models | no Svelte, no runes, no DOM, no i18n, no $lib/session, no direct browser storage; fetch, signer, clock, pause check, storage and endpoints come in as arguments; results are plain data, errors carry a machine-readable code |
| (b) adapter | *.svelte.js |
gathers the dependencies from the session, holds $state, maps codes to i18n keys, owns timers and localStorage conveniences |
| (c) presentational | *.svelte |
props in, events out; no fetch, no session import |
Layer (a) lives in app/src/lib/backup/core/ and app/src/lib/bridge-connection/core/ first, guarded by an ESLint no-restricted-imports rule for those folders (no svelte, $app/*, $lib/session*, $lib/i18n*), and tested with node-run unit tests. Whether a folder later becomes a package is section 6; nothing is built for that now.
2. Map: Backup page
routes/integrationen/[id]/+page.svelte mounts BackupCard and MoveCard.
| Where | Owns | Talks to |
|---|---|---|
backup/BackupCard.svelte (1,487 lines: 694 script, 793 markup) |
some 25 $state (status, owner, key, address, granted, credits, backups, chain, remote, holders, rekeeping, confirming, forgetting, advanced, restoreOpen …), some 20 $derived (chains, chainUsable, backupStatus, keptBytes, canBackUp, canForget …), 4 $effect |
Aleph directly: isGranted, creditsOf, storeAnswer (once per history row), findBackups, keepWithKey, forgetChain, whoHolds; the bridge: backupStatus, alephKeep, alephPut |
backup/run.svelte.js |
backupRun (the run, app-wide) |
upload and keep through the uploader; storeAnswer; writes history and chain; publishes the vault index |
backup/auto.svelte.js |
backupDue (unsaved collections, auto on/off, next run, why blocked); two module timers |
builds its own uploader context (a second copy of the card's), isGranted, creditsOf, settlePending |
backup/credits-watch.js |
writes app.backupCredits for the header |
creditsOf |
backup/restore-flow.svelte.js |
restoreRun |
gateways, peers, findBackups |
backup/BackupBadge.svelte (header) |
starts watchBackupDue, calls afterRun |
– |
move/MoveCard.svelte (416 lines) |
15 $state of the move flow |
move/book-move.js (already nearly headless) |
The same thing derived more than once
| What | Where | Difference |
|---|---|---|
| bytes Aleph keeps → credits a day → days left | card keptBytes (BackupCard.svelte:326), header credits-watch.js:30-32, automatic auto.svelte.js:233 |
the card counts processed + pending, each CID once, with what Aleph lists from other devices; the header counts everything not rejected/forgotten (so also unknown), with duplicates; automatic counts processed only. Three different numbers of days for the same books |
| "ask below 30 days" | BackupCard.svelte:329, auto.svelte.js:41, credits-watch.js:12 |
three constants |
| "Aleph refused the last one" | lastRefused = newest row of all (BackupCard.svelte:365); refusedIncrement = newest increment of the current chain (chain.js:315) |
the status line and the automatic backup can disagree |
| "can the chain go on" | chainUsable (BackupCard.svelte:149) and again in auto.svelte.js:219-226 |
copied condition |
| "ask Aleph what became of the STOREs" | card settle() (:542, every row), recheck.js settlePending (pending rows), run.svelte.js settleChain (pending of the chain) |
three loops, three patch rules |
| the uploader and "the bridge signs" | BackupCard.svelte:631-650, auto.svelte.js:163-193 |
copied |
| "Aleph keeps it or has not decided" | held (BackupCard.svelte:161), kept (restore-flow.svelte.js:83), inline in lastKept, credits-watch.js, auto.svelte.js |
five spellings |
| an Aleph account's credits | backup/keeper.js:182 and integrations/hosted-vm.js:339 |
two clients for the same question |
Text that depends on logic in the template: the status line's priority order (backupStatus, :372-399, seven branches); a row's wording and whether the retry button shows (:813-835, on status and errorCode === 4); the chain header (:864-892, nested ternaries over held/gone/bytes/elsewhere and four data-testids); the grant text (:1365-1369); the "made" line (:1108).
3. Map: Bridge page
The route mounts BridgeStatus, BridgePanel, HostedSettingsCard, HostedBridgeCard, NearBridgeCard.
| Where | Owns | Talks to |
|---|---|---|
integrations/HostedBridgeCard.svelte (1,162 lines) |
32 $state, 14 $derived, 13 $effect: the VM and kept records, Aleph's answer, credits and payer, own image, node list, running instances, progress and cancel |
everything through bridge-connection/hosted-aleph.js |
bridge-connection/hosted-aleph.js (1,259 lines) |
no state, but a module-level session context (bindSession) |
Aleph API, node list, the node, the VM, relay attestation, Le Space Credits – orchestrating integrations/hosted-vm.js, hosted-bridge.js, hosted-image.js, hosted-start.js, hosted-unlock.js |
HostedSettingsCard.svelte (451) |
the kept credentials, five form objects | kept-settings.js, hosted-settings.js |
HostedAutoStop.svelte (184) + HostedAutoStopWarning.svelte (in the layout) |
the auto-stop form; the warning's clock | hosted-auto-stop.js, the VM's status |
NearBridgeCard.svelte (182) |
status, busy | hosted-near.js, near-bridge.js |
BridgePanel.svelte (222), BridgeStatus.svelte (89) |
pairing code/invitation; reads the singletons bridge and hosted |
the bridge on a computer |
Derived more than once: "the VM runs" (vm && !vm.stoppedAt) at ten places in the card, bridge-status.js, the warning and hosted-aleph.js; "unlocked" (kept.instance === vm.instance) at nine; the Aleph row has three deciders (bridgeStatusRows, connectionOf's aleph(), the card's own deriveds); the stop time from Aleph is worked out twice with different rules (hosted-aleph.js:1103-1122 and :1189-1194); the payer of a FORGET four times; the VM record is written raw at four places although record.js is meant to be the only writer; "credits" names two units in one component (the package's and Aleph's). Of #844 B6: factsFrom (bridge-connection/facts.js) does not supply paused, held, node, originRefused, deviceSync, nodeAwaitedSince or the VM's start status, so several reasons of connectionOf cannot occur in production yet.
Text chosen in the template: HostedBridgeCard.svelte:574-605, :637-672, :680-1151 (online/paused × running × halfway); BridgePanel.svelte:149-217; NearBridgeCard.svelte:95-178; HostedAutoStop.svelte:105-173.
4. Where each module stands
| Module | Layer today | What blocks (a) |
|---|---|---|
backup/aleph-signer.js, aleph-key.js, restore-path.js, holders.js |
(a) | holders.js: an E2E override read from localStorage |
backup/history.js, chain.js |
(a) with storage inside | read and write the sealed settings themselves (store/settings.js); the pure parts (withBackup, chainAfter, reconcileChain, refusedIncrement) are mixed with I/O (loadChain reconciles and saves) |
backup/keeper.js |
(a) with storage inside | loadOwner/saveOwner/ensureBackupKey use the settings; alephEndpoints reads localStorage and import.meta.env (E2E); fetch already injectable. Signs: backupPin, keepWithKey, forgetChain |
backup/recheck.js |
(a) | timers injectable already; one E2E global |
backup/archive.js |
(a) | needs the books' sealer and the open databases – headless, but key-bound (section 7) |
backup/vault-index.js |
(a) | Date.now, own sleep; signs and publishes the vault |
backup/credits-watch.js |
(b) written as a function | $lib/session (app, currentStore), network-pause |
backup/run.svelte.js |
(a)+(b) mixed | $state, session, i18n (refused, stepText), window (beforeunload), wake lock |
backup/auto.svelte.js |
(a)+(b) mixed | $state, session, localStorage, module timers, Date.now |
backup/restore-flow.svelte.js |
(a)+(b) mixed | $state, session, i18n, location.reload |
backup/restore-peers.js |
(a), browser transport | libp2p/Helia in the browser; stays in the app |
BackupCard.svelte, MoveCard.svelte |
(a)+(b)+(c) | everything |
move/book-move.js |
(a) with storage inside | settings, activity events |
integrations/bridge-status.js, hosted-nodes.js, hosted-unlock.js, hosted-settings.js, hosted-image.js, bridge-connection/state.js, facts.js |
(a) | nothing |
integrations/hosted-auto-stop.js, bridge-connection/settle.js |
(a) | Date.now() defaults |
integrations/hosted-vm.js |
(a) | global fetch default in eight functions, Date.now, an own sleep that cannot be cancelled, English error texts that reach the person |
integrations/hosted-bridge.js, hosted-start.js, near-bridge.js, aleph-fetch.js |
(a−) | E2E overrides from localStorage/import.meta.env, the pause read from localStorage, global fetch, caches |
bridge-connection/record.js, expected.js |
(a) with storage inside | the settings |
bridge-connection/hosted-aleph.js, hosted-near.js, kept-settings.js, paired-client.js, local.js |
(a) bound to a module context | let ctx (bindSession), t() some forty times in hosted-aleph.js, intlLocale, the pause from localStorage, new Date(). Signs (with the books' Aleph key): INSTANCE, AGGREGATE, FORGET, the VM's own FORGET for auto-stop; hands secrets to the VM on unlock |
bridge-state.svelte.js, hosted-status.svelte.js, hosted-auto-stop-watch.svelte.js, facts.svelte.js, state.svelte.js |
(b) | – |
| the cards | (b)+(c) mixed | session, i18n, confirm, document.querySelector, navigator.clipboard, localStorage |
5. The PRs
Each is one PR against main, mergeable alone, no visible change, every data-testid kept, unit and E2E green. A behaviour fix is never part of one of these; it gets its own PR referring to its issue. Headless modules get node-run unit tests.
Backup
- BK1 – the refusal as data. (refactor(app): why Aleph refused a backup, as data (BK1) #1075, open) New
backup/core/refusal.js:refusalOf(error | answer) → { code: 'credits' | 'file-unavailable' | 'not-allowed' | 'invalid' | 'unknown', alephCode?, credits?, required?, retry: 'no' | 'after-credits' | 'after-grant' | 'maybe' }.run.svelte.jsrefused()and the row'serrorCode === 4check read it; same texts as today. Tests: one case per path a refusal arrives by (thrown by the key's path, by the bridge, settled later). - BK2 – the timeline model.
backup/core/timeline.js:groupChains(records, listed, { currentBase, usable }) → ChainView[]andisHeld(record)– the card'schains,liveChains,goneChains,older, and the five spellings of "held". Tests: history only, Aleph's list only, both with the same CID, a backup kept twice, a chain all forgotten, order. - BK3 – what it costs.
backup/core/runway.js:keptBytes(view),perDay(bytes),daysLeft({ credits, bytes }), oneASK_BELOW_DAYS. The three ways of counting stay three named functions in this PR, each pinned by a test; making them one is a visible change with its own PR. - BK4 – one state object.
backup/core/status.js:backupState(facts) → BackupState(section 6). The card'sbackupStatus,chainUsable,lastKept,lastRefused,unconfirmed,setupNeeded,canBackUp,canForgetbecome reads of it; the level → text mapping stays in the card. Tests: one case per level in today's priority order. - BK5 – may it run by itself.
backup/core/auto.js:autoDecision(facts) → { run: true } | { run: false, blocked: 'paused' | 'chain' | 'key' | 'credits' | 'refused' | 'error' | 'reader' | 'nothing' }.auto.svelte.jskeeps the timers andbackupDue, and asks it. Tests: one per reason – this is the first unit test automatic backup gets. - BK6 – one settle.
backup/core/settle.js:settleRecords(records, ask, { only }) → patches. Replaces the card'ssettle(),settlePendingandsettleChain. Tests: status change, reason change, a failed question, nothing to do writes nothing. - BK7 – storage and keeper as ports.
chain.jssplit into the model (core/chain.js:chainFromBase,chainAfter,reconcileChain,refusedIncrement, pure) andchain-store.js(settings I/O);history.jsthe same;keeper.jslosesloadOwner/saveOwner/ensureBackupKeytokeeper-store.jsand takes endpoints as an argument (the E2E override moves to the adapter). OneuploaderFor(context)replaces the two copies. Tests: the existingchain.spec.js/keeper.spec.jsmove with the code, unchanged assertions. - BK8 – the run without the page.
backup/core/run.js:runBackup(deps, params, onEvent) → BackupRunResult(events for progress, a result withrecordorerror.code).run.svelte.jsbecomes the adapter:backupRun,beforeunload, wake lock, the "upload?" question, i18n. Tests: a run against a fake uploader – kept, pending, refused (row written, chain not moved), nothing new, the question declined. - BK9 – the page's adapter.
backup/backup-page.svelte.js: the state and the actions now in the card's script (load,check,keepAgain,forgetOlder,backUp,setOwner).BackupCard.sveltekeeps markup and local UI state. Tests:backup.spec.js,backup-restore.spec.js,creditsE2E unchanged. - BK10 – presentational parts.
BackupStatusHeader,BackupActions(now · automatic · the cost question),BackupMade,BackupTimeline→ChainGroup→BackupRow(+BackupHolders,BackupContents),RestorePanel,BackupAdvanced→AccountSection,BrowserKeySection,ChainSection,RestoreSettings,PublicNote. Props and events only. Can be several PRs, one part each. - BK11 – "Bücher umziehen".
move/move-flow.svelte.js(adapter) andMoveCard.svelteas display;book-move.jstakes its storage as a port. Tests:book-move.spec.js,book-moveE2E. Last, lowest priority.
Bridge
- BR1 – the hosted bridge's state as a pure function.
bridge-connection/core/hosted-model.js:hostedState(facts) → HostedState(section 6):none | requested | starting | halfway | running-locked | running | not-up | stopped | stopped-itself | unknown-to-aleph, with oneprimaryaction. Nothing reads it yet. Tests: one row per state; the combinations the card has no state for today are named and tested. - BR2 – one bridge kind = state + one primary action (finishes Refactoring plan: session and bridge connection #844 B6).
bridgeKinds(facts) → BridgeKind[]forcomputer,aleph,near, grown frombridgeStatusRowsandconnectionOf;factsFromsupplies the facts it lacks today.BridgeStatus, the card's "running"/"unlocked" deriveds andHostedAutoStopWarningread it, one caller per PR. - BR3 – one writer, one payer. Every write of the VM record through
record.js;payerOf({ record, content, owner })once; the stop time from Aleph's answer once. Tests:record.spec.js, new cases for the payer. - BR4 –
hosted-aleph.jswithout the module context. Split by verb intobridge-connection/core/hosted/{start,unlock,stop,reconcile,auto-stop,credits,image,instances}.js; each function takesdeps(settingsport,signer,fetch,now,isPaused,signal, device list) and throwsHostedErrorwith acode;hosted-aleph.jsstays as the adapter that binds the session and maps codes to i18n. One PR per file. Tests: node tests with a fake Aleph for start, continue, unlock, stop, reconcile – none of which has one today;hosted-pause.spec.jsandhosted-forgotten.spec.jslose their module mocks. - BR5 – the credentials as a list.
core/credentials.js:credentialRows(kept) → { id, kind, set, fields }[]overhosted-settings.js;HostedSettingsCardrenders the list with one form component instead of five form objects. - BR6 – the card's controller and its parts (Refactoring plan: session and bridge connection #844 C1).
hosted-card.svelte.js(the card'sstep(),reload(), progress, cancel) andHostedHeader,HostedPayer,HostedOwnImage,HostedStart,HostedProgress,HostedInstances,HostedAdvanced;HostedAutoStopexists. Tests:hosted-bridge,hosted-auto-stop,narrowE2E unchanged. - BR7 – the prototype card on the same model.
NearBridgeCardreads aBridgeKind;near-bridge.js's loops takesignalandisPausedlike the rest.
Order. BK1–BK6 and BR1, BR3 are new pure code or one small seam and can start at once, in any order. BK7 → BK8 → BK9 → BK10; BR2 → BR4 → BR6; BR5 and BR7 any time after BR2. The new UI starts when BK10 and BR6 are in.
For the design issues (to align when they exist): status header ← BackupState.level/code; key figures ← BackupState.credits and .lastKept; timeline row ← ChainView/RowView with refusal; advanced ← the four sections of BK10. Bridge: one tile per BridgeKind with state and primary; the Aleph card ← HostedState split into header / auto-stop / payer / advanced; credentials ← credentialRows.
Smaller things seen, fixed where the code moves: "Abbrechen" shown while stopping although it does nothing; the card's clock ticks only while a VM runs; the node-list error is never retried; a stop from the list asks for confirmation, the card's stop does not; English error texts from hosted-vm.js reach the page; unused exports (handOverHostedAutoStop, noteAutoStop, viaDeviceOf, viaStreamOf, hostedAnswersOf, expectedOf); alephSaid is a state in the card and a function in hosted-aleph.js; kept means three things; the card's settle() asks Aleph once per history row, one after the other, on every opening.
Test gaps today: no unit test for auto.svelte.js, run.svelte.js, restore-flow.svelte.js, anything in BackupCard.svelte (grouping, status, keepAgain, settle, forget), credits-watch.js beyond daysLeft; none for startHostedBridge, continueHostedStart, unlockHostedBridge, keepHostedAutoStop, hostedCredits, the payer choice, hostedInstances, or connectionOf with real facts. E2E checks that the retry button disappears, not what the chain does afterwards.
6. Shapes (plain data, JSON-serialisable)
type Refusal = { code: 'credits' | 'file-unavailable' | 'not-allowed' | 'invalid' | 'unknown';
alephCode?: number; credits?: number; required?: number;
retry: 'no' | 'after-credits' | 'after-grant' | 'maybe' };
type BackupState = {
level: 'setup' | 'ok' | 'pending' | 'warn' | 'danger';
code: 'loading' | 'no-account' | 'not-let-in' | 'credits-short' | 'refused' | 'none' | 'unsaved' | 'pending' | 'ok';
lastKept: { at: string; cid: string; kind: 'full' | 'increment'; sequence?: number } | null;
pending: { cid: string; sequence?: number }[];
refused: { cid: string; at: string; sequence?: number; refusal: Refusal }[];
unsaved: string[]; // collection names
chain: { base: string; next: number; usable: boolean } | null;
credits: { balance: number | null; keptBytes: number; perDay: number; days: number | null };
auto: { on: boolean; nextAt: number | null; blocked: string | null };
};
type ChainView = { base: string; at: string; current: boolean; held: boolean; gone: boolean;
elsewhere: boolean; bytes: number; increments: number; rows: RowView[] };
type HostedState = {
state: 'none' | 'requested' | 'starting' | 'halfway' | 'running-locked' | 'running'
| 'not-up' | 'stopped' | 'stopped-itself' | 'unknown-to-aleph';
primary: 'start' | 'continue' | 'unlock' | 'stop' | null;
instance: string | null; since: string | null; stoppedAt: string | null;
payer: { kind: 'books' | 'package'; address: string } | null;
cost: { perHour: number | null; hoursUsed: number | null; hoursLeft: number | null };
autoStop: { wanted: object | null; handed: object | null; at: string | null };
};
type CodedError = Error & { code: string; detail?: Record<string, unknown> }; // never a UI string
type AlephSigner = { address: string; sign(payload: string): Promise<string> }; // 🔑Functions; 🔑 = needs a signer, 🗝 = needs the books' own keys (section 7):
// Aleph keeper – STORE order, status, refusal, credits, FORGET
keeperStatus(itemHash, { endpoints, fetch }): Promise<{ status; refusal?: Refusal }>
listKept(owner, { ref?, endpoints, fetch }): Promise<KeptStore[]>
accountCredits(owner, { endpoints, fetch }): Promise<number | null>
isGranted({ owner, address, endpoints, fetch }): Promise<boolean>
keep({ cid, ref?, size?, owner }, { signer, endpoints, fetch, now }): Promise<Kept> // 🔑
forgetChain({ base, owner }, { signer, endpoints, fetch }): Promise<ForgetResult> // 🔑
// backup chain – model and reconciliation, no network
chainAfter(chain, increment, cid, status): Chain
reconcileChain(chain, records): Chain | null
groupChains(records, listed, opts): ChainView[]
backupState(facts): BackupState
autoDecision(facts): { run: true } | { run: false; blocked: string }
settleRecords(records, ask): Promise<Patch[]>
runBackup(deps: { store, uploader, pack, now }, params, onEvent): Promise<BackupRunResult> // 🗝 pack, 🔑 uploader
// hosted bridge – lifecycle
hostedState(facts): HostedState
reconcile(record, { fetch, endpoints, now, isPaused }): Promise<{ state; record }>
listInstances(owner, { fetch, endpoints }): Promise<Instance[]>
releaseCheck(instance, { fetch, endpoints }): Promise<ReleaseVerdict>
start(params, { signer, store, fetch, now, isPaused, signal }): Promise<VmRecord> // 🔑
stop(record, { signer, store, fetch }): Promise<{ stoppedAt; already }> // 🔑
handOverAutoStop(setting, { signer, attest, fetch }): Promise<boolean> // 🔑
unlock(instance, { secrets, attest, signer, fetch }): Promise<KeptRecord> // 🔑 🗝 hands secrets to the VMCandidates for packages/* (AGPL-3.0-or-later like the others) – only after the in-app core/ folders have settled, and only if a second consumer appears:
| Package | From | Why a package |
|---|---|---|
@le-space/aleph-keeper |
backup/keeper.js (network part), aleph-signer.js, aleph-key.js, core/refusal.js, core/runway.js; the message/credits half of integrations/hosted-vm.js |
Aleph-specific, no notion of books; the backup and the hosted bridge both need signer, message status, credits and FORGET, and today each has its own client |
@le-space/backup-chain |
core/chain.js, core/timeline.js, core/status.js, core/auto.js, core/settle.js, the history's list rules |
pure, storage through a port; the part an agent would ask most |
@le-space/hosted-bridge |
integrations/hosted-vm.js, hosted-bridge.js, hosted-image.js, hosted-start.js, hosted-unlock.js, hosted-nodes.js, hosted-auto-stop.js, core/hosted/*, core/hosted-model.js |
one lifecycle with a clear outside (Aleph, node, relay, VM) |
Not packages: archive.js and restore-* (bound to the books' keys and the browser's transports), vault-index.js, book-move.js, the connection state of the bridge on a computer, the NEAR/Phala prototype.
7. Reuse by an agent or the x402 API (an option, nothing decided, nothing built)
If the headless layer exists, an AI agent on the owner's device, or an HTTP API paid per request such as Le-Space/eigenbeleg-agent (which already consumes @le-space/rates), could call it instead of re-implementing it.
What such a caller could do
| Question or action | Needs | Notes |
|---|---|---|
"Is account X's backup kept, what does it cost a day, how long do the credits last?" (listKept, accountCredits, keeperStatus) |
the paying account's address only | Aleph's public data; no key |
"Why did the keeper refuse?" (keeperStatus → Refusal) |
an item hash | public; answers with a code, the caller words it |
"List the chains / what is not saved yet / may automatic backup run?" (groupChains, backupState, autoDecision) |
the history and the chain – which are in the sealed books | only where the books are open: on the owner's device. A remote API gets them only if the device sends a state object, and that is a new host: consent screen first |
"Is my VM still running and what does it cost?" (reconcile, listInstances, hostedState) |
the instance hash or the account's address | public; no key |
"Is this VM the released image?" (releaseCheck) |
the instance hash | public |
| "Order a backup to be kept again / forget an old chain / start or stop a hosted bridge" | 🔑 the owner's signer, handed in for that call | never a stored key |
| "Make a backup / restore one / unlock the VM" | 🗝 the books' keys | on the owner's device only; not an API function at all |
What must never leave the owner's device in such a use
- The books' root and every key derived at unlock, the passkey's PRF answer, the vault's contents: memory only, as today.
runBackup'spack, every restore,unlock'ssecretsare 🗝 for that reason. - The private half of the books' Aleph key. It lives in the sealed settings; a server-side caller gets a signer (
{ address, sign }) for the one request, in the owner's session – never the key, and never a signer it may keep. - Unsealed records: the backup history and chain (CIDs, sizes, times, who made it), the VM and kept records, the kept credentials for a hosted bridge, the bridge token. Every record is sealed before it is written; a state object sent to an API is plaintext about the books and leaves only by the owner's decision, to a host the consent screen names.
- The secrets handed to a hosted VM at unlock go from the owner's browser to the attested VM and nowhere else. Le Space never holds a key.
- Nothing dials while the network is off or paused: every headless function that dials takes
isPausedand asignal, and an agent on the device gets the same ones the UI has.
Where reuse would tempt someone to weaken this – to be refused when it comes up:
- "Automatic backup from the server" or "the API retries the order for you": needs the Aleph key or a standing signer on a server. No.
- An endpoint that keeps a customer's history to answer faster: an unsealed copy of the books' metadata off the device. No.
- Putting
archive.jsorunlockbehind HTTP "for agents": the books' key would have to be there. No. - A server that starts hosted bridges with its own key "on behalf of" books: then Le Space holds a key that can stop, replace or unlock-gate the VM. The payer may be a package; the signer stays the owner's.
- Logging requests in the API: item hashes and addresses tie an account to a customer; signed payloads and error details must not go into logs or error responses.
- Error texts: the headless layer throws codes; an API that passes
error.messagethrough would leak whatever a dependency put there.
No issue in eigenbeleg-agent and no endpoint follows from this section.
🤖 Generated with Claude Code
Activity