Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
fe60fb1
docs(ui-server): retain boundary requirements without runtime activat…
schlessera Nov 21, 2026
47a24dd
CONTRACT: feat(backends): persist observed backend startup phases (#4…
schlessera Nov 21, 2026
ee7f4c1
CONTRACT: feat(ui): retain owner-bound client turn arrival receipts (…
schlessera Nov 21, 2026
c8eae01
CONTRACT: feat(ui-server): inspect workspaces read-only by default (#…
schlessera Nov 21, 2026
4521b13
CONTRACT: fix(ui-server): bound index writes and batch journal observ…
schlessera Nov 21, 2026
9065478
CONTRACT: fix(backends): enforce retained Claude request policy (#4319)
schlessera Nov 21, 2026
61b8b2e
CONTRACT: feat(ui-server): record host turn clocks and large-tree tim…
schlessera Nov 21, 2026
68a6336
fix(ui-sdk): export inference timing types for declaration emit (#4397)
schlessera Nov 21, 2026
e46e01c
docs(native-proof): distinguish admission component timings from nati…
schlessera Nov 21, 2026
3bf5a9e
CONTRACT: fix(storage): discard uncertain Git output and bound journa…
schlessera Nov 21, 2026
999cc5c
CONTRACT: fix(activity): preserve startup evidence and reconnect stat…
schlessera Nov 21, 2026
7009429
CONTRACT: feat(ui-server): retain Git checkout change receipts (#4362)
schlessera Nov 21, 2026
1f827e5
CONTRACT: chore: merge main into epic/4278-host-overhead (#4435)
schlessera Nov 21, 2026
e7d65f1
chore: record main b7202e638 as merged into epic/4278-host-overhead
schlessera Nov 21, 2026
b658d40
chore: merge main into epic/4278-host-overhead
schlessera Nov 21, 2026
5d4cae6
fix(ui-server): keep journal finish and receipt tables safe on a full…
schlessera Nov 21, 2026
bf75d3d
test(ui-react): give client turn receipt polls a load-safe watchdog (…
schlessera Nov 22, 2026
cdaf077
CONTRACT: fix: repair epic exhaustive-suite regressions (#4457)
schlessera Nov 22, 2026
827d168
docs(changeset): state the brainCli boot exception for Git target ref…
schlessera Nov 22, 2026
5b8c474
fix(ui-react): await hello in client turn receipt fixtures (#4473)
schlessera Nov 23, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .changeset/claude-batch-independent-reads.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@schlessera/brain-backend-claude": patch
---

Tell new interactive Claude sessions to batch independent tool calls through the existing fixed session brief. Resumed sessions retain their original prompt.
15 changes: 15 additions & 0 deletions .changeset/client-turn-arrival-receipts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
"@schlessera/brain-ui-sdk": minor
"@schlessera/brain-ui-server": minor
"@schlessera/brain-ui-react": minor
---

Record client-monotonic turn frame-arrival timings once after host cleanup sends its final idle. Store the first owner-authorized report separately and join it onto lifecycle reads without modifying completed host records. Disconnects and lost reports leave only the measurement absent. Receipt transport has its own bounded routing and rate budget, malformed stored samples degrade only their own measurement, and existing Activity store implementers need not provide receipt support.

Capture composer Send before snapshot-save waits, retain early lifecycle arrivals, and meter before JSON decoding. Final host idle follows cleanup; it does not wait for a timing commit. Preserve unknown server timing fields and surface stored corruption even after embedded NUL bytes.

Keep lifecycle timing persistence off the turn's idle path. Only the client that actually dispatches a request may report its saved Send timing. Correlate queue-start announcements before backend identity, read lifecycle snapshots with their sequence consistently, and validate the original stored receipt byte length. Older Activity store implementations remain supported.

Determine receipt eligibility from in-memory cleanup state without lifecycle I/O on idle. Defer receipt storage behind the turn's persistence queue off the turn path so successful file-backed commits cannot lose their client report. Disqualify a shared request acknowledged before local dispatch, and enforce owner/duplicate and revocation checks while deferred.

Keep consistent Activity read snapshots off the application writer turn, so even an empty stream pump remains responsive while a file-backed write is pending.
5 changes: 5 additions & 0 deletions .changeset/exhaustive-journal-regressions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@schlessera/brain-ui-server": patch
---

Share in-flight hardlink retention within a journal observation so each sealed inode version is copied once, while an inaccessible alias still allows another path to retain its bytes. Count purged index versions without including accounting-trigger writes on Bun 1.4.2.
7 changes: 7 additions & 0 deletions .changeset/first-party-relay-tool-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@schlessera/brain-backend-claude": patch
---

Keep unqualified production tool search off for new interactive sessions, verify its native effective setting before releasing the prompt, and preserve legacy unpinned behavior after relay credential filtering. Retain each session's recorded roster independently of future removal lists, and refuse known lost session context before recreating cache inputs. Sessions predating host snapshots retain their first observed append after upgrade, with content-free provenance distinguishing later loss.

Refuse resumes whose retained rosters cannot meet current mandatory exclusions, leave unrecorded legacy environment origins unknown, and validate retention before persisting a prompt. Direct API turns use the same effective-setting prompt gate.
5 changes: 5 additions & 0 deletions .changeset/full-journal-receipt-recovery.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@schlessera/brain-ui-server": patch
---

Keep the host available when a full journal defers startup receipt recovery. Retain unchanged recovery rows, record the cause in journal cleanup status, and retry on the next open with headroom.
5 changes: 5 additions & 0 deletions .changeset/full-journal-receipt-safety.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@schlessera/brain-ui-server": patch
---

Clear ended turns from active journal attribution before finish writes can fail, and mark a refused finish record partial. Admit checkout receipt tables only when capturing a checkout so upgrading a nearly full journal preserves ordinary writes. Keep history, retention and operational backups usable before those tables exist.
7 changes: 7 additions & 0 deletions .changeset/git-checkout-receipts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@schlessera/brain-ui-server": minor
"@schlessera/brain-ui-sdk": minor
"@schlessera/brain-ui-react": minor
---

Replace new turns' per-file history of covered writable Git checkouts with one code-changes receipt; ignored files and intermediate versions are no longer retained. Retain legacy history and note before-images, and add endpoint preview and owner-confirmed checkout revert. In-brain checkout capture has a 16 MiB content ceiling; managed checkouts retain the pool allowance.
11 changes: 11 additions & 0 deletions .changeset/index-update-receipts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@schlessera/brain-ui-server": minor
"@schlessera/brain-ui-sdk": minor
"@schlessera/brain-ui-react": minor
---

Restrict new governed history to omit the root disposable index family and its publication copies entirely: no change rows or turn byte charge. Existing metadata-only history remains readable. Index updates record generation, duration and outcome in host Activity, with independent maintenance and output storage bounds.

Governed workers keep direct index writes. Each observation bounds the current index family and publication copies at 4 GiB independently of retained turn bytes, pausing with `index_capacity` above it. The existing one-time continuation doubles only that ceiling. Optional fields preserve older clients' enum parsing. Early Activity receipts survive backend startup, cancelled updates are named, and separate credentialed refreshes retain their causing turns.

Independent scope grants cannot bypass one another; the prompt names the index ceiling Continue raises. SQLite exhaustion has the named capacity outcome, revert refreshes and queued shutdown cancellations keep their causing turns, and early receipts reach resumed-session subscribers.
5 changes: 5 additions & 0 deletions .changeset/inline-core-brain-reads.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@schlessera/brain": minor
---

Advertise the five common brain read tools with Claude's always-load metadata hint. Inline availability still depends on the client loading the server before its provider request.
14 changes: 14 additions & 0 deletions .changeset/ithaca-backend-startup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"@schlessera/brain-ui-sdk": minor
"@schlessera/brain-ui-server": minor
"@schlessera/brain-backend-claude": minor
"@schlessera/brain-backend-pi": minor
---

Persist backend startup steps in the optional openSubPhases field through the first inference relay request, keeping host and worker clocks separate and naming missing Claude SDK evidence. Preserve compatibility with older SDKs' closed subPhases enum. Include the steps and explicit fixture coverage in native observation timing receipts.

query_activity no longer includes the host lifecycle record, which was never part of its documented result and leaked host timing to the model. The owner-facing Activity API and stream retain the envelope. Bound missing-evidence metadata and isolate timing-observer exceptions from worker execution and cleanup.

Contain asynchronous diagnostic failures and malformed SDK metadata without interrupting observed work. Validate native startup containment while allowing either callback order within the same millisecond.

Distinguish unavailable MCP server lists from observed empty lists. Qualify the Claude worker fixture against its observed turn end, since Activity may start during prompt assembly, and require worker durations to retain a single host receipt point.
16 changes: 16 additions & 0 deletions .changeset/ithaca-host-turn-clocks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
"@schlessera/brain-ui-sdk": minor
"@schlessera/brain-ui-server": minor
---

Record inference relay boundaries and per-request provider-reported prompt-cache token counts, observation holds, closing steps in the additive openSubPhases field and build identity in host timing evidence, without changing provider conversations or hold scheduling.

Confirm clock completion only from successful work: retain physical worker-control evidence through cleanup, report failed or pending scope/replay writes as incomplete, preserve causal hold identities, and emit no delta for an unchanged terminal replay.

Keep best-effort timing evidence out of worker control flow, bind hold receipts to the workers they stopped, verify persisted catalog ownership, preserve base backend timing samples, align native watchdogs and parse initial SSE usage in linear work.

Hold clocks use the existing worker-control acknowledgement contract without additional kernel inspection. Diagnostic failures leave missing clocks or null inference-overlap samples and never change worker control. Closing cleanup only completes after the named turn's work succeeds.

Isolate inference-relay timing marks and per-request usage capture so diagnostic exceptions cannot skip upstream dispatch or interrupt response bytes.

Attempt the inference first-read mark once so a failed sample cannot be replaced by a later read. Generated identity fixtures embed their pure timeout helper and remain runnable outside the source directory.
9 changes: 9 additions & 0 deletions .changeset/ithaca-startup-followup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@schlessera/brain-ui-server": minor
"@schlessera/brain-ui-sdk": minor
"@schlessera/brain-backend-claude": patch
---

Bound backend startup steps and MCP diagnostics per lifecycle, with an explicit omitted observation count. Preserve the existing Activity snapshot wire behavior and repair clipped lifecycles with deltas sent only to the subscribing socket. Keep index floors at changes already passed by the pump, while allowing pending child and event deltas to arrive. Read lifecycle records and sequence floors consistently, with sequence-before-row reads for older stores. Preserve the lifecycle sequence on REST detail for prior stores so a terminal lifecycle replaces a cached running record.

Use one epoch-anchored monotonic lifecycle clock and close recovered lifecycles at their last persisted observation. Require completed governed and journal evidence inside each phase's milestones in native qualification.
5 changes: 5 additions & 0 deletions .changeset/ithaca-timing-type-exports.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@schlessera/brain-ui-sdk": patch
---

`@schlessera/brain-ui-sdk/internal` now exports the `InferenceTimingMark` and `InferenceUsage` types that an egress record's timing and usage fields use. Without them, the `@schlessera/brain-ui-server` declaration build failed with TS2883.
7 changes: 7 additions & 0 deletions .changeset/journal-observation-batches.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@schlessera/brain-ui-server": patch
---

Batch changed-version storage reservations and durable pins, and maintain active journal summary and scope totals from committed deltas rather than rescanning turn history.

Keep private-file fallback within existing reader and staging capacity, recover interrupted hardlink publication, settle failed copy scheduling, and preserve conflict choices after overlapping peers end.
7 changes: 7 additions & 0 deletions .changeset/journal-r3-admission-conflicts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@schlessera/brain-ui-server": patch
"@schlessera/brain-ui-sdk": minor
"@schlessera/brain-ui-react": patch
---

Keep every open scope pause answerable and report unreadable index size with optional unknown-measurement metadata while preserving older numeric schemas. Select startup release ownership from the resolved worker branch, wait outside the writer gate, and revalidate policy and peer plans after capacity returns. Store shared-path conflict relations once with point lookups, and retain readable hardlink bytes independently of permission failures at another name.
6 changes: 6 additions & 0 deletions .changeset/journal-r4-retention-ownership.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@schlessera/brain-ui-server": minor
"@schlessera/brain-ui-react": patch
---

Pin observed version ownership before publication batching, recover dead over-cap copy charges atomically, and guard late-admitted conflict tables on every connection. Bound startup qualification to two views plus two retried releases, with all capacity waits outside writer gates. Store durable conflict relations once per path while preserving the released per-row response. Apply the independent index cap only to writable live indexes, label its scope events with optional index-capacity metadata and the host-default source, preserve unknown measurement wording in facts, and offer pause actions in the order the server accepts.
6 changes: 6 additions & 0 deletions .changeset/journal-r5-recovery-compatibility.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@schlessera/brain-ui-server": patch
"@schlessera/brain-ui-react": patch
---

Recover unpublished copy intents without quarantining healthy hashes or blocking boot under the storage cap, while preserving quarantine for genuinely missing published versions. Refuse reacquired folder plans that no longer match prepared sandbox mounts. Keep retained-consumer and failed-admission cleanup independent of ordinary release slots, transferring only failed deletions to a nonblocking retry owner. Preserve stored legacy conflict lists and the released per-row history contract, with durable conflict relations still stored once per path.
6 changes: 6 additions & 0 deletions .changeset/quiet-ithaca-discovery.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@schlessera/brain": patch
---
Prune excluded directories before discovering index and media-reference files, preserving the existing corpus and ordering.

Skip filename byte sequences that cannot round-trip through UTF-8 during Markdown and asset indexing. Media-reference inventories refuse an unrepresentable note or directory rather than claiming a complete inventory. Valid UTF-8 names remain visible.
12 changes: 12 additions & 0 deletions .changeset/quiet-ithaca-packing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"@schlessera/brain": minor
"@schlessera/brain-ui-sdk": patch
"@schlessera/brain-ui-server": minor
---
Discard failed Git packing outputs, preflight conservative headroom, and report existing garbage in maintenance and storage packing JSON. Storage packing accepts a dry run and adds garbage accounting and a conservative packing requirement without changing existing headroom fields. Named skips use optional metadata while preserving the existing CLI reason enum.

Hosted maintenance publishes Git only after a zero exit and a complete successful JSON Git result; uncertain reports discard Git while other validated outputs publish. Successful publication uses the existing publisher.

Nonzero-exit Git discard applies only to routine maintain and explicitly tagged Git maintenance. Other commands publish Git and worktree output together, preserving the metadata needed to continue or abort a conflicted merge.

Routine maintenance explicitly requests JSON and drains its bounded report independently of the caller before selecting Git output. Explicit human output keeps its CLI rendering. Cron Activity records publication and named discard reasons, including incomplete reports, so scheduled packing cannot silently discard a successful pack.
10 changes: 10 additions & 0 deletions .changeset/quiet-ithaca-quarantine.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@schlessera/brain-ui-server": minor
---
Scrub up to 64 journal-store directory entries per idle maintenance pass, quarantining verified orphan files while retaining their quota charge and reporting counts, skips and integrity failures in maintenance Activity.

Retry quota-refused scrub candidates individually, preserve unexpected object types, and contain pending-file recovery sync failures per reservation. Optional capacityBlocked metadata reports deferred quarantine charges without changing existing reason values.

Bound directory enumeration to 4 KiB per pass on the qualified Linux runtime, contain individual read errors in optional readFailures diagnostics, include quota-refused orphan bytes in the report, and retry interrupted producer recovery during idle maintenance.

Admit the optional quarantine schema on first scrub rather than allocating it during upgrade. Near-cap journals keep ordinary writes usable and report an optional schemaSkipReason until the schema fits.
4 changes: 4 additions & 0 deletions .changeset/quiet-ithaca-references.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
"@schlessera/brain-ui-server": patch
---
Compute retained journal hashes once when a turn ends, avoiding a reference-by-change scan while other workers are held.
5 changes: 5 additions & 0 deletions .changeset/quiet-owls-prepare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@schlessera/brain-ui-server": patch
---

Prepare missing fixed Git mask targets immediately before operation checkpoints, including hosted sync, so separate-UID workers can use repositories whose metadata is not group-writable. A target preparation failure refuses that operation while capability qualification remains available. Host boot also remains available unless `versionRequirements.brainCli` is set: the startup version probe is such an operation, so a refused probe leaves the CLI version unknown and stops boot.
25 changes: 25 additions & 0 deletions .changeset/quiet-workspace-inspection.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
"@schlessera/brain-common": minor
"@schlessera/brain-backend-claude": minor
"@schlessera/brain-backend-pi": minor
"@schlessera/brain-ui-sdk": minor
"@schlessera/brain-ui-server": minor
---

Restrict workspace access in default governed and strict turns to read-only inspection. These turns no longer scan writable workspace aliases, read checkout ignore policy, retain workspace change rows or charge workspace bytes. Existing retained history remains readable.

Add an authenticated per-session (and draft) code-changes preference API. Enabling it takes effect at the next admission and preserves the previous writable mounts and alias scan. Ordinary workspace files keep per-file journaling; covered Git checkouts retain one endpoint receipt per checkout, with ignored files and intermediate versions no longer retained. The worker learns its mode through append-only turn context; read-only guidance names the session switch and managed worktree alternatives for edits, installs and builds.

Keep governed note writes live when the optional workspace is absent, retaining and charging newly created content until the next default admission seals it. Skip mounted checkout metadata traversal in inspection turns, preserve handoff prompts through actual preparation, and return actionable install refusals without denying checkout reads.

Preserve ordinary note history when Btrfs reports an update through an inspected hard-link alias. Keep unbound interactive backends read-only, qualify workspace existence before protected-parent preparation, and omit inspected checkouts from strict/private-index data copies. Preserve ordinary ignore rules for absent areas, honour policy in status, keep inspection commits independent of brain size, cancel writer inventories with admission, and preserve read-only package verification.


Keep overlapping turns’ retained versions separate, and charge retained checkpoints independently of journal exclusions. Restore strict Pi repo-relative checkout reads through a sealed source overlay with provider masks. Preserve explicit owner symlink protections and guard privileged application routes even without governed admission. Keep both backends’ handoff prompts stable using the resolved sandbox, append workspace remedies only after filesystem permission failures, and make status protection inspection read-only.


Reapply secret symlink-target masks to strict checkout read aliases, qualify the actual checkpoint source and preserve scratch-cleanup ordering for writable scans. Keep steering classification and ordinary journal scope per turn, including retained predecessors across excluded directory renames. Align private metadata transport and fixed-reader request bounds for escaped long paths. Distinguish markup source reads from destination writes, explain failed mask writes, give read-only failures a fixed conditional workspace remedy without attributing their path, and recognize Pi bash exit codes. Preserve historically refused handoff notes and report unresolved status type qualification without guessing or writing live paths.

Repeat provider folder masks on all staged writable area aliases, preserving secret-mask dominance and unmasked writes. Use the same conditional remedy for read-only bash/file/host failures, including mkdir and Git diagnostics and writes outside the checkout; no command or path parser denies execution.

Keep native control replies, intent files and stage rows at their existing 64 KiB limit independently of the larger escaped-path request bound. Large worktree growth replies again omit unflagged details while preserving their flags.
5 changes: 5 additions & 0 deletions .changeset/register-checkout-receipt-failure.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@schlessera/brain-ui-sdk": minor
---

Register the existing code_receipt_malformed diagnostic class for unusable retained checkout receipts.
5 changes: 5 additions & 0 deletions .changeset/retain-hosted-tool-selection.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@schlessera/brain-backend-claude": patch
---

Trim process-local native tools from new hosted sessions while preserving the original selection on resume. Reference tools keep their fixed registration.
Loading
Loading