Skip to content

Epic: productive, governed interactive and voice turns #1636

Open
15 of 16 issues completed
Open

Description

@schlessera

Outcome

An ordinary interactive or voice turn can change the brain directly again, the way it could before 0.41.0: shell commands, the brain CLI, native write tools, skills and instruction files, repository workspaces and non-Markdown outputs all work in place. Every such turn still runs inside the isolated worker, and the system governs what it does:

  • paths the host executes or trusts (the governance policy, git hooks and config, the brain config, .env, dependency manifests) are read-only inside the worker and cannot be swapped by rename, hardlink or symlink tricks;
  • every turn's changes are journaled, shown in its history and revertible;
  • cost has per-turn, per-session and per-day budgets that warn or block;
  • tool and command use is audited, and the policy can block or confirm commands;
  • network egress is recorded per turn and can be limited.

The 0.41.0 read-only view stays available as an opt-in strict profile. Autonomous turns keep the restricted envelope. What a turn may do is stated to the agent and in the UI up front, generated from the same resolved inputs that enforce it. Sandbox and governance interventions leave machine-readable records in the kept history for diagnostics, without adding user-facing noise.

Why now

0.41.0 put every agent turn in a bubblewrap worker with a read-only brain and Markdown-only server write tools (the all-writer decision). On a real 0.41.0 host this removed the way the maintainer works: scratch, workspaces, renders and CLI writes all fail (#1626), runtime state overflows tmpfs (#1621, #1625), Docker hosts cannot start workers without extra options (#1622), and large documents cannot be edited through the hosted route (#1624).

The maintainer's statement and rulings of 2026-10-11 are recorded in the first comment on this epic. In short: governed writable is the default for interactive and voice turns, strict is opt-in, policies live in the brain and are read-only to agents, autonomous turns stay restricted, and all four kinds of monitoring are wanted.

Shared context

  • Decision record: docs/decisions/governed-writable-workers.md (docs(decisions): record governed writable workers (#1636) #1676), with its "Settled release defaults" and later amendments; native storage in docs/decisions/native-brain-storage.md. Record delivery is separate from runtime proof.
  • Profile mounts are resolved by workerCommand, packages/ui-sdk/src/server/worker-launcher.ts:539. Governed turns use the writable live brain with protected masks; strict and startup consumers overlay their immutable view (packages/ui-sdk/src/server/worker-launcher.ts:666-668).
  • packages/ui-sdk/src/server/worker-sandbox.ts supplies named areas and the resolved capability facts both backends consume; worker-host status, runtime-state budgets and persistence feed the same facts.
  • Claude keeps native definitions registered and enforces strict/voice/handler exclusions at call time (toolAvailabilityRefusal, packages/ui-backend-claude/src/tool-availability.ts:25). Pi's worker resources (createSessionResources, packages/ui-backend-pi/src/worker-entry.ts:137) carry server RPC locking and profile-dependent direct writes versus scratch.
  • Activity retains complete tool inputs ("tool_input", packages/ui-server/src/activity/recorder.ts:368). Interactive budgets and scope caps (CONTRACT: enforce turn limits and recover concurrent changes #1753) sit beside the autonomous intake budget (admit, packages/ui-server/src/inbox/budget.ts:199).

Constraints and non-goals

  • Worker isolation stays: user/PID/IPC/UTS namespaces, dropped capabilities, the per-turn host probe and visible refusal, with no unsandboxed fallback.
  • R35 stays: no agent runtime writes policy. Only a server-owned route writes it, after explicit approval.
  • No new seams. Profiles, policy and monitors are concrete code; nothing becomes pluggable.
  • Markdown is the source of truth and brain.db is disposable. Journals, audit and budgets are host operational state, never brain.db.
  • Autonomous turns gain nothing from this epic. Any widening of them needs a later ruling.
  • Out: overlay or copied brains, TLS interception, and per-tool-call global locks.
  • Not approved, and no completion prerequisite: an Activity Roadblocks section, tools/network ledger rows, extra steering banners or group-revert controls, and transcript rows.

Binding rulings

  • 2026-10-11: the maintainer's statement and rulings (first rulings, continued ruling): governed writable is the default for interactive and voice turns, strict is opt-in, policies live in the brain and are read-only to agents, autonomous turns stay restricted, and all four kinds of monitoring are wanted. The seven guardrail classes are system/resource integrity, exfiltration, budget runaway, scope runaway, outward actions, untrusted-input taint and persistence, and steering self-modification. Steering edits (skills, instructions, memory, hooks, schedules) are allowed but distinctly journaled, reviewable and revertible; every change records user/interactive/autonomous attribution, turn id and model; concurrent writers never silently last-write-win.
  • 2026-10-12, governed default (ruling): governed is the default even without the separate-UID helper, with mask-only protection and truthful host-status disclosure.
  • 2026-10-12, placement (ruling): profile and limits in the model picker's This chat section; one disclosure beneath each turn for its changes, cost and limits.
  • 2026-10-12, approved interactions and defaults:
  • Journal/profile interactions: an initially collapsed summary on every retained turn, steering first when expanded, reviewed diff/revert dialogs and same-turn receipts, read-only voice facts, confirmed next-turn profile saves.
  • Artifact recovery: existing Files panes, manual temporary-failure retry, generic denied copy, inert confirmed expiry and existing sign-in recovery. ui-react: recover retained artifact loads with truthful states and focus return #1734 owns the implementation under Epic: durable agent outputs and working artifact links #1644.
  • Policy review and state warning: existing approval cards and accurate section labels without an automatic policy verdict; one measured 75% warning band.
  • Journal cap and storage behavior: 10 GiB total on-disk store, bounded retention/overflow with truthful missing details, bounded inline diffs and retained-version downloads.
  • Budget ruling: $200/turn and $4,000/session/UTC day list-price usage blocks, half-limit warnings and 512M/8B/8B unpriced-token fallbacks.
  • Scope ruling: 500 calls/120 minutes; explicitly provisional 1,000 changed paths/4 GiB written; one finite Continue increment per dimension, Stop-only below the disk floor and a 30-minute disconnected pause lifetime.
  • Maintenance namespace restriction: maintenance commands may not create nested user namespaces; other worker isolation and numeric limits retain their approved scope.
  • Child-specific rulings (egress activation, /var masks, provider routing, paid CLI relays) are recorded on Epic: controlled egress, credentials and outward actions #1645, Epic: interactive cost and scope limits #1646 and their children.

Breakdown

Delivered child epics: #1642 (worker profiles, governance policy and host integrity), #1643 (attributed changes, review and safe revert), #1644 (durable agent outputs and artifact links), #1646 (interactive cost and scope limits), #1647 (roadblocks and friction reports). Delivered direct tasks: #1790, #1792, #1795, #1844, #1901, #2022, #2023, #2024, #2336, #3355.

Remaining:

  1. Epic: controlled egress, credentials and outward actions #1645 — Epic: controlled egress, credentials and outward actions (contains Epic: policy-restricted content reaches only allowed providers #1668, policy-restricted content reaches only allowed providers, and the child epic Epic: session taint marks real untrusted input, and its restrictions are visible and decidable #3428 on session-taint triggers and visible, decidable restrictions).

#1646 was closed as completed by the 2026-11-03 maintainer ruling, after its recorded definition-of-done audit. That closure completes this child outcome; the programme's integrated definition of done remains unchanged.

Definition of done

  • Every sub-issue is closed.
  • docs/hosting/agent-workers.md and docs/supported-inputs.md describe the shipped profiles and the policy file.
  • Epic: worker profiles, governance policy and host integrity #1642 owns the integrated worker-boundary proof (tests/policy-write-boundary.test.ts) for protected paths, including the ancestor-rename, hardlink and symlink cases measured in the decision; this programme consumes that proof.
  • An integrated governed turn exercises attributed journaling and safe revert, artifact lifecycle, interactive limits, egress recording and relevant retained governance records across all six child outcomes.

2026-10-24: consolidated to the current outcome, binding rulings, remaining children (#1645, #1646) and definition of done, and refreshed source anchors to current main. The stacked dated handoffs and delivery overviews moved to a comment; delivery and milestone attribution are unchanged.

2026-10-24 continued triage at main dc5d3c73282c29a3f0098306d398743ee18ec791: Refreshed the argv-builder and immutable-view-overlay anchors. Current direct/native children and the recorded initial 0.42.0 milestone remain; no later child is rescheduled and no integrated governance completion is inferred.

2026-10-24 triage at main af6300478a07379178bd30221a31c0b917df2283: Refreshed moved current-source pointers by inspecting their named anchors. Historical receipts retain their source identities; scope, rulings, priorities and outstanding prerequisites are preserved. No runtime result or readiness is inferred from this navigation repair.

2026-10-24 triage at main 77f35ef1ba34e4fab7092ada5362ae799852ea24: Verified moved current-source anchors and refreshed their pointers after the reference-tool delivery. Historical failed receipts retain their source identities; scope, rulings and unresolved needs are unchanged. No runtime result or readiness is inferred.

2026-10-25 triage at main 827861e1fa71cd4a26b52f1ef0f96b849381acdf: Verified moved current-source anchors and refreshed navigation; historical receipts and unresolved prerequisites retain their identities. No new runtime proof is claimed.

2026-10-25 triage at main ab746a434c4ada11734ffea4e208d1d6211f1aca: Verified moved current-source anchors and refreshed navigation. Historical failed receipts, existing rulings and unresolved prerequisites are unchanged; this is not a new runtime qualification.

2026-10-25 triage at main 541b8d98328a760290ac6dd4a7f065af76153408: Verified the moved current-source anchors after the off-loop writer slices and refreshed their pointers; historical failed-source receipts, scope and unresolved prerequisites remain unchanged. No new runtime qualification is claimed.

2026-10-26 triage at main 2f10e0407769b685083c17a1c90bb43a060b94a0: Verified the moved current-source anchors after the writer and shell-startup changes and refreshed navigation. Historical receipts retain their source identities; scope, rulings and unresolved prerequisites are unchanged. No new runtime qualification is inferred.

2026-11-03 triage at main 3d3516a0247702560c09c5a0889bdec39b8313fb: Updated Remaining to the current native children: #1646 has no open child left (closure candidate), #1645 now holds the child epic #3428, and #3355 is a direct child. Definition of done, rulings and the recorded 0.42.0 milestone are unchanged; no integrated governance completion is claimed.

2026-11-04 triage at main 53b862123d7b8e4c9d039859fabdc9fc6ad4cd36: Refreshed the active named-source navigation after inspecting the current declarations; existing decisions, historical receipts, child prerequisites and readiness remain unchanged. No new runtime qualification or implementation is claimed.

2026-11-05: #3355 closed after both before/after native Docker UID cells passed, full timing receipts were posted, all cold journal scenarios met 2× warm median, and owned resources were cleaned up. Its implementation remains #3386, milestone 0.45.0. This reconciles that direct child only; the remaining epic outcomes and integrated definition of done stay open. Evidence: #3355 (comment) .

2026-11-05 triage at main 35217d283b849b5ef81700d5d4c2ec7486405d12: folded the explicit #1646 completion ruling into the active breakdown and checked current native children and source anchors. #1645 is the remaining open direct outcome; integrated programme proof, original release attribution and absence of epic readiness remain. No new runtime result is claimed.

Triage 2026-11-08 at main 8752570331ffebdbb9233196412781f6cd71f3d9: Verified the moved active source anchors and refreshed navigation. Historical measurements and source-bound failure receipts keep their identities; existing scope, rulings, needs, priority, assignment and release attribution are preserved. This source review supplies no new runtime qualification or epic completion.

2026-11-17 triage at main 9e7429a914a8aaf5967f074fa9e09984968fc9dc: Verified and refreshed the moved active source pointers. Historical receipts, binding rulings and remaining child outcomes retain their existing scope; this source inspection supplies no new runtime qualification.

Activity

  1. added
    area: ui-sdk
    area: ui-server
    area: backends
    priority: p0
    epic
    on Oct 11, 2026
  2. schlessera commented on Oct 11, 2026

    @schlessera
    OwnerAuthor

    Decision (maintainer, 2026-10-11): the maintainer's statement and rulings that start this epic, recorded verbatim or as given.

    The statement:

    It's important for me that the flexibility of the previous way of working with the brain stays as intact as possible. We want additional controls so that we might want to block more or monitor the cost for more things. But the general approach of being able to make modifications to the systems as you go is wanted. It should be governed and you should have policies that you can enforce, but it should not be completely locked down by default without any meaningful way of productively working like we did before.

    The rulings:

    1. The default for interactive and voice turns is "governed writable". The brain is writable inside the worker again. Worker isolation stays: user and PID namespaces, with the host otherwise read-only. Policy-protected paths are mounted read-only. Every change is journaled per turn, with revert. The 0.41 read-only view becomes an opt-in "strict" profile.

    2. Policies live in the brain repository and are versioned with it. They are mounted read-only in every worker, so agents can read them but never change them. They are edited outside a turn or through an explicit approved action. This reverses R33's v1 no-policy-read rule. R35 stays: agents never write policy.

    3. Autonomous (unattended) turns stay in the restricted envelope. Policy may grant more later.

    4. All four kinds of monitoring are wanted:

      • a per-turn change journal, including workspaces, visible in history and revertible;
      • cost per turn and per session, with budgets that warn or block;
      • a command and tool audit, with policy-based blocks;
      • network egress recording and limits per turn.
    5. The system states its limits up front. It tells the agent and the UI, and generates that statement from the same inputs that enforce the limits (backends: the worker sandbox leaves no persistent writable place for scratch, workspaces or file outputs #1626, ui-server: learn at boot that the host cannot run agent workers and report it, instead of failing every turn #1632, backends: each Claude turn copies the brain's whole transcript history into a 64 MiB tmpfs #1621, backends: concurrent turns share one host /dev/shm, so a second parallel session fails with ENOSPC #1625).

    6. Three write areas, each with a lifecycle.

      • Turn temp: the per-turn tmpfs, deleted at turn end and never linkable.
      • Persistent scratch: .brain/scratch. It is gitignored, not indexed and served by the UI. It survives turns and is linkable.
      • The canonical brain: indexed, versioned and journaled.

      workspaces/ is a sibling of persistent scratch, for external repository clones. Prune never deletes a scratch file that a retained conversation still links to. The UI shows a dead link as "expired", not as a 404. At turn end the server checks the final response for links into turn temp.

    7. Linked turn-temp files are auto-promoted. They are copied into persistent scratch and the link is rewritten, with no user-visible marker. Each promotion is recorded as structured diagnostic data in the kept history: source path, destination, bytes, turn id and the rewritten link. The same applies to every sandbox or governance intervention (auto-promotions, policy blocks, read-only refusals, budget warnings): each leaves a machine-readable record that a diagnostic check over history can find, rather than user-facing noise.

  3. schlessera commented on Oct 11, 2026

    @schlessera
    OwnerAuthor

    Measurement receipts for the decision record (2026-10-11): bubblewrap 0.12.0, Linux 7.2 x86_64, git 2.55, tmpfs-backed /tmp. Every run used disposable fixture brains only.

    mount-probe.sh
    #!/bin/bash
    # Probe: which tricks defeat read-only sub-mounts inside a writable brain bind?
    G=.git
    T=$(mktemp -d); B=$T/brain
    mkdir -p $B/context/policies $B/$G/hooks; echo pol > $B/context/policies/g.md; echo cfg > $B/brain.config.ts; echo hi > $B/note.md
    bwrap --version
    bwrap --unshare-user --unshare-pid --ro-bind / / --proc /proc --dev /dev --bind $B $B \
      --ro-bind $B/context/policies $B/context/policies --ro-bind $B/$G/hooks $B/$G/hooks \
      --ro-bind $B/brain.config.ts $B/brain.config.ts -- /bin/bash -c "
    cd $B
    echo x > context/policies/g.md; echo 'write policy rc' \$?
    echo x > brain.config.ts; echo 'write cfg rc' \$?
    ln brain.config.ts alias; echo 'hardlink cfg rc' \$?
    ln context/policies/g.md alias2; echo 'hardlink pol rc' \$?
    mv brain.config.ts cfg2; echo 'rename cfg rc' \$?
    rm -f brain.config.ts; echo 'unlink cfg rc' \$?
    echo new > tmpcfg; mv tmpcfg brain.config.ts; echo 'rename-over cfg rc' \$?
    mv context context2; echo 'rename parent of policies rc' \$?
    mkdir -p context/policies && echo evil > context/policies/g.md; echo 'recreate policies rc' \$?
    mv $G ${G}2; echo 'rename gitdir rc' \$?
    mkdir -p $G/hooks && echo evil > $G/hooks/post-commit; echo 'new hooks rc' \$?
    echo y > note.md.tmp && mv note.md.tmp note.md; echo 'atomic save normal file rc' \$?
    "
    echo "--- host view"; (cd $B && find . | sort); echo "policy now:"; cat $B/context/policies/g.md; rm -rf $T
    mount-probe-ancestors.sh
    #!/bin/bash
    # Probe 2: ancestors of protected mounts are self-bound writable so they become mountpoints.
    G=.git
    T=$(mktemp -d); B=$T/brain
    mkdir -p $B/context/policies $B/context/notes $B/$G/hooks $B/$G/objects $B/notes; echo pol > $B/context/policies/g.md; echo cfg > $B/brain.config.ts; echo hi > $B/note.md; echo c > $B/context/notes/a.md
    bwrap --unshare-user --unshare-pid --ro-bind / / --proc /proc --dev /dev --bind $B $B \
      --bind $B/context $B/context --bind $B/$G $B/$G \
      --ro-bind $B/context/policies $B/context/policies --ro-bind $B/$G/hooks $B/$G/hooks \
      --ro-bind $B/brain.config.ts $B/brain.config.ts -- /bin/bash -c "
    cd $B
    mv context context2; echo 'rename parent of policies rc' \$?
    rm -rf context; echo 'rm -rf context rc' \$?
    ls context/policies/g.md; echo 'policy still there rc' \$?
    mv $G ${G}2; echo 'rename gitdir rc' \$?
    echo obj > $G/objects/x; echo 'write objects rc' \$?
    mv context/notes/a.md notes/a.md; echo 'mv across ancestor mount rc' \$?
    echo e > context/new.md; echo 'create in context rc' \$?
    mv context/notes context/notes2; echo 'rename sibling dir inside context rc' \$?
    "
    echo "--- host view"; (cd $B && find . | sort); echo "policy now:"; cat $B/context/policies/g.md; rm -rf $T
    mount-probe-exdev.sh
    #!/bin/bash
    # Probe 3: rename(2) across a self-bound ancestor, and absent protected names.
    T=$(mktemp -d); B=$T/brain
    mkdir -p $B/context/policies $B/notes; echo a > $B/context/a.md
    bwrap --unshare-user --unshare-pid --ro-bind / / --proc /proc --dev /dev --bind $B $B \
      --bind $B/context $B/context --ro-bind $B/context/policies $B/context/policies -- /bin/bash -c "
    cd $B
    python3 -c 'import os
    try:
      os.rename(\"context/a.md\",\"notes/a.md\"); print(\"rename across ok\")
    except OSError as e: print(\"rename across\", e.strerror)'
    mv context/a.md notes/a.md; echo 'mv fallback rc' \$?
    echo evil > brain.config.ts; echo 'create absent protected name rc' \$?
    "
    (cd $B && find . -type f | sort); rm -rf $T
    snapshot-cost.sh
    #!/bin/bash
    # Measure a per-turn working-tree snapshot via a private index + write-tree.
    set -e
    GITBIN=git
    N=${1:-5000}
    T=$(mktemp -d); B=$T/brain; mkdir -p $B
    cd $B
    $GITBIN init -q
    for d in $(seq 1 50); do mkdir -p notes/d$d; done
    for i in $(seq 1 $N); do d=$(( i % 50 + 1 )); head -c 4000 /dev/urandom | base64 > notes/d$d/n$i.md; done
    $GITBIN add -A && $GITBIN -c user.email=o@example.test -c user.name=Odysseus commit -qm init
    echo "files: $N, size: $(du -sh . | cut -f1)"
    GD=$($GITBIN rev-parse --absolute-git-dir)
    snap() {
      local idx=$T/turn.index
      cp "$GD/index" "$idx"
      GIT_INDEX_FILE=$idx $GITBIN add -A
      GIT_INDEX_FILE=$idx $GITBIN write-tree
    }
    s=$(date +%s%N); A=$(snap); e=$(date +%s%N); echo "snapshot (clean tree, warm index copy): $(( (e-s)/1000000 )) ms"
    for i in $(seq 1 20); do echo change >> notes/d1/n$(( i*50 )).md 2>/dev/null || true; done
    echo new > notes/new.md
    s=$(date +%s%N); Bt=$(snap); e=$(date +%s%N); echo "snapshot (21 changed files): $(( (e-s)/1000000 )) ms"
    s=$(date +%s%N); $GITBIN diff-tree -r --name-status $A $Bt | wc -l; e=$(date +%s%N); echo "diff-tree: $(( (e-s)/1000000 )) ms"
    touch -d '2020-01-01' notes/d2/*.md
    s=$(date +%s%N); snap >/dev/null; e=$(date +%s%N); echo "snapshot after mtime churn on $(ls notes/d2 | wc -l) files: $(( (e-s)/1000000 )) ms"
    rm -rf $T

    Results:

    • Plain read-only sub-mounts are defeated by renaming an ancestor (context/ or .git/). The host then reads a recreated policy or hook.
    • Self-binding each ancestor makes that rename fail with EBUSY.
    • A write to a protected path fails with EROFS, a hardlink with EXDEV, and a rename or unlink of a protected file with EBUSY.
    • Protected names that are absent can still be created.
    • A snapshot takes 18 to 68 ms for 5,000 to 20,000 files.

    The full tables are in docs/decisions/governed-writable-workers.md.

  4. schlessera commented on Oct 11, 2026

    @schlessera
    OwnerAuthor

    Independent review of the decision draft (gpt-6.1-sol via codex review, 2026-10-11). The findings below were reproduced on disposable fixtures, and each changed the record:

    1. Host execution through the config's dependencies. A protected config can still import an unprotected local helper or module that the host executes. → No host process evaluates repository code under governed; that work runs in a maintenance worker.
    2. Bun startup. A newly created bunfig.toml preload, or .env, runs before any application check in a host Bun process. → Same boundary. The server must not run with the brain as its working directory.
    3. Trust across crashes and overlapping turns. → The protected-path manifest is durable, with quarantine reconciled at boot, and credentialed launches are gated by the writer gate.
    4. Git includes and filters. They still run with hooks and fsmonitor disabled. → The journal runs no git, and host git runs only in workers.
    5. Writable git metadata redirects. A symlinked refs/heads makes a host commit write outside the brain. → Same: host git runs only in workers.
    6. Journal objects depended on brain objects through alternates. → The journal uses its own content-addressed store.
    7. Copied index flags (skip-worktree) hid edits. → The tree is walked independently, with a host-owned stat cache.
    8. Git normalization recorded the wrong bytes. → Snapshots store raw bytes.
    9. Revert raced active writers. → A shared writer gate is held by governed turns, and revert takes it exclusively.
    10. The changed-file cap was not observed live. → Warm snapshots during the turn, freezing the worker at the cap, with a bounded overshoot.
    11. Promotion was not descriptor-safe. → Turn temp is a host-created separate tmpfs, copied through anchored O_NOFOLLOW descriptors with the bound enforced during the copy.
    12. Host Unix sockets bypassed the network namespace. → Runtime and home directories are masked, and a socket-walk probe is part of the egress gate.
    13. Paid CLI provider calls fell outside the budget. → Metered relays. Until a provider has one, the budget states that it covers agent inference only.

    Replacement journal measurement: a git-free walk that hashes raw bytes with a stat cache. Cold 61 ms and warm 19–20 ms for 5,000 files; cold 275 ms and warm 87–104 ms for 20,000 files.

    raw-snapshot.ts
    // Measure a git-free, raw-byte working-tree snapshot with a host-owned stat cache.
    // Usage: bun raw-snapshot.ts <fileCount>
    import { mkdtempSync, mkdirSync, writeFileSync, readdirSync, lstatSync, readFileSync, rmSync, appendFileSync, utimesSync } from "node:fs";
    import { join } from "node:path";
    import { tmpdir } from "node:os";
    import { createHash, randomBytes } from "node:crypto";
    
    const n = Number(Bun.argv[2] ?? 5000);
    const root = mkdtempSync(join(tmpdir(), "raw-snap-"));
    const brain = join(root, "brain");
    for (let d = 1; d <= 50; d++) mkdirSync(join(brain, "notes", `d${d}`), { recursive: true });
    for (let i = 1; i <= n; i++) writeFileSync(join(brain, "notes", `d${(i % 50) + 1}`, `n${i}.md`), randomBytes(3000).toString("base64"));
    
    type Entry = { key: string; hash: string };
    let cache = new Map<string, Entry>();
    function snapshot(): { files: number; hashed: number } {
      const next = new Map<string, Entry>();
      let hashed = 0, files = 0;
      const walk = (dir: string) => {
        for (const name of readdirSync(dir)) {
          const p = join(dir, name);
          const st = lstatSync(p, { bigint: true });
          if (st.isDirectory()) { walk(p); continue; }
          if (!st.isFile()) continue;
          files++;
          const key = `${st.dev}:${st.ino}:${st.size}:${st.mtimeNs}:${st.ctimeNs}`;
          const prev = cache.get(p);
          if (prev && prev.key === key) { next.set(p, prev); continue; }
          hashed++;
          next.set(p, { key, hash: createHash("sha256").update(readFileSync(p)).digest("hex") });
        }
      };
      walk(brain);
      cache = next;
      return { files, hashed };
    }
    const time = (label: string, fn: () => unknown) => { const s = performance.now(); const r = fn(); console.log(`${label}: ${(performance.now() - s).toFixed(0)} ms ${JSON.stringify(r)}`); };
    console.log(`files: ${n}`);
    time("cold snapshot (hash everything)", snapshot);
    time("warm snapshot (no changes)", snapshot);
    for (let i = 1; i <= 20; i++) appendFileSync(join(brain, "notes", "d1", `n${i * 50}.md`), "change");
    time("warm snapshot (20 changed)", snapshot);
    for (const f of readdirSync(join(brain, "notes", "d2"))) utimesSync(join(brain, "notes", "d2", f), new Date(), new Date(2020, 0, 1));
    time("warm snapshot (mtime churn on one dir)", snapshot);
    rmSync(root, { recursive: true, force: true });
  5. schlessera commented on Oct 11, 2026

    @schlessera
    OwnerAuthor

    Decision (maintainer, 2026-10-11), continued: the product principle and the guardrail model that govern the design and every sub-issue.

    The product principle. The ordinary flow is: the user asks, and it happens, usually on the first try and as efficiently as possible. The agent may hit a roadblock and try something else until it gets a proper result. Every roadblock is tracked, so it can be removed over time by better agent guidance or by changing capabilities so the first attempt works. Roadblocks are classified and recorded in the kept session history: tool errors, nonzero exits, EROFS/EACCES, permission or policy denials, budget hits, network refusals and retries of the same intent, each with the path that eventually succeeded. A local report ranks them by frequency and wasted cost or time, and suggests a remedy class (guidance or capability). Nothing is sent off the host.

    The governing rule, verbatim:

    This should generally work that way and should guide the design of the flows, the permissions, policies, and so on. The only thing we want to ensure is that this all happens within secure boundaries so that the agent cannot do something completely absurd that would break the system or leak data, and also that it doesn't go completely off the rails in terms of budget and scope.

    The guardrail classes (final set).

    1. System integrity, including resource exhaustion: per-worker CPU, memory, disk and process limits. The /dev/shm budget is one instance.
    2. Data exfiltration.
    3. Budget runaway: caps that block, not only warn.
    4. Scope runaway: caps on files changed, time and tool calls per turn, escalating to the user rather than failing silently.
    5. Outward actions as the user: git push to remotes, GitHub posts, email or messages, bookings, payments. These need approval or a policy allow-list. Everything inside the brain stays free.
    6. Untrusted input and persistence: content from the web, email, shared documents or cloned repositories taints the turn. Egress and outward-action rules get tighter, and its writes to steering artifacts are flagged.
    7. Self-modification of steering artifacts: skills, instructions (CLAUDE.md, AGENTS.md), memory, hooks and scheduled tasks. Changes are allowed but journaled as a distinct class, with easy review and revert. The policy itself stays unwritable to agents (R35).

    The principles.

    • Reversibility determines friction. Reversible, journaled edits are free. Irreversible effects need approval: outward actions, unjournaled deletes, history rewrites and force-pushes.
    • Every change is attributed: to the user, an interactive turn or an autonomous turn, with the turn id and the model.

    Also in scope:

    • data-to-provider routing: which paths or document types may go to which inference provider;
    • concurrent-edit conflict detection: no last-write-wins between parallel sessions, autonomous turns and server writes.

    Linked turn-temp files. They are promoted automatically, with no user-visible marker, and each promotion is recorded as structured diagnostic data. The same holds for every sandbox or governance intervention.

    How the work is grouped. An umbrella epic with child epics, each a logical unit.

  6. added
    type: feat
    needs: design
    on Oct 11, 2026
  7. schlessera commented on Oct 11, 2026

    @schlessera
    OwnerAuthor

    Design-request reconciliation — 2026-10-13. The previous prompt is superseded by the owning bodies and explicit maintainer approvals: journal/profile interactions, artifact recovery, policy review, measured state warning, and the exact #1652/#1669/#1670 storage, budget and scope rulings in their bodies. Those choices no longer require another design drop.

    The programme's current body and delivery overview distinguish merged main-flow behavior from the unfinished #1643/#1645/#1646 outcomes. Read docs/decisions/governed-writable-workers.md, the owning source and issue criteria at main 857ab01d1f9cb591f928755f5be516ab7f73338e. Earlier source/fixture receipts retain their original SHAs; they are not current proof.

    Keep profile/limits in the picker's This chat section and one initially collapsed disclosure beneath each retained turn. Reuse approved history/diff/revert, policy cards, manual artifact recovery and truthful unknown/expired/partial receipts. Existing authority, voice/autonomous exclusions, raw-byte/conflict limitations, numeric caps and real runtime/browser verification remain binding. Extra Activity Roadblocks UI, tools/network ledger scope, separate steering banners/group-revert controls and transcript rows from earlier proposals are not selected and create no new completion prerequisite.

    No open design question is manufactured to hold an epic out of readiness: epics never carry agent-ready. Remaining technical implementation and actual integrated definitions of done stay with their owning tasks. New interaction or permission proposals need their own concrete review rather than reusing this superseded blanket prompt.

  8. 82 remaining items

  9. schlessera commented on Oct 22, 2026

    @schlessera
    OwnerAuthor

    2026-10-22 delivery reconciliation at main aeaaf7794b6be41fde4e01bef78ce3f1a5828ac6: #2633 is closed through merged #2657 (5b34b6f2460bda675ea0302e0bb90119c1f4ba81). HOST_MASKS (packages/ui-sdk/src/server/worker-launcher.ts:136) now masks all of /var, including tmp/spool and future layouts, for governed, strict and credential-free maintenance workers. Explicit required runtime files remain read-only binds; relocated fixtures preserve independent socket/database/token controls. The merged PR records complete filesystem socket-walk and mutation receipts; these are attributed worker results, not new triage runtime proof. This delivers the selected option A, without establishing #1665’s remaining relay/activation qualification or completing this epic. Existing #2654 follow-up scope and #2284’s refusal boundary/pre-policy-writer limitation remain unchanged.

  10. schlessera commented on Oct 23, 2026

    @schlessera
    OwnerAuthor

    2026-10-23 delivery reconciliation at main f3c6fdc9f9c6321fda5a384cf8cfd8bf2e4846da: Merged #2399/#2644/#2645 deliver durable egress recording, first-party measurements and default proxy/host-relay activation for governed and strict subscription-Claude turns on managed native storage (086db5b20dd091f1a2864507eacf6dd207b74560). Pi, API-key Claude and non-managed hosts retain the stated coverage gaps. #1665 remains open under its existing owner for Pi/API-key relay consumers, built-in mail-submission outward defaults and native-harness per-connection assertions; no acceptance criterion is reduced. #2654 is the explicitly approved non-managed-host follow-up and its #2645 prerequisite is now merged. #1666 remains blocked on #1665; #1673 remains downstream of #1666.

    #1667 is closed through merged #2676 (8f7430cd6): web tools, inbox/workspace reads, external MCP results, the existing shell rule and non-relay proxy connections establish sticky session taint. Both backends ignore outward.allow while tainted; where the proxy is active, new connections must also match taint.egress.allow or an already-contacted host. Off-proxy egress tightening remains explicitly unavailable. User-marked files were split by maintainer ruling into native #2673, which remains needs: design; its current prompt is usable and no UX choice is approved here. #1668 routing remains open and no longer waits on #1665’s undelivered remainder.

    The October 23 Pi relay ruling is already recorded on #1665 (comment 6360183688): native host getAuth on each dispatch, credential-shaped placeholders, qualified API-key/OAuth matrix, exact-origin checks, and actionable refusal before launch for command-sourced or unsupported credentials on managed storage. It authorizes the owner’s implementation and durable record; it is not merged Pi delivery or a new unresolved decision.

    Refreshed the active workerCommand/strict mount/retained tool-input anchors. Merged #2671 additionally strips host Git credentials from agent and maintenance environments while preserving dedicated transport consumers; this does not satisfy #1666’s remaining provider audit. Existing native/PR receipts retain their exact source identities; no new native/hosted proof or full programme completion is claimed. #1645 and #1646 remain the two open direct outcomes.

  11. modified the milestones: 0.44.0, 0.42.0 on Oct 23, 2026
  12. schlessera commented on Oct 23, 2026

    @schlessera
    OwnerAuthor

    2026-10-24 restructuring: milestone restored to 0.42.0, the umbrella's first delivery (the governed-profile commit 5876df6 and the limits commit 857ab01 are both first in the 0.42.0 tag). Later implementation and verification keep their own milestones on the children, as docs/process/github.md (Milestones) requires for epics.

  13. schlessera commented on Oct 24, 2026

    @schlessera
    OwnerAuthor

    History moved out of the body on 2026-10-24, when the body was consolidated. These sections were current at their dates; the body now holds the current rulings and breakdown.

    Settled placement (maintainer, 2026-10-12)

    The placement-only ruling approves the tracker proposal’s two locations: profile and limits in the model picker’s This chat section, and one disclosure beneath each turn for its changes, cost and limits. The alternative separate profile/limits control above the composer is superseded. This applies to #1663, #1652, #1653, #1658, #1669 and #1670.

    That earlier ruling approved placements only; the later approved journal/profile interaction below additionally settles the explicitly named presentation/recovery for #1652/#1653/#1658/#1663. Numeric limits, security/permission rulings, other interaction details and technical prerequisites remain separate. Neither the proposed Activity Roadblocks section nor additional ledger tools/network scope was approved. Accepted placement must be recorded in the appropriate durable design decision when its implementation lands; current issue/comment history supplies the ruling, not shipped UI proof.

    Shared context (before 2026-10-24)

    Current triage handoff — 2026-10-11

    Source inspected at main 02d4eb0ce37f621764a80636e8ac95b9b4d19d3c. The initial seven maintainer rulings in comment 6112643600 and the continued final guardrail/product ruling in comment 6112825672 are the active policy, including readable/read-only policy, governed interactive/voice default, strict opt-in, restricted autonomous turns and invisible temp promotion with structured diagnostics. That earlier snapshot predates record delivery; the delivered-record handoff below supersedes its pending-record premise. Runtime implementation and integrated proof remain separate.

    The source anchors in Shared context were verified: launcher :135, Claude disallowedTools :188, pi lock/shellCwd :71/:75, Activity tool_input :225 and inbox admit :199. The mount/snapshot receipts in comment 6112682063 are attributed measured fixture results, not a fresh triage reproduction or integrated protection proof. In particular, absent protected names remain creatable in that receipt and must be covered by the governed profile's acceptance, alongside ancestor replacement, aliases and trusted git/config execution paths.

    Add type: feat for the changed interactive behavior; preserve p0 and epic, never agent-ready. The approved architecture does not choose placement, hierarchy, focus and failure/revert interaction for visible history journals, limits/budget status or expired artifacts. needs: design applies only to those surfaces; the shared prompt below does not reopen policy. #1626 supplies the utility/capability mechanism; forthcoming coding tasks must name their concrete prerequisite outputs and native membership rather than depend on an epic as one coding task. The current native child epic/task hierarchy is the implementation record; no new epic or reparenting is performed by triage.

    Continued ruling and reviewed draft inputs

    The ordinary flow is the user asks and it happens efficiently; reversible journaled edits are free. Outward/irreversible effects need approval or a policy allow-list. Every roadblock (tool errors, exit codes, path/policy/permission/network/budget refusals and repeated intent) is classified in kept history with the eventual successful route. A local-only report ranks frequency and wasted cost/time and proposes guidance versus capability remedies. No diagnostic upload is selected.

    The final seven guardrail classes are system/resource integrity (CPU/memory/disk/process), exfiltration, hard budget runaway, scope runaway (files/time/tool calls with user escalation), outward actions, untrusted-input taint/persistence, and steering self-modification. Skills, instructions, memory, hooks and scheduled-task edits are allowed but distinctly journaled/reviewable/revertible; policy itself remains agent-unwritable. Every change records user/interactive/autonomous attribution, turn id and model. Data-to-provider routing and concurrent-edit conflict detection are in scope; parallel writers must not silently last-write-win. This later ruling replaces any blanket restriction on all steering artifacts inferred from the older trusted-path wording.

    The independent review in comment 6112823126 describes reviewed architectural inputs, now recorded in the delivered decision, not a merged runtime implementation: no credentialed host evaluation of repository code/git; maintenance workers; durable protected manifests/quarantine and writer gate; git-free raw-byte journal with its own content-addressed store; exclusive revert; live changed-file caps with bounded overshoot; descriptor-safe temp promotion; socket/egress guards and truthful metered provider coverage. Its replacement raw-snapshot measurements supersede the earlier git-snapshot performance candidate (cold 61 ms/warm 19–20 ms for 5,000 files; cold 275 ms/warm 87–104 ms for 20,000), attributed fixture receipts, not triage proof. Preserve these reviewed inputs in the decision PR and require actual integrated mutations; a drawing cannot select budget defaults or declare these guards shipped.

    The maintainer requests an umbrella with logical child epics. This pass creates no new epic or reparents existing issues; the hierarchy is now concretely recorded: native child epics #1642–#1647 own the logical units, and #1626 is natively under #1644. Preserve those parents and place future coding work under the matching child epic. Native parents are the progress record, not a markdown checklist. The umbrella stays epic and never agent-ready.

    2026-10-11 hierarchy reconciliation: read the full native child-epic lists and referenced task briefs. The shared interaction prompt is mapped to #1642 (profile/policy surfaces), #1643 (journal/revert), #1644 (expired artifacts) and #1646 (budgets/scope). #1626 is the independently ready mount/note mechanism; its separate artifact design is no longer a prerequisite. The newer raw-byte measurement supersedes the old git candidate on #1643. No complete-epic outcome or shipped default is claimed.

    2026-10-11 current-source reconciliation at main 8da5c4213e55afbfe47039d13a33d6943a026c16: #1629/#1639 is delivered as 8da5c42. rootProcCover :114-116 now covers root workers’ whole procfs read-only at :147; workerCommand is :119-157, the ordinary host root :146 and brain ro-bind :149. #1638’s later ruling is warning/docs-only; #1677 owns the distinct-uid mechanism under #1645. This delivers kernel-write protection, not governed writable, journal, uid separation or closed read/socket authority. The governed runtime and reviewed interaction remain pending; the record is delivered as stated below.

    Delivered record and settled default/identity handoff — 2026-10-12

    The decision record docs/decisions/governed-writable-workers.md is delivered by #1676 (squash b21428aa), an ancestor of inspected main acec591c83a730e5d68f36bae2b807f95bb5d9c9; its named supersession notes are present in policy-write-boundary.md and async-collaboration.md. This is a delivered design/architecture record, not a shipped governed runtime. Consume the record and the later maintainer ruling: governed is the 0.42.0 default despite interim maintenance-worker credentials, with truthful host-status disclosure; it remains available without the separate-uid helper using mask-only protection and explicit status, while the hosting template always supplies its helper. The record’s delivered “Settled release defaults” section already folds in both questions; no pending record amendment remains for them. No new ruling is required for them.

    Existing interaction design prerequisites and native child ownership remain. All proposed runtime guards need their actual integrated tests; record delivery and policy approval do not prove profile activation, journaling, isolation, budgets or egress. This epic remains open without agent-ready.

    Current delivered slices — 2026-10-12

    #1621/#1640, #1625/#1696, #1626/#1641, #1651/#1687, #1660/#1692, #1655/#1699, #1656/#1686 and #1671/#1700 are delivered slices. Strict note/expired links/live rewriting have their recorded boundaries; governed profile/policy/journal, cost/scope and broader artifact design remain incomplete. Inspected main 8b4fbdcff57947344ad574e89b249beabe85cb06: workerCommand is packages/ui-sdk/src/server/worker-launcher.ts:339 (ordinary brain ro-bind at :382), Claude disallowedTools at packages/ui-backend-claude/src/sdk-options.ts:220 and pi shellCwd at packages/ui-backend-pi/src/worker-entry.ts:109. Kept tool_input Activity recording is packages/ui-server/src/activity/recorder.ts:266; governance/classification use packages/ui-server/src/governance/events.ts and roadblocks.ts. Old named SHA receipts stay historical. These are source/merge reconciliations, not fresh full integrated runtime proof, package publication or epic completion. Preserve actual design needs and no epic readiness.

    2026-10-12 record read-back at main 6f74aaa19d6707db95401649113e65c47787b27a: docs/decisions/governed-writable-workers.md:1409-1416 now records the final release defaults explicitly. Removed the superseded request for a later implementation PR to add them; runtime/design prerequisites remain unchanged.

    Updated 2026-10-12: applied the approved epic scope/ownership clarification; preserved detailed outcomes, criteria, exclusions, decision links and recorded rulings.

    2026-10-12 source/delivery refresh: reconciled the merged maintenance/signal/save/temp slices and current named launcher/backend anchors. Existing dated snapshot receipts stay historical; no new full integrated/runtime/publication proof or design approval is claimed.

    Approved programme interactions and defaults — 2026-10-12

    The recorded follow-ups settle the currently scoped design/decision questions. Placement remains the model picker’s This chat section for profile/limits and one beneath-turn disclosure for changes, cost and limits.

    Each owning task body contains its full approved criteria and remaining technical dependencies. These decisions remove the current programme design/decision labels; they do not prove runtime delivery. The proposed Activity Roadblocks section, tools/network ledger rows, extra steering banner/group-revert controls and transcript rows are outside the approved programme scope and create no new completion prerequisite.

    The native epics retain their existing scope and integrated definition of done. #1647’s report is delivered through #1724. The current delivery overview below supersedes older pending-implementation descriptions, without turning partial child delivery into programme completion. No release publication or deployment is claimed, and this umbrella remains open without agent-ready. Earlier dated triage snapshots remain historical evidence; statements that these now-approved choices still await review are superseded here.

    Current delivery overview — 2026-10-13

    The main governed work flow is delivered for milestone 0.42.0: isolated governed/strict worker profiles and authoritative policy protection; policy deny/confirm and human-approved policy proposals; confirmed next-turn profile selection; retained raw-byte journal and conflict-safe revert; durable artifact links/recovery; bounded maintenance; capabilities and measured state warnings; retained governance events, Roadblocks and local friction reporting. #1753 adds the approved built-in inference budgets and scope caps, steering classification/review and native/observed-conflict integrity slices. These are runtime deliveries, not npm publication or deployment.

    #1753 merged and closed #1669 and #1670 after its matched-head selected PR proof. Its original 0.42.0 delivery advanced Refs #1658 and Refs #1659. #1659 is now delivered through #1889 / 775cd1bacc69cf724f6a74b1631ab10363c3c71b for 0.44.0: both backends persist host-owned native observations and restore them before resumed native tools execute, including conservative incomplete-history recovery. External persisted Claude auto-memory is now delivered by #2191 /4349af39da824f573f977632bc5b4a75adf40f5c for0.44.0: successful native saves retain exact host-owned before/after bytes in steering history and reuse authenticated conflict-safe Revert/Undo; interrupted or refused capture stays partial/unknown. Actual-squash58tests/241assertions and strict types pass; queued main CI is not complete integrated qualification. Shared-window history keeps observed versions without claiming exclusive writers or capturing writes overwritten between observations. Opaque/dynamic configuration inputs remain explicitly unavailable, not inferred consumed dependencies.

    The broader security outcome #1645 stays open: managed-storage subscription-Claude egress and #1667 taint enforcement are delivered, while #1665’s Pi/API-key/mail/native-record remainder, #1666 credential audit/degradation, #1668 policy routing and #2673 user-marked files remain unfinished. #1677 worker identity is delivered through #2069 / 7d1a31d09b96739a85bff5151cc2e1300c9ac4d0: the optional configured helper/broker supplies verified separate-UID execution and bounded recovery/cleanup. Public hosting-template #18 retains production helper packaging; without a helper, shared-UID/mask-only status remains explicit. Option E's best-effort bytes and external-reference/reclamation limits remain. Visible outward approval (#1664) and host-owned credentialed sync (#1674) are delivered, but do not complete those security boundaries or close the opaque HTTPS-script limitation. #1646 also stays open for #1673 paid CLI/provider tool metering; built-in inference budgets do not cover that spend.

    #1643 is complete after its integrated completion audit; all thirteen children, including #2209, are closed. The audit distinguishes actual journal-store CI execution and browser/revert proof from unrelated failed whole-workflow results. Its historical 0.42.0 milestone and 0.44.0 follow-up attribution remain. #1752 profiling is archived with measured latency and no optimization claim; #1846 operational/configuration separation and #1847 late-cost accessibility are delivered. #1658 and #1659 are delivered. #1642 and #1644 are closed after their integrated definitions of done, native child states and all 14 main-push checks were verified; #1647 is also closed. #1636 remains open until all six child outcomes, accurate shipped documentation and integrated cross-feature proof satisfy its unchanged definition of done. Main-flow-first delivery changes priority, not permissions, remaining scope or the meaning of completion. No new follow-up is started by this checkpoint.

    #1753 merged as 857ab01d1f9cb591f928755f5be516ab7f73338e, tree 788a7b2da6835bb26a5d7e1f60ec1a85ef541194, identical to the final qualified PR tree. All14 selected final PR checks passed in CI38320779791. Automatic main CI38323276406 passed all 14 selected jobs on attempt 1; every actual job checkout was verified as merged 857ab01d1f9cb591f928755f5be516ab7f73338e. Publication and deployment remain separate.

    2026-10-14 source qualification at main 79d54278f1b2f35e929f4c6f182089360ab7759f: refreshed the current strict/startup mount range after #1778/#1786. Immutable input snapshots and physically bounded copy-on-write output staging are separate, with numeric output allowances and no weaker fallback preserved; this is the delivered startup accounting correction, not proof of many-file admission responsiveness. #1790 subsequently replaced repeated full-brain capture with the approved native storage architecture, merged as #1793 for 0.43.0. Its complete hosted admission/profile proof passes for Claude and Pi as root and non-root under enforced AppArmor, with cancellation/recovery and clean resource release. This closes the many-file admission qualification gap; integrated programme completion and the other unfinished child outcomes remain unchanged.

    2026-10-14 native admission delivery: #1793 merged as 4af7b2f20a43d23260c2ee5e3bac3896aee971bd, with its actual squash parent/tree verified against passing PR CI. #1790 is closed for 0.43.0. The approved managed Btrfs requirement and changed-only retained undo are recorded in docs/decisions/native-brain-storage.md. Publication and deployment remain separate; #1792/#1795 and the remaining child epic outcomes stay open. The umbrella milestone retains its initial 0.42.0 delivery context.

    2026-10-14 source reconciliation at main 4af7b2f20a43d23260c2ee5e3bac3896aee971bd: verified and refreshed the active named source anchors after #1793. Historical receipts remain historical; native storage delivery does not complete the other child outcomes, enable autonomous/scheduled dispatch or establish new runtime proof in this triage.

    2026-10-15 source navigation review at main f2e0fcee7de537c26e218bbc0b7c508c54da76b6: refreshed the Pi resource construction/profile range. Existing scope, prerequisites and historical runtime receipts are preserved; source inspection supplies no new runtime qualification or epic completion.

    2026-10-16 triage at main 8822aedeeac8b824bafe120c20a9b58c4cd1f4e6: reconciled the active native-tool/worker-resource summary with the delivered stable-roster guard, preserving the separate governed approval task and all other programme outcomes. No integrated epic or main-CI completion is claimed.

    2026-10-16 triage at main 80e028d84b7686d6cf864d8166029b1142de8756: folded the delivered #2022 native-writer correction into the active summary and repaired current mount/resource/input anchors. #2023/#2024 admission/startup timing slices are also delivered, as the recorded P1 outcome reports; the broader egress/credential/security and integrated programme criteria remain open. Focused postmerge receipts retain their source identities; queued main CI is not a full-green result.

    2026-10-16 triage at main 7d1a31d09b96739a85bff5151cc2e1300c9ac4d0: folded the closed #1659 and #1677 deliveries into the active overview after reading their closure receipts, merged identities and landed implementations/records. Preserved 0.42.0 initial attribution versus 0.44.0 follow-up delivery, observation-granular shell guarantees, #1658 and broader security/metering work. Recorded local/focused qualification is attributed evidence; queued hosted CI is not complete current-main green, publication or whole-programme completion.

    2026-10-16 blocker progress at main49c8b1d0cd9eea7282489210c9e5c912c0fdae09: indexed native recovery #1792, worker-visible RTK qualification #1795, approved policy-publication staging #1749, and external Claude-memory history #1658 are delivered. #1844 now has the actual native/private-temp fix and same-byte inside/outside installed-runtime requests through #2207; documentation #1901 closed. #1844 stays open for complete affected hosted proof. Focused and exact-squash receipts are retained on each issue; queued main jobs are not green. #1847 is delivered through #2208, and #1846 through #2214, with actual mounted-browser and exact-squash receipts. #1752 profiling is complete in its immutable measurement archive; its measured latency remains explicit and no product speedup is claimed.

    The transport from #2182 is now consumed by merged #2399/#2644/#2645 for ordinary subscription-Claude turns on managed native storage; the other stated coverage gaps remain. On 2026-10-16 the maintainer approved a host-held Claude OAuth resolver owning stored-login refresh; #1665 is reopened and its implementation proceeds with a durable architecture amendment and offline compatibility/security proof required before activation. #1666 and #1673 still require actual credential-free inference/provider delivery; no credential waiver or paid-call authorization is implied. For #1668 the maintainer approved whole-folder worker exclusions first, preserving the live brain and leaving arbitrary type/glob criteria open. Its core routing slice #2200 is delivered; all-writer topology/publication, recipient identity, private indexes and tool restrictions remain qualification work. The two approved decisions remove the earlier architecture-choice blockers without completing the security outcome.

    2026-10-16 triage at main 4ba792473152c89eb74c286fc914e54ca1dae8fc: reverified the active tool-input recording anchor after late-session Activity association. Preserve the concurrent delivered-memory/governance overview and all remaining security/qualification criteria; no duplicate delivery summary or new whole-main proof is posted.

    2026-10-17 integrated child audit at actual main ecb8748: #1643 is complete, with all thirteen children closed, actual workspace history/download and reviewed Revert/Undo browser proof, current journal/revert runtime controls and actual journal-store CI execution. Its full completion receipt is #1643 (comment) . The copied-checkpoint false inode alias is repaired by #2294 without changing production native observation. Preserve its historical0.42.0 milestone and0.44.0 follow-up attribution.

    The remaining direct children are #1645 and #1646. #1844 completed on 2026-10-17 after #2331 added its passing automatic hosted native placement control and all 70 current launcher/sandbox/maintenance cases were reconciled against successful source-qualified hosted reports; the completion receipt is #1844 (comment) . Host OAuth/egress ordinary activation, whole-folder writer topology (type/glob remains open), paid CLI provider accounting/budget behavior and complete ordinary installed-runtime qualification still require their actual outcomes. #2292 separately repairs synchronous egress audit finalization; #2296 preserves a newly reproduced no-profile identity-probe socket visibility blocker. No current whole-CI success or complete governed-turn programme is claimed.

    2026-10-17 triage at main ecb87487d714956b0fcef520debe9dfa885b234f: folded the verified #1643 closure/completion receipt into the active overview, replacing the obsolete pending-reader statement. Preserve the later current integrated child audit, remaining #1645/#1646/#1844 outcomes, observation-granular/native-storage limits and the explicit absence of current whole-CI, publication or programme-completion claims.

    Coordinated remaining delivery — 2026-10-18

    Actual main 775eb17aab740fa759c2182f306c38fc17acbcbe retains two open direct outcomes: #1645 security/egress and #1646 paid-provider budgets. Their outputs are required by this P0 outcome, so priority propagates through their concrete unresolved prerequisite chains, rather than from membership alone. The retained owner has reopened #1665 after verifying its null-commit manual closure and unfinished ordinary activation. #1666/#1667 regain canonical blocked readiness on that open prerequisite; #1668 keeps its existing owner and #1673 remains downstream. The server egress successor is the next independent implementation slice; the local Pi prerequisite stays unpublished pending combined review.

    Native maintenance #2361 is merged, with five completed children and exact tested-tree delivery. #2364 is now closed by #2616 (cb86cb7c623328b8a6b2cc42a1baa9e514b5ac1b): the bounded server-owned attributes read supports persistent strict-private output without widening modes or helper authority. The governing decision record and attributed native controls are delivered; this does not complete the integrated programme. #2284 is now closed through #2558 (6c5a4f40219c05e7f621b554589d1c19c16b2273) under the later option (c) ruling: legacy host fallback refuses before spawn while a provider folder policy is active. The pre-policy admitted-descendant window remains explicitly documented; this is not universal host-writer lifetime proof. Closure of other children, partial transport and preparation commits do not complete this programme; all original integrated proof and accurate documentation requirements remain.

    2026-10-21 source reconciliation at main c2f080f20a31224a1eeccde321c574292eaedb02: refreshed the active workerCommand and strict/startup read-only mount anchors. Native #1645/#1646 remain the two open direct outcomes at p0; current declared open dependency chains have no lower-priority blocker in the inspected inventory. Preserved approved policies, initial release attribution and integrated proof requirements; no new runtime or programme-completion claim is supplied.

    2026-10-22 triage at main fbcfddf33b8b4bc93bbd898e121909ccb4bbaa0f: reconciled #2364’s completion through merged #2616 and the current governed-worker decision amendment. Native #2633’s P0 host-socket policy is now settled by the October 22 maintainer ruling: option A, mask all of /var for governed, strict and maintenance workers, including /var/tmp, preserving required explicit read-only runtime inputs and meaningful compatibility/isolation controls. #2633 delivered implementation, fixture relocation and the durable decision-record amendment through merged #2657 (5b34b6f2460bda675ea0302e0bb90119c1f4ba81); the ruling does not establish #1665’s no-reachable-host-socket gate. Preserve #1665’s implementation ownership and #2284’s separately delivered refusal boundary and pre-policy-writer limitation. No new native/hosted proof or complete programme outcome is claimed.

    2026-10-22 ruling reconciliation: #2633’s option A is selected and its decision prerequisite is resolved. That child is now closed through merged #2657; its source delivery and attributed socket/compatibility receipts are separate from the remaining #1665 activation proof; this epic’s outcome and readiness are unchanged.

    Scoped host-fallback delivery — triage 2026-10-22

    #2284 is closed by merged #2558 (6c5a4f402), present on inspected main 30c1d50aec53d2e58da4fca3184582869b5895a6. The selected boundary refuses legacy never-governed host fallback before any process starts when provider folders are active, retained by an active writer, or unknown; it covers gated/ungated complete, streaming and synchronous paths. Existing peer refusals keep their ordering, and valid no-folder policy keeps fallback available. The decision amendment in docs/decisions/governed-writable-workers.md preserves the limit: a descendant from legacy work admitted before any folder policy existed is not retroactively tracked or terminated by this correction.

    The PR attributes actual owner-crash/detached-descendant failing-first controls, restored mutations and local preflight to its recorded source. This triage verified source, merge and closed state; it ran no new native or hosted proof. #1668 and the full security/programme outcome remain open; neither this scoped refusal nor the earlier stopped investigation proves complete all-writer lifetime safety. Preserve other ownership, P0 requirements and release attribution.

    2026-10-22 delivery reconciliation at main aeaaf7794b6be41fde4e01bef78ce3f1a5828ac6: #2633 is closed through merged #2657 (5b34b6f2460bda675ea0302e0bb90119c1f4ba81). HOST_MASKS (packages/ui-sdk/src/server/worker-launcher.ts:136) now masks all of /var, including tmp/spool and future layouts, for governed, strict and credential-free maintenance workers. Explicit required runtime files remain read-only binds; relocated fixtures preserve independent socket/database/token controls. The merged PR records complete filesystem socket-walk and mutation receipts; these are attributed worker results, not new triage runtime proof. This delivers the selected option A, without establishing #1665’s remaining relay/activation qualification or completing this epic. Existing #2654 follow-up scope and #2284’s refusal boundary/pre-policy-writer limitation remain unchanged.

    2026-10-23 delivery reconciliation at main f3c6fdc9f9c6321fda5a384cf8cfd8bf2e4846da: Merged #2399/#2644/#2645 deliver durable egress recording, first-party measurements and default proxy/host-relay activation for governed and strict subscription-Claude turns on managed native storage (086db5b20dd091f1a2864507eacf6dd207b74560). Pi, API-key Claude and non-managed hosts retain the stated coverage gaps. #1665 remains open under its existing owner for Pi/API-key relay consumers, built-in mail-submission outward defaults and native-harness per-connection assertions; no acceptance criterion is reduced. #2654 is the explicitly approved non-managed-host follow-up and its #2645 prerequisite is now merged. #1666 remains blocked on #1665; #1673 remains downstream of #1666.

    #1667 is closed through merged #2676 (8f7430cd6): web tools, inbox/workspace reads, external MCP results, the existing shell rule and non-relay proxy connections establish sticky session taint. Both backends ignore outward.allow while tainted; where the proxy is active, new connections must also match taint.egress.allow or an already-contacted host. Off-proxy egress tightening remains explicitly unavailable. User-marked files were split by maintainer ruling into native #2673, which remains needs: design; its current prompt is usable and no UX choice is approved here. #1668 routing remains open and no longer waits on #1665’s undelivered remainder.

    The October 23 Pi relay ruling is already recorded on #1665 (comment 6360183688): native host getAuth on each dispatch, credential-shaped placeholders, qualified API-key/OAuth matrix, exact-origin checks, and actionable refusal before launch for command-sourced or unsupported credentials on managed storage. It authorizes the owner’s implementation and durable record; it is not merged Pi delivery or a new unresolved decision.

    Refreshed the active workerCommand/strict mount/retained tool-input anchors. Merged #2671 additionally strips host Git credentials from agent and maintenance environments while preserving dedicated transport consumers; this does not satisfy #1666’s remaining provider audit. Existing native/PR receipts retain their exact source identities; no new native/hosted proof or full programme completion is claimed. #1645 and #1646 remain the two open direct outcomes.

  14. schlessera commented on Oct 24, 2026

    @schlessera
    OwnerAuthor

    2026-10-24 triage at main dc5d3c73282c29a3f0098306d398743ee18ec791: Refreshed the argv-builder and immutable-view-overlay anchors. Current direct/native children and the recorded initial 0.42.0 milestone remain; no later child is rescheduled and no integrated governance completion is inferred.

  15. schlessera commented on Oct 24, 2026

    @schlessera
    OwnerAuthor

    2026-10-24 triage at main af6300478a07379178bd30221a31c0b917df2283: Refreshed moved current-source pointers by inspecting their named anchors. Historical receipts retain their source identities; scope, rulings, priorities and outstanding prerequisites are preserved. No runtime result or readiness is inferred from this navigation repair.

  16. schlessera commented on Oct 24, 2026

    @schlessera
    OwnerAuthor

    2026-10-24 triage at main 77f35ef1ba34e4fab7092ada5362ae799852ea24: Verified moved current-source anchors and refreshed their pointers after the reference-tool delivery. Historical failed receipts retain their source identities; scope, rulings and unresolved needs are unchanged. No runtime result or readiness is inferred.

  17. schlessera commented on Oct 25, 2026

    @schlessera
    OwnerAuthor

    2026-10-25 triage at main 827861e1fa71cd4a26b52f1ef0f96b849381acdf: Verified moved current-source anchors and refreshed navigation; historical receipts and unresolved prerequisites retain their identities. No new runtime proof is claimed.

  18. schlessera commented on Oct 25, 2026

    @schlessera
    OwnerAuthor

    2026-10-25 triage at main ab746a434c4ada11734ffea4e208d1d6211f1aca: Verified moved current-source anchors and refreshed navigation. Historical failed receipts, existing rulings and unresolved prerequisites are unchanged; this is not a new runtime qualification.

  19. schlessera commented on Oct 25, 2026

    @schlessera
    OwnerAuthor

    2026-10-25 triage at main 541b8d98328a760290ac6dd4a7f065af76153408: Verified the moved current-source anchors after the off-loop writer slices and refreshed their pointers; historical failed-source receipts, scope and unresolved prerequisites remain unchanged. No new runtime qualification is claimed.

  20. schlessera commented on Nov 3, 2026

    @schlessera
    OwnerAuthor

    2026-11-03 epic state: #1646 has no open child left, because #2738 closed through #3369. It is reported there as a closure candidate. Under #1645, #2654 closed as obsolete, and #3314 and the child epic #3428 (session-taint triggers) were added. #3355, on governed-turn admission and cold journal-begin latency, is a new direct child and needs a human. The body's Remaining list now matches these changes.

  21. schlessera commented on Nov 5, 2026

    @schlessera
    OwnerAuthor

    Epic state — 2026-11-05 triage. Folded the explicit #1646 completion ruling into the current breakdown. #1645 is the remaining open direct child outcome. Original release attribution and integrated cross-feature definition of done remain; no new runtime qualification or programme completion is claimed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: backendsarea: ui-sdkarea: ui-serverepicpriority: p0type: feat

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions