Skip to content

CONTRACT: chore: merge main into epic/4278-host-overhead - #4435

Merged
schlessera merged 8 commits into
epic/4278-host-overheadfrom
chore/4278-refresh-main
Nov 21, 2026
Merged

schlessera merged 8 commits into
epic/4278-host-overheadfrom
chore/4278-refresh-main

Conversation

@schlessera

@schlessera schlessera commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Refs #4278

What changed

Merge main through b7202e638 into the host-overhead epic with real merge ancestry, then merge the epic's Git change receipts through 70094290d. Main's exact-origin trust (#4270), unchanged trust refresh (#4405), per-operation HTTP upstream isolation (#4409), and approved-owner immutable-read qualification (#4273) coexist with the epic's relay clocks, usage/cache counts, lifecycle phases, journals and maintenance. This PR remains a draft against epic/4278-host-overhead.

Why this shape

Both histories are retained; neither rebase nor cherry-pick substitutes for the requested merges. Relay timing and usage observations wrap main's typed admission, guarded dispatch and synchronous delivery fences. Preparation belongs before the dispatch clock; committed/contacted notification remains after a successful transport handoff. Terminal audit still joins in-flight admission effects. Cancellation does not invent an admission-return clock.

Conflict resolutions

Ref Conflicted file Resolution
C1 api-report/ui-server.txt Regenerated with bun run api-report after declaration build, together with all other reports; no hand-merged API report.
C2 docs/http-api.md Retained every trust/dispatch/failure field and the epic's inference clocks and provider usage fields in the same egress event row.
C3 docs/integration-contract/wire.md Retained idle scrub/maintenance metadata and negotiated historical admission evidence as separate additive sections.
C4 packages/ui-sdk/src/internal.ts Exported main's typed charge/failure names and the epic's inference timing/usage types.
C5 packages/ui-sdk/src/server/egress-proxy.ts Kept main's operation lifecycle, exact authority, metering, non-pooled HTTP sockets, preparation/dispatch fences, settlement and listener cleanup. Added the epic's timing/usage fields to that lifecycle's terminal observation and kept inference-in-flight tracking.
C6 packages/ui-sdk/src/server/inference-relay.ts Kept typed refusals, saturating received-byte accounting, guarded fetch handoff, metered response and synchronous delivery closure. Retained the epic's startup receipt, diagnostic isolation, boundary clocks and deferred usage observation.
C7 packages/ui-server/src/app.ts Retained owner-root descriptor lifecycle, owner-qualified reads and live trust publication, alongside epic startup release/index maintenance. The subsequent 70094290d merge was clean and also retains code-change history/routes and journal wiring.
C8 packages/ui-server/src/brain/turn-egress.ts Retained main's specific binding refusal cause/status and settlement, with the completed binding-refusal admission clock from the epic.

The cleanly merged files changed by both sides were also inspected for duplicate additions, including declarations, governance event schema, backend entry, host/connection wiring and the shared documentation. No duplicate code blocks were found. Repeated JSON examples in the existing package contract are intentional examples, not merge duplication.

Stream acceptance criteria

  • A1: Import all four main changes with main b7202e638 as an ancestor; no trust or transport guard is selected away.
  • A2: Refresh onto epic 70094290d with a real merge; retain its Git receipt/journal/app changes.
  • A3: Resolve all eight conflicts with both behaviors retained; generated reports and duplicate-block inspection are complete.
  • A4: Correct merge-incompatible test doubles and expectations without weakening product guards. Typed charge/dispatch and binding doubles match main; cancellation audits join admission effects; dispatch timing distinguishes preparation from post-handoff notification. Three trust-refresh scenarios now supply the sandbox areas that epic journal admission reads.
  • A5: Declaration build, regenerated API reports, strict typecheck with the 6 GiB heap, and lint pass on the refreshed source.
  • A6: All affected runtime tests pass on a qualified native host. Every final local failure is classified below; this host's missing prerequisites are not green proof.
  • A7: Local check:pr passes with the receipt below. Provider-history/native runtime qualification remains explicitly open under A6 and P8.
  • A8: One draft PR targets the epic; no ready confirmation, integration command, main push or merge is performed by this worker.

Fixes

X1 — Full-journal startup recovery (31c348b010e08a8b8d05eadd3f0c54a2419fc5a9, fix(ui-server): boot past the receipt recovery update on a full journal). The named conflict-admission test fails at the detached epic tip 70094290d without main and on the initial merged head. It is an epic boot regression from #4362, not a fixture that needs a larger quota: startup submits an accounted receipt UPDATE even with zero receipt rows. Diagnostic control records S12_BOOT_RECEIPTS {"n":0}; omitting only that update passes all four original assertions. No main control is claimed: this test file is new on the epic, and the requested main control was cancelled.

Receipt recovery now probes for a candidate without an accounted write. Known capacity/storage refusals defer that update, malformed-receipt quarantine, interrupted-turn recovery and interrupted-code-revert recovery; rows stay unchanged for the next open. The existing purge and configuration migration paths share the durable diagnosis, and an empty configuration migration no longer starts an accounted write. Unexpected failures still reject startup. Quarantine batching remains #4430; this PR only prevents its known storage refusals from rejecting ready.

Evidence logs: .wi-logs/merged-capacity.log; the detached control's s12-epic-capacity.log, s12-epic-capacity-cause.log, and s12-epic-capacity-without-empty-update.log; .wi-logs/recovery-failing-first.log, recovery-catch-mutation.log, recovery-empty-update-mutation.log, and recovery-final-focused.log. The detached control logs are retained outside the source checkout. All diagnostic mutations were restored.

Proof

Tested head: 31c348b010e08a8b8d05eadd3f0c54a2419fc5a9. Base: origin/epic/4278-host-overhead at 70094290d942418602733df094cfc94a473e8657. Main imported: b7202e638e43c86a296fbccb6f6a695164962866. The latest epic was fetched before push.

Ref Command / selection Result
P1 NODE_OPTIONS=--max-old-space-size=6144 bun scripts/build.ts --for ui-sdk,ui-server,ui-backend-claude,ui-backend-pi Pass, including declaration emit.
P2 bun run api-report Pass; generated reports are committed and regeneration leaves no diff.
P3 NODE_OPTIONS=--max-old-space-size=6144 bun run typecheck Pass.
P4 bun run lint Pass, including leakage.
P5 TMPDIR=<owned directory> bun run test <105 affected files> 1,901 pass, 76 fail, 15,189 assertions; every failure is classified below.
P6 bun run test over inference-clocks, inference-diagnostic-isolation, inference-usage, egress-operation-lifecycle, egress-socket-ownership, and turn-egress-clock-honesty Restored combined set at merged fb4547019: 64 pass, 0 fail, 392 assertions; these files also run in the final 105-file selection.
P7 The five held-lock/cancel/timeout controls in packages/ui-server/tests/trust-settings.test.ts At merged fb4547019: 5 pass, 0 fail, 21 assertions, including held-index-lock admission and cancel/timeout settlement; the final selection reruns the whole file.
P8 TMPDIR=<owned directory> bun run test packages/ui-backend-claude/tests/provider-history.test.ts packages/ui-backend-pi/tests/provider-history.test.ts Earlier attempt at fb4547019: 0 pass, two setup failures. Claude fixture CLI exited 1; Pi refused nested worker namespace setup. No usable provider captures or prefix qualification; this remains open.
P9 bun run check:pr --base origin/epic/4278-host-overhead Pass: all five gates, including 1,040 affected fast invariants.

All heavy commands ran serially behind the shared host lock. No repository-wide suite was run. The 105-file inventory is the union of test files changed by main and the epic under the two conflicted packages, including the newly merged Git receipt files. No new latency or production measurement is claimed. The new recovery controls do not require a model, API key or native worker namespace.

Failing-first and restored mutation receipts

The initial main/epic composition exposed outdated epic boolean operation doubles and provisional commit/cancellation expectations. They now exercise main's typed operation API and lifecycle without bypassing it. The first complete 103-file attempt also failed ADMISSION_NEVER_WAITS_ON_HELD_INDEX_LOCK (started: 0, expected 1) and both review10 cases. A temporary captured error frame identified the incomplete fake sandbox: undefined is not an object (evaluating 'governedHold.sandbox.areas.some'). Adding only areas: [] to the two shared fake definitions restores the five named controls above; production admission was unchanged.

Meaningful timing mutation: move mark("dispatchMs") from the guarded transport callback to immediately before operation.prepare(), then run bun run test packages/ui-sdk/tests/inference-clocks.test.ts --test-name-pattern 'dispatch clock includes preparation'. The named DISPATCH_CLOCK_FOLLOWS_PREPARATION_BEFORE_TRANSPORT_HANDOFF assertion fails: expected dispatchMs: 125, received 0. Restore the original source; the complete six-file combined set passes 64/64. The failed mutation and the successful restore are separate receipts. No module-load failure is counted as behavioral proof.

The boot recovery additions have their own failing-first and mutation receipts. Before the fix, all four full journal defers startup ... cases fail FULL_JOURNAL_RECOVERY_NEVER_REFUSES_READY. With the completed fixtures, removing the recoverable-error catch reproduces that same intended failure in all four scopes. Restoring it passes the four recovery cases, the known-storage-versus-unexpected-error controls, and the original full-journal conflict-admission case: 7 pass / 55 assertions. The four cases verify unchanged rows, an owner-visible durable cause, readable healthy history and recovery on the next open with headroom. Removing only the candidate probe fails EMPTY_RECEIPT_TABLE_STARTUP_HAS_NO_ACCOUNTED_RECEIPT_UPDATE (expected 0 writes, received 1); restore passes. The physical conflict admission assertion remains unchanged.

Every final-run failure

Final 105-file run: 1,901 pass, 76 fail, 15,189 assertions, one passing snapshot. Every final failure appears exactly once below. Group (a) has 57 host prerequisites; group (b) has 19 matching main-baseline failures. Group (c) below records the boot failure fixed after the preceding 105-file run; it is green in this final run.

Prerequisites: N1 = native worker user/network namespace setup is refused (unshare: write failed /proc/self/uid_map: Operation not permitted or bwrap: No permissions to create a new namespace). N2 = native manager fixture requires root-owned protected stage directories; this invocation runs as UID 1001. These are failed executions, not skipped tests or passing native proof.

The group (b) comparisons ran on main b7202e638 with the same runtime, environment and selected test names. Each row matches both the named failure and its error/assertion signature. The additional immutable-startup-view guard comparison is in .wi-logs/main-immutable-view-comparison.log. No copied/new epic test is counted as a main-baseline execution.

Ref Group Test file Failing test Classification evidence
F1 (a) packages/ui-sdk/tests/native-manager-capacity.test.ts a non-UUID receipt is quarantined without charging impossible staging storage N2
F2 (a) packages/ui-sdk/tests/native-manager-capacity.test.ts an unknown quarantine charge does not invent overflow for later valid bounds N2
F3 (a) packages/ui-sdk/tests/native-manager-capacity.test.ts bounded quarantine alone refuses staging as recovery and reports its cause N2
F4 (a) packages/ui-sdk/tests/native-manager-capacity.test.ts malformed receipt without a stage admits a healthy stage at a one-allowance budget N2
F5 (a) packages/ui-sdk/tests/native-manager-capacity.test.ts native checkpoint admission does not wait for another checkpoint's gated deletion N2
F6 (a) packages/ui-sdk/tests/native-manager-capacity.test.ts stage close failure retains its charge and independent bound until confirmed removal N2
F7 (a) packages/ui-sdk/tests/native-manager-capacity.test.ts surviving quarantined stage retains its original bound across smaller configuration: %s N2
F8 (a) packages/ui-sdk/tests/native-manager-capacity.test.ts surviving quarantined stage retains its original bound across smaller configuration: EACCES N2
F9 (a) packages/ui-sdk/tests/native-manager-capacity.test.ts unproven stage capacity reports recovery, not a retryable busy slot: EACCES N2
F10 (a) packages/ui-sdk/tests/native-manager-capacity.test.ts unproven stage capacity reports recovery, not a retryable busy slot: missing bound N2
F11 (a) packages/ui-sdk/tests/native-worker-view.test.ts native observation matches a real strict worker's frozen reads and private area writes N1
F12 (a) packages/ui-sdk/tests/worker-output-budget.test.ts maintenance refuses 8 MiB of staging past a 1 MiB allowance N1
F13 (a) packages/ui-sdk/tests/worker-output-budget.test.ts real staging admission excludes immutable input and refuses competing writable output until cleanup N1
F14 (a) packages/ui-sdk/tests/worker-output-budget.test.ts streaming maintenance bootstrap refusal releases staging N1
F15 (a) packages/ui-sdk/tests/worker-output-budget.test.ts strict refuses 8 MiB of staging past a 1 MiB allowance N1
F16 (a) packages/ui-sdk/tests/worker-output-budget.test.ts sync maintenance bootstrap refusal releases staging N1
F17 (a) packages/ui-sdk/tests/worker-output-budget.test.ts unchanged starting bytes are exempt while output writes remain bounded and cleanup releases admission N1
F18 (a) packages/ui-sdk/tests/worker-sandbox.test.ts managed worktree generations (#2430) > a generation is bound whole, only into an interactive worker, and only from a root-owned directory outside the brain N1
F19 (a) packages/ui-sdk/tests/worker-sandbox.test.ts shared reference source views (#2432) > each view is bound whole and read-only, only into an interactive worker, and only from a root-owned directory outside the brain N1
F20 (a) packages/ui-sdk/tests/worker-sandbox.test.ts worker sandbox writable areas (#1626) > scratch and workspaces persist; the rest of the brain survives write, rename, hardlink and symlink escapes N1
F21 (a) packages/ui-sdk/tests/worker-sandbox.test.ts worker sandbox writable areas (#1626) > the home stays read-only and per-turn XDG directories are writable (#1703) N1
F22 (a) packages/ui-sdk/tests/worker-startup-view.test.ts maintenance output copy masks the absolute secret destination N1
F23 (a) packages/ui-sdk/tests/worker-startup-view.test.ts maintenance output copy masks the output-root secret destination N1
F24 (a) packages/ui-sdk/tests/worker-startup-view.test.ts maintenance output copy masks the relative secret destination N1
F25 (a) packages/ui-sdk/tests/worker-startup-view.test.ts strict area copy masks the absolute secret destination and retains permitted writes N1
F26 (a) packages/ui-sdk/tests/worker-startup-view.test.ts strict area copy masks the area-root secret destination and retains permitted writes N1
F27 (a) packages/ui-sdk/tests/worker-startup-view.test.ts strict area copy masks the relative secret destination and retains permitted writes N1
F28 (a) packages/ui-sdk/tests/worker-startup-view.test.ts strict output publication holds the same path lock as a governed native writer N1
F29 (a) packages/ui-sdk/tests/worker-startup-view.test.ts strict persistent-area aliases cannot expose a governed peer's later configuration N1
F30 (a) packages/ui-server/tests/code-change-history-runtime.test.ts mounted owner code revert restores files, preserves later work on retry and shows fresh conflicts N1
F31 (a) packages/ui-server/tests/governance-policy.test.ts a live peer retaining a descendant permits shared admission of its pinned ancestor N1
F32 (a) packages/ui-server/tests/governance-policy.test.ts a missing folder preserves strict fallback beside an unaccounted peer N1
F33 (a) packages/ui-server/tests/governance-policy.test.ts admitted literal provider folders reach real governed mounts and stay masked without a proven recipient N1
F34 (a) packages/ui-server/tests/governance-policy.test.ts policy additions and exact tier B release reach real governed mounts and manifest N1
F35 (a) packages/ui-server/tests/http-supported-mounts.test.ts mounted supported handler: GET /api/brain/briefing N1
F36 (a) packages/ui-server/tests/http-supported-mounts.test.ts mounted supported handler: GET /api/brain/list N1
F37 (a) packages/ui-server/tests/http-supported-mounts.test.ts mounted supported handler: GET /api/brain/search N1
F38 (a) packages/ui-server/tests/http-supported-mounts.test.ts mounted supported handler: GET /api/brain/stats N1
F39 (a) packages/ui-server/tests/http-supported-mounts.test.ts mounted supported handler: GET /api/brain/stats/history N1
F40 (a) packages/ui-server/tests/http-supported-mounts.test.ts mounted supported handler: POST /api/brain/add N1
F41 (a) packages/ui-server/tests/http-supported-mounts.test.ts mounted supported handler: POST /api/brain/index N1
F42 (a) packages/ui-server/tests/maintenance-git-space.test.ts a pack below conservative headroom skips before Git starts N1
F43 (a) packages/ui-server/tests/maintenance-git-space.test.ts the same pack inside the allowance packs every loose object N1
F44 (a) packages/ui-server/tests/maintenance-provider-relay.test.ts a blocked day refuses maintenance's provider request before contact N1
F45 (a) packages/ui-server/tests/maintenance-provider-relay.test.ts a built-in key outside the run's own environment is neither released nor named N1
F46 (a) packages/ui-server/tests/maintenance-provider-relay.test.ts a nonzero maintain launch conservatively discards Git while publishing index output N1
F47 (a) packages/ui-server/tests/maintenance-provider-relay.test.ts a nonzero maintain run conservatively discards Git while publishing index output N1
F48 (a) packages/ui-server/tests/maintenance-provider-relay.test.ts credentialed maintenance launch holds no relayed key and no .env N1
F49 (a) packages/ui-server/tests/maintenance-provider-relay.test.ts credentialed maintenance run holds no relayed key and no .env N1
F50 (a) packages/ui-server/tests/maintenance-provider-relay.test.ts failed hosted packing publishes no Git files while ordinary index output publishes N1
F51 (a) packages/ui-server/tests/maintenance-provider-relay.test.ts headroom skip launch publishes no frozen Git objects N1
F52 (a) packages/ui-server/tests/maintenance-provider-relay.test.ts headroom skip run publishes no frozen Git objects N1
F53 (a) packages/ui-server/tests/maintenance-provider-relay.test.ts maintenance launch search embeds through the relay and is metered N1
F54 (a) packages/ui-server/tests/maintenance-provider-relay.test.ts maintenance run search embeds through the relay and is metered N1
F55 (a) packages/ui-server/tests/turn-data-tree.test.ts the brain's MCP server on the read-only tree stays fresh across in-place index updates N1
F56 (a) packages/ui-server/tests/turn-scope.test.ts small tmpfs brain: pausedFloor crosses the real statfs floor and permits Stop only N1
F57 (a) packages/ui-server/tests/turn-scope.test.ts small tmpfs brain: running crosses the real statfs floor and permits Stop only N1
F58 (b) packages/ui-sdk/tests/worker-startup-view.test.ts startup preserves sparse zero extents and mixed bytes within its bounded storage Main b7202e6: matching named error/assertion
F59 (b) packages/ui-server/tests/brain-application.test.ts server-owned application boundary > generated capture content also obeys the byte bound Main b7202e6: matching named error/assertion
F60 (b) packages/ui-server/tests/governance-policy.test.ts a gate without peer-plan checking cannot admit a governed folder request Main b7202e6: matching named error/assertion
F61 (b) packages/ui-server/tests/governance-policy.test.ts a governed turn's admission records commit on the write worker at FULL, never on the app connection (#2850) Main b7202e6: matching named error/assertion
F62 (b) packages/ui-server/tests/governance-policy.test.ts a governed turn's admission records have committed when admission settles, and its manifest close when it ends (#2850) Main b7202e6: matching named error/assertion
F63 (b) packages/ui-server/tests/governance-policy.test.ts a pre-existing unpinned peer cannot invalidate newly admitted provider folder mounts (ancestor) Main b7202e6: matching named error/assertion
F64 (b) packages/ui-server/tests/governance-policy.test.ts a pre-existing unpinned peer cannot invalidate newly admitted provider folder mounts (legacy) Main b7202e6: matching named error/assertion
F65 (b) packages/ui-server/tests/governance-policy.test.ts a pre-existing unpinned peer cannot invalidate newly admitted provider folder mounts (missing) Main b7202e6: matching named error/assertion
F66 (b) packages/ui-server/tests/governance-policy.test.ts an invalid admission retains provider folders from the turn reader's last-valid policy Main b7202e6: matching named error/assertion
F67 (b) packages/ui-server/tests/governance-policy.test.ts confirmed session preference tightens the next actual worker without changing another session or voice Main b7202e6: matching named error/assertion
F68 (b) packages/ui-server/tests/governance-policy.test.ts real first sends bind only their authenticated draft preference and emit actual admitted attribution Main b7202e6: matching named error/assertion
F69 (b) packages/ui-server/tests/governance-policy.test.ts real session routing carries dictation origin to policy admission Main b7202e6: matching named error/assertion
F70 (b) packages/ui-server/tests/governance-policy.test.ts real session routing carries interactive origin to policy admission Main b7202e6: matching named error/assertion
F71 (b) packages/ui-server/tests/governance-policy.test.ts real session routing carries live origin to policy admission Main b7202e6: matching named error/assertion
F72 (b) packages/ui-server/tests/http-supported-mounts.test.ts mounted supported handler: POST /api/brain/sync Main b7202e6: matching named error/assertion
F73 (b) packages/ui-server/tests/http-supported-mounts.test.ts mounted supported handler: POST /api/schedules/proposals Main b7202e6: matching named error/assertion
F74 (b) packages/ui-server/tests/turn-data-tree.test.ts a governed masked turn's own applications reach its private index, and no masked byte ever does Main b7202e6: matching named error/assertion
F75 (b) packages/ui-server/tests/turn-scope.test.ts real host restart kills its paused namespace, records interruption and never grants a retained answer Main b7202e6: matching named error/assertion
F76 (b) packages/ui-server/tests/turn-scope.test.ts repeated ignored 100 MB observations count once per path while hashed rewrites keep their version bytes Main b7202e6: matching named error/assertion
Ref Group Previously failing test Fixed result
F77 (c), fixed by X1 packages/ui-server/tests/journal-writer-delta.test.ts — new conflict metadata cannot bypass physical journal admission on a full existing journal Pass in the final 105-file run. The detached epic control reproduced the boot failure; the new candidate probe, typed recovery deferral, durable diagnostics and catch/probe mutations are recorded under Fixes.

Changesets

Main's existing .changeset/exact-origin-trust.md (minor), .changeset/trust-refresh-admission.md, .changeset/egress-upstream-socket-ownership.md, and .changeset/3613-approved-owner-read-resolution.md (patches) are retained. The boot fix adds .changeset/full-journal-receipt-recovery.md for a server patch. Package-reference validation and the complete pending changeset plan pass; no extra merge-only changeset is needed.

Containment and provider history

  • G1: Only JournalCapacityError and JournalStorageUnavailable from startup recovery are deferred. Unexpected failures still reject ready, proved by the selective-error control.
  • G2: The affected historical rows remain unchanged, charged and uncertain. A refused receipt/quarantine/revert update does not prevent unrelated history and authenticated diagnostics from being served.
  • G3: Restricted operation is sufficient: leave the rows pending and keep every physical journal admission guard. The unchanged conflict-admission assertion and the zero-update probe test prove no journal capacity bypass. Refusing the whole host is unnecessary.
  • G4: Each later open retries mechanically; the tests reopen with headroom and observe receipt partial, completed quarantine, interrupted-turn partial, or interrupted-revert unknown. No trust judgment or owner repair script is introduced. Historical failure evidence is retained. The guard clears at the next open with headroom; retrying it on a running host (idle maintenance) is follow-up ui-server: deferred startup recovery is not retried while the host runs and keeps only the last cause #4437.
  • G5: Causes are committed to the existing UI-database journal.cleanup.lastFailure setting and exposed through journal cleanup status, independently of the full journal. Structured warnings identify the recovery step and error; a throwing diagnostic sink cannot block boot.
  • G6: Each full-journal scope test proves healthy history stays readable while the affected row remains unchanged. Existing socket/relay/source-trust controls retain their independent fences. Provider-facing tools, prompts and prior messages receive no recovery/timing data. Local provider-history attempts produced no usable captures, so native prefix qualification stays open.
{"version":1,"kind":"brain-check-pr-receipt","head":"31c348b010e08a8b8d05eadd3f0c54a2419fc5a9","base":"origin/epic/4278-host-overhead","mode":"focused","startedAt":"2026-11-21T14:55:06.944Z","finishedAt":"2026-11-21T14:56:25.270Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":13497.073225},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":129.21113400000104},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":97.18209699999716},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":27.793824000000313},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":64557.946330000006}]}

Checklist

  • Complete selected hosted proof and recorded independent review of the final head; orchestrator-owned.
  • Stream implementation criteria are met; remaining proof gaps are explicit.
  • PR/advanced issue release milestones verified before the orchestrator merges.
  • Existing consumer changesets and both contract/documentation additions are retained.
  • Local lint/leakage passes; containment is addressed above.
  • Provider-history/native runtime qualification succeeds on a qualified host.

Anything left open

Native/sandbox runtime qualification and the unchanged-main failure cohort remain open with the actual evidence above. Local preflight passes. The orchestrator owns independent review, remaining labels/milestones, merge into the epic and its eventual main qualification. No issue is closed here. No follow-up issue is filed by this worker.

Decisions needed: none. The new boot fix is explicitly authorized; no final-run failure is left uncategorised. The #4430 quarantine batching work remains separate.

)

* CONTRACT: feat(ui-server): enforce prospective exact-origin trust (#3609)

* CONTRACT: fix(safety): fence reviewed origin admissions across publication and connect waits

* CONTRACT: fix(safety): bind shared cards to context and preserve trusted fork admissions

* CONTRACT: fix(ui-react): distinguish mixed source trust and human safety verdicts

* CONTRACT: fix(safety): separate transport approvals and hash verified policy bytes

* test(ui-sdk): type transport approval evidence explicitly

* CONTRACT: fix(safety): enforce IPv6 tunnels and retain last-valid trust on read failures

* test(ui-server): preserve selector scheme literal type

* CONTRACT: fix(safety): unify live trust observation and cache stable generations

* CONTRACT: fix(egress): canonicalize hosts and fence every send independently

* fix(egress): reject unmatched brackets in policy host patterns

* CONTRACT: docs(api): record independent recipient approval evidence

* CONTRACT: fix(safety): validate admission evidence and cache only verified live state

* test(ui-react): keep admission fixture discriminants literal

* CONTRACT: fix(safety): bind unmatched evidence to live snapshot and render IPv6 authorities

* test(ui-react): use supported polling assertion options

* CONTRACT: fix(egress): preserve DNS dial authority and version-one detector IDs

* test(ui-sdk): preserve legacy history fixture literals

* CONTRACT: fix(egress): cancel queued refresh and discriminate charge refusals

* CONTRACT: fix(trust): scope revocation to source rule and validate byte charges

* CONTRACT: fix(trust): retire source instances and unify send decisions

* CONTRACT: fix(egress): allow safe completion at exact byte cap

* CONTRACT: fix(egress): publish recipient grants only at dispatch

* CONTRACT: fix(egress): retain one typed refusal across all callers

* CONTRACT: fix(egress): guard the complete operation lifecycle

* CONTRACT: fix(egress): validate provenance and cancel every dispatch

* CONTRACT: preserve relay failure causes and own terminal cleanup

* CONTRACT: fence provider sends and preserve cancellation evidence

* CONTRACT: preserve upstream status and fence buffered provider responses

* CONTRACT: share relay response accounting and terminal fences

* CONTRACT: publish dispatch facts after transport starts and fence delivery

* CONTRACT: fence HTTP connection construction and prove selector retirement

* CONTRACT: preserve route allowance and debit all received overflow

* CONTRACT: classify synchronous transport failures before terminal cleanup

* CONTRACT: meter received HTTP headers before forwarding filters

* CONTRACT: publish egress exposure only after transport construction succeeds

* CONTRACT: bind recipient receipts to dispatch and share admission validation

* CONTRACT: meter relay request heads before filtering

* CONTRACT: preserve legacy egress routes and meter interim HTTP heads

* CONTRACT: require durable occurrence confirmation before trusted dispatch

* CONTRACT: preserve own-input approvals and classify peer recorder changes

* CONTRACT: retain dispatched session grants and preserve outward callback inputs

* CONTRACT: preserve shared-card approvals and inference refusal compatibility

* test: preserve compatible inference text at relay boundaries

* CONTRACT: exclude exact shared-card peer write reservations

* CONTRACT: preserve refusal causes through session binding
* feat(ui-server): bind immutable reads to approved owner evidence

* fix(ui-server): retain publication root identity across restarts

* fix(ui-server): require live host continuity for owner qualification

* fix(ui-server): close owner continuity during normal shutdown

* fix(ui-server): attest owner approval against pinned native brain identity

* fix(ui-server): wire native owner identity into host publication

* chore(ui-server): keep native root helper types private

* fix(ui-server): resolve owner evidence through live Settings policy
@schlessera
schlessera marked this pull request as draft November 21, 2026 14:59
@schlessera schlessera added the contract Touches the integration contract: CONTRACT: commit, contract doc updated in the same commit. label Nov 21, 2026 — with schlessera-agent-fleet
@uploads-sh

uploads-sh Bot commented Nov 21, 2026

Copy link
Copy Markdown

No uploads on this PR yet

This PR changes UI files (packages/ui-react/src/components/chat/safety-indicator.tsx and packages/ui-react/tests/browser/safety-review.layout.tsx). Screenshots help reviewers see what changed.

  • From the CLI: uploads put before.png after.png --pr 4435
  • From an agent: ask it to attach screenshots with uploads.sh
  • By hand: drag images into the PR description and they're imported automatically
Tips for agents

Label each shot so reviewers know what they're seeing. Labels apply to every file in a call, so run one put per shot:

uploads put after.png --pr 4435 --meta path=/settings --state after --caption "Saved settings toast"
uploads put chat.png --pr 4435 --app ios --screen "Chat" --state after

No CLI? With the Uploads MCP, call sign_upload_url for files on disk (or put) with repo, pr: 4435 and the same screen, state and caption fields.

This comment updates with each upload, so you don't need to post the images yourself. A shot or two in the PR description is still welcome. Check what's attached with uploads list --pr 4435. More in the github-screenshots skill or the agent docs.

Workspace admins can turn this comment off in Settings → GitHub · docs

@schlessera schlessera added type: chore Tooling, CI, release plumbing, dependencies. area: ui-server Hono app factory: turn coordinator, auth, session catalog, routes, cron. labels Nov 21, 2026 — with schlessera-agent-fleet
@schlessera schlessera added this to the 0.45.0 milestone Nov 21, 2026
@schlessera schlessera added the area: ui-sdk Wire protocol, runtime schemas, the server and client SDK surfaces. label Nov 21, 2026 — with schlessera-agent-fleet

Copy link
Copy Markdown
Owner Author

Independent review

Reviewed head 31c348b against base 7009429. Reviewer: agent. 7 findings: 0 fixed, 0 filed, 0 rejected, 7 without a disposition.

{
  "version": 1,
  "kind": "brain-review-receipt",
  "pr": 4435,
  "head": "31c348b010e08a8b8d05eadd3f0c54a2419fc5a9",
  "base": "70094290d942418602733df094cfc94a473e8657",
  "reviewer": "agent",
  "outcome": "findings",
  "findings": [
    {
      "summary": "F1 packages/ui-server/src/brain/turn-journal.ts:181 — When quarantine is deferred, readers still parse the malformed receipt. On a full journal, ready resolved but details() threw a JSON parse error. If that turn is the oldest collection candidate, expire() calls summary() on the same receipt and prevents unrelated writes from reclaiming capacity."
    },
    {
      "summary": "F2 packages/ui-server/src/brain/turn-journal.ts:161 — Deferred recovery has no retry on the running host. After a temporary storage refusal cleared, maintain() left both dead turns in recording. A dead revert likewise stays applying and excludes its turn from collection until restart."
    },
    {
      "summary": "F3 packages/ui-server/src/brain/turn-journal.ts:158 — Each deferred record overwrites journal.cleanup.lastFailure. With two interrupted turns, only the second turn’s cause survived in owner-visible storage while both remained unresolved. A later cleanup failure can erase even that diagnosis."
    },
    {
      "summary": "F4 packages/ui-sdk/src/server/inference-relay.ts:256 — The first upstream read is timed after readRelayResponse charges the chunk. When the first chunk exceeded the remaining budget, the audit recorded the budget refusal but omitted firstChunkMs even though the upstream read had resolved. The HTTP contract requires that reached boundary."
    },
    {
      "summary": "F5 packages/ui-sdk/src/server/egress-proxy.ts:465 — admitMs is recorded before the relay runs its synchronous charge(0) admission check. The HTTP contract defines this clock after the final synchronous check. Time spent rechecking authority is excluded even when that check produces the refusal."
    },
    {
      "summary": "F6 packages/ui-server/src/brain/turn-journal.ts:158 — Every deferred row creates a new settings writer channel. The SQLite worker retains each channel’s procedures until shutdown. A full journal with many interrupted turns or reverts therefore leaves one extra channel per failed recovery resident for the host’s lifetime."
    },
    {
      "summary": "F7 packages/ui-sdk/src/server/inference-relay.ts:249 — Autonomous relays without an egress operation now create the usage observer and schedule SSE parsing for up to 64 KiB per response. The optional observeUsage call discards the result. The epic skipped this work for those routes."
    }
  ]
}

Copy link
Copy Markdown
Owner Author

Independent review

Reviewed head 31c348b against base 7009429. Reviewer: agent. 7 findings: 0 fixed, 6 filed, 1 rejected, 0 without a disposition.

{
  "version": 1,
  "kind": "brain-review-receipt",
  "pr": 4435,
  "head": "31c348b010e08a8b8d05eadd3f0c54a2419fc5a9",
  "base": "70094290d942418602733df094cfc94a473e8657",
  "reviewer": "agent",
  "outcome": "findings",
  "findings": [
    {
      "summary": "F1 packages/ui-server/src/brain/turn-journal.ts:181 — When quarantine is deferred, readers still parse the malformed receipt. On a full journal, ready resolved but details() threw a JSON parse error. If that turn is the oldest collection candidate, expire() calls summary() on the same receipt and prevents unrelated writes from reclaiming capacity.",
      "disposition": "filed",
      "issue": "schlessera/brain-kit#4430"
    },
    {
      "summary": "F2 packages/ui-server/src/brain/turn-journal.ts:161 — Deferred recovery has no retry on the running host. After a temporary storage refusal cleared, maintain() left both dead turns in recording. A dead revert likewise stays applying and excludes its turn from collection until restart.",
      "disposition": "filed",
      "issue": "schlessera/brain-kit#4437"
    },
    {
      "summary": "F3 packages/ui-server/src/brain/turn-journal.ts:158 — Each deferred record overwrites journal.cleanup.lastFailure. With two interrupted turns, only the second turn’s cause survived in owner-visible storage while both remained unresolved. A later cleanup failure can erase even that diagnosis.",
      "disposition": "filed",
      "issue": "schlessera/brain-kit#4437"
    },
    {
      "summary": "F4 packages/ui-sdk/src/server/inference-relay.ts:256 — The first upstream read is timed after readRelayResponse charges the chunk. When the first chunk exceeded the remaining budget, the audit recorded the budget refusal but omitted firstChunkMs even though the upstream read had resolved. The HTTP contract requires that reached boundary.",
      "disposition": "filed",
      "issue": "schlessera/brain-kit#4438"
    },
    {
      "summary": "F5 packages/ui-sdk/src/server/egress-proxy.ts:465 — admitMs is recorded before the relay runs its synchronous charge(0) admission check. The HTTP contract defines this clock after the final synchronous check. Time spent rechecking authority is excluded even when that check produces the refusal.",
      "disposition": "rejected",
      "reason": "The contract defines admitMs as the first admission returned after its own final synchronous commit check; the mark sits in admit() finally exactly as on the epic base. The relay charge(0) is a separate relay check, not part of admission (triage)."
    },
    {
      "summary": "F6 packages/ui-server/src/brain/turn-journal.ts:158 — Every deferred row creates a new settings writer channel. The SQLite worker retains each channel’s procedures until shutdown. A full journal with many interrupted turns or reverts therefore leaves one extra channel per failed recovery resident for the host’s lifetime.",
      "disposition": "filed",
      "issue": "schlessera/brain-kit#4437"
    },
    {
      "summary": "F7 packages/ui-sdk/src/server/inference-relay.ts:249 — Autonomous relays without an egress operation now create the usage observer and schedule SSE parsing for up to 64 KiB per response. The optional observeUsage call discards the result. The epic skipped this work for those routes.",
      "disposition": "filed",
      "issue": "schlessera/brain-kit#4438"
    }
  ]
}

@schlessera
schlessera marked this pull request as ready for review November 21, 2026 15:38
@schlessera
schlessera merged commit 1f827e5 into epic/4278-host-overhead Nov 21, 2026
18 of 33 checks passed
schlessera added a commit that referenced this pull request Nov 21, 2026
The epic's tree already contains main up to b7202e6 through #4435, whose
squash dropped the merge parent. This merge records that ancestry without
changing the tree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
schlessera added a commit that referenced this pull request Nov 23, 2026
…d cut what its guarantees don't need (#4278) (#4444)

* docs(ui-server): retain boundary requirements without runtime activation (#4318)

* CONTRACT: feat(ui-server): prove state boundaries and pin host module generations

* docs: align boundary citations with host generation changes

* fix(ui-sdk): retain activated module generation on directory sync failure

* fix(ui-sdk): recognize the pinned module CLI in worker guidance

* test(ui-server): supply the complete maintenance worker result

* CONTRACT: chore(ui-sdk): refresh the state boundary API report

* CONTRACT: fix(ui-server): contain state exposure and keep module storage inactive

* fix(ui-server): preserve masked state aliases and existing refusal diagnoses

* CONTRACT: fix(ui-server): withdraw unqualified state boundary proof

* CONTRACT: feat(backends): persist observed backend startup phases (#4316)

* CONTRACT: feat(backends): persist observed backend startup phases

* test(ui-server): verify parsed backend timing fields

* CONTRACT: fix(backends): preserve clients and qualify startup evidence

* CONTRACT: fix(startup): contain diagnostics and validate native timing

* CONTRACT: fix(startup): contain async diagnostics and qualify native intervals

* CONTRACT: fix(startup): use observed fixture bounds and missing evidence

* CONTRACT: feat(ui): retain owner-bound client turn arrival receipts (#4321)

* CONTRACT: feat(ui): retain owner-bound client turn arrival receipts

* fix(ui): contain client timing report transport failures

* CONTRACT: docs(ui): clarify client clock observation bounds

* CONTRACT: chore(ui): refresh client receipt API reports

* test(ui): preserve previous activity wire schema compatibility

* CONTRACT: fix(ui): negotiate client turn receipt support

* CONTRACT: fix(ui): isolate client timing receipts through host completion

* test(ui-sdk): preserve receipt fixture literal types

* test(ui): defer serialization assertions to query integration

* CONTRACT: fix(ui): preserve Send boundaries and receipt integrity

* docs: refresh draft client citations after receipt timing changes

* chore: record loose server timing schema API

* test(ui-server): preserve Activity frame discriminant literals

* CONTRACT: fix(ui): omit timing when a snapshot loses its Send boundary

* test(ui-server): keep client receipts out of Activity tool results

* CONTRACT: fix(ui): keep receipt timing nonblocking and snapshot consistent

* chore: record optional lifecycle snapshot API

* docs: distinguish lexical probe bounds from receipt byte validation

* CONTRACT: fix(ui): decouple client receipts from terminal persistence

* docs: align governed refresh citation after receipt changes

* test(ui-server): scope idle probe to publisher input

* fix(ui-server): read Activity snapshots without waiting for writes

* CONTRACT: feat(ui-server): inspect workspaces read-only by default (#4317)

* CONTRACT: feat(ui-server): inspect workspaces read-only unless a session enables code changes

* CONTRACT: fix(ui-server): enforce workspace ownership and isolation

* CONTRACT: fix(ui-sdk): preserve governed writes and skip sealed workspace traversal

* CONTRACT: fix(ui-sdk): close workspace attribution and admission gaps

* CONTRACT: fix(ui-server): preserve inspection across host and tool paths

* CONTRACT: fix(ui-server): enforce workspace boundaries across read aliases and per-turn policy

* CONTRACT: fix(ui-sdk): mask staged areas and give conditional workspace remedies

* CONTRACT: fix(ui-sdk): separate native request and control response bounds

* CONTRACT: fix(ui-server): bound index writes and batch journal observations (#4320)

* CONTRACT: fix(ui-server): batch journal observations and release unused startup views

* test(ui-server): pin startup backlog mutation and drain native output

* CONTRACT: docs(ui-server): record index refresh attribution signature

* test(ui-server): complete failed cleanup startup view fixture

* test(ui-server): measure native observations after ten thousand retained versions

* test(ui-server): verify journal activity with previous SDK schemas

* CONTRACT: fix(ui-server): close journal observation review gaps

* CONTRACT: fix(ui-server): keep maintenance receipt spans out of model context

* test(ui-server): type the owner receipt span assertion

* CONTRACT: fix(ui-server): preserve bounded observation and receipt ownership

* CONTRACT: test(ui-server): omit journal timing from model activity

* test(ui-server): return the verified private-reader identity

* CONTRACT: docs(ui-server): refresh journal code citations

* fix(ui-server): enforce independent pauses in both grant orders

* docs(ui-server): align the scope observation citation

* fix(ui-server): release admission ownership on early policy failure

* CONTRACT: fix(ui-server): resolve admission ownership and bound conflicts

* CONTRACT: fix(ui-server): validate unknown measurements and metadata admission

* docs(ui-server): document unknown scope event measurements

* CONTRACT: fix(ui-server): preserve admitted conflict state in backups

* docs(ui-server): repair citations after conflict backup integration

* test(ui-server): use a literal hardlink suffix predicate

* CONTRACT: fix(ui-server): retain batch versions and bound checkpoint ownership

* test(native-proof): remove the unused tool trace type

* CONTRACT: fix(ui): recover copy intents and preserve released history

* docs(ui-server): refresh merged journal source citations

* CONTRACT: fix(backends): enforce retained Claude request policy (#4319)

* CONTRACT: preserve hosted session requests and qualify native relay modes

* test(backends): qualify the exact host inference placeholders

* test(backends): isolate managed policy on fresh runners

* fix(backends): refuse dangling session selection aliases

* test(backends): retain fixture storage and prove previous MCP parsing

* fix(backends): qualify referenced discovery and retain validated session inputs

* fix(backends): hold unqualified discovery and preserve session inputs

* CONTRACT: fix(backends): enforce retained policy before prompt release

* docs: record sandboxed MCP bridge follow-up

* CONTRACT: fix(backends): withhold prompt state until settings admission

* CONTRACT: docs(sdk): refresh settings-conflict API report

* CONTRACT: fix(backends): preserve roster and snapshot provenance on resume

* CONTRACT: docs(sdk): record shared prompt-context storage bound

* CONTRACT: feat(ui-server): record host turn clocks and large-tree timing (#4322)

* CONTRACT: feat(ui-server): record host turn timing boundaries

* test(native-proof): add large observation timing scenario

* docs(ui-server): regenerate build revision environment table

* test(ui-server): verify selected runtime on lifecycle records

* chore: refresh host timing API reports

* test(ui-server): retain hold evidence through lifecycle terminals

* CONTRACT: fix(ui-sdk): keep new timing phases compatible with published clients

* CONTRACT: fix(ui-server): route future timer phases through open timing evidence

* CONTRACT: fix host clock accuracy and report per-request cache usage

* CONTRACT: fix completed clock evidence across turn cleanup

* CONTRACT: keep clock evidence independent from worker control

* test(ui-sdk): initialize worker evidence assertion results

* CONTRACT: define hold clocks by worker control acknowledgements

* CONTRACT: refresh worker control acknowledgement API report

* fix(ui-sdk): remove obsolete worker probe from startup type

* CONTRACT: isolate inference relay diagnostic failures

* CONTRACT: retain first-read failures and self-contained identity fixtures

* CONTRACT: refresh merged lifecycle and catalog API report

* test(ui-server): preserve owner receipts across host timing enrichment

* fix(ui-server): complete client receipt and callback type integration

* fix(ui-server): adapt hold diagnostics to journal change batches

* CONTRACT: refresh merged lifecycle and catalog API report

* test(ui-server): include workspace areas in lifecycle dispatch fixtures

* fix(ui-sdk): export inference timing types for declaration emit (#4397)

* fix(ui-sdk): export inference timing types for declaration emit

prepareTurnEgress's inferred return type names InferenceTimingMark and
InferenceUsage, which the internal barrel did not export, so declaration
emit failed with TS2883 after #4322 (typecheck alone does not catch it).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore: add changeset for inference timing type exports

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* docs(native-proof): distinguish admission component timings from native proof (#4393)

* test(ui-server): preserve throwaway admission spike measurements

* docs(native-proof): distinguish admission component timings from native proof

* CONTRACT: fix(storage): discard uncertain Git output and bound journal cleanup (#4323)

* fix(ui-server): compute retained finish references once

* fix(core): prune excluded directories during file discovery

* fix(ui-server): quarantine orphan journal objects during maintenance

* test(core): prove excluded discovery never opens unreadable trees

* CONTRACT: fix(core,ui-server): reserve hosted packing and discard failed Git output

* fix(ui-server): discard Git scaffolding from the ordinary maintenance pass

* test(core): prove failed packing removes only its temporary outputs

* test(native): run packing proof after timing samples

* fix(storage): distinguish preflight skips from unknown packing failures

* CONTRACT: fix(core): include packed-ref text in packing headroom

* fix(ui-server): report unresolved quarantine charges in maintenance

* test(ui-server): prove finish reference cleanup shares its terminal transaction

* test(core): make the discovery negative control explicit

* fix(ui-server): qualify dedicated packing no-space results

* fix(ui-sdk): preserve memory headroom for dedicated packing stages

* test(native): refuse packing before a stage exhausts memory

* test(native): acquire the memory-control checkpoint before overriding its observation

* CONTRACT: fix(storage): preserve legacy enums and put packing skips in optional metadata

* test(ui-server): account for the maintenance system principal

* test(storage): cover legacy Activity parsing for scrub failures

* CONTRACT: docs(ui-server): record optional native packing API metadata

* test(core): retain the complete statfs shape in the compatibility fixture

* fix(core): restrict temporary-pack cleanup to declared private stages

* CONTRACT: fix(storage): address maintenance review and reserve disk packing

* test(ui-sdk): preserve disk packing with no memory headroom

* fix(ui-server): share the scrub work bound fairly with retries

* test(ui-server): prove the combined scrub batch bound

* fix(ui-sdk): attest usable capacity of disk packing stages

* fix(ui-sdk): clean up staging configuration admission failures

* test(core): validate headroom types and tracked asset pruning

* style(ui-sdk): use suffix predicates for pack publication

* fix(ui-server): charge recreated orphans beside corrupt quarantine

* fix(ui-server): reserve packing filesystem metadata headroom

* CONTRACT: fix(storage): split dedicated packing and address cleanup review

* fix(ui-server): replay scrub phases under the database writer lock

* fix(core): clean failed incremental MIDX temporary companions

* fix(storage): publish pack metadata after its complete indexed set

* fix: make maintenance publication crash-safe and retry durable cleanup

* fix: require reflinks for existing pack publication generations

* fix: contain malformed scrub reservation sizes per entry

* test: update native output doubles for Git step receipts

* fix: preserve existing pack ages across atomic publication

* CONTRACT: fix(storage): narrow Git publication and contain cleanup failures

* fix: retain selected Git runtime inputs and stage setup cleanup

* CONTRACT: fix(storage): bound scrub enumeration and Git ignore batches

* test(storage): enable default publication in hosted pack proof

* fix(core): reuse shared containment for Git candidate paths

* fix(host): scope failed Git publication to maintenance

* CONTRACT: docs: describe idle journal recovery refresh and temporary reservations

* CONTRACT: fix(host): collect completed maintenance results before publication

* CONTRACT: docs: align maintenance publication with completed report capture

* fix(core): skip discovery names that cannot round-trip through UTF-8

* CONTRACT: fix(journal): admit optional scrub schema within quota

* fix(core): refuse incomplete media-reference discovery

* CONTRACT: fix(activity): preserve startup evidence and reconnect state (#4327)

* CONTRACT: fix(activity): preserve snapshots and monotonic startup timing

* CONTRACT: fix(activity): keep snapshot evidence and sequence floors consistent

* CONTRACT: fix(activity): bound backend evidence and preserve legacy snapshot coverage

* CONTRACT: fix(activity): preserve reconnect floors and isolate lifecycle repair

* fix(activity): restore scoped atomic lifecycle snapshots

* test(activity): align dispatch fixtures with workspace admission

* CONTRACT: fix(activity): preserve legacy REST lifecycle sequence

* test(native): retain admission bounds in merged timing fixture

* CONTRACT: feat(ui-server): retain Git checkout change receipts (#4362)

* CONTRACT: feat(ui-server): retain Git checkout change receipts

* test(ui-server): verify filter refusal without executing canaries

* CONTRACT: fix(ui-server): respect pool allowances and preserve final note capture

* fix(ui-server): contain receipt failures and restore checkout refactors

* fix(ui-server): enforce live receipt scope and capture boundaries

* docs: record managed receipt scope and retained owner history rulings

* CONTRACT: fix(ui-server): qualify receipt inputs and enforce checkout ceilings

* fix(ui-server): restrict code preview to owner principals

* fix(ui-server): boot past malformed checkout receipts

* fix(ui-server): quarantine unusable checkout receipts

* CONTRACT: chore: merge main into epic/4278-host-overhead (#4435)

* CONTRACT: feat(ui-server): enforce prospective exact-origin trust (#4270)

* CONTRACT: feat(ui-server): enforce prospective exact-origin trust (#3609)

* CONTRACT: fix(safety): fence reviewed origin admissions across publication and connect waits

* CONTRACT: fix(safety): bind shared cards to context and preserve trusted fork admissions

* CONTRACT: fix(ui-react): distinguish mixed source trust and human safety verdicts

* CONTRACT: fix(safety): separate transport approvals and hash verified policy bytes

* test(ui-sdk): type transport approval evidence explicitly

* CONTRACT: fix(safety): enforce IPv6 tunnels and retain last-valid trust on read failures

* test(ui-server): preserve selector scheme literal type

* CONTRACT: fix(safety): unify live trust observation and cache stable generations

* CONTRACT: fix(egress): canonicalize hosts and fence every send independently

* fix(egress): reject unmatched brackets in policy host patterns

* CONTRACT: docs(api): record independent recipient approval evidence

* CONTRACT: fix(safety): validate admission evidence and cache only verified live state

* test(ui-react): keep admission fixture discriminants literal

* CONTRACT: fix(safety): bind unmatched evidence to live snapshot and render IPv6 authorities

* test(ui-react): use supported polling assertion options

* CONTRACT: fix(egress): preserve DNS dial authority and version-one detector IDs

* test(ui-sdk): preserve legacy history fixture literals

* CONTRACT: fix(egress): cancel queued refresh and discriminate charge refusals

* CONTRACT: fix(trust): scope revocation to source rule and validate byte charges

* CONTRACT: fix(trust): retire source instances and unify send decisions

* CONTRACT: fix(egress): allow safe completion at exact byte cap

* CONTRACT: fix(egress): publish recipient grants only at dispatch

* CONTRACT: fix(egress): retain one typed refusal across all callers

* CONTRACT: fix(egress): guard the complete operation lifecycle

* CONTRACT: fix(egress): validate provenance and cancel every dispatch

* CONTRACT: preserve relay failure causes and own terminal cleanup

* CONTRACT: fence provider sends and preserve cancellation evidence

* CONTRACT: preserve upstream status and fence buffered provider responses

* CONTRACT: share relay response accounting and terminal fences

* CONTRACT: publish dispatch facts after transport starts and fence delivery

* CONTRACT: fence HTTP connection construction and prove selector retirement

* CONTRACT: preserve route allowance and debit all received overflow

* CONTRACT: classify synchronous transport failures before terminal cleanup

* CONTRACT: meter received HTTP headers before forwarding filters

* CONTRACT: publish egress exposure only after transport construction succeeds

* CONTRACT: bind recipient receipts to dispatch and share admission validation

* CONTRACT: meter relay request heads before filtering

* CONTRACT: preserve legacy egress routes and meter interim HTTP heads

* CONTRACT: require durable occurrence confirmation before trusted dispatch

* CONTRACT: preserve own-input approvals and classify peer recorder changes

* CONTRACT: retain dispatched session grants and preserve outward callback inputs

* CONTRACT: preserve shared-card approvals and inference refusal compatibility

* test: preserve compatible inference text at relay boundaries

* CONTRACT: exclude exact shared-card peer write reservations

* CONTRACT: preserve refusal causes through session binding

* CONTRACT: avoid unchanged trust refresh waiting behind indexing (#4405)

* CONTRACT: isolate HTTP proxy upstream connections per operation (#4409)

* feat(ui-server): bind immutable reads to approved owner evidence (#4273)

* feat(ui-server): bind immutable reads to approved owner evidence

* fix(ui-server): retain publication root identity across restarts

* fix(ui-server): require live host continuity for owner qualification

* fix(ui-server): close owner continuity during normal shutdown

* fix(ui-server): attest owner approval against pinned native brain identity

* fix(ui-server): wire native owner identity into host publication

* chore(ui-server): keep native root helper types private

* fix(ui-server): resolve owner evidence through live Settings policy

* test(ui-server): adapt trust refresh fixtures to journal areas

* fix(ui-server): boot past the receipt recovery update on a full journal

* fix(ui-server): keep journal finish and receipt tables safe on a full journal (#4447)

* fix(ui-server): keep journal finish and receipt tables safe on a full journal

* docs: distinguish workspace file history from checkout receipts

* fix(ui-server): leave receipt schema admission refusals unclassified

* test(ui-react): give client turn receipt polls a load-safe watchdog (#4455)

The composer snapshot case waited on the default 1 s poll for the draft
PUT and failed once in five repetitions under CPU load in the pinned
determinism container. Every poll in the file now uses watchdogMs(5000),
matching the sibling outgoing-snapshot specs. The product timing
assertions (send-to-frame lower bounds) are unchanged.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* CONTRACT: fix: repair epic exhaustive-suite regressions (#4457)

* fix(ui-server): preserve journal capture deduplication and purge counts

* CONTRACT: fix(ui-sdk): register malformed checkout receipt diagnostics

* CONTRACT: test: align exhaustive fixtures with epic behavior

* test(native): evaluate checkpoint reader exports in hosted controls

* test(native): isolate provider proof admission lifetimes

* test(ui-server): force reversed retention completion in inspection proof

* fix(ui-server): prepare Git mask targets before maintenance checkpoints

* fix(ui-server): scope Git target preparation to maintenance operations

* test(ui-server): own the complete wiring database family

* test(ui-server): type the asynchronous maintenance probe double

* test(ui-sdk): supply owned-prune target preparation and force cleanup ordering

* test(ui-server): bound purge pin work independently of wall clock

* test(ui-server): retain a load-scaled purge complexity proxy

* docs(changeset): state the brainCli boot exception for Git target refusal (#4468)

The release note promised host boot stays available after a Git mask
target refusal. With versionRequirements.brainCli set, the startup
version probe is a maintenance operation, so a refused probe leaves the
CLI version unknown and stops boot (tracked in #4466).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* fix(ui-react): await hello in client turn receipt fixtures (#4473)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ui-sdk Wire protocol, runtime schemas, the server and client SDK surfaces. area: ui-server Hono app factory: turn coordinator, auth, session catalog, routes, cron. contract Touches the integration contract: CONTRACT: commit, contract doc updated in the same commit. type: chore Tooling, CI, release plumbing, dependencies.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant