Skip to main content

Current App Guide

Current Implementation And Cordis Target​

The application described here runs the existing Python/FastAPI backend and React cockpit. ADR-026 accepts an all-plugin Cordis agent-runtime composition target; its migration capabilities are Planned. Continue using the current managed commands, workspace and operator controls. The architecture decision by itself does not install Cordis, replace the runtime or migrate stored data. The separately implemented optional lifecycle host below does not migrate the agent loop or canonical ownership.

Reviewed optional Cordis lifecycle host​

This is the implementation contract for #1006 under ADR-026. Availability requires a revision containing its independently reviewed implementation merge; receipts before that merge establish only the implementation under review.

The private runtime/cordis/ npm package uses stock Cordis 4.0.0-rc.10, integrity sha512-xG90nPNQxR272cC4lR/m5LHevegIJvdddQBlKdEAdGz3n+zgH5lsgkg8o9fc2P3T/f+pO5D7FN1HZvkNBiABnw==, npm 11.8.0, and Node 22.x from 22.12.0 or Node 24.x. The frontend and docs retain their own manifests and lockfiles. Install this package's locked dependencies explicitly with that npm version (npm ci --ignore-scripts --omit=optional --no-audit --no-fund inside runtime/cordis/), then build through the managed command. Missing dependencies are a setup condition, never a reason to install packages during app startup. The installed toolchain and package are reviewed trusted application code, not a sandbox for arbitrary same-user code. The lockfile SRI verifies stock package bytes during npm ci; the reported package_digest binds host files/build and lock metadata, not unpacked node_modules. Runtime trust includes that reviewed installation and excludes malicious code changes by the same user. Stock Node 22.12.0 bundles npm 10.9.0, so install npm 11.8.0 explicitly before this package setup (for example, npm install --global npm@11.8.0 in your selected operator toolchain; see npm's explicit-version/global install contract). Put that installation's actual bin directory before version-manager shims on PATH, so npm resolves to its trusted npm-cli.js file, then use the managed build command below with the absolute reviewed Node 22 executable. The build checks its bundled npm first and falls back to a separately installed, trusted JavaScript CLI on PATH only when it reports exactly 11.8.0. It executes that CLI through the reviewed Node binary, never through a shell wrapper. Missing or wrong npm stays a visible setup block; the managed build installs nothing. Node 24's matching bundled npm remains preferred. Managed version checks and builds pin npm's documented --prefix to this package, excluding parent workspace configuration. A package .npmrc or a file at either reserved .absent-user-npmrc/.absent-global-npmrc path (including a symlink) blocks the build with npm_configuration_unreviewed; remove that unreviewed configuration before retrying. Operator npm configuration is not loaded by these managed commands.

./manage.sh -e dev cordis status
./manage.sh -e dev cordis build
./manage.sh -e dev cordis probe

These finite commands accept --node /absolute/path/to/node for an explicitly selected reviewed binary, do not persist the choice, and do not load .env.dev, provider credentials, or the operator workspace. status is package preflight, not live readiness. build uses already installed pins with no installation or network fetch. probe starts, checks, quiesces, shuts down and positively reaps the same production host without starting the API, database or provider. The ordinary app remains managed through local run/up/down/status; its lifespan automatically attempts this optional host only against the fixed reviewed profile and validated build. Missing or unsupported Node (including 22.11), a missing/stale build, invalid configuration or a failed child blocks dependent Cordis readiness while the existing Python core and settings remain usable.

Each explicit /api/runtime/status refresh reads the current owned child's required-service readiness over the same bounded control pipe, with one original deadline of at most four seconds (below the browser's five-second budget). readiness.state=verified and its Unix-millisecond checked_at describe that successful readback only. Cached diagnostics are unknown; failed, expired or capacity-blocked refreshes retain historical details without claiming Ready. There is no periodic poll. A disposed required plugin fiber fails the child's actual readiness check, and a hung child loses readiness within the deadline.

Python owns one directly spawned trusted child using a fixed absolute entrypoint and working directory, closed inherited descriptors, and only LANG=C.UTF-8 and TZ=UTC in the child's environment. It inherits no NODE_OPTIONS, NODE_PATH, home/config paths or credentials. Two anonymous pipes carry the protocol; bounded stderr is separate. There is no listener, discovery, tunnel, dynamic import, runtime installer or hot reload. The literal profile allows only release-pinned reviewed plugin IDs and closed configurations/dependencies. Profile changes require drain/dispose/restart and cannot grant authority.

Frames are four raw big-endian uint32 length bytes followed by 1..1048576 UTF-8 JSON bytes without a delimiter. Both sides reject duplicate keys, unknown fields/methods, malformed or incomplete frames, nonfinite values, depth above 16 and more than 4096 nodes. Integer fields use actual safe JSON integers. Each boot has a fresh 32-byte random nonce, exact package/composition digests and independent strictly consecutive sequences starting at 1. Request IDs bind to those sequences; responses require a matching unresolved request and identity/deadline. The closed envelope is protocol, boot_nonce, request_id, seq, kind, method, invocation_ref, composition_epoch, composition_digest, package_digest, deadline_at, and payload. Unix-millisecond deadlines bound controls to 5 seconds and unresolved calls to 32. Stderr is limited to 64 KiB per boot.

Only bootstrap.hello, runtime.ready, runtime.status, runtime.quiesce, runtime.shutdown and invocation.cancel are admitted here. Lifecycle controls have null invocation reference and null composition epoch. Cancellation requires a bounded nonempty invocation reference and returns false for an unknown invocation. Typed service frames are described in the service bridge section; the host itself creates no second authority, job queue, inference lane or agent loop.

Admission closes before shutdown. The parent drains/cancels within 10 seconds or the original earlier deadline, then uses TERM, a 2-second wait, KILL and positive reap when required. Each owned resource is registered before acquisition. Application resource cleanup is recorded independently from Cordis plugin-fiber disposal, because upstream contains disposal errors and root-fiber disposal is a restart operation. Unknown cleanup remains blocked and retains ownership; restart cannot erase it. Current host resources are process-local, so positive OS reap proves their pipe/timer/listener destruction even if graceful Cordis disposal was unconfirmed.

The authenticated /api/runtime/status exposes the redacted cordis_runtime snapshot as a lifecycle_host, including actual profile/plugin readiness, recovery reason and independent cleanup/disposal state. Settings shows this state without disabling artifact controls during host or metadata failures. It exposes no nonce, PID, stderr, credentials or environment values. This host does not change the effective chat_agent route or the Python owners of authority, canonical storage and the shared serial inference lane.

Focused implementation checks cover real stock Cordis service registration and dependency loss, framing/parser attacks, stale boot/replay/unsolicited output, bounded admission/deadlines, stale builds, unknown cleanup and repeated actual child reaping. A keyless managed Linux x64 probe was also executed with inherited IPv4/IPv6 socket creation denied. This is Linux-host lifecycle/security proof, not a native macOS receipt or inference/provider proof. macOS remains a peer core-host target; unsupported optional native proofs do not block independent core operation.

Cordis typed service bridge (#1007)​

#1007 adds fourteen typed service plugins to the reviewed profile: seraph.authority.v1, goals, tasks, capabilities, inference, memory, artifacts, audit, research, conversation, scheduler, connections, agent-loop and source-extraction (Context keys seraphAuthority through seraphSourceExtraction). Contracts live in runtime/cordis/src/contracts/ and providers in runtime/cordis/src/plugins/. Providers carry no state or policy: a provider call is a callback inside the one original invocation Python sent, carrying that invocation's reference, composition epoch and original deadline (ordinary calls are capped at 30 seconds and never renewed). Python admits a callback only for a method in that invocation's frozen reviewed closure (at most 16 callbacks per call); other methods get a typed blocked result. Profile entries use the literal registry order with a closed per-plugin configuration schema (currently empty); the host plugin is required, service providers may be marked optional or omitted, and an absent provider's methods return service_provider_not_composed. Each reported plugin state carries a digest of its plugin ID, required flag, configuration and reviewed build-file hashes; Python recomputes it from the verified build manifest and fences the boot on any mismatch, so jobs can pin provider/config identity.

Service frames carry a positive composition_epoch and canonical invocation_ref; payloads use closed schemas of canonical references, never paths, SQL, URLs or plugin-asserted authority. Python's runtime_plugins/dispatch.py admits a call only for a job it admitted itself with a server-derived composition binding, after writing a protected invocation witness under that job's live lease. Every call re-resolves, in one immediate SQLite writer: the witness, attempt, lease owner, fencing token, deadline, the bound composition owners and authority. operator-root requires the original live, unrevoked Root session and unchanged grants; goal-programme validates the current programme/grant/goal binding through the existing programme owner and ignores issuing-browser expiry. A failed check returns a typed blocked result before private bytes or effects.

runtime_composition_states holds one row per runtime domain (owner legacy/cordis, monotonic epoch, digest, ready/draining/blocked, recovery audit receipt). Startup seeds legacy epoch 1 only into an empty table; a partial inventory stays partial so missing owners keep denying calls. Cordis-bound jobs persist composition_binding_json, and the canonical job CAS repeats it, so a draining, changed or missing owner fences claims, heartbeats, checkpoints, artifacts, effects and successful completion. Stopping transitions (failed/cancelled) and stale-job recovery are not composition-fenced, so an old-epoch job can still be stopped. Owner transitions require the workspace maintenance fence: ready -> draining stops admission; a strictly higher-epoch blocked state follows only when no leased attempt is bound to the old owner, and it marks accepted/queued jobs bound to that owner blocked (composition_owner_changed, listed in the recovery receipt). ready requires a boot proof: the fixed legacy digest, or for cordis the currently admitting host whose verified build reports exactly that domain's plugin digest and whose child reports that provider running. Rollback is a new epoch and never revives blocked jobs.

Native owners in this slice: authority.resolve, goals.read, tasks.admit (reports the idempotent admission and whether it was replayed), tasks.inspect, tasks.checkpoint (only admission-sealed checkpoint refs), tasks.cancel, capabilities.list/describe, connections.inspect, memory.retrieve (owner list-safe redacted summaries only), and artifacts.stage/adopt/read plus audit.append for the temporary read journey (and, for guardian research, the bounded callbacks described in Cordis guardian research (#1008)). That journey admits one runtime_service_read_v1 job, performs the read, stages the sealed result as a private 0600 workspace file (intent before effect), adopts and reads it back, appends one runtime_service_observed audit event and settles the job with explicit no_learning. Only a keyed result digest and a non-private projection are ever persisted, in the job row and in that file: a memory.retrieve result keeps each record reference and a keyed digest of its served text, never the text itself, so a forget, revoke or backup leaves no read-result copy to scrub (#1100). The digests are HMACs under a per-install key derived from the vault key, which backups never archive, so a retained digest cannot confirm a guessed forgotten summary. The completion transaction rechecks each record through the owner's list-safe summary path, which reads the tombstone ledger directly. A record forgotten, redacted or tombstoned mid-journey (including a restored row whose reapply is still pending) blocks the job with native_memory_record_withdrawn; an edited record blocks it with native_memory_record_changed, and unavailable redaction with native_memory_redaction_unavailable. The read is then not served. The child's answer to each call must equal the result Python sealed for it (the read's answer must match its sealed digest; task answers must equal the value Python builds from the durable job row, including the checkpoint receipt's recorded revision); any difference blocks the job with native_child_result_mismatch, and only Python-owned values are returned. An exact retry reuses the same job and never re-executes; an interrupted stage stays visibly unresolved as an intent effect. All other methods (tasks.settle, memory.propose, memory.applyReviewed, memory.forget, research.*, conversation.*, agent-loop.*, scheduler.*, connections.invokeBoundAdapter, source-extraction.extract) return a typed blocked reason as Python callbacks (research.* and source-extraction.extract are Cordis-owned since #1008 and only originated by Python; capabilities.invoke and inference.request have governed Python owners since #1018), also listed in the runtime status native_services block. No HTTP route yet exposes the bridge to the browser, and the Memory composition-snapshot accounting amendments recorded on #1007 are not implemented. The acceptance tests deny every Python socket connection/DNS lookup and give the child no network configuration, but they do not OS-sandbox the Node child's own network access. Transient SQLite contention inside one callback (database is locked/busy, connection-pool timeout) is a typed per-call blocked result, native_owner_storage_busy: the owner writer rolled back with no partial effect, the read journey blocks only that job with that reason, the boot keeps admitting, and the runtime status native_services block counts transient_failures (cumulative for the backend process, across host boots). Contention after artifacts.stage wrote its file is not reported as busy: the stage stays an unresolved intent with native_artifact_owner_operation_unproven and is never re-executed. If the job cannot even be marked blocked under persistent contention, it is left for stale-lease recovery. Other storage faults and any protocol, digest or authority violation still fence the whole host boot.

Task conversation continuity​

The bounded #1021 continuation journey is Shipped in this milestone contract. Availability requires installation of the reviewed milestone merge. The chat list includes a task picker. Local context shows canonical status, bounded task title and remaining intent, the current blocker, verified output references, selected private reference counts, unanswered input, the next permitted local review action and unresolved effects separately. Missing narrative summaries use a bounded factual canonical timeline; no model summary or provider call is needed. Open Work for full history and output controls.

Continue in new chat creates an owned conversation referencing the same task ID. It does not create another task or change its revision. Selecting historical Task and Goal records through ownership recovery permits read-only context in a new login; historical transcripts and unselected artifacts remain private. Continuing a recovered task renews no grant, approval, budget, effect or model-egress permission. Current scope review remains required in Work. The assistant context status reports that boundary separately. Existing direct and agent chat compilers share one current-authority helper: only the current Root's owned task facts and permitted opaque references enter the next prompt. Selecting history grants no assistant access to its facts or sources. A selected source reference requires current packet adoption and current per-source model permission; private-source classification is independent from model permission. Up to four corrections recorded through the authenticated operator comment endpoint are readable locally with their canonical references. The packet checks original task owner/Root authorship and the matching canonical provenance event and current body integrity. Worker, review and older unclassified comments remain neutral task notes in Work. Correction bodies and integrity hashes remain local-only; the assistant receives their opaque IDs and timestamps plus an explicit local review requirement. No correction body, source body or historical transcript is copied into the task handoff. Ordinary current and recent chat transcript context also requires the live current narrowed chat principal, current owned conversation and model grant. Unscoped service/report calls receive no transcript context; historical Task selection selects no transcript. Deleted or changed output bytes invalidate the displayed reference. A stale revision prompts context reload without replaying the previous chat action. Recovery rollback removes access on the next context read.

Focused proof: test_task_conversation_continuity.py covers authenticated SQLite links, replay, stale revisions, owner conflicts, selected recovery and rollback, local artifact readback/deletion, bounded metadata and additive migration. Literal intercepted async and streaming transports confirm the same factual handoff and request digest as the agent context compiler; missing grants, revoked Roots and recovered history block assistant context. Canonical evidence adoption/revocation controls which source refs are included without copying text. SessionList.test.tsx covers mocked continuation and visible recovery. These provider-free mechanical checks establish no model-quality or live-provider claim. The Python lifespan owns service activation and shutdown; this journey does not introduce a Cordis bridge.

Finite public goal programmes​

The finite authority controls under #1003 and ADR-027 are available on develop revisions containing the independently reviewed implementation merge. This section describes that post-merge control scope, which does not include discovery or digest execution. Supply a separate public brief locally, preview the exact public-web/local-artifact/inference-request limits, and explicitly accept a daily programme lasting at most seven days. Private goal text is never copied into this brief automatically. No query, URL or output path is required. Missing provider policy shows a blocked programme. Since #1284 (ADR-037) a programme has no inference dollar allowance and a new programme stores none. A one-time startup step pauses every programme that is not ended and whose stored max_inference_microusd is exactly 0 (reason programme_paused_no_allowance, note "Paused: it had no inference allowance. Resume it to run."); it is keyed on the stored value, not a date, and Resume lets the programme run. A programme saved with a positive allowance keeps running with no limit. The former programme_zero_budget and programme_allowance_exhausted reasons are no longer produced.

The original finite grant may outlive browser logout/expiry. Pause/revoke or stable identity revocation stops new contacts and adoption; Goal/route correction requires renewed review. Expiry produces a passive review state. Saving a preview with a changed public brief immediately pauses the old programme; abandoning that review does not restart it. An unchanged-brief renewal pauses its predecessor on acceptance. A new login cannot renew old authority; exact pause/revoke needs separately acknowledged stable-owner recovery. The authority milestone alone does not run discovery or produce a digest.

The public discovery executor under #1004 is Partial until its whole native execution and recovery implementation is independently reviewed and merged. Its current Python owner accepts one occurrence for the current UTC day, using the original finite programme, native job queue, artifact owner and cost ledger. There is no catch-up after downtime. The fixed path plans at most three queries, searches the fixed DuckDuckGo HTML route, selects at most four manifest items, and prepares a cited local brief and inert checklist. Each occurrence has the original deadline of at most 300 seconds and at most four governed inference requests. Spend across every daily occurrence is recorded for display only and is not compared with an allowance (ADR-037). Narrower accepted plan limits apply to the actual query, result, source and inference counts and declared output bytes. Search uses each plan's per-request time and response-byte cap within the original deadline. The fixed four-stage graph consumes whole original physical outputs; alternate graphs and JSON pointers are unsupported rather than silently ignored. Planning and source extraction run only through the composed Cordis research roles described in Cordis guardian research (#1008); without a running reviewed host or provider, discovery is blocked and visible rather than falling back to Python.

Use Inspect discovery runs to inspect canonical status, freshness/coverage, held effects and any provider request that has not finished. Only a request that is reserved, in flight or held after a refused contact holds the occurrence ("A provider request from this run has not finished..."); on a running occurrence Home shows that as source_run_in_progress. A finished request the provider has not priced yet holds nothing, so the next daily occurrence is admitted. A lost outcome stays held by the run status and effect ledger, and the original request is never sent again (#1295). Selecting a completed brief performs an explicit local readback under current owner and original generation checks. Private Goal text is excluded from the public model/search path. Source quotations remain untrusted data; mechanical citation/span verification does not establish semantic truth. Full original brief and omitted source-line coverage stay visible. A brief that cannot fit the existing bounded request becomes unsupported before contact; source limits never silently truncate stored evidence. An unchanged later source set produces a quiet brief. Prepared checklists are local proposals requiring separate acceptance; discovery records no_learning and performs no external mutation or digest delivery. The inspector retains finite search-block reasons such as search_captcha and search_markup_drift after authenticated owner recovery and lifecycle restart. It exposes no raw query or response HTML and offers no provider replay. Complete HTTP responses have their own physical body digests, distinct from derived manifest and normalized-source digests. A known parser failure can have settled readback while the original occurrence remains held for review; a timed-out or oversized transfer keeps its unresolved contact evidence.

Explicit revoke, replacement generation, Goal correction or expiry may negatively close an occurrence only when it was never claimed, has exactly its two initial local readbacks, and has no cost row or contact evidence. The native cancellation writer rechecks the exact original binding and denial cause. Browser logout is not a cancellation cause. Claimed, malformed, Unknown or cost-bearing occurrences remain visibly held for inspection; new authority does not replay or forgive them. Unadopted staged files grant no contact authority. Missing, partial or altered files block adoption rather than being overwritten as successful output.

Isolated Linux tests exercise Auth, explicit programme acceptance/logout, canonical SQLite admission/accounting, the actual scheduler callback, owned literal-loopback HTTP search/source responses and scripted governed inference transport. They prove mechanical execution/readback and failure boundaries; provider availability, real inference quality/spend and native macOS execution remain unverified.

Isolated Linux SQLite/ASGI checks verify the finite configuration/control path, logout/restart clocks, owner recovery and fail-closed correction boundaries. They make no provider calls and establish neither macOS execution nor model quality. The native contact/adoption executor still requires its separately implemented and reviewed integration before activation.

Daily programme digest and follow-through​

The #1005 implementation adds a passive daily programme digest and finding dispositions to Home and the Guardian Inbox on develop revisions containing that milestone merge. Earlier revisions require the independently reviewed merge; feature-branch receipts do not establish their availability. The existing Python scheduler considers the current operator IANA local day after 08:00. A durable stable-owner/day receipt survives restart and Goal deletion. Its bounded pending phase lets an original discovery finish before finalizing the same digest; an expired cutoff, missing source, changed authority or unresolved original work produces passive recovery. Missed days do not run in a catch-up burst. Only the exact original current UTC source occurrence is staged; unresolved current work never falls back to an older successful output. Finalized-day ticks do not reopen historical programme artifacts. This adds no inference, source fetch, execution queue or cost ledger and does not change discovery's original UTC occurrence or deadlines. Missing, unreadable or altered physical source files finalize the same receipt with passive blocked recovery. Digest and status reads remain available with unavailable source/output metadata; cited brief reads return a bounded review reason. They do not create tasks or reopen an older successful source. An opted-in deadline check retains a bounded negative memo, so unchanged ticks do not repeat the failed physical read or consume a deadline-notice slot.

Inbox delivery is the default. Native notices need a separate explicit opt-in and an already reviewed programme notification allowance. Across all programmes, one owner can reserve one digest notice and one additional cited deadline notice per local day. Canonical Goal quiet windows and focus/observer interruption gates still apply. Slot reservation and the recipient-bound native outbox insert share one SQLite writer. Disable/revoke before commit prevents admission; the daemon claim also rechecks current consent, recipient, original day/generation and quiet hours. Ambiguous display consumes the slot and is never automatically retried. Deadline notices require an explicit ISO timestamp labelled deadline: or due: in a physically reopened cited source span, within 48 hours, plus a matching operator-declared category. Model urgency and finding prose supply no authority.

Use the same finding card to reopen its original brief/checklist, prepare a local follow-through proposal, defer until a date, or dismiss it. Preparation checks the original Goal revision, programme generation, artifact readback, current Root and source age (at most 48 hours), including the final C1 publication writer after physical staging. Expiry there creates no Task or bound proposal artifact; private unbound staging remains subject to the existing input size bound and expiry cleanup. It creates an inert existing C1 general-task Triage card with a fixed local checklist plan, zero inference calls and no external mutation. FollowThroughIntent.task_proposal_id names that canonical Work task card; it is not a second proposal row or a new allowance. Review and accept the plan separately in Tasks. Completion links the verified physical local output back to the original finding. Corrections, missing/altered artifacts or expired sources block preparation; a selected recovered Goal remains read-only. All new dispositions, including defer and dismiss, require current original Goal ownership and fresh source authority again in their final writer. Private follow-through reads and exact action replay require that Goal's current read scope; a recovered Root must explicitly select it. Defer/dismiss and action-key replay/conflict survive reload. Operator disposition receipts are limited to 128 per owner/day and 16 KiB each, without evicting history to manufacture capacity.

Home reports actual native run/source/output receipts. Next digest is the local 08:00 schedule. Next source eligibility shows current eligibility or the next UTC daily occurrence when the active grant and running discovery scheduler support it. Native outstanding work shows a hold; inactive authority, an unavailable or paused scheduler and expiry before the next occurrence show an explicit reason. Since #1284 there is no remaining-allowance figure and no exhausted-allowance or unpriced-cost hold. Eligibility is not an execution time: the existing scheduler, native admission and current authority determine whether execution proceeds. Pause/review uses existing programme controls. No activity is invented when a source or programme is blocked.

Isolated Linux checks cover SQLite clock/DST/restart and cross-programme caps, native opt-out/quiet claim fences, actual cited-deadline delivery slots across two programmes, literal local HTTP discovery, a current-Root finding-to-C1 proposal/acceptance journey, actual checklist file/readback and same-card completion. Scripted inference replaces only its owned transport; there are no real provider contacts or spending. These receipts do not establish model quality or native desktop display on macOS. Authenticated journeys also unlink, alter and truncate actual source files and verify degraded reads, the original pending cutoff and no unchanged-tick replay.

Optional NEAR HTTPS text question​

ADR-025 defines the optional native text capability implemented under #959. It is available on develop, disabled by default. Its keyless managed and intercepted receipts do not establish live provider availability or model quality.

In Settings, configure the optional NEAR text route with its dedicated write-only credential and explicitly acknowledge provider plaintext access. The fixed model is z-ai/glm-5.3-flash at https://cloud-api.near.ai/v1. The adapter uses ordinary HTTPS certificate validation; no live provider TLS-handshake proof, verified TEE or end-to-end encryption claim is supplied by the local receipts. A local configured label reports credential, current consent and accounting readiness only. Seraph sets no request reserve or budget ceiling (ADR-037); spending limits are set in the NEAR account. NEAR shares the deployment ledger, serial inference lane and global egress revocation fence with OpenRouter.

Use Work to submit one private text question against an active owned Goal and finite purpose authority. The browser does not retain the question for automatic replay. Review the native job and open its private result through current-owner readback after authoritative billing settlement. The task requires human Review; success does not approve it or change memory: the outcome records no_learning. Since #1284 (ADR-037) a missing billing record leaves the request "not priced yet" in Spend history and no longer ends the job in cost_liability; a job already in that status keeps its reconcile control, and settling it is optional. Restart and idempotent request recovery preserve the original job without resending inference. Manual settlement only records a charge; it cannot grant result adoption. Revoke or expired authority blocks private reads; configuration alone grants no execution.

From a goal to a verified result​

The #899 program extends the existing cockpit with a connected operator journey: keep an owned workspace, choose a finite Goal, inspect effective permissions, queue a typed task, review an exact approval where required, and open its verified result. Tasks, native jobs, artifacts and memory keep their existing canonical owners. Availability depends on the installed develop revision containing the complete reviewed program merge; an open feature branch or configured adapter alone does not establish Shipped availability. Development Status records scope and remaining proof boundaries.

Start with the guided first result and use the Work board's attention and task inspector controls to inspect approvals, source evidence, output and recovery. Evidence working sets make citations inspectable; reviewed dependencies prevent stale or conflicting evidence from silently driving later steps. Procedure recommendations require explicit outcome feedback and separate adoption. Ordinary successful execution does not grant learning authority. Deterministic outputs and connected private actions can record an explicit no_learning result without a model request.

Settings separates CPU/core readiness from the optional OpenRouter route and execution adapters. Missing model setup stays configuration-required; no local GPU/model fallback is selected. Repository repair, publication, literal document comparison and reviewed package execution use their declared finite profiles. Optional Linux sandbox availability is checked separately from portable core operation; local host-user execution is not isolation. macOS native/companion execution remains unverified where no platform receipt exists.

Connected controls make narrow effects explicit: one reviewed Gmail reply or owned nonrecurring timed Calendar reschedule without attendees, a paired Telegram task control, or the fixed Forgejo issue-title transaction. A lost response keeps the original Unknown receipt; a separately permitted read-only observation cannot replay that write. Local Forgejo acceptance does not authorize production Codeberg, and local revocation does not prove site logout. The optional Chromium companion attaches only deliberately selected ordinary text after offline preview/redaction, finite Task/Goal permission and exact native approval. Its private attachment is not screenshot observation, automatic memory or generic model context. Review the selected content: protected-surface checks cannot identify every sensitive webpage. Recheck current permission before private reads, and use the original receipt's bounded cleanup/recovery control rather than recreating uncertain work. Continuity recovery never renews old execution authority.

The optional selected-text companion implements the bounded profile in ADR-022 and #926. Its branch implementation has an actual Linux Chromium journey: deliberate ordinary-page selection, offline deletion-only redaction, exact Task/finite Goal permission and native approval, signed send, encrypted private readback and capture-owned discard. Settings uses the existing optional device pairing; legacy pairings require explicit rotation. The Task inspector lists metadata and performs fresh current authority checks for private reads. No screenshot, model analysis or learning is created. Missing companions are locally blocked; macOS companion execution has not been verified. Each target lasts at most 120 seconds, each text is at most 32 KiB, and the owner quota is 64 charged captures / 2 MiB. Unsettled physical publication or uncertain cleanup retains its charge and reports blocked_cleanup; manual retry never renews the original authority or deadline. Availability follows the reviewed installed revision described above.

Reviewed authored capability packages implement the bounded profile in ADR-020 and #924. Static author/validate commands produce data-only contracts; execution requires exact package review, approval and activation through the existing optional isolated JSON Work job. The first package summarizes a bounded time ledger. Unsupported execution profiles remain visibly blocked while the shared core and static package review remain usable. Actual Linux sandbox receipts do not establish macOS isolated execution. Package installation alone never grants execution authority; profile availability follows the reviewed installed revision described above.

Private invoice PDF/CSV comparison implements the bounded profile in ADR-017 and #923. Its one bounded literal line-total comparison produces cited formulas and private derived output. Linux receipts cover private ingestion, native child supervision, readback and the cockpit flow. Structural checks do not certify files malware-clean, and literal comparison does not establish general document understanding. Missing or ineffective parser resource limits block this profile; macOS native execution remains unverified. Availability follows the reviewed installed revision above.

The accepted operator flow selects one PDF and one CSV against a bounded Goal, reserves their immutable private pair, and creates the typed comparison on the Work board. Ordinary parser capacity or priority refusal keeps that original bounded attempt queued; it does not create a new attempt or terminal failure. The task inspector reads a cited literal report and prepares a verified CSV for an explicit save link. Owner/session/task changes and typed output denials clear cached output. Completed execution history remains visible when current Root/Goal authority blocks later private reads. The comparison records an explicit no_learning result and makes no model/provider call.

The comparison's fixed native owner persists its actual ready supervisor/parser identity before source delivery. This publication rechecks current private authority, the original durable lease/fence/deadline and exact capacity under one bounded checkpoint-history CAS. Generic checkpoint calls cannot publish document capacity, child or reap identities. Changed authority leaves source delivery blocked; positive original supervision remains necessary for capacity release. This correction does not establish managed TCP, browser or macOS proof.

Cancellation can leave the generic task card Blocked while its document inspector records the actual cancelled parser and reap state. Unknown cleanup holds capacity; the original exact witness permits cleanup reconciliation. Recovery adopts recorded verified output without reparsing. Only a known terminated interruption may use the remaining original retry allowance; exit-zero with missing output remains lost-output/nonretryable in this version. Use the document inspector's original-attempt recovery controls. Generic board retry/unblock and workflow pause/resume/revoke/retry cannot replace a linked document attempt or bypass its retry and positive cleanup requirements.

Status: Partial Scope: current develop baseline and its named partial proof boundaries; new target architecture is owned by the Constitution and ADRs

Cordis governed capabilities and inference (#1018)​

#1018 binds seraph.capabilities.v1 and seraph.inference.v1 to reviewed Python owners in backend/src/runtime_plugins/governed_services.py. These providers (and seraph.connections.v1) inject the authority, task, artifact and audit services explicitly, so a composition without those owners never registers them, and an absent provider's methods return service_provider_not_composed.

capabilities.invoke admits one runtime_service_governed_v1 job whose closed candidate names a descriptor and its exact arguments digest. Descriptors come from factory.get_tools (stable native_tool:<name> id and version, closed input schema, effect class, limits, permissions and executor). Only adopted, read-only CapabilityExecutionHost capabilities are invocable; approval-gated, MCP, ungoverned and Vault tools are listed as blocked. Invalid arguments are denied at admission. A path argument that resolves (after .. and links) to a Vault secret/recovery file in the workspace state registry or to a runtime-owned file (seraph.db and its sidecars, .vault-key) is denied as native_capability_path_denied; names compare case-folded and NFC-normalised, and the target is also compared by file identity (device and inode), so another spelling or a hard link cannot reach those files. preview_workspace_patch is not a Cordis read-only capability: its pre-encoded JSON diff could carry an escaped or line-split Vault value past exact-match redaction. Policy, descriptor version and path are checked again immediately before the effect, in the governed dispatch before the intent is recorded (native_capability_policy_changed), so a denial there leaves no intent. The job's grants come only from its sealed declared authority, and the host runs under the operator's current approval mode. The call records an intent (also an intent effect receipt, so stale-lease recovery never reports a clean failure), runs the host under the job's runtime trust context and fence, and seals Python's result; the provider's answer must echo it. A handler that raises is native_capability_failed; output over 16 KiB is truncated with a marker. A cancelled or unexpectedly failing owner settles its claimed job as blocked (native_governed_cancelled, native_governed_failed) and keeps the intent for reconciliation.

inference.request maps a closed purpose (interactive or background) to the canonical routes cordis_interactive_inference and cordis_background_inference and runs stream_completion_with_fallback, that is execute_streaming behind the single remote-inference broker (get_remote_inference_admission_broker()), bound to the job's lease. Interactive work keeps its priority over queued background work; cancelling a queued request releases its request record without contact; a lost response after contact is an uncertain outcome that is never replayed and adopts nothing. Since ADR-037 (#1284) the returned callback frees the serial slot at once (no charge has to be recorded first), so the next request (Cordis or chat) runs. Outbound messages are Vault-redacted (fail closed) before JSON encoding, and Cordis inference is capped at four concurrent requests per operator (cordis_inference_capacity) so a burst cannot take the broker's per-owner admission slots chat needs. Routes need a declared and proven streaming capability, as chat does. Python returns bounded frames, the sealed receipt and the job's accounting rows; outputs are Vault-redacted (fail closed) and no service returns secrets. A changed attempt, deadline or Root never seals output, and unloading the host leaves the job's intent and request record for recovery while a re-admission reuses the held job. connections.invokeBoundAdapter (#1092) admits one governed job for an operation from a closed table with closed per-operation arguments, and runs it through the existing Python owner; the child only ever receives the job reference:

  • gmail.read_message (an active gmail_readonly connection, a bound message, its source consent and revisions) runs api/mail.read_bound_message: the mail source control job and lease, the consent and label-scope fences, the Vault credential decrypted only inside the adapter after every authority callback, and a body bounded to 8 KiB.
  • calendar.read_events (an active calendar_readonly connection and its read consent) runs api/calendar.read_consented_events with publish_selection=False: a Cordis read only observes and never publishes the selected bindings /calendar/prep treats as authority. Only consented fields are returned, cut to an equal per-event budget so the result fits 64 KiB.
  • gmail.send_reviewed_reply (a paused reply-send job) is admitted only by the authenticated POST /api/capabilities/mail/reply-sends/{job_id}/cordis-execute, which makes the operator's approval decision in the same request (CSRF is the global Origin/cookie middleware) after checking that the Cordis host can run, the arguments admit and the reply awaits its decision (mail_reply_not_awaiting_send otherwise, with nothing decided); it runs mail_reply_runtime.execute under run_owned and succeeds only when this invocation claimed the send-once intent and the sent-mailbox readback carries its fence. A send already made from the UI is mail_reply_already_sent. A send that fails to start after the decision is mail_reply_approved_not_sent: nothing was sent and the approval stands, so the operator sends from the reply review or cancels. Once the send-once intent exists, or while the owner's send worker is still running (it outlives a host timeout and may still claim it), any failure (an unverified readback, a host timeout, a cancellation) is mail_reply_send_in_doubt, "verify in Sent", never a plain refusal.

Every owner check (session, connection state and revision, consent, binding, approval) runs before the intent, so a revoked or expired consent, a stale revision, an expired lease or a revoked session make no provider request. The governed job stores digests only; the labelled plaintext (origin: external_untrusted, instruction_authority: false, a prompt_injection receipt that never relaxes anything) reaches the Python caller once, in memory. Gmail's only plaintext at rest is the owner's existing encrypted control artifact under artifacts/mail/private/, which no Cordis capability can read; for Cordis-originated reads, whatever their outcome (the owner job id is derived from the governed run), it is deleted when the consent is revoked or expires, or after 24 hours: in the revoke route, at each adapter admission (this owner), at startup and every 15 minutes (cordis_mail_retention), each purge audited as cordis_adapter_result_purged. The sweep selects only terminal Cordis Gmail reads with no purge audit and pages through all of them, so newer runs never starve an older read. The in-memory plaintext is dropped on failure and after five minutes if no caller takes it; the periodic sweep expires it too. Backups taken before that keep the ciphertext until the backup itself is pruned. No Gmail/Calendar operation is a native capability through capabilities.invoke.

Cordis agent loop (#1019)​

Chat routes on the seraph.agent-loop.v1 owner row. While the row's owner is legacy (the seeded default, or an entirely unseeded inventory) REST and WS chat run the existing smolagents loop unchanged. A partial inventory without the row blocks chat as agent_loop_owner_missing and a malformed inventory as agent_loop_inventory_invalid, on both routes and in /api/runtime/status. No product path repairs such an inventory (for example after a partial restore): the operator restores the row with the fenced owner transition (ready -> draining -> blocked at a higher epoch -> ready on boot proof), under the workspace maintenance fence, and chat stays blocked until then. After the fenced cutover (ready -> draining -> blocked at a higher epoch with owner cordis -> ready on the running child's boot proof) every chat ingress runs through the Cordis agent loop; a Cordis owner that is not ready, a host that is not admitting, or use_delegation=true without a ready Cordis delegation owner (delegation_owner_not_ready, #1020 part 2) blocks chat visibly with the exact fix and never falls back to legacy. Rollback is another higher epoch. /api/runtime/status reports chat_runtime {loop, route, owner_epoch, reason, recovery} and the Settings Cordis panel shows it. The WS status line names the effective chat route, not the loop: "Chat is using DeepSeek V4.1 Flash via NEAR." (#1280). It is built from the same full readiness /api/runtime/status reports (consent, key, catalog receipt, accounting, status proofs) plus the streaming and tool_use checks, and is not sent when any of them would block the turn. The loop id stays in chat_runtime.loop and on each turn's "Seraph received the message." frame as the structured chat_loop field.

Default cutover and operator control. runtime_plugins/cutover.py holds an ordered manifest of domains whose default owner is Cordis (register_cutover_domain(domain, prerequisites=(...)); #1019 registers seraph.agent-loop.v1, and #1020 adds its domains with their prerequisites). After the host starts, the boot step moves every never-cut domain forward through the real fenced transition_owner sequence (ready -> draining -> blocked at epoch+1 with owner cordis -> ready on this boot's proof) and records a runtime_composition_domain_cutover audit event in the same writer. A domain whose provider is not built or not admitting stays blocked, and chat shows the host's exact fix; a later boot with a ready runtime completes it. A domain with a cutover marker or any operator transition is never moved by boot again, so a rollback is sticky. A domain whose prerequisites are not yet Cordis-owned is skipped. A marked, ready Cordis domain whose stored composition digest differs from this boot's reviewed build (a rebuilt package) is moved to the running build's digest at a higher epoch (digest_refreshed); until that happens chat status reports agent_loop_composition_drift with the restart fix instead of naming a stale build. A completed cutover and a digest refresh are each audited as runtime_composition_domain_boot_transition in the same writer; neither is a second cutover marker. A boot that changes nothing, for example while the host is still down, writes no audit row and reports still_blocked.

Operators move a domain live with GET /api/runtime/composition/domains and POST /api/runtime/composition/domains/{domain}/owner {target, expected_epoch, confirm_domain} (authenticated HTTP only through the global Origin/cookie middleware, audited as runtime_composition_operator_transition, the domain validated against the manifest), surfaced as one confirmed action in Settings → Diagnostics → Runtime host. A Root whose ownership_continuity is not stable can list owners but is refused a move (operator_ownership_recovery_required). Moving a domain to Cordis requires its prerequisites to be Cordis-owned (composition_prerequisite_not_cordis), and a rollback to legacy is refused while a dependent domain is Cordis-owned (composition_dependent_cordis_owned).

In production (DEPLOYMENT_ENVIRONMENT=prod|production) the backend lifespan holds the exclusive workspace owner lease (runtime_workspace_owner) for its whole life, and releases it on every exit, including a failed startup, so no backup or restore can observe a transition; a production process that does not hold the lease refuses every boot and live transition (composition_owner_lease_missing, logged as an error). Dev and test processes take no lease, so a workspace backup taken there while a transition runs has no such protection. Cordis turns are bound and block a transition while live (composition_not_quiescent); legacy turns are not bound, so a process-local gate counts them: a transition refuses while one runs, and no new legacy turn starts while any transition runs (overlapping transitions keep the gate closed until the last ends; composition_transition_in_progress). REST and WS chat re-read the route after taking the gate, so a transition that finished between the first read and the gate sends the message to the new owner instead of starting a legacy turn. Recovery text names both restarts: ./manage.sh -e dev local up for the local stack and ./manage.sh -e prod up -d --build under Docker.

One cordis_chat_turn_v1 job owns each ingress, keyed by the ingress message id. Cordis readiness, the direct-chat route preflight and the turn admission run before reserve_ingress_message, so a refused message is never a duplicate on retry; a replayed message admits no new turn and keeps today's chat_message_duplicate 409. Admission and reservation are two transactions: a crash between them leaves a claimed turn with no user row, which stale-lease recovery blocks (a later resend of that id gets agent_turn_replayed), so a user row never exists without its turn. Guardian state is still built once per turn as legacy does; each step re-validates only the cheap Root, epoch, deadline and memory markers. Turn state persists only digests, step kinds, decisions and tool receipts (tool name and outcome); observations, arguments and model text stay in the in-memory agent, redacted for WS frames exactly as legacy. The turn runs the same agent legacy builds (prompts, get_model owner, wrapped get_tools surface, onboarding surface, approvals and frames). At each step boundary a short agent-loop.startTurn invocation on its own step job asks the reviewed sequencer for the transition: the child reads only a sealed projection (step kind, call count, step index, budget; never text, a tool name or an argument) and stages finite decisions (tool_intent:<n>, continue, settlement, final_call), which Python accepts only when they equal its own parse (native_child_result_mismatch otherwise). A turn settles only on final_answer; a reply without a tool call, an unknown tool, invalid arguments and a raising tool stay smolagents observations; max-steps exhaustion makes the same single tool-less final call. Before every step and tool call Python rechecks the turn lease, fence and bound epoch, the operator Root, the deadline, cancellation and the memory revocation marker, which is read at admission (before guardian state is built) and rechecked at settlement: an operator forget or canonical delete mid-turn stops the turn before the next prompt assembly and refuses its output (agent_turn_memory_revoked). Supersede, decay and other lifecycle archiving do not trip it, and direct chat (no memory in its prompt) skips it. The marker is global, not per retrieved record, so any operator forget during a turn stops that turn (deliberately conservative). Tool intents and outcomes (succeeded, failed, no_effect for approval/clarification gates) are receipts on the turn job; the reply row is inserted by its deterministic id (insert-if-absent, an existing different row is turn_transcript_conflict) in the same writer transaction as the turn's fenced settlement CAS, so a stale epoch or lost lease adopts nothing. A WS disconnect or cancelled handler, a REST client disconnect and a timeout cancel the turn at its next boundary; the turn owner writes the single interrupted row. Restart never resumes a turn: stale-lease recovery keeps its committed and intent (unknown) tool effects visible. Direct chat keeps every current value (messages, limits, preflight before admission, REST non-streaming and WS streamed deltas, redaction, direct-openrouter-chat label); Python owns the stream and the sequencer settles it after the final text is sealed.

Disclosed differences from legacy: tool calls in one model message run sequentially in submission order (smolagents ran them in parallel); in both loops memory observations are recorded sorted by tool-call id, every submitted call still executes when a sibling raises, and that step's observation is then the error alone (legacy drops sibling observations the same way). A step asking for more than 12 tool calls runs none of them and gets a model-visible observation saying so. The tool surface digest is pinned at step 1 and compared at every later step (agent_turn_surface_changed); the child's output_ref is a per-turn HMAC of the sealed output, never a guessable digest of model text (the key is per turn owner and ephemeral, so refs cannot be re-derived after a restart; nothing needs them then, because restart never resumes a turn). Any failure between REST admission and settlement (agent build, guardian state, ingress logging, a client disconnect) closes the turn as blocked. store_secret returns a visible denial pointing to Settings -> Vault and its value never enters turn state (operator decision; per-argument sensitivity redaction is follow-up work). Unchanged by construction: a failed max-steps final call returns smolagents' "Error in generating final LLM output" text; tools have no separate deadline class (the turn budget only); direct chat keeps its runtime path, its 60 s cap (agent turns 120 s), REST without and WS with the streaming flag, and no post-turn side effects. Measured offline on a loaded host over 110 samples of the real path: a startTurn step p50/p95 92/106 ms, a tool's intent and outcome receipts 18/24 ms, and the turn admission (the only Cordis work before a direct-chat first delta; the sequencer runs after the stream) 31/40 ms, all under one 250 ms p95 budget, and a real WS direct-chat first delta about 70 ms after legacy's. The budgets are asserted only with SERAPH_CORDIS_LATENCY_BUDGET=1 on a quiet host; elsewhere the suite prints the numbers without gating (at load average ~35 the step p95 rose to ~245 ms).

Cordis presets and guardian turns (#1020, part 1)​

Reviewed presets. Every Cordis turn names one reviewed preset: chat.agent, chat.direct, chat.onboarding, and an unattended guardian.* preset for each scheduled guardian call.

  • What a preset declares: its context purpose, prompt sections, model parameters, step bound, tool policy and output contract. A preset grants nothing.
  • Python's table (backend/src/agent/presets.py) is the authority. The reviewed Cordis copy (runtime/cordis/src/plugins/agent_presets) must be identical, and a parity test checks every digest.
  • Chat steps: each projection carries the preset id and digest. The agent-loop sequencer refuses a step whose preset is unknown (agent_preset_unavailable), changed (agent_preset_changed), not interactive, beyond its step bound, or asking for tools a tool-less preset forbids.
  • #1019's profiles are now these presets, and onboarding is built from chat.onboarding: temperature 0.8, the fixed onboarding tools and the per-message URL-scoped browse_webpage.

Guardian turns. These scheduled calls run as unattended guardian turns whenever the seraph.guardian.v1 owner is Cordis:

  • the strategist decision;
  • the daily briefing, evening review, activity digest, weekly review, end-of-day analysis and screenshot observation digest;
  • memory consolidation, for every trigger.

How a guardian turn runs:

  1. Python makes exactly today's call: the same messages, model owner, runtime path, principal, broker and ledger binding.
  2. One cordis_guardian_turn_v1 job records the lineage. A scheduled run's turn is owned by service:guardian. A memory flush that runs inside an operator's turn is owned by that operator instead and bound to its Root. This covers the post-response, compaction, session-end and workflow-completion triggers. A revoked Root, or changed grants, then refuses the step and the adoption.
  3. One guardian.startTurn step may stage only settlement.
  4. The output is used only after the turn settled while the turn, its scheduler parent and the composition epoch were all still current. For the strategist, the parent is the tick's lease and fence.

Unattended presets hold no tools, so no approval row can arise from them.

Routing by the guardian owner row:

  • Legacy owner: today's path runs.
  • Cordis owner that is not ready, or whose host or presets owner is unavailable: the call is blocked with no model call and no fallback.
    • The block is persisted in Settings → background inference and survives a restart; a success clears it.
    • Activity gets an entry at most hourly while the job stays blocked, and the operator is notified once per transition into blocked.
    • The end-of-day report still writes its deterministic report, marked blocked.
    • Memory consolidation leaves the session fingerprint uncached, so a later catch-up runs once the loop is ready.

/api/runtime/status reports guardian_runtime and runtime_domains (every owner row, with the reason and fix for any that is not ready). The Settings Cordis panel and a cockpit banner show them.

Inventory upgrade. seraph.agent-presets.v1 and seraph.guardian.v1 are new domains.

  • An existing inventory gains them once at boot as legacy@1, each with a runtime_composition_domain_introduced audit event.
  • An original domain missing from the inventory is still never repaired.
  • Every agent-loop and guardian step binds the presets owner. A presets row that is still missing blocks chat as composition_dependency_missing with "Restart Seraph to seed the runtime inventory."

Default cutover order. #1019's boot cutover manifest moves the presets first. Agent-loop and guardian follow, each with presets as a prerequisite.

  • A row that is still missing at boot is introduced inside the same composition writer, then cut over.
  • An operator rollback of either new domain is sticky, as for agent-loop.

Not part of this slice: the Board worker drafts (#1020 part 3, below). A source inventory test maps every model and turn site to its owner category. It runs beside the transport-level dispatch inventory and does not replace it.

Cordis orchestrator and delegated specialists (#1020, part 2)​

With use_delegation on, the chat agent is the orchestrator. On the Cordis loop it runs under the reviewed chat.orchestrator preset, and its only tools are the specialists.

Each specialist call becomes a durable child turn. The child is a cordis_child_turn_v1 job, recorded as a child of the chat turn:

  • It is owned by the same operator and Root, with the parent's authority.
  • Its deadline is the parent's deadline less the 30 s the parent needs to settle.
  • The reviewed delegation.startChild sequencer admits it. That sequencer may stage only child_admit:<index>.
  • Its steps then run on the agent-loop sequencer, under its own specialist.* preset.

Presets. Fixed specialists have exact tool lists. MCP specialists and workflow_runner use rule presets: the concrete tools are computed at admission and pinned in the child's surface digest. A child whose temperature, step bound, route or tools differ from its preset is never admitted.

Limits. Each of these returns an observation, as legacy limits do:

  • children never delegate again ("Nested delegation is not allowed.");
  • at most 4 children run per turn;
  • no child starts once the turn's own time has run out.

A refusal before admission (nesting, the cap itself, or no turn time left) does not count toward the cap; every admitted child counts, even one that fails before its first step.

Receipts. The child's tool receipts are on its own job row. The parent's receipt for the delegating call is derived from them:

  • no_effect when the child committed nothing;
  • succeeded when the child committed effects, even before an approval stop;
  • unknown when a child effect is unresolved.

Approvals and clarifications. These propagate from the child through the parent unchanged (#1107/#1115). The parent pauses, and the operator's resume starts a new turn.

Fencing. Cancelling, interrupting or blocking the parent cancels the live children through the durable owner (cancel_job_tree). A tool still mid-call is recorded unknown on both the child and the parent.

The child's report is adopted only if all of these hold:

  • the child settled succeeded;
  • the parent is still live;
  • the Root is current;
  • the delegation, agent-loop and presets owners are still at the child's epochs.

Blocked delegation. A host, epoch or preset failure in a child stops the parent visibly: "Delegated specialist name stopped: reason". Delegation needs the seraph.delegation.v1 owner on Cordis; its prerequisites are the presets and agent-loop owners, so delegation never reads Cordis while specialists run on the legacy orchestrator. Settings' chat rollback therefore moves delegation to legacy first and then agent-loop, and its cutover moves agent-loop first and then delegation, under one confirmation; a refusal names the domain that stopped and what already moved. When chat is on Cordis and delegation is legacy (a refused second step, or an API-only rollback), Settings offers "Cut delegation over to Cordis". Otherwise chat reports delegation_owner_not_ready with the fix, or delegation_composition_drift when the running build is not the one the owner row names, and there is no fallback.

Legacy fixes in this slice. Two bugs made delegation chat fail on both loops:

  • the orchestrator read each specialist's tools as a list;
  • the governed transport could not describe a specialist as a tool.

Both are fixed.

Cordis Board worker drafts (#1020, part 3)​

The Mail reply draft (work.mail-reply-draft.v1) and the meeting brief (calendar.meeting-prep.v1) are the dispatcher's only inline model calls. When the seraph.board-workers.v1 owner is Cordis, each runs as one worker turn under its reviewed preset (worker.mail_reply_draft, worker.meeting_prep: strategist_agent, temperature 0.2, 2048 tokens, json_object, one step, no tools).

How a worker turn runs:

  1. Before the first provider contact (the Gmail or Calendar source read), one cordis_board_worker_turn_v1 job is admitted. It is owned by the task owner, bound to that owner's live Root and grants, and is a durable child of the attempt root at that root's lease and fence. If the runtime is not ready there, the attempt is blocked as board_worker_runtime_unavailable with nothing contacted, and a retry is safe.
  2. Python makes exactly today's source reads and model call: the same principal, high_risk context, ledger binding, accounting group, messages, response_format, max_tokens, timeouts and route-receipt check.
  3. After the route receipt, one board-workers.startTurn step may stage only settlement, and the fenced settlement commits. Only then does the dispatcher parse the output, re-read the source and stage the draft.
  4. A refusal at that point (a stale epoch, a lost lease, a revoked Root or a moved attempt root) blocks the attempt as board_worker_settlement_refused: "Inference was spent, no external effect was made; safe to retry." The spend stays on the attempt root's ledger row, and the draft is never adopted. A model timeout or a missing route receipt keeps today's reconcile path.

Both refusals block the attempt root with the code (it is never left running), and the Board card shows the code with its recovery text. A legacy owner runs today's path holding the drain gate; a Cordis owner that is not ready never falls back. The domain is introduced into an existing inventory as legacy@1 at boot and cut over after the presets, like guardian. The cutover manifest is registered in one fixed order in runtime_plugins/cutover.py (presets, agent-loop, guardian, delegation, board-workers), so boot receipts never depend on import order.

Python-hosted mandatory providers (#1024)​

Python always hosts the state, authority, audit and tasks providers, and since #1199 the vault provider (runtime_plugins/worker.py, operator decision on #1024): the database must be open before the ownership table can be read or the Node child started. The backend lifespan constructs one ProviderWorker, takes the workspace owner lease (production only, as before), and activates the providers in that order before anything else. Each activation runs a readiness predicate: state runs init_db, decodes the composition inventory and answers a read; authority validates the operator auth configuration (and the PBKDF2 hash shape in production), the session tables and a resolvable Vault key (configured, or a regular 0600 .vault-key; an absent file is still generated on first use); audit writes a probe runtime_audit_ready row inside a savepoint that is always rolled back; tasks checks the job and board tables and opens the durable job repository; vault (#1199) is described below. Any failure aborts startup with that provider's typed reason (for example state_init_db_failed, authority_vault_key_unavailable, audit_write_unavailable). goals, memory and artifacts follow and may only degrade. A Cordis callback blocks with native_provider_<name>_unavailable when any provider its method depends on is degraded or failed (for example audit.append or capabilities.invoke while artifacts is degraded). /api/runtime/status reports providers, rechecked on each request without writing anything: audit is checked read-only there, and the last audit write probe is shown with its time and outcome (audit_write_probe). A mandatory provider whose predicate now fails becomes failed with its typed reason, and a degraded or failed provider whose predicate passes again recovers. Rechecks and shutdown marks are serialized by one lock. Every Cordis child (re)start runs the audit write probe (bounded retries on a held SQLite writer lock; still contended means unknown, never failed; an audit provider failed by a write probe stays failed through status reads and recovers only on a passing write probe; the only in-process child start is at backend startup, so in practice it recovers when the backend restarts) and sends fresh provider reports before the host admits anything: if the reports cannot be produced (for example composition_inventory_invalid or a closed state gate) or are not acknowledged, that boot is blocked (provider_reports_unavailable, provider_report_invalid or provider_report_not_acknowledged) and its child is stopped. Importing the worker or src.app starts no consumer, connection, task, thread (other than the rate limiter's library timer), scheduler job or DB file.

db.engine.get_session has a three-state gate. With no worker attached (tests, host CLIs, migrations) and while the worker is activating or active it is open; once activation failed or shutdown began it raises StateProviderUnavailable before yielding a session. override_session_factory scopes (the isolated evaluation databases) are the reviewed bypass, and a guard test lists every engine or session-factory constructor outside db/engine.py. One outer try/finally follows the lease, so every failure point disconnects MCP, drains tracked tasks, closes the gate, disposes the engine and releases the lease. Shutdown runs the service .stop() calls with the gate still open, then MCP disconnect and the task drain, then closes the gate, then close_db, then releases the lease.

seraph.state.v1 is a runtime domain and every method depends on it. New admissions write binding schema 3 under manifest runtime-service-methods.v2. Persisted schema 1 (#1019) and schema 2 (#1020) bindings keep manifest v1 and decode and re-encode byte-identically through frozen literal manifest-v1 tables (METHOD_DEPENDENCIES_V1, METHOD_DEPENDENCIES_V1_SCHEMA1), never the live rules, so their job CAS predicates still match; committed fixtures captured from the pre-#1024 code pin both the tables and the bindings. Startup adds the legacy seraph.state.v1 row with one runtime_composition_domain_introduced audit event (introduced_by: "1024") as a chained exact-prefix step after #1020's domain introductions: only an inventory that is then exactly the previous 18 domains gains it, including on the first start after a host-CLI restore of an older backup. An empty table is seeded whole (19 domains); any other partial or unknown inventory is left to fail closed, and no existing row changes. Every row of the exact prior set must also decode (owner, epoch, digest, state, receipt, and legacy owners for authority and audit); otherwise the step refuses with composition_inventory_invalid, inserts nothing, and state activation fails with that reason. #1020's own introductions keep their shipped insert-if-missing rule; only the state step is exact-prefix (an acknowledged deviation from the #1024 addendum). The step is forward-only: an older binary rejects the extra row with composition_inventory_invalid. Take a host-CLI workspace backup before upgrading; rolling the binary back means restoring that backup. A state, authority or audit row that is not the legacy owner with the fixed legacy digest (a tampered or foreign restored row) fails the whole inventory with composition_inventory_invalid, so state activation and every binding refuse it. state, authority and audit never move to Cordis (composition_owner_not_transferable) and are not in the boot cutover manifest. An undecodable binding on a running, unknown_external_effect or cost_liability job refuses every owner transition (composition_not_quiescent) instead of being skipped; the operator resolves that one job through the existing job recovery (cancel or mark reconciled), after which it no longer blocks quiescence.

In the Cordis package the seraph.state.v1 facade (service seraphState) records what the host reports and owns no store or activation. Both profile validators require the host, state, authority and audit plugins with required: true, and every provider's dependencies are fixed (authority and audit on state; tasks, goals and artifacts on state and authority; memory on state, authority and audit), so profile configuration can neither remove a mandatory facade nor change a dependency. After the child starts, the host sends one provider.readiness frame per provider and best-effort provider.quiesce frames before runtime.quiesce at stop (a lost quiesce report never blocks shutdown). Both carry only {domain, state, epoch, composition_digest, reason_code}, flow host to child only (a child-sent provider frame fences the host like any unadmitted request), and cannot activate or deactivate anything. Private reads recheck tombstones, the Root and the composition vector in the transaction that serves them, so a forget, revoke or owner change during an in-flight read denies it and the child holds no cache. A provider or child restart never touches unknown_external_effect or cost_liability jobs and never replays their effects. Backup and restore stay with the host CLI against a stopped backend; there is no in-process maintenance handoff.

Pinned trust domains and composition dump (#1198)​

ADR-036 §3 pins the seraph-trust services. runtime_plugins/trust.py is the one code copy of that table (TRUST_SERVICES) and of the §5 domain-to-bundle map (DOMAIN_BUNDLES). Five domains have frozen owner rows today (PINNED_DOMAINS): seraph.state.v1, seraph.authority.v1, seraph.audit.v1 (#1024), seraph.tasks.v1 (#1198) and seraph.vault.v1 (#1199). seraph.inference.v1, the execution guard and operator authentication are listed with owner_row_frozen: false: named as pinned targets, not yet enforced. ownership.PYTHON_HOSTED_DOMAINS is the same set.

is_pinned_domain is the one predicate. A pinned row is always the legacy owner with the fixed legacy digest: register_cutover_domain refuses a pinned domain, transition_domain and POST /api/runtime/composition/domains/{domain}/owner refuse it with composition_owner_not_transferable (HTTP 409) and first write a runtime_composition_pin_refused audit event (domain, target, path, reason) in its own transaction, and transition_owner refuses any owner or digest change before writing. A legacy-to-legacy epoch fence (draining, blocked at a higher epoch, ready) is not a transfer and still works, so an epoch change still blocks unstarted jobs bound to the old tasks epoch. An inventory whose tasks row names any other owner fails closed (composition_inventory_invalid).

The composition dump (runtime_plugins/composition_dump.py, schema seraph-composition-dump.v1) is read-only. It lists each declared bundle with its domains; per domain the owner kind, epoch, state, owner digest, the reviewed Cordis provider digest and, live, the plugin state the child reports; the Cordis kernel facts (version, profile id, package and composition digests); the pinned domains and trust services; and, since #1204, the validated profile and the effective_patch rows (see below; the live dump reports profile: null only in a process that never booted through the lifespan). Only reason codes, digests, epochs and fixed names pass through; it reads no settings, environment values or vault content. The live dump is composition in /api/runtime/status and GET /api/runtime/composition/dump (authenticated). ./manage.sh -e dev composition dump [--node /absolute/node] prints the offline dump: it runs keyless (env -i), opens the managed local workspace's seraph.db read-only, checks the reviewed Cordis package without starting the child, and exits non-zero unless the inventory decodes and the profile validates. It is dev-only; production reads the status route.

Bundles, named profiles and the patch layer (#1204)​

This is A3.3 slice 1 (#1026) of ADR-036 §4/§6. It is part of the composition bootstrap, not a plugin. runtime_plugins/profiles.py holds three reviewed catalogues:

  • Bundles (BUNDLES): seraph-trust (pinned), then the core bundles seraph-agent, seraph-models, seraph-capabilities, seraph-domains and seraph-lifecycle, which carry today's domain rows (trust.DOMAIN_BUNDLES). Last come the app bundles seraph-cockpit, seraph-channels, seraph-edge and seraph-headless, which have no domain rows yet.

  • Profiles (PROFILES):

    ProfileBundlesDEPLOYMENT_ENVIRONMENTEnv file
    localall but seraph-headlessany non-production value (as auth and the worker accept).env.dev
    prodall but seraph-headlessproduction.env.prod
    headlesstrust, core, seraph-channels, seraph-headlesseithereither

    COMPOSITION_PROFILE selects one. Empty derives it: production gives prod, and anything else gives local. So an install that never sets it boots exactly as before. test is not a profile.

  • Patch rows (PATCH_ROWS): today only seraph.scheduler.v1#enabled (boolean). Its base layer is the SCHEDULER_ENABLED environment flag.

Boot order. The lifespan calls boot_profile() before the provider worker takes the workspace lock. That function applies the layers in a fixed order: profile bundles, then the profile's own patch, then the optional operator patch <workspace>/composition.patch.json, which looks like this:

{"schema": "seraph-composition-patch.v1",
"rows": [{"id": "seraph.scheduler.v1#enabled", "value": false}]}

The file must be a regular file (never a symlink, FIFO or device) owned by the service user, root or the workspace directory's owner (a host-written file in a container bind mount), and must not be group- or world-writable. Agent file tools and process-tool path arguments are denied it (_AGENT_DENIED_RUNTIME_PATHS). A script the agent writes and runs through the process runtime (python/node with a workspace script) can still write it, as it can mcp-servers.json; the worst result is a refused boot or a flipped scheduler row, tracked in #1216. It is not yet a declared workspace state path, so backup and restore do not carry it. It must be 16 KiB or smaller, and it is parsed as closed JSON that refuses duplicate keys.

Refusal. Any refusal raises CompositionProfileInvalid, so nothing boots: no lock, no database, no provider. The fix is logged (Composition refused: <reason> …). Profile reasons:

  • profile_unknown;
  • profile_environment_mismatch: for example prod in development, or local in production;
  • profile_no_login_forbidden;
  • profile_trust_bundle_missing: seraph-trust is absent or not first;
  • profile_core_bundle_missing, profile_bundle_unknown, profile_bundle_duplicate.

Patch reasons:

  • patch_row_pinned: any row on a seraph-trust domain, including inference and the vault;
  • patch_row_security_setting: operator_auth_*, deployment environment, bind host, journal secrets, vault key;
  • patch_provider_unreviewed: no alternative provider is catalogued;
  • patch_row_unknown, patch_value_invalid (non-boolean, so no string can carry a credential), patch_row_duplicate, patch_row_invalid, patch_invalid, patch_too_large;
  • operator_patch_unsafe, operator_patch_invalid, operator_patch_too_large.

Recovery: fix or remove the patch file, or correct COMPOSITION_PROFILE, then restart. The logged fix names a row only when it is catalogued; any other row id from the file is redacted.

Effective values. profiles.scheduler_enabled() returns the last patch layer's value for a row, or the live SCHEDULER_ENABLED setting when no layer set it. The scheduler engine (init_scheduler), the runtime lifecycle's scheduler domain, the background-inference status and the programme digest gate all read it. The composition dump shows two fields:

  • profile: state, profile_id, source (explicit or deployment_environment), env_file, bundles, operator_patch (present or absent) and digest. When the profile is invalid it shows state: invalid, reason, and row_id only when the row is catalogued (otherwise redacted).
  • effective_patch: the rows that patch layers set, with their layer.

Each bundle also carries kind and a status of selected or not_selected. The status is declared when no profile booted. ./manage.sh -e dev composition dump passes only COMPOSITION_PROFILE and DEPLOYMENT_ENVIRONMENT into its keyless run.

Not yet built:

  • Bundles select no code: the Cordis plugin set is still the one reviewed runtime/cordis/profile.json.
  • headless drops seraph-cockpit from the validated tree only. The HTTP/WS API and the web cockpit still run until they become plugin-owned (#1208).
  • The remaining composition environment flags move in #1206.

Pinned credential vault (#1199)​

ADR-036 §3 names the credential vault a pinned trust service. The provider worker hosts it as the mandatory vault provider, activated after tasks (dependency: state). Its predicate checks that the vault key resolves (configured, or a regular 0600 .vault-key; an absent file is still generated on first use) and that the encrypted secrets table is present and readable (SELECT id ... LIMIT 1). It reads no key name or ciphertext and decrypts nothing. Failures are typed: vault_key_unavailable, vault_key_unsafe, vault_tables_missing, vault_storage_unavailable. At startup a failure aborts boot. On a status recheck it marks the provider failed and mandatory_ready: false. authority keeps its own vault-key check and authority_vault_key_* codes, because operator local keys derive from the vault key.

The vault has its own owner row, seraph.vault.v1, in seraph-trust. The row is pinned and frozen at the legacy Python owner like tasks: the same is_pinned_domain predicate, composition_owner_not_transferable refusal and runtime_composition_pin_refused audit row apply. A fresh inventory is seeded with it. On an existing install init_db adds it once (ownership.introduce_vault_domain_sync), and only onto the exact post-#1025 inventory with every row decoding. The step inserts one legacy row plus one runtime_composition_domain_introduced audit event (introduced_by: 1199). It touches no other owner row, no secrets row and no key file, so stored secrets stay readable with the same key. Any other inventory is left alone. An older binary rejects the extra row (composition_inventory_invalid), so the step is forward-only. A restored pre-#1199 backup gains the row on its next start.

The vault is Python-only (worker.PYTHON_ONLY). It has no Cordis plugin or service method, and its readiness is never sent to the child. In the composition dump its entry carries only the owner row's codes and the legacy digest, with provider_digest: null. Not yet built: a seraph.vault.v1 service seam. Consumers still call src/vault (VaultRepository, crypto) directly, and a vault provider that fails after startup does not block those calls.

Scheduler and dispatcher lifecycle (#1025)​

Two runtime domains own a lifecycle, not a store: seraph.scheduler.v1 (the timers of system jobs, user cron jobs and governed schedules) and seraph.dispatch.v1 (the WorkBoard dispatcher loop and its live-worker registry). seraph.tasks.v1 stays the Python-hosted job ledger every method depends on; the dispatcher has its own domain so a dispatch owner change never bumps the tasks epoch. runtime_plugins/lifecycle.py activates the retained Python provider of a domain (the one AsyncIOScheduler and WorkBoardDispatcher.run_pass) only while its owner row is ready at epoch E and, for a cordis owner, the admitting host proves exactly that domain's reviewed plugin digest in this boot. The legacy owner uses the same path with no Cordis precondition. Each activation writes a runtime_lifecycle_activated audit event; a second activation in the same process is a no-op. The Cordis seraph.scheduler.v1 plugin remains the forward-only scheduler facade and the new seraph.dispatch.v1 plugin is a readiness-only facade (no methods, timers, store or execution). Neither starts a timer or executes work, and the existing stores (ScheduledJob/ScheduledJobRun, governed occurrences, WorkflowRunState, WorkBoardTask/WorkBoardAttempt) stay the only queues.

Startup order: provider worker, services, Cordis host start, boot owner cutover (manifest order ends with the scheduler, then dispatch, whose prerequisite is the scheduler), then the scheduler instance is built, user cron jobs are synced, and both domains activate. Unlike the #1019/#1020 domains, these two are cut over at boot only when this boot's reviewed child is admitting and proves the domain's plugin digest; otherwise they stay on the legacy owner (the identical Python mechanism), ready and unmarked (deferred / cordis_boot_proof_missing), and a later proven boot cuts them over once. An operator rollback stays sticky. Once a domain is Cordis-owned, losing the child blocks it with the host's fix and there is no automatic legacy fallback; the recovery text names the operator rollback route (dispatch before scheduler).

Every job registered by init_scheduler and every user_cron:* job is gated by a closed classification: work_board_dispatch by dispatch, the other system jobs and user cron jobs (including run_source_watch) by the scheduler. Retention and cleanup jobs (screen_cleanup, cordis_mail_retention) are exempt and keep running while a domain is blocked or Cordis is missing. An unclassified system job is refused at registration. Timers keep their phase: a tick whose domain is not active returns at entry (before the background-inference toggle, any admission or contact) and records a visible block, rather than the scheduler being paused and resumed; an EVENT_JOB_MISSED listener records skipped / missed_fire. A non-active domain is re-evaluated on a gated tick at most every 5 s, so a restarted host or a finished transition resumes work without a restart. SCHEDULER_ENABLED=false shows the scheduler domain as disabled, never blocked, with no notification.

Fences: a tick carries its activation in a context variable, and its durable effects re-check the exact ready owner (domain_ready EXISTS on runtime_composition_states) inside their own transaction: the ScheduledJobRun insert, governed reserve_occurrence and claim_occurrence, and WorkBoard promote_task_ready, claim_ready_task and block_ready_task. run_pass also checks at each mutating step boundary. A moved row refuses with composition_dependency_changed before any contact. API and manual writes outside a tick are not gated. API launches that enter the live-worker registry (research recovery, document comparison retry) refuse with dispatch_owner_not_active while dispatch is not active.

Deactivation closes admission first, then drains in-flight work within the original bounds (scheduler wrappers 120 s; WorkBoard attempts MAX_RUNTIME_SECONDS plus a 30 s settlement window). An attempt still live past that bound goes through WorkBoardDispatcher.drain_attempt_past_bound, which runs the operator cancel's own stop sequence (_stop_attempt_tree: cancel-intent checkpoint, the capability's cleanup hook, cancel_job_tree) and its tree readback (the re-read root and every returned descendant; an uncertain external effect or a live row is never cancelled). Unresolved effects stay unknown, never forced or retried. A scheduler wrapper that owns no attempt is cancelled and awaited (its durable work keeps its lease). runtime_lifecycle_quiesced is audited only when nothing is alive and every cleanup is proven; otherwise runtime_lifecycle_drain_unknown names the unknown attempts, the domain stays blocked (*_drain_cleanup_unknown) while a cancelled task is alive, and a live transition stops before the flip. A lost Cordis host deactivates the domain at once. Backend shutdown sets a closing flag before any wait (nothing reactivates and post-stop ticks persist nothing; API launches are refused), cancels an in-flight live transition and waits at most 10 s per domain, and cancels no attempt (restart recovery owns the leases, as before). Restart is a fresh activation at the row's current epoch after stale-lease recovery; the missed-fire policy is unchanged (in-memory jobstore, interval jobs resume at their next interval, cron jobs within their grace, governed schedules reserve at most one latest due slot), so a cutover equals a restart for timer phase.

Live operator transitions of these two domains through POST /api/runtime/composition/domains/{domain}/owner return 202 and run as one background step: drain at E while the row is still ready, then the fenced transition_domain writer (ready → draining → blocked@E+1 → ready in one transaction), then reactivation at E+1. Only one transition per domain runs at a time, and the domain stays claimed (status transition: reactivating) until that reactivation settles, so a released domain already shows its new activation or its block reason. A failure leaves the domain visibly blocked with its fix, or, when the row never moved, reactivates it at E without a "recovered" entry; the status shows last_transition (succeeded or failed with its reason).

Visibility: /api/runtime/status gains scheduler_runtime and dispatch_runtime (state, reason, recovery, the row's owner, owner_epoch and owner_state, in-flight and live-worker counts, and the scheduler's blocked_jobs). Entering blocked raises one notification and one Activity entry per domain; repeated blocked ticks only update the job's persisted status, and the first activation after a block writes one recovered Activity entry. Per-job lifecycle blocks are stored in the same status record as the background-inference toggles (background-inference-status.json), so Settings → Automation → Background inference shows them for inference jobs; a lifecycle block is cleared only by that job's next tick under an active domain.

Proof limits: verified with temporary SQLite state and, for the Cordis owner, host loss and live transitions, the real reviewed child; external transport and inference denied. Not yet done: the durable background_job_status table (D2) replacing the JSON status record, Settings and cockpit banner rendering of the two domain statuses, fences inside each run_pass step's own transaction (today a separate read at each step boundary), and race tests for governed occurrences, WorkBoard claims and a pending approval at cutover on a real board.

Cordis guardian research (#1008)​

#1008 runs the C2.2 goal-research pipeline through three composed Cordis roles in the reviewed profile: the research service (seraph.research.v1), the planning provider seraph.goal-plan.v1 (runtime/cordis/src/providers/goal-plan.ts) and the guardian consumer seraph.guardian-research.v1 (runtime/cordis/src/plugins/research/guardian.ts). seraph.source-extraction.v1 selects a format provider per media type from its closed profile config: plain-text and html-text (a port of normalize_source_text, including the WHATWG entity table, with a parity test) and rss-atom, a hand-written bounded reader (256 KiB input, depth 32, 4,096 elements, 64 items) that rejects DOCTYPE/ENTITY declarations, non-predefined entities and non-UTF-8 declarations; feed links stay inert text. A text field longer than 4 KiB is cut on a code point boundary and ends with … instead of rejecting the feed; an over-long link is dropped rather than cut, so no altered URL is emitted. Script and style bodies inside Atom xhtml are not content. One UTF-8 byte order mark may precede the declaration. Atom type="xhtml" content keeps its text in document order with breaks at block elements; type="text" stays literal and type="html" and RSS descriptions are normalized as HTML. Feeds served as application/xml or text/xml use the same reader. An absent planner, consumer, source extraction plugin or format mapping returns a typed block (research_plan_provider_unavailable, research_consumer_unavailable, source_extraction_provider_unavailable, source_format_provider_unavailable); there is no Python planning or extraction fallback. Changing the profile config is the only way to replace a provider; consumer code is unchanged.

Admission stages a bounded planning request (identities, revisions, public brief reference/digest, route epoch, strategy binding, issue time, original deadline and the limit/output ceilings) and admits one goal-less goal_discovery_planning_v1 service job per occurrence. The discovery history lists only the current UTC day's planning jobs for that Goal's programmes, found by their derived occurrence IDs rather than by scanning every planning row. A plan from an earlier day that did not succeed is not shown: planning only stages an inert plan (no contact, inference, cost or external effect), it is never re-run, and it admitted no discovery job, so it has no runs row either. Its recovery is the current research runtime state and a new occurrence on the next eligible day. Its single research.buildPlan invocation may only read that request and stage one plan; Python checks every binding field against the request, every limit and output cap against the ceiling, then validate_goal_research_plan, and writes its own canonical bytes as the plan artifact before the existing discovery admission. A planning job that did not succeed is never re-run for that occurrence (programme_planning_requires_recovery). Both jobs bind the reviewed package and profile digests (and so every provider implementation and its config); a later replacement only affects new admissions and an older job fails with stale_output before any inference or contact.

Python keeps pinned HTTPS, site policy/SSRF checks, consent and readback receipts. Each fetched public source is adopted as a bounded raw_source artifact (media type and UTF-8 body only, no URL, path or credential), then one research.executeAccepted call lets the consumer read the adopted extraction request and raw sources, extract them, stage each normalized snapshot and read it back. A snapshot is adopted through the existing discovery artifact owner only when it binds the raw digest and the job's pinned source provider and config digests. For the plain-text and html-text providers Python also recomputes normalize_source_text over the staged bytes (before taking the job writer) and rejects a differing output for that slot only (source_output_mismatch); the HTML provider matches Python's re.I tag-name case folding (ı/İ/ſ) with explicit character classes, and a script/style closing tag accepts exactly the characters whose CPython simple lowercase equals the opening tag's (i/I/İ together; ı and ſ only themselves); rss-atom output is provider-attested (Python bounds it but has no reference feed parser). Both normalizers strip comments, script/style blocks and tags with linear scans, so unclosed constructs cannot stall the shared child. Feed, size and line-ending rejections are recorded per source slot and appear as unavailable coverage. Block reasons shown to the operator come from a fixed Python allowlist; any other child reason is recorded as research_provider_blocked. The canonical DiscoveryBriefV1, Inbox digest and Work Board projection are unchanged, the first run still returns findings, and every result records no_learning. Inspect discovery runs adds research_runtime (live role readiness and recovery), planning jobs and per-run research_blocked_reason, each with its recovery text.

Discovery therefore requires the Cordis host. The backend lifespan starts it with CORDIS_NODE_PATH when set, otherwise the node on PATH (Node 22.12+ or 24.x). ./manage.sh -e dev local up|run first runs a keyless preflight with the same Node: when the package is missing or stale it runs cordis build; like the frontend it never installs dependencies, so a fresh checkout first runs npm ci --prefix runtime/cordis --ignore-scripts. Otherwise it prints the blocked reason (build_dependencies_missing, node_unsupported, ...) and the exact fix while core startup continues. Runtime status (Settings → Diagnostics → Runtime host) and the discovery panel carry the same fix (recovery): install Node 22.12+/24 and set CORDIS_NODE_PATH, run the npm ci above, or run ./manage.sh -e dev cordis build, then restart. The backend container image builds runtime/cordis in a node:24.13.1-bookworm-slim stage pinned by its image digest (Compose additional_contexts, which needs Docker Compose 2.17 or newer, npm 11.8.0, npm ci --ignore-scripts, npm run build) and copies that Node binary and the built package to /runtime/cordis, the path the backend resolves.

Raw public sources up to the plan's max_source_bytes (256 KiB) cross to Cordis as one staged envelope read in bounded 64 KiB artifacts.read chunks at UTF-8 aligned offsets, ending with an empty chunk; the digest covers the whole artifact and the frame limit is unchanged. Normalized snapshots stay capped at 64 KiB. The guardian research invocation may make up to 64 callbacks (other invocations keep 16). Real-child acceptance tests deny Python sockets/DNS and use fixed in-memory transports; CI builds the package with Node 24.13.1 (npm 11.8.0) and sets SERAPH_CORDIS_TEST_NODE, and the suites skip elsewhere without it.

Bounded general document reading​

Status: Partial; availability follows the independently reviewed installed revision containing the milestone. ADR-031 owns the separate document.read.v1 target; invoice comparison above remains unchanged.

The finite local profile selects one PDF, DOCX, XLSX or UTF-8 CSV against a current bounded Goal. Reserve its exact byte length/digest, stream the original to the authenticated document-source endpoint, seal its encrypted readback, then request one explicit bounded selection. The private response includes physical PDF page, DOCX paragraph/table or spreadsheet cell references and the immutable original digest. Spreadsheet formula literals and cached values remain separate; cached freshness is unknown and nothing evaluates a formula or macro. Array-formula anchors retain the exact literal text and their inert cached value; data-table formulas or formula objects without expression text explicitly block the selected extraction, with no object representation returned as evidence. Scanned, protected, malformed, external-link and oversized sources show unsupported state and recovery instead of invented content. Private evidence never enters generic task events, and selection grants no source/model egress or learning authority.

After a successful private read, select at most 16 individual cited paragraphs, pages or table cells and acknowledge their local use. “Propose local preparation” persists an inert one-step Work task; review and accept it in its existing Work card. This path makes no model call and grants no model egress. After execution, explicitly open the authenticated private preparation from that same card, including after reload. It presents only the exact selected literal excerpts with citations and separate inert formula/cached-value fields; cached freshness remains unknown. The complete private view is capped at 16 KiB and is never truncated. Missing or changed source/Goal/Root, incomplete native execution or unverified readback blocks that view. Ordinary artifacts contain references and digests, never these excerpts. Response loss offers an explicit retry of the same proposal key; selection changes clear it and do not automatically create, accept or execute another task.

The source index preserves redacted owned reservations after reload. Explicit deletion requires the current revision, tombstones first and frees charged quota only after exact private cleanup. It shows whether this host's actual bounded cross-process upload-lock proof is ready; an unproved, stopped or changed filesystem profile blocks new uploads with a readable recovery state. Restart the managed document service to obtain a fresh local proof. That runtime check applies on each peer host; this receipt does not establish native macOS execution. Interrupted uploads show their upload writer kind and a separate cleanup-only reconcile control. Recovery must exclusively acquire the original generation/ slot/nonce/source/owner-bound private lease inode before releasing the writer; it never retries, seals or adopts partial bytes. A held, missing or replaced lease remains charged. Unknown parser cleanup holds the host slot across new requests and restarts. Original-reader reconciliation accepts only its private nonce/job/digest/generation/PID-bound positive wait witness; a reap without recorded output does not reconstruct evidence. The same source family reuses current canonical input-artifact ownership, encryption and quota owners; there is no second store or queue. Independent original deadlines and positive supervision bound two lifetime attempts. Local extraction makes no provider call. Parser prelaunch filesystem failure does not publish a host slot. After positive reap, evidence adoption rechecks current Root and exact active Goal revision in the same canonical writer; stale authority releases positively closed parser capacity but adopts no evidence. A cancelled or unadopted encrypted candidate can remain cleanup-required until exact private deletion, with quota retained.

Linux local format/process receipts establish only their checked mechanics. macOS has a named native network-denial adapter but no native execution receipt; unavailable resource or network confinement visibly blocks this optional profile while the CPU core stays usable. This profile establishes literal extraction, not OCR, malware certification, model understanding or general usefulness.

Explicit local document builds​

Status: Planned target with #1011 feature-branch implementation; installation and independent full-journey review determine availability. The generation subsection of ADR-031 owns this contract separately from literal source extraction.

In Work → Describe a task, select Build a local editable document and PDF. The editor authors report, brief or workbook fields and validates their finite specification. Optional citations choose exact adopted source leaves; private discovery and selection reuse the original evidence. Create a private immutable build, review its signed specification/source/limits, prepare its inert one-step task, then reload the task-bound review and explicitly accept it through Work. Edits require a fresh immutable build and review. This path does not compose with a model or automatically repair content. The retained private-build list restores the original charged build and Task after reload; discarding an unbound staged build requires an explicit retirement request.

One original C1 native child renders editable DOCX/XLSX and direct PDF from the same validated specification. Its encrypted private build reserves 24 MiB in addition to any source charge. Genuine queued comparisons/builds share priority ordering and the source/comparison/build families share durable process capacity; Unknown or unreaped writers block new launch. A denied build retains its original queued child without claim/contact. Workbook literal strings remain strings; only separately declared supported formulas are calculated in the generated file. Imported formulas remain inert evidence.

Outputs appear on the same Work task only after original native success, positive original supervisor closure and current-owner physical readback. The original invocation must positively close stdin, consume complete bounded stdout EOF and wait on its supervisor before issuing its private persisted supervision proof. A parser witness alone or missing outer receipt after restart retains Unknown and capacity; cleanup cannot reconstruct a callback from status or PID absence. Physical capacity release does not settle Task, effect or cost state. Authenticated downloads use fixed MIME types and server basenames, with no-store/nosniff responses. Missing PDF retains the verified editable output and a bounded warning. Output publication reserves exact pending inventory before filesystem work and verifies actual private bytes outside the final native writer. That writer consumes the source-issued private readback proof and exact current authority/revision bindings without opening or decrypting output files. A missing or changed proof retains the charge. Readback and SQL are not filesystem-atomic: same-user replacement after the read remains a local race, so later downloads and retirement revalidate physical bytes.

Retire generated files preserves separate retirement predicates. Successful or degraded output requires the original terminal Task, positive supervision and verified physical output. Outputless retirement instead requires the protected fully_cancelled stop: blocked Task with native-cancel reason, ended cancelled Attempt, cancelled parent and complete settled original child/effect/cost set, with no adopted output. A never-launched build still needs that same protected full stop before Goal deletion or the original cutoff; zero contact alone is insufficient. Later current authenticated cleanup under Goal drift or expiry can only reduce retained capacity. It grants no preview, download, renewed execution or automatic replay.

Retirement tombstones reads before checking the exact fixed encrypted and pending fragments, unlinking and fsyncing, then returns quota only after the unchanged original owner/revision CAS. Missing/foreign files, partial unlink and Unknown closure keep the charge and show recovery. The original source and Task audit remain retained. One cleanup reconciliation reread is bounded to 4 KiB inside its writer; a stalled filesystem can still stall that writer. Build metadata reserves finite supervision headroom before launch (1,781-byte private codec inside the 8,192-byte metadata ceiling). The shared historical inventory blocks at its 4,096-row ceiling without eviction or a recovery bypass. The sequential journey reaching a 4,097th historical row remains unexecuted; finite overflow checks are not that proof. Actual CPU/Linux receipts do not establish native macOS execution.

OpenRouter inference contract: the integrated #736/#775 foundation routes ordinary text, vision, and embedding work through the governed OpenRouter path and removes the GPU/model-server/VLM wrapper prerequisite. The historical GPU topology below remains documented as pre-#775 develop evidence and rollback diagnostics, not a startup dependency. Named missing platform/provider receipts remain unverified; integration does not establish them. Accepted target: ADR-035 (Planned). ADR-025 permits only the separate optional NEAR HTTPS text capability described above.

OpenRouter retired (ADR-035, #1147 PR3a): OpenRouter is retired by policy. No route makes new OpenRouter contact: chat, agent and guardian turns, reports, Cordis inference.request, screenshot vision, embeddings, capability checks and screen-analysis provider selection all fail closed with the stable reason openrouter_retired, with no fallback. Text routes, including streaming chat, chat-agent tool turns and Cordis inference.request, run on the NEAR TEE text slot and screenshot vision on the NEAR TEE vision slot once the operator configures them (see below); routes without a ready slot, and embedding routes (PR3d, evidence-gated), report blocked (no_active_provider or the slot reason) in /api/runtime/status and Settings; this is expected and not a crash. The optional NEAR text Work capability (ADR-025) is unchanged. Retained OpenRouter configuration, credential, receipts, ledger rows and Unknown liabilities stay readable and settleable through Inference accounting. Work verticals move to the NEAR TEE text slot (#1159, Partial): general-task and specialist planning, Work Board card proposals, guardian opportunity assessment and plans, research dossiers, Mail reply drafts, Calendar meeting prep, communication preparation and repository repair (#1184) run there, settling from NEAR billing with no fallback. Repository repair's code-egress review shows the exact NEAR request body and names NEAR (near_tee.text via near_tee): the NEAR gateway receives the selected source and diagnostics as plaintext, attestation is not verified by Seraph, and only that consented body can be sent. Without a ready slot each vertical blocks with its stable reason, which the Work Board explains. The OpenRouter sections below describe the retained configuration and historical mechanics, not a live route. Chat reports the block as route_reason: openrouter_retired; Cordis inference.request reports the same precedence as the verticals (provider_policy_revoked when model egress is revoked, then the slot's own reason, else openrouter_retired/no_active_provider). Without a NEAR TEE vision slot, screen analysis reports no cloud provider (provider: "", provider_blocked_reason: openrouter_retired); with one it reports provider: near_tee once the operator chooses it (#1147 PR4). It always refuses openrouter; the next screen-analysis settings save rewrites a stored openrouter provider and model to empty.

This is the short operator-facing description of the current application. For the target product and locked decisions, read the Project Constitution. For exhaustive shipped detail, read Development Status.

Governed OpenRouter topology​

Seraph frontend       http://127.0.0.1:3001
-> Seraph backend http://127.0.0.1:8004
-> OpenRouter https://openrouter.ai/api/v1

The backend and canonical workspace remain local on a CPU-capable host. ADR-008 defines macOS and Linux as peer core-host targets. This accepted target does not establish new platform-specific capture or execution readiness; each selected optional adapter/profile must report its actual proof and availability. Ordinary text, vision, and embedding inference is admitted through the governed OpenRouter profile. A missing key, empty upstream allow-list, missing cloud consent, or unverified capability blocks the request and is reported as configuration-required or degraded. Local model servers and the VLM wrapper are retained only for historical diagnostics; they are not active runtime prerequisites.

The keyless implementation and health paths do not call OpenRouter or any local GPU/VLM service. Deterministic tests, intercepted transport tests, static configuration checks, and negative boundary checks are sufficient for the Epic merge gate. Live provider quality, embedding, edge, voice, and Telegram receipts are optional operator evidence and remain explicitly unverified until a separately authorised canary supplies them.

The production compose path keeps the backend on a private Docker network and does not publish its API port. The managed direct local stack is a development HTTP surface only; do not run ./manage.sh -e prod local up or use it as a production browser path because the production auth cookie is secure and requires HTTPS. The production command is the private compose path:

python3 backend/production_preflight.py --env-file .env.prod --format json
./manage.sh -e prod identity
./manage.sh -e prod up -d

Expose the authenticated API and browser through a deployment-specific HTTPS ingress. This slice does not provide that ingress or claim a live host acceptance receipt; those deployment and identity edges remain separate work.

The CPU-host preflight reports core/auth/workspace readiness separately from OpenRouter configuration. It performs no provider request and does not inspect CUDA, model weights, a local model server, or the VLM wrapper. Missing OpenRouter credentials or policy are visible as configuration_required; no local fallback is selected. When run on the host, its canonical_workspace_mount check is explicitly deferred: only the backend container can read /proc/self/mountinfo. Compose sets the mount-check flag, and the container preflight fails closed before startup when the bind evidence is missing.

Shared inference lane (ADR-035, ADR-037)​

The shared lane bounds (max queued, one in-flight request, per-owner outstanding, retries) belong to a provider-neutral inference_lane object. They are queue and concurrency bounds, not cost limits, and have safe defaults: a settings file with no inference_lane section uses them. Since #1284 (ADR-037) the lane has no spend ceiling and no reserve review, and there is no Shared inference lane panel. An older settings file that still carries spend_ceiling_microusd or request_reserve_review_microusd loads unchanged (its configuration digest and consent stay current); the fields are ignored and dropped on the next ordinary save. A PUT /api/settings/model-fabric that sends them, or any request_cost_bound_microusd or max_cost_microusd, is accepted and the fields are dropped; they are never echoed back. Spending limits are set in the NEAR account. Independently of any save, startup publishes the same route-scoped revoke once (witnessed, revision CAS, no ledger change, idempotent); a failure is shown as route_revoke: degraded under Settings and never stops startup.

Settings tabs (#1280)​

Settings has six tabs and always opens on Model. The panels moved from the earlier 17 tabs unchanged; a merged tab only adds a heading naming the old tab above each panel it absorbed, except where the panel already shows that name (General, Workflows, Repo Sandbox, background inference, Skills, Discover, MCP).

TabHolds (old tab)
ModelModel card, then one-line Screenshot analysis and Memory search rows (Model)
GeneralTheme, workspace hints, operator session, interruption mode (General); tool policy, MCP access and approval mode (Policies)
AccountsTelegram, Calendar, Mail, GitHub, Forgejo, Moltbook, Native
AutomationWorkflows, Guardian, Repo Sandbox, screenshot folder, background inference jobs, end-of-day reports and email delivery
ExtensionsSkills, Discover, MCP
DiagnosticsClosed folds: Runtime host, Model routes, NEAR slots, Retired OpenRouter, NEAR text (legacy), Cost ledger, Capability checks, Audit log

The service tab is Accounts, not "Connections", because the cockpit already has a Connections page. Every old section id still works as a deep link (openSettingsSection in frontend/src/lib/settingsNavigation.ts, and the WebSocket settings_section field): it opens the tab that now holds the panel and scrolls that panel into view, for example native opens Accounts at Native, policies opens General at Policies, audit opens Diagnostics, and artifacts and model open Model; background-jobs opens Automation at background inference. The panel stays in view while panels above it load their data (a ResizeObserver re-places it, no timer), until the operator scrolls, types, touches or clicks inside Settings, or focus moves into it by any route (focusin), switches tab or closes Settings. The tab bar stays visible at the top while Settings scrolls. Only the active tab mounts, so Skills, Discover and MCP load (and MCP polls) only while Extensions is open.

#1280 PR 3 emptied the Model tab's old "Advanced and diagnostics" fold. Nothing was removed and every control saves through the same endpoint as before:

Control (old place: Model → Advanced and diagnostics)NowDeep link
Screenshot folder path, Choose, Save; analysis switch, provider, counters, inspect address, Scan folder, Clear stale (under the folder's closed Details)Automation → Screenshot Folderscreenshot-folder
End-of-day reports (Preview, Send, Test) and Email deliveryAutomation → Reportsreports
Cordis runtime host (host dump, composition and package hashes, seraph.*.v1 domain owners)Diagnostics → Runtime hostruntime-host
Inference gateway, model-fabric topology, profiles, routes, fallback, proofs, local runtimeDiagnostics → Model routesmodel-routes
NEAR TEE text, vision and embedding slot editors, catalog receipts, re-indexDiagnostics → NEAR slotsnear-slots
OpenRouter setup (retired)Diagnostics → Retired OpenRouteropenrouter
NEAR text (legacy)Diagnostics → NEAR text (legacy)near-text
Spend history / inference accountingDiagnostics → Cost ledgercost-ledger
Manual canaries, Prove route, proof lifetimeDiagnostics → Capability checkscapability-checks
Audit log (was already on Diagnostics)Diagnostics → Audit logaudit

Diagnostics folds are closed when the tab opens and mount their content on first open, so the audit log fetches only once its fold is opened; a deep link opens the fold it names. The cockpit's "inspect accounting" action opens the Cost ledger fold.

The Screenshot analysis row reads /api/settings/artifact-storage (screen switch and provider) and the NEAR vision slot. It says Off, Paused (needs your OK), One quick test left, Blocked or On. Turn on asks for both the plaintext OK and the separate screenshot OK (never pre-ticked), saves only the vision slot with the stored values and no key, sets the analysis switch to the NEAR vision slot, and runs the free catalog check; it makes no paid call. Run test shows its cost line (four checks) before the click. Turn off only switches analysis off; withdrawing screenshot consent stays in the NEAR slots fold. The Memory search row reads the NEAR embedding slot and index projection. Since OpenRouter's retirement there is no usable embedding model: the NEAR embedding slot stays shut on the ADR-035 evidence gate, so the row says "Off. There is no embedding model to use right now." and that search matches words, not meaning, with only a Details link; it offers nothing to turn on. There is no Budget row (ADR-037).

The Model card (#1280)​

The Model tab (formerly "Models & OpenRouter") starts with the Model card: one status line saying whether chat works, the model in plain words ("DeepSeek V4.1 Flash, hosted by NEAR"), and at most one button. Below it sit the Screenshot analysis and Memory search rows. Everything the tab showed before (Cordis runtime host, screenshot folder, model routes, the retired OpenRouter setup, NEAR text, the detailed NEAR TEE panel below, accounting and canaries) moved unchanged to Automation or a closed Diagnostics fold (#1280 PR 3, table above); the card's Open Diagnostics button opens the NEAR slots fold.

The card reads GET /api/settings/model-fabric and /api/runtime/status.effective_runtime and shows the first of ten states that applies: loading; unreadable, settings unreadable (Open Diagnostics, which opens the fold); missing_key (one key field, Save key); not_set_up (model picker and consent tick, Turn on chat); needs_ok (Allow and turn on chat); near_down, NEAR not answering (Try again); needs_test, one quick test left (Run test); route_unknown, route status unreadable (Try again); ready, chat on (Change model); or blocked for another reason (Open Diagnostics). First-time order is key, then model and OK, then test; there is no budget step. Since #1284 (ADR-037) the card has no new-month, overrun, no-budget or budget-used state and asks for no dollar amount. "Chat is on" needs both effective_runtime.inference_ready and a ready text slot with no reason code, and reads "<Model>, hosted by NEAR. $3.20 used this month." (with "2 requests are not priced by NEAR yet (all months)." when some are unpriced, or "Nothing spent this month."). The unpriced count covers every month, not only this one. Spend history labels an unpriced request "answered, not priced yet" only when the provider answered; a call that failed after contact reads "no answer, not priced", one whose outcome restart recovery lost (reason provider_outcome_unknown, also shown for such rows recovered before #1284) reads "outcome unknown, not priced", and one still running "in progress". "NEAR not answering" is only this session's last failed required check. The card adds no time logic of its own.

Allow and turn on chat is enabled only after the operator ticks "I understand NEAR sees my messages as plain text: no end-to-end encryption, and Seraph does not verify NEAR's secure hardware." The tick is never pre-ticked and resets after every save. The click saves the stored text slot unchanged with the acknowledgement and no api_key (the stored key is kept), runs the free catalog check at the new revision, then runs only the missing chat checks (health, latency_ms, text, streaming, tool_use, then the optional structured_output, whose failure never blocks chat). The cost line ("It sends 6 tiny paid requests, about $0.02 in total." for example, computed from NEAR's listed price) is on screen before the click, and the card never runs more paid checks than it showed. Every step uses the existing endpoints; consent and check semantics are unchanged. Under the card's own closed Details are the slot limits, catalog receipt, check results, reason codes, the line "Spending limits are set in your NEAR account.", Run structured output check and a Turn off chat link. There is no "Per-request reserve" row.

A blocked chat message is plain and provider-neutral ("Chat is paused until you give your OK. Nothing was sent.") and never names a cost reason: a chat turn is blocked only for no OK, revoked egress, no key, no model, a missing test or capability, a conversation too large for the model, unreadable configuration or NEAR not answering. The WebSocket error frame carries code, recovery_action and settings_section: "model"; the chat shows an Open Settings button that opens the Model tab with the card in view.

Configure the NEAR TEE text slot (ADR-035, #1147 PR3b/PR3c)​

Status: Partial until live operator use; nothing is enabled by default. The Model card above covers the usual path. The detailed controls are in Settings → Diagnostics → NEAR slots → NEAR TEE · text slot:

  1. Enter the NEAR API key (write-only, stored as vault:near_api_key, separate from the NEAR text key; only a fingerprint is shown), pick a text model from the allowlist (z-ai/glm-5.3-flash, Qwen/Qwen3.8-27B, deepseek-ai/DeepSeek-V4.1-Flash-1017, Qwen/Qwen3.6-35B-A3B-FP8), set maximum input and output tokens, timeout and catalog refresh hours (how often Seraph re-reads NEAR's public catalog in the background; not an expiry), tick the plaintext acknowledgement and save. Saving and refreshing never call NEAR.
  2. Press Run catalog check. It reads NEAR's catalog record for the model only (no inference) and passes only for providerType=vllm, attestation supported, verifiable, ready, text in/out and enough context. The catalog prices are recorded for display; no cost bound is checked (ADR-037). When NEAR's record omits isReady (as for deepseek-ai/DeepSeek-V4.1-Flash-1017), readiness is inferred from the vllm, attested and verifiable fields and the slot shows "Readiness inferred"; an explicit not-ready flag still fails. The receipt does not expire with time; any later settings save needs the check again, so re-run it after saving.
  3. Press Run capability check: three billed, mechanics-only requests (text, health, latency) through the shared lane, producing the proofs that dispatch requires. Streaming chat and agent tool turns need their own streaming and tool_use checks (the same endpoint); a tool check is refused with near_tee_model_tools_unsupported unless the catalog receipt lists tools.
  4. Press Run structured output check (one billed request) before JSON callers such as the task planner, strategist and session consolidation use the slot; without a current proof they are blocked before contact, whatever NEAR's catalog lists.

These checks are a one-time setup (ADR-035 amendment 2026-11-14, #1178): once passed they stay valid until the model, a slot setting or the NEAR key changes; age never blocks the slot. A save that fails does not count as a key change; a wrong key is caught per request by NEAR's own auth refusal, and the key binding only tracks deliberate key changes. Settings shows each slot's catalog basis ("setup check at <time>") and when NEAR's catalog last confirmed it. Seraph re-reads the public catalog record in the background shortly after startup and then every few hours (at most 6, sooner with a lower refresh setting). A failed read keeps the last confirmation. If NEAR reports the model not ready, removed, not attested or otherwise unfit, Settings shows a warning ("NEAR catalog reports <model> not ready since <time>") but requests are not blocked; a request to a model that is really gone fails on its own (model echo or provider error).

Reasoning models (the receipt lists reasoning, e.g. DeepSeek V4.1 Flash, GLM 5.3 Flash, Qwen3.8) spend reasoning tokens inside the maximum output: set it to at least 4096 (Settings shows this hint below that), and at most 8192 when the catalog lists no output limit (DeepSeek at $0.30/$1.20 per million: 8192 input + 4096 output costs about $0.0074). Capability checks for these models send up to 1024 output tokens. An answer cut off by the output bound fails as near_tee_output_truncated after its cost settles; raise the maximum output and retry.

The slot then serves text routes such as the end-of-day report, the screenshot observation digest, the daily briefing, chat (streamed over the WebSocket), chat-agent tool turns and Cordis inference.request, behind the one serial broker with chat priority over background work. /api/runtime/status effective_runtime names near_tee, the model and the dated catalog label only while the slot is the active chat provider, and lists the streaming and tool_use check state. Billing is read back after a streamed reply, best effort within the time left before its deadline; text already shown stays shown, but a cut-off, echo-mismatched or malformed stream fails the turn after its cost is recorded. Closing the chat or a timed-out turn ends the stream but still reads billing back, so the lane is not left blocked. A lightweight chat turn's deadline sits 2 seconds inside its outer timeout (60 seconds or the configured chat timeout if lower), shown as chat_turn_cap in /api/runtime/status; keep the slot timeout within that deadline. Tool arguments must be strict JSON objects, and only offered tools may be called. Upgrading to this version changes the slot's profile hash: re-run Run catalog check and each capability check before use. Report labels read "TEE-hosted per NEAR catalog as of <time>; NEAR gateway receives plaintext; attestation not verified by Seraph; no end-to-end encryption". Seraph does not verify attestation and there is no end-to-end encryption. A missing NEAR billing record leaves the request "not priced yet" in Spend history; it blocks nothing and the answer is delivered. A model echo mismatch or empty answer has its cost recorded and is not adopted. Vision and embeddings are described below.

Configure the NEAR TEE vision slot (ADR-035, #1147 PR4)​

Status: Partial until live operator use; disabled by default. In Settings → NEAR TEE · vision slot · screenshots (same panel and key):

  1. Pick a vision model (z-ai/glm-5.3-flash, Qwen/Qwen3.8-27B, Qwen/Qwen3-VL-30B-A3B-Instruct, deepseek-ai/DeepSeek-V4.1-Flash-1017; DeepSeek's missing readiness flag is inferred from its attested record), set limits, tick both the plaintext acknowledgement and the separate screenshot consent ("screenshots are sent to the NEAR gateway in plaintext"), and press Save NEAR TEE vision slot. Saving one slot keeps the others.
  2. Press Run catalog check: the vision slot passes only with image input, and the receipt records whether NEAR lists structured outputs (JSON schema requests) or not (strict prompt-JSON).
  3. Press Run vision capability check: four billed, mechanics-only requests (vision, structured output, health, latency).
  4. Optional when the catalog omits structured outputs (DeepSeek): press Run JSON-schema structured output check. If it passes, screenshots use JSON schema requests while that proof is current ("a current capability check established JSON schema requests"). If a later JSON-schema check fails, JSON schema requests stop and the slot is blocked until a prompt-JSON check passes: press Run vision capability check (it now runs prompt-JSON) or Run prompt-JSON check. The reasoning hint shows what a 4096-token maximum output costs at the receipt's catalog prices.

Then choose NEAR TEE vision slot as the screen-analysis provider (choosing "off" keeps background analysis off while the slot stays configured). The vision timeout is capped at the background job budget minus the billing window and a 10 s margin (94 s by default). When NEAR starts listing structured outputs, a prompt-JSON proof needs a new structured output capability check, because that proof records the request mode; Withdraw screenshot consent blocks the slot without removing it. Screen analysis must stay enabled under the screen settings. Large captures are re-encoded for NEAR (long side 2048 px, JPEG) without changing the stored file. Daemon uploads and screenshot-folder images then queue as pending, the existing background analysis job sends one screenshot at a time (at most 8 MiB, image counted conservatively against the input limit) below chat priority, and the validated analysis feeds the screenshot digest and the end-of-day report. Until it succeeds, a daemon upload's on-device text is the digest content. An invalid answer, echo mismatch or empty output is recorded as failed (cost recorded); a missing consent, missing or rebound receipt, missing proof or oversized input is blocked with its reason and makes no NEAR contact; a missing billing record leaves the request "not priced yet" and blocks nothing. The daemon makes no cloud call; it reads daemon_cloud_provider: null from the screen settings and only uploads. Screenshots are plaintext to the NEAR gateway; the TEE label is NEAR's dated catalog claim, not Seraph-verified confidentiality.

NEAR TEE embedding slot and memory re-index (ADR-035, #1147 PR3d)​

Status: Partial and blocked. The panel's embedding slot section shows "NEAR embeddings stay off until source evidence shows the embeddings and billing endpoints honour x-no-aliasing (ADR-035)" (near_tee_embedding_evidence_required). No setting, catalog check or capability check can clear this; it needs a reviewed ADR-035 amendment. Until then the capability check and re-index stay disabled, NEAR receives no memory text, and recall shows Recall: lexical. NEAR's current catalog record for the model also has no readiness flag, so the catalog check reports the slot not ready even after an evidence amendment; that amendment must also decide how readiness is handled.

Once the gate is cleared, the operator flow is:

  1. In Settings → NEAR TEE → embedding slot, pick Qwen/Qwen3-Embedding-0.6B, set maximum input tokens per request, inputs per request (1–64), timeout and catalog refresh hours, acknowledge that memory text is sent to NEAR in plaintext and save (saving never calls NEAR).
  2. Run catalog check (shared with the text and vision slots), then Run embedding capability check: three billed mechanics requests that also measure the vector dimension.
  3. Enter a maximum number of memories, acknowledge the memory egress and press Start re-index (there is no re-index budget since ADR-037). The run embeds canonical memory in bounded batches at background priority below chat, shows progress (indexed, already current, spent so far), stops at the item count or on Cancel re-index (a batch already sent finishes and is billed), and Resume re-index continues from what is already indexed. Recall switches to semantic only after a run covers every active canonical memory.

After indexing, new memories and recall queries are sent to NEAR. If a new memory's vector cannot be written, or a memory is created or edited without one, recall returns to lexical with the reason shown until another run. More than 10,000 memories cannot be covered by one run, so recall stays lexical (near_tee_reindex_over_cap). Saving one slot never fails because another slot's consent has lapsed; that slot just shows as blocked.

Vectors are stored locally in a namespace for this provider, model and measured dimension; older OpenRouter vectors are never mixed in or queried. Changing the model or dimension needs a new re-index. A missing NEAR billing record during a run records that batch as "not priced yet" and the run continues; it no longer ends in cost_liability and the shared lane is not held (#1284, ADR-037).

Configure the OpenRouter route (Epic #736/#775)​

OpenRouter is retired (ADR-035): the settings panel shows "Retired (ADR-035) — no new requests; existing costs can still be settled", every control that could activate it is disabled, and the settings API refuses OpenRouter saves and capability checks with openrouter_retired. The text below records the historical setup contract for retained configuration; its request-cost bound, deployment ceiling, reserve review and overrun latch no longer exist (ADR-037).

Open Settings → Diagnostics → Retired OpenRouter (formerly the Model tab's Advanced and diagnostics fold, the Models & OpenRouter tab, and before that Screenshot/VLM) and use its OpenRouter setup section to save the fixed https://openrouter.ai/api/v1 route without editing an environment file. Enter one qualified provider/model ID and explicit upstream allow-list for each enabled purpose: text, vision, and embedding. Each purpose has its own capabilities, temperature, output cap, timeout, and request-cost bound; an absent or disabled purpose has no invented selection or fallback. Text covers chat, reasoning, reports, and memory synthesis. Screenshot understanding uses vision; vector operations use embedding. The three profiles share one key, finite deployment ceiling, lifecycle witness, and serial admission lane. Persisted controls govern caller bounds on every resolution; legacy environment controls cannot override a saved v2 slot. Vision and embedding require separate explicit purpose consent and zero data retention. Fallbacks remain disabled.

The API-key field is write-only. A supplied key is stored through Seraph's encrypted vault and the response exposes only credential_configured and a short fingerprint plus the non-secret credential reference. Leaving the field blank preserves the existing server-side reference and fingerprint. Credential and configuration updates first publish the complete target as revoked, then install the key and review the existing accounting ceiling/reserve, then activate the same target only against the exact intermediate revision. A concurrent save returns HTTP409. Refresh current settings, review retained edits and acknowledgments, and save explicitly; the browser never retries a mutation against another backend. An interrupted save remains revoked or continuity-degraded until explicit reconciliation and re-save. If final publication is uncertain, credential compensation first reads the actual configuration and witness; an exact active target keeps its new key. The browser does not retain the field, and saved configuration and status payloads contain no key value. With no key, status is explicitly configuration_required and the route is not silently usable. On restart the backend hydrates a vault-backed credential before resolving the first route; if the vault is unavailable or empty, the route remains blocked.

Independent review identified malformed saved v2 controls or purpose consent that could interrupt settings and status reads. Strict validation now reports degraded / configuration_unreadable. Reading this configuration preserves its saved bytes, performs no automatic repair or activation, and makes no provider request.

Saving and reading setup metadata never call OpenRouter. The existing manual canary targets an exact enabled purpose profile and returns capability proof, including measured embedding dimension, without retaining the generated vector. Status shows each purpose's model, readiness reason, and proof expiry. A vision-only edit retains an unchanged text profile's proof; queued requests still recheck the current global policy epoch before contact. Legacy v1 reads preserve their exact capabilities and existing consent without rewriting files or manufacturing proofs. A projection incompatible with a v2 slot is visibly blocked until explicit reviewed save; stored v2 rejects legacy writes with HTTP409. Local tests intercept provider transport; real availability, quality, costs, and embedding usefulness remain externally unverified.

Daily-use readiness (#1068)​

  • Text-route defaults. A new text route proposes text, tool_use, structured_output and streaming: direct chat adds streaming, agent turns with tools add tool_use, and planners use structured_output. Routes saved earlier keep their declared capabilities until re-saved.
  • Context window. Each route has an optional context_window_tokens (1,024–2,097,152). When unset, the generated profile declares 65,536 tokens instead of max(max_output_tokens, 4096). Stored routes without the field keep their exact serialized form; the new default applies when the setup is next saved, which also requires proving the route again. The window is an operator assertion: it is not checked against the model's real context length, so a value above the model's limit fails at the provider instead.
  • Dollar inputs (removed). The historical setup took a monthly ceiling and a per-call request bound, and a charge above the bound latched every further call until reviewed. ADR-037 (#1284) removed the inputs, the latch and its review; OpenRouter's max_price was never sent and max_tokens still caps output at the route's max output tokens.
  • Proof lifetime and Prove route. The canary section offers a 1-, 8- or 24-hour proof lifetime (the backend maximum, published as canary_proof_ttl.max_seconds). Prove route runs one canary per required capability plus health and latency_ms, in order, and stops at the first failure. Each canary is a real, billed provider call. The chat composer meta line shows PROOFS nH LEFT, PROOF EXPIRED: <capability>, PROOF FAILED: <capability> or PROOF MISSING: <capability> from /api/runtime/status.
  • Specific blocked reasons. A route denial carries the selector code, and an exactly bound proof that aged out is reported as proof_expired:<capability> rather than proof_missing:<capability>. WebSocket and REST chat (including agent turns wrapped by the agent framework) name the capability and the recovery, e.g. Prove route, declare a capability, or raise the context window. REST responses add route_reason and recovery_action beside the stable no_compliant_route code. Slot status adds proof_reason. A denial is reported as a preflight block ("No model call was made", remote_outcome: not_contacted) only when no call of that chat request reached a provider transport; an agent turn denied after an earlier step called the model is a mid-turn block (failure_stage: mid_turn_route, remote_outcome: contacted_before_block) whose message says earlier calls may be billed and their tool actions stand. Only explicit exception causes are unwrapped, never an earlier handled route error.
  • Background inference. GET/PUT /api/settings/background-inference and the Background inference panel list the scheduled jobs that may call the text route (strategist tick, memory consolidation, daily briefing, evening review, activity digest, weekly review, end-of-day report analysis, screenshot observation digest) with approximate calls/day. All default ON. A switched-off job makes no model call and records skipped with reason disabled_by_operator in the scheduler audit and the panel; end-of-day reports still run deterministically without analysis. Toggles persist in background-inference-settings.json in the workspace. It is optional canonical workspace state: workspace backup and restore carry it when it exists, and an archive taken before any toggle was saved restores with every job at its default. An unreadable file pauses scheduled model calls and reports background_inference_settings_unreadable; a single-toggle save is then refused (HTTP 409) and the panel asks for every job's value plus an explicit confirmation (replace_unreadable: true). The memory_consolidation toggle gates every consolidation trigger (scheduled catch-up, post-response, workflow completion, pre-compaction and session end). guardian_opportunity_assessment (#1112) is an analysis-only toggle: off, its tick still closes expired candidates, adopts already-contacted results and keeps Unknown handling, but starts no assessment or second attempt; a queued candidate keeps reason_code disabled_by_operator (or background_inference_settings_unreadable) until its deadline, then closes as assessment_deadline_expired. A paused tick never overwrites an operator cancel (cancel_requested, assessment_cancel_requested, operator_cancelled), so after re-enabling, the admission authority check still refuses the cancelled row. screenshot_folder_analysis (#1112, vision route) is a whole-job toggle; pending screenshots wait until it is on again. While it is off, the skip is audited once per transition (into the skip, or to a different reason) and then at most hourly, because the job polls every second; the panel's last_skip still updates on every run. Both toggles are read when work starts, not mid-call: an assessment whose execution task was started before the switch still makes its one call, and a screenshot tick already running finishes its current batch. Both are event-driven, so the panel shows their basis ("per queued item") instead of a calls/day figure. Explicitly outside the toggles: chat title generation (one text call per new conversation, chat-triggered) and POST /api/observer/screen-artifacts/{id}/reanalyze, an explicit operator action on one screenshot that runs even while screenshot_folder_analysis is off.

Local cockpit interaction boundaries​

Paired-channel Task capture (#1022) is Partial:

  • Telegram capture. With an authenticated capture selection on the existing pairing (Settings → Accounts → Telegram), a /task message from the paired user and chat creates exactly one review-only Triage Task under the selected Goal. The provider event id is reserved before creation, so a replay returns the same Task, and the same id with different content is refused as replay_conflict. Messages from an unpaired user or chat are blocked with telegram_identity_not_allowlisted and create nothing.
  • Telegram controls. Exact-revision inspect, pause, resume, cancel and "open exact cockpit review" act on the captured Task; there is no remote approval or replacement attempt. Work continues in the cockpit, where the plan is reviewed, edited and promoted as for any Task. A small document attachment enters C6 quarantine only through the explicit document selection.
  • Voice input: removed. Seraph has no voice input (#1179, operator decision 2026-11-14; the operator dictates with their own tool). The push-to-talk control, /api/audio/*, the audio ingress worker, the audio_ingress_cleanup job and the audio documentation settings endpoints are gone, and ADR-033 is retired. The audio_ingress_jobs and audio_consent_grants tables are kept unused with their existing rows; nothing creates or advances them, and they are no longer listed as effective grants. Deleting a conversation still deletes its historical audio rows. On each start a one-shot best-effort pass removes the retired worker's fixed default quarantine directory (realpath($TMPDIR)/seraph-audio): regular files, then empty directories. It never follows or removes a symlink, refuses the whole directory if any entry is a symlink or special file, never touches another path, never blocks startup, and logs its counts. A stored setup.v3 still saves, but its audio slot can never be enabled again (audio_route_retired), and no audio_transcription_v1 run can be admitted or contacted. Telegram voice notes keep their existing metadata-only, always-degraded handoff record.
  • Audio documentation source objects under .model-fabric/ (historical; the acquisition endpoints were removed by #1179) are declared cache workspace state: backups and restores succeed with or without them, and they are never archived. Their canonical attestation rows stay in seraph.db, and startup still reconciles settled private staging.
  • Channel signing. Capture origins and cockpit output links are HMAC-signed with a key derived (HKDF, seraph.channel-capture.v1) from the workspace vault key, so a stock production deployment with only OPERATOR_AUTH_SECRET_HASH needs no new setting. CAPABILITY_JOURNAL_SECRET, then OPERATOR_AUTH_SECRET, overrides that source when set; the stored password hash is never used. An unreadable vault key fails closed with channel_output_signer_unavailable, and production_preflight.py reports it as channel_signing_key. Changing the source (setting or removing an override, or replacing the vault key) is not migrated: earlier capture origins fail closed with channel_capture_origin_changed and need operator recovery, and earlier output links (valid for at most five minutes) fail with channel_output_handle_invalid. A failed Telegram button control returns telegram_canonical_control_unavailable and keeps its typed cause in Telegram status (last_error, shown in Settings → Accounts → Telegram).

Live Telegram delivery, provider operation and native macOS/Safari capture remain unverified by these provider-free checks.

The managed development cockpit may be opened over local HTTP for text and operator controls. It never requests microphone access (voice input was removed by #1179).

Onboarding presents an explicit Skip onboarding action in the cockpit, in the conversation dock and the More menu while onboarding is active. It uses the live WebSocket when available and the authenticated REST profile endpoint while the socket reconnects; the UI only reports success after one of those paths accepts the update. If no compliant OpenRouter route is persisted, chat reports that it was blocked before provider contact and tells the operator which setup controls are missing. That state does not imply an uncertain provider outcome and does not trigger an automatic retry.

Home also has a bounded Your first verified result journey behind the explicit Open first-result setup control: choose a deterministic local snapshot or public-source baseline plus snapshot, review the $0 model cost and finite permissions, queue a typed task through the managed dispatcher, and explicitly open its independently verified result. Progress is owner/session-scoped in the existing activity ledger. The public watch starts with scheduling disabled and is paused after observation. A baseline is not a material-change dossier; both starters record no_learning. This remains Partial within its declared profile limits. The managed keyless local journey and artifact digest are verified; live public-source usefulness remains unverified. See Guided First Result Setup for bounds and recovery.

The production backend's canonical workspace is the host path configured by BACKEND_DATA_PATH_PROD, mounted only as WORKSPACE_DIR=/app/data. The managed maintenance commands resolve that bind before doing any work and fail closed on missing, symlinked, or ambiguous roots. Container preflight also requires SERAPH_PRODUCTION_MOUNT_SOURCE to match the /app/data mount source reported by /proc/self/mountinfo, and requires SERAPH_PRODUCTION_BIND_IDENTITY. Generate the latter after the absolute BACKEND_DATA_PATH_PROD directory exists; it binds the resolved configured path to its device/inode identity so a different directory on the same device cannot satisfy the container check. A writable directory or generic volume alone is not treated as proof of the configured host bind:

./manage.sh -e prod backup
./manage.sh -e prod restore --archive <archive> --confirm

./manage.sh -e prod identity prints the redacted digest to place in SERAPH_PRODUCTION_BIND_IDENTITY; it never prints the host path or secret values. A successful managed restore or rollback returns the new digest in bind_identity_refresh, and the next managed ./manage.sh -e prod up -d refreshes it automatically before Compose interpolation. Direct Compose users must copy that receipt (or rerun workspace_cli.py identity) before starting the container after an atomic root replacement.

Archives and restore staging are derived siblings of the host bind and are not active workspace roots. Archives contain checksummed canonical files and redacted secret metadata; recovery preserves the required vault key but drops optional integration tokens. The production preflight requires dedicated /app/data mount evidence from /proc/self/mountinfo, the configured source identity match, and the configured path/device/inode identity match. The backend holds the same bind-local owner lock for its lifetime so backup and restore fail closed while writers or the scheduler are active; lifecycle code hard-links that lock inode into the staged generation before promotion, so the fence survives the directory rename. Backup and restore reject a source manifest that omits any declared required canonical path, and archives enforce both per-member and cumulative uncompressed payload bounds. Public lifecycle helpers require the production maintenance-fence context. Restore resets only empty declared derived directories; a stored derived index that has no bounded rebuild hook blocks promotion. Staged operator sessions and durable workflow authority rows are revoked or blocked before promotion. The current slice proves deterministic local inventory, archive validation, staged promotion, rollback journaling, durable status receipts, and provider-independent maintenance. The owner fence is exercised by a competing subprocess, and restore journals bind the active, staged, previous, and promoted roots to device/inode identity; status also blocks when the current root no longer matches the last successful bind identity. Root replacement, symlink endpoints, archive traversal, special-file members, and promotion disk errors fail closed while retaining a recoverable journal. Rollback carries tombstones, revocations, configuration history, unresolved cost liabilities, and existing target safety rows without overwriting newer values, alongside session invalidation and workflow authority blocking into the retained generation. The checked-in drill is an isolated temporary workspace; it does not prove a live production-data restore, retention/disk-pressure capacity, or an interrupted CLI recovery when the active root is absent.

Historical develop topology​

The following topology describes the pre-#775 develop baseline and remains in the repository as migration evidence. It is not an active route on this branch and must not be used as setup guidance for the OpenRouter-only phase.

Seraph frontend       http://127.0.0.1:3001
-> Seraph backend http://127.0.0.1:8004
-> GPU VLM wrapper http://192.168.1.26:8001
-> GPU model server http://192.168.1.26:8000/v1

The historical ADR-004 target placed the core on the GPU host and used a paired Mac edge. ADR-008 supersedes that fixed placement with an operator-selected macOS or Linux core host. Historical GPU services were reached over documented HTTP APIs. ssh jupyter is an administrator path for inventory and maintenance, not application transport or a required tunnel.

Run The Current App​

cp env.dev.example .env.dev
./manage.sh -e dev local up
./manage.sh -e dev local status

Open http://127.0.0.1:3001 for the cockpit and http://127.0.0.1:8004/docs for API documentation. Stop with ./manage.sh -e dev local down.

In a managed development shell, use ./manage.sh -e dev local run and keep the foreground session open while verifying live behavior. Direct uvicorn, Vite, or detached child-process launches are not the supported lifecycle path.

The backend settings object also reads the repository .env.dev directly unless SERAPH_SETTINGS_ENV_FILE names another file (empty means none). manage.sh and the compose files never set it. The backend test suite sets it empty, removes settings variables other than WORKSPACE_DIR from its environment, and runs in TZ=UTC, so neither a checkout's .env.dev nor a shell that sourced it can change a test result.

Useful probes:

./manage.sh -e dev local status
./manage.sh -e dev local workspace-status
curl -sS http://127.0.0.1:8004/health
curl -sS http://127.0.0.1:8004/api/runtime/status
curl -sS http://127.0.0.1:8004/api/settings/artifact-storage

For a production compose configuration, inspect the same receipt before starting the backend:

python3 backend/production_preflight.py --env-file .env.prod --format json
./manage.sh -e prod up -d
./manage.sh -e prod health --format json

/health is the core process check. /api/runtime/status is the authenticated runtime receipt and may report OpenRouter configuration_required while the local core remains healthy. A live provider or host receipt requires a separate operator-approved probe and is outside this offline launch check.

The managed health command is a read-only, keyless release-gate collector. It writes a redacted JSON receipt to the canonical workspace under operator-receipts/epic-736-health/ and reports stable exit codes. It checks OpenRouter policy, remote admission, durable/guardian/security/memory/evolution source contracts, and the absence of configured local inference routes. It does not call OpenRouter, a GPU/VLM service, Whisper, Piper, or a connector. Live provider, embedding, edge, voice, and Telegram evidence is reported as skipped/degraded until a separately authorised canary supplies a receipt; those omissions never become a superiority claim.

The bounded #920 profile adds Send neutral Telegram notice in the current task's inspector, available with the installed reviewed program revision. Pair the operator/chat and grant Telegram transit consent in Settings → Accounts → Telegram first (numeric user and chat IDs, write-only bot token, grant/revoke transit consent, unpair over the existing /api/telegram API). Explicit status review sends enum metadata; exact denial and cancellation use current canonical authority. Sensitive approval and recovery remain in the cockpit. Unknown delivery requires visible outbox recovery or an explicit fresh notice that retires old controls. The provider-free adapter is Partial and does not prove live Telegram; the owning reach contract records the bounds and validation surface.

Production API access is authenticated with a server-side, single-operator session. Generate a PBKDF2 password hash in the backend environment, store it in the deployment secret store as OPERATOR_AUTH_SECRET_HASH, and set DEPLOYMENT_ENVIRONMENT=production, OPERATOR_AUTH_COOKIE_SECURE=true, and the exact operator host/origin allow-lists. The raw password and session cookie must never be placed in browser configuration or logs. A manual provisioning and login receipt is:

cd backend
uv run python -c 'from src.auth.service import encode_secret; print(encode_secret("REPLACE_ME"))'
curl -c /tmp/seraph.cookies -H 'Origin: https://cockpit.example' \
-H 'Content-Type: application/json' \
--data '{"password":"REPLACE_ME"}' \
https://api.example/api/auth/login
curl -b /tmp/seraph.cookies -H 'Origin: https://cockpit.example' \
https://api.example/api/auth/session

For a private LAN cockpit, replace the production host and origin allow-lists with the exact LAN hostname/IP and browser origin (for example, seraph.lan,192.168.1.50 and https://seraph.lan). The same boundary is enforced for unsafe HTTP requests and WebSocket upgrades. An authenticated operator may use model-fabric setup and canaries from that configured LAN boundary. Loopback is not an authentication shortcut: without a configured credential every API route stays locked unless the explicit local no-login mode below is enabled.

The login/session/refresh/logout endpoints are the canonical provisioning surface for the current single-operator deployment. Host headers with ports such as 127.0.0.1:8004 are normalized against the configured allow-list. Unauthenticated API requests fail closed; the explicit unauthenticated bypass is accepted only by test configuration. A WebSocket rechecks the session at a bounded interval and closes when the session is revoked or expires. The cockpit now gates protected UI startup on /api/auth/session, provides a login form, and returns to login after a revoked or expired session. When no server-side credential is configured it shows the PBKDF2 provisioning command and keeps the core locked until the managed backend is restarted. Browser API requests use credentialed cookies across the local frontend/backend ports; raw passwords and session tokens never enter frontend state. Multi-operator identity ownership remains outside the current single-operator boundary.

Local single-operator mode without login (#1161, branch-local)​

On the #1161 branch, one operator running Seraph on their own machine may opt out of the password with OPERATOR_AUTH_LOCAL_NO_LOGIN=true in .env.dev (default false; never enable it in a committed environment file). Startup refuses the mode with a named error unless all of these hold: DEPLOYMENT_ENVIRONMENT=development; neither OPERATOR_AUTH_SECRET nor OPERATOR_AUTH_SECRET_HASH is set; the test bypass is off; BACKEND_BIND_HOST names a loopback address (the managed ./manage.sh -e dev local launcher exports 127.0.0.1 beside its --host 127.0.0.1); and the Host and Origin allow-lists each contain a loopback entry. Uvicorn binds its socket only after application startup, so the bind check fails closed on the process command line: it accepts only a uvicorn (or python -m uvicorn) invocation with an explicit loopback --host, at most one worker (--workers, UVICORN_WORKERS, WEB_CONCURRENCY), no inherited --fd/--uds listener, no non-loopback UVICORN_HOST, and loopback-only proxy trust (--forwarded-allow-ips / FORWARDED_ALLOW_IPS, so * is refused). uvicorn.run(...) entry points such as backend/main.py and gunicorn are refused because their bind is invisible to the process. The per-request checks below remain the enforcing boundary. Docker development is not supported because container peers are not loopback.

Every request is still checked. The peer must be loopback, and every hop in X-Forwarded-For, X-Real-IP and Forwarded must be loopback too (403 local_peer_forbidden). The Vite dev server proxies /api and /ws with xfwd, so if it is exposed on a LAN (for example SERAPH_DEV_SERVER_HOST=0.0.0.0) the remote client's address reaches the backend and is refused instead of appearing as the loopback proxy. A browser request marked Sec-Fetch-Site: cross-site is refused (403 cross_site_forbidden), which covers Origin-less no-cors GETs and image loads; only the paired selected-text companion's exact closed ingress is exempt. Host must be in OPERATOR_AUTH_ALLOWED_HOSTS and itself a loopback name, so configured LAN or test names are refused; state-changing requests and the WebSocket handshake need an Origin from OPERATOR_AUTH_ALLOWED_ORIGINS with a loopback host, and any Origin a browser sends on a safe request must pass the same check. This blocks cross-site pages and DNS rebinding (the Vite dev server additionally rejects unknown Host headers).

Requests resolve to one persisted local operator root: an ordinary OperatorSession row with an operator:root:* principal, the normal operator grants (not the test-bypass identity) and a bound OperatorIdentity. It has no bearer token and no expiry, is created once and is reused across restarts, so conversation, Work, browser and WebSocket ownership stay stable and the existing revocation watches poll it like any other root. Owner-scoped reads and durable owner fences recheck that the request's root is still current; a password request proves this with its bearer hash, and the local root proves it with its row marker, which no cookie can hash to and which retirement rewrites. Every current-root and owner fence accepts that marker only while the mode is on, so a stale local context is refused as soon as the mode is switched off. Goals, Work board tasks, routines, memory records and ownership recovery therefore resolve under the local root exactly as under a password session (#1175). Login, refresh, logout and ownership credential changes (enroll, recovery-code rotation, forget-device, identity revoke) answer 409 local_no_login_active. When the mode is later switched off, the root has no authority (session, principal and WebSocket checks refuse it) and the next startup revokes it; re-enabling binds a new root to the same live identity, so earlier work is reachable through the read-only ownership recovery contract rather than revived authority. Capability-journal and attachment-receipt MAC roots in this mode derive from the workspace vault key, never a password hash.

Startup records an operator_auth_mode audit event with local_no_login=true, the principal and the declared bind, and /api/runtime/status exposes operator_auth: {mode, local_no_login, login_required}. /api/auth/session adds auth_mode: "local_no_login" and local_no_login: true only in this mode, so the password contract is unchanged. The cockpit gate goes straight into the cockpit with a visible No login (local only) badge (also shown in Settings in place of Refresh/Sign out) and offers no login or setup screen.

Risk: any local process, browser extension or page that passes the loopback, Host and Origin checks has full operator authority, including model inference, capability execution and artifact transfer. A loopback reverse proxy that drops or rewrites X-Forwarded-For (unlike the managed Vite proxy) would let its remote clients appear local, so do not put any other proxy in front of the backend in this mode. Use it only on a single-user machine you control; production and test configuration are unchanged and still require their credential or explicit test bypass.

In every mode, an AuthFailure that a route or service raises after the middleware is answered by an app-wide handler with its reason code and a typed status, never a 500 (#1175): session verdicts and a rejected ownership_proof_invalid 401 (as at login), boundary and ownership-proof refusals 403, recovery_record_unavailable 404, auth_not_configured 503, and other ownership/recovery state conflicts 409. Routes that already map their own failures are unchanged.

On the #895 corrective branch, a refresh rotates only the bearer hash while retaining the active OperatorSession.id and absolute expiry. The retired hash is stored in a revoked tombstone and cannot authenticate or become an owner. Login, session, and successful refresh receipts expose ownership_continuity=stable or legacy_rebind_required plus the explicit ownership_recovery_action. A stable value means the same active owner remains current across bearer refresh; logout, idle/absolute expiry, and a new independent login still revoke or isolate the prior scope under the existing contract. Existing pre-corrective replacement rows are reported as blocked recovery: historical grants and approvals are not restored, and the cockpit keeps an accessible notice directing the operator to review and recreate work in the current scope. A separate audited recovery design is required before historical scopes can be migrated.

The #900 ownership implementation adds a separately reviewed private continuity credential and exact read-only recovery contract, described in Operator ownership and recovery. Availability requires the installed reviewed program revision; it never restores prior grants, adopts ambiguous legacy history, or substitutes a retired execution root.

The task inspector also exposes local, goal-scoped evidence working sets. Citation references are revalidated against canonical records and verified artifacts before inspection or explicit model-context adoption. Exact selected historical records remain read only, and historic/private source egress remains blocked for the generic strategist purpose. Availability requires the installed reviewed program revision; provider usefulness remains externally unverified.

/api/runtime/status and /api/settings/artifact-storage are the active operator receipts. They expose the effective OpenRouter route, consent, allow-list, budget, admission state, and disabled local-runtime reason. A configured key or model is not evidence that a live provider route is healthy.

Cockpit reads do not queue behind another SQLite writer (#702). Every authenticated request still checks revocation and both session expiries; the sliding idle-expiry touch and the expiry-revocation write wait at most 250 ms and are otherwise deferred (touches then pause for 2 s), so the session is not extended that time and an expired session still fails closed. Other storage contention during authentication answers a retryable 503 auth_storage_busy (a WebSocket handshake closes with 1013), not a 500 or a login-forcing 401. /api/runtime/status reads the accounting ledger without the writer lock and takes it only to persist a newly observed accounting period; admission still re-checks the ledger under that lock. Native notification reads write only when an expiry or binding transition is due and, while the lock is held, present that transition as terminal until it persists. Chat turns and the memory panes check canonical memory tombstones in a read-only snapshot and take the writer lock only to re-apply one after a stale restore (#1074); one guardian-state build checks once, and its snapshot cache write waits at most 250 ms. Expired queued insights and pending approvals are never shown as active; their cleanup is best-effort on read. Diagnostic audits emitted by reads and idle daemon polls wait at most 250 ms and are otherwise retried in the background, not dropped (empty polls are audited once per worker per 5 minutes); write-path and inference-policy refusal audits keep the normal wait. Write transactions that hold the lock for 1 s or more are logged with their call site.

Current Capability Summary​

Shipped foundations: the browser cockpit, FastAPI backend, conversation, goals, memory and guardian state, settings, scheduler jobs, approvals, activity and audit views, tools and workflows, artifacts, reports, extension adapters, screen-observation storage, and VLM integration points exist on develop.

Partial: long-horizon guardian behavior, durable execution, isolation, cross-surface identity, selected voice/messaging channels, and outcome-first UX need Epic #736 milestones. Existing canaries or deterministic receipts do not make those product capabilities complete.

Operator work board (Epic #864 M6)​

The M4 work-board slice adds an authenticated, single-operator Kanban surface under /api/work-board. Seraph's SQLModel/SQLite workspace remains the canonical task store; WorkflowRunState remains authoritative for execution, leases, attempts, effects, checkpoints, and unknown external outcomes. A task card can therefore show Triage, Todo, Ready, Running, Blocked, Review, Done, or Archived while its durable workflow receipt remains the execution evidence.

Review and handoff actions require a current owner session, the latest fenced attempt, and an independently verified readback containing a stable artifact or readback identity plus the producer's verification timestamp. A generic worker summary cannot complete a card. Expired review cards require the named reviewer's renewal path; unknown external effects require reconciliation and are never replayed automatically. Manual Specify and Decompose requests are provider-governed proposals that remain staged until operator acceptance; a missing route or authority is visible as a blocked recovery state.

Typed general tasks (#997)​

Available on the installed develop revision containing the independently reviewed #997 merge. This section describes the intended post-merge contract; it does not establish model quality or complete the later interpreter and specialist-child work in #998 and #999.

The Work panel accepts ordinary intent, an owned Goal, requested output and explicit limits. The operator does not author tool-specific forms to request a task. Planning requires separate model-egress acknowledgment and the existing current policy, consent, capability and inference admission checks. Since #1284 (ADR-037) there is no task or group dollar allowance: call counts, step limits, deadlines and wall time stay. A create request that still sends max_cost_microusd is accepted and the field is ignored; stored task envelopes keep their recorded values and still verify. The canonical general_task_planner consumer uses the text purpose, interactive workload and priority, OPERATOR_INPUT provenance, and text plus structured_output capabilities. It uses the existing durable inference accounting owner. Evidence content, credential references and tool permission declarations are excluded from its model messages; unavailable secret redaction blocks planning.

POST /api/work-board/general-tasks captures the server's current typed tool descriptor snapshot and creates one ordinary WorkBoardTask. Its bounded plan and input share an immutable private artifact. Repeating the same owner-scoped request returns the same card without contacting the planner again. A valid proposal remains in Triage for review. Invalid model output remains an editable Triage card with a visible proposal error and no task execution Root. Missing authority, route or consent returns the current blocked reason rather than silently selecting a fallback.

GET /api/work-board/general-tasks/tools reports descriptors, their digest and excluded tools with reasons. GET /api/work-board/tasks/{id}/plan reads the owner's plan and acceptance state. POST /api/work-board/tasks/{id}/plan edits the same unattempted Triage card using exact task and plan revisions; it stages a new immutable artifact and revokes the previous binding. The existing promote action accepts only the reviewed current revision. The inspector keeps acceptance unavailable while edits are unsaved. Plans contain at most sixteen closed typed steps, literal inputs and declared dependency pointers; they carry no executable expressions or permission grants. Admission also proves that each registered output satisfies its step contract and that the final step satisfies the requested output contract. Even equal schemas require an inhabited, known safe supported contract; unsupported unique array cardinalities block before effects. Regex matching permits only literal ASCII patterns with optional start/end anchors, the exact SHA-256 pattern and the native HTTP(S) URL prefix pattern. Other patterns and patternProperties are rejected before matching, including finite enum/const candidates and input validation. Incompatible contracts remain editable proposal errors.

Accepted work uses the existing dispatcher, WorkflowRunState, leases, fences, effect journal and verified readback. Current owner, Goal, evidence, strategy binding and descriptor policy/revision are checked before admission and each step. Native tools retain current approval, audit and secret wrappers; MCP tools require a complete trusted typed contract and current connection revision. Task MCP output requires a finite schema and a bounded owned transport: raw response bytes are capped before SDK/result JSON parsing, with strict depth, node and serialized-output bounds. Oversized contacted output retains its unresolved effect and cannot be adopted as an artifact or automatically retried. The current task adapter requires a stateless inline identity-encoded MCP response; sessionful, compressed or deferred responses and GET resumption are blocked through the existing capability/recovery surface. While a task guard is active, an oversized outgoing POST on that same MCP connection is rejected before contact because its request binding cannot be decoded within the bound. This can also reject a concurrent oversized interactive POST; ordinary bounded interactive calls and other connections remain usable. Without an active task guard, this outgoing restriction is inactive. Unavailable or changed contracts block execution. An unknown contacted effect is retained for reconciliation instead of automatic replay. Successful output is a bounded private artifact with physical hash readback, and the card enters Review. Completion records an explicit no-learning result; task success alone does not update canonical memory.

A mediated tool approval pauses the same durable Root only after the existing approval wrapper proves it has not contacted the tool. The card shows its exact pending approval and original deadline. The exact unconsumed pending or already approved request is bound without changing its arguments, scope, fingerprint or expiry. One existing SQLite writer commits that binding, the no-contact checkpoint/readback, paused Root and blocked open attempt together. An interruption rolls the whole wait back; an approved row without the wrapper proof is insufficient to recover a wait. Approval alone does not queue work. The owner explicitly continues the current task and plan revisions, original attempt, approval, workflow revision and fence. Generic paused-job resume cannot cross this wait. The canonical writer checks the current approval, policy, inputs, descriptor and already verified physical outputs, then reacquires the same attempt with a new lease fence. The tool wrapper consumes the approval once immediately before contact. Expired, denied, revoked, stale or uncertain bindings retain a visible recovery block.

Isolated API-to-dispatcher receipts exercise genuine current native file reads, durable accounting, acceptance, physical artifact readback and restart replay. Actual local MCP fixtures also exercise the current approval wrapper and same-attempt continuation, including consecutive approvals and rejected stale, revoked, uncertain or physically changed output bindings. The planner HTTP response is intercepted inside the test: these receipts make no external provider call or spend and make no usefulness or quality claim.

Bounded native task interpreter (#998)​

Intended Shipped scope after reviewed merge: available on the installed develop revision containing the independently reviewed #998 implementation merge. It extends the typed task contract above. The existing Python dispatcher and managed local run/up/down/status lifecycle remain the execution owner. The optional Cordis host does not execute this interpreter; #1007 owns the later bridge migration.

Acceptance starts one bounded native parent and actual typed tool children. Dependency inputs come from physically verified private child artifacts. Admission, tool contact, approval continuation and final assembly recheck the original Root, Goal, input binding, current policy and canonical task/attempt fences. Verified child outputs remain separate from the parent's final readback; only verified final assembly sends the card to Review. Artifacts remain private, and execution records no_learning without a canonical-memory write.

Planning and any bounded continuation share the original accepted inference group, call allowance and absolute deadline (no dollar allowance since #1284). Only acknowledged planning can continue after a verified result; manual zero-call plans do not contact a model. Private tool inputs and output bodies do not enter continuation messages. A paused edit uses the existing full-Plan replacement contract through /plan/revise: only unadmitted rows are editable, while every admitted, started or completed row must remain unchanged. Editing stays paused and does not renew leases, attempts, fences, permission or deadlines.

The inspector exposes safe Pause, Resume and Cancel for native task work. Pause requires verified quiescence; an active or unresolved original callback blocks it. Resume continues the original uncontacted remaining work. Tool approval binds the exact original child and manifest; explicit continuation uses that same child attempt once under the original deadline. Missing or stale bindings and historical root-only tool intents require reconciliation. Restart can recover the same admitted, unclaimed child or assemble already verified outputs. Running or Unknown effects cannot be replayed.

Cancel fences further admission and late output adoption immediately. The card shows pending while the original callback remains unresolved, then callback_closed_outcome_debt if its actual closure leaves an uncertain effect. fully_cancelled requires positive original closure and no effect debt. When the original Future physically returned and its output was already verified, cleanup can settle debt using the same source-retained original root, exact original intent, canonical call and artifact readbacks, and literal private output bytes. This grants no new execution and adopts no parent output. A settings change can still permit that cleanup read from the original root only with its source witness. Missing, foreign or tampered evidence, a changed original-root inode, or uncertain callback closure retains debt. Lease expiry and process absence do not establish safe cancellation; they retain visible Unknown recovery. A repeated cancellation returns its original action receipt without renewing execution. Protected history has fixed capacity reserved before contact; exhausted history rejects admission early rather than losing space for cancellation and closure receipts.

Typed MCP discovery uses the stock client's original advertised input and output schemas. The trusted declaration must exactly match the bounded closed input schema, and current connection/policy identity remains bound at approval and contact. Unsupported or changed metadata blocks the tool visibly. The three-tool integration journey exercises actual file read/write, stock MCP JSON-RPC discovery and one approved operation through an owned local HTTP transport, with physical private output readback. API recovery tests cover paused full-Plan edits, original-child restart, held-callback cancellation, original returned-readback cleanup after a workspace settings change, full reserved history and corrupt-evidence recovery; UI tests cover exact control bindings and truthful cancellation states. These isolated Linux receipts make no external provider call or quality claim. The contract is OS-agnostic; native macOS execution remains unverified.

Bounded specialist delegation (#999)​

Intended Shipped scope after reviewed merge: available on the installed develop revision containing the independently reviewed #999 implementation merge. It extends the accepted native task contract above, using the same Python dispatcher, canonical Work cards and governed inference accounting owner.

An accepted plan can invoke the fixed specialist_delegate tool. The server reserves the original parent/step association and publishes a real specialist Work card with an immutable private input. Both cards expose reciprocal navigation after canonical publication. This is informational lineage, not a dependency edge or permission: Attempt/job identities are labeled reserved until the existing dispatcher actually claims them. Missing or foreign cards remain unavailable through the existing owner-filtered inspector.

When the parent has an accepted reviewed task method, the authenticated private specialist reservation revalidates that parent's original immutable method pin. The child executes its narrower server-reserved plan and allowed tool subset, without selecting a fresh general method or inheriting the parent's full tool sequence. Original owner, Goal, callback/fence, request and handoff bindings remain mandatory. Ordinary public task admission still selects the current method and requires its complete reviewed sequence; caller-supplied lineage cannot authorize a narrowed plan.

The original group permits at most two active and four retained specialist children and one specialist depth; a specialist cannot delegate recursively. Planning and execution share the original task's allowance of at most twelve inference calls and absolute deadline; delegation sums steps and calls, not cost (no dollar allowance since #1284). No child obtains a new inference lane, approval, Root or call allowance from its lineage. Selected execution evidence is copied into a bounded private handoff under current producer, Goal and owner checks. The child consumes that sealed copy; it does not regain an arbitrary source path or inherit credentials. Changed source or Vault metadata, missing or altered copied artifacts and unrelated pointers block the governed use.

Proposal publication, specialist planning, stop compilation and partial-review cost readback each use three private indexed queries: one-row checks for missing or invalid classification, then at most thirteen original-group rows to detect overflow beyond twelve. Released, settled and Unknown history remains included; original evidence, group, owner, Root, ordinal and deadline bindings still determine authority. Canonical startup strictly classifies legacy rows in batches of at most 128; malformed or unsupported evidence stays invalid for fail-closed admission. Historical financial membership seals retain their original typed defaults and field presence; migration neither normalizes retained evidence bytes nor reseals existing journals. The private lookup hint is not a grant or integrity seal against arbitrary direct database edits.

The stopped workspace CLI accepts the old schema and its sole added private hint column for backup/restore and continuity readback. Restore leaves that hint NULL; canonical startup migration must classify it before governed accounting is ready. Other unexpected columns still fail closed.

Ledger verification (#1086). Reserve, contact, settle and status reads no longer load or re-hash the deployment ledger. Each reservation stores a private derived ledger_row_digest of its financial content. The account record holds running totals (open bound by state, settled amount by period, per owner and rows per period; totals schema version 2 dropped the former overrun set, #1284), and the v2: account digest covers that record plus the ordered root of every stored row digest. A hot writer checks the external witness, recomputes that root and the account digest, verifies every row it reads or changes against its digest before resealing it, and admits only against the sealed totals. Since #1284 (ADR-037) ledger continuity is display-only: deleted, inserted or re-sealed rows, totals edits and a witness rolled back behind the database are detected on the next operation, but do not block inference. The writer reseals from the rows present (row digests, totals and witness), appends a history_gap entry (reason and time) to the account's settings history and logs a warning; the request then proceeds. The reseal is sealed by that writer's single final persist, so the witness is written once per transaction and never ahead of a transaction that rolls back; a writer that refuses after resealing discards the reseal, and the next writer reseals again. At most 16 gap entries are kept (the first and the latest). The accounting snapshot reports history_verified: false with history_gap_since (the first gap), and Spend history shows "Spend history may be incomplete since <date>". It does not return to true. A database behind the witness (the witness names a newer revision or another deployment, for example an older database restored under a newer witness) is never resealed: its missing writes may record a started provider contact, so every writer refuses with accounting_continuity_unavailable until accounting-reconcile replays the retained checkpoint for one interrupted commit or the latest ledger is restored. A content-only edit to a row no operation touches is found by full verification. That re-validates every row's evidence, key, content digest and the totals, and runs on the first accounting writer of each process, on any writer once the last full pass is over 20 minutes old, on the rare writers (recovery, settings saves, denial quiescence, research funding/rebind/cancel, research readback), at startup recovery, every 10 minutes from the inference_ledger_verification scheduler job (a deferred read that, after an in-lock re-check, reseals and records a history gap instead of latching accounting), and in every workspace CLI tool. The scoped reads cannot be emptied either: a general-task group read must return exactly the sealed member count for that group, a discovery programme read the sealed count of discovery-service rows, and the near-text outstanding check reads a sealed per-owner count of reserved and contact_started rows (an unpriced row no longer counts), so hiding a row by editing its lookup key, owner, job, state or runtime path is still counted or recorded as a history gap. Startup recovery migrates a v1 ledger forward after its full v1 check (checkpoint with no operations); v2 is forward-only, and an older build reports accounting_continuity_unavailable for a v2 ledger. Since #1284 startup recovery likewise verifies version-1 totals and reseals them as version 2; an older build refuses version-2 totals, so rolling the application back needs a database from before the upgrade. The deployment binding and the provider-policy record are still verified and still block (accounting_deployment_binding_unavailable, provider_policy_continuity_unavailable): they are a consent fence, not a cost limit. accounting_continuity_busy (two writers contending for the lock) stays a transient retry. Restored rows without a stored digest are fully verified and backfilled before they are trusted.

Private handoff publication discovers at most twelve distinct specialist callback identities from validated original-group reservations, then checks each through an exact unique run-identity lookup. Original owner, Root, callback kind, reservation, current delegation and narrowed envelope checks remain mandatory; unrelated same-Root job history is not scanned. The existing full Vault fingerprint still scales with all secret rows and bytes. These bounded lookups do not make the entire publication path independent of global workspace size.

The parent enters a durable wait rather than holding an active callback while the child works. Reconciliation uses the original protected reservation and actual child execution/readback. Restart can continue that retained wait or adopt already verified physical child output without launching another child. Only verified parent assembly reaches Review. A failed sibling retains the successful child's private output and visible original accounting; it does not convert partial work into successful final assembly. Outcomes record no_learning; task or child success does not update canonical memory.

Cancel on the original root fences the complete original direct/specialist descendant set and further output adoption. Held pause also stops admission; it provides no new resume bridge for uncertain work. Original callbacks, Unknown effects and contacted cost liabilities stay visible. A stop receipt, lease expiry, absent process or reserved child identity does not prove positive callback closure. Existing original-source closure and accounting readbacks remain necessary for reconciliation; the partial-review action cannot supply them or renew execution.

For eligible stopped work, the GeneralTask inspector shows producer-issued verified specialist steps and exact private output references. Inspect each selected artifact through the existing artifact inspector, then explicitly acknowledge the remaining effects and accounting debt. Opening that inspector alone is not a successful physical-readback claim. The existing task action accept_partial_results binds the original task revision, Attempt, workflow, manifest and plan revisions, selected steps and one UUID idempotency key. The server physically verifies those selected outputs and records an immutable SpecialistPartialResult.v1 review artifact without changing the original Task/Attempt, stop state or callback closure. This metadata review can occur after the original execution cutoff; it grants no new contact.

Accepted selections remain partial review pending debt, never full task success. The display separates the historical unresolved jobs/effects at acceptance from current unresolved job, effect and cost-operation counts and current cancellation state. Even zero current counts or later genuine stop reconciliation cannot make that decision a full-success result or authorize resume. An uncertain POST retains its exact original request for explicit reconciliation; there is no automatic retry or new selection. Exact replay after restart still requires the current authenticated paired owner before stale-revision handling. Foreign or recovered read-only access cannot accept or replay private decisions; changed selections, stale source and mismatched bindings require inspection and recovery.

Native specialist journeys, copied evidence tests, durable wait tests, stop tests and authenticated partial-review tests exercise actual production owners and private physical outputs with only the final approved model/MCP transports scripted. The partial UI tests cover inspection, exact replay, owner changes and truthful historical/current debt display. These isolated Linux receipts make no external provider call, quality or general callback-recovery claim. Native macOS execution remains unverified. The optional Cordis bridge remains separately owned by #1007.

The reviewed-method specialist journey completes a real native source task and its operator review, derives and accepts its signed method, then executes a new parent under that immutable pin. Both narrower children reach Done with distinct physical outputs; the new parent reaches Review and still awaits its normal operator completion. Legitimate continuations retain each callback's exact admitted revision and digest from the verified finite consecutive revision manifest; the executed step must equal the final frozen step and its private inputs must match current dependency resolution. Missing revisions or altered source bytes block lesson eligibility. Method compatibility uses detached descriptors from the genuinely started dispatcher registry when available, with stage and final-writer rechecks. Those descriptors describe compatibility only and grant no execution authority.

Bounded execution evidence (#917)​

The existing task evidence inspector can bind an exact reviewed packet for execution with a separate unchecked acknowledgment. This grants no model egress, external permission, approval or dispatch. Eligible sources are current owner/Goal canonical operator facts and verified browser, evidence-dossier or local-report outputs; each artifact producer binds only its matching consumer, as specified by ADR-014. Current source, Root, Goal, task and packet bindings are checked before new use, including each browser subrequest. Mail and Calendar evidence remains private inspection only and cannot become an execution dependency or generic model context through a purpose flag.

Read-only affected-task inspection changes nothing. A separately reviewed bounded impact page can pause stale pending work while preserving running, completed, Review and other blocked tasks. Explicit replacement binding clears only the exact evidence pause to Todo; it preserves executor inputs, attempts and deadlines and does not approve or dispatch. Reload inspects retained exact requests without automatically resending them. Historical terminal replay remains readable after a correction without granting new use or adoption.

Specify generation stores the protected actually-used source snapshot. Only the original native job's exact verified generated-advisory-output readback can settle that proposal for reconciliation or acceptance; a generic successful effect cannot. Proposal acceptance binds the exact canonical prepared input to the same task, and pending input binding is displayed separately from dispatch readiness. A generated proposal is advisory output, not execution of its task. The isolated October 3 operator journey exercised governed generation, acceptance, native browser readback, future artifact use, correction, safety pause and explicit rebinding with no learning. Model and public HTTP responses were intercepted and nonlocal sockets denied; live provider quality remains unverified. These receipts establish the bounded profile; availability requires the installed reviewed program revision.

Epic #864 M5 adds a candidate from a verified task outcome only after independent readback. The candidate keeps its task, attempt, workflow, artifact, goal revision, content digest, provenance, confidence, and supersession evidence. Accept, edit and accept, reject, and rollback are operator actions; only an accepted candidate writes canonical memory. Failed, weak, unverified, or irrelevant outcomes record no_learning.

Epic #864 M6 can draft a versioned declarative procedure from an operator- selected, verified research task and its linked verified follow-through task. The preview binds the source tasks, attempts, artifacts, readbacks, owner, session, goal revision, and fixed capability steps. Operator acceptance and the existing capability-pack review and activation lifecycle are required before reuse. Each invocation gets fresh goal revision, grants, approvals, budget, tasks, jobs, and readback. If a run needs publication, the operator inspects an exact same-card preview, approves it through Pending approvals, and resumes the same durable routine parent. The card reaches Done only after independent readback.

Availability of these bounded work-board profiles requires the installed reviewed program revision. They do not claim full Hermes parity, autonomous execution, memory superiority, or production readiness.

Communication preparation (#1016)​

Intended Partial scope after independently reviewed merge: this describes the source branch for #1016. Availability requires its implementation merge in the installed develop revision. The existing Python lifecycle owns this composition; configuration alone does not make Mail or Calendar ready.

In the private Mail review or Calendar event selection, explicitly add current sources to communication preparation. Choose the same current owned Goal, review the selected sources, then prepare one bounded task. Since #1284 (ADR-037) there is no source or communication dollar allowance; a request that still sends max_cost_microusd is accepted and the field is ignored, and the call count and cutoff stay. Each reschedule candidate requires its selected meeting source. Existing source-specific model consent and grants must remain current. The accepted original task invokes the actual native Mail reply-draft and Calendar meeting- preparation owners sequentially under its original shared inference group, reserved limits and absolute cutoff. Internal source tasks cannot be promoted or retried as independent work. Private source bodies do not enter the general task planner; a new authority generation does not renew original reservations, Unknown costs, attempts or effects.

Open the current private communication plan from its Work card. Its closed five-field value contains exact source references, up to five reply drafts, five meeting preparations, three reschedule proposals and bounded unresolved questions. Drafts and briefs come from physically read-back original native outputs. The encrypted aggregate is privately read and revalidated under the current owner, Root, Goal, task and source permissions. Source drift hides only affected entries and keeps their blocker visible; loss of Root or Goal authority hides the whole private value. Historical recovered selection is read-only metadata and grants no private-body access or fresh execution. Generic Calendar readers remain root-only; the specialized private aggregate reader does not expand their authority.

Select only the actions wanted, inspect each fresh exact native preview and approve each independently. Validate selected independent exact approvals checks an inert ActionBundle; it performs no effects and grants no collective approval. Execute through each action's existing native controls. Mail follows ADR-016: one exact send and independent sender-Sent readback, which does not prove recipient delivery. Calendar follows ADR-019: one conditional owned-event patch and independent exact-event readback. A changed source, recipient, body, connection or event invalidates the affected action; a conflict does not erase another action's verified result. Unseen calendar occupancy remains unresolved and grants no broad free/busy read.

Response loss keeps the original operation Unknown, with no automatic send, patch, reversal or replacement. Use the original action's finite read-only reconciliation controls. A separate current RecoveryGoal/read grant can observe the original effect only while its original Root remains authorized and owned transport closure is established. It cannot regrant the old write, change its deadline or settle historical cost liability by observation. An unconfirmed task admission retains its exact request in the current owner session's memory for explicit reconciliation; it does not create a replacement automatically. Preparation and actions explicitly record no_learning. Feedback must use a separate governed lesson proposal.

The private view states the retention limit: access expiry does not delete artifacts. Clean up aggregate private plan deliberately requests cleanup at the exact current task revision. Only verified physical absence clears it as deleted; unresolved deletion or response loss stays visible and retains the original cleanup request for explicit reconciliation. Authoritative access denial discards the private view without claiming deletion. Cleanup removes only the encrypted aggregate, preserving original Mail drafts, Calendar briefs and immutable approvals/effect history under their existing owners. Original Calendar preparation briefs remain bounded local plaintext with private file modes; aggregate encryption does not migrate that storage. No automatic TTL deletion exists. Same-user filesystem replacement between the final inode check and unlink remains a residual race; no atomic conditional unlink is claimed.

The native composition journey uses actual isolated authenticated tasks, source callbacks, encrypted physical readback, separate native Mail/Calendar effects and literal provider readbacks, with scripted inference only at its owned transport. The communication UI tests cover independent selection, stale authority, response loss and cleanup states. Current Linux validation still retains unresolved native process crashes (ordinary exit 139 and guarded exit 245); one debugger run passing 24 tests does not resolve them or establish runtime readiness. Only verified cleanup has a captured authenticated API wire receipt; unresolved cleanup has service and UI coverage. Live provider usefulness, native macOS execution and model quality remain unverified.

Task lesson drafts (proposal-only)​

The supported proposal-only Learn this path is provider-free. It accepts an ordinary completed or failed task with a verified current attempt and recorded native tool steps or an exact current formatter capability contract snapshot. The formatter draft preserves its registered identity, version and typed contract digests; it never copies the task's JSON input or output. The source-discovery endpoint returns the authoritative task revision, attempt, references and Goal scope. An ordinary text correction can draft a closed TaskMethod.v1: an existence check before using the source, a verified-readback check, or preservation of source attribution. Unsupported corrections and missing method receipts return explicit no_change; they are preserved as private correction evidence and do not become executable steps.

The Inspector separates the observed outcome, explicit correction and inferred draft, and displays the exact old and new method. ResearchStrategy.v1 and TaskMethod.v1 are closed data schemas; candidate input cannot install tools, change permissions, runtime limits, providers or credentials. Candidate content is a private artifact; the existing MemoryProposal owns the inert review row, and EvolutionRuntime records only content-free lesson receipts. Neither a successful task nor a failure creates a positive preference vote. Changes to the task, Goal, run, receipts or method steps block the old preview.

Automatic proposals require a separate per-task opt-in bound to the original current operator, task intent and Goal revision. Enable and disable require the exact authoritative policy revision; a stale request cannot overwrite a later consent change. The terminal dispatcher callback reauthenticates that exact Root without renewing it. Automatic creation uses only the finite missing-source failure rule and is limited to two durable proposal starts per UTC day across the owner; consent renewal does not renew that cap. It performs no inference, source-body projection or trace egress. The callback is bounded to five seconds and cannot undo an ordinary task's committed result. Private staging runs off the event loop in a single retained worker. Timeout stops proposal progression, records a content-free outcome for the exact original attempt even after Root revocation, and retains staging capacity until the actual worker finishes. Thread cancellation is never treated as cleanup. After restart, recovery requires proof that the original process ended and checks the exact private artifact; it records no-change and releases the original slot without making a proposal. Replays and recovered starts still count toward the daily cap. Linux recovery uses the original kernel boot/process identity. macOS uses the fixed native boot-session UUID and exact PID start seconds/microseconds; a missing PID or failed native read remains unknown. A same-process retained worker can complete even when native witness acquisition is unavailable. Unknown restart witnesses retain capacity and expose restart_witness_unknown; manual lesson review remains available. Native macOS execution was not verified on the Linux validation host; finite ABI and recovery fixtures cover its contract. Automatic outcomes have content-free, original-owner task events; source discovery returns the latest matching outcome, including no-change, cap and failure states. Automatic completion uses the canonical proposal and task event receipt and performs no evolution-file work. Explicit inspection or manual request replay repairs a missing evolution receipt off-loop from the canonical proposal without another daily-cap charge; mirror work is capped at 1 MiB and 4096 entries. The canonical proposal remains inspectable if this advisory mirror is oversized or unavailable; readback exposes a degraded mirror status and preserves its existing bytes for recovery through the evolution owner. Model reflection remains unavailable because no existing consent authorizes task-trace egress. No model call or spend is needed to draft a supported lesson.

Generic memory acceptance rejects task_method_proposal.v1; a draft alone never changes task execution. Isolated local checks establish these mechanics, not learned quality or general usefulness.

The actual authenticated formatter-to-lesson failure journey is verified on the implementation host: bubblewrap exits with Failed RTM_NEWADDR: Operation not permitted, process cleanup is proven, no formatted output is adopted, and an explicit correction creates an inspectable private inert method. The positive formatter journey remains blocked by that host sandbox limitation; this receipt does not establish successful formatter execution or lesson quality.

Reviewed task methods​

The #1001 capability is available on develop revisions containing its independently reviewed milestone merge. Earlier revisions require that merge; implementation-branch receipts do not establish their availability. ADR-028 defines the accepted boundary.

In the existing Task Inspector, inspect the original source, observed method, explicit correction and exact typed candidate before accepting or rejecting it. Acceptance atomically writes a signed canonical pattern and a signed active selection for the stable operator, exact Goal revision and task family. Each scope admits at most 16 immutable accepted versions; exhaustion requires review and does not evict history. Current authority, source receipts, signatures and selection revision are checked again by the canonical writer. A recovered login can inspect an explicitly selected Goal but cannot adopt or roll back its method. Missing, stale, revoked or tampered state is visibly blocked; it cannot silently select baseline. A demonstrably never-selected scope retains ordinary baseline.

A subsequent general task applies supported registered tool sequences and finite source-existence, verified-readback or attribution guards through its existing PlanSpec, approvals and native execution. Fixed formatter capability steps remain inspectable but unsupported for adoption by that consumer. An explicit structured research candidate requires a completed research-dossier task and verified original native output. When the server verifies that source, the existing Task Inspector offers bounded research fields for query templates, source preferences, evidence fields, draft sections and stop conditions. Review the original Task, Attempt, Goal revision, source references and observed receipt in both the private draft and canonical review; adoption requires an explicit acknowledgment. Preparing a candidate stays inert. Reopening a known candidate reads that original candidate, while an uncertain preparation requires explicit reconciliation of the same request. Public discovery applies its approved query templates, source preferences, evidence fields, draft sections and stop conditions within the original finite programme grant. Research dossier itself continues to use its explicit baseline. Candidate JSON cannot install tools, grant permissions or change providers, budgets, credentials or runtime limits; it is excluded from generic recall, prompts, semantic indexing and generic M5 selection.

Rollback to baseline changes future selection. An already admitted task or discovery retains its original immutable version while current authority and source remain valid. Tombstones, explicit revocation, changed Goal/source state or expired original grants block the next owned boundary. Rollback does not renew a contacted job, grant, deadline or allowance. The Inspector retains the literal previous version and source for review.

Provider-free Linux receipts cover authenticated review, actual completed native general-task source and subsequent physical output, and actual research-dossier source followed by public discovery using its approved strategy. They also cover future baseline after rollback, original-pin continuation, read-only recovery, source/signature/selection tamper and revocation before contact. Scripted final transport proves these mechanics; learned quality, provider usefulness and native macOS execution remain unverified.

Reusable general procedures (#1002)​

Shipped in develop through #1053: the flow below requires an installed revision containing the complete #1002 milestone. Earlier revisions do not acquire it from branch-local receipts. The existing Python/FastAPI owners and React Task Inspector implement this ADR-028 boundary; no Cordis bridge or migrated agent loop is required or implied.

Complete and review an ordinary general Task, then use its Inspector to inspect the original source for a reusable method. The server checks the latest ended Attempt, complete original native steps, original producer contracts and actual verified readbacks. It offers only safe ordinary scalar fields. Name the fields you want to supply on future invocations; fixed ordinary inputs and symbolic typed dependencies remain unchanged. A mixed research/file/registered-MCP journey can retain the original dependency from read output to write content without saving the source body as a literal or default. The browser action is fixed to the original extract/html mode. Unsupported, unclassified or forbidden input prevents saving the entire journey, with a reason in the Inspector. Older completed Tasks without original producer pins show source_contract_review_required; run a fresh eligible Task rather than trying to certify historical receipts with current code. Their ordinary execution and the existing v1/v2 procedure flows keep their original contracts.

Save creates a private immutable inert proposal. It does not activate a method, install a tool or publish a package. Inspect its original Task/Attempt/ Goal revision, complete seven-field plan, producer-offered parameter schemas and source receipt, then separately accept or reject the exact candidate in the existing canonical method review. Acceptance signs an immutable M5 version and the general-family selection for that operator and Goal revision. Up to 16 accepted versions fit one exact scope; capacity exhaustion requires review and does not evict history. The typed artifact is bounded to 64KiB with full Vault and secret/authority checks; generic M5 prose retains its 2,000-scalar limit. Method JSON remains excluded from generic recall, indexing and prompts.

The accepted Inspector shows the exact current version, digest and pointer revision, declared parameters and bounded version history with source Task navigation. Invoke the current reviewed version by supplying every declared fresh value, selecting the current owned Goal/revision and explicit finite execution limits. No previous parameter value is silently supplied as a default. History inspection alone cannot activate or invoke a noncurrent version. The server independently reconstructs and compares the full plan, fixed inputs, dependencies and output contracts; missing fields, wrong literal types, changed producer versions or undeclared changes are blocked.

Invocation creates and selects a new triage Task. Inspect it and explicitly Promote it through the normal Work Board flow. The existing durable native runtime owns new jobs, Attempts, deadlines and cost limits, and requests current native effect approvals. The saved method carries no old Root, permission, credential, allowance, approval or contacted-effect identity into execution. Revocation and stale Goal/source state still stop the next owned boundary. Exact same-key retry can recover only the original Task under the exact current pin, pointer revision and whole request. Changed values or a different method under that key conflict; retry cannot create a second Task or renew old limits. After an uncertain response, explicitly reinspect the method before continuing; the Inspector retains the original publication key within the current session and blocks further invocation until that inspection completes.

Disable general-task method selection affects the entire operator/Goal- revision general family. It selects a signed baseline, blocks new method invocations and preserves source Tasks and version history. Activate is a separate review action restoring only the exact previously reviewed pin. Rollback restores the exact eligible previous signed version, or explicit baseline when none is available; inspect the resulting current pointer before invoking again. Existing admitted work keeps its original immutable pin and current authority checks. Delete requires explicit canonical tombstone confirmation. It withdraws a matching current selection and blocks that version at future and in-flight boundaries. The deleted Inspector shows safe version, digest, pointer, history and tombstone ID/time without candidate content or execution controls; source Tasks, effects and audit remain inspectable.

Provider-free Linux validation covers the complete original mixed native journey, save/adopt/fresh invocation and physical changed output, distinct current approvals, restart, same-key conflict and lifecycle readback. Focused producer/ native checks (36), consumer regressions (66) and UI checks (64) passed in their named implementation receipts; these are separate local proof runs, not a single end-to-end browser run. UI responses come from the actual native journey. Only final HTTPS service responses were scripted, with external sockets and inference denied. Local mechanics are proven; learned improvement, live provider usefulness and native macOS execution remain unverified. The milestone passed final independent cumulative review and merged through #1053.

Reviewed procedures v2 (M6 #889)​

ADR-015 accepts a narrow reviewed-learning target: explicit feedback on matching manual invocations may propose a Goal/version-local preference for an existing public-browser-check version. The bounded implementation counts the complete matching manual population before filtering: two distinct native readback-verified outcomes with current Helpful feedback and no current Harmful feedback can produce a proposal. Corrections append an exact predecessor-bound decision; failed, unreviewed, stale, and unresolved members remain visible and cannot become successful votes. Insufficient evidence returns no_learning. Feedback is enabled only after the current attempt ends. A decision binds the exact task revision, latest ended attempt ID, and fence; later changes retain the full history but make the old decision ineffective. The Library labels stale historical feedback separately, and a new explicit correction requires the historical tip and a reason. Historical replay cannot restore eligibility; stale feedback records feedback_outcome_stale and no_learning.

The Library runs the provider-free memory.procedure-recommendation.v1 capability through the existing routine API and durable native job runtime. Its Inspector declares local read/artifact permissions, zero inference budget, one attempt, no automatic retry, a maximum 120-second original deadline, 20 manual invocations, 100 feedback events, and 128 KiB of serialized metadata. Private source proofs have 4 MiB individual and 16 MiB aggregate bounds. An explicit owned cancellation creates no preference or positive readback.

Preview, acknowledgment, signed canonical-memory adoption, and rollback remain separate explicit actions. Future selection rechecks the complete current population and exact original owner/Root, Goal, reviewed version, package, and source bindings; another matching invocation or correction makes an old preference unavailable. Selection loads reviewed version metadata only and never authorizes or starts invocation or scheduling. Rollback retains the outcomes, corrections, proposal, and signed memory history.

Preview and adopted Library suggestions both display the exact included list and count, explain that scheduled invocations are excluded, and disclose that the deterministic preference is not a measured quality improvement. The actual isolated managed journey exercised native parent/fixed-leaf execution, feedback, insufficient evidence, adoption, read-only selection/reload, Harmful correction, and rollback. Public HTTP responses were intercepted and nonlocal sockets denied; no model or account contact occurred. These receipts establish the bounded preference profile; availability requires the installed reviewed program revision. They do not establish measured quality improvement.

The #889 reviewed procedure surface turns verified Work Board outcomes into reusable, owner-bound procedures. It has exactly three registered templates:

  • public-browser-check: one browser.public-task.v1 leaf;
  • watch-and-public-browser: guardian.research-watch.v1 followed by browser.public-task.v1, with a current watch revision and material-change gate; and
  • selected-meeting-prep: one calendar.meeting-prep.v1 leaf using the existing M5 calendar input contract.

Every plan is schema v2, uses the registered step IDs, capability IDs and versions, verifies native leaf readbacks, and is limited to two steps and 300 seconds. A preview records the selected task, attempt, job, artifact digest, readback, owner/session, goal revision, typed input reference and digest. The browser input needed for later execution is copied into the immutable server-owned version; routine list/detail responses expose only safe provenance and digests, never the copied input body.

Preparation creates an exact routine parent, immutable version, install job, and owner/session-bound approval. The install approval expires after five minutes. Installation remains blocked until the server confirms that exact approval as current and approved. A pending approval routes the operator to the existing Pending approvals review surface; missing, expired, denied, or stale approval metadata asks for a fresh preview/rebind. A consumed approval keeps its exact receipt addressable for reconciliation. Package preview, operator review, activation approval and package activation remain explicit controls. Activating the package does not activate the procedure: the Library requires a separate Activate procedure action and a current server readback before enabling invocation or scheduling. A paused procedure uses Resume procedure under the same current package and version checks. Unconfirmed activation requires an authority refresh before another lifecycle mutation. Pause, revoke and selected-version rollback remain explicit controls. No arbitrary approval ID or automatic activation is accepted.

Invocation is manual and requires a fresh active goal revision, current owner/session authority, current grants and budgets, exact template parameters, and a new task/input artifact. Public and watch procedures can also create a finite governed schedule; meeting preparation remains a manual selected-event invocation. A schedule is bounded by the seven-day procedure limit and the earlier reviewed goal-budget expiry, uses the existing governed schedule controls, and can be paused, resumed, or revoked explicitly. Quiet hours, proactive consent, finite period, outstanding-job, attempt, runtime, and notification budgets remain admission fences; a quiet-hours or budget refusal is visible as deferred or blocked work rather than a hidden retry. Each occurrence also checks its pinned procedure revision, version, plan and current package lifecycle before publishing a task. A paused, revoked or changed procedure requires explicit review; the scheduler does not silently rebind its accepted schedule to newer authority.

All routine, approval, invocation, schedule, and recovery state is bound to the authenticated owner session. Changing owner/session clears the old selection and metadata state, and late responses cannot populate the new session. Unknown or ambiguous mutations retain their bounded exact key and body for explicit reconciliation/retry; they are never replayed automatically. Definitive pre-effect rejection can ask for a fresh preview. Native leaf readbacks are required before parent success, and every terminal result carries an explicit no_learning outcome. Failed, blocked, revoked, expired, and unknown cleanup states remain operator-visible and retain their recovery boundary. Calendar steps recheck the current procedure parent before each provider or model boundary. Parent cancellation, lease reclaim, expiry and package revocation cannot be replaced by a child's stored lineage fields.

The v2 procedure surface is designed for the CPU-host contract. The cockpit, canonical state, artifact metadata, and fixed browser/calendar controls remain usable when optional local model, GPU, VLM, connector, or provider services are absent. Governed model work, where the selected meeting path requires it, still uses the active OpenRouter admission, consent, and budget checks; this branch has not performed a live provider or account canary.

This remains Partial within the declared execution and provider-proof limits. On October 1, 2026, the managed CPU-host journey prepared, reviewed, installed and activated a public-browser procedure, then executed its native leaf and verified both the parent and leaf readbacks. The leaf artifact hash matched the stored file. Twelve native vertical tests additionally exercised actual SQLite, Chromium, package files and intercepted Calendar/model boundaries. These are mechanical execution receipts; Calendar account/model usefulness and production readiness remain external-unverified. Fresh independent reviews accepted preparation recovery, interface authority/recovery and the dispatcher compatibility corrections. After the managed backend restart, a new public-browser invocation completed with parent and leaf readbacks, a matching artifact hash and explicit no_learning. A separate live response-loss check retained the lifecycle recovery gate across reload, blocked fresh preparation, and cleared it only after an explicit exact authority refresh before resume. The implementation has independent preparation, interface-authority, and dispatcher recovery validation.

Governed repository repair (M4 #887)​

Bounded iterative repository work is Partial under ADR-030. An accepted repository_work Task runs up to three manually approved patch iterations within its original limits: calls, iterations, the 900-second limit and the cutoff. Since #1284 (ADR-037) there is no original-cost or iteration dollar limit and no cost_exhausted stop; the shared group limit keeps its call and time parts, and a stored max_cost_usd is ignored. The plan can be literal or a reviewed planner proposal. Each iteration returns a local patch and the actual pytest or npm output. A check that exits non-zero feeds the next iteration, and base drift or a dirty tree blocks execution. One original holds the workspace repository lane, and other repository Tasks get repository_execution_busy. A timed-out, truncated or interrupted check is a partial: Stop closes it and releases the lane. An expired original closes by its deadline on Stop, on the next repository admission or on the dispatcher tick. Only a lost producer or Unknown result stays held. Crash recovery under ADR-032 remains Planned (#1063), and POST /api/workflows/repo-repair/{id}/source-recovery returns 503. Ordinary repair behavior below is unchanged.

Checks run as local_host_execution. Where the host supports it (#1065), every repository git/test/build command runs in a bubblewrap OS sandbox: a fresh network namespace with only loopback, a cleared environment, no nested user namespaces, readable but read-only /usr, /etc and the exact runtime files (the executables plus only their lib/npm trees, never a whole $HOME or ~/.local; a runtime that would need one reports runtime_root_unsafe), a private size-bounded /tmp, only the job's stage directories visible (never ~/.ssh or Seraph's database, vault key or other workspace files), RLIMIT_CPU/AS/FSIZE applied outside and RLIMIT_NPROC inside the new user namespace. These are per-process limits: address space and file size are bounded per process and per file, not total memory or total disk use. The bound runtime paths are listed in the posture (isolation_runtime_roots) and bound into its digest. Every process the tests start ends with the sandbox's pid namespace, so "cleanup proven" then includes detached processes. Preflight probes this inside a real sandbox and records the posture isolation_claim=bwrap_userns, network_isolation=netns_loopback_only_verified, resource_enforcement=rlimit_cpu_as_fsize_nproc_and_wall_timeout, host_access=snapshot_bind_only; the supervisor re-probes and must match before running anything. Plain unshare is not used because Ubuntu's AppArmor user-namespace restriction denies it, while the distro bubblewrap profile is allowed.

When the host cannot provide this (no bwrap, user namespaces denied, or a failed probe), nothing falls back silently: the posture keeps the previous isolation_claim=none/network_isolation=not_verified values plus isolation_variant=not_isolated and an isolation_unavailable_reason, the patch approval begins NOT ISOLATED (<reason>):, and the tests can use the network and read the Seraph user's files. The posture digest is bound into the approval, so a change between variants invalidates earlier approvals. Setting require_isolation (repository sandbox settings, default off) refuses to run instead. Diagnostics redaction is pattern-based either way. Approved patches may contain only text sections on allowed paths, and an iterative publication must equal the base plus the approved input patch.

The #912 bounded profile adds explicit repo-node24-npm-v1 execution behind this same Work/API/durable-job journey. ADR-007 owns its accepted contract; availability requires the installed reviewed program revision. Optional Node Repository Repair describes installed runtime selection, finite selectors, exact approval and unknown recovery. Settings select an already installed absolute Node 24 executable. Only finite inspected npm test, npm run build, or npm run build test selections are accepted; Seraph maps their script bodies to direct Node argv and never runs npm, shell bodies, installation or lifecycle hooks. An inspected TypeScript tsc --project build uses copied existing compiler dependencies. Package/lock/config/script/source, dependency manifests and trusted toolchain hashes bind approval and readback. Dependencies have separate 512-file/16MiB-per-file bounds inside the shared 64MiB snapshot aggregate; source, patch and output bounds remain explicit.

Native Node supervision is an optional Linux x86_64 capability, verified with pidfds and a dedicated per-job subreaper. Other platforms or missing facilities block this selected profile visibly; they do not block Seraph's Python/core startup or select a fallback. Approval shows exact build/test argv and requires fresh local_host_execution. The Inspector labels preparation evidence as the recorded job preflight; it does not replace fresh approval/claim checks. This is host-user execution with no OS isolation or enforced CPU, memory and PID ceiling. Detached descendants must be reaped before success. Supervisor death, missing/reused restart identity or exhausted cleanup/readback deadline remain unknown_external_effect and retain the physical slot until durable evidence resolves them. Model transport in local acceptance tests is intercepted at the governed boundary; no live provider or paid-inference proof is claimed.

The M4 capability adds a bounded repository-repair path to the existing Work Board execution boundary. In Work → Repository repair, an authenticated operator selects an owned active Goal and current revision, then supplies the strict repository-relative source and focused-test input. The form rejects protected paths, unsafe references, out-of-scope tests, and unbounded values before the server creates the typed owner/session-bound input artifact. Seraph then publishes a Todo task with the artifact ID; the artifact reservation and task publication use separate idempotency keys, and the task carries no caller- supplied typed reference or raw source path authority.

The pending repair draft is private to the authenticated owner/session. An unknown artifact or task response retains the exact original keys and payload; the operator must reconcile or retry that exact request before another mutation is allowed. Artifact reads expose only safe identity, digest, expiry, and lifecycle metadata. The server then inspects a private snapshot, pauses for explicit code-egress consent, and asks the governed strategist_agent route for one strict patch proposal. The operator reviews the exact proposal and approval target before the selected executor's staged test/readback path can run.

The repair path binds the source packet, model request and response, patch, approval, owner/session, Goal, attempt, and durable job by digest. It exposes blocked, stale, revoked, and unknown recovery states and records memory_status=no_learning. Tests run against the bounded staged snapshot and do not claim to modify the original checkout. Source text, prompts, model responses, and credentials stay out of generic operator projections.

The selected repair executor is server-owned settings, visible in Settings → Repository sandbox and in the Work inspector. A fresh settings document selects the disabled Trusted local staged runner by default. Local execution uses a private staged directory and fixed test argv as the host user; it has no OS isolation guarantee, does not claim CPU, memory, PID, network, or filesystem confinement, and requires a separate exact local_host_execution approval for each job. The approval surface says Approve local tests on this host and shows the host-user filesystem, network, and resource boundary. Settings selection is never execution permission.

The optional Docker rootless profile requires a strict Linux rootless daemon, pinned image, and independently verified fixed limits. The optional Docker rootful profile uses an existing configured daemon and must independently verify its non-root worker, network, read-only, capability, image, and resource posture. Missing or drifted evidence blocks the selected profile; Seraph does not silently switch between local, rootless, and rootful execution. The legacy engineering.repo-change.v1 path remains strict rootless-only and is shown as a separate preflight.

The settings and repair status APIs expose a complete typed executor_posture display projection alongside the exact server receipt in executor_posture_raw; executor_posture_digest_basis=executor_posture_raw documents that the unchanged executor_posture_digest binds the raw receipt, not display-only defaults. A blocked Docker receipt therefore reports unverified isolation, network, and resource labels without turning them into execution authority, while local host_access remains visible as the explicit per-job approval boundary.

On a first managed local start, a newly created workspace is private (0700), settings descendants repaired on the current-owner write path are private, and the persisted selector file is 0600. A pre-existing broad workspace or foreign-owned, symlinked, or otherwise untrusted settings path remains blocked. Use a private workspace beneath trusted ancestors and retry; Seraph does not automatically chmod an existing workspace root or shared ancestor. Saving selectors never starts Docker or changes host resource limits. A legacy settings document without an executor selector remains rootless-only until the operator explicitly selects another backend.

The bounded tested-publication profile implements the accepted tested repair publication and finite GitHub consent targets. Its selected repo-python-pytest-publication-v1 profile reports the recorded successful preflight from ok=true; a ready label alone cannot establish that proof. Preparation does not approve local host execution, and display normalization does not change the raw authority receipt or digest. The copied Python environment and fixed Git producer claim no OS isolation.

Publication requires a separate exact preview and approval after the repair's verified test readback. GitHub settings separately ask for unchecked consent to named actions on the selected repository, credential and current login, with a finite expiry. Stopping writes preserves an uncertain job's reservation. An explicit current-revision readback acknowledgment permits only destination GETs; it does not replay writes or revive the original approval. A changed Goal can retain a positive observation while the original task remains Unknown.

The separate unchecked capacity-close control uses complete positive destination proof and the original producer's verified quiescence to release only the exact connection reservation. It preserves Unknown effects, costs and the explicit no_learning outcome, and permanently fences the old job against new writes. Reload discovers owned history without automatic consent, publication, reconciliation or closure. An ambiguously answered close request retains its exact body and key; only the server's consistent canonical inspection can identify an applied receipt or permit explicit discard of a permanently rejected request. These bounded capability contracts require the installed reviewed program revision and do not establish live GitHub/provider usefulness.

This remains Partial. Intercepted model transport and executor mechanics prove request, authority, recovery, and readback contracts only. A local technical preflight can make preparation ready, but execution remains blocked until the exact per-job host approval is recorded. If Docker CPU, memory, pids, network, image, or daemon posture cannot be verified, the selected Docker path blocks without falling back. No live provider/account canary, paid inference, kernel resource-enforcement receipt, or original-repository write is claimed. Repair execution uses one durable repo-repair-execution slot across Goals and recovery, releases the remote-inference claim before approval or test dispatch, and sets one absolute execution deadline for staging, process startup/wait, output drain, cleanup, readback, and publication; it does not reset that deadline per phase. Cancellation or unproven cleanup/readback/publication remains blocked or unknown and is reconciled against the same job/attempt rather than replayed as a fresh proposal or execution. The final native verifier covers one local API journey, two approved Goals sharing one physical native worker, same-job API cancellation with fresh reconciliation, staged subprocess/filesystem readback, unchanged source/.git state, verified cleanup, and no_learning. Its deterministic model transport is intercepted. Local execution intentionally has no OS confinement. Provider/account usefulness, live OpenRouter quality, and Docker resource enforcement remain external-unverified. The original repository is not claimed changed, and this capability remains Partial within those explicit proof limits.

Project issues and pull requests (C4.3 #1017)​

Project follow-through is Partial. It uses the existing GitHub connection and adds no new write authority. The GitHub activity source is separate: it is read-only and uses the operator's local gh login, not this connection's vault credential. Routes live under /api/capabilities/github/project-source:

  • GET returns the sync status and the connection's actual limitations: selected repository only, a bounded read window, polling only, unverified token scope, bodies truncated at 6000 bytes, and no comments or reviews read. It also names a missing credential, a disabled connection or reconcile-only mode.
  • POST /sync (ProjectSourceScope) reads the selected repository only, by default 50 items over 3 pages. It stores an immutable snapshot whose items each carry a revision (updated_at) and a content digest over the title, body, state and labels. Comment activity moves the revision but not the digest. Another repository is refused. Lost access blocks the read and keeps earlier snapshots and local artifacts.
  • POST /findings (ProjectFinding) turns one snapshot item into an inert Triage task. The item is quoted as untrusted data between a fence derived from the item digest and request key; any <<</>>> run in the source is split, so the source cannot end the quote. It gives no authority. Planning egress needs an explicit acknowledgement, and the snapshot is checked for drift first.
  • POST /watch-view writes a snapshot as workspace text under project-watch/. An ordinary workspace_text source watch on that file produces its own reviewed decision packet and verified dossier.
  • POST /responses prepares a blocker or review_request comment on the exact issue or PR through the existing GitHub follow-through prepare. The caller names only the watch packet_id; the goal and dossier are the packet's own. The packet must be verified, owned by this session, and come from a watch on this repository's view whose observed text is exactly the referenced snapshot's view (project_response_packet_not_bound otherwise). The item is re-read first, and a changed revision stops with project_source_changed_decision_required. The comment waits for its own approval and is never posted here.
  • GET /lineage/{task_id} reads the chain from each owner: the source revision, the task, the repository roots and each iteration's patch digest, and only this task's publications (those of its own repair roots) with approval state, the approved and tested patch digests, the bound source revision and the verified PR. An unreadable unrelated root is counted, never fatal.

When an accepted change task's repair is published, the preview binds project_source (the task-bound and accepted digests). The item is read again at prepare, when the approval resumes (outside the configuration lock), and immediately before the first GitHub write. A changed or closed item stops the publication before any write (awaiting_approval at resume, blocked before the first write) and keeps the completed repair. The operator can accept the new revision with acknowledged_project_source_digest on a fresh prepare, and that needs a fresh approval. A connection pointing at another repository refuses with project_source_repository_changed. A moved base or a changed patch is refused by the existing Source and publication checks. An unknown publication outcome uses the existing readback reconcile and never a second PR.

Reviewed public evidence pipelines (#914)​

The existing task inspector offers a reviewed, fixed chain from browser.public-task.v1 to work.evidence-dossier.v1 and work.local-evidence-report.v1. Its non-executable operation metadata lives on the existing Work Board proposal. Each leaf uses the existing task, priority, claim, cancellation and durable job paths. The two CPU leaves use deterministic local transformations with no model, network, credential access, subprocess or learning. Public extracts remain quoted structured data, and the verified report is served as text/plain and rendered literally in the cockpit.

Preview an unattempted public browser task and approve the exact source scope and plan digest. After a producer completes, explicitly materialize its independently verified next input. Each producer must have canonical native identity, a settled matching artifact/readback and actual unchanged output bytes; browser output also needs its typed context-cleanup receipt. The chain has one absolute deadline of at most 300 seconds from first admission, further narrowed by the current Goal grant, two attempts per leaf and six aggregate attempts, 180 seconds per browser leaf and 30 seconds per CPU leaf. Outputs are bounded to 64 KiB and quoted consumer inputs to 40 KiB.

Goal or source-permission changes durably freeze unfinished claims. Source replacement requires exact operation and task revisions plus verified quiescence. It preserves the original deadline, attempt counters, completed outputs, unresolved liabilities and immutable old handoffs. An unattempted consumer retains its task identity while only its current link and current handoff binding change. A completed consumer requires a distinct operation. A freshly reviewed finite operation may reuse only exact independently verified completed output for unfinished consumers in the same original workspace and owner scope, under the current consumer Goal and source policy. Original attempts, effects and liabilities remain with their original operation.

Materialization reserves its exact operation/version/producer-attempt/consumer key before writing private bounded files. Interrupted writes resume only that binding. Reload recovery retains and rereads a bounded exact mutation request in owner/session-scoped session storage before POST; corruption or unavailable storage blocks actions, and an uncertain outcome exposes explicit exact retry.

This capability remains Partial. The October 3 managed CPU-host receipt used real operator authentication, actual public HTTPS body extraction, native browser execution, both deterministic CPU leaves, durable consumed inputs and verified report readback under the original deadline. This establishes that finite chain; broader DAGs, model planning, publication and PDF/CSV export are outside its contract. ADR-010 owns the accepted target.

Finite evidence research (#901)​

The Work Board offers a finite research dossier form and a focused task inspector. Select a current Goal, one or two perspective instructions, and at most four explicit public HTTPS text sources or independently verified completed Board artifacts. Source acknowledgement is separate from the existing governed model-egress consent, capability proof and accounting gates. Each perspective has one synthesis contact; the parent makes no model call. The original parent deadline is at most 300 seconds, further narrowed by the Goal, and recovery cannot renew deadlines, attempts or call counts.

Explicit recovery reserves a current phase on the same original Board attempt. It can continue the persisted source-ready, prompt-ready or funded queue, or adopt an exact reserved physical child output whose request finished, priced or not priced yet, without another provider POST. A current Running worker without that completed-output proof remains blocked from recovery. A request still in flight blocks recovery; a finished request the provider has not priced yet does not (#1295). After a restart, startup recovery closes a child whose answered request has a broker receipt as succeeded, priced or not, and leaves an answered unpriced request record as it is. Only a job kind whose one inference call is the whole job (a research child, for example) closes this way, and only when its ledger holds exactly that one settled call. A job that makes several calls can crash between calls, so its first receipt proves nothing about the rest (#1302): Goal discovery is left running by the sweep and held by its programme owner, native repository repair roots are protected and skipped, and any other job, such as a historical ordinary repository root, is left blocked (stale_lease_requires_reconciliation) for the operator to reconcile, then retry or cancel; nothing resumes it automatically; only a request with no recorded answer becomes a lost outcome. Contacted work without verified output retains Unknown cost and effects; it is never blindly retried. Generic retry and unblock cannot create a replacement attempt for an admitted research task.

Cancellation first fences the original operation. It closes only verified lease-free waits or actual owned workers whose awaited completion is recorded. An expired lease or an empty process registry does not prove quiescence. Completed child outputs and actual charges remain visible. Uncertain source or provider work remains Unknown, and missing proof keeps cancellation pending. A succeeded child whose request is not priced yet is finished and does not make the cancellation uncertain (#1295). An answered unpriced request whose child did not succeed (for example, its output failed verification) still makes that child unknown_external_effect: cancellation cannot tell its outcome from the request record alone. The inspector offers exact retained-request retry and explicit cost recovery guidance. Corrupt or unavailable owner/session-scoped session storage blocks mutations; the full retained request is bounded to 16 KiB.

The dossier is served as verified text/plain and rendered literally. Citation checks establish matching supplied spans and digests, not semantic truth. Every result records no_learning. This capability remains Partial within its declared source and provider-proof limits. The October 3 managed CPU-host journey used actual operator authentication, governed settings and capability admission, public HTTPS source reads, two native child jobs, settled accounting, durable input consumption and physical dossier readback. Its exact retained creation request survived a lost response and browser reload; the completed dossier rendered literal injection text without executing it. Only the provider HTTP boundary was intercepted. This verifies the local runtime and operator journey; it does not establish live provider quality or actual upstream billing. Independent review corrections require the exact original child group and current authority before presenting recovery, keep generic retry/unblock fenced, and preserve one inspector per selected task. ADR-012 owns the accepted target. Local source/output and current policy metadata reads inside selected SQLite writers are bounded by their contracts; their lock duration and physical filesystem race limits remain relevant.

Quarantined downloads and selected desktop drafts (#1014)​

ADR-034 owns this target. POST /api/browser/downloads takes a request key and at most two exact public HTTPS file URLs (port 443), plus the exact redirect targets allowed for them. A JavaScript-free isolated Chromium context reaches each URL in the shared browser lane. The bytes come from Seraph's own pinned, bounded transport (public addresses, 10 MiB) and are identified from their content: PDF, DOCX, XLSX, CSV or plain text. These stop before adoption: a wrong claimed type, executables, HTML or script-like text, OOXML macros, embedded objects or external links, an out-of-grant redirect, oversized bytes and the deadline. Files land read-only in a private quarantine with their source URL, redirect chain and claimed type. Replaying the same request key returns the recorded outcome without contacting the site again. GET /api/browser/downloads/{artifact_id} shows metadata and an inert preview marked untrusted; DELETE revokes the file. Seraph never opens or runs a download. Uploads, file choosers and file controls stay refused before any page event or network transfer. Authenticated-session downloads wait for #1013.

Desktop drafts run in the local daemon only. Commands: python daemon/desktop_drafts.py probe, inspect, and replace --replacement-file FILE [--countdown 5].

To replace text, run replace, focus the target window and select the text during the countdown. The daemon then shows the exact selected text and replacement, with control, bidi and zero-width characters escaped and their byte and code-point counts. Type the shown digest prefix in the same terminal, then return focus to the target window. The write happens only if the same window, control, text and selection are back. Afterwards it reads the text back. Any change aborts with no write. An uncertain write is reported for inspection and never reapplied.

Allowed controls are plain editable text roles only. A non-exhaustive deny list refuses terminals, passwords, browsers, password managers, authentication prompts, payment fields and system settings.

Linux needs gir1.2-atspi-2.0, a session bus and accessibility enabled; otherwise the probe reports unavailable. macOS reports unavailable. The paired edge status carries the probe; the core never dispatches desktop writes.

Profiled public form preparation (#1012)​

browser.interact.v2 adds a separate registered HTTPBin public form preview under ADR-029. The capability is Partial: bounded public-form preparation and preview are available; authenticated exact transactions (#1013) remain Planned. Quarantined public downloads and selected local desktop draft actions (#1014) are described below. The existing public browser v1 remains navigate/extract only. From the public browser Work form, explicitly open the HTTPBin preparation controls, select a current Goal, acknowledge one public document contact/site access logging, and open the bounded job. Fill fields using the displayed current opaque nodes, check/radio controls, and request the literal private preview. Submission stays blocked; this public echo form does not place an order or mutate a business object. It imports no credentials, cookies or authenticated session.

The profile pins the reviewed source bytes and exact GET /forms/post; any source drift blocks before Chromium receives the document. Preparation disables JavaScript, service workers, requests, WebSockets, downloads and popups. Fresh DOM revisions and original Root/Goal authority are checked before every action. At most 20 actions and 180 seconds occupy the existing shared browser lane. Stale or ambiguous nodes stop with a fresh-snapshot requirement. Explicit Refresh current page snapshot captures the original live page, consumes one bounded action and replaces every opaque node reference. Cached history inspection does not resolve an uncertain action. Refresh clears private input and action acknowledgement; continuing requires a new explicit action against the fresh nodes. At the action bound, only history and cleanup remain available.

Reload uses the read-only owned-job list or exact request-key lookup to inspect completed/blocked history; it does not reopen a page or renew consent. Private inputs and preview artifacts are encrypted and excluded from generic journals. Success requires a current literal preview, private artifact readback and positive browser cleanup. Closing without a current preview cancels the job. Admission first requires the existing Operator ownership and recovery control's Enroll this authenticated scope action and a live stable operator identity. Refresh profiles after enrollment. Missing local Playwright files or a verified native kernel boot UUID report inactive before any child starts. The canonical physical reservation commits before the same-inode positive marker is synced and the driver starts. A crash between reservation and marker keeps unresolved read-only history; inspecting or replaying the request never launches another browser or infers no-child proof from missing metadata.

Positive physical closure retains the exact lane witness until its cleanup-only journal receipt commits. A durable CAS conflict keeps capacity reserved. Find physical browser cleanup exposes only original job identity, proof state and unchanged durable status to the same stable authenticated operator, including after authenticating through existing ownership recovery. Explicit acknowledgement records exact physical cleanup; it never adopts output, grants success, renews old Root/Goal authority, retries an action or resolves an external outcome. Exact receipt replay cannot clear a later job's reservation.

After lost owner-process cleanup, a changed verified native kernel boot UUID proves original resources are gone; the same boot stays blocked and requires an operator-managed reboot if no positive closure witness exists. Linux reads its kernel boot UUID; Darwin uses the fixed read-only kern.bootsessionuuid. Unavailable native proof or mismatched workspace/inode/job remains blocked. Process absence, elapsed time and an unlocked file are never cleanup proof. Every outcome records no_learning.

The local Linux Chromium/TCP/SQLite receipts exercise multi-field preparation, select/check controls, policy denial, DOM drift, private readback and reloaded history with external sockets/inference denied. These receipts establish those mechanics; they do not establish a useful business form workflow or production HTTPBin availability. macOS execution is unverified.

Bounded public browser tasks​

The bounded capability adds browser.public-task.v1 through the existing Work Board dispatcher and durable job repository. Its form creates an owner-bound, immutable input artifact before creating a Todo task; the operator does not type a workspace path or digest. Artifact metadata reads return identity, digest, expiry, and lifecycle state, never the input body. Creation and task binding have separate idempotency keys, and an uncertain response requires explicit reconciliation or an exact retry rather than an automatic POST.

The grammar permits HTTPS navigation and bounded DOM extraction only. Exact host and URL-prefix consent narrows the configured global site policy; query strings are part of that consent. Every request checks all resolved addresses and connects to a checked global address with the original Host and TLS name. Redirects require fresh consent and DNS checks. The ephemeral browser disables JavaScript and service workers and rejects authentication, cookies, popups, downloads, uploads, forms, and arbitrary scripts. An allowed public GET can still have site-specific effects; finite consent does not prove universal absence of mutation.

Each response is limited to 256 KiB. The transport requests identity encoding and rejects compressed responses before decoding. A site that needs scripts, authentication, or a compressed response can therefore be unavailable to this capability even when it works in the operator's ordinary browser.

One browser-task context occupies the cross-process task lane. At most eight browser tasks can be Ready globally. Each task has at most eight actions, eight navigations including the initial page, 32 requests, 64 KiB of serialized output, and 180 seconds, further narrowed by the current goal budget. This lane uses no model inference and does not acquire the remote-inference lane. Blocked resource and method callbacks share the 32-receipt progress limit. Overflow stops further checkpoints and prevents a successful artifact; blocked resources remain aborted and do not count as dispatched network effects. Missing browser prerequisites block execution while the CPU cockpit, task creation, and evidence inspection remain usable.

A blocked durable job still occupies its goal's outstanding-work budget until it reaches a terminal state. A known admission-budget refusal reports goal_budget_outstanding_limit before browser launch and releases the browser lane; it does not authorize raising the goal budget or replaying the blocked job. A malformed or expired deadline before launch records explicit no-context cleanup. Once launch is entered, unverified cleanup remains unknown.

Execution uses one deadline and reserves time for teardown. Awaited browser operations use the remaining budget. A stalled operating-system file operation can outlast this cooperative deadline; late work cannot publish success, and unverified cleanup holds the browser lane for explicit recovery.

Current task, attempt, goal, session, artifact, and durable lease authority are rechecked before actions and requests. Success requires expected checks, artifact readback, and explicit no_learning. Cancellation records context cleanup. Unverified cleanup retains the browser resource and shows browser_cleanup_required; later browser tasks remain unclaimed. Recovery requires outcome reconciliation and a managed backend restart after checking cleanup. Restart releases the process-owned resource; it does not authorize replaying an unknown job. An ambiguous dispatched request or process restart requires outcome reconciliation and is never blindly replayed. Work Board status remains separate from the durable execution status; last-known metadata is not a readiness or success receipt.

Opening a browser result in the existing artifact inspector requests an explicit owner-bound preview. The backend rereads only the job's canonical result file, checks its size and digest against the artifact and readback, and returns typed extracts and checks. The inspector renders the extracted text as plain text. Routine job and task reads remain metadata-only; a missing or altered result shows an unavailable preview rather than unchecked file content.

This remains Partial and is not Shipped develop behavior. Local fixture execution and production-network evidence are separate proof boundaries; authenticated browsing and general computer use remain outside this capability.

Bounded calendar meeting preparation​

This remains Partial and is not Shipped develop behavior. Provider-free tests establish local mechanics; a working Google account and live model usefulness remain explicitly external-unverified without an authorized canary.

Calendar settings accept an operator-supplied OAuth client and refresh token as write-only fields stored in the encrypted vault. Explicit verification obtains a bounded calendar list. Saving setup does not grant event access or model egress, and reading verified setup metadata does not repeat a provider call. An interrupted setup retains its original key. Retries during the 30-second preparation window preserve the pending result; a later retry reconciles stale vault material without storing a second credential. Missing material becomes blocked; unverified cleanup remains visibly blocked for reconciliation. Event consent binds the authenticated owner/session, an active goal, one verified calendar, selected fields, a finite window, an event limit, and expiry. Remote preparation requires an explicit model-egress choice.

Work offers a meeting-preparation form using verified calendars and redacted events. Selecting an event creates an immutable typed input and a Todo task; the existing task controls govern admission and execution. Preparation rereads the selected event, synthesizes one bounded brief through the governed strategist route, and rereads the event again. Changed or revoked authority blocks publication. Completion requires artifact readback and an explicit no_learning receipt. Work shows the actual route and outcome.

An optional finite schedule observes the consented calendar without making a model call. It creates preparation tasks for operator review, coalesces missed slots, and deduplicates unchanged event revisions. Pause and revoke are explicit controls. The current schedule lasts at most 24 hours, with earlier consent, goal, or input expiry tightening that limit. The form shows the effective bound; requests beyond it are refused rather than failing later without explanation. An uncertain previous read holds the observation lane until server reconciliation; an expired lease alone cannot free it. A refreshed list has its own read digest, while an unchanged event retains the selection provenance pinned by its existing task.

Settings shows the latest scan outcome separately from the schedule's state. The server can settle a failed scan as blocked after proving that its actual read transport has closed, without claiming that the scan succeeded. This cleanup can finish after consent or session revocation; another scan still requires current authority. A failed close or a crash without settlement proof keeps the lane quarantined. Calendar read cleanup cannot settle model charges or replay the old scan. Cancellation finishes the scheduler run receipt while preserving any unknown occurrence. Revocation during proposal publication prevents a new task and tombstones its unbound input; uncertain artifact cleanup requires recovery.

Unknown request outcomes retain their exact key and body. Closing and reopening Settings preserves credential-free controls only for the same authenticated owner/session. Setup credentials stay in component memory and are cleared on unmount or authentication failure. A deliberate new attempt requires a confirmed stale refusal or a reconciled known result; refreshing metadata alone cannot authorize duplicate work.

The existing artifact inspector renders a verified brief as plain text. Missing, altered, revoked, or expired evidence leaves metadata and recovery visible without exposing an unchecked brief. Routine metadata reads do not load provider event bodies or brief content. This capability does not modify calendar events, send communications, or learn preferences from meeting content.

Bounded Gmail source, watch, and reply drafting (M7 #890)​

The bounded profile adds an owner- and session-bound Gmail readonly path with encrypted credentials, explicit source and model consent, opaque local message bindings, bounded metadata watches, and private reply drafts. A watch uses the existing governed scheduler with the exact hourly or 6h cadence shape, starts in not_started, and may create at most three neutral inbox notices during the finite Goal notification period. The 512-key seen cursor fails closed with coverage_blocked rather than forgetting older messages. Inbox acceptance is the explicit human-triage step; scanning never creates an executable reply or contacts a model per message.

Reply drafting reads the selected message twice around one governed OpenRouter inference admission. The reviewed source is passed in full up to 8 KiB, model output is exactly {subject, body, caveats}, and the server attaches the message revision before writing a 0600 encrypted private draft. The private artifact has durable checkpoint, hash, readback, exact-key replay, and unknown-recovery states. Generic Work Board, inbox, notifications, and browser storage do not expose the private body or operator intent. The bounded reply intent is a local 0600 typed-input artifact and remains a plaintext residual within the local-workspace trust boundary; the source body and draft remain encrypted private artifacts. Lost setup, reply, and watch responses can be resolved by their original opaque key under the current authenticated owner/session. Watch notices obey the Goal's finite quiet-hours and notification allowance across the whole period; uncertain or over-capacity coverage stays visibly blocked for reconciliation.

This remains Partial. Focused SQLite and intercepted-transport tests prove the bounded mechanics; CPU-only/keyless OpenRouter operation, a real Google account, live Gmail usefulness, send operation, and paid model canary remain external-unverified. See the M7 mail wire contract in issue #890 for the exact request, recovery, privacy, and readback boundaries.

Scoped connected-source synchronization​

Scoped Gmail and Calendar synchronization is Planned until reviewed integration. Its bounded Python contract extends the existing connection, finite source-consent, vault, canonical durable-job and private-artifact owners. It introduces no second queue, credential-fetch surface, store or bridge. New sync admission requires explicit enrollment through the existing operator ownership flow (POST /api/auth/ownership/enroll). An unenrolled or revoked identity returns source_sync_operator_continuity_required before creating a job or contacting a provider. Native sync uses a fixed Linux boot/PID/start/namespace witness or Darwin boot-session UUID and native PID/start-time witness. Unsupported ABI or unavailable lifetime evidence returns connection_sync_platform_unsupported before admission. Darwin parser and recovery fixtures run on Linux; native macOS execution remains unverified. Existing source read-consents remain unchanged.

The existing Mail and Calendar connection routes own POST /sync and GET /sync. ConnectionSyncInput contains only goal_ref, connection_ref, source_scope, window and max_items. A request carries its own opaque request_uuid. Metadata synchronization requires an explicit acknowledge_sync_metadata grant; upgraded legacy consents retain a zero sync limit. The bound is a seven-day fixed window, at most fifty metadata records per provider/run and three pages. Gmail remains selected-label and optional selected-thread scoped. Calendar uses at most three exact selected calendar grants. A seven-day Calendar grant requires the explicit sync acknowledgement; existing narrower grants are preserved. Separate private-item acknowledgement selects at most ten bodies/details, with Gmail's existing ten-item body grant unchanged. No sync operation admits inference, send or reschedule work.

Each connection has one fixed provider/scope digest. Changing it requires an explicit cursor reset after the old reservation has been released through normal completion or verified physical-only cleanup. Old unresolved effects remain visible and unchanged. Before vault/provider contact, a serialized reservation mirrors the existing claimed durable root; every contact, adoption and private read revalidates the original owner/session, goal, connection, consent and vaulted credential binding. The reservation grants no authority independently of the canonical root's lease, fence and deadline. Provider contacts have a two-second maximum timeout clamped to that original deadline; metadata concurrency is two and the entire operation remains bounded by 120 seconds and original consent expiry. Fifty is an upper cap, never a completeness guarantee.

ConnectionCursor contains exactly connection_id, revision, scope_digest, provider_cursor and last_complete_at. The cursor and provider token remain in an encrypted private page artifact; the connection row contains only its canonical job/page pointer, CAS revision, scope digest and active-job reference. Only complete page adoption with an artifact hash and durable readback advances that pointer. Interrupted pages retain the last complete cursor and an explicit unknown root. Exact replay cannot repeat an uncertain contact. OAuth refresh POSTs and source GETs remain uncertain in the original effect ledger. Explicit physical cleanup can release only the connection slot after positive original callback quiescence or verified original process death; it does not settle the Unknown job, adopt output, decrypt a page, advance the cursor or retry work. Elapsed lease time is never proof of physical closure. A single rate-limit response may schedule one thirty-second cooldown under the same root/grant/deadline; another rate limit or an interruption stays visible for recovery. Restart does not replay an unknown contact or clear its reservation by age. Physical-only cleanup validates the authenticated stable operator identity and exact original root/session/attempt/fence/reservation while preserving all Goal and output fences. A changed or revoked Goal never authorizes private readback or output adoption; old Unknown roots remain separately visible after a slot is released. The fixed cleanup states are running, Unknown, cost liability, failed and succeeded. An absent effect remains absent. Succeeded cleanup requires the final adopted job/page/cursor revision, exact checkpoint artifact hash and successful readback, and a settled ledger; cleanup never reads or adopts the private artifact. A fresh Goal and explicit new source grant with acknowledged scope reset can rebind a current versioned item. The new citation invalidates old task evidence while original jobs, page artifacts, grants and effects remain immutable audit.

Generic citations are SourceItemRef values: provider, opaque local identity, revision, content digest, privacy and expiry. Public discovery, API status and browser persistence receive no provider token, body or calendar private detail. GET /sync exposes coverage, freshness, the current root/revision, safe failure and cooldown metadata, and the exact redacted metadata selection for reload. Private readback requires a separate acknowledged owner API read and the original grant must still be current. Revocation blocks sync/readback while retaining audit. Explicit provider deletions become tombstones; list omission alone does not prove deletion. The typed collect_connected_source_items callable reads exact current citations for the current native Mail reply and Calendar meeting preparation tasks without granting model egress. Each task can deliberately select at most three connections and ten unique item references, then separately acknowledge their use. The task Goal ID/revision must match every original sync page. Current grants, connection/item revisions, content digest and expiry are checked before the first primary provider/model contact and before final adoption, including a metadata-only check in the canonical terminal writer. The related reader adds no provider contacts; cached private source bytes and references never enter the primary model prompt. Only classified related references, coverage and freshness enter the existing result (encrypted Mail draft; Calendar metadata). Missing lifecycle binding or stale/revoked authority blocks execution without a source-provider fallback. Empty selections preserve legacy input and authority digests. These paths record explicit no_learning. The app's owned shutdown stops Cordis and profiled browser sessions while the current task service and its registry remain owned, then releases that task owner before stopping the Goal programme and source runtime. This order also covers startup cancellation and preceding stop failures; the scheduler stops once in the outer cleanup. It clears only the exact source dispatcher pointer before ordinary DB shutdown; optional host failures do not replace source authority.

Isolated regression/security checks use disposable SQLite/workspaces, a local paginated HTTP source fixture, separate-process reservation contention, encrypted artifact readback and negative authority/schema/migration cases. They establish these mechanics only. Real Google accounts, production operation and model usefulness remain external-unverified; no inference or eval is part of implementation or acceptance.

Exact owned-calendar reschedule​

ADR-019 accepts one literal owned-event reschedule through separate exact owned-event/calendar-list identity profiles, current owner/source proof, one approved conditional PATCH and strict independent readback. Response loss remains Unknown with no resend; a separate same-original-Root readonly observation preserves original liabilities. This branch implementation is Partial: actual authenticated SQLite/Vault/native jobs, approval, encrypted artifacts and managed operator UI have been exercised with only external Google HTTP/DNS simulated. Live Google remains external-unverified; availability of the bounded profile requires the installed reviewed program revision.

In Settings, import separate exact read and write profiles. In Calendar meeting preparation, readonly event selection may leave model consent unchecked; preparation and scheduled observation still require their explicit model grant. Select the returned event, verify the exact profile pair, and confirm the three unchecked finite reschedule permissions. Enter RFC3339 seconds with a literal UTC offset and an explicit IANA timezone. Create the native task and preview, approve its exact content, then execute once. Requested sendUpdates=none does not promise that Google reminders or other provider behavior cannot send messages.

The owned task detail exposes the separate Calendar native job. Its local Root/task-scoped identifiers are discovery hints: canonical metadata must match the selected task before private content or controls become available. Metadata remains inspectable after the original Goal closes, while private preview access uses current permission checks. For an original Unknown with proved transport closure, choose a new reviewed finite recovery Goal and explicitly acknowledge four readonly contacts through the exact original read profile. The auxiliary observation appears separately and never changes the original Unknown, deadline, authority or write liability. Neither response loss nor reopening automatically resends a write or observation. Expired active reschedule permission must be explicitly revoked locally before a fresh grant; expiry never renews permission. All reschedule and recovery results explicitly use no model and no learning.

Reschedule profile revocation invalidates local authority before credential cleanup. Owner-scoped Vault deletion and verified unavailable readback happen outside the native SQLite writer. An interrupted or failed cleanup appears as blocked_cleanup, which permits no provider contacts or private preview reads. Settings refreshes that metadata and offers an explicit bounded local retry of the original revoke UUID/digest with the current profile revision. Cleanup never renews profile authority or changes original native execution history. A verified unavailable credential is logical cleanup; encrypted audit bytes may remain and physical erasure is not claimed.

Exact Gmail reply send​

Partial: The ADR-016 operator path imports two separate grants in Settings → Accounts → Mail: readonly + identity and send + identity. Importing credentials grants no provider contact. Choose a current finite Goal and explicitly verify both grants against the same mailbox. Every refresh requires the exact observed scopes and the same stable identity; legacy Mail source access remains separate.

Open a completed private Mail draft in the Work Board inspector. Load the local reply profiles, explicitly authorize a source/identity read, and prepare the private preview. It shows the verified sender, one recipient, original Subject, literal saved body and expiry. Local copy edits are not sent. Approve these exact bytes separately, then send once. The original native operation has a 120-second deadline, one attempt and at most 14 contacts across preview and execution. Strict independent readback proves the sender's Sent-mailbox state; recipient delivery is not proven. Attachments, HTML, aliases and automatic learning are excluded.

An uncertain send remains Unknown; no resend. Inspect the original receipt manually after response loss or reload. Cancellation waits for actual owned transport closure and cannot erase a possibly accepted send. With the original live operator session, explicitly select a separate current finite readonly RecoveryGoal and authorize one Sent observation (at most nine contacts). Its auxiliary job and bounded observation history can confirm Sent state while the original status, deadline, Goal, approval, write effect and liability remain unchanged. A revoked/replaced operator Root, unproven worker closure, incomplete or ambiguous search, or unavailable private artifact blocks this path. A new Root cannot adopt the old send authority.

Readonly recovery requires the original worker's versioned transport-closure receipt, bound to that send's intent, execution fence and complete contact history. Every new contact invalidates prior-phase closure in its reservation transaction. A response-lost reservation can qualify when its actual HTTP client has positively closed; an expired lease, generic restart recovery or an empty process registry cannot establish closure. Older receipts without this proof remain blocked for recovery; the app does not reconstruct or resend them.

Focused acceptance uses actual authenticated SQLite, encrypted Vault/private artifacts, canonical draft admission/accounting, approval, native send and readonly recovery. Only external Google HTTP is intercepted for send/recovery; draft preparation separately intercepts the governed OpenRouter HTTP setup route and records real usage/effective-route receipts. The managed UI verifies literal multiline rendering, separate approval, sender Sent readback, an accepted-response-loss Unknown send, separate readonly observation and manual reload inspection. These receipts establish bounded implementation behavior, not live Gmail usefulness. Provider search indexing, changes between source read and send, and human review of untrusted incoming Reply-To remain explicit limitations.

Reviewed source-change follow-up​

Goals expose their success criterion, finite proactive budget, quiet hours, and review boundary. Source watches offer hourly, six-hourly, or daily cadence and retain per-run approval by default. A verified material change appears in the Guardian intervention inbox with local evidence, freshness, expiry, and recovery state. Accepting it creates one goal-linked Triage task in the existing Work Board; it does not execute that task or grant additional permissions. Snooze and dismiss persist without learning. Zero notification allowance keeps the inbox usable without sending a message.

The Goal loop also offers a separately reviewed public opportunity assessment policy over selected current public HTTPS watches. It stays disabled until the operator confirms its finite limits. New verified material packets may produce a literal cited judgment in the same Inbox; weak judgments remain silent history and invalid or stale evidence remains blocked. Goal edits require explicit watch and policy review. Accept creates a Triage review task, and cancel reports actual quiescence while retaining Unknown inference liability. These judgments do not execute a capability or update memory. Notifications remain a separate opt-in. Current cited opportunities offer Generate read-only plan for the fixed public browser-check and public-evidence-report blueprints. Generation makes one governed request and stages a non-executable Triage card; a separately acknowledged automatic-staging policy may stage it after assessment. Neither accepts the plan. Work shows the exact typed preview before explicit acceptance, then existing native approval and queue rules govern the browser read and, for reports, automatic CPU dossier/report steps. These retain verified local readback and no_learning. Two contacted generations per Goal per UTC day are the fixed cap; blocked generation creates no new task or reservation.

Reload performs no Generate or Accept. The canonical Work proposal read may adopt an already verified original native result without another contact while the original authority and deadline remain current. Contacted Unknown retains its cost liability and cannot resend. Request durable cancellation waits for verified transport/context cleanup; a normal same-workspace restart preserves the original proposal, Root and costs without renewing permission.

Explicit opportunity feedback is now separate from delivery and plan success. Use Helpful only for a completed matching verified plan, or Not helpful for an unwanted opportunity. Recommend opportunity preference runs one provider-free private CPU attempt; zero or insufficient eligible votes returns no_learning. Two verified Helpful outcomes may recommend display ordering; two Not helpful judgments on one watch may recommend optional suppression. Review the literal memory preview and separately check its acknowledgment before adoption. Rollback restores ordinary suggestions without renewing permissions. Source-watch reads, security/recovery notices and historical feedback remain available. Preference memory cannot enter ordinary model retrieval. Current Root, Goal, source, native outcome and complete feedback population are rechecked at adoption and use; unjudged new work does not become a vote. These reversible local mechanics do not establish measured usefulness or live provider quality.

New packets replace claimed work only while it has no provider contact marker, and the existing execution owner must prove closure. An unowned older execution leaves the latest candidate visibly waiting until closure or its finite deadline. Input privacy checks include literal source identifiers and URLs; excluded input blocks assessment while retaining the verified source-watch result.

See Guardian Intelligence for ownership, readback, idempotency, and bounded recovery contracts. Independent review corrections for current authority, original output integrity, automatic staging proof, canonical Work detail and cancellation cleanup were accepted. Local source execution and live external/provider usefulness have separate evidence boundaries; live external/provider usefulness remains external-unverified. This capability remains Partial.

Models And Runtime​

Ordinary inference follows the accepted #775 OpenRouter route; ADR-025 permits only the separate optional NEAR text capability described above. The UI and /api/runtime/status report the effective gateway, model, verified-or-unknown upstream, consent, budget, and degraded state; a configured key or model is not proof of a live route. Model-fabric settings, canaries, proof, receipt, and runtime-path status surfaces are explicit operator controls. Their local deterministic and intercepted-transport checks do not require a provider key or network call; a live canary remains an operator-authorised optional check.

The transport detail below documents the pre-#775 GPU topology for historical evidence and rollback diagnosis. It is not an active setup path:

  • LOCAL_LLM_API_BASE=http://192.168.1.26:8000/v1 is the chosen direct GPU text endpoint for Seraph text workloads;
  • SERAPH_VLM_BASE_URL=http://192.168.1.26:8001 also exposes an optional OpenAI-compatible text chat proxy under /v1;
  • that same wrapper performs screenshot vision through /v1/analyze-file.

They share the model-fabric selection, trust, proof, and receipt vocabulary but remain separate transport adapters. /api/settings/model-fabric reports configured profiles and policies. The model_fabric field in /api/runtime/status reports selected and attempted routes, the last actual successful route, fallback, degradation, receipt persistence, and fresh/stale/missing capability proof. Settings retains last-known metadata if a refresh fails and labels it STALE.

Capability canaries are intended to run only from an explicit authenticated operator action through POST /api/settings/model-fabric/canary. Each canary targets one exact profile, capability, endpoint/model/adapter binding with a bounded deadline and no fallback. Status and settings reads never launch inference.

Identity dependency: the fabric does not synthesize operator identity. REST/WebSocket chat remains fail-closed with zero model transport when ingress has not bound an authenticated principal. The completed model-fabric and authenticated-ingress milestones preserve that boundary; governed inference does not weaken identity checks.

Named profiles such as codex-openai and claude-anthropic are API model-route names only. They do not invoke Codex CLI, Claude Code, or another external agent runtime. Seraph owns planning, capabilities, tools, approvals, and receipts.

Screen Awareness And Reports​

Shipped foundation: the observer can ingest permitted context, store screen artifacts, route screenshot analysis through the governed OpenRouter vision adapter when cloud consent and capability configuration are present, and feed report infrastructure. Capture, analysis, and report synthesis are separate stages and expose separate failures.

Daemon capture handoff (ADR-035, #1147, Partial): the native daemon makes no cloud model call; its OpenRouter OCR provider is removed and Apple Vision OCR stays on-device as the daemon's only OCR provider (the cloud-backed codex-local provider was removed by operator decision on 2026-11-13; a codex-local setting falls back to Apple Vision and the CLI refuses it). When screen analysis is enabled and this Mac is paired, the daemon uploads each allowed capture to the loopback backend at POST /api/observer/captures, authenticated with the scoped paired-edge credential and its stored pairing policy (not a browser cookie; the daemon sends no Origin). The backend rejects built-in blocklisted apps, non-PNG/JPEG bytes, captures over 8 MiB or 50 MP and bursts over 30 per minute, stores the image privately (0700/0600, atomic rename) under the screenshot folder's .seraph-daemon-captures/, and creates the observation through the folder ingest/dedupe path with the real app name, window title and capture time, queued for the governed vision job. The daemon's bounded local analysis (Apple Vision text; any other local_analysis.provider is rejected with 422) becomes the observation's summary/activity/project and digest content until governed analysis exists. A repeated capture_id is idempotent. These files are not backed up (#1141).

Stored screenshot limits (#1263, Partial): archive_max_mb and archive_retention_days (screen-analysis settings) are enforced. A capture is stored once: when the backend stored the upload (accepted, duplicate or suppressed) the daemon writes no archive copy; it archives under --capture-archive-dir only when the backend did not store it (unpaired, failed, blocked, over 8 MiB) and preserve_captures is on. A near-duplicate the backend suppressed is kept nowhere. The cap applies per store (MiB, 0 = no size cap), and each store is pruned only by the process that writes it, oldest first, never following symlinks, bounded per run (5,000 deletions, 200,000 scanned entries; a cut-short run reports over_cap). The backend prunes .seraph-daemon-captures/ for size after each accepted upload, inside the ingest lock, and for age plus size in the daily screen_cleanup job, using the shorter of the observation retention and archive_retention_days; it never touches operator screenshot-folder images or the daemon archive. The daemon prunes its archive (whole captures, PNG plus sidecars, only files it names) for size after each archive write, for age plus size when the limits received from the backend change, and at UTC day rollover. It deletes only under limits received from the backend in that process, nothing before the first successful settings fetch, and keeps the last received limits through a backend outage; its last result is in daemon-status.json as capture_budget.archive_prune. The daemon reads the limits from GET /api/settings/screen-analysis without an operator session, so unless local no-login mode is on that read returns 401 and the daemon never receives limits: its archive is then never pruned. A 200 that lacks either limit, or a backend whose screen-analysis-settings.json is unreadable (the GET then omits both limits), also leaves the last received limits in force; the backend skips its own pruning with settings_unreadable and reports capture_store.limits_status. A non-zero archive_max_mb below 8 (one capture can be 8 MiB) is refused with 422, and the file a request just wrote is never pruned by that request. The settings file is written atomically. After a topology switch or a long run of failed uploads, the two stores together can hold up to twice the cap until retention ages the idle store out. A record whose image was pruned stays readable: GET /api/observer/screen-artifacts reports artifacts.image_available: false, /analysis returns 200 with the stored metadata and image_available: false (a legacy row whose sidecar is gone returns analysis_available: false), /image and /provider-output return 404, and a capture pruned before its governed analysis ran becomes source_missing and leaves digests and reports. GET /api/settings/artifact-storage reports screenshot_folder.capture_store (bytes, file count, cap, retention), shown read-only in the cockpit as "Stored captures". Existing archive files are removed only by these rules.

Daemon context post (#1248, Partial): the daemon's window-context post POST /api/observer/context uses the same native ingress as the capture upload. A request with neither an Origin nor a cookie skips the Origin requirement (the host allow-list still applies, and in local no-login mode so does the loopback-peer rule), gets no operator session, and must present the paired-edge credential (Authorization: Bearer plus X-Seraph-Node-Device / -Pairing / -Extension / -Reference). The handler verifies it with the capture upload's check (active pairing, matching identity, policy allowing media.ingest / screen_capture) before reading the body, which is bounded to 1 MiB; a missing, invalid or revoked credential is refused. A request that carries an Origin keeps the browser origin and operator-session path unchanged, and a cookie without an Origin is still refused with mutation_origin_required. An unpaired daemon still posts without the credential, is refused, logs once that context posting needs pairing and keeps capturing locally (if screen capture is enabled); a paired daemon logs a refused context post once per state change, and last_context_post_at in daemon status records only accepted posts.

Daemon notification receipts (#1258, Partial): the daemon's receipts POST /api/observer/notifications/{id}/ack, /fail and /display-attempted were refused with mutation_origin_required, because the daemon sends no Origin. A request to exactly one of those three paths (one id segment, no trailing slash) with neither an Origin nor a cookie now skips the Origin requirement (host allow-list and, in local no-login mode, the loopback-peer rule still apply). Unlike the context post it still resolves the operator session, because a receipt is fenced to the claim made under that session, and the handler additionally requires the paired-edge credential, owned by that operator, before reading the body (bounded to 4 KiB). A missing, invalid or revoked credential is refused, and the X-Seraph-Daemon-Id header must still match the receipt's worker_id. No other notification route (dismiss, dismiss-all, test, reconcile) gains a no-Origin pass. A paired daemon sends its paired-edge headers on these receipts only to its validated loopback backend; an unpaired daemon's receipts are still refused.

The optional selected-text companion implements ADR-022's ordinary top-frame Chromium text profile within ADR-008. A deliberate gesture, offline preview with deletion-only redaction, current paired Task/Goal permission and exact native approval precede encrypted private attachment. Current-owner reads and tombstone-first discard remain separate from historical execution success. Attachments bypass screenshot observation, model analysis, learning and generic model ingestion. Linux companion receipts do not establish macOS execution or native desktop capture; missing adapters block capture while the portable core remains usable. Pairing alone grants neither execution nor data egress, and protected-surface checks cannot identify every sensitive page. Availability follows the reviewed installed revision described above.

GitHub activity evidence for the end-of-day report (#1264)​

Partial (#1264). Seraph can collect the operator's own GitHub activity for a day, store it as evidence, and use it in the end-of-day report (see In the end-of-day report below). Code: backend/src/integrations/github_cli.py (the only code that starts gh), backend/src/integrations/github_activity.py and backend/src/scheduler/jobs/end_of_day_goal_report.py.

  • Credential. It uses the operator's local gh login. gh holds the account's full GitHub access and Seraph cannot narrow it. Seraph never reads the token: it does not run gh auth, and it does not open gh's config, hosts file or keychain. It only sends the GET requests listed in the panel (/user, /users/{login}/events, /repos/{repo}, /repos/{repo}/issues, /repos/{repo}/commits, /repos/{repo}/pulls/{n}/commits). The cockpit and the effective-grants rows always say: "Uses the operator's local gh login (full gh scope; Seraph only issues read GETs)." See the ADR-011 addendum.

  • Turning it on. Run gh auth login yourself, in your own terminal. Then open Settings → Accounts → GitHub → GitHub activity for reports and press Check gh login. Seraph runs gh --version and GET /user and shows the version, path and login; it stores nothing. Choose the repositories, tick the acknowledgement (optionally the model-analysis box) and press Enable. The server reads /user again and refuses (409) if the account differs from the one shown. Collect now collects today (in USER_TIMEZONE) and lists the stored items.

  • Turning it off. Switch off in the panel, or revoke the github_activity row in effective grants. After that no code path starts gh. Stored items stay for audit. If gh is later logged in as a different account, the next run stops the source (gh_login_changed) and it stays off until you enable it again. Being logged out, gh missing or no network only fail that run; the source resumes when the same account is back. The source belongs to your ownership identity, not to one login. Any live login of that identity sees it, its items and its effective-grants row, and can switch it off; each switch-off writes an audit event (github_activity / source_revoke) naming the login that did it, and the response says whether that event was recorded (audit_recorded). A new login, an explicit logout or a login's idle or absolute expiry does not stop it and does not need re-enabling. Nothing expires by time. What changes it:

    • Revoke ownership sets the row to stopped, reason owner_identity_revoked, in the same transaction as the revocation. An identity revoked any other way leaves the row active, and each run then ends blocked / owner_identity_revoked before starting gh.
    • A workspace restore or rollback sets it to stopped, reason workspace_restored; the restore and rollback receipts count it (github_activity_sources_stopped).
    • For a source enabled in local no-login mode, resetting that root or switching the mode off leaves the row active, and each run ends blocked / local_root_retired before starting gh.
    • A stop from a login of another ownership identity sets it to stopped, reason stopped_by_another_identity (see the next point).

    Switching off cannot recall a request already in flight: one read-only GET may still reach GitHub just after you switch off, and its result is discarded.

  • A lost ownership identity (#1270). A password login without the continuity cookie or a recovery code has no ownership identity, and the panel says so: if you enabled the source before, recover that ownership first (log in with your recovery code, or from the browser that holds the continuity cookie). Enrolling a new identity instead leaves the earlier source with the old identity, where it keeps collecting. So every authenticated login of the workspace, with or without an identity, sees the sources of other identities in the panel and as github_activity_other_identity rows in effective grants, and can stop an active one (Stop that source, or revoke that row; POST /other-identity-sources/{id}/stop with its revision). That view carries only the source id, its state and revision, a fixed message and the stop control (the effective-grants row: the owner marker, the credential kind and the fixed sentence): never the GitHub login, the gh path, the scope, the stopped reason, timestamps or the items. Active sources are listed first, so a bounded list cannot hide one. Stopping only removes authority. Enabling again, collecting and reading items stay with the owning identity. Each stop writes an audit event (github_activity / source_stop) naming the login that stopped it; the response's audit_recorded says whether it was written. A password login needs an ownership identity before it can enable a source of its own.

  • Where it works. Only where the backend runs directly on your computer as you (./manage.sh -e dev local ...) with gh installed. gh is looked for only at /opt/homebrew/bin/gh, /usr/local/bin/gh, /usr/bin/gh, /home/linuxbrew/.linuxbrew/bin/gh, or one absolute path you type, never through PATH. The path must end in gh and must not be inside Seraph's workspace or process runtime directory. The binary must be owned by you or root and not group- or world-writable; its directory must be owned by you or root and not world-writable. The resolved binary must stay under the install prefix it had when you enabled the source (so brew upgrade gh keeps working). Each run records the binary's path and SHA-256 and notes when it changed; a changed hash does not stop the source. The Docker and production compose images have no gh, so the panel reports it unavailable; mounting host gh config into a container is not supported. On Linux a keyring login needs DBUS_SESSION_BUS_ADDRESS in the backend's environment.

  • The child process. gh api --method GET --hostname github.com -i with a fixed endpoint, no shell, stdin at /dev/null, a new empty private working directory, a 30 s per-call liveness bound, 1 MiB stdout and 16 KiB stderr (stderr is dropped). The environment is built from nothing: HOME from the passwd database, PATH=/usr/bin:/bin, prompts and update checks off. GH_TOKEN, GITHUB_TOKEN, GH_HOST, GH_CONFIG_DIR, GH_DEBUG, proxy, CA and loader variables from Seraph's environment (including .env.dev) are never passed. Proxy variables are deliberately not passed, so an operator behind a mandatory proxy sees gh_request_failed.

  • What counts. The account GET /user returns, pinned by numeric id. Commits whose GitHub author or committer is that account (on the default branch, up to 3 branches you pushed that day, and your own pull requests updated that day); your own pull requests opened, merged or closed; your own issues opened or closed. Branch names are percent-encoded; a branch name Git would refuse is skipped and named in the run's limitations. Reviews and comments are not collected yet. A commit whose e-mail is not linked to the account cannot be attributed and is noted.

  • Scope. Default: repositories named by your own GitHub events that day. You can always read listed repositories, limit discovery to owners, and exclude repositories. GitHub's event feed can lag by minutes to hours and covers only 30 days, so listing your main repository is recommended; a day older than 30 days with no listed repository ends partial.

  • The day. [local midnight, next local midnight) in USER_TIMEZONE, converted to UTC; DST days are 23 or 25 hours. Items store only the UTC instant, and the day is derived when read. Collection for today stops at now.

  • Storage. github_activity_sources (the opt-in, keyed to the operator identity; no token column), github_activity_runs (one row per run with status, reason, limitations, counts, call count and the binary) and github_activity_items (repository, kind, number or sha, title, a URL Seraph builds itself, UTC time, and the run that first and last saw it). Re-collecting a day updates rows in place. Each run writes one audit event (github_activity / gh_cli) with its run id and trigger; a run you start (Collect now) also records your login (principal and session) as its lineage, while a scheduled run records none.

  • Limits. One gh process at a time, at most 120 per run and 10 repositories, no retry and no sleep. A rate-limit answer, or a response with no remaining quota, ends the run and keeps what was read. The calls count against your own gh rate limit. A run that was blocked (switched off, scope changed, login revoked) stores nothing; items are written only in the same transaction that confirms the source is still on at the run's revision.

  • States. Every run ends complete, partial, failed or blocked with one fixed sentence, for example "GitHub source blocked: gh is not logged in to github.com for this user. Run gh auth login in your terminal." or "GitHub source blocked: no gh command is available where Seraph's backend runs." A run that started and never finished is reported as such; no state deletes earlier items.

  • Routes (operator session required), under /api/capabilities/github/activity: GET (status; starts nothing), POST /gh/check, PUT /source, POST /revoke, POST /collect, GET /items?report_date=YYYY-MM-DD, POST /other-identity-sources/{id}/stop.

  • In the end-of-day report. The 21:00 job and the manual report route (POST /api/settings/end-of-day-report/manual) first run one collection for the report's day (trigger scheduled or manual_report), then build the report from stored rows only. A manual run collects only when the requesting login belongs to the ownership identity that owns the chosen source, and its audit event names that login. From any other login, or a login without an identity, the report uses the stored rows, writes a github_activity / report_collect skipped audit event, and carries the limitation manual_collection_skipped_not_source_owner. There is no second cron and no wait: collection finishes or records why not, then the report reads the store. Neither stage can fail the report.

    • Which source. The report is one per workspace. It uses the active source; if more than one ownership identity has an active source, it uses the most recently enabled one and adds the limitation multiple_active_sources. With no active source, the most recently changed source says what happened (switched off, stopped).
    • Report keys. github_activity (status, the one sentence, reason code, limitations, run id, collected-until, login, model_context included/not_allowed/not_sent, counts by kind, repositories and up to 200 items, each with a G# ref and the URL Seraph built) and goal_evidence (mapped, unparsed, not_requested or blocked; per goal the cited G# refs, whether screen evidence was cited, and rolled_up_from; goals_without_evidence, github_without_goal and counts of rejected citations). body stays the model's text, goal_alignment stays [] and the schema stays seraph.end_of_day_goal_report.v1. Commits with one title in one repository (rebased or squashed work) collapse into one item that carries same_title_count.
    • Prompt. With no source ever enabled the prompt is byte-for-byte what it was before. That promise needs the activity tables to be readable: when the report cannot read them it cannot tell whether a source exists, so the prompt gains a section saying only "GitHub evidence could not be read from the local store." and "Do not infer anything about GitHub work from its absence." Otherwise a ## GitHub activity section sits before ## Goals: the source, the collection status and its limitations, a count line, and at most 60 lines / 6,000 characters of [G#] repository | kind | #n or short sha | title | local time, inside a fence derived from the run and the items; titles are cut at 120 characters, control characters removed and <<</>>> runs split. No URL is sent. Consent is checked first: when the model-analysis box was not ticked, the section says only that GitHub evidence exists but was not shared, in every state, with no login, gh path or status sentence. When it was ticked and the day's state is failed, blocked, stopped, switched off, not collected or running, the section holds one fixed sentence for that status (never the login, the gh path, an exit code or another account) and "Do not infer anything about GitHub work from its absence." The full sentence stays in the report and the cockpit. Titles also lose C0 and C1 controls, line and paragraph separators and bidi controls. Goals get [A#] refs and their parent, and the model is asked to start with a <goal_evidence> block citing only [G#] and SCREEN.
    • After the answer. Code extracts the block, keeps only citations of refs it sent (unknown goals and ids are dropped and counted), rolls sub-goal evidence up to parent goals through Goal.parent_id, and computes the goals without evidence and the records tied to no goal. In the text every link a reader could follow (any http(s):, ftp:, javascript:, data:, vbscript: or file: run, a protocol-relative //host, www., or any github.com or githubusercontent.com host such as api.github.com or gist.github.com) becomes [link removed], and a [G#] that was not sent becomes [unverified reference]. With no block the mapping is unparsed and the text is kept (links still removed). Links exist only in github_activity.items[].url.
    • Blocked analysis. When the model call is skipped or blocked, the report still carries github_activity, and goal_evidence is blocked.
    • Stored episode. Metadata gains github_activity_status, github_activity_item_count, github_activity_run_id, github_activity_reason_code and goal_evidence_status: codes and counts only, never the sentence (which can name a login or a gh path). This metadata is read only by the reports API, not by memory recall or a prompt. Items stay in the private report archive and the activity table, not in memory content.
    • E-mail. Unchanged when no source exists. Otherwise one line, "GitHub evidence:" followed by the status sentence and the counts, is added to the plain text and one row to the HTML; no titles or links are e-mailed. Resend template variables are unchanged.
  • Residual risk. Anything already running as you can replace gh or run gh auth token itself; the binary checks do not defend against that. The argv builder is the only limit on what is sent, so a change to github_cli.py is a change to an authority boundary.

  • Proof. Fake gh runner and a fake gh executable in a temporary directory; no test runs the real gh or reaches the network. Behaviour with a real gh login is external-unverified: the first live call is the operator's own Check gh login.

Reading stored end-of-day reports​

Partial. The cockpit Reports section (under More on narrow screens, and Open Reports on Home) lists the end-of-day goal reports that the scheduled job already stored, newest first, and shows one selected report. It is read-only: it cannot generate a report and starts no model call.

  • GET /api/reports/end-of-day?limit=1..100 (default 30) lists each report's date, timezone, stored time, status, stored analysis_provider label, goal counts and tracked minutes.
  • GET /api/reports/end-of-day/{episode_id} adds the stored body, the activity/project/source mix, switch count and the archive SHA-256 values. Unknown ids and episodes that are not end-of-day reports return 404.
  • GitHub evidence (#1264). List items carry github_activity_status and github_activity_item_count. Detail adds github_activity and goal_evidence from the verified archive, each field re-validated: an item URL that is not a GitHub commit, pull request or issue URL is dropped. When the archive does not verify, github_activity has only the stored status, reason code, item count and the fixed sentence for that status (items_available: false) and goal_evidence is null; reports from before #1264 have null for both. The cockpit shows a GitHub evidence card (the sentence, the fixed credential line, the limitations in plain words, such as two ownership identities with active sources, counts and items as links), a Goals and evidence table, and turns a [G#] in the body into a link only when a stored item with a valid URL carries that ref.
  • Only observer memory episodes from end_of_day_goal_report whose metadata has kind end_of_day_goal_report and schema seraph.end_of_day_goal_report.v1 are listed. The repository reads at most 1,000 candidate rows per listing.
  • Blocked reports. A report whose analysis_provider is blocked:<reason> is shown as Blocked with its reason, and its body appears as a blocked notice rather than a report. Report generation, storage and email are unchanged; the scheduler receipt for such a run is tracked in #1140.
  • Mix breakdown. The mixes come from the report's own JSON archive, used only when its path is inside the report archive and its SHA-256 matches the stored value. Otherwise the detail falls back to the episode's stored minutes and observation count and says the breakdown is unavailable.
  • Privacy. Responses never include archive or receipt paths, raw screen samples or a structured per-app breakdown; the stored report text is returned as written and may mention apps. The routes sit under /api/*, need the operator session and, like /api/observer/screen-artifacts, only answer localhost requests.

Portable selected browser text profile (#926)​

ADR-022 accepts one optional Chromium companion journey: deliberate ordinary top-frame selection, offline preview and deletion-only redaction, signed metadata, exact original Root/Task/ finite Goal approval, signed matching bytes and encrypted private task readback. The existing native job owns its immutable capture identity and irreversible discard tombstone; pairing alone grants no execution or analysis. Text remains untrusted D1 context with no_learning and no automatic model/evidence ingestion. The companion's absence or unsupported protected surface is visibly blocked and does not prevent either macOS or Linux from hosting the CPU core. Browser privacy checks require operator review and cannot guarantee that ordinary prose has no secrets. This bounded profile is Partial, available with the installed reviewed program revision. Actual Linux Chromium companion receipts establish the selected browser journey; macOS execution and native desktop capture remain unverified.

Memory​

Cockpit shell layout (#1172)​

The cockpit shell has one fixed hierarchy. Talking to Seraph, what needs the operator and honest status stay visible in every section. Rarely used controls sit one click away. This layout is Partial: the defect fixes are covered by focused component tests. The layout was checked visually only in an offline preview with redacted fixtures, not in a live managed cockpit.

┌ No login (local only) ── gate strip, shown whenever local no-login mode is on ┐
├ SERAPH / <section> · [N approvals waiting] · [● <chat model> · <summary>] · │
│ [Commands ⌘K] · [Settings] · [⋯ More] │
├──────────────┬──────────────────────────────────────┬────────────────────────┤
│ Needs you │ Section canvas │ Conversation dock │
│ approvals │ Home · Inbox · Work · Goals · │ thread picker │
│ desktop │ Library · Connections · Reports │ "Seraph · <doing now>"│
│ queue │ (Work/Connections panes flow inline; │ messages │
│ Sections │ Goals renders inline) │ composer │
└──────────────┴──────────────────────────────────────┴────────────────────────┘
  • Conversation. The dock on the right is the only conversation surface, and every section keeps it. It holds the thread picker, New thread, the current Seraph activity, the messages, onboarding prompts and the composer (the collapsed voice-input section was removed by #1179). Shift+C opens and focuses it. It can be collapsed to a slim Chat tab, and the open/closed choice persists. Before this change, messages showed only in the optional Conversation window. The default section view had no visible chat, only a thin composer at the bottom.

  • Needs you. At the top of the navigation rail: pending approvals, from /api/approvals/pending, open the approvals pane. The shell reads one page of 8, so a full page shows as 8+. Queued native desktop notifications open Settings → Accounts → Native. A link leads to Home for next steps, Inbox decisions and blocked work. If approvals have not loaded, the rail says so ("Approvals not confirmed · check again") instead of showing zero.

  • Status. One trigger shows the chat model and an overall summary. Its popover lists the live link, chat model, tools and approvals, context signals, desktop presence, interruption budget and version. Each item names its source endpoint. Every state that is not ready says why and links to the fix, usually a Settings section such as Model, Native, Policies or General. Expected configuration is labelled No action needed and never raises the summary. One example is the desktop daemon turned off by DAEMON_ENABLED=false.

  • Observer context. /api/observer/state reports data_quality_reason next to data_quality. It is a comma-separated list:

    • unscoped_fallback: this operator scope has not been refreshed yet.
    • source_error:<type>: the source raised or has no runner.
    • source_degraded:<type>: the source reported itself degraded.
    • no_active_sources: no observer source is enabled.

    Only unscoped_fallback is shown as expected: Not refreshed yet, No action needed, and Partial context in Seraph presence. A source error, a degraded or missing source, or stale is a warning that names the sources and raises the header summary; Seraph presence shows Context degraded. A degraded value without a reason, as from an older backend, is a warning ("reason not reported") and is never called expected.

  • Chat model truth. The label comes from /api/runtime/status.effective_runtime, the chat_agent path. Top-level provider/model are configured defaults and are never shown as the chat model. A receipt retained from an earlier browser session is labelled not confirmed. A fabric route with no attempts is not reported as degraded just because its persistence is unknown.

  • Version. The bundle build is compared with the backend build_id from live runtime status. A mismatch is a warning with a reload or restart hint. A retained earlier receipt is never shown as the backend version.

  • Home rows. Each Home row leads with a human headline, such as the Goal or Inbox title, "Review plan" or "Approval waiting". One state line follows, with relative times like "2h ago"; the exact instant is on hover. Task, attempt and approval identities, ISO source times, ownership and historical-method metadata move into a per-row Details disclosure. The Home snapshot carries no Task titles, so Task rows name the next action instead.

  • Onboarding. While onboarding is active, a one-line banner at the top of the dock offers Skip onboarding and can be dismissed. Skip onboarding stays in the More menu.

  • More menu. Holds Start fresh, Skip onboarding (while onboarding is active), Priorities overlay, Capability palette, Extension studio, Show or hide conversation, and Workspace windows. Workspace windows is the existing floating pane manager. Its drawer now also holds the Default/Focus/Review layouts, Reset view and Save view. Shortcuts appear in the menu and in tooltips (Ctrl/⌘+K, Shift+1–3, Shift+C, Shift+Q, Shift+S). The four permanent hint chips were removed. The Settings toggle for cockpit hints still controls per-window hints.

Root causes of the defects reported in #1172 on develop @ 0850178d:

  • Empty canvas on Goals. activeSection persists in local storage. The Goals section had no canvas content of its own: it only set the priorities overlay's open flag, which is not persisted. After a reload the canvas was blank. Goals now renders the same single QuestPanel instance inline, through a portal. Section surfaces no longer depend on Windows-layout pane visibility, so the Focus or Review layouts can no longer blank Work or Connections.
  • Stale model and version labels. The shell fetched runtime status only in Work, Connections or the Windows workspace. Other sections kept showing a receipt retained in local storage from an earlier configuration, for example "LOCAL GEMMA STALE" and build v2026.4.11. A bounded shell refresh now runs in every section: runtime status, observer state, pending approvals and the policy modes every 30 s, plus one continuity check per mount.
  • Red "Degraded" presence. Seraph presence turned any observer data_quality=degraded into a red fault, but the frontend could not tell an operator scope that has not refreshed yet from a failing source. The backend now reports data_quality_reason, and only the not-yet-refreshed case is shown as expected.
  • Unknown chips. "Desktop unknown", "bundle unknown", "budget ?", "state pending" and the "unknown tools/approval" chips came from data the shell had not loaded, shown without a reason. They became status items with reasons and actions.
  • Home stuck on "Refreshing…" in the dev server. Under React StrictMode, the Home loader's first request was aborted by the simulated unmount and was never re-armed. It now reloads on remount.

Cockpit navigation and canonical inspector​

The bounded cockpit capability provides six persistent cockpit sections: Home, Inbox, Work, Goals, Library, and Connections. These select existing cockpit surfaces and retain the conversation, selected task, and window layout. Home uses one authenticated local metadata snapshot with six sections: next steps, pending approvals, recovery and Unknown work, active Goals, programme progress, and prepared results. Each page contains at most 20 items in aggregate. Pending approvals are separate from prepared results. Exact Goal, Task, output Attempt, programme, approval, Inbox decision and original-method identities open existing owning inspectors; the metadata snapshot releases no private bodies. Pending or snoozed Inbox decisions use safe source labels; only proposed opportunities count as decisions. Active Goals show bounded titles, and exact current selected Goal context retains its existing status and criterion.

Home preserves server order within each section. Explicit pagination retains the original as_of and opaque continuation, which expires after five minutes or the original operator-session cutoff. Each page rechecks current metadata and excludes newly created work; an existing decision may become eligible. Original anchor changes or expired authority require an explicit fresh snapshot. Failed or degraded refreshes retain confirmed rows and timestamps as historical metadata; a confirmed blocked source displays its current state. Missing metadata does not establish empty work or readiness. Current Root metadata remains available without stable-identity enrollment, while unsupported programme or method sources stay visibly blocked or Unknown. Recovered Task history grants no recovered Goal, programme or method access.

An originally admitted method tuple is historical evidence. Canonical scalar lifecycle and pointer metadata can show active or rolled-back history, but do not establish current private-body authenticity, suppression parity, execution readiness, rollback permission or measured improvement. Known deletion, suppression or unavailable metadata removes the method navigation target; the owning inspector rechecks its full private-source predicate before release or control. Programme next-digest timing is a passive quote for the original snapshot and timezone, never a promised inference run or renewed standing work.

Home and Inbox attention return keyboard focus to their originating context. Recovered history remains read only. Exact output inspection retains the selected original Attempt and reports its absence rather than substituting a newer one. Pending approval timestamps retain their UTC expiry instant. Verified GitHub readback converges the original latest attempt only while the original owner, Goal and connection authority remain valid; authority changes preserve settled effect truth and a specific blocked Task reason. Cost recovery links to Settings only after the owning API advertises the exact job/Goal control. See Attention and Recovery.

Focused component checks and retained authenticated public-API responses verify Home's local metadata bindings and native Task inspector routing. These controlled transport receipts do not establish a new rendered browser journey or live external usefulness.

The earlier attention/recovery journey is mechanically verified through real ASGI HTTP/WebSocket handlers and retained SQLite/artifacts, with intercepted public-source/GitHub transport and an explicit server-side test permission. Recreating that ASGI app against the same database proves persisted recovery. The bounded tested-publication profile separately verifies a managed backend restart, native Git production, response-loss recovery and explicit capacity closure against retained SQLite/artifacts, with simulated GitHub HTTP and non-local sockets denied. Governed GitHub Settings creates finite Root-bound write consent; the attention UI does not create it. Readback and capacity closure use separate explicit acknowledgments and preserve Unknown effect, cost and no-learning truth after consent stops or the Goal changes. Live external usefulness remains unverified.

This remains Partial; live provider and external-account usefulness remain explicitly external-unverified.

Connections labels Seraph presence as unknown until a complete continuity payload has been confirmed. A failed refresh retains previously confirmed values with explicit stale and last-confirmed labels. Missing metadata does not establish a clear queue, ready reach, or active proactive guidance; the operator can continue using Work while continuity metadata is unavailable.

Inbox has one active owner for the candidate list and selected inspector. Selected detail reads at most 20 append-only action receipts, with explicit history truncation. New optional action reasons are bounded and server-redacted; legacy receipts show unavailable reasons rather than invented explanations. The receipt projection preserves action response and exact replay semantics. Last-known evidence remains readable during a failed refresh, while actions require current confirmed detail. Page-scoped filters do not claim global search. Accepting a follow-up opens its existing Triage task for review; it does not authorize execution. Work shows the Inbox origin only after an authenticated candidate lookup confirms the exact accepted task relation; the origin link returns to that decision. Inbox owns disposition controls and the adjacent evidence inspector remains read-only.

Library reads canonical records through authenticated, owner-session-scoped GET /api/memory/records and GET /api/memory/records/{id}. Search is literal SQL text matching with bounded pagination; it performs no embedding or model request. The list is metadata-first. Selecting a record loads redacted content, bounded provenance, source/conflict state, and authorized task, artifact, readback, and audit references. Explicit history can inspect superseded or archived records; tombstoned, ownerless, and foreign-session records are not discoverable. This session boundary does not establish cross-login identity continuity. Task-linked artifact and readback references open the existing Work evidence route. Artifact inspection requires the authenticated job, parent lineage, identity and digest; a parent readback effect is matched by its exact effect and content digests rather than a fabricated artifact handle. Evidence-load failures appear in Work with a bounded explanation and retry guidance, including when the advanced operator pane is closed.

Ordinary correction, pin, and archive/redact use existing canonical memory controls with a reason and an authoritative refresh. Strong deletion uses the separate acknowledged delete/export live control; archive is not deletion. Reviewed task learning opens the existing Work Board memory review. Its signed proposal and correction path supplies later comparison authority; a generic text correction does not acquire that authority. No automatic learning follows from opening Library, Home, or Inbox.

These are the intended post-merge contracts. Milestone PRs carry branch-specific validation until the reviewed epic PR lands on develop; live provider quality and external-account behavior remain explicitly unverified.

Shipped foundation: Seraph owns canonical local memory and can augment retrieval through guarded provider integrations.

Since ADR-035 (#1147 PR3d) OpenRouter embeddings are retired; the NEAR TEE embedding slot replaces them but stays blocked by the ADR-035 evidence gate, so recall is lexical (see "NEAR TEE embedding slot and memory re-index" above). The paragraph below records the historical OpenRouter contract. On this branch, remote embedding is a separately admitted OpenRouter capability. Memory vector writes and vector search require an explicit enabled v2 embedding slot (or the existing explicit legacy embedding_model=openrouter/... configuration), exact-profile cost accounting, and fresh embedding/health/latency proofs with measured dimension. If any input is absent or stale, the vector path remains blocked and the caller must use the clearly labelled lexical/degraded path; it must not recreate the historical local 384-dimensional index or silently fall back to another provider. Existing un-namespaced local vectors are retained as migration evidence and require a tracked rebuild from canonical memory before they can be used again. The saved slot selects the existing schema/provider/model/dimension namespace. Search checks that namespace's measured geometry and usable index before making a query embedding; a missing index returns lexical/degraded results without a provider call, empty-table creation, or old-namespace fallback. Restart restores geometry from current exact proofs. New indexing remains explicit; canonical source and deletion/tombstone checks still apply across selection changes.

Those proofs are runtime prerequisites for enabling remote vector operations, not merge prerequisites. Keyless tests and health checks cover the blocked and lexical/degraded paths without making a provider call.

The accepted memory-boundary decision requires goals, approved facts, jobs, artifacts, checkpoints, approvals, and audit records stay canonical in Seraph-owned storage. Graph or external memory integrations remain advisory providers with provenance, conflict, deletion, export, and failure handling. This boundary authorizes no benchmark or model call during implementation or acceptance; follow the Constitution's standing no-evals direction.

Fixed reviewed local JSON formatter​

Status: Partial; availability requires the installed reviewed program revision and the declared host/profile proof. ADR-013 defines one optional fixed package, seraph.tool.json-format v1.0.0, exposed as work.json-format.v1. Work → Isolated JSON formatter shows its exact manifest, content digest, permissions and limits. Select a current Goal, review and approve that exact package, then create a JSON task. The existing dispatcher owns Ready/admission, priority and execution; there is no installer or registry.

Input is UTF-8 JSON up to 32 KiB; duplicate keys, non-finite numbers and excessive structure are rejected. Output is sorted, two-space JSON up to 64 KiB. One attempt has an original absolute deadline of at most ten seconds. The native profile enforces namespaces, a syscall filter, single-process execution, two CPU seconds, 128 MiB address space, bounded descriptors and 8 KiB stdout/stderr. These are hard CPU-time/address-space bounds, not CPU-rate or RSS quotas. It has no network, credential, model or canonical-memory learning permission.

The optional dependency profile supports native Linux x86_64 with the exact reviewed CPython 3.12.8 closure. Other architectures, macOS, missing builds or missing kernel enforcement visibly block this feature while the portable core remains usable. Dependency metadata availability is not isolation proof: the actual trusted supervisor/bootstrap must establish enforcement before package work. Runtime traffic does not use Docker, a rootful service or a tunnel.

Preparation is an explicit offline operator task, separate from invocation. Use the pinned bubblewrap source commit with Meson 1.9.1, Ninja and matching local libcap headers/library. Build in a repository-local private directory with selinux=disabled, man=disabled, tests=false, bash_completion=disabled, zsh_completion=disabled; leave assume_kernel unset and verify its effective empty default. The approved bubblewrap binary SHA-256 is 95a4c13e9652537a941aea7c714516f199f477312eadd4f172845e0e0b4f87f5. A differing binary remains Blocked pending review; Seraph does not install or download a replacement during use.

Build the committed trusted C embedding launcher against the matching local CPython headers/libPython, without a host-global install. From the repository root, the reviewed compiler invocation is:

tool_python_prefix=$(backend/.venv/bin/python -c 'import sys; print(sys.base_prefix)')
mkdir -p build/916-embedding-r5
cc -O2 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -Wextra -Werror \
-Wl,-z,relro,-z,now -Wl,-rpath,/runtime/lib \
-I "$tool_python_prefix/include/python3.12" \
backend/src/execution/tool_package_launcher.c \
-L "$tool_python_prefix/lib" -lpython3.12 \
-o build/916-embedding-r5/isolated-python
sha256sum build/916-embedding-r5/isolated-python

The approved launcher digest is 409611f20b3c59146155e6dad7e274e062bc9b756085c81d479bd6365da8fb54. The launcher obtains a bounded native hash seed before isolated initialization; no /dev device bind or package-controlled import path is permitted.

Manually prepare <canonical workspace>/artifacts/tool-package-runtime/json-python-bwrap-v1 under private, owner-controlled ancestry. All directories must be mode 0700; regular files mode 0600, with the launcher, bubblewrap and dynamic loader mode 0700. Copy only the fixed mapping returned by src.execution.tool_package_profile.expected_runtime_files() beneath rootfs/, plus the reviewed bubblewrap binary at bwrap. Create empty regular placeholders rootfs/input.json, rootfs/package.py, rootfs/out/result.json and an empty rootfs/proc directory. profile.json is a JSON object with exactly schema: 1, profile: "json-python-bwrap-v1", the pinned source_commit, assume_kernel: "", and files, mapping bwrap and each rootfs/ closure path to its SHA-256. No links, devices, extra files or writable directory entries enter the package namespace. inspect_runtime() validates this complete closure; the operator profile readback reports a block if any dependency differs. The actual OS preflight and attack receipts remain required before claiming containment on a new host. Private test receipts are evidence, never provisioning inputs.

After execution, the task inspector shows cleanup and no_learning. Read verified JSON output reopens the exact physical artifact and serves it as text/plain with nosniff; React displays literal text. Cancel records the original attempt's intent and waits for actual supervisor reap. If a response is lost, the bounded request remains in owner/session/task-scoped storage; manual refresh clears a pending cancel only after matching canonical attempt/fence/intent readback. Cleanup truth is shown separately from intent.

Inspect and recover original output can adopt only the exact reserved, finished output with actual reap proof under the original Root/Goal/permission and unexpired deadline. It creates no process, attempt or renewed allowance. Missing ownership, uncertain cleanup, an active lease or an expired original deadline stays Blocked/Unknown with an explicit reason. Produced but unadopted bytes may remain private audit evidence; they do not authorize Done or learning. Positive artifact and verified-output receipts commit together with native success only after the same writer rechecks current Root, Goal, attempt, lease and cancellation authority. Physical output and artifact metadata are staged before that writer; a late correction retains cleanup and produced audit bytes without adopted success. Pause/revoke/quarantine fence new work and late adoption; completed verified output remains read-only history.

The authenticated managed acceptance used actual local API/lifecycle review, approval, task creation, native OS execution, SQLite/artifact readback and a same-Root cold restart through manage.sh. The original output remained readable in the literal UI after restart, with one attempt and its unchanged deadline. Separate actual SQLite cases prove cancellation, logout/current Goal revocation, finished-output recovery and lifecycle contention. No provider transport was intercepted or contacted, and no macOS isolation proof is claimed. Availability requires the installed reviewed program revision and the selected runtime's verified readiness; new-host containment still requires its own proof.

Actions, Workflows, And Extensions​

Shipped foundation: tools, workflows, skills, runbooks, starter packs, MCP integrations, connectors, approvals, activity receipts, workflow history, and extension governance exist in the current codebase.

Partial: breadth and deterministic receipts are not equivalent to a fully durable or isolated runtime. The target gives every capability typed inputs/outputs, permissions, limits, checkpoints, artifacts, and visible receipts without depending on an external coding-agent runtime.

The earlier command-backed runtime direction from #613 and #615 is explicitly reversed by Epic #736 and removal issue #739. Those tickets remain historical evidence, not current setup guidance.

Remote inference admission​

The accepted #775 phase uses one shared bounded remote_inference admission lane: the active request finishes, then the highest-priority ready request runs. Interactive work outranks scheduled and background work. Queue, consent, cancellation, and uncertain remote outcomes remain operator-visible. On revisions containing the independently reviewed #1031 repair, async, synchronous and streaming execution retain that same serial lease after positive provider callback completion until the charge is recorded and canonical readback finishes. Since #1284 a missing or high charge no longer holds the lease: it is released once the provider callback has finished, whatever the billing lookup returned. Known charges stay known when current authority later prevents result adoption. Positive never-contacted denial proof retains its existing quiescence journal. Isolated scripted-transport receipts establish these ownership mechanics, not provider availability or model quality. Since #1284 (ADR-037) admission reads no dollar amount. A request to NEAR goes through these steps, in order:

  1. Local checks: configuration readable, egress not revoked, slot configured and enabled, purpose consent current, key present, catalog receipt bound, capability proofs present, request shape and size valid, at least one second left before the deadline.
  2. Broker admission: queue bound, one in flight, per-owner outstanding count, priority order.
  3. Request record: one ledger row with the consent digest, owner, job and UTC month. Its bound and ceiling columns are written as 0 and its owner ceiling as null.
  4. Contact: under the same writer lock the current policy digest is rechecked. A changed or revoked policy produces the durable "never contacted" denial.
  5. Provider call.
  6. Billing lookup, best effort within the remaining deadline. A price sets the row to settled with actual_cost_microusd; no price sets it to unknown ("not priced yet").
  7. The lane is released when the provider callback has finished, whatever step 6 returned.
  8. The result is adopted if the policy digest and owner session are unchanged. Cost plays no part.

The canonical job repository owns these request records and their original UTC month, which only groups spend for display. The deployment owner does not change with login, enrollment, or root identity. Actual OpenRouter account usage.cost rounds upward to whole micro USD; upstream BYOK charges and credit purchase fees are outside this accounting scope. There is no spend ceiling, per-request reserve, monthly period review, clock-correction review or overrun latch: a new month, a charge of any size and an unpriced request all leave the next request admitted. Spending limits are set in the NEAR account. Older settings history entries for period reviews, reserve reviews and ceilings stay in the hashed account record unchanged and are ignored.

GET /api/settings/model-fabric and /api/settings/model-fabric/accounting return inference_accounting with status (ready, or unavailable when the ledger is unreadable), period_id (the current UTC month), spent_microusd (settled charges of that month), unpriced_requests, history_verified, operation_count, operations_truncated and operations. The former ceiling_microusd, remaining_microusd, reserved_microusd, unknown_microusd, committed_microusd, authorized_period, period_high_water, period_review, request_reserve_review, overrun_max_cost_microusd, unreviewed_overruns and settings_revision keys are gone. inference_lane in the status keeps max_queued, max_inflight, max_outstanding_per_owner and max_retries. /api/runtime/status no longer reports cost_ceiling_microusd, and no readiness reason or chat error code is a cost code. POST /api/settings/model-fabric/accounting/period is removed (404; a stale tab is fixed by a refresh). POST /api/settings/model-fabric/accounting/settle stays and only records a charge for one request (operation/job identity, evidence digest and an idempotency key). A manually declared amount stays externally unverified and cannot revive a grant, resume a job, or adopt output; nothing waits on it. Settings shows this as Spend history: the month total, the request list with state priced, a not-priced label (answered, no answer, or outcome unknown), in progress or not sent, and the optional Record the charge control. Once a history gap is recorded (history_verified false; it does not return to true) it also says "Spend history may be incomplete since <date>", dated from history_gap_since; nothing is blocked. Deployment-wide egress revocation preserves credentials and cost history; re-grant requires an explicit current settings revision.

The managed launcher retains one profile descriptor at docker-data/<dev|prod>/workspace-lifecycle, independent of the configured workspace path, outside the restorable root (Docker mounts it at /app/workspace-lifecycle). A different or empty root cannot initialize a second ledger account under an existing deployment descriptor. Legacy receipt migration runs under the existing maintenance fence. Restore and rollback must retain the latest ledger matching its external high-water witness before promotion. Missing mount proof or a deployment-binding mismatch visibly blocks billable egress; that is a consent fence. Since #1284 (ADR-037) a missing or rolled-back witness, a stale ledger, or a crash between witness persistence and SQLite commit no longer blocks inference: the ledger reseals from its current rows and records a history gap (see Ledger verification above). The trusted directory retains one bounded content-free transaction checkpoint. With the runtime stopped, ./manage.sh -e prod accounting-reconcile --confirm repairs only the exact base revision and witnessed digest under the existing maintenance fence. It retains every request record and recorded charge and changes no job execution or grant authority. Arbitrarily older snapshots still require the latest retained ledger rather than this one-transaction delta. This does not claim tamper resistance against a host administrator replacing every trusted store.

The retained receipt also binds the owning configuration's monotonic egress epoch and digest. Copying older settings blocks inference; restore and rollback publish the archived policy revoked at a newer epoch before promotion. Only egress_revoked, egress_revision, and egress_revocation_key may differ from the archived policy during this reconciliation, and staged bytes must match the trusted digest. Every other canonical file and policy field retains its archive hash check. ./manage.sh -e prod accounting-reconcile --policy --confirm repairs the latest interrupted publication; a pending active publication becomes revoked and needs fresh current-revision settings review. The former accounting-reconcile --period month review is removed with the period gate (#1284); accounting-reconcile and accounting-rebind stay. Managed accounting-rebind --from-root /absolute/prior/root --confirm fences both roots, retains the latest ledger and its spend history, revokes copied provider authority, then changes the descriptor binding. Restore and rebind still refuse a target that would drop or roll back a request record, or that holds a foreign or newer ledger (the "liability regression" refusals): since #1284 those records protect at-most-once execution, not money. Spend history is carried. Every ledger-linked job must match the source's immutable invocation and authority bindings. Existing and missing target rows receive source evidence in a blocked state with no lease and a revision/fence newer than both generations; conflicting or missing source jobs reject the transaction. Exact interrupted retry retains that fresh fence and preserves audit/FK rows. It grants no job execution.

The managed local stack has the same commands under local (#1277). They resolve LOCAL_WORKSPACE_DIR and docker-data/dev/workspace-lifecycle through the same manage.sh resolution that local up uses and run the backend's own interpreter. When LOCAL_WORKSPACE_DIR moves (for example from /tmp/seraph-dev-data to ~/.seraph/dev-data), the descriptor still names the prior root, so chat fails with accounting_deployment_binding_unavailable and local up prints the recovery command. The binding stays a block under ADR-037 because it is a consent fence: it stops a restored, copied or moved workspace from switching a revoked egress consent back on. To recover:

./manage.sh -e dev local down
./manage.sh -e dev local identity # accounting_continuity_reason_code names the block
./manage.sh -e dev local accounting-rebind --from-root /absolute/prior/root --confirm
./manage.sh -e dev local up

Then re-consent to provider policy in Settings. The prior root must still exist. The rebind behaves as in production: it retains the ledger and its spend history, revokes provider policy and grants no job execution. The local backend does not hold the maintenance lease, so local identity and local accounting-rebind refuse while any part of the local backend is still up (PID or Seraph listener). local workspace-status prints the read-only lifecycle receipt at any time. local status still reports the stack. The production identity, status and accounting-rebind commands stay -e prod only.

The typed durable job contract persists a monotonic row revision alongside its owner fencing token. Claim, heartbeat, expired-lease transfer, and terminal transitions are compare-and-swap writes against the expected state, revision, and fence. Lease-bound receipt and transition writes also check the expiry in the database update predicate. Startup recovery runs before scheduler registration and marks work with an unresolved effect as unknown_external_effect; an operator must record a typed effect-specific destination readback before the job can be requeued. Since #1284 (ADR-037) an unpriced provider charge no longer produces cost_liability. That status stays valid and readable for jobs already in it: their reconcile/settle control keeps working, and settling is optional (the operator can also retry or dismiss them). Approval resume no longer compares the job's declared budget_digest; the column is kept, new jobs write null, and an approval granted before the upgrade is not refused as stale. Failed jobs with an unresolved effect use the same exact-effect reconciliation path, while deadline-expired or attempt-exhausted retries are rejected. Corrupt or missing effect history on an effect-bound failure blocks retry. A concurrent duplicate admission returns the original durable row after the unique idempotency fence, and the legacy projection cannot reset or finalize a typed job. Calendar and Mail typed jobs may recover a never-contacted reservation through the existing Work Board artifact and attempt binding, current original root/session/grants/policy, immutable input digest, and unexpired deadline. Their reservation identity and priority order remain stable. Digest-only ephemeral callbacks remain visibly blocked after restart; contacted work never auto-replays. This bounded slice remains Partial: live provider quality and billing evidence, and managed Docker deployment receipts, are separate operational evidence. It must not be described as exactly-once or crash-proof execution.

Failure And Recovery​

Fixed private Moltbook browser read profile​

ADR-018 accepts one optional private Home document read through actual isolated Chromium and the existing owner connection. The bounded implementation has mechanically verified local authenticated TCP, Chromium, encrypted readback and operator controls; it is not Shipped production-account truth. Normal production execution is hard blocked: providing a key or consent cannot enable live Home. Activation requires separately authorized effect, identity linkage and account/site evidence and a reviewed production execution path. Existing registration keys and claim material are outside local validation; the fixed agents/me alternative remains an unimplemented fallback, never a silent replacement for approved Home.

The separately unchecked finite consent names account summary and own-post activity fields and explains that the complete Home response is fetched while role/unrelated instructions are discarded. Home may deliver/consume a due briefing and produce access bookkeeping; it is not side-effect-free and grants no role invocation, heartbeat, notification mark-read or business mutation. The fixed native job allows one Home contact and two identity checks, no redirect, refresh or replay after possible contact, with private field citations and explicit no_learning. Unknown contact/cleanup remains visible and reserved until positive exact settlement. Local acceptance requires an actual authenticated local TCP site and real Chromium; those receipts cannot waive production gates. One immutable Home source envelope binds each field's explicit source reference, JSON pointer and value digest within 16 KiB provenance. Only the allowlisted result is retained encrypted (64 KiB plaintext/96 KiB ciphertext); discarded role text, unrelated feeds and raw headers stay ephemeral. Private readback requires current Root/Goal/connection authority and never grants model context. Original job history and exact applied-request replay stay read only after a cold restart; a new execution cannot inherit the prior deadline or consent. Expired or revoked authority denies private decryption. In-flight cancellation can positively close Chromium while transfer closure remains Unknown; that uncertainty keeps the exact reservation and browser lane quarantined. Local response fixtures and Linux-host proof establish neither production effects nor macOS host readiness, and no measured-quality or learning claim is made.

Optional Moltbook adapter profile​

The bounded work.moltbook.v1 adapter uses Settings → Accounts → Moltbook and existing owner Vault, Goal, approval and durable-job records. Linux and macOS core operation does not depend on Moltbook. Selecting a Vault credential is local configuration with no Goal or remote-use permission implied. Account registration and human claiming remain explicit owner setup on the official service. Seraph does not automate email, identity checks or challenge solving. Keys never enter prompts, generic skill HTTP calls, logs or output artifacts.

Local metadata refresh never contacts Moltbook. Explicit consent binds the current login, Goal revision, connection revision, credential and named actions, with personal noncommercial use and no redistribution. Explicit account inspect establishes claimed or pending truth. Reads produce private literal JSON with no learning; feed defaults to one item. Oversized or unsupported metadata blocks visibly rather than being silently truncated into success.

Public introduction posts/comments need a completed public introductions community receipt from the same authority within five minutes, acknowledgment of community purpose and exact draft approval. Content verification retains the same job: the human supplies a two-decimal answer and separately approves that answer for the original content, challenge and expiry. The immutable 300-second job has one attempt and at most six contacts: one status GET, three other fixed GETs, one creation POST and one verification POST. Restart, approval and manual answer never renew those allowances.

The official API instructions, checked 2026-10-03, document community feed/comment listings and verification. Verification or exact-ID readback alone cannot establish public visibility. Post publication requires exact-ID membership in one bounded public community feed page (at most ten items), then one exact-post GET matching the full approved text, verified ID, author and community. A truncated feed preview is membership evidence rather than full text. Comments retain the bounded target-comment listing and exact parent check. All contacts remain inside the original six-contact/deadline allowance; explicit hidden/private/removed metadata rejects adoption. An absent item remains unconfirmed. No invented positive visibility field, extra pagination, alternate origin or retry is used.

Before replying, one bounded feed page from the reviewed public introductions community must contain the exact target once; direct-ID access alone is not public permission. Explicit pending/failed or hidden targets block before any POST. This replaces the direct target GET within the same three-GET allowance.

Controls retain the exact request in owner/login-scoped session storage before POST; corrupt or unavailable storage prevents submission. Execution binds its action ID, phase and fence. Replaying creation reconciles only that request, even when verification has since been approved. Local refresh clears pending controls only from matching canonical receipts. Cancellation commits intent, fences further contact/adoption and waits for actual transport closure. Known remote content remains, never deleted. Unsettled contact stays Unknown with operation capacity held; an empty process registry or expired lease is not cleanup proof. Explicit recovery inspects an existing wait or adopts exact original output after trusted readback and physical digest checks under current authority; it never repeats HTTP. Provider cooldowns persist without automatic retry. Transport closure does not claim forced termination of system DNS threads. Definitive failed preflight reads retain their HTTP status and response digest. When no creation or verification POST occurred, all read receipts are settled, the owning worker has verified awaited transport closure, and current authority still matches, the original capacity slot is released. A 429 cooldown remains in force: the complete failed GET receipt and its once-observed bounded cooldown are committed atomically; the connection API reports the absolute cooldown with an explicit UTC offset. This also holds when another service has requested cancellation. That settlement preserves every original authority check except the cancellation and existing-cooldown contact fences; it authorizes no contact or output adoption. Cancellation releases a settled 429 slot only with matching original connection, revision and credential binding plus canonical cooldown covering the observed expiry. Stale Goal or Root cannot establish that proof, so the slot stays visibly held. Later work requires an explicit new admission after the cooldown expires. An uncertain transfer or authority drift retains capacity for explicit inspection.

Independent bounded review required public-list visibility proof and durable cooldowns; those fixes control this operator contract. The October 3 managed CPU-host journey used actual authentication, owner Vault, Goal, two exact approvals, native jobs, SQLite, private artifacts and literal UI output. Only the Moltbook HTTP boundary was intercepted. The same original operation was read back after a managed cold restart, expired original consent and an exact admission replay, with no new provider contact or deadline renewal. A bounded owner/login-scoped job reference supports explicit local refresh after reload; it stores no credential, content or verification secret and grants no authority. Completed exact admission replay is read-only; new work still requires current consent and source review. On October 4, 2026, the human-claimed seraphquest account published one transparent introduction; its full public post and feed membership were verified at the published post. One bounded feedback GET returned seven comments, treated as untrusted external content. The original native Unknown state, history and reservation remain unchanged; the subsequent full-readback correction is independent of that original job. Availability depends on the installed reviewed develop revision. This single event establishes no general provider quality or usefulness claim.

  • Trust effective API/UI state, not a default provider label.
  • Keep settings usable through partial metadata failure and show last-known state.
  • Treat Codex/Desktop LAN failures as an environment limitation when an operator-shell receipt proves the route; do not redesign around an SSH tunnel.
  • Never describe branch-local or target behavior as Shipped before merge and validation on develop.

Next Reading​

Exact Forgejo issue and comment forms​

ADR-029 adds two reviewed form profiles on the same fixed Forgejo connection: forgejo.issue-create.v1 (new issue in an owned repository) and forgejo.issue-comment.v1 (comment on an existing ordinary issue). In Settings → Accounts → Forgejo, after the backend session job, explicitly activate the profiles you want (activation contacts no provider and grants no POST). Prepare a form with its literal title/body: Seraph reads the exact form with scripts disabled and shows a protected literal preview. A separate unchecked approval then allows one native POST, followed by an exact numeric API readback of the new issue or comment. Reconfiguring the account, changing or re-activating profiles, revoking the connection or editing the value invalidates the approval before any provider contact. A lost response stays Unknown; reload and execute replay only inspect history, and GET-only recovery needs a trustworthy exact ID, never listing or search. Both profiles launch Chromium with its own sandbox and block if the host cannot provide it. backend/scripts/run_forgejo_form_fixture.py runs the actual journeys against a disposable local Forgejo 15.0.9. Production Codeberg remains blocked.

Exact Forgejo issue title transaction profile​

ADR-021 accepts one ordinary-issue title edit through the real Forgejo v15.0.9 editor, using backend-only session secrets and an exact separately approved title. The bounded profile has actual signed local Forgejo, Chromium, canonical job and cockpit evidence; availability requires the installed reviewed program revision. Live Codeberg is mechanically blocked pending a separate reviewed account/site/version activation path. Providing a key cannot enable live execution. Provider title history and notifications remain; the provider offers no atomic revision CAS or idempotency key. A lost response stays Unknown, read-only observation never resubmits, and reversal requires a new exact approval. Configuration grants neither Goal budget nor mutation permission.

In Settings → Accounts → Forgejo, select an owned Vault credential and active Goal, explicitly grant a finite read window, and run the bounded backend session job. The title preview shows exact old/new titles and numeric repository/issue identity before a separate unchecked approval and one Save. Jobs retain their original deadlines and exact request identities across reload and restart. An exact historical retry returns the original receipt without another provider contact. A separate acknowledged GET-only recovery reports the observed title while retaining the original Unknown and reservation; equality cannot establish attribution. The live original Root may explicitly withdraw an accepted job with a protected never-started journal, zero attempts/fence and no lease, execution request, contacts, effects or output, even after provider READ revocation/expiry, credential rotation or an owned Goal correction. This SQL-only withdrawal grants no execution and cannot release a started Unknown job. Revocation invalidates usable session authority and current private reads, and clears the fetched output display. Every outcome records no_learning; local mechanism evidence makes no live-account or quality claim.