Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
5782aba
fix(runtime): preserve safe retained diagnostics
drewstone Aug 28, 2026
a49ab2c
fix(stream): sanitize provider output across event boundaries
drewstone Aug 28, 2026
6a329db
feat(runtime): route exact native continuation
drewstone Aug 28, 2026
4176679
feat(runs): support concurrent branch runs
drewstone Aug 28, 2026
cf21059
docs(components): define the complete terminal design map
drewstone Aug 28, 2026
9b2144e
feat(conversations): add portable handoff and workspace forks
drewstone Aug 28, 2026
ea45880
feat(intelligence): expose analysis progress and supervisor controls
drewstone Aug 28, 2026
23813cc
fix(conversations): stabilize transfer retry identity
drewstone Aug 28, 2026
8dcbec0
docs(components): complete retained lifecycle map
drewstone Aug 28, 2026
a513452
fix(conversations): allow forks during live runs
drewstone Aug 28, 2026
aa14d63
fix(ui): expose complete parallel-work paths
drewstone Aug 28, 2026
1f70c5d
fix(multirun): harden concurrent stream capture
drewstone Aug 28, 2026
041bb1d
fix(ui): make run switching deterministic
drewstone Aug 28, 2026
f9dc860
fix(release): require Tangle multirun proof
drewstone Aug 28, 2026
6ec4333
fix(multirun): prove real work strip ownership
drewstone Aug 28, 2026
5c24ae6
fix(live-proof): route cancellation after overlay dismissal
drewstone Aug 28, 2026
a4b7eb5
fix(ui): mark truncated command descriptions
drewstone Aug 28, 2026
fd09449
fix(live-proof): read semantic control events
drewstone Aug 28, 2026
184f660
fix(live-proof): isolate restart evidence files
drewstone Aug 28, 2026
28c69b9
fix(live-supervisor): prove runtime worker effects
drewstone Aug 28, 2026
8e429ce
fix(live-proof): separate provider environment identity
drewstone Aug 28, 2026
b5bea05
feat(supervision): route retry-safe worker steering
drewstone Aug 28, 2026
53fd4b9
feat(live-supervisor): provision owned runtime proof runs
drewstone Aug 28, 2026
cba2fec
fix(live-proof): diagnose pre-admission interaction failures
drewstone Aug 28, 2026
12f75c7
perf(ui): bound large worker projections
drewstone Aug 28, 2026
12522f4
feat(tangle): add restart-safe workspace proofs
drewstone Aug 28, 2026
82763e8
fix(analysis): enforce reproducible live execution
drewstone Aug 28, 2026
ff76277
feat(ui): make parallel run focus explicit
drewstone Aug 28, 2026
660a1da
fix(live-supervisor): compose complete runtime profile
drewstone Aug 28, 2026
a3f07f4
fix(live-supervisor): use current router model
drewstone Aug 28, 2026
e88ff87
perf(ui): reuse stable view projections
drewstone Aug 28, 2026
47a8bce
docs(components): standardize implementation guidance
drewstone Aug 28, 2026
ecc8f6d
fix(ui): preserve parallel run controls
drewstone Aug 28, 2026
7d69e11
docs(readme): document current operator workflows
drewstone Aug 28, 2026
a2b8374
feat(supervision): attach exact worker terminals
drewstone Aug 28, 2026
a7185b6
test(tui): cover supervised worker attachment
drewstone Aug 28, 2026
aa41593
test(ui): capture supervised worker controls
drewstone Aug 28, 2026
4f95952
fix(ui): keep focused run controls visible
drewstone Aug 28, 2026
8864897
fix(test): align supervisor fixture workspace
drewstone Aug 28, 2026
e5522a2
refactor(test): reuse supervisor snapshot fixtures
drewstone Aug 28, 2026
35643d4
fix(process): track escaped descendants before cleanup
drewstone Aug 28, 2026
1dca6db
fix(ui): separate execution identity from decision copy
drewstone Aug 28, 2026
7a3e568
fix(supervision): pass explicit Runtime provision inputs
drewstone Aug 28, 2026
9671907
fix(live): harden provider-bound cloud proofs
drewstone Aug 28, 2026
60d3e3e
style(live): normalize proof imports
drewstone Aug 28, 2026
ff6904f
fix(supervision): drop inert credential reference
drewstone Aug 28, 2026
f0a03fd
feat(confidential-attestation): verify Nitro trust policy
drewstone Aug 28, 2026
3608534
fix(ui): wait for supervision activity scope redraw
drewstone Aug 28, 2026
da27d22
perf(startup): defer cli bridge provider loading
drewstone Aug 28, 2026
7b75c48
perf(evidence): refresh public cohort matrix
drewstone Aug 29, 2026
e4e6637
fix(live-proof): preserve redacted failure evidence
drewstone Aug 29, 2026
7215399
feat(product): finish retained multi-run workflows
drewstone Aug 29, 2026
a0bb904
fix(process): support portable POSIX cleanup
drewstone Aug 29, 2026
e950020
chore(deps): update direct dependencies
drewstone Aug 29, 2026
3cda697
chore(deps): update terminal toolchain
drewstone Aug 29, 2026
d36fe4f
docs(deps): align dependency evidence
drewstone Aug 29, 2026
e0e7489
chore(deps): adopt sandbox 0.34.3
drewstone Aug 29, 2026
6fd90c5
chore(deps): adopt Tangle provider 0.14.2
drewstone Aug 29, 2026
4fe0516
docs(runtime): record current provider cohort
drewstone Aug 29, 2026
4baf28f
fix(runtime): preserve provider-owned session identities
drewstone Aug 29, 2026
f06a8bb
fix(live): clean partial interactive starts safely
drewstone Aug 29, 2026
a4d6e1c
fix(process): verify tracked PTY termination
drewstone Aug 29, 2026
e43f8f3
fix(runtime): keep local paths out of remote starts
drewstone Aug 29, 2026
a8e297b
fix(live): accept proven fallback cleanup
drewstone Aug 29, 2026
3e51a4b
chore(deps): adopt Tangle provider 0.14.3
drewstone Aug 29, 2026
2b2e684
docs(deps): record Tangle provider 0.14.3
drewstone Aug 29, 2026
4f97573
fix(proof): follow visible connection workflow state
drewstone Aug 29, 2026
9a53e1b
test(release): bind visual proof to candidate
drewstone Aug 29, 2026
7aa1da9
chore(deps): adopt current agent cohort
drewstone Aug 29, 2026
4b618db
fix(profile): bind cross-runner destination model
drewstone Aug 29, 2026
9f257c5
fix(runtime): preserve terminal admission state
drewstone Aug 29, 2026
ba64350
fix(rpc): await retained control completion
drewstone Aug 29, 2026
2ff0c14
fix(storage): retain bounded secret metadata
drewstone Aug 29, 2026
515b5af
feat(bridge): complete retained context workflows
drewstone Aug 29, 2026
000e4ec
test(ui): refresh canonical terminal proof
drewstone Aug 29, 2026
978dbc4
fix(analysis): retry transient Router failures
drewstone Aug 29, 2026
2f193d3
fix(release): reconcile verification evidence and checks
drewstone Aug 29, 2026
65f8f57
fix(live): validate Tangle aggregate measurements
drewstone Aug 29, 2026
35c3e2b
fix(release): bind publication proof to candidate bytes
drewstone Aug 29, 2026
9ecc4fa
fix(conversations): resolve inherited source runs for handoffs
drewstone Aug 29, 2026
3e55103
docs(upstream): align Pi TUI table version
drewstone Aug 29, 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
  •  
  •  
  •  
19 changes: 19 additions & 0 deletions .agent/autopsies/2026-08-28-controller-projection-cache.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Controller projection cache autopsy

The `pnpm run test` command at commit `a3f07f4` passed 827 functional tests and failed 1 of 16 performance tests.

The failed test expected stable controller reads to remain below a 10 ms p90.
The assertion did not print the measured p90.

`ApplicationUiController.view()` cached the cloned application state but called `#project()` on every read.
The source check was `src/adapters/tui/application-ui-controller.ts:80` before the fix.

The host also ran multiple compiler and model processes during the failure.
Two isolated repetitions passed, so host saturation determined when the repeated work crossed the threshold.

Classification: infra-bug.

The fix caches the immutable final view by state, failure signals, and local presentation inputs.
The deterministic check now requires the same view object for every unchanged revision.

Fix: cache the projection in `src/adapters/tui/application-ui-controller.ts`, then rerun the performance and full test commands.
1 change: 1 addition & 0 deletions .agent/critical-audit/2026-08-28T21-44-00Z/findings.jsonl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

19 changes: 19 additions & 0 deletions .agent/critical-audit/2026-08-28T21-44-00Z/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"scope": "LIVE-07 and LIVE-08 provider-bound cloud proof changes",
"base": "1dca6db491f9a03f898a0437394d5903598c7434",
"head": "9671907",
"files": [
"docs/components/README.md",
"docs/components/cloud-proof-observations.md",
"scripts/live-required/contracts.mjs",
"scripts/live-required/tangle-sandbox-braid-interactive.mjs",
"scripts/live-required/tangle-sandbox-braid-soak.mjs",
"scripts/live-required/tangle-sandbox-braid-stress.mjs",
"test/tangle-live07-wiring.test.mjs",
"test/tangle-sandbox-braid-soak-script.test.mjs"
],
"projectType": "Node package with live release scripts",
"reviewers": ["A-correctness-security", "B-architecture-performance", "C-real-system-coverage"],
"mode": "serial",
"notInspected": "Unrelated dirty source, package, and verification artifacts were excluded from this commit."
}
31 changes: 31 additions & 0 deletions .agent/critical-audit/2026-08-28T21-44-00Z/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Audit: LIVE-07/LIVE-08 provider-bound proofs — 1dca6db..9671907 — n=8 files, 0 findings

**Verdict:** APPROVE — changed proof paths reject unverified provider evidence · 0 CRITICAL / 0 HIGH / 0 MEDIUM / 0 LOW
**Worst:** none — no reproducible defect remained in the changed scope.
**Next:** run protected Sandbox LIVE-07/LIVE-08 provider probes before release.

## Scope

| Field | Value |
|---|---|
| Files | n=8 via commit diff and explicit changed-file scope |
| Base..head | `1dca6db491f9a03f898a0437394d5903598c7434..9671907` |
| Project type | Node package with live release scripts |
| Reviewers | A,B,C · serial |
| Not inspected | Unrelated dirty source, package, and verification artifacts. |

## Findings — 0 of 0, ranked

No changed-scope finding had a reproducible failure scenario after the focused proof suite, syntax check, lint check, diff check, and credential-shaped literal scan.

## Assumptions & unverified

| Assumption | Finding it would flip | Check that settles it |
|---|---|---|
| A protected provider run is available for this branch. | Live provider behavior remains unverified. | Run the protected LIVE-07 and LIVE-08 scripts and inspect the redacted receipts. |
| The public Sandbox API preserves the retained workspace files and usage fields. | Provider readback or telemetry could remain unavailable. | Execute the scripts against Sandbox and require their provider-bound checks. |

## Self-gate

9/9 passed — failed: none.
1 verdict = decision + 1 number · 2 every finding has file:line · 3 concrete failure scenario · 4 status label · 5 evidence is a pointer · 6 cost both sides · 7 fix + verification per row · 8 zero adjectives standing in for counts · 9 words ≤600 outside tables.
87 changes: 87 additions & 0 deletions .agent/pursuits/2026-08-28-orchestrate-braid-10.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# Braid completion workflow

## Objective

Ship Braid as a production terminal for concurrent, durable agent work.

The release must start, stream, switch, branch, fork, ask, analyze, supervise, and control parallel sessions through current shared contracts.

Every component must have an implementation note that describes the smallest general design which satisfies its contract.

## Structure

The workflow is a pipeline with one integration barrier.

Three isolated implementation tracks run in parallel before integration.

1. Stream safety owns incremental sanitation, durable event safety, replay, cancellation, and output limits.
2. Multi-run product owns concurrent branch runs, focused-run state, controls, terminal workflows, and responsive presentation.
3. Runtime continuity owns retained reconnect, native continuation, exact worker control, and any missing shared runtime contract.

The integration branch accepts a track only after its narrow tests pass.

Shared package changes merge and publish before Braid consumes them.

## Coordination policy

- Three Luna-max workers write independent implementations in isolated worktrees.
- The operator owns architecture boundaries, integration, live checks, commits, releases, and final claims.
- Workers must extend current contracts and must not add provider-specific execution paths to Braid.
- Every durable event change includes idempotency, restart, and migration coverage.
- Every streaming change includes disconnect, replay, duplicate-event, cancellation, and finalization coverage.
- Every interaction change includes accept, decline, timeout, cancel, and restart coverage.
- Every visible workflow includes keyboard proof and captures at 40x12, 80x24, 120x40, and 200x60.
- A worker can request an upstream change, but the owning package must implement it.
- No track opens a separate Braid pull request.

## Expected worker count

Three concurrent workers run in each implementation wave.

The expected total is 12 to 18 worker turns across implementation, integration repair, live proof, and adversarial review.

## Waves

### Wave 1: foundations

- Make streamed output safe before it enters the journal or reducer.
- Replace the global active-run slot with branch-scoped active work and one explicit focus.
- Reproduce and repair retained Tangle reconnect with preserved failure evidence.
- Adopt the current runtime package only after its required API is proven.

### Integration barrier

- Integrate passing commits into one Braid branch.
- Resolve the state, migration, and adapter interfaces once.
- Run contract, type, dependency, performance, security, and full local checks.

### Wave 2: complete workflows

- Complete exact native continuation and same-session recovery.
- Complete portable conversation handoff and workspace fork through owning packages.
- Complete trace analysis actions from run details.
- Complete supervisor worker navigation, attach, steer, and acknowledged cancellation.
- Complete the conditional work strip, capability-driven selectors, help navigation, and truthful route copy.
- Create component notes and a complete source-to-component index.

### Wave 3: proof and delivery

- Run the current live CLI Bridge and Tangle matrix from packed artifacts.
- Prove concurrent sessions, retained reconnect, interactions, fork, analysis, attach, steer, cancel, cleanup, and replay.
- Capture dark and light terminal evidence at all required sizes.
- Record the changed user flows.
- Run three independent adversarial reviews after all implementation checks pass.
- Fix every valid finding and repeat the affected checks.
- Open one pull request per changed repository.
- Merge and publish dependencies in order.
- Install the published Braid package in a clean directory and repeat the release checks.

## Synthesis rule

Prefer one general owning contract over a Braid-only special case.

Prefer explicit identifiers and immutable projections over inferred global state.

Reject an implementation if it cannot prove restart, replay, cancellation, capability failure, and bounded resource use where those conditions apply.

The product is complete only when the published package passes the required live matrix and leaves no owned resource behind.
103 changes: 103 additions & 0 deletions .agent/release-progress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
# Release Progress

## Release record

This file tracks one candidate and its matching public release cohort.
Populate every `not recorded` value from the same release artifact and verification run.
Do not copy a version, integrity value, or live result from an earlier cohort.

- Candidate Braid package and version: `not recorded`
- Candidate Braid commit: `not recorded`
- Runtime package and version: `not recorded`
- Sandbox package and version: `not recorded`
- Agent Interface package and version: `not recorded`
- Tangle provider package and version: `not recorded`
- Runtime artifact commit and tarball integrity: `not recorded`
- Braid artifact tarball integrity: `not recorded`
- Runtime rollback package and version: `not recorded`
- Braid rollback package and version: `not recorded`
- Registry and live-service environment: public npm and public Tangle services
- Release credentials: protected release environments and `gh-drew`

## Public dependency cohort

- Agent Interface: `not recorded`; registry version, owning-repository checks, and publication proof are pending.
- Tangle provider: `not recorded`; registry version, owning-repository checks, and publication proof are pending.
- Sandbox: `not recorded`; registry version, owning-repository checks, and publication proof are pending.
- Runtime: `not recorded`; registry version, owning-repository checks, and publication proof are pending.
- Runtime package integrity: `not recorded`.
- Braid has no file, link, or workspace production dependencies: verify against the final lockfile before publication.

## Prior cohort record

The entries below describe the 2026-08-28 checkpoint only.
They are historical evidence and do not describe the current release candidate.

- Agent Interface `1.7.1` passed 478 of 478 tests before publication.
- Tangle provider `0.14.1` passed 170 of 170 tests before publication.
- Sandbox `0.34.0` came from merged commit `c2abc576520f6303fb26528391c706a150419a33`.
- Runtime `0.177.0` came from merged commit `4b6ff007`.
- Runtime package integrity was `sha512-6UYAtUEmhzluJYe6VL4ECKyNCQD0HAx9sch2W5BTcA5R/ddrlANy5jJ3Sq7TPmm07JeeMq3iolTEfrGgbDPQEw==`.
- Runtime provenance, tag, source, workflow, and isolated installation were verified after publication.

## Completed Product Work

- The Work Strip supports concurrent runs, explicit focus, switching, and targeted cancellation.
- Native continuation resumes the selected provider session.
- Cross-runner and cross-workspace forks create new branches without changing agent identity.
- Interaction views support typed answers, acceptance, decline, timeout, cancel, and restart recovery.
- Analysis freezes one run, records cited findings, and preserves promotion decisions.
- Supervisor views project the Runtime worker tree and route steer, cancel, and exact terminal attach.
- Braid suspends its screen during worker attach and delegates terminal transport to Runtime.
- All 51 exported terminal components map to 25 component documents.
- Every component document states its best simple general implementation.
- The UI captures 16 product states and 21 keyboard frames at all four required terminal sizes.

## Current proof record

Record each result with its candidate commit, command, date, and artifact path.
Use `not recorded` until the check runs against the release record above.

- Local package and terminal checks: `not recorded`.
- Provider and Sandbox live checks: `not recorded`.
- Restart, concurrent-session, and interaction checks: `not recorded`.
- Package-to-candidate comparison: `not recorded`.
- Dependency audit and source graph: `not recorded`.

## LIVE-10 status record

- Current LIVE-10 result: `not recorded`.
- Current evidence path and artifact: `not recorded`.
- Previous observation from 2026-08-28: Base Sepolia chain `84532` had one active blueprint-12 binary and zero blueprint-12 services.
- Previous observation from 2026-08-28: The advertised operator endpoint did not complete TLS or expose the required API.
- Previous observation from 2026-08-28: The operator host was ARM64, while the published Nitro binary was x86_64.
- Previous observation from 2026-08-28: The host had no Nitro process, Nitro routing, or AWS deployment credentials.
- Previous observation from 2026-08-28: Production Sandbox had no Nitro driver allowlist or Nitro target configuration.
- Previous observation from 2026-08-28: Four temporary host-agent sandboxes were deleted and excluded from confidential proof.
- Release decision: block publication until LIVE-10 passes against the release record above.

## Remaining Sequence

1. Finish and verify warm-start performance against the published dependency cohort.
2. Regenerate stable visual captures and inspect every corrected flow.
3. Run the complete local, package, property, performance, and live-provider checks.
4. Run independent architecture, security, UI, and release reviews and fix each valid finding.
5. Merge one Braid pull request after current checks and reviews pass.
6. Publish the candidate package recorded above only after every required live row, including LIVE-10, passes.
7. Download the public Braid package and compare it with the approved candidate.

## Decision

- Keep npm `latest` on the last verified release while any required live check is unavailable.
- Merge reusable product and proof improvements when their exact checks pass.
- Do not replace provider proof with fixtures, local Sidecar runs, or host-agent sandboxes.
- Do not describe an unavailable confidential path as shipped.

## Timeline

- 2026-08-28: Proved retained Tangle reconnect after forced Braid process termination.
- 2026-08-28: Implemented multi-run focus, continuation, forks, interactions, analysis, and supervisor controls.
- 2026-08-28: Published Agent Interface `1.7.1`, Tangle provider `0.14.1`, Sandbox `0.34.0`, and Runtime `0.177.0`.
- 2026-08-28: Proved the public Sandbox Sidecar input, detach, reconnect, replay, and interaction flow.
- 2026-08-28: Proved two retained Tangle multirun cohorts with exact cleanup.
- 2026-08-28: Confirmed that Base Sepolia has zero blueprint-12 services and no reachable Nitro operator.
Loading