Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion docs/decisions/design-kit/sessions-and-drafts.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,20 @@ of the [six-part #943 design](https://github.com/schlessera/brain-kit/issues/943
(2026-10-04) with its four residual answers, R1–R4 (2026-10-05). Where
those later rulings do not replace it, the supplied navigation and
parallel-session designs still bind; §8 lists what carries over. The measured input is
[`docs/plans/navigation-recovery.md`](../../plans/navigation-recovery.md)
[`docs/plans/navigation-recovery.md`](https://github.com/schlessera/brain-kit/blob/5a0ce18fdcecf0a6c5b83487c865a3f73806d5d0/docs/plans/navigation-recovery.md)
(#942). The row's adopted geometry is the
[shared-row design](https://github.com/schlessera/brain-kit/issues/929#issuecomment-5998113323),
which amends the #943 strip.

> **2026-11-02 — The measured input left `docs/plans/` ([#2511](https://github.com/schlessera/brain-kit/issues/2511)).**
> #942, #943, #964, #965, #910, #951 and #979 are closed, and the Sessions
> destination, host-backed drafts and latest-turn recovery are in source
> (`const destinations`, `packages/ui-react/src/components/layout/desktop-routes.ts`;
> `packages/ui-server/src/drafts/`). The report held measurements and
> follow-up ownership, not rulings; every ruling it fed is in this entry. Read
> it unchanged at the pinned link above. Its probes stay in the tree at
> `scripts/probes/navigation-recovery/`.

**What this amends.** D37 §1's destinations and New chat placement; D22's
≥1280 list pane and the space between transcript and composer; and the
drawing of #93's New chat disc. It replaces the supplied tracker rules
Expand Down
18 changes: 16 additions & 2 deletions docs/decisions/design-kit/storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,28 @@ approval; it is a design, not evidence of a shipped pane or removal operation.
The screenshots in the original brief illustrate the proposal; the rulings
and layouts here control where the proposal differs.

The [accounting model](../../plans/storage-accounting.md) supplies ownership,
object identity, capacity scopes and coverage. The [lifecycle model](../../plans/storage-lifecycle.md)
The [accounting model](https://github.com/schlessera/brain-kit/blob/5a0ce18fdcecf0a6c5b83487c865a3f73806d5d0/docs/plans/storage-accounting.md) supplies ownership,
object identity, capacity scopes and coverage. The [lifecycle model](https://github.com/schlessera/brain-kit/blob/5a0ce18fdcecf0a6c5b83487c865a3f73806d5d0/docs/plans/storage-lifecycle.md)
supplies action eligibility and recovery. Read both with the later
[native storage decision](../native-brain-storage.md): immutable native
checkpoints, writable output staging, turn temp and retained recovery objects
have distinct owners and capacity. A lower-only deletion does not release
writable-upper headroom. Neither discovery authorizes a new retention policy.

> **2026-11-02 — Both discoveries left `docs/plans/` ([#2511](https://github.com/schlessera/brain-kit/issues/2511)).**
> #1779, #1780, #1781 and #2013 are closed, and the inventory, owner
> maintenance and recoverable removal they informed are built (#2009 in #2017,
> #2010–#2013 in #2172). Their recommendations and constraints that
> still bind are in this entry, chiefly under
> [Maintenance and ongoing management](#maintenance-and-ongoing-management) and
> [Implementation boundaries and deferred capabilities](#implementation-boundaries-and-deferred-capabilities);
> the shipped command and HTTP shapes are in the integration contract
> (`docs/integration-contract/cli.md`, `docs/integration-contract/http.md`).
> Read the discoveries unchanged at the pinned links above. The accounting
> experiment moved to the
> [measurement archive](../measurement-archive.md#storage-design-experiments-2511);
> the lifecycle experiment is still `experiments/storage-lifecycle.ts`.

### Placement and alternatives

Storage is the eighth Settings pane, in **This brain**, immediately after
Expand Down
34 changes: 34 additions & 0 deletions docs/decisions/measurement-archive.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,34 @@ a date.
- **Measured source:** not recorded. **Introduced by:** `e8f94c6c1f1f`.
- **Files:** [probe.py](https://github.com/schlessera/brain-kit/blob/48227b09076b350d70d9d20b8492ffcfb5b95771/scripts/policy-boundary-spike/probe.py), [worker.ts](https://github.com/schlessera/brain-kit/blob/48227b09076b350d70d9d20b8492ffcfb5b95771/scripts/policy-boundary-spike/worker.ts)

### Archived later

> **2026-11-02 — Files removed from `main` after the original archive commit.**
> Each was added to `archive/measurements` as a new commit on top of the
> branch, at its original path, byte for byte. The 94-file count above and the
> branch's top-level `manifest.json` and `SHA256SUMS` describe only the original
> commit; each later bundle carries its own manifest and checksums.

#### Unreferenced CI selection replays (#2512)

- **Path:** `docs/process/evidence/independent-test-replay.json`, `docs/process/evidence/browser-input-closure-replay.json`
- **Role:** historical output (100-PR replays of independent Bun test-leaf selection and of browser proof input discovery, both at the 2026-10-16 cutoff).
- **Consumers before removal:** none. No document, test, script or CI step named either file; one note inside `docs/process/evidence/test-wait-review-partition.json` mentions `independent-test-replay.json` in passing, which is a pointer, not a consumer.
- **Disposition:** archived in commit [`c24a848238724b797386fdd9e9dbdbf2bb254d59`](https://github.com/schlessera/brain-kit/tree/c24a848238724b797386fdd9e9dbdbf2bb254d59/scripts/measurements/retired-docs-2542-2026-11-02), copied from main commit `5a0ce18fdcecf0a6c5b83487c865a3f73806d5d0`.
- **Measured source:** `626a03af4a9db064751230a84732755b8afa961e` (browser-input-closure-replay.json sourceBase); not recorded for independent-test-replay.json. **Introduced by:** `d6b527290fe2` (#2147), `b6d7391de6ba` (#2152).
- **SHA-256:** `4b5cd6bd74882b34893b958cca88ff90c5d1c3e60a28115712e5966062b1a496` (independent-test-replay.json), `6cf33fd312f82c3a0b4ec43274a2d714b45995720a40363beae62e662b35adaf` (browser-input-closure-replay.json).
- **Files:** [independent-test-replay.json](https://github.com/schlessera/brain-kit/blob/c24a848238724b797386fdd9e9dbdbf2bb254d59/docs/process/evidence/independent-test-replay.json), [browser-input-closure-replay.json](https://github.com/schlessera/brain-kit/blob/c24a848238724b797386fdd9e9dbdbf2bb254d59/docs/process/evidence/browser-input-closure-replay.json)

#### Storage design experiments (#2511)

- **Path:** `docs/plans/storage-accounting-experiment.py`, `docs/plans/storage-growth-experiment.ts`
- **Role:** finished experiments (the #1780 fixture inventory prototype and the #2014 offline rule-qualification traces).
- **Consumers before removal:** run only from `docs/plans/storage-accounting.md` and `docs/plans/storage-growth.md`, which were retired in the same change. No test, script or CI step runs either file, and neither sits under a TypeScript or lint root. The shipped storage code carries its own tests.
- **Disposition:** archived in commit [`c24a848238724b797386fdd9e9dbdbf2bb254d59`](https://github.com/schlessera/brain-kit/tree/c24a848238724b797386fdd9e9dbdbf2bb254d59/scripts/measurements/retired-docs-2542-2026-11-02), copied from main commit `5a0ce18fdcecf0a6c5b83487c865a3f73806d5d0`. The plans that record their conditions and results stay readable at that main commit.
- **Measured source:** not recorded. **Introduced by:** `1ed6e3d431fa` (#1785), `65ed23dc942e` (#2020).
- **SHA-256:** `e614e2887bbc470df39830d8432414ffced2d8559ad9b21b781be799b8b48bdf` (storage-accounting-experiment.py), `409624b52f10098f110f8d8e047679099dc9cfe2c9e4effa3cb1abe0007e0050` (storage-growth-experiment.ts).
- **Files:** [storage-accounting-experiment.py](https://github.com/schlessera/brain-kit/blob/c24a848238724b797386fdd9e9dbdbf2bb254d59/docs/plans/storage-accounting-experiment.py), [storage-growth-experiment.ts](https://github.com/schlessera/brain-kit/blob/c24a848238724b797386fdd9e9dbdbf2bb254d59/docs/plans/storage-growth-experiment.ts)

### Retained in place (241 files)

> **2026-10-10 — #838 spike harnesses removed.** The maintainer ruled the
Expand Down Expand Up @@ -313,6 +341,12 @@ git restore --source 48227b09076b350d70d9d20b8492ffcfb5b95771 -- <original-path>
Each record keeps its measurements, failures and limits. Only the location of
the evidence changed.

> **2026-11-02 — `docs/plans/policy-write-boundary.md` retired ([#2511](https://github.com/schlessera/brain-kit/issues/2511)).**
> The plan left `main` once its work shipped. Read it, with its links to this
> archive, at main commit
> [`5a0ce18f`](https://github.com/schlessera/brain-kit/blob/5a0ce18fdcecf0a6c5b83487c865a3f73806d5d0/docs/plans/policy-write-boundary.md);
> [the all-writer decision](policy-write-boundary.md) links it there.

## Keeping new output out

`.gitignore` ignores the archived paths and their dated siblings:
Expand Down
12 changes: 11 additions & 1 deletion docs/decisions/policy-write-boundary.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,21 @@ The maintainer's three 2026-10-02 rulings on

These choices bind implementation. They do not establish production containment,
enable autonomous execution or make a release commitment. The
[finite investigation](../plans/policy-write-boundary.md) remains evidence about
[finite investigation](https://github.com/schlessera/brain-kit/blob/5a0ce18fdcecf0a6c5b83487c865a3f73806d5d0/docs/plans/policy-write-boundary.md) remains evidence about
its measured fixture. The [async collaboration decision](async-collaboration.md)
and [voice decision](voice-permission.md#containment-shared-with-51-deliberately-not-identical)
continue to bind authority and tool membership.

> **2026-11-02 — The investigation left `docs/plans/` ([#2511](https://github.com/schlessera/brain-kit/issues/2511)).**
> #672, #674 and #676 are closed, and the workers and validated application
> route this record selects are built, so the investigation is no longer a
> plan. Every ruling it asked for is recorded below, and its six measured
> escapes are retained as proof obligations in
> [Evidence the implementation still owes](#evidence-the-implementation-still-owes).
> Its measurements, mutation receipt and recorded environment are unchanged at
> the pinned link above; the spike it ran is on the
> [measurement archive](measurement-archive.md#policy-write-boundary-spike-750).

## Every writer enters through the boundary

Both first-party runtimes run in isolated workers, confined **before** SDK,
Expand Down
10 changes: 9 additions & 1 deletion docs/decisions/storage-guidance.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,17 @@

The maintainer approved the [reconciled bundle](https://github.com/schlessera/brain-kit/issues/2014#issuecomment-6212070681)
after comparing the layered proposal in #2044 with the concurrent policy review.
The [design](../plans/storage-growth.md) specifies its encoding, qualification,
The [design](https://github.com/schlessera/brain-kit/blob/5a0ce18fdcecf0a6c5b83487c865a3f73806d5d0/docs/plans/storage-growth.md) specifies its encoding, qualification,
recovery and delivery rules. This decision records policy, not runtime delivery.

> **2026-11-02 — The design left `docs/plans/` ([#2511](https://github.com/schlessera/brain-kit/issues/2511)).**
> #2058 and #2059 delivered it in #2172. The shipped history and guidance
> shapes are in the integration contract
> ([Storage history and pressure guidance](../integration-contract/http.md#storage-history-and-pressure-guidance-additive-2058));
> the policy stays here. Read the design unchanged at the pinned link above.
> Its offline trace experiment moved to the
> [measurement archive](measurement-archive.md#storage-design-experiments-2511).

Keep 64 six-hour, 90 daily and 32 weekly endpoints: 186 records, four capacity
scopes and a 256 KiB serialized history ceiling. The same observations update all
three tiers without extra scans or catch-up work. Actual timestamps, gaps and
Expand Down
23 changes: 9 additions & 14 deletions docs/plans/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,15 @@ judge any part of it. Once it ships, the plan stops being a plan: the durable
half moves to [`../decisions/`](../decisions/README.md) and the rest is deleted,
because the code has become the better answer to "what does this do".

| Plan | Design |
| --- | --- |
| [async-collaboration.md](async-collaboration.md) | The cross-package containment and collaboration design. |
| [async-collaboration-requirements.md](async-collaboration-requirements.md) | The requirements it came from. |
| [policy-write-boundary.md](policy-write-boundary.md) | U10's measured filesystem boundaries, escape cases and worker/effect-route ruling required before implementation. |
| [index-query-api.md](index-query-api.md) | Consumer migration using supported query results, approved optional-peer/root-bound context boundaries, reader inventory and safe SQL retirement. |
| [navigation-recovery.md](navigation-recovery.md) | Measured navigation reach, cold-session evidence and draft races informing the tracker design. |
| [storage-accounting.md](storage-accounting.md) | Proposed local storage ownership, deduplicated capacity and bounded measurement model, with synthetic evidence. |
| [voice-conversation.md](voice-conversation.md) | Proposed turn-taking, screen and interruption model; requirements for the later speech-architecture ruling. |
| [storage-growth.md](storage-growth.md) | Proposed bounded aggregate history, comparable growth and capacity-specific guidance, with explicit policy choices. |
| [storage-lifecycle.md](storage-lifecycle.md) | Storage cleanup eligibility, recovery boundaries and synthetic byte-lifecycle evidence for the storage design. |
| [host-owned-web-search.md](host-owned-web-search.md) | Pinned MCP/full-extension comparison, offline worker prototypes and authority boundaries for executor selection. |
| [module-renderers.md](module-renderers.md) | The content-renderer seam, Mermaid on it, the diagram spec, computed geometry, the brain-kit skin, surface and print matrix, ordering, and the upstream sync procedure. |
| [chat-history-deletion.md](chat-history-deletion.md) | Approved local deletion policy with unbuilt lifecycle design, retained-record boundaries and proof obligations. |
| Plan | Design | Open work |
| --- | --- | --- |
| [async-collaboration.md](async-collaboration.md) | The cross-package containment and collaboration design. | [#51](https://github.com/schlessera/brain-kit/issues/51) |
| [async-collaboration-requirements.md](async-collaboration-requirements.md) | The requirements it came from. | [#51](https://github.com/schlessera/brain-kit/issues/51) |
| [index-query-api.md](index-query-api.md) | Consumer migration using supported query results, approved optional-peer/root-bound context boundaries, reader inventory and safe SQL retirement. | [#701](https://github.com/schlessera/brain-kit/issues/701) |
| [voice-conversation.md](voice-conversation.md) | Proposed turn-taking, screen and interruption model; requirements for the later speech-architecture ruling. | [#54](https://github.com/schlessera/brain-kit/issues/54) |
| [host-owned-web-search.md](host-owned-web-search.md) | Pinned MCP/full-extension comparison, offline worker prototypes and authority boundaries for executor selection. | [#1863](https://github.com/schlessera/brain-kit/issues/1863) |
| [module-renderers.md](module-renderers.md) | The content-renderer seam, Mermaid on it, the diagram spec, computed geometry, the brain-kit skin, surface and print matrix, ordering, and the upstream sync procedure. | [#2079](https://github.com/schlessera/brain-kit/issues/2079) |
| [chat-history-deletion.md](chat-history-deletion.md) | Approved local deletion policy with unbuilt lifecycle design, retained-record boundaries and proof obligations. | [#3234](https://github.com/schlessera/brain-kit/issues/3234) |

## What does not live here

Expand Down
Loading
Loading