From 7943bfdb98ca7a60235f6c3bd394beb67ebcdb09 Mon Sep 17 00:00:00 2001 From: John Crenshaw Date: Wed, 4 Nov 2026 15:24:14 -0500 Subject: [PATCH 1/2] chore: point links and crate metadata at crenshawdev/baley The repository moved from the jcrenshaw-dev org to crenshawdev, and the org is gone. ADR links change too, because the old org name can be registered by anyone 90 days after deletion. --- .github/ISSUE_TEMPLATE/config.yml | 2 +- README.md | 18 +- crates/baley-core/Cargo.toml | 2 +- crates/baley-store-sqlite/Cargo.toml | 2 +- crates/baley-store/Cargo.toml | 2 +- crates/baley/Cargo.toml | 2 +- .../adr/0027-vendor-folders-and-plain-keys.md | 4 +- docs/adr/0028-one-http-stack.md | 2 +- docs/adr/0029-a-host-may-offer-more.md | 2 +- docs/adr/0030-question-rounds.md | 4 +- docs/adr/0031-one-term-per-concept.md | 10 +- docs/adr/0033-host-security-bar.md | 2 +- docs/adr/0034-one-server-per-session.md | 2 +- docs/adr/0037-plan-recheck-scope.md | 2 +- docs/adr/0038-installer-and-opt-in-updates.md | 6 +- ...0039-session-owned-provider-credentials.md | 2 +- docs/adr/0040-guard-commit-checkout.md | 2 +- ...0042-mocked-boundary-integration-checks.md | 2 +- docs/design/0003-configuration-and-routing.md | 2 +- ...4-starting-a-project-and-changing-scope.md | 2 +- .../0005-context-plans-and-acceptance.md | 2 +- docs/design/0006-execution.md | 2 +- docs/design/0007-verification.md | 2 +- docs/design/0008-review.md | 2 +- docs/design/0009-risk.md | 2 +- docs/design/0010-guard.md | 2 +- .../0011-milestones-landing-undo-pause.md | 4 +- docs/design/0012-host-interface.md | 8 +- docs/design/0013-next-action-and-progress.md | 2 +- docs/design/0014-support-families.md | 2 +- .../0015-repository-upkeep-and-build-gate.md | 18 +- docs/install.md | 2 +- docs/outside-reviews.md | 2 +- docs/roadmap.md | 244 +++++++++--------- 34 files changed, 183 insertions(+), 183 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 9320ea52..561ac57d 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,5 +1,5 @@ blank_issues_enabled: false contact_links: - name: Report a security problem - url: https://github.com/jcrenshaw-dev/baley/security/advisories/new + url: https://github.com/crenshawdev/baley/security/advisories/new about: Report it privately. Never in a public issue. diff --git a/README.md b/README.md index 5937ce5e..cd75dbe9 100644 --- a/README.md +++ b/README.md @@ -26,13 +26,13 @@ Baley collects nothing about you, sends no telemetry, and sends data only to ser ## Current state -- Installs use unsigned development artifacts. `install.sh` and `baley update` check SHA-256 against an unsigned manifest, and signature verification comes before any release ([#14](https://github.com/jcrenshaw-dev/baley/issues/14)). The design signs each release's manifests with an OpenSSH Ed25519 key that stays on the maintainer's machine, and both will verify that signature against the public key they carry. -- The parked review engine is still compiled in. No command or tool reaches it, but it reads environment keys and `providers.env` and can call providers. Build 9 ([#30](https://github.com/jcrenshaw-dev/baley/issues/30)) deletes it. -- `baley models update` prints a fetch only for an acknowledged provider. The same check before a review, including for hand-edited settings, comes with Build 4 ([#25](https://github.com/jcrenshaw-dev/baley/issues/25)). -- Outside reviews of plans and diffs are not built yet. Build 4 ([#25](https://github.com/jcrenshaw-dev/baley/issues/25)) adds them, along with phase planning and plan approval. -- A plan's file lease is not yet enforced when a task closes. Build 5 ([#26](https://github.com/jcrenshaw-dev/baley/issues/26)) enforces it. -- Anchors are pushed only when you run `baley anchor`. Build 6 ([#27](https://github.com/jcrenshaw-dev/baley/issues/27)) anchors automatically. -- macOS support is written but has not been run or qualified, and CI runs on Linux only ([#24](https://github.com/jcrenshaw-dev/baley/issues/24)). +- Installs use unsigned development artifacts. `install.sh` and `baley update` check SHA-256 against an unsigned manifest, and signature verification comes before any release ([#14](https://github.com/crenshawdev/baley/issues/14)). The design signs each release's manifests with an OpenSSH Ed25519 key that stays on the maintainer's machine, and both will verify that signature against the public key they carry. +- The parked review engine is still compiled in. No command or tool reaches it, but it reads environment keys and `providers.env` and can call providers. Build 9 ([#30](https://github.com/crenshawdev/baley/issues/30)) deletes it. +- `baley models update` prints a fetch only for an acknowledged provider. The same check before a review, including for hand-edited settings, comes with Build 4 ([#25](https://github.com/crenshawdev/baley/issues/25)). +- Outside reviews of plans and diffs are not built yet. Build 4 ([#25](https://github.com/crenshawdev/baley/issues/25)) adds them, along with phase planning and plan approval. +- A plan's file lease is not yet enforced when a task closes. Build 5 ([#26](https://github.com/crenshawdev/baley/issues/26)) enforces it. +- Anchors are pushed only when you run `baley anchor`. Build 6 ([#27](https://github.com/crenshawdev/baley/issues/27)) anchors automatically. +- macOS support is written but has not been run or qualified, and CI runs on Linux only ([#24](https://github.com/crenshawdev/baley/issues/24)). The [roadmap](docs/roadmap.md) carries everything else, build by build. @@ -61,11 +61,11 @@ The details, including what install writes and when it refuses, are in [docs/ins Keys live in your environment, where every program Claude Code starts can see them, agents and subagents included. Nothing scrubs a key a command prints. Your code goes to the chosen provider under its terms. -A fresh install enables no outside provider. `baley config interview` adds one only after you accept that warning, and Build 4 ([#25](https://github.com/jcrenshaw-dev/baley/issues/25)) adds the same check before every review, including for hand-edited settings. The details are in [docs/outside-reviews.md](docs/outside-reviews.md). +A fresh install enables no outside provider. `baley config interview` adds one only after you accept that warning, and Build 4 ([#25](https://github.com/crenshawdev/baley/issues/25)) adds the same check before every review, including for hand-edited settings. The details are in [docs/outside-reviews.md](docs/outside-reviews.md). ## How it is designed and built -- **What is being built:** the [milestones](https://github.com/jcrenshaw-dev/baley/milestones), each a theme of the design, and the build issues under them. +- **What is being built:** the [milestones](https://github.com/crenshawdev/baley/milestones), each a theme of the design, and the build issues under them. - **In what order:** the [roadmap](docs/roadmap.md), from the build under way to the first release, updated by each build pull request. - **How it is designed:** every significant change starts as a design document with requirements and diagrams, and each architectural decision is kept as a decision record. See [Baley: product requirements](docs/design/prd/baley.md), [0002: System design](docs/design/0002-system-design.md), [the design process](docs/design/README.md), [design documents](docs/design/), [decision records](docs/adr/) and [the glossary](CONTEXT.md), which gives one term for each concept. - **How it is built:** every change reaches `main` through a pull request with passing required checks (`cargo-test`, `clippy`, `cargo-deny`, `fmt`). diff --git a/crates/baley-core/Cargo.toml b/crates/baley-core/Cargo.toml index be02da52..5d9181a2 100644 --- a/crates/baley-core/Cargo.toml +++ b/crates/baley-core/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2024" license = "MIT" description = "Baley's domain: views, projectors and the rules that decide what may be recorded, behind the storage port." -repository = "https://github.com/jcrenshaw-dev/baley" +repository = "https://github.com/crenshawdev/baley" rust-version = "1.98" publish = false diff --git a/crates/baley-store-sqlite/Cargo.toml b/crates/baley-store-sqlite/Cargo.toml index 27927656..25d71398 100644 --- a/crates/baley-store-sqlite/Cargo.toml +++ b/crates/baley-store-sqlite/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2024" license = "MIT" description = "The SQLite adapter of the Baley storage port." -repository = "https://github.com/jcrenshaw-dev/baley" +repository = "https://github.com/crenshawdev/baley" rust-version = "1.98" publish = false diff --git a/crates/baley-store/Cargo.toml b/crates/baley-store/Cargo.toml index a8310f34..d44aab50 100644 --- a/crates/baley-store/Cargo.toml +++ b/crates/baley-store/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2024" license = "MIT" description = "The storage port of the Baley evidence ledger: the event and its hash chain, the traits an engine adapter implements, and the conformance suite every adapter passes." -repository = "https://github.com/jcrenshaw-dev/baley" +repository = "https://github.com/crenshawdev/baley" rust-version = "1.98" publish = false diff --git a/crates/baley/Cargo.toml b/crates/baley/Cargo.toml index 986bb7d9..01e422a8 100644 --- a/crates/baley/Cargo.toml +++ b/crates/baley/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2024" license = "MIT" description = "Baley, the owner's control plane for AI-assisted engineering: the binary that serves MCP, guards tool calls and keeps the evidence ledger." -repository = "https://github.com/jcrenshaw-dev/baley" +repository = "https://github.com/crenshawdev/baley" rust-version = "1.98" publish = false diff --git a/docs/adr/0027-vendor-folders-and-plain-keys.md b/docs/adr/0027-vendor-folders-and-plain-keys.md index 3764e601..80216d11 100644 --- a/docs/adr/0027-vendor-folders-and-plain-keys.md +++ b/docs/adr/0027-vendor-folders-and-plain-keys.md @@ -91,8 +91,8 @@ Chosen options: **2, 6 and 9**, and the libraries below. ### Follow-up -- Build 2 ([#23](https://github.com/jcrenshaw-dev/baley/issues/23)) builds the folders, the `keys.env` reader with its ownership, mode and duplicate-name checks, `baley exec --key`, detection with `reqwest`, and the open checks of EVD-R22. -- Build 3 ([#24](https://github.com/jcrenshaw-dev/baley/issues/24)) extends the host sandbox and the guard to the whole config folder: writes denied on both hosts, reads denied on Claude Code. +- Build 2 ([#23](https://github.com/crenshawdev/baley/issues/23)) builds the folders, the `keys.env` reader with its ownership, mode and duplicate-name checks, `baley exec --key`, detection with `reqwest`, and the open checks of EVD-R22. +- Build 3 ([#24](https://github.com/crenshawdev/baley/issues/24)) extends the host sandbox and the guard to the whole config folder: writes denied on both hosts, reads denied on Claude Code. ## Options in detail diff --git a/docs/adr/0028-one-http-stack.md b/docs/adr/0028-one-http-stack.md index 40745383..56a440e8 100644 --- a/docs/adr/0028-one-http-stack.md +++ b/docs/adr/0028-one-http-stack.md @@ -11,7 +11,7 @@ ## Context and problem -Baley speaks HTTP in two directions. It calls each provider's model-list endpoint for detection (design 0003, CFG-R20), and the shared server accepts MCP over HTTP when it runs as a background service (ADR 0011, SYS-R2, HST-R1). Build 2 ([#23](https://github.com/jcrenshaw-dev/baley/issues/23)) makes the calls; Build 3 ([#24](https://github.com/jcrenshaw-dev/baley/issues/24)) builds the server. +Baley speaks HTTP in two directions. It calls each provider's model-list endpoint for detection (design 0003, CFG-R20), and the shared server accepts MCP over HTTP when it runs as a background service (ADR 0011, SYS-R2, HST-R1). Build 2 ([#23](https://github.com/crenshawdev/baley/issues/23)) makes the calls; Build 3 ([#24](https://github.com/crenshawdev/baley/issues/24)) builds the server. `reqwest` 0.12 is already a direct dependency, built on hyper 1 and tokio, with rustls and the ring provider. tokio already runs the server. The MCP server is built with `rmcp` 3.2.0, whose streamable HTTP server transport serves MCP over HTTP and needs an HTTP server to host it. `rmcp` tests that transport on axum 0.8: axum 0.8 is a dev-dependency in rmcp 3.2.0's `Cargo.toml`. New MCP protocol revisions reach Baley through `rmcp`, so on the host `rmcp` tests they arrive already exercised. diff --git a/docs/adr/0029-a-host-may-offer-more.md b/docs/adr/0029-a-host-may-offer-more.md index 5e07dc50..3a060eb9 100644 --- a/docs/adr/0029-a-host-may-offer-more.md +++ b/docs/adr/0029-a-host-may-offer-more.md @@ -49,7 +49,7 @@ Chosen option: **2**. The host that offers less still sets the floor, and the wh ### Follow-up -- Build 3 ([#24](https://github.com/jcrenshaw-dev/baley/issues/24)), which builds the host adapters, adds the declared additions to each adapter beside the mechanisms it already chooses (design 0012, HST-R4), with `baley doctor` reporting them. The seam is the host adapter. +- Build 3 ([#24](https://github.com/crenshawdev/baley/issues/24)), which builds the host adapters, adds the declared additions to each adapter beside the mechanisms it already chooses (design 0012, HST-R4), with `baley doctor` reporting them. The seam is the host adapter. - Routing a stage to another family's model, program or API is designed in designs 0003, 0008 and 0012 in its own change. ## Options in detail diff --git a/docs/adr/0030-question-rounds.md b/docs/adr/0030-question-rounds.md index 91e7883a..af18c311 100644 --- a/docs/adr/0030-question-rounds.md +++ b/docs/adr/0030-question-rounds.md @@ -59,8 +59,8 @@ Baley works out each round from the dependencies: the open questions whose depen ### Follow-up -- Build 4 ([#25](https://github.com/jcrenshaw-dev/baley/issues/25)) builds question sets, rounds, answers and deferrals, the `questions` view, the refusals, the analyzer's two work orders and the plan's `questions` field, as PLN-R6, PLN-R11 and PLN-R23 to PLN-R27 of design 0005. The seams are the refinement and plan submit operations of 0005; the inherited `assumptions` field (`crates/baley/src/context/model.rs:44`) and the prose ambiguity rule in the compiled derivation text (`crates/baley/src/plan/instructions.rs:124`) are removed there. -- Build 7 ([#28](https://github.com/jcrenshaw-dev/baley/issues/28)) adds the next-action and progress rules that name the current round and the waiting questions (design 0013, NXT-R3, NXT-R6). +- Build 4 ([#25](https://github.com/crenshawdev/baley/issues/25)) builds question sets, rounds, answers and deferrals, the `questions` view, the refusals, the analyzer's two work orders and the plan's `questions` field, as PLN-R6, PLN-R11 and PLN-R23 to PLN-R27 of design 0005. The seams are the refinement and plan submit operations of 0005; the inherited `assumptions` field (`crates/baley/src/context/model.rs:44`) and the prose ambiguity rule in the compiled derivation text (`crates/baley/src/plan/instructions.rs:124`) are removed there. +- Build 7 ([#28](https://github.com/crenshawdev/baley/issues/28)) adds the next-action and progress rules that name the current round and the waiting questions (design 0013, NXT-R3, NXT-R6). - How each host puts a round's questions to the owner and returns the answers is decided in [design 0012](../design/0012-host-interface.md), an open question of 0005. ## Options in detail diff --git a/docs/adr/0031-one-term-per-concept.md b/docs/adr/0031-one-term-per-concept.md index ae0c65b7..4304d9a1 100644 --- a/docs/adr/0031-one-term-per-concept.md +++ b/docs/adr/0031-one-term-per-concept.md @@ -60,11 +60,11 @@ Story replaces requirement for what the owner declares on the roadmap: the five ### Follow-up -- Build 4 ([#25](https://github.com/jcrenshaw-dev/baley/issues/25)) builds the story events, commands, codes and fields of design 0004, the capacity setting, the planning codes and the `phase_plan` view of design 0005, under the new names. -- Build 5 ([#26](https://github.com/jcrenshaw-dev/baley/issues/26)) builds `phase close` and `phase.retrospective` with phase completion (designs 0005 and 0007). -- Build 6 ([#27](https://github.com/jcrenshaw-dev/baley/issues/27)) builds the integration branch `baley/phase--` (design 0011, LND-R1). -- Build 7 ([#28](https://github.com/jcrenshaw-dev/baley/issues/28)) builds next action and progress over `phase_plan`, with `--phase ` (design 0013). -- Build 8 ([#29](https://github.com/jcrenshaw-dev/baley/issues/29)) builds capture promotion through `story declare`, recording the `story` field of `capture.promoted` (design 0014, SUP-R2). +- Build 4 ([#25](https://github.com/crenshawdev/baley/issues/25)) builds the story events, commands, codes and fields of design 0004, the capacity setting, the planning codes and the `phase_plan` view of design 0005, under the new names. +- Build 5 ([#26](https://github.com/crenshawdev/baley/issues/26)) builds `phase close` and `phase.retrospective` with phase completion (designs 0005 and 0007). +- Build 6 ([#27](https://github.com/crenshawdev/baley/issues/27)) builds the integration branch `baley/phase--` (design 0011, LND-R1). +- Build 7 ([#28](https://github.com/crenshawdev/baley/issues/28)) builds next action and progress over `phase_plan`, with `--phase ` (design 0013). +- Build 8 ([#29](https://github.com/crenshawdev/baley/issues/29)) builds capture promotion through `story declare`, recording the `story` field of `capture.promoted` (design 0014, SUP-R2). ## Options in detail diff --git a/docs/adr/0033-host-security-bar.md b/docs/adr/0033-host-security-bar.md index 32e01448..0f4126fe 100644 --- a/docs/adr/0033-host-security-bar.md +++ b/docs/adr/0033-host-security-bar.md @@ -81,7 +81,7 @@ Adding a host takes a new ADR that cites the matrix run, and an adapter for that ### Follow-up -- The Build 3 ([#24](https://github.com/jcrenshaw-dev/baley/issues/24)) task that lands this decision removes the `codex` value of `Host`, its catalog row and the help text naming it, and rewrites designs 0001, 0002, 0003, 0006, 0010 and 0012, the PRD, the roadmap, the C4 model, the glossary, the README and the bug report template to match. The inherited engine's Codex transcript reader goes in the same change; Build 9 removes the rest of that engine. +- The Build 3 ([#24](https://github.com/crenshawdev/baley/issues/24)) task that lands this decision removes the `codex` value of `Host`, its catalog row and the help text naming it, and rewrites designs 0001, 0002, 0003, 0006, 0010 and 0012, the PRD, the roadmap, the C4 model, the glossary, the README and the bug report template to match. The inherited engine's Codex transcript reader goes in the same change; Build 9 removes the rest of that engine. - Build 3 refuses an unknown host (HST-R4), configures Claude Code's sandbox and its `Read` and `Edit` deny rules to deny agents reads and writes of the home and the config folder, has the guard hook cover every tool that runs a shell command and the built-in tools that read files, and extends the Claude Code probe to the config folder and to the built-in file tools. ## Options in detail diff --git a/docs/adr/0034-one-server-per-session.md b/docs/adr/0034-one-server-per-session.md index 978a79c6..3d8f3a44 100644 --- a/docs/adr/0034-one-server-per-session.md +++ b/docs/adr/0034-one-server-per-session.md @@ -68,7 +68,7 @@ Baley speaks MCP over stdio only in this release, so axum is not added. Outgoing ### Follow-up -- Build 3 ([#24](https://github.com/jcrenshaw-dev/baley/issues/24)) rewrites SYS-R1, SYS-R2, SYS-R5 and SYS-R6 in design 0002, and HST-R1 and the install record in design 0012, and withdraws SYS-R3, SYS-R4, HST-R2 and HST-R3. The Processes and concurrency section of design 0001 is rewritten to match, in the change that builds the server. +- Build 3 ([#24](https://github.com/crenshawdev/baley/issues/24)) rewrites SYS-R1, SYS-R2, SYS-R5 and SYS-R6 in design 0002, and HST-R1 and the install record in design 0012, and withdraws SYS-R3, SYS-R4, HST-R2 and HST-R3. The Processes and concurrency section of design 0001 is rewritten to match, in the change that builds the server. - Build 3's acceptance includes two live Claude Code sessions writing one project at once, with the record checked afterwards. - A shared server, or HTTP, comes back only with a new ADR, if a worker outside the session or a host that cannot start a stdio server needs one. diff --git a/docs/adr/0037-plan-recheck-scope.md b/docs/adr/0037-plan-recheck-scope.md index 6fbe714d..8d5cd18d 100644 --- a/docs/adr/0037-plan-recheck-scope.md +++ b/docs/adr/0037-plan-recheck-scope.md @@ -11,7 +11,7 @@ ## Context and problem -[PLN-R16](../design/0005-context-plans-and-acceptance.md#3-requirements) allows one re-check after a planner revision. Its earlier definition did not specify the material that re-check reads. Checking only prior blockers leaves changes outside those blockers without another check. [Issue #134](https://github.com/jcrenshaw-dev/baley/issues/134) proposes full and diff scopes. +[PLN-R16](../design/0005-context-plans-and-acceptance.md#3-requirements) allows one re-check after a planner revision. Its earlier definition did not specify the material that re-check reads. Checking only prior blockers leaves changes outside those blockers without another check. [Issue #134](https://github.com/crenshawdev/baley/issues/134) proposes full and diff scopes. [REV-R10](../design/0008-review.md#3-requirements) grants one further round after a fix to a triggered review. This decision supplies the reading scope left unspecified by [ADR 0019](0019-reviews-adjudicated-and-ruled.md), while preserving its authorization and two-round limit. diff --git a/docs/adr/0038-installer-and-opt-in-updates.md b/docs/adr/0038-installer-and-opt-in-updates.md index 1f2bd3c6..f1c49510 100644 --- a/docs/adr/0038-installer-and-opt-in-updates.md +++ b/docs/adr/0038-installer-and-opt-in-updates.md @@ -47,7 +47,7 @@ Chosen option: **1**. The owner runs one installer command. The script downloads **Updates.** Update policy option **2** is chosen: automatic updates exist and are off by default. Once enabled, `baley serve` starts a detached process that checks at most once a day across sessions. Neither that process nor its network waits run inside the guard hook or its budget. A download's signature and checksum are verified before a new version is staged beside the old one behind the stable path. New sessions start the new server and load its stubs; existing sessions keep their server and loaded instruction version, and the old binary remains available to them. The hook follows the stable path, so its next call runs the newly activated binary, even beside an older running server. A newer hook must work with that server and its ledger state. A manual `baley update` is always available and uses the same verification and activation rules. The updater uses ADR 0028's `reqwest` HTTP client to contact the release source; it sends no project content or provider credential. -Every released download must be verified against a signed checksum manifest. The release design [#14](https://github.com/jcrenshaw-dev/baley/issues/14) owns the signature format, trust root and both verifiers: the installer's verifier available before Baley exists, and the updater's verifier. It must name any new verification dependency before adding it. T14 and T17 build and qualify delivery with unsigned development artifacts only. T14 leaves a named `verify_download` seam between download and staging in both delivery paths for #14 to fill. No release exists before #14 supplies and qualifies verification; development qualification does not establish authenticity. +Every released download must be verified against a signed checksum manifest. The release design [#14](https://github.com/crenshawdev/baley/issues/14) owns the signature format, trust root and both verifiers: the installer's verifier available before Baley exists, and the updater's verifier. It must name any new verification dependency before adding it. T14 and T17 build and qualify delivery with unsigned development artifacts only. T14 leaves a named `verify_download` seam between download and staging in both delivery paths for #14 to fill. No release exists before #14 supplies and qualifies verification; development qualification does not establish authenticity. ## Consequences @@ -67,8 +67,8 @@ Every released download must be verified against a signed checksum manifest. The ### Follow-up -- Build 3 T14 to T17 ([#24](https://github.com/jcrenshaw-dev/baley/issues/24)) implement delivery, artifact application, setup and installed qualification under HST-R12 and HST-R17. They are no longer held for a delivery choice. -- The release design ([#14](https://github.com/jcrenshaw-dev/baley/issues/14)) owns publication, the signature format, trust root and both verifier implementations and their qualification. It fills T14's `verify_download` seam between download and staging before any release. T14 and T17 use unsigned development artifacts only until that work is complete. +- Build 3 T14 to T17 ([#24](https://github.com/crenshawdev/baley/issues/24)) implement delivery, artifact application, setup and installed qualification under HST-R12 and HST-R17. They are no longer held for a delivery choice. +- The release design ([#14](https://github.com/crenshawdev/baley/issues/14)) owns publication, the signature format, trust root and both verifier implementations and their qualification. It fills T14's `verify_download` seam between download and staging before any release. T14 and T17 use unsigned development artifacts only until that work is complete. - T14 implements compatibility of a newer stable-path hook with an older running server and its ledger state; T17 qualifies it. T15 preserves the new-session boundary for loading stubs. T14 defines the staged-version folder and adds it to the protected paths; T11 supplies the installed executable path to that projection. ## Options in detail diff --git a/docs/adr/0039-session-owned-provider-credentials.md b/docs/adr/0039-session-owned-provider-credentials.md index 2ea6759b..7eca5f3d 100644 --- a/docs/adr/0039-session-owned-provider-credentials.md +++ b/docs/adr/0039-session-owned-provider-credentials.md @@ -61,7 +61,7 @@ Chosen option: **1**. Remove `keys.env` and the `baley exec --key` credential wr ### Follow-up -- Build 4 ([#25](https://github.com/jcrenshaw-dev/baley/issues/25)) removes the built `keys.env` reader (`crates/baley/src/keys.rs`), `baley exec --key` (`crates/baley/src/exec.rs`) and HTTPS lister and key lookup (`crates/baley/src/detection/`). It also switches `baley init` from HTTPS detection to catalog seeding. +- Build 4 ([#25](https://github.com/crenshawdev/baley/issues/25)) removes the built `keys.env` reader (`crates/baley/src/keys.rs`), `baley exec --key` (`crates/baley/src/exec.rs`) and HTTPS lister and key lookup (`crates/baley/src/detection/`). It also switches `baley init` from HTTPS detection to catalog seeding. - Build 3 T16 owns provider selection, the warning and typed ledger acknowledgement in the interview, including the `review.reviewers` reader and writer that setup needs. Its final summary lists every file to be written; `yes` records acknowledgement, writes API-host allowances through the installation writer, writes the global reviewer list and then runs the settings `config set`. A failure stops at that step, reports completed writes and permits a safe rerun ([0003 section 5](../design/0003-configuration-and-routing.md#5-commands-and-operations)). Build 4 owns `baley models import`, fetch work orders and their session return, and acknowledgement checks before review or list-fetch work orders. The pure catalog code in `crates/baley-core/src/catalog/detection/` stays. - Build 4's review work orders and return parser follow REV-R4. Build 3's installer follows HST-R17. Build 4 owns removal of the built credential paths alongside the session fetch-and-return path. diff --git a/docs/adr/0040-guard-commit-checkout.md b/docs/adr/0040-guard-commit-checkout.md index f1ea7570..03ac1afc 100644 --- a/docs/adr/0040-guard-commit-checkout.md +++ b/docs/adr/0040-guard-commit-checkout.md @@ -11,7 +11,7 @@ ## Context and problem -The guard gets policy from the session project at `CLAUDE_PROJECT_DIR`. A shell command can commit in another checkout through git's `-C` option. Reading the branch at the hook's working directory can then pass a commit to a protected branch or deny one on an unprotected branch ([issue 212](https://github.com/jcrenshaw-dev/baley/issues/212)). Some commands change directory or git environment before the commit, so their target cannot be established by the guard's bounded scan. +The guard gets policy from the session project at `CLAUDE_PROJECT_DIR`. A shell command can commit in another checkout through git's `-C` option. Reading the branch at the hook's working directory can then pass a commit to a protected branch or deny one on an unprotected branch ([issue 212](https://github.com/crenshawdev/baley/issues/212)). Some commands change directory or git environment before the commit, so their target cannot be established by the guard's bounded scan. [ADR 0036](0036-per-user-guard-records.md) keys remembered denials by the session project's canonical root, the canonical checkout root containing the hook's working directory, and the host. Once the branch comes from the commit's target, that checkout component must name the same target. Otherwise torn settings could apply a denial remembered for another checkout. diff --git a/docs/adr/0042-mocked-boundary-integration-checks.md b/docs/adr/0042-mocked-boundary-integration-checks.md index d42fc205..3bb75dfa 100644 --- a/docs/adr/0042-mocked-boundary-integration-checks.md +++ b/docs/adr/0042-mocked-boundary-integration-checks.md @@ -11,7 +11,7 @@ ## Context and problem -The planner derives tests for the projects Baley manages under rules that allow only unit tests: one behavior of one unit, at most one simulated seam, no program started ([PRD Testing Decisions](../design/prd/baley.md#testing-decisions), [0002](../design/0002-system-design.md) section 10, [0005](../design/0005-context-plans-and-acceptance.md) section 10). A truth whose outcome depends on several of the project's units working together has no check that can prove it, so the served rules send it to a pending observation, and the owner has to look at the running program to settle it ([VER-R9](../design/0007-verification.md#3-requirements)). Unit checks leave the wiring between units unproven, and each such observation costs the owner time at verification ([issue 229](https://github.com/jcrenshaw-dev/baley/issues/229)). +The planner derives tests for the projects Baley manages under rules that allow only unit tests: one behavior of one unit, at most one simulated seam, no program started ([PRD Testing Decisions](../design/prd/baley.md#testing-decisions), [0002](../design/0002-system-design.md) section 10, [0005](../design/0005-context-plans-and-acceptance.md) section 10). A truth whose outcome depends on several of the project's units working together has no check that can prove it, so the served rules send it to a pending observation, and the owner has to look at the running program to settle it ([VER-R9](../design/0007-verification.md#3-requirements)). Unit checks leave the wiring between units unproven, and each such observation costs the owner time at verification ([issue 229](https://github.com/crenshawdev/baley/issues/229)). The unit-only rule exists so that a test gives the same result on any machine the project builds on. A test that needs a real database, a network, a host program or pre-existing machine state does not. An integration test whose outside boundaries are all mocked keeps that property: the project's own units run together for real, and each database, network, third-party API, clock, filesystem or host program it would reach is replaced by a mock behind an interface the project owns. diff --git a/docs/design/0003-configuration-and-routing.md b/docs/design/0003-configuration-and-routing.md index 5bfd42c3..d68e3483 100644 --- a/docs/design/0003-configuration-and-routing.md +++ b/docs/design/0003-configuration-and-routing.md @@ -3,7 +3,7 @@ | | | |---|---| | Status | Accepted | -| Design issue | none; build issue [#23](https://github.com/jcrenshaw-dev/baley/issues/23) | +| Design issue | none; build issue [#23](https://github.com/crenshawdev/baley/issues/23) | | Requirement prefix | CFG | | Applies | [0002: System design](0002-system-design.md) | | Related | ADRs: [0003](../adr/0003-per-user-database.md), [0004](../adr/0004-project-identity.md), [0009](../adr/0009-served-instructions.md), [0015](../adr/0015-settings-in-toml.md), [0016](../adr/0016-key-store.md), [0027](../adr/0027-vendor-folders-and-plain-keys.md), [0028](../adr/0028-one-http-stack.md), [0032](../adr/0032-gemini-is-not-a-provider.md), [0033](../adr/0033-host-security-bar.md), [0039](../adr/0039-session-owned-provider-credentials.md) · C4 view: configuration | diff --git a/docs/design/0004-starting-a-project-and-changing-scope.md b/docs/design/0004-starting-a-project-and-changing-scope.md index 0ff08e4d..fac381d3 100644 --- a/docs/design/0004-starting-a-project-and-changing-scope.md +++ b/docs/design/0004-starting-a-project-and-changing-scope.md @@ -3,7 +3,7 @@ | | | |---|---| | Status | Accepted | -| Design issue | [#46](https://github.com/jcrenshaw-dev/baley/issues/46), [#45](https://github.com/jcrenshaw-dev/baley/issues/45); build issues [#23](https://github.com/jcrenshaw-dev/baley/issues/23), [#25](https://github.com/jcrenshaw-dev/baley/issues/25) | +| Design issue | [#46](https://github.com/crenshawdev/baley/issues/46), [#45](https://github.com/crenshawdev/baley/issues/45); build issues [#23](https://github.com/crenshawdev/baley/issues/23), [#25](https://github.com/crenshawdev/baley/issues/25) | | Requirement prefix | PRJ | | Applies | [0002: System design](0002-system-design.md) | | Related | ADRs: [0004](../adr/0004-project-identity.md), [0006](../adr/0006-no-markdown-records.md), [0007](../adr/0007-forge-anchors.md), [0009](../adr/0009-served-instructions.md), [0017](../adr/0017-stories-and-sprints.md), [0031](../adr/0031-one-term-per-concept.md), [0050](../adr/0050-phase-plan-commits-stories-through-an-approved-edit.md) · C4 view: components ([0002](0002-system-design.md) Figure 4) | diff --git a/docs/design/0005-context-plans-and-acceptance.md b/docs/design/0005-context-plans-and-acceptance.md index ae4f55af..e6016502 100644 --- a/docs/design/0005-context-plans-and-acceptance.md +++ b/docs/design/0005-context-plans-and-acceptance.md @@ -3,7 +3,7 @@ | | | |---|---| | Status | Accepted | -| Design issue | [#134](https://github.com/jcrenshaw-dev/baley/issues/134); build issue [#25](https://github.com/jcrenshaw-dev/baley/issues/25) | +| Design issue | [#134](https://github.com/crenshawdev/baley/issues/134); build issue [#25](https://github.com/crenshawdev/baley/issues/25) | | Requirement prefix | PLN | | Applies | [0002: System design](0002-system-design.md) | | Related | ADRs: [0006](../adr/0006-no-markdown-records.md), [0009](../adr/0009-served-instructions.md), [0017](../adr/0017-stories-and-sprints.md), [0030](../adr/0030-question-rounds.md), [0031](../adr/0031-one-term-per-concept.md), [0037](../adr/0037-plan-recheck-scope.md), [0042](../adr/0042-mocked-boundary-integration-checks.md), [0050](../adr/0050-phase-plan-commits-stories-through-an-approved-edit.md) · C4 view: components ([0002](0002-system-design.md) Figure 4) | diff --git a/docs/design/0006-execution.md b/docs/design/0006-execution.md index bf5b7944..6c918b89 100644 --- a/docs/design/0006-execution.md +++ b/docs/design/0006-execution.md @@ -3,7 +3,7 @@ | | | |---|---| | Status | Accepted | -| Design issue | [#51](https://github.com/jcrenshaw-dev/baley/issues/51), [#55](https://github.com/jcrenshaw-dev/baley/issues/55); build issues [#25](https://github.com/jcrenshaw-dev/baley/issues/25), [#40](https://github.com/jcrenshaw-dev/baley/issues/40) | +| Design issue | [#51](https://github.com/crenshawdev/baley/issues/51), [#55](https://github.com/crenshawdev/baley/issues/55); build issues [#25](https://github.com/crenshawdev/baley/issues/25), [#40](https://github.com/crenshawdev/baley/issues/40) | | Requirement prefix | EXE | | Applies | [0002: System design](0002-system-design.md) | | Related | ADRs: [0008](../adr/0008-host-sandbox-isolation.md), [0009](../adr/0009-served-instructions.md), [0018](../adr/0018-lease-enforced-at-close.md), [0033](../adr/0033-host-security-bar.md), [0042](../adr/0042-mocked-boundary-integration-checks.md) · C4 view: components ([0002](0002-system-design.md) Figure 4) | diff --git a/docs/design/0007-verification.md b/docs/design/0007-verification.md index ae1c2165..4d34acc6 100644 --- a/docs/design/0007-verification.md +++ b/docs/design/0007-verification.md @@ -3,7 +3,7 @@ | | | |---|---| | Status | Accepted | -| Design issue | none; build issues [#25](https://github.com/jcrenshaw-dev/baley/issues/25), [#93](https://github.com/jcrenshaw-dev/baley/issues/93) | +| Design issue | none; build issues [#25](https://github.com/crenshawdev/baley/issues/25), [#93](https://github.com/crenshawdev/baley/issues/93) | | Requirement prefix | VER | | Applies | [0002: System design](0002-system-design.md) | | Related | ADRs: [0006](../adr/0006-no-markdown-records.md), [0009](../adr/0009-served-instructions.md), [0042](../adr/0042-mocked-boundary-integration-checks.md) · C4 view: components ([0002](0002-system-design.md) Figure 4) | diff --git a/docs/design/0008-review.md b/docs/design/0008-review.md index e064d4d7..ce015236 100644 --- a/docs/design/0008-review.md +++ b/docs/design/0008-review.md @@ -3,7 +3,7 @@ | | | |---|---| | Status | Accepted | -| Design issue | [#48](https://github.com/jcrenshaw-dev/baley/issues/48); build issue [#26](https://github.com/jcrenshaw-dev/baley/issues/26) | +| Design issue | [#48](https://github.com/crenshawdev/baley/issues/48); build issue [#26](https://github.com/crenshawdev/baley/issues/26) | | Requirement prefix | REV | | Applies | [0002: System design](0002-system-design.md) | | Related | ADRs: [0007](../adr/0007-forge-anchors.md), [0009](../adr/0009-served-instructions.md), [0013](../adr/0013-host-session-calls-outside-models.md), [0019](../adr/0019-reviews-adjudicated-and-ruled.md), [0027](../adr/0027-vendor-folders-and-plain-keys.md), [0037](../adr/0037-plan-recheck-scope.md), [0039](../adr/0039-session-owned-provider-credentials.md) · C4 view: components ([0002](0002-system-design.md) Figure 4) | diff --git a/docs/design/0009-risk.md b/docs/design/0009-risk.md index 0bae5557..3a2a946b 100644 --- a/docs/design/0009-risk.md +++ b/docs/design/0009-risk.md @@ -3,7 +3,7 @@ | | | |---|---| | Status | Accepted | -| Design issue | none; build issue [#26](https://github.com/jcrenshaw-dev/baley/issues/26) | +| Design issue | none; build issue [#26](https://github.com/crenshawdev/baley/issues/26) | | Requirement prefix | RSK | | Applies | [0002: System design](0002-system-design.md) | | Related | ADRs: [0009](../adr/0009-served-instructions.md) · C4 view: components ([0002](0002-system-design.md) Figure 4) | diff --git a/docs/design/0010-guard.md b/docs/design/0010-guard.md index 31716212..0fc13edb 100644 --- a/docs/design/0010-guard.md +++ b/docs/design/0010-guard.md @@ -3,7 +3,7 @@ | | | |---|---| | Status | Accepted | -| Design issue | none; build issue [#24](https://github.com/jcrenshaw-dev/baley/issues/24) | +| Design issue | none; build issue [#24](https://github.com/crenshawdev/baley/issues/24) | | Requirement prefix | GRD | | Applies | [0002: System design](0002-system-design.md) | | Related | ADRs: [0008](../adr/0008-host-sandbox-isolation.md), [0009](../adr/0009-served-instructions.md), [0027](../adr/0027-vendor-folders-and-plain-keys.md), [0033](../adr/0033-host-security-bar.md), [0036](../adr/0036-per-user-guard-records.md), [0039](../adr/0039-session-owned-provider-credentials.md), [0040](../adr/0040-guard-commit-checkout.md) · C4 view: components ([0002](0002-system-design.md) Figure 4) | diff --git a/docs/design/0011-milestones-landing-undo-pause.md b/docs/design/0011-milestones-landing-undo-pause.md index b43a59a7..7c7b625b 100644 --- a/docs/design/0011-milestones-landing-undo-pause.md +++ b/docs/design/0011-milestones-landing-undo-pause.md @@ -3,7 +3,7 @@ | | | |---|---| | Status | Accepted | -| Design issue | none; build issue [#27](https://github.com/jcrenshaw-dev/baley/issues/27) | +| Design issue | none; build issue [#27](https://github.com/crenshawdev/baley/issues/27) | | Requirement prefix | LND | | Applies | [0002: System design](0002-system-design.md) | | Related | ADRs: [0007](../adr/0007-forge-anchors.md), [0004](../adr/0004-project-identity.md), [0031](../adr/0031-one-term-per-concept.md) · C4 view: components ([0002](0002-system-design.md) Figure 4) | @@ -21,7 +21,7 @@ This area decides how finished work leaves the checkout and how work in flight i - pause and resume: putting work down with its state preserved, and an owner's stop; - the forge adapter every forge step goes through, and the chain anchors it pushes. -It does not decide when a phase is complete ([0007](0007-verification.md)); what the guard does with a push an agent attempts ([0010](0010-guard.md)); reviews a landing waits on ([0008](0008-review.md)); the forge mirror of stories and phases (`Backlog`, [0005](0005-context-plans-and-acceptance.md) PLN-R22); or how Baley itself is released ([#14](https://github.com/jcrenshaw-dev/baley/issues/14), its own design). +It does not decide when a phase is complete ([0007](0007-verification.md)); what the guard does with a push an agent attempts ([0010](0010-guard.md)); reviews a landing waits on ([0008](0008-review.md)); the forge mirror of stories and phases (`Backlog`, [0005](0005-context-plans-and-acceptance.md) PLN-R22); or how Baley itself is released ([#14](https://github.com/crenshawdev/baley/issues/14), its own design). Hand-offs: 0007 completes phases; this area lands them. 0004 withdraws a started phase only after this area's `phase.undone`. 0004's project start offers the forge creation this area performs. 0008's filing and 0009's anchors go through this area's forge adapter. diff --git a/docs/design/0012-host-interface.md b/docs/design/0012-host-interface.md index 4db91f24..39267f3a 100644 --- a/docs/design/0012-host-interface.md +++ b/docs/design/0012-host-interface.md @@ -3,7 +3,7 @@ | | | |---|---| | Status | Accepted | -| Design issue | none; build issues [#25](https://github.com/jcrenshaw-dev/baley/issues/25), [#127](https://github.com/jcrenshaw-dev/baley/issues/127), [#14](https://github.com/jcrenshaw-dev/baley/issues/14) (install) | +| Design issue | none; build issues [#25](https://github.com/crenshawdev/baley/issues/25), [#127](https://github.com/crenshawdev/baley/issues/127), [#14](https://github.com/crenshawdev/baley/issues/14) (install) | | Requirement prefix | HST | | Applies | [0002: System design](0002-system-design.md) | | Related | ADRs: [0008](../adr/0008-host-sandbox-isolation.md), [0009](../adr/0009-served-instructions.md), [0011](../adr/0011-one-shared-server.md), [0012](../adr/0012-optimistic-concurrency.md), [0027](../adr/0027-vendor-folders-and-plain-keys.md), [0028](../adr/0028-one-http-stack.md), [0033](../adr/0033-host-security-bar.md), [0034](../adr/0034-one-server-per-session.md), [0038](../adr/0038-installer-and-opt-in-updates.md), [0039](../adr/0039-session-owned-provider-credentials.md), [0048](../adr/0048-port-what-cadence-hands-agents.md), [0049](../adr/0049-rules-added-to-ported-texts.md) · C4 view: components ([0002](0002-system-design.md) Figure 4) | @@ -22,7 +22,7 @@ This area decides every way a host, a worker or the owner reaches Baley, and how - the command line; - install, updates and doctor: delivery, registration, hook, sandbox and stubs, on Claude Code. -It does not decide the content of any instruction (each area owns its own), the settings ([0003](0003-configuration-and-routing.md)), the guard's decisions ([0010](0010-guard.md)), or how Baley's release artifacts are built and published ([#14](https://github.com/jcrenshaw-dev/baley/issues/14)). +It does not decide the content of any instruction (each area owns its own), the settings ([0003](0003-configuration-and-routing.md)), the guard's decisions ([0010](0010-guard.md)), or how Baley's release artifacts are built and published ([#14](https://github.com/crenshawdev/baley/issues/14)). Hand-offs: every area's operations are served here; the work order composer ([0002](0002-system-design.md) section 8) hands this area the work orders to deliver; [0003](0003-configuration-and-routing.md) gives the route and the host alias tables; [0010](0010-guard.md) gives the hook's decisions; the ledger records every call's refusal or receipt. @@ -268,7 +268,7 @@ The outcome is complete only when every artifact is Baley's after the run, there **The settings file.** Claude Code reads the user settings file below managed settings, command-line settings, a project's local settings and its shared settings. A project's own settings can therefore override single sandbox values such as `sandbox.enabled`, and a managed policy overrides them all. The sandbox in the user file applies to the Claude Code sessions that read that file, including projects Baley does not manage. Which file a session reads depends on `CLAUDE_CONFIG_DIR`: a session run with the value install saw, with none when none was set then, or with another value that names the same folder, reads the same file and is covered. It does not reach another user's sessions or a session that reads a different settings file, such as one run with `CLAUDE_CONFIG_DIR` set to another folder, and the receipt says so. Baley chose this file because it needs no administrator rights and holds the hook, the deny rules and the sandbox as one document that is composed once. Install writes nothing to `config.toml`: the interview's defaults are the compiled defaults, and a setting the owner changed later is not touched. Provider hosts and `review.reviewers` are written by `baley config interview`, never by install (section 5). -**Limits.** Three cases are not closed. A removal checks a retired stub's digest and then removes the file by name, and Linux has no call that removes a file only while its bytes still match. A process that swaps the file, or a folder above it for a link, between the two can have install remove a file it did not judge. The stub and settings writes have the same window between their last check and the rename (`crates/baley/src/replace.rs`, `replace` and `remove`). Between install's second read of `mcpServers.baley` and the `claude mcp remove` that follows it, another writer can change the entry, so the remove can delete an entry install did not judge ([#251](https://github.com/jcrenshaw-dev/baley/issues/251)). When nothing runnable is at the stable path, install withholds the new hook but still removes an older hook the record lists, so a machine can end with no hook ([#252](https://github.com/jcrenshaw-dev/baley/issues/252)); the gap says so only by naming the empty stable path. The written wiring was observed in live Claude Code sessions on Linux only (`spikes/host-matrix/install-live-2026-10-11-run1.md` `#inst.after.mcp`, `#inst.after.hook`, and the session's own list of stubs, `#inst.after.stubs`, which is unverified); macOS was not run and stays unverified. +**Limits.** Three cases are not closed. A removal checks a retired stub's digest and then removes the file by name, and Linux has no call that removes a file only while its bytes still match. A process that swaps the file, or a folder above it for a link, between the two can have install remove a file it did not judge. The stub and settings writes have the same window between their last check and the rename (`crates/baley/src/replace.rs`, `replace` and `remove`). Between install's second read of `mcpServers.baley` and the `claude mcp remove` that follows it, another writer can change the entry, so the remove can delete an entry install did not judge ([#251](https://github.com/crenshawdev/baley/issues/251)). When nothing runnable is at the stable path, install withholds the new hook but still removes an older hook the record lists, so a machine can end with no hook ([#252](https://github.com/crenshawdev/baley/issues/252)); the gap says so only by naming the empty stable path. The written wiring was observed in live Claude Code sessions on Linux only (`spikes/host-matrix/install-live-2026-10-11-run1.md` `#inst.after.mcp`, `#inst.after.hook`, and the session's own list of stubs, `#inst.after.stubs`, which is unverified); macOS was not run and stays unverified. Install resolves the folders for its deny paths without pinning folder environment values into the MCP entry or hook. The server, hook and owner commands resolve their own runtime environment and must resolve the same `BALEY_HOME`, `XDG_CONFIG_HOME`, `XDG_DATA_HOME` and `HOME` inputs, and the sandbox paths must match the resulting folders. `doctor` reports disagreement instead of certifying a different, unprotected home. @@ -838,4 +838,4 @@ The library holds the per-session server (`crates/baley/src/mcp/`), and `baley s |---|---| | Whether elicitation reaches the person from a subagent on Claude Code | A probe on Claude Code before the adapter may choose it (HST-R9) | | The report file formats Baley reads beside the exit code, per language | The process port's first languages, recorded in [0006](0006-execution.md) | -| Which signature format, installer-side verifier available before Baley exists, and updater verifier authenticate the signed checksum manifest? | The release design [#14](https://github.com/jcrenshaw-dev/baley/issues/14) owns the signature format, trust root and both verifier implementations and qualification, including any new dependency. The shell installer needs an available verifier or a separately authenticated bootstrap verifier; POSIX shell alone cannot verify a signature. The updater may need a crate dependency. Neither is selected here. Both delivery paths have `verify_download` between download and staging, checking unsigned development artifacts only. The installed qualification ran delivery with those artifacts live (sheet `spikes/host-matrix/install-live-2026-10-11-run1.md`, `#pre.source-base`, `#inst.script.receipt`, `#man.update.receipt`). No release exists before #14. | +| Which signature format, installer-side verifier available before Baley exists, and updater verifier authenticate the signed checksum manifest? | The release design [#14](https://github.com/crenshawdev/baley/issues/14) owns the signature format, trust root and both verifier implementations and qualification, including any new dependency. The shell installer needs an available verifier or a separately authenticated bootstrap verifier; POSIX shell alone cannot verify a signature. The updater may need a crate dependency. Neither is selected here. Both delivery paths have `verify_download` between download and staging, checking unsigned development artifacts only. The installed qualification ran delivery with those artifacts live (sheet `spikes/host-matrix/install-live-2026-10-11-run1.md`, `#pre.source-base`, `#inst.script.receipt`, `#man.update.receipt`). No release exists before #14. | diff --git a/docs/design/0013-next-action-and-progress.md b/docs/design/0013-next-action-and-progress.md index ebe178b3..d891a51e 100644 --- a/docs/design/0013-next-action-and-progress.md +++ b/docs/design/0013-next-action-and-progress.md @@ -3,7 +3,7 @@ | | | |---|---| | Status | Accepted | -| Design issue | none; build issue [#28](https://github.com/jcrenshaw-dev/baley/issues/28) | +| Design issue | none; build issue [#28](https://github.com/crenshawdev/baley/issues/28) | | Requirement prefix | NXT | | Applies | [0002: System design](0002-system-design.md) | | Related | ADRs: [0001](../adr/0001-event-ledger.md), [0005](../adr/0005-storage-port.md), [0030](../adr/0030-question-rounds.md), [0031](../adr/0031-one-term-per-concept.md) · C4 view: components ([0002](0002-system-design.md) Figure 4) | diff --git a/docs/design/0014-support-families.md b/docs/design/0014-support-families.md index 77c32afc..c6ba3449 100644 --- a/docs/design/0014-support-families.md +++ b/docs/design/0014-support-families.md @@ -3,7 +3,7 @@ | | | |---|---| | Status | Accepted | -| Design issue | none; build issues [#24](https://github.com/jcrenshaw-dev/baley/issues/24), [#29](https://github.com/jcrenshaw-dev/baley/issues/29) | +| Design issue | none; build issues [#24](https://github.com/crenshawdev/baley/issues/24), [#29](https://github.com/crenshawdev/baley/issues/29) | | Requirement prefix | SUP | | Applies | [0002: System design](0002-system-design.md) | | Related | ADRs: [0006](../adr/0006-no-markdown-records.md), [0009](../adr/0009-served-instructions.md), [0031](../adr/0031-one-term-per-concept.md) · C4 view: components ([0002](0002-system-design.md) Figure 4) | diff --git a/docs/design/0015-repository-upkeep-and-build-gate.md b/docs/design/0015-repository-upkeep-and-build-gate.md index a15b7444..b1ba8ce2 100644 --- a/docs/design/0015-repository-upkeep-and-build-gate.md +++ b/docs/design/0015-repository-upkeep-and-build-gate.md @@ -3,7 +3,7 @@ | | | |---|---| | Status | Accepted | -| Design issue | [#47](https://github.com/jcrenshaw-dev/baley/issues/47) | +| Design issue | [#47](https://github.com/crenshawdev/baley/issues/47) | | Requirement prefix | UPK | | Applies | [0002: System design](0002-system-design.md) | | Related | ADRs: [0009](../adr/0009-served-instructions.md), [0027](../adr/0027-vendor-folders-and-plain-keys.md), [0033](../adr/0033-host-security-bar.md), [0034](../adr/0034-one-server-per-session.md), [0038](../adr/0038-installer-and-opt-in-updates.md), [0039](../adr/0039-session-owned-provider-credentials.md) · C4 view: not applicable (no runtime component) | @@ -14,7 +14,7 @@ The current design of this area, and nothing else. Edit it in place when the des Baley uses one public name, describes its built state accurately, and requires a reproducible set of checks before changes reach `main`. This area defines those names, the treatment of project history, repository metadata and labels, the formatting gate, and the evidence used to assess the test suite's cost. -The host interface in [0012](0012-host-interface.md) owns installation and protocol behavior. [ADR 0038](../adr/0038-installer-and-opt-in-updates.md) specifies one installer command, the binary writing all host wiring through `baley install`, and opt-in verified updates for new server sessions, with the hook taking the new stable-path version at its next call. [Build 3 tasks T14 to T17](../roadmap.md#build-3-hosts) implement that decision under [HST-R17](0012-host-interface.md#3-requirements) and [#24](https://github.com/jcrenshaw-dev/baley/issues/24). The evidence ledger in [0001](0001-evidence-ledger.md) owns storage replacement and compatibility. The release gate belongs to [#14](https://github.com/jcrenshaw-dev/baley/issues/14), and the architecture overview to [#44](https://github.com/jcrenshaw-dev/baley/issues/44). +The host interface in [0012](0012-host-interface.md) owns installation and protocol behavior. [ADR 0038](../adr/0038-installer-and-opt-in-updates.md) specifies one installer command, the binary writing all host wiring through `baley install`, and opt-in verified updates for new server sessions, with the hook taking the new stable-path version at its next call. [Build 3 tasks T14 to T17](../roadmap.md#build-3-hosts) implement that decision under [HST-R17](0012-host-interface.md#3-requirements) and [#24](https://github.com/crenshawdev/baley/issues/24). The evidence ledger in [0001](0001-evidence-ledger.md) owns storage replacement and compatibility. The release gate belongs to [#14](https://github.com/crenshawdev/baley/issues/14), and the architecture overview to [#44](https://github.com/crenshawdev/baley/issues/44). Cadence is Baley's predecessor project, a separately maintained tool that can still be registered in the same host. @@ -43,7 +43,7 @@ This area uses the existing [glossary](../../CONTEXT.md) terms without changing | UPK-R5 | `main` requires `cargo-test`, `clippy`, `cargo-deny` and `fmt`, with strict up-to-date checks and the expected check producer preserved; `fmt` becomes required only after its job exists and passes. | The gate includes formatting without requiring a result no workflow can produce. | | Active | | UPK-R6 | Formatting uses the exact toolchain in `rust-toolchain.toml`, explicitly installs that toolchain's `rustfmt`, and runs `cargo fmt --all --check`. | A minimal toolchain installation does not supply every optional component. | UPK-R5 | Active | | UPK-R7 | Repository metadata and README status describe the built product and supported host, using section 9's values. | Public entry points must describe the same project. | ADR 0033 | Active | -| UPK-R8 | Issues use the jcrenshaw-dev issue types and labels in the [org label standard](https://github.com/jcrenshaw-dev/.github/blob/main/LABELS.md). Dependabot's `dependencies` and `rust` labels stay as Dependabot applies them. A label is deleted only after every issue carrying it has the type that replaces it. | Removing a used label erases classification. | | Active | +| UPK-R8 | Issues use the crenshawdev issue types and labels in the [org label standard](https://github.com/crenshawdev/.github/blob/main/LABELS.md). Dependabot's `dependencies` and `rust` labels stay as Dependabot applies them. A label is deleted only after every issue carrying it has the type that replaces it. | Removing a used label erases classification. | | Active | | UPK-R9 | The bug form sets the Bug type and `needs-triage`, and requires one of section 9's three impact choices. The question form sets `needs-triage`. Impact is the reporter's, and severity is set at triage. | Only the reporter knows what the problem costs them. | | Active | | UPK-R10 | Suite cost is measured at the implementation commit without a competing build, with six build jobs and six test threads, full per-file executed counts, the twenty slowest cases plus ties, and an assessment of every represented file. | Elapsed time and source counts do not establish test value. | UPK-R11 | Active | | UPK-R11 | Each build and test run uses its share of half the machine's threads: half the thread count divided by the number of streams building at the same time, rounded down. The other half stays free for the owner's own work. Nextest commands explicitly set the share as build jobs and test threads, and clippy explicitly sets it with `-j`. The repository sets no cargo job count and nextest's default profile uses every thread, so a command that does not set the share uses all of them. CI runs one stream and sets six. | Compilation and test execution have separate concurrency limits, a fixed count leaves threads idle when one stream builds alone, and a run on every thread leaves the machine no room for other work. | | Active | @@ -83,7 +83,7 @@ The `fmt` job belongs in [test.yml](../../.github/workflows/test.yml). It uses t ### Inspect the applied gate -**Input:** `gh api repos/jcrenshaw-dev/baley/rules/branches/main`. +**Input:** `gh api repos/crenshawdev/baley/rules/branches/main`. **Output:** the applied contexts, strict-check setting and expected integration for each check. A workflow job's presence does not establish that it is required. The required context is exactly `fmt`, from the same expected producer as the existing checks. Other branch rules remain intact. GitHub documents the expected source in [ruleset checks](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesets) and pending results from skipped workflows in [required-check troubleshooting](https://docs.github.com/en/pull-requests/how-tos/merge-and-close-pull-requests/troubleshooting-required-status-checks). @@ -133,7 +133,7 @@ The unnamed baseline is retained in [0001:35](0001-evidence-ledger.md#L35), its ### Canonical names and consumers -The names below cover the public and stored surfaces of [#53](https://github.com/jcrenshaw-dev/baley/issues/53). Retained engine definitions are distinguished from the session server that runs in production. +The names below cover the public and stored surfaces of [#53](https://github.com/crenshawdev/baley/issues/53). Retained engine definitions are distinguished from the session server that runs in production. | Surface | Names and current source | |---|---| @@ -151,7 +151,7 @@ The file-valued `BALEY_GLOBAL_CONFIG` is not an alias for the directory-valued ` ### Suite-cost report -The measurement belongs in the pull request for [#54](https://github.com/jcrenshaw-dev/baley/issues/54), not in a runtime ledger record. +The measurement belongs in the pull request for [#54](https://github.com/crenshawdev/baley/issues/54), not in a runtime ledger record. | Field | Meaning | |---|---| @@ -211,7 +211,7 @@ UPK-R10 and UPK-Q3 require the measurement specified in section 5, full per-file ### Labels -Baley uses the organization's issue types and labels, defined in the [org label standard](https://github.com/jcrenshaw-dev/.github/blob/main/LABELS.md). The issue types are Bug, Enhancement, Docs and Task. The labels are the four severity labels, the four resolution labels, `needs-triage`, `needs-info`, `good first issue`, `help wanted`, `security` and `design`. Dependabot adds `dependencies` and `rust` to its own pull requests and creates them when they are missing. +Baley uses the organization's issue types and labels, defined in the [org label standard](https://github.com/crenshawdev/.github/blob/main/LABELS.md). The issue types are Bug, Enhancement, Docs and Task. The labels are the four severity labels, the four resolution labels, `needs-triage`, `needs-info`, `good first issue`, `help wanted`, `security` and `design`. Dependabot adds `dependencies` and `rust` to its own pull requests and creates them when they are missing. Issue types replace the former `bug` and `enhancement` labels. The 18 issues that carried `bug` are type Bug, and the 54 that carried `enhancement` are type Enhancement. The 15 issues labeled `design` are type Task and keep the label. No issue carried `question`. Open issues that carried no label have `needs-triage`, as read on 2026-10-18. @@ -246,10 +246,10 @@ Not applicable as a new instruction surface: repository upkeep serves no model i | UPK-R7 | Built | README describes the [status](../../README.md), [host](../../README.md#hosts-and-platforms), [four required checks](../../README.md#how-it-is-designed-and-built), [contribution policy](../../README.md#issues-and-contributions) and [designed credential boundary](../../README.md#outside-reviews-and-your-api-keys) and [what is still unbuilt](../../README.md#current-state). GitHub's description, six topics and disabled wiki match section 9, as read on 2026-10-06 | | UPK-R8 | Built | The repository has the org standard's 14 labels plus `dependencies` and `rust`, and its issues carry 18 Bug, 54 Enhancement and 15 Task types, with `needs-triage` on the 39 open issues that have no type, as read on 2026-10-18 | | UPK-R9 | Built | [bug.yml:3-4](../../.github/ISSUE_TEMPLATE/bug.yml#L3) sets the Bug type and `needs-triage`; [bug.yml:13-22](../../.github/ISSUE_TEMPLATE/bug.yml#L13) requires one of section 9's three impact choices with no preselected answer; the required `what`, `repro` and `version` fields remain at [6-12](../../.github/ISSUE_TEMPLATE/bug.yml#L6) and [23-36](../../.github/ISSUE_TEMPLATE/bug.yml#L23); [question.yml:3](../../.github/ISSUE_TEMPLATE/question.yml#L3) sets `needs-triage` | -| UPK-R10, UPK-Q3 | Not built | Static counts below supply no executed counts or durations; [#54](https://github.com/jcrenshaw-dev/baley/issues/54) owns the measurement and assessment | +| UPK-R10, UPK-Q3 | Not built | Static counts below supply no executed counts or durations; [#54](https://github.com/crenshawdev/baley/issues/54) owns the measurement and assessment | | UPK-R11 | Built | The repository sets no cargo job count, so cargo uses every logical CPU; [.config/nextest.toml:3](../../.config/nextest.toml#L3) sets `test-threads = "num-cpus"`; nextest at [test.yml:60](../../.github/workflows/test.yml#L60) explicitly sets `--build-jobs 6 --test-threads 6`, and clippy at [test.yml:89](../../.github/workflows/test.yml#L89) sets `-j 6` | | UPK-Q1 | Built | Section 6 classifies every retained match; no active source uses an old name | -| UPK-Q2 | Built | The check-only command at [test.yml:151](../../.github/workflows/test.yml#L151) failed on a disposable misformatted commit and passed on its correction ([#210](https://github.com/jcrenshaw-dev/baley/pull/210), closed unmerged), a documentation-only pull request produces it, and the applied rules require its exact context | +| UPK-Q2 | Built | The check-only command at [test.yml:151](../../.github/workflows/test.yml#L151) failed on a disposable misformatted commit and passed on its correction ([#210](https://github.com/crenshawdev/baley/pull/210), closed unmerged), a documentation-only pull request produces it, and the applied rules require its exact context | The applied `main` rules, read on 2026-10-06, come from ruleset `23995653`. They require `cargo-test`, `clippy`, `cargo-deny` and `fmt`, each from integration `15368`, with `strict_required_status_checks_policy: true` and `do_not_enforce_on_create: false`. The endpoint also reports deletion and non-fast-forward protection, required signatures, and a pull-request rule with resolved review threads, dismissed stale approvals, zero required approving reviews, and merge or squash. Its bypass list is empty. diff --git a/docs/install.md b/docs/install.md index e98fdd5b..ed8b6d1c 100644 --- a/docs/install.md +++ b/docs/install.md @@ -1,5 +1,5 @@ # Installing and updating -The development install script [`install.sh`](../install.sh) and manual `baley update` are built for unsigned development artifacts only. Both check the downloaded binary's SHA-256 against an unsigned manifest before staging it behind `~/.local/bin/baley`. [#14](https://github.com/jcrenshaw-dev/baley/issues/14) adds and qualifies signature verification before any release. The script ends by running `baley install` through `~/.local/bin/baley`. Install writes Claude Code's wiring: the `baley` MCP server registration in `~/.claude.json`, made through `claude mcp add-json --scope user` so that Claude Code stays the only writer of that file, the pre-tool hook, the sandbox settings and the `Read` and `Edit` deny rules in `~/.claude/settings.json`, and one skill stub per front door under `~/.claude/skills/`. When `CLAUDE_CONFIG_DIR` is set, all three live under that folder instead. Install keeps your own settings and replaces an artifact only when it can show Baley wrote it. It refuses, and changes none of your files, when an artifact under Baley's name is not provably Baley's (`install-ownership-conflict`) or the settings file cannot be merged (`install-settings-conflict`). One case is still open: if another program changes the `baley` entry in `~/.claude.json` after install has checked it and before `claude mcp remove` runs, the remove can delete an entry install did not judge ([#251](https://github.com/jcrenshaw-dev/baley/issues/251)). Every run prints a receipt that says whether the install is complete or partial. It is partial, and the script exits non-zero, when one of your settings weakens the protection, when `bwrap` or `socat` is missing on Linux, or when nothing runnable sits at `~/.local/bin/baley`. The receipt names each gap and the fix, and you run install again afterward. The sandbox settings apply to the Claude Code sessions that read that settings file, including projects Baley does not manage. No npm or plugin is needed. Install takes settings defaults and writes nothing to `config.toml`, and a reinstall keeps the API hosts the interview added to the settings file; `baley config interview` remains available later. A new Claude Code session loads the wiring, and each checkout needs `baley init`. +The development install script [`install.sh`](../install.sh) and manual `baley update` are built for unsigned development artifacts only. Both check the downloaded binary's SHA-256 against an unsigned manifest before staging it behind `~/.local/bin/baley`. [#14](https://github.com/crenshawdev/baley/issues/14) adds and qualifies signature verification before any release. The script ends by running `baley install` through `~/.local/bin/baley`. Install writes Claude Code's wiring: the `baley` MCP server registration in `~/.claude.json`, made through `claude mcp add-json --scope user` so that Claude Code stays the only writer of that file, the pre-tool hook, the sandbox settings and the `Read` and `Edit` deny rules in `~/.claude/settings.json`, and one skill stub per front door under `~/.claude/skills/`. When `CLAUDE_CONFIG_DIR` is set, all three live under that folder instead. Install keeps your own settings and replaces an artifact only when it can show Baley wrote it. It refuses, and changes none of your files, when an artifact under Baley's name is not provably Baley's (`install-ownership-conflict`) or the settings file cannot be merged (`install-settings-conflict`). One case is still open: if another program changes the `baley` entry in `~/.claude.json` after install has checked it and before `claude mcp remove` runs, the remove can delete an entry install did not judge ([#251](https://github.com/crenshawdev/baley/issues/251)). Every run prints a receipt that says whether the install is complete or partial. It is partial, and the script exits non-zero, when one of your settings weakens the protection, when `bwrap` or `socat` is missing on Linux, or when nothing runnable sits at `~/.local/bin/baley`. The receipt names each gap and the fix, and you run install again afterward. The sandbox settings apply to the Claude Code sessions that read that settings file, including projects Baley does not manage. No npm or plugin is needed. Install takes settings defaults and writes nothing to `config.toml`, and a reinstall keeps the API hosts the interview added to the settings file; `baley config interview` remains available later. A new Claude Code session loads the wiring, and each checkout needs `baley init`. Automatic updates are opt-in and off by default. Enable them with `baley config set --global updates.auto=true`. At startup, `baley serve` reads that setting once and starts a detached check without waiting for it. The check runs at most once per UTC day per installation, checks the download's SHA-256 against the unsigned manifest, and stages a newer version beside the old ones. Set the development source with `baley config set --global updates.source=https://...`; there is no default source. New sessions start the new server; running servers keep their version. The hook uses the new version at its next call and must work with an older running server and its ledger state. The updater contacts the configured source without sending project content or provider credentials. The guard never checks for updates or waits for them. Manual `baley update` can run even when that day's check has already run. See [delivery and updates](adr/0038-installer-and-opt-in-updates.md). diff --git a/docs/outside-reviews.md b/docs/outside-reviews.md index 73e4cf22..9af3df6a 100644 --- a/docs/outside-reviews.md +++ b/docs/outside-reviews.md @@ -4,6 +4,6 @@ The design requires that Baley never read, store or send your API keys. Keys liv Release 1 outside reviews use provider APIs only. Baley builds the request and names the address, header and environment variable; the session sends it with your key and returns the raw response for Baley to parse and check. The same boundary applies to model-list refreshes. Provider command-line agents are outside this release. -The interview records your confirmation of an outside provider, and `baley models update` prints a fetch command only for a provider with a current confirmation. Without one it refuses with `provider-not-acknowledged`, naming `baley config interview`. The same check before a review, including for settings edited outside the interview, is still Build 4's (#25). `baley config interview` asks which providers to use (`openai`, `deepseek` or `none`) after the settings questions, shows the warning above for each one you pick and needs a typed `yes` to it. Any other answer declines the whole interview and writes nothing. It then shows a summary that names every file it will change. After the final `yes` it records the acknowledgement in the ledger with your `owner.name`, or your git `user.name` when that is unset (it refuses, before the summary, when neither is set), adds the providers' API hosts to Claude Code's settings file, writes `review.reviewers` in `config.toml`, and then writes the settings. If a step fails, it reports the failure and the writes already completed. Running the interview again against the same file is safe and redoes any write that did not happen. Without `--global` or `--project`, a rerun inside a project writes your settings answers to `baley.toml` once `config.toml` holds a role value, so pass `--global` to rerun against `config.toml`. There is one exception: when the reviewer list was written to `config.toml` and the ledger policy step after it failed, a rerun finds the list already equal and does not redo that step ([#255](https://github.com/jcrenshaw-dev/baley/issues/255)). It asks again when the warning changes. A fresh install enables no outside provider; a reinstall keeps acknowledged choices and the hosts the interview added. Install never acknowledges a warning for you. +The interview records your confirmation of an outside provider, and `baley models update` prints a fetch command only for a provider with a current confirmation. Without one it refuses with `provider-not-acknowledged`, naming `baley config interview`. The same check before a review, including for settings edited outside the interview, is still Build 4's (#25). `baley config interview` asks which providers to use (`openai`, `deepseek` or `none`) after the settings questions, shows the warning above for each one you pick and needs a typed `yes` to it. Any other answer declines the whole interview and writes nothing. It then shows a summary that names every file it will change. After the final `yes` it records the acknowledgement in the ledger with your `owner.name`, or your git `user.name` when that is unset (it refuses, before the summary, when neither is set), adds the providers' API hosts to Claude Code's settings file, writes `review.reviewers` in `config.toml`, and then writes the settings. If a step fails, it reports the failure and the writes already completed. Running the interview again against the same file is safe and redoes any write that did not happen. Without `--global` or `--project`, a rerun inside a project writes your settings answers to `baley.toml` once `config.toml` holds a role value, so pass `--global` to rerun against `config.toml`. There is one exception: when the reviewer list was written to `config.toml` and the ledger policy step after it failed, a rerun finds the list already equal and does not redo that step ([#255](https://github.com/crenshawdev/baley/issues/255)). It asks again when the warning changes. A fresh install enables no outside provider; a reinstall keeps acknowledged choices and the hosts the interview added. Install never acknowledges a warning for you. Baley holds no key. The `keys.env` reader, `baley exec --key` and the HTTPS model lister are gone, and a `keys.env` left by an earlier build stays in the config folder, unread and still protected. To refresh a provider's model list, run `baley models update [provider...]`. It prints a shell command for you to run, one per provider, which needs `sh` and `curl`: it fetches the list with the key from your environment, hands the key to curl on stdin so it never shows in the process list, and pipes the result into `baley models import `. The import records the new list, or keeps the previous one when the fetch failed or came back cut short. With no provider named, `update` covers the providers in `review.reviewers` that hold a confirmation. `baley install` and `baley init` seed the catalog from the list shipped in the binary, with no network call. The parked review engine also reads environment keys and `providers.env` and makes provider calls; that code goes with the parked engine in Build 9. See [the credential decision](adr/0039-session-owned-provider-credentials.md) and [configuration build status](design/0003-configuration-and-routing.md#11-build-status). diff --git a/docs/roadmap.md b/docs/roadmap.md index ef1427e4..41869ca6 100644 --- a/docs/roadmap.md +++ b/docs/roadmap.md @@ -1,10 +1,10 @@ # Roadmap -This file is the order of work from now to Baley's first public release: nine builds, then the release design, a live acceptance run on Claude Code, and publishing. Status is Build 2 complete, Build 3 T1 to T17 merged (T17 is [#262](https://github.com/jcrenshaw-dev/baley/pull/262)) with [#24](https://github.com/jcrenshaw-dev/baley/issues/24) open for what T17 left open, Build 4 T1 merged ([#268](https://github.com/jcrenshaw-dev/baley/pull/268)), Build 4 T2 merged ([#271](https://github.com/jcrenshaw-dev/baley/pull/271)), Build 4 T3 merged ([#276](https://github.com/jcrenshaw-dev/baley/pull/276)), Build 4 T4 merged ([#282](https://github.com/jcrenshaw-dev/baley/pull/282)), Build 4 T5 merged ([#290](https://github.com/jcrenshaw-dev/baley/pull/290)), Build 4 T6 merged ([#292](https://github.com/jcrenshaw-dev/baley/pull/292)), Build 4 T7 merged ([#296](https://github.com/jcrenshaw-dev/baley/pull/296)), Build 4 T8 merged ([#306](https://github.com/jcrenshaw-dev/baley/pull/306)), and Build 4 T9 in progress on this branch, based on main `12f61dfd`, dated 2026-11-01, taken from the GitHub issues, milestones and pull requests of jcrenshaw-dev/baley and from the [design documents](design/) and [decision records](adr/). No issue, milestone or design document gives a date, so this file shows order only. The plan re-check design [#134](https://github.com/jcrenshaw-dev/baley/issues/134) is recorded as landed on 2026-10-06 in [ADR 0037](adr/0037-plan-recheck-scope.md); its implementation belongs to Builds 4 and 5. The integration check design [#229](https://github.com/jcrenshaw-dev/baley/issues/229) is recorded as landed on 2026-10-08 in [ADR 0042](adr/0042-mocked-boundary-integration-checks.md); its implementation belongs to Builds 4 and 5. The repository upkeep design [#47](https://github.com/jcrenshaw-dev/baley/issues/47) is recorded as landed on 2026-10-06 in [0015](design/0015-repository-upkeep-and-build-gate.md); its remaining implementation belongs to #54, while UPK-R2 is implemented by [Build 3 delivery tasks T14 to T17](#build-3-hosts) ([#24](https://github.com/jcrenshaw-dev/baley/issues/24)). The delivery and credential designs are recorded as landed on 2026-10-06 in [ADR 0038](adr/0038-installer-and-opt-in-updates.md) and [ADR 0039](adr/0039-session-owned-provider-credentials.md). Build 3 T17 is merged. Its installed run is recorded in `spikes/host-matrix` (`install-live-2026-10-11-run1.md` and a repeat of the install rerun, `install-live-2026-10-11-run2.md`), and what the run left open is listed in the Build 3 table and notes below, so Build 3 is not complete. Build 4 ([#25](https://github.com/jcrenshaw-dev/baley/issues/25)) T2 removed the built key reader, `baley exec --key` and the HTTPS model lister ([#271](https://github.com/jcrenshaw-dev/baley/pull/271)). Each build pull request updates this roadmap. +This file is the order of work from now to Baley's first public release: nine builds, then the release design, a live acceptance run on Claude Code, and publishing. Status is Build 2 complete, Build 3 T1 to T17 merged (T17 is [#262](https://github.com/crenshawdev/baley/pull/262)) with [#24](https://github.com/crenshawdev/baley/issues/24) open for what T17 left open, Build 4 T1 merged ([#268](https://github.com/crenshawdev/baley/pull/268)), Build 4 T2 merged ([#271](https://github.com/crenshawdev/baley/pull/271)), Build 4 T3 merged ([#276](https://github.com/crenshawdev/baley/pull/276)), Build 4 T4 merged ([#282](https://github.com/crenshawdev/baley/pull/282)), Build 4 T5 merged ([#290](https://github.com/crenshawdev/baley/pull/290)), Build 4 T6 merged ([#292](https://github.com/crenshawdev/baley/pull/292)), Build 4 T7 merged ([#296](https://github.com/crenshawdev/baley/pull/296)), Build 4 T8 merged ([#306](https://github.com/crenshawdev/baley/pull/306)), and Build 4 T9 in progress on this branch, based on main `12f61dfd`, dated 2026-11-01, taken from the GitHub issues, milestones and pull requests of crenshawdev/baley and from the [design documents](design/) and [decision records](adr/). No issue, milestone or design document gives a date, so this file shows order only. The plan re-check design [#134](https://github.com/crenshawdev/baley/issues/134) is recorded as landed on 2026-10-06 in [ADR 0037](adr/0037-plan-recheck-scope.md); its implementation belongs to Builds 4 and 5. The integration check design [#229](https://github.com/crenshawdev/baley/issues/229) is recorded as landed on 2026-10-08 in [ADR 0042](adr/0042-mocked-boundary-integration-checks.md); its implementation belongs to Builds 4 and 5. The repository upkeep design [#47](https://github.com/crenshawdev/baley/issues/47) is recorded as landed on 2026-10-06 in [0015](design/0015-repository-upkeep-and-build-gate.md); its remaining implementation belongs to #54, while UPK-R2 is implemented by [Build 3 delivery tasks T14 to T17](#build-3-hosts) ([#24](https://github.com/crenshawdev/baley/issues/24)). The delivery and credential designs are recorded as landed on 2026-10-06 in [ADR 0038](adr/0038-installer-and-opt-in-updates.md) and [ADR 0039](adr/0039-session-owned-provider-credentials.md). Build 3 T17 is merged. Its installed run is recorded in `spikes/host-matrix` (`install-live-2026-10-11-run1.md` and a repeat of the install rerun, `install-live-2026-10-11-run2.md`), and what the run left open is listed in the Build 3 table and notes below, so Build 3 is not complete. Build 4 ([#25](https://github.com/crenshawdev/baley/issues/25)) T2 removed the built key reader, `baley exec --key` and the HTTPS model lister ([#271](https://github.com/crenshawdev/baley/pull/271)). Each build pull request updates this roadmap. ## The path to the first release -Builds 1 to 9 run in order, and on GitHub each build issue is blocked by the one before it. All nine are in the milestone Evidence. The release design ([#14](https://github.com/jcrenshaw-dev/baley/issues/14)) waits on all nine builds and on every other open issue except the Build 3 issues [#190](https://github.com/jcrenshaw-dev/baley/issues/190), [#203](https://github.com/jcrenshaw-dev/baley/issues/203), [#214](https://github.com/jcrenshaw-dev/baley/issues/214), [#219](https://github.com/jcrenshaw-dev/baley/issues/219), [#220](https://github.com/jcrenshaw-dev/baley/issues/220), [#221](https://github.com/jcrenshaw-dev/baley/issues/221), [#227](https://github.com/jcrenshaw-dev/baley/issues/227), [#235](https://github.com/jcrenshaw-dev/baley/issues/235), [#238](https://github.com/jcrenshaw-dev/baley/issues/238) to [#249](https://github.com/jcrenshaw-dev/baley/issues/249), [#251](https://github.com/jcrenshaw-dev/baley/issues/251), [#252](https://github.com/jcrenshaw-dev/baley/issues/252) and [#254](https://github.com/jcrenshaw-dev/baley/issues/254) to [#256](https://github.com/jcrenshaw-dev/baley/issues/256), which GitHub does not link to it. +Builds 1 to 9 run in order, and on GitHub each build issue is blocked by the one before it. All nine are in the milestone Evidence. The release design ([#14](https://github.com/crenshawdev/baley/issues/14)) waits on all nine builds and on every other open issue except the Build 3 issues [#190](https://github.com/crenshawdev/baley/issues/190), [#203](https://github.com/crenshawdev/baley/issues/203), [#214](https://github.com/crenshawdev/baley/issues/214), [#219](https://github.com/crenshawdev/baley/issues/219), [#220](https://github.com/crenshawdev/baley/issues/220), [#221](https://github.com/crenshawdev/baley/issues/221), [#227](https://github.com/crenshawdev/baley/issues/227), [#235](https://github.com/crenshawdev/baley/issues/235), [#238](https://github.com/crenshawdev/baley/issues/238) to [#249](https://github.com/crenshawdev/baley/issues/249), [#251](https://github.com/crenshawdev/baley/issues/251), [#252](https://github.com/crenshawdev/baley/issues/252) and [#254](https://github.com/crenshawdev/baley/issues/254) to [#256](https://github.com/crenshawdev/baley/issues/256), which GitHub does not link to it. ```mermaid flowchart TB @@ -49,7 +49,7 @@ Figure 1. The path from Build 1 to publishing. Arrows point from a piece of work ## Build 1: Foundation -[#22](https://github.com/jcrenshaw-dev/baley/issues/22) · milestone Evidence · design [0001 evidence ledger](design/0001-evidence-ledger.md) · done +[#22](https://github.com/crenshawdev/baley/issues/22) · milestone Evidence · design [0001 evidence ledger](design/0001-evidence-ledger.md) · done The evidence ledger store: a storage port with a SQLite adapter behind it, one conformance suite every adapter must pass, the hash chain, and forge anchors pushed with git. The owner's command line runs verify, doctor, export, purge, scrub, rebuild, anchor and acknowledge-restore, and `baley-bench` measures the real adapter. Nothing in the lifecycle uses the ledger yet. @@ -68,32 +68,32 @@ Figure 2. Build 1's tasks. One pull request per task. | Task | What | Pull requests | Status | |---|---|---|---| -| T1 | Workspace split: four crates, `baley-core` fenced from the engine | [#31](https://github.com/jcrenshaw-dev/baley/pull/31) | Merged | -| T2 | Events, canonical JSON, the hash chain and the pure verifier | [#32](https://github.com/jcrenshaw-dev/baley/pull/32) | Merged | -| T3 | The storage port; the event and chain move into `baley-store` | [#33](https://github.com/jcrenshaw-dev/baley/pull/33) | Merged | -| T4 | Opening the store, the schema, the writer queue and the epoch | [#34](https://github.com/jcrenshaw-dev/baley/pull/34) | Merged | -| T5 | Payloads and references | [#35](https://github.com/jcrenshaw-dev/baley/pull/35) | Merged | -| T6 | Views: tables, indexes, `get` and `find` | [#36](https://github.com/jcrenshaw-dev/baley/pull/36) | Merged | -| T7 | `transact` and the `request` view | [#39](https://github.com/jcrenshaw-dev/baley/pull/39) | Merged | -| T8 | Retention, reduction and purge | [#41](https://github.com/jcrenshaw-dev/baley/pull/41) | Merged | -| T9 | Generations, rebuild and `verify --views` | [#42](https://github.com/jcrenshaw-dev/baley/pull/42), [#43](https://github.com/jcrenshaw-dev/baley/pull/43) | Merged | -| T10 | Claims, leases and reconciliation | [#132](https://github.com/jcrenshaw-dev/baley/pull/132) | Merged | -| T11 | Anchors and the adapter's `verify` | [#135](https://github.com/jcrenshaw-dev/baley/pull/135) | Merged | -| T12 | Export, doctor and the owner-only acknowledge-restore command; backups removed | [#138](https://github.com/jcrenshaw-dev/baley/pull/138) | Merged | -| T13 | The conformance suite, run against every store adapter | [#140](https://github.com/jcrenshaw-dev/baley/pull/140) | Merged | -| T14 | CLI commands `verify`, `doctor`, `export`, `purge`, `scrub`, `rebuild`, `anchor` and `acknowledge-restore`; the git forge and ticker, and `baley-bench` with `seed` | [#142](https://github.com/jcrenshaw-dev/baley/pull/142) | Merged | +| T1 | Workspace split: four crates, `baley-core` fenced from the engine | [#31](https://github.com/crenshawdev/baley/pull/31) | Merged | +| T2 | Events, canonical JSON, the hash chain and the pure verifier | [#32](https://github.com/crenshawdev/baley/pull/32) | Merged | +| T3 | The storage port; the event and chain move into `baley-store` | [#33](https://github.com/crenshawdev/baley/pull/33) | Merged | +| T4 | Opening the store, the schema, the writer queue and the epoch | [#34](https://github.com/crenshawdev/baley/pull/34) | Merged | +| T5 | Payloads and references | [#35](https://github.com/crenshawdev/baley/pull/35) | Merged | +| T6 | Views: tables, indexes, `get` and `find` | [#36](https://github.com/crenshawdev/baley/pull/36) | Merged | +| T7 | `transact` and the `request` view | [#39](https://github.com/crenshawdev/baley/pull/39) | Merged | +| T8 | Retention, reduction and purge | [#41](https://github.com/crenshawdev/baley/pull/41) | Merged | +| T9 | Generations, rebuild and `verify --views` | [#42](https://github.com/crenshawdev/baley/pull/42), [#43](https://github.com/crenshawdev/baley/pull/43) | Merged | +| T10 | Claims, leases and reconciliation | [#132](https://github.com/crenshawdev/baley/pull/132) | Merged | +| T11 | Anchors and the adapter's `verify` | [#135](https://github.com/crenshawdev/baley/pull/135) | Merged | +| T12 | Export, doctor and the owner-only acknowledge-restore command; backups removed | [#138](https://github.com/crenshawdev/baley/pull/138) | Merged | +| T13 | The conformance suite, run against every store adapter | [#140](https://github.com/crenshawdev/baley/pull/140) | Merged | +| T14 | CLI commands `verify`, `doctor`, `export`, `purge`, `scrub`, `rebuild`, `anchor` and `acknowledge-restore`; the git forge and ticker, and `baley-bench` with `seed` | [#142](https://github.com/crenshawdev/baley/pull/142) | Merged | ## Build 2: Identity, settings and keys -[#23](https://github.com/jcrenshaw-dev/baley/issues/23) · milestone Evidence · done +[#23](https://github.com/crenshawdev/baley/issues/23) · milestone Evidence · done -Baley finds its per-user ledger safely, and `baley init` ties a repository to a project through a committed `baley.toml`. Baley keeps its files in its own folder under a crenshawdev vendor folder: the global settings file `config.toml` and the keys file `keys.env` in `$XDG_CONFIG_HOME/crenshawdev/baley` and the ledger in `$XDG_DATA_HOME/crenshawdev/baley` on Linux (an empty or relative XDG variable counts as unset), all three in `~/Library/Application Support/crenshawdev/baley` on macOS, and all three in `BALEY_HOME` when it is set ([ADR 0027](adr/0027-vendor-folders-and-plain-keys.md)). The ledger's home is not supported on a network share, and Baley does not check for one. Baley reads the two TOML settings files ([ADR 0015](adr/0015-settings-in-toml.md)) and resolves routes against a model catalog it refreshes by calling each provider's model-list endpoint with `reqwest` ([ADR 0028](adr/0028-one-http-stack.md)). Provider keys are plain `NAME=value` lines in `keys.env`, which the owner edits by hand and Baley only reads, refusing it with `keys-file-exposed` when group or others can read it or another user owns it, and with `keys-file-invalid` when a line is invalid, a value is empty or a name appears twice, and with `keys-file-unreadable` when it is not a regular file or cannot be read. There is no encryption, no master key and no OS secret store. Keys reach a command only through `baley exec --key`; detection also reads them for provider model-list requests. Key values never enter events, views or exports. All of it runs from the command line, on Linux and macOS. This describes the completed build. [ADR 0039](adr/0039-session-owned-provider-credentials.md) replaces its credential and fetching design: Build 4 T2 removed the built reader, `baley exec --key` and the HTTPS lister ([#271](https://github.com/jcrenshaw-dev/baley/pull/271)). +Baley finds its per-user ledger safely, and `baley init` ties a repository to a project through a committed `baley.toml`. Baley keeps its files in its own folder under a crenshawdev vendor folder: the global settings file `config.toml` and the keys file `keys.env` in `$XDG_CONFIG_HOME/crenshawdev/baley` and the ledger in `$XDG_DATA_HOME/crenshawdev/baley` on Linux (an empty or relative XDG variable counts as unset), all three in `~/Library/Application Support/crenshawdev/baley` on macOS, and all three in `BALEY_HOME` when it is set ([ADR 0027](adr/0027-vendor-folders-and-plain-keys.md)). The ledger's home is not supported on a network share, and Baley does not check for one. Baley reads the two TOML settings files ([ADR 0015](adr/0015-settings-in-toml.md)) and resolves routes against a model catalog it refreshes by calling each provider's model-list endpoint with `reqwest` ([ADR 0028](adr/0028-one-http-stack.md)). Provider keys are plain `NAME=value` lines in `keys.env`, which the owner edits by hand and Baley only reads, refusing it with `keys-file-exposed` when group or others can read it or another user owns it, and with `keys-file-invalid` when a line is invalid, a value is empty or a name appears twice, and with `keys-file-unreadable` when it is not a regular file or cannot be read. There is no encryption, no master key and no OS secret store. Keys reach a command only through `baley exec --key`; detection also reads them for provider model-list requests. Key values never enter events, views or exports. All of it runs from the command line, on Linux and macOS. This describes the completed build. [ADR 0039](adr/0039-session-owned-provider-credentials.md) replaces its credential and fetching design: Build 4 T2 removed the built reader, `baley exec --key` and the HTTPS lister ([#271](https://github.com/crenshawdev/baley/pull/271)). - Designs: [0001 evidence ledger](design/0001-evidence-ledger.md), [0002 system design](design/0002-system-design.md), [0003 configuration and routing](design/0003-configuration-and-routing.md), [0012 host interface](design/0012-host-interface.md) - ADRs: [0003 per-user database](adr/0003-per-user-database.md), [0004 project identity](adr/0004-project-identity.md), [0013 host session calls outside models](adr/0013-host-session-calls-outside-models.md), [0015 settings in TOML](adr/0015-settings-in-toml.md), [0027 vendor folders and plain keys](adr/0027-vendor-folders-and-plain-keys.md), [0028 one HTTP stack](adr/0028-one-http-stack.md) - Carries: no bugs -- Blocked by: Build 1 ([#22](https://github.com/jcrenshaw-dev/baley/issues/22)) +- Blocked by: Build 1 ([#22](https://github.com/crenshawdev/baley/issues/22)) ```mermaid flowchart LR @@ -140,30 +140,30 @@ Figure 3. Build 2's tasks. Arrows point from a task to what waits on it. One pul | Task | What | Pull requests | Status | |---|---|---|---| -| T1 | Folders, the home and the open checks | [#149](https://github.com/jcrenshaw-dev/baley/pull/149) | Merged | -| T2 | The keys file reader | [#152](https://github.com/jcrenshaw-dev/baley/pull/152) | Merged | -| T3 | `baley exec --key` | [#154](https://github.com/jcrenshaw-dev/baley/pull/154) | Merged | -| T4 | Settings: the schema, the two files, the merge and route resolution | [#156](https://github.com/jcrenshaw-dev/baley/pull/156) | Merged | -| T5 | The project file and discovery | [#158](https://github.com/jcrenshaw-dev/baley/pull/158) | Merged | -| T6 | `baley init` | [#164](https://github.com/jcrenshaw-dev/baley/pull/164) | Merged | -| T7 | The model catalog | [#165](https://github.com/jcrenshaw-dev/baley/pull/165) | Merged | -| T8 | Detection | [#166](https://github.com/jcrenshaw-dev/baley/pull/166) | Merged | -| T9 | The recorded policy | [#167](https://github.com/jcrenshaw-dev/baley/pull/167) | Merged | -| T10 | `baley config show` and `baley config set` | [#170](https://github.com/jcrenshaw-dev/baley/pull/170) | Merged | -| T11 | `baley config interview` | [#171](https://github.com/jcrenshaw-dev/baley/pull/171) | Merged | -| T12 | The anchor remote from the project's settings | [#172](https://github.com/jcrenshaw-dev/baley/pull/172) | Merged | -| T13 | Checkouts and forks | [#173](https://github.com/jcrenshaw-dev/baley/pull/173) | Merged | +| T1 | Folders, the home and the open checks | [#149](https://github.com/crenshawdev/baley/pull/149) | Merged | +| T2 | The keys file reader | [#152](https://github.com/crenshawdev/baley/pull/152) | Merged | +| T3 | `baley exec --key` | [#154](https://github.com/crenshawdev/baley/pull/154) | Merged | +| T4 | Settings: the schema, the two files, the merge and route resolution | [#156](https://github.com/crenshawdev/baley/pull/156) | Merged | +| T5 | The project file and discovery | [#158](https://github.com/crenshawdev/baley/pull/158) | Merged | +| T6 | `baley init` | [#164](https://github.com/crenshawdev/baley/pull/164) | Merged | +| T7 | The model catalog | [#165](https://github.com/crenshawdev/baley/pull/165) | Merged | +| T8 | Detection | [#166](https://github.com/crenshawdev/baley/pull/166) | Merged | +| T9 | The recorded policy | [#167](https://github.com/crenshawdev/baley/pull/167) | Merged | +| T10 | `baley config show` and `baley config set` | [#170](https://github.com/crenshawdev/baley/pull/170) | Merged | +| T11 | `baley config interview` | [#171](https://github.com/crenshawdev/baley/pull/171) | Merged | +| T12 | The anchor remote from the project's settings | [#172](https://github.com/crenshawdev/baley/pull/172) | Merged | +| T13 | Checkouts and forks | [#173](https://github.com/crenshawdev/baley/pull/173) | Merged | ## Build 3: Hosts -[#24](https://github.com/jcrenshaw-dev/baley/issues/24) · milestone Evidence · in progress +[#24](https://github.com/crenshawdev/baley/issues/24) · milestone Evidence · in progress Claude Code is the only host Baley supports in this release, and Build 3 removes Codex support. Each Claude Code session starts its own Baley MCP server over stdio, and the session's subagents reach it through the session's connection. There is no launcher, no HTTP listener and no background service, and every worker in this release is a subagent of its session. The server takes its project from `CLAUDE_PROJECT_DIR`, records its working directory beside it, and creates a session id that every call carries, with the host's own session id beside it when one is set. Ledger events record which caller wrote them. Each project call is prepared from the session's `CLAUDE_PROJECT_DIR` in the order the command line uses: a read appends nothing, and a write runs checkout admission and the host's policy step before its command. T8's `capture` and `document` are the first operations to use it. Another host can connect and list the tools, but every tool call it makes is refused with Claude Code named as the supported host. Sessions share the ledger through the store: every write takes the writer queue and decides inside its transaction ([ADR 0012](adr/0012-optimistic-concurrency.md)), and the build's acceptance includes two live Claude Code sessions writing one project at once, with the record checked afterwards. Agents can neither read nor write Baley's home or its config folder (`config.toml`). Claude Code's sandbox, its file permission rules and Baley's guard hook carry that together, and `baley doctor` reports what an agent can reach. The designed credential boundary keeps keys in the owner's environment ([ADR 0039](adr/0039-session-owned-provider-credentials.md)), which those folder denials do not protect. The compiled instructions are served ([ADR 0009](adr/0009-served-instructions.md)): T7 serves help, the operation schemas and the compiled instructions by identity in parts, and T8, which builds `document`, attaches the instruction identity a session sends on `capture` to the caller it records, with the version and hash taken from the registry. The build renders the stub content that `baley install` writes, and it opens with warnings that say what a restore cannot undo. [ADR 0038](adr/0038-installer-and-opt-in-updates.md) specifies one installer command into `~/.local/bin`, with `baley install` writing every artifact at the stable path, no npm or plugin, and default setup with the interview available later. T14's development `install.sh` places the binary behind `~/.local/bin/baley` and ends by running `baley install` through that path. T15's `baley install` writes Claude Code's wiring: the user-scope MCP registration, made through `claude mcp add-json`, the pre-tool hook, the sandbox and file-tool denials merged into the user settings file, and the skill stubs. Updates are off by default and opt-in. At startup, `baley serve` reads `updates.auto` once and starts the detached check without waiting when it is on. The check claims at most one check per UTC day per installation, uses SHA-256 verification against an unsigned manifest, and stages a newer version beside the old ones. The guard never checks for updates. Running servers keep their version; the next hook call follows the stable path to the new binary. T14 keeps the newer hook compatible with an older server and ledger state, and T17 qualified that combination and the live install and update paths on Linux, with the results and open items in the Build 3 notes. Manual `baley update` is built and can run even on a day already claimed. T14 and T17 use unsigned development artifacts only. Both delivery paths have `verify_download` between download and staging. The release design #14 owns the signature format, trust root and both verifiers and must fill and qualify that seam before any release. Captures are recorded. - Designs: [0001 evidence ledger](design/0001-evidence-ledger.md), [0002 system design](design/0002-system-design.md), [0003 configuration and routing](design/0003-configuration-and-routing.md), [0010 guard](design/0010-guard.md), [0012 host interface](design/0012-host-interface.md), [0014 support families](design/0014-support-families.md), [0015 repository upkeep and the build gate](design/0015-repository-upkeep-and-build-gate.md) - ADRs: [0008 host sandbox isolation](adr/0008-host-sandbox-isolation.md), [0009 served instructions](adr/0009-served-instructions.md), [0011 one shared server](adr/0011-one-shared-server.md), [0012 optimistic concurrency](adr/0012-optimistic-concurrency.md), [0020 sandbox is a write barrier](adr/0020-sandbox-is-a-write-barrier.md), [0028 one HTTP stack](adr/0028-one-http-stack.md), [0029 a host may offer more](adr/0029-a-host-may-offer-more.md), [0033 host security bar](adr/0033-host-security-bar.md), [0034 one server per session](adr/0034-one-server-per-session.md), [0035 restore purge uncertainty](adr/0035-restore-purge-uncertainty.md), [0036 per-user guard records](adr/0036-per-user-guard-records.md), [0038 installer and opt-in updates](adr/0038-installer-and-opt-in-updates.md), [0039 session-owned provider credentials](adr/0039-session-owned-provider-credentials.md) -- Carries: [#71](https://github.com/jcrenshaw-dev/baley/issues/71), [#146](https://github.com/jcrenshaw-dev/baley/issues/146), [#194](https://github.com/jcrenshaw-dev/baley/issues/194) -- Blocked by: Build 2 ([#23](https://github.com/jcrenshaw-dev/baley/issues/23)) +- Carries: [#71](https://github.com/crenshawdev/baley/issues/71), [#146](https://github.com/crenshawdev/baley/issues/146), [#194](https://github.com/crenshawdev/baley/issues/194) +- Blocked by: Build 2 ([#23](https://github.com/crenshawdev/baley/issues/23)) ```mermaid flowchart LR @@ -226,35 +226,35 @@ flowchart LR class Release14,Verified planned ``` -Figure 4. Build 3's tasks. Arrows point from a task to what waits on it. The dotted arrow is an evidence link. T14 to T17 are merged ([#250](https://github.com/jcrenshaw-dev/baley/pull/250), [#253](https://github.com/jcrenshaw-dev/baley/pull/253), [#257](https://github.com/jcrenshaw-dev/baley/pull/257), [#262](https://github.com/jcrenshaw-dev/baley/pull/262)). T14 and T17 use unsigned development artifacts only. #14 fills and qualifies T14's `verify_download` seam before delivery can release verified artifacts; its other build dependencies are listed under R1. One pull request per Build 3 task. +Figure 4. Build 3's tasks. Arrows point from a task to what waits on it. The dotted arrow is an evidence link. T14 to T17 are merged ([#250](https://github.com/crenshawdev/baley/pull/250), [#253](https://github.com/crenshawdev/baley/pull/253), [#257](https://github.com/crenshawdev/baley/pull/257), [#262](https://github.com/crenshawdev/baley/pull/262)). T14 and T17 use unsigned development artifacts only. #14 fills and qualifies T14's `verify_download` seam before delivery can release verified artifacts; its other build dependencies are listed under R1. One pull request per Build 3 task. | Task | What | Pull requests | Status | |---|---|---|---| -| T1 | Explain purge uncertainty after a restore | [#176](https://github.com/jcrenshaw-dev/baley/pull/176) | Merged | -| T2 | Claude host seam and Codex removal | [#182](https://github.com/jcrenshaw-dev/baley/pull/182) | Merged | -| T3 | Caller provenance in the ledger | [#183](https://github.com/jcrenshaw-dev/baley/pull/183) | Merged | -| T4 | Per-session stdio server and store maintenance | [#189](https://github.com/jcrenshaw-dev/baley/pull/189) | Merged | -| T5 | Per-request discovery, admission and policy | [#191](https://github.com/jcrenshaw-dev/baley/pull/191) | Merged | -| T6 | Guard decisions and protected paths | [#196](https://github.com/jcrenshaw-dev/baley/pull/196) | Merged | -| T7 | Compiled instructions, help, schemas and parts | [#199](https://github.com/jcrenshaw-dev/baley/pull/199) | Merged | -| T8 | Ledger captures and project identity reads | [#202](https://github.com/jcrenshaw-dev/baley/pull/202) | Merged | -| T9 | Bounded guard process and storage access | [#204](https://github.com/jcrenshaw-dev/baley/pull/204) | Merged | -| T10 | Per-user guard records and Claude hook answers | [#207](https://github.com/jcrenshaw-dev/baley/pull/207) | Merged | -| T11 | Claude artifact content, logical stubs and supplied executable-path protection | [#228](https://github.com/jcrenshaw-dev/baley/pull/228) | Merged | -| T12 | Live Claude qualification and concurrent sessions. Run on 2026-10-08 against Claude Code 2.1.294 in three runs kept in `spikes/host-matrix`: the first sheet is `claude-live-2026-10-08-run1.md`, the rerun after the fixes for issues #231 and #232 is `claude-live-2026-10-08-run2.md`, and the final run, against commit `7c8ca4c3` after changes to the procedure, is `claude-live-2026-10-08-run3.md`. The two defects the first run showed are `claude-live-2026-10-08-run1.md#exit.session-a` and `claude-live-2026-10-08-run1.md#hand.parts.document-main`, and the rerun passes both (`claude-live-2026-10-08-run2.md#exit.session-a`, `claude-live-2026-10-08-run2.md#hand.parts.document-main`). No barrier failed: the Bash, Read, Write and Edit rows for the home and the config folder pass (`claude-live-2026-10-08-run1.md#bar.home.bash-read`, `claude-live-2026-10-08-run1.md#bar.home.bash-write`, `claude-live-2026-10-08-run1.md#bar.home.read-tool`, `claude-live-2026-10-08-run1.md#bar.home.write-tool`, `claude-live-2026-10-08-run1.md#bar.home.edit-tool`, `claude-live-2026-10-08-run1.md#bar.config.bash-read`, `claude-live-2026-10-08-run1.md#bar.config.bash-write`, `claude-live-2026-10-08-run1.md#bar.config.read-tool`, `claude-live-2026-10-08-run1.md#bar.config.write-tool`, `claude-live-2026-10-08-run1.md#bar.config.edit-tool`). The final run found no defect. It passes Grep and Glob over each folder and over its parent, in a session launched with `--allowedTools Grep,Glob` because Claude Code 2.1.294 leaves both tools out of its default tool list, and the guard refused every call (`claude-live-2026-10-08-run3.md#bar.home.grep-folder`, `claude-live-2026-10-08-run3.md#bar.home.grep-parent`, `claude-live-2026-10-08-run3.md#bar.home.glob-folder`, `claude-live-2026-10-08-run3.md#bar.home.glob-parent`, `claude-live-2026-10-08-run3.md#bar.config.grep-folder`, `claude-live-2026-10-08-run3.md#bar.config.grep-parent`, `claude-live-2026-10-08-run3.md#bar.config.glob-folder`, `claude-live-2026-10-08-run3.md#bar.config.glob-parent`, `claude-live-2026-10-08-run3.md#ctl.grep-parent-guard`, `claude-live-2026-10-08-run3.md#ctl.glob-parent-guard`). It also passes the hook on Grep, Glob, Write, Edit and NotebookEdit (`claude-live-2026-10-08-run3.md#ctl.hook.grep`, `claude-live-2026-10-08-run3.md#ctl.hook.glob`, `claude-live-2026-10-08-run3.md#ctl.hook.write`, `claude-live-2026-10-08-run3.md#ctl.hook.edit`, `claude-live-2026-10-08-run3.md#ctl.hook.notebookedit`), the user-scope registration in an isolated configuration, whose three tools were callable without a tool search in the main session and a subagent (`claude-live-2026-10-08-run3.md#id.user-scope.startup`, `claude-live-2026-10-08-run3.md#hand.tools.user-main`, `claude-live-2026-10-08-run3.md#hand.tools.user-subagent`), and the skill from both placements (`claude-live-2026-10-08-run3.md#hand.skill-listed`, `claude-live-2026-10-08-run3.md#hand.skill-run`, `claude-live-2026-10-08-run3.md#hand.skill-project-listed`, `claude-live-2026-10-08-run3.md#hand.skill-project-run`). Acceptance left open or unverified: keys and detection, because Build 4 T2 removed the key reader, the credential wrapper and the model lister the row would exercise ([#271](https://github.com/jcrenshaw-dev/baley/pull/271)) (`claude-live-2026-10-08-run3.md#hand.keys-detection`); the restore report, which failed on one step, since a repeated `acknowledge-restore` is a new request that exits 1 with "already acknowledged" and prints no purge warning, so whether a replayed acknowledgement carrying the warning is reachable from the command line is open (`claude-live-2026-10-08-run3.md#hand.restore-report`); the PowerShell reads, writes, hook and recorded ask, because `pwsh` was absent in every run (`claude-live-2026-10-08-run3.md#bar.home.ps-read`, `claude-live-2026-10-08-run3.md#ctl.hook.powershell`, `claude-live-2026-10-08-run3.md#ctl.powershell-ask`); the `.git/HEAD` fallback, since with git off `PATH` the guard asked about unreadable settings and never reached the fallback path (`claude-live-2026-10-08-run1.md#ctl.fallback-head`); a hook timeout, since no guard call reached 10,000 ms and the highest took 49 ms (`claude-live-2026-10-08-run3.md#ctl.timeout-not-denial`, `claude-live-2026-10-08-run3.md#ctl.latency`); a live redelivery, since no `tool_use_id` arrived twice (`claude-live-2026-10-08-run3.md#ctl.redelivery`); the burst of calls in flight at exit, since Claude Code held `/exit` until the turn ended and no call was inside the server (`claude-live-2026-10-08-run2.md#exit.burst`); the guard's own deny of a Write to a protected file, since the Edit deny rule refused that Write before the hook ran (`claude-live-2026-10-08-run1.md#ctl.write-baleytoml-denied`); the Edit rule's reach over NotebookEdit, which the read-first check refused first (`claude-live-2026-10-08-run1.md#bar.home.notebook-edit`); host-specific settings, since neither config file had a host section to list (`claude-live-2026-10-08-run1.md#hand.config-show`); and the arrival of served-answer parts after part 1, since only part 1 was read (`claude-live-2026-10-08-run2.md#hand.parts.document-main`) | [#236](https://github.com/jcrenshaw-dev/baley/pull/236) | Merged | -| T13 | Runtime doctor host observations | [#237](https://github.com/jcrenshaw-dev/baley/pull/237) | Merged | -| T14 | Binary delivery, ledger update claims and events, version-folder protection and update compatibility using unsigned development artifacts only; leave `verify_download` between download and staging for #14's verifiers | [#250](https://github.com/jcrenshaw-dev/baley/pull/250) | Merged; released delivery depends on #14 | -| T15 | Claude artifact ownership and application | [#253](https://github.com/jcrenshaw-dev/baley/pull/253) | Merged | -| T16 | Owner setup: final summary lists every file, then `yes` records provider acknowledgement, writes API-host allowances through the installation writer, writes global `review.reviewers`, and runs settings `config set` in order. Stop on failure, report completed writes and permit safe rerun | [#257](https://github.com/jcrenshaw-dev/baley/pull/257) | Merged | -| T17 | Delivery doctor and installed qualification with unsigned development artifacts only, including newer-hook/older-server compatibility. The doctor takes `--host` and reports the install outcome, the hook and settings against what install writes, stale and older stubs, the stable path's version, writable locations, provider hosts, acknowledgements and the effective `updates.auto`, with a fix on every finding. The installed run of 2026-10-11 against Claude Code 2.1.296 is `spikes/host-matrix/install-live-2026-10-11-run1.md`, and a shell-only repeat of the install rerun after three fixes is `install-live-2026-10-11-run2.md`. The run left open the live repeat of the older-server fix (#258), which passed at Build 4 T3's raise of the view set to 9 (`older-server-live-2026-10-15.md`), Grep and Glob on Baley's home and config folder and the installed hook in bypass-permissions mode in a live session, whether a running session finds a newly written stub and the Bash read of Baley's home folder (both rest on the session's answer), and #190 | [#262](https://github.com/jcrenshaw-dev/baley/pull/262) | Merged; released-artifact verification and its qualification belong to #14 | +| T1 | Explain purge uncertainty after a restore | [#176](https://github.com/crenshawdev/baley/pull/176) | Merged | +| T2 | Claude host seam and Codex removal | [#182](https://github.com/crenshawdev/baley/pull/182) | Merged | +| T3 | Caller provenance in the ledger | [#183](https://github.com/crenshawdev/baley/pull/183) | Merged | +| T4 | Per-session stdio server and store maintenance | [#189](https://github.com/crenshawdev/baley/pull/189) | Merged | +| T5 | Per-request discovery, admission and policy | [#191](https://github.com/crenshawdev/baley/pull/191) | Merged | +| T6 | Guard decisions and protected paths | [#196](https://github.com/crenshawdev/baley/pull/196) | Merged | +| T7 | Compiled instructions, help, schemas and parts | [#199](https://github.com/crenshawdev/baley/pull/199) | Merged | +| T8 | Ledger captures and project identity reads | [#202](https://github.com/crenshawdev/baley/pull/202) | Merged | +| T9 | Bounded guard process and storage access | [#204](https://github.com/crenshawdev/baley/pull/204) | Merged | +| T10 | Per-user guard records and Claude hook answers | [#207](https://github.com/crenshawdev/baley/pull/207) | Merged | +| T11 | Claude artifact content, logical stubs and supplied executable-path protection | [#228](https://github.com/crenshawdev/baley/pull/228) | Merged | +| T12 | Live Claude qualification and concurrent sessions. Run on 2026-10-08 against Claude Code 2.1.294 in three runs kept in `spikes/host-matrix`: the first sheet is `claude-live-2026-10-08-run1.md`, the rerun after the fixes for issues #231 and #232 is `claude-live-2026-10-08-run2.md`, and the final run, against commit `7c8ca4c3` after changes to the procedure, is `claude-live-2026-10-08-run3.md`. The two defects the first run showed are `claude-live-2026-10-08-run1.md#exit.session-a` and `claude-live-2026-10-08-run1.md#hand.parts.document-main`, and the rerun passes both (`claude-live-2026-10-08-run2.md#exit.session-a`, `claude-live-2026-10-08-run2.md#hand.parts.document-main`). No barrier failed: the Bash, Read, Write and Edit rows for the home and the config folder pass (`claude-live-2026-10-08-run1.md#bar.home.bash-read`, `claude-live-2026-10-08-run1.md#bar.home.bash-write`, `claude-live-2026-10-08-run1.md#bar.home.read-tool`, `claude-live-2026-10-08-run1.md#bar.home.write-tool`, `claude-live-2026-10-08-run1.md#bar.home.edit-tool`, `claude-live-2026-10-08-run1.md#bar.config.bash-read`, `claude-live-2026-10-08-run1.md#bar.config.bash-write`, `claude-live-2026-10-08-run1.md#bar.config.read-tool`, `claude-live-2026-10-08-run1.md#bar.config.write-tool`, `claude-live-2026-10-08-run1.md#bar.config.edit-tool`). The final run found no defect. It passes Grep and Glob over each folder and over its parent, in a session launched with `--allowedTools Grep,Glob` because Claude Code 2.1.294 leaves both tools out of its default tool list, and the guard refused every call (`claude-live-2026-10-08-run3.md#bar.home.grep-folder`, `claude-live-2026-10-08-run3.md#bar.home.grep-parent`, `claude-live-2026-10-08-run3.md#bar.home.glob-folder`, `claude-live-2026-10-08-run3.md#bar.home.glob-parent`, `claude-live-2026-10-08-run3.md#bar.config.grep-folder`, `claude-live-2026-10-08-run3.md#bar.config.grep-parent`, `claude-live-2026-10-08-run3.md#bar.config.glob-folder`, `claude-live-2026-10-08-run3.md#bar.config.glob-parent`, `claude-live-2026-10-08-run3.md#ctl.grep-parent-guard`, `claude-live-2026-10-08-run3.md#ctl.glob-parent-guard`). It also passes the hook on Grep, Glob, Write, Edit and NotebookEdit (`claude-live-2026-10-08-run3.md#ctl.hook.grep`, `claude-live-2026-10-08-run3.md#ctl.hook.glob`, `claude-live-2026-10-08-run3.md#ctl.hook.write`, `claude-live-2026-10-08-run3.md#ctl.hook.edit`, `claude-live-2026-10-08-run3.md#ctl.hook.notebookedit`), the user-scope registration in an isolated configuration, whose three tools were callable without a tool search in the main session and a subagent (`claude-live-2026-10-08-run3.md#id.user-scope.startup`, `claude-live-2026-10-08-run3.md#hand.tools.user-main`, `claude-live-2026-10-08-run3.md#hand.tools.user-subagent`), and the skill from both placements (`claude-live-2026-10-08-run3.md#hand.skill-listed`, `claude-live-2026-10-08-run3.md#hand.skill-run`, `claude-live-2026-10-08-run3.md#hand.skill-project-listed`, `claude-live-2026-10-08-run3.md#hand.skill-project-run`). Acceptance left open or unverified: keys and detection, because Build 4 T2 removed the key reader, the credential wrapper and the model lister the row would exercise ([#271](https://github.com/crenshawdev/baley/pull/271)) (`claude-live-2026-10-08-run3.md#hand.keys-detection`); the restore report, which failed on one step, since a repeated `acknowledge-restore` is a new request that exits 1 with "already acknowledged" and prints no purge warning, so whether a replayed acknowledgement carrying the warning is reachable from the command line is open (`claude-live-2026-10-08-run3.md#hand.restore-report`); the PowerShell reads, writes, hook and recorded ask, because `pwsh` was absent in every run (`claude-live-2026-10-08-run3.md#bar.home.ps-read`, `claude-live-2026-10-08-run3.md#ctl.hook.powershell`, `claude-live-2026-10-08-run3.md#ctl.powershell-ask`); the `.git/HEAD` fallback, since with git off `PATH` the guard asked about unreadable settings and never reached the fallback path (`claude-live-2026-10-08-run1.md#ctl.fallback-head`); a hook timeout, since no guard call reached 10,000 ms and the highest took 49 ms (`claude-live-2026-10-08-run3.md#ctl.timeout-not-denial`, `claude-live-2026-10-08-run3.md#ctl.latency`); a live redelivery, since no `tool_use_id` arrived twice (`claude-live-2026-10-08-run3.md#ctl.redelivery`); the burst of calls in flight at exit, since Claude Code held `/exit` until the turn ended and no call was inside the server (`claude-live-2026-10-08-run2.md#exit.burst`); the guard's own deny of a Write to a protected file, since the Edit deny rule refused that Write before the hook ran (`claude-live-2026-10-08-run1.md#ctl.write-baleytoml-denied`); the Edit rule's reach over NotebookEdit, which the read-first check refused first (`claude-live-2026-10-08-run1.md#bar.home.notebook-edit`); host-specific settings, since neither config file had a host section to list (`claude-live-2026-10-08-run1.md#hand.config-show`); and the arrival of served-answer parts after part 1, since only part 1 was read (`claude-live-2026-10-08-run2.md#hand.parts.document-main`) | [#236](https://github.com/crenshawdev/baley/pull/236) | Merged | +| T13 | Runtime doctor host observations | [#237](https://github.com/crenshawdev/baley/pull/237) | Merged | +| T14 | Binary delivery, ledger update claims and events, version-folder protection and update compatibility using unsigned development artifacts only; leave `verify_download` between download and staging for #14's verifiers | [#250](https://github.com/crenshawdev/baley/pull/250) | Merged; released delivery depends on #14 | +| T15 | Claude artifact ownership and application | [#253](https://github.com/crenshawdev/baley/pull/253) | Merged | +| T16 | Owner setup: final summary lists every file, then `yes` records provider acknowledgement, writes API-host allowances through the installation writer, writes global `review.reviewers`, and runs settings `config set` in order. Stop on failure, report completed writes and permit safe rerun | [#257](https://github.com/crenshawdev/baley/pull/257) | Merged | +| T17 | Delivery doctor and installed qualification with unsigned development artifacts only, including newer-hook/older-server compatibility. The doctor takes `--host` and reports the install outcome, the hook and settings against what install writes, stale and older stubs, the stable path's version, writable locations, provider hosts, acknowledgements and the effective `updates.auto`, with a fix on every finding. The installed run of 2026-10-11 against Claude Code 2.1.296 is `spikes/host-matrix/install-live-2026-10-11-run1.md`, and a shell-only repeat of the install rerun after three fixes is `install-live-2026-10-11-run2.md`. The run left open the live repeat of the older-server fix (#258), which passed at Build 4 T3's raise of the view set to 9 (`older-server-live-2026-10-15.md`), Grep and Glob on Baley's home and config folder and the installed hook in bypass-permissions mode in a live session, whether a running session finds a newly written stub and the Bash read of Baley's home folder (both rest on the session's answer), and #190 | [#262](https://github.com/crenshawdev/baley/pull/262) | Merged; released-artifact verification and its qualification belong to #14 | ## Build 4: Planning -[#25](https://github.com/jcrenshaw-dev/baley/issues/25) · milestone Evidence · in progress +[#25](https://github.com/crenshawdev/baley/issues/25) · milestone Evidence · in progress The owner starts a project, shapes the story backlog, and commits stories to phases under a task capacity. Each story carries versioned truths, and each truth has one check. The analyzer and the planner ask the owner only the decisions left to the owner, each with a recommended answer, in rounds ordered by what each question depends on, and every answer and deferral is recorded ([ADR 0030](adr/0030-question-rounds.md)). Each phase's plan is written, checked, reviewed and risk-scanned, and approval binds the plan's exact digest. Every configured reviewer runs, and a provider that cannot be called is replaced by the host's own subagent reviewer unless that reviewer already runs. The host session makes the outside calls from Baley's work order and checks each finding, and the owner rules on each one that survives ([ADR 0013](adr/0013-host-session-calls-outside-models.md), [ADR 0019](adr/0019-reviews-adjudicated-and-ruled.md)). The first workers are dispatched here, so routing is finished here. The first dispatch task supplies Claude Code's identity rung map and a dated per-model table of supported effort levels. For a level a model does not support, the dated table predicts the highest level the model supports at or below it, and a model without effort is not applicable. The route records the requested rung and the level the dated table supports apart, and the effective model and effort stay `unknown` until a run is observed. `RungMap` is unchanged, and the owner reviews the initial table in that task's pull request. -Build 4 owns `baley models import`, the provider-list fetch work order and `models-return`, and checks the current provider acknowledgement before issuing review or fetch work. These depend on Build 3 T16's provider choice and typed acknowledgement in the ledger. T16 added the setup reader and writer of `review.reviewers`; Build 4 adds the review consumer. Build 4 also implements tier selection: an explicit setting, then the owner's entry for the tier, otherwise the newest accepted catalog id tagged for it by `created` date, then hint order, with the catalog record extension in 0003. Build 4 T2 removed the built `keys.env` reader, the `baley exec --key` credential wrapper, the HTTPS model lister and the credential lookup, and switched `baley init` from detection to seeding ([#271](https://github.com/jcrenshaw-dev/baley/pull/271)). The pure catalog parsing, classification, tagging, diff and event code stays. +Build 4 owns `baley models import`, the provider-list fetch work order and `models-return`, and checks the current provider acknowledgement before issuing review or fetch work. These depend on Build 3 T16's provider choice and typed acknowledgement in the ledger. T16 added the setup reader and writer of `review.reviewers`; Build 4 adds the review consumer. Build 4 also implements tier selection: an explicit setting, then the owner's entry for the tier, otherwise the newest accepted catalog id tagged for it by `created` date, then hint order, with the catalog record extension in 0003. Build 4 T2 removed the built `keys.env` reader, the `baley exec --key` credential wrapper, the HTTPS model lister and the credential lookup, and switched `baley init` from detection to seeding ([#271](https://github.com/crenshawdev/baley/pull/271)). The pure catalog parsing, classification, tagging, diff and event code stays. Build 4 implements PLN-R16's full and diff plan re-check inputs, the setting's first reader and validation, immutable material for each round, and the scope recorded in plan-check and plan-review events and views. Design 0005 leaves the way the checker's revision and a plan review's revision combine for one plan as an open question owned by Build 4. @@ -273,8 +273,8 @@ Build 4 T9 plans a phase with its owner. `phase-plan` on `baley_apply` takes a p - Designs: [0001 evidence ledger](design/0001-evidence-ledger.md), [0002 system design](design/0002-system-design.md), [0003 configuration and routing](design/0003-configuration-and-routing.md), [0004 starting a project and changing scope](design/0004-starting-a-project-and-changing-scope.md), [0005 context, plans and acceptance](design/0005-context-plans-and-acceptance.md), [0008 review](design/0008-review.md), [0009 risk](design/0009-risk.md), [0012 host interface](design/0012-host-interface.md), [0014 support families](design/0014-support-families.md) - ADRs: [0013 host session calls outside models](adr/0013-host-session-calls-outside-models.md), [0017 stories and sprints](adr/0017-stories-and-sprints.md), [0019 reviews adjudicated and ruled](adr/0019-reviews-adjudicated-and-ruled.md), [0030 question rounds](adr/0030-question-rounds.md), [0031 one term per concept](adr/0031-one-term-per-concept.md), [0037 plan re-check scope](adr/0037-plan-recheck-scope.md), [0039 session-owned provider credentials](adr/0039-session-owned-provider-credentials.md), [0042 mocked-boundary integration checks](adr/0042-mocked-boundary-integration-checks.md), [0043 submissions recorded as drafts](adr/0043-submissions-recorded-as-drafts.md), [0044 owner acts on the command line](adr/0044-owner-acts-on-the-command-line.md), [0045 project start from a session](adr/0045-project-start-from-a-session.md), [0046 agent stubs per role and rung](adr/0046-agent-stubs-per-role-and-rung.md), [0047 owner acts relayed by a session](adr/0047-owner-acts-relayed-by-a-session.md), [0050 phase plan commits stories through an approved edit](adr/0050-phase-plan-commits-stories-through-an-approved-edit.md) - Cadence sources ([ADR 0048](adr/0048-port-what-cadence-hands-agents.md)), each from the Cadence release current when its task is planned: T7's analyzer texts from `skills/cad-assumptions-analyzer-contract/SKILL.md` and `cadence-core/workflows/context.md`, and its `bal-context` from `skills/cad-context/SKILL.md` and the same `context.md`, all at Cadence `v3.9.0`; T8's planner text from `skills/cad-planner-contract/SKILL.md`, `cadence-core/workflows/plan.md` and `cadence-core/templates/PLAN.md`, and its `bal-plan` text from `skills/cad-plan/SKILL.md` and the same `plan.md`, all at Cadence `v3.9.0`; T10's checker text from `skills/cad-plan-checker-contract/SKILL.md`; T11's lease risk from `planning.mjs risk-check` and `cadence-core/references/risk-surface.md`; T13's reviewer text from `skills/cad-reviewer-contract/SKILL.md`, `cadence-core/references/reviewer-brief.md` and `cadence-core/references/review-triggers.md`; T14's adjudication and rulings from `planning.mjs adjudication`, `cadence-core/references/triage-gate.md` and `cadence-core/references/review-record.md`; the front doors `bal-plan`, `bal-review`, `bal-plan-review`, `bal-decision-review` and `bal-minimalism-review` from `/cad-plan`, `fire()` in `review-triggers.md`, `/cad-plan-review`, `/cad-decision-review` and `/cad-minimalism-review` -- Carries: [#40](https://github.com/jcrenshaw-dev/baley/issues/40), [#68](https://github.com/jcrenshaw-dev/baley/issues/68), [#69](https://github.com/jcrenshaw-dev/baley/issues/69), [#72](https://github.com/jcrenshaw-dev/baley/issues/72) -- Blocked by: Build 3 ([#24](https://github.com/jcrenshaw-dev/baley/issues/24)) +- Carries: [#40](https://github.com/crenshawdev/baley/issues/40), [#68](https://github.com/crenshawdev/baley/issues/68), [#69](https://github.com/crenshawdev/baley/issues/69), [#72](https://github.com/crenshawdev/baley/issues/72) +- Blocked by: Build 3 ([#24](https://github.com/crenshawdev/baley/issues/24)) ```mermaid flowchart TD @@ -337,18 +337,18 @@ flowchart TD class T10,T11,T12,T13,T14,T15 planned ``` -Figure 5. Build 4's tasks. Arrows point from a task to what waits on it, and a dotted arrow is a wait on a Build 3 task. Build 3 T14 to T17 are merged ([#250](https://github.com/jcrenshaw-dev/baley/pull/250), [#253](https://github.com/jcrenshaw-dev/baley/pull/253), [#257](https://github.com/jcrenshaw-dev/baley/pull/257), [#262](https://github.com/jcrenshaw-dev/baley/pull/262)). One pull request per Build 4 task. +Figure 5. Build 4's tasks. Arrows point from a task to what waits on it, and a dotted arrow is a wait on a Build 3 task. Build 3 T14 to T17 are merged ([#250](https://github.com/crenshawdev/baley/pull/250), [#253](https://github.com/crenshawdev/baley/pull/253), [#257](https://github.com/crenshawdev/baley/pull/257), [#262](https://github.com/crenshawdev/baley/pull/262)). One pull request per Build 4 task. | Task | What | Pull requests | Status | |---|---|---|---| -| T1 | Redact git error text | [#268](https://github.com/jcrenshaw-dev/baley/pull/268) | Merged | -| T2 | Remove the key paths and seed the catalog at init | [#271](https://github.com/jcrenshaw-dev/baley/pull/271) | Merged | -| T3 | Scope records and approval | [#276](https://github.com/jcrenshaw-dev/baley/pull/276) | Merged | -| T4 | Scope changes | [#282](https://github.com/jcrenshaw-dev/baley/pull/282) | Merged | -| T5 | Routing, work orders and the first dispatch | [#290](https://github.com/jcrenshaw-dev/baley/pull/290) | Merged | -| T6 | Question sets and rounds | [#292](https://github.com/jcrenshaw-dev/baley/pull/292) | Merged | -| T7 | Refinement and versioned truths | [#296](https://github.com/jcrenshaw-dev/baley/pull/296) | Merged | -| T8 | Plan grammar, evidence map and the planner's rules | [#306](https://github.com/jcrenshaw-dev/baley/pull/306) | Merged | +| T1 | Redact git error text | [#268](https://github.com/crenshawdev/baley/pull/268) | Merged | +| T2 | Remove the key paths and seed the catalog at init | [#271](https://github.com/crenshawdev/baley/pull/271) | Merged | +| T3 | Scope records and approval | [#276](https://github.com/crenshawdev/baley/pull/276) | Merged | +| T4 | Scope changes | [#282](https://github.com/crenshawdev/baley/pull/282) | Merged | +| T5 | Routing, work orders and the first dispatch | [#290](https://github.com/crenshawdev/baley/pull/290) | Merged | +| T6 | Question sets and rounds | [#292](https://github.com/crenshawdev/baley/pull/292) | Merged | +| T7 | Refinement and versioned truths | [#296](https://github.com/crenshawdev/baley/pull/296) | Merged | +| T8 | Plan grammar, evidence map and the planner's rules | [#306](https://github.com/crenshawdev/baley/pull/306) | Merged | | T9 | Phase planning, drafts and plan approval | | In progress | | T10 | The plan checker and re-check scope | | Planned | | T11 | Risk at plan submit and git facts in the transaction | | Planned | @@ -359,7 +359,7 @@ Figure 5. Build 4's tasks. Arrows point from a task to what waits on it, and a d ## Build 5: Doing the work -[#26](https://github.com/jcrenshaw-dev/baley/issues/26) · milestone Evidence · planned +[#26](https://github.com/crenshawdev/baley/issues/26) · milestone Evidence · planned Baley runs a phase's tasks and runs every test and check itself, judging by exit code ([ADR 0014](adr/0014-baley-runs-tests.md)). A task close is refused for any path outside the lease until the owner rules on it ([ADR 0018](adr/0018-lease-enforced-at-close.md)). Build 5 also supplies the active dispatch's lease to the guard's write decision, whose only lease input until then is "no active dispatch", and adds the out-of-lease deny (GRD-R11, EXE-R8). The verifier gets specs and run ids, never the executor's summary. Diff review and the completion risk scan gate each plan. A `fix` ruling opens a gap plan, and a finding is filed on GitHub only on the owner's command. A returning finding the owner dismissed before is brought back beside that dismissal, and the owner confirms or reverses it. @@ -371,23 +371,23 @@ Build 5 serves the verifier the VER-R6 rule that rejects an integration check mo - ADRs: [0014 Baley runs tests](adr/0014-baley-runs-tests.md), [0018 lease enforced at close](adr/0018-lease-enforced-at-close.md), [0019 reviews adjudicated and ruled](adr/0019-reviews-adjudicated-and-ruled.md), [0037 plan re-check scope](adr/0037-plan-recheck-scope.md), [0042 mocked-boundary integration checks](adr/0042-mocked-boundary-integration-checks.md) - Cadence sources ([ADR 0048](adr/0048-port-what-cadence-hands-agents.md)): the executor text from `skills/cad-executor-contract/SKILL.md` and `cadence-core/workflows/execute.md`; the verifier text from `skills/cad-verifier-contract/SKILL.md` and `cadence-core/workflows/verify.md`; the test and check runs from `planning.mjs test-checks` and `test-evidence`; the lease at close from `planning.mjs lease-check`; the front doors `bal-execute`, `bal-verify`, `bal-coverage` and `bal-audit` from `/cad-execute`, `/cad-verify`, `/cad-coverage` and `/cad-audit` - Carries: no bugs -- Blocked by: Build 4 ([#25](https://github.com/jcrenshaw-dev/baley/issues/25)) +- Blocked by: Build 4 ([#25](https://github.com/crenshawdev/baley/issues/25)) ## Build 6: Milestones, landing, undo and pause -[#27](https://github.com/jcrenshaw-dev/baley/issues/27) · milestone Evidence · planned +[#27](https://github.com/crenshawdev/baley/issues/27) · milestone Evidence · planned Milestones close and archive. A finished phase lands on GitHub one step at a time, and each push, pull request, merge, tag and cleanup needs its own owner authorization. Landing waits while a deferred review is unruled. The managed project's releases are proposed and confirmed. Undo and pause work. Anchors are pushed at every occasion the design names. - Designs: [0001 evidence ledger](design/0001-evidence-ledger.md), [0003 configuration and routing](design/0003-configuration-and-routing.md), [0004 starting a project and changing scope](design/0004-starting-a-project-and-changing-scope.md), [0008 review](design/0008-review.md), [0011 milestones, landing, undo and pause](design/0011-milestones-landing-undo-pause.md) - ADRs: [0007 forge anchors](adr/0007-forge-anchors.md), [0031 one term per concept](adr/0031-one-term-per-concept.md) - Cadence sources ([ADR 0048](adr/0048-port-what-cadence-hands-agents.md)): the front doors `bal-land`, `bal-milestone` and `bal-undo` from `/cad-land`, `/cad-milestone` and `/cad-undo` -- Carries: [#68](https://github.com/jcrenshaw-dev/baley/issues/68), its landing part: git's error text in `landing/effects.rs` and the remote URLs landing shows go through `checkout::redact_git_text` -- Blocked by: Build 5 ([#26](https://github.com/jcrenshaw-dev/baley/issues/26)) +- Carries: [#68](https://github.com/crenshawdev/baley/issues/68), its landing part: git's error text in `landing/effects.rs` and the remote URLs landing shows go through `checkout::redact_git_text` +- Blocked by: Build 5 ([#26](https://github.com/crenshawdev/baley/issues/26)) ## Build 7: Next action and progress -[#28](https://github.com/jcrenshaw-dev/baley/issues/28) · milestone Evidence · planned +[#28](https://github.com/crenshawdev/baley/issues/28) · milestone Evidence · planned Baley answers what to do next and shows progress from keyed ledger views. A status read never writes. @@ -395,11 +395,11 @@ Baley answers what to do next and shows progress from keyed ledger views. A stat - ADRs: [0031 one term per concept](adr/0031-one-term-per-concept.md) - Cadence sources ([ADR 0048](adr/0048-port-what-cadence-hands-agents.md)): the front doors `bal-progress` and `bal-suggest` from `/cad-progress` and `/cad-suggest` - Carries: no bugs -- Blocked by: Build 6 ([#27](https://github.com/jcrenshaw-dev/baley/issues/27)) +- Blocked by: Build 6 ([#27](https://github.com/crenshawdev/baley/issues/27)) ## Build 8: Search, why and support work -[#29](https://github.com/jcrenshaw-dev/baley/issues/29) · milestone Evidence · planned +[#29](https://github.com/crenshawdev/baley/issues/29) · milestone Evidence · planned Ranked recall and exact "why" queries, then task, debug and spike on the ledger. Purge also removes search rows. Baley runs each debug reproduction itself: red before any hypothesis, and green at resolve over reproduction files byte-identical to the red run's. The owner can close an episode that never reproduced, with a reason. Debug gets the diagnosis review. A spike works outside the project and commits nothing. @@ -407,24 +407,24 @@ Ranked recall and exact "why" queries, then task, debug and spike on the ledger. - ADRs: none - Cadence sources ([ADR 0048](adr/0048-port-what-cadence-hands-agents.md)): the front doors `bal-task`, `bal-debug`, `bal-spike` and `bal-why` from `/cad-task`, `/cad-debug`, `/cad-spike` and `/cad-why` - Carries: no bugs -- Blocked by: Build 7 ([#28](https://github.com/jcrenshaw-dev/baley/issues/28)) +- Blocked by: Build 7 ([#28](https://github.com/crenshawdev/baley/issues/28)) ## Build 9: Removal -[#30](https://github.com/jcrenshaw-dev/baley/issues/30) · milestone Evidence · planned +[#30](https://github.com/crenshawdev/baley/issues/30) · milestone Evidence · planned Removes the old JSON record, the intent journal, participants, root binding, the Markdown renderers and parsers, and every `.planning` path. Builds `baley show` and record export to Markdown (EVD-R25), with the record-export spelling settled beside the standalone project export. Every owner command and every served instruction then reads the ledger. It also deletes the parked review engine (`crates/baley/src/inherited.rs` and the review code only it reaches), including its credentials reader (`crates/baley/src/review/provider/credentials.rs`), which still reads environment keys and `providers.env`. The real server's memory, start time and main operations are measured against design 0001's budgets. The timings are recorded as measurements, not test assertions. - Designs: [0001 evidence ledger](design/0001-evidence-ledger.md), [0012 host interface](design/0012-host-interface.md), [0014 support families](design/0014-support-families.md) - ADRs: [0006 no Markdown records](adr/0006-no-markdown-records.md), [0009 served instructions](adr/0009-served-instructions.md) -- Carries: [#93](https://github.com/jcrenshaw-dev/baley/issues/93) -- Blocked by: Build 8 ([#29](https://github.com/jcrenshaw-dev/baley/issues/29)) +- Carries: [#93](https://github.com/crenshawdev/baley/issues/93) +- Blocked by: Build 8 ([#29](https://github.com/crenshawdev/baley/issues/29)) ## Release ### R1. Release design -[#14](https://github.com/jcrenshaw-dev/baley/issues/14) · milestone Traders · not written · blocked +[#14](https://github.com/crenshawdev/baley/issues/14) · milestone Traders · not written · blocked The tag gate (on main, CI green, version matches the crate). Static, reproducible Linux and macOS archives, refused if a checksum differs from the committed pin. Signed artifacts and provenance attestations. Release notes and whether a CHANGELOG starts. How releases relate to forge anchors and tag rules. This work owns the signed checksum manifest's signature format and trust root, both verifier implementations (the installer's available before Baley exists and the updater's), and their qualification. It fills T14's named `verify_download` seam between download and staging in both delivery paths. T14 and T17 will have built and qualified delivery with unsigned development artifacts only; no release exists before #14 completes verification. Installation follows [ADR 0038](adr/0038-installer-and-opt-in-updates.md): one installer command, binary-written wiring at the stable path, and opt-in verified updates for new server sessions, with the hook taking the new stable-path version at its next call. Provider access follows [ADR 0039](adr/0039-session-owned-provider-credentials.md), with no Baley key file or provider call. #14 must name any new signature-verification dependency; none is selected yet. It also picks the first version number. @@ -446,49 +446,49 @@ Every issue here except the Build 3 issues blocks the release design #14. GitHub | Issue | What | Milestone | Depends on / blocks | |---|---|---|---| -| [#44](https://github.com/jcrenshaw-dev/baley/issues/44) | Start the architecture overview | Evidence | None | -| [#54](https://github.com/jcrenshaw-dev/baley/issues/54) | List the slow tests; read what the suite's count is made of | Encyclopedists | None | +| [#44](https://github.com/crenshawdev/baley/issues/44) | Start the architecture overview | Evidence | None | +| [#54](https://github.com/crenshawdev/baley/issues/54) | List the slow tests; read what the suite's count is made of | Encyclopedists | None | ### Bugs | Issue | What | Milestone | Depends on / blocks | |---|---|---|---| -| [#40](https://github.com/jcrenshaw-dev/baley/issues/40) | Read a command's cheap git facts inside the write transaction | Evidence | Carried by Build 4 | -| [#68](https://github.com/jcrenshaw-dev/baley/issues/68) | Git error text is stored and shown unredacted (URL credentials) | Evidence | Carried by Build 4 (built paths) and Build 6 (landing) | -| [#69](https://github.com/jcrenshaw-dev/baley/issues/69) | `model.escalate_on_failure` never applies to automatic retries | Evidence | Carried by Build 4 | -| [#72](https://github.com/jcrenshaw-dev/baley/issues/72) | The provider schema accepts whitespace-only text the validator refuses | Evidence | Carried by Build 4 | -| [#93](https://github.com/jcrenshaw-dev/baley/issues/93) | The audit admits any bold span as a requirement id and skips unreadable rows | Evidence | Carried by Build 9 | -| [#70](https://github.com/jcrenshaw-dev/baley/issues/70) | Forgejo tracker calls pass the host as tea's `--login` name | None | No build carries it | +| [#40](https://github.com/crenshawdev/baley/issues/40) | Read a command's cheap git facts inside the write transaction | Evidence | Carried by Build 4 | +| [#68](https://github.com/crenshawdev/baley/issues/68) | Git error text is stored and shown unredacted (URL credentials) | Evidence | Carried by Build 4 (built paths) and Build 6 (landing) | +| [#69](https://github.com/crenshawdev/baley/issues/69) | `model.escalate_on_failure` never applies to automatic retries | Evidence | Carried by Build 4 | +| [#72](https://github.com/crenshawdev/baley/issues/72) | The provider schema accepts whitespace-only text the validator refuses | Evidence | Carried by Build 4 | +| [#93](https://github.com/crenshawdev/baley/issues/93) | The audit admits any bold span as a requirement id and skips unreadable rows | Evidence | Carried by Build 9 | +| [#70](https://github.com/crenshawdev/baley/issues/70) | Forgejo tracker calls pass the host as tea's `--login` name | None | No build carries it | ### Build 3 issues | Issue | What | Milestone | Depends on / blocks | |---|---|---|---| -| [#190](https://github.com/jcrenshaw-dev/baley/issues/190) | `baley serve` drops calls it already read when input closes in the same burst | Evidence | T17 owns it: it runs the installed server live and fixes a confirmed defect in its own bug pull request. The 2026-10-11 installed run ended Claude Code's process with SIGTERM on its first `baley_apply` call: the one call sent was recorded exactly once (`install-live-2026-10-11-run1.md#exit.r1.answered`) and Claude Code saw the connection close before the answer arrived (`install-live-2026-10-11-run1.md#exit.condition`). That capture was recorded 1.4 ms before the signal, so under the rule corrected after the run no call is shown open inside the server, and the server's standard error did not reach the debug log, so no drain line could be seen (`install-live-2026-10-11-run1.md#exit.r1.stderr`). No dropped call was confirmed and no bug pull request was filed, so the in-flight check stays unverified. T12 merged in #236 without reproducing it. The 2026-10-08 runs confirmed no dropped call: every call the server read was answered and no drain line appeared, but no call was in flight inside the server at exit, so the check is unverified (`claude-live-2026-10-08-run2.md#exit.burst`). They found a different shutdown defect, #231, fixed in bug pull request #233 | -| [#203](https://github.com/jcrenshaw-dev/baley/issues/203) | An export through a store opened for the guard waits without limit for the new copy's writer queue | Evidence | Its text names no build | -| [#214](https://github.com/jcrenshaw-dev/baley/issues/214) | A half-written transport error line can be interleaved by another reply | Evidence | Its text names no build | -| [#219](https://github.com/jcrenshaw-dev/baley/issues/219) | Bug: the guard never judges a commit that has anything in front of `git` | Evidence | Its text names no build | -| [#220](https://github.com/jcrenshaw-dev/baley/issues/220) | Design: decide what the guard does with a commit or push it declines to read | Evidence | Its text names no build | -| [#221](https://github.com/jcrenshaw-dev/baley/issues/221) | Enhancement: judge a commit after a plain `cd` at the directory it names instead of asking | Evidence | Its text says to build it with #219 | -| [#227](https://github.com/jcrenshaw-dev/baley/issues/227) | A case-variant spelling lets a stub take the executable's or another artifact's file on a case-insensitive filesystem | Evidence | Its text names no build | -| [#235](https://github.com/jcrenshaw-dev/baley/issues/235) | The live restore script does not refuse a symlinked results folder or ledger, so it can delete a database outside the disposable root | Evidence | Its text names no build | -| [#238](https://github.com/jcrenshaw-dev/baley/issues/238) | A downloaded manifest's version text is split into every dot-separated part before the part count is checked, so a huge malformed version can exhaust memory instead of being refused | None | Its text names no build | -| [#239](https://github.com/jcrenshaw-dev/baley/issues/239) | Joining a relative link target to the link's folder keeps `bin/../` in the path, so a stable link the kernel resolves can fail with a name-too-long error under a very long `HOME` | None | Its text names no build | -| [#240](https://github.com/jcrenshaw-dev/baley/issues/240) | Rollback exchanges with the stable entry without confirming it is still this attempt's link, then deletes what it displaced, which can destroy an owner's newer replacement | None | Its text names no build | -| [#241](https://github.com/jcrenshaw-dev/baley/issues/241) | The lease check before activation is a point-in-time check, so an attempt that loses its claim after it can still activate | None | Its text names no build | -| [#242](https://github.com/jcrenshaw-dev/baley/issues/242) | The new link is published and its folder synced before the displaced entry is checked, so a conflicting activation can become durable if the updater dies before rollback | None | Its text names no build | -| [#243](https://github.com/jcrenshaw-dev/baley/issues/243) | The staged-binary check reads the file owner's execute bit, not whether the installing user can run the file | None | Its text names no build | -| [#244](https://github.com/jcrenshaw-dev/baley/issues/244) | A stale claim holder can still activate after another check takes over its lease | None | Its text names no build | -| [#245](https://github.com/jcrenshaw-dev/baley/issues/245) | The activation rollback can delete a replacement the owner put at the stable path during the rollback | None | Its text names no build | -| [#246](https://github.com/jcrenshaw-dev/baley/issues/246) | A retry that finds an already published staged binary skips the folder syncs a failed earlier attempt did not finish | None | Its text names no build | -| [#247](https://github.com/jcrenshaw-dev/baley/issues/247) | `install.sh`'s final staging move can overwrite a different binary another installer placed after the existence check | None | Its text names no build | -| [#248](https://github.com/jcrenshaw-dev/baley/issues/248) | `install.sh` checks only the staged file, so a version folder that is a symbolic link can place the binary outside the versions folder | None | Its text names no build | -| [#249](https://github.com/jcrenshaw-dev/baley/issues/249) | `install.sh`'s temporary-link check strips trailing newlines from `readlink`, so a crafted directory link can pass it | None | Its text names no build | -| [#251](https://github.com/jcrenshaw-dev/baley/issues/251) | Between install's recheck of `mcpServers.baley` and `claude mcp remove`, another writer can change the entry, so the removal can delete an entry install did not judge | None | Its text names no build | -| [#252](https://github.com/jcrenshaw-dev/baley/issues/252) | With nothing runnable at the stable path, install withholds the new guard hook but still removes a recorded older hook | None | Its text names no build | -| [#254](https://github.com/jcrenshaw-dev/baley/issues/254) | The interview's test for no write and no store open before the owner confirms calls only the conversation step, not the command, so it cannot catch either | None | Its text names no build | -| [#255](https://github.com/jcrenshaw-dev/baley/issues/255) | A rerun of the interview cannot finish a reviewer-list step that failed after the global file was replaced | None | Its text names no build | -| [#256](https://github.com/jcrenshaw-dev/baley/issues/256) | A failed sync of the settings file's folder after the provider-host write is reported as success, so the later writes go ahead | None | Its text names no build | +| [#190](https://github.com/crenshawdev/baley/issues/190) | `baley serve` drops calls it already read when input closes in the same burst | Evidence | T17 owns it: it runs the installed server live and fixes a confirmed defect in its own bug pull request. The 2026-10-11 installed run ended Claude Code's process with SIGTERM on its first `baley_apply` call: the one call sent was recorded exactly once (`install-live-2026-10-11-run1.md#exit.r1.answered`) and Claude Code saw the connection close before the answer arrived (`install-live-2026-10-11-run1.md#exit.condition`). That capture was recorded 1.4 ms before the signal, so under the rule corrected after the run no call is shown open inside the server, and the server's standard error did not reach the debug log, so no drain line could be seen (`install-live-2026-10-11-run1.md#exit.r1.stderr`). No dropped call was confirmed and no bug pull request was filed, so the in-flight check stays unverified. T12 merged in #236 without reproducing it. The 2026-10-08 runs confirmed no dropped call: every call the server read was answered and no drain line appeared, but no call was in flight inside the server at exit, so the check is unverified (`claude-live-2026-10-08-run2.md#exit.burst`). They found a different shutdown defect, #231, fixed in bug pull request #233 | +| [#203](https://github.com/crenshawdev/baley/issues/203) | An export through a store opened for the guard waits without limit for the new copy's writer queue | Evidence | Its text names no build | +| [#214](https://github.com/crenshawdev/baley/issues/214) | A half-written transport error line can be interleaved by another reply | Evidence | Its text names no build | +| [#219](https://github.com/crenshawdev/baley/issues/219) | Bug: the guard never judges a commit that has anything in front of `git` | Evidence | Its text names no build | +| [#220](https://github.com/crenshawdev/baley/issues/220) | Design: decide what the guard does with a commit or push it declines to read | Evidence | Its text names no build | +| [#221](https://github.com/crenshawdev/baley/issues/221) | Enhancement: judge a commit after a plain `cd` at the directory it names instead of asking | Evidence | Its text says to build it with #219 | +| [#227](https://github.com/crenshawdev/baley/issues/227) | A case-variant spelling lets a stub take the executable's or another artifact's file on a case-insensitive filesystem | Evidence | Its text names no build | +| [#235](https://github.com/crenshawdev/baley/issues/235) | The live restore script does not refuse a symlinked results folder or ledger, so it can delete a database outside the disposable root | Evidence | Its text names no build | +| [#238](https://github.com/crenshawdev/baley/issues/238) | A downloaded manifest's version text is split into every dot-separated part before the part count is checked, so a huge malformed version can exhaust memory instead of being refused | None | Its text names no build | +| [#239](https://github.com/crenshawdev/baley/issues/239) | Joining a relative link target to the link's folder keeps `bin/../` in the path, so a stable link the kernel resolves can fail with a name-too-long error under a very long `HOME` | None | Its text names no build | +| [#240](https://github.com/crenshawdev/baley/issues/240) | Rollback exchanges with the stable entry without confirming it is still this attempt's link, then deletes what it displaced, which can destroy an owner's newer replacement | None | Its text names no build | +| [#241](https://github.com/crenshawdev/baley/issues/241) | The lease check before activation is a point-in-time check, so an attempt that loses its claim after it can still activate | None | Its text names no build | +| [#242](https://github.com/crenshawdev/baley/issues/242) | The new link is published and its folder synced before the displaced entry is checked, so a conflicting activation can become durable if the updater dies before rollback | None | Its text names no build | +| [#243](https://github.com/crenshawdev/baley/issues/243) | The staged-binary check reads the file owner's execute bit, not whether the installing user can run the file | None | Its text names no build | +| [#244](https://github.com/crenshawdev/baley/issues/244) | A stale claim holder can still activate after another check takes over its lease | None | Its text names no build | +| [#245](https://github.com/crenshawdev/baley/issues/245) | The activation rollback can delete a replacement the owner put at the stable path during the rollback | None | Its text names no build | +| [#246](https://github.com/crenshawdev/baley/issues/246) | A retry that finds an already published staged binary skips the folder syncs a failed earlier attempt did not finish | None | Its text names no build | +| [#247](https://github.com/crenshawdev/baley/issues/247) | `install.sh`'s final staging move can overwrite a different binary another installer placed after the existence check | None | Its text names no build | +| [#248](https://github.com/crenshawdev/baley/issues/248) | `install.sh` checks only the staged file, so a version folder that is a symbolic link can place the binary outside the versions folder | None | Its text names no build | +| [#249](https://github.com/crenshawdev/baley/issues/249) | `install.sh`'s temporary-link check strips trailing newlines from `readlink`, so a crafted directory link can pass it | None | Its text names no build | +| [#251](https://github.com/crenshawdev/baley/issues/251) | Between install's recheck of `mcpServers.baley` and `claude mcp remove`, another writer can change the entry, so the removal can delete an entry install did not judge | None | Its text names no build | +| [#252](https://github.com/crenshawdev/baley/issues/252) | With nothing runnable at the stable path, install withholds the new guard hook but still removes a recorded older hook | None | Its text names no build | +| [#254](https://github.com/crenshawdev/baley/issues/254) | The interview's test for no write and no store open before the owner confirms calls only the conversation step, not the command, so it cannot catch either | None | Its text names no build | +| [#255](https://github.com/crenshawdev/baley/issues/255) | A rerun of the interview cannot finish a reviewer-list step that failed after the global file was replaced | None | Its text names no build | +| [#256](https://github.com/crenshawdev/baley/issues/256) | A failed sync of the settings file's folder after the provider-host write is reported as success, so the later writes go ahead | None | Its text names no build | ## Milestones @@ -496,13 +496,13 @@ Counts from GitHub on 2026-10-12. #238 to #249, #251, #252 and #254 to #256 have | Milestone | Theme | Closed | Open | Open issues | State | |---|---|---|---|---|---| -| [Evidence](https://github.com/jcrenshaw-dev/baley/milestone/1) | Replace the JSON store with one designed from how records are read and written, and move it out of the repository's .planning directory. | 45 | 21 | Builds 3 to 9, bug #40, #44, #68, #69, #72, #93 and Build 3 issues #190, #203, #214, #219, #220, #221, #227 and #235 | Open | -| [Encyclopedists](https://github.com/jcrenshaw-dev/baley/milestone/7) | Keep the repository's names, public face and build gate accurate: Baley names throughout, formatting, labels, description and topics, the README, and what the test suite costs. | 6 | 1 | #54 | Open | -| [Traders](https://github.com/jcrenshaw-dev/baley/milestone/5) | Publish Baley and install it on a machine for Claude Code, after a live run of the whole loop. | 0 | 1 | #14 | Open | -| [Seldon](https://github.com/jcrenshaw-dev/baley/milestone/3) | Bring a new or existing repository under Baley and write its first requirements and roadmap. | 1 | 0 | None | Closed | -| [Mule](https://github.com/jcrenshaw-dev/baley/milestone/4) | Change what was approved: edit or withdraw a phase, move its requirements, revise a truth or a requirement, keeping every earlier version on record. | 1 | 0 | None | Closed | -| [Little Lost Robot](https://github.com/jcrenshaw-dev/baley/milestone/6) | What an agent may touch: how a task's file lease is enforced, and whether Baley edits source itself. | 2 | 0 | None | Closed | -| [Terminus](https://github.com/jcrenshaw-dev/baley/milestone/2) | Open the repository to the public: a README for visitors, a security policy, issue templates, and branch protection with no bypass. | 2 | 0 | None | Closed | +| [Evidence](https://github.com/crenshawdev/baley/milestone/1) | Replace the JSON store with one designed from how records are read and written, and move it out of the repository's .planning directory. | 45 | 21 | Builds 3 to 9, bug #40, #44, #68, #69, #72, #93 and Build 3 issues #190, #203, #214, #219, #220, #221, #227 and #235 | Open | +| [Encyclopedists](https://github.com/crenshawdev/baley/milestone/7) | Keep the repository's names, public face and build gate accurate: Baley names throughout, formatting, labels, description and topics, the README, and what the test suite costs. | 6 | 1 | #54 | Open | +| [Traders](https://github.com/crenshawdev/baley/milestone/5) | Publish Baley and install it on a machine for Claude Code, after a live run of the whole loop. | 0 | 1 | #14 | Open | +| [Seldon](https://github.com/crenshawdev/baley/milestone/3) | Bring a new or existing repository under Baley and write its first requirements and roadmap. | 1 | 0 | None | Closed | +| [Mule](https://github.com/crenshawdev/baley/milestone/4) | Change what was approved: edit or withdraw a phase, move its requirements, revise a truth or a requirement, keeping every earlier version on record. | 1 | 0 | None | Closed | +| [Little Lost Robot](https://github.com/crenshawdev/baley/milestone/6) | What an agent may touch: how a task's file lease is enforced, and whether Baley edits source itself. | 2 | 0 | None | Closed | +| [Terminus](https://github.com/crenshawdev/baley/milestone/2) | Open the repository to the public: a README for visitors, a security policy, issue templates, and branch protection with no bypass. | 2 | 0 | None | Closed | ## Not yet decided @@ -514,6 +514,6 @@ What the records leave open or do not say. - The board's Status field is set only on the build issues, #40 and #14. - The release design #14 owns the signed checksum manifest's signature format, trust root and both verifiers, including qualification and any new dependency. Both `install.sh` and the updater now check SHA-256 against an unsigned manifest in `verify_download` before staging. T14 and T17 use unsigned development artifacts only, and nothing is released before #14 supplies and qualifies signature verification. Removing old versions also belongs to #14. - Build 3 T14 now provides `baley update`, the opt-in detached check started by `baley serve`, the development `install.sh`, ledger update claims and events, and staged binaries at `~/.local/lib/crenshawdev/baley/versions//baley`. The placement map projects the versions folder for write-only protection, and the security proposal renders its denials. T14 leaves the view set at 7 and records update events only in `user`, adding no event type to the session's project. T17 qualified the live install script, the update path and a newer stable-path hook beside an older running server and its ledger state; its bullet below holds the results. T11 supplies the installed executable path to the protected-path projection. -- Build 3 T15 provides `baley install [--host claude-code]`, which writes Claude Code's wiring at the stable path. The Claude folder is `CLAUDE_CONFIG_DIR` when it is set, else `~/.claude`, and one derivation of the stable path and the Claude folder serves install, the live guard and the doctor. Install writes the user settings file `/settings.json` with the pre-tool hook, the `permissions.deny` rules and the sandbox block merged into the owner's settings, the skill stubs under `/skills/`, and the user-scope MCP registration, which it has Claude Code write through `claude mcp add-json` and never writes itself. It replaces an artifact only when this binary's own render or `install.recorded` shows Baley wrote it. Otherwise it refuses `install-ownership-conflict` or `install-settings-conflict` before any write. Then it seeds the catalog and records `install.recorded` in `user`. The `install` view holds those records, so the view set rises from 7 to 8, and a binary built before T15 is read-only on `user` once a newer binary has brought its views to 8. The live guard now protects the placed stubs, the settings file, the registration file and the executable, and the versions folder as write-only. The doctor judges only what the install record shows, so a machine that never ran install still reports every artifact as not installed. An owner setting that weakens protection, a missing `bwrap` or `socat` on Linux, or nothing runnable at the stable path makes the install partial: the receipt names each gap with its fix and the command exits 1. Install writes nothing to `config.toml`. T16 builds on the settings file and the install record, as the next bullet says. T17's doctor reads the derived placements and the record in its installed-result checks, and the live install and Claude Code sessions on the written wiring ran in T17's qualification. Two cases are filed and not closed: a registration changed between install's check and its removal of the old entry ([#251](https://github.com/jcrenshaw-dev/baley/issues/251)), and an older recorded hook removed while nothing runnable is at the stable path ([#252](https://github.com/jcrenshaw-dev/baley/issues/252)). +- Build 3 T15 provides `baley install [--host claude-code]`, which writes Claude Code's wiring at the stable path. The Claude folder is `CLAUDE_CONFIG_DIR` when it is set, else `~/.claude`, and one derivation of the stable path and the Claude folder serves install, the live guard and the doctor. Install writes the user settings file `/settings.json` with the pre-tool hook, the `permissions.deny` rules and the sandbox block merged into the owner's settings, the skill stubs under `/skills/`, and the user-scope MCP registration, which it has Claude Code write through `claude mcp add-json` and never writes itself. It replaces an artifact only when this binary's own render or `install.recorded` shows Baley wrote it. Otherwise it refuses `install-ownership-conflict` or `install-settings-conflict` before any write. Then it seeds the catalog and records `install.recorded` in `user`. The `install` view holds those records, so the view set rises from 7 to 8, and a binary built before T15 is read-only on `user` once a newer binary has brought its views to 8. The live guard now protects the placed stubs, the settings file, the registration file and the executable, and the versions folder as write-only. The doctor judges only what the install record shows, so a machine that never ran install still reports every artifact as not installed. An owner setting that weakens protection, a missing `bwrap` or `socat` on Linux, or nothing runnable at the stable path makes the install partial: the receipt names each gap with its fix and the command exits 1. Install writes nothing to `config.toml`. T16 builds on the settings file and the install record, as the next bullet says. T17's doctor reads the derived placements and the record in its installed-result checks, and the live install and Claude Code sessions on the written wiring ran in T17's qualification. Two cases are filed and not closed: a registration changed between install's check and its removal of the old entry ([#251](https://github.com/crenshawdev/baley/issues/251)), and an older recorded hook removed while nothing runnable is at the stable path ([#252](https://github.com/crenshawdev/baley/issues/252)). - Build 3 T16 provides the owner's setup entry in `baley config interview`. After the thirteen settings questions the interview asks which outside review providers to use, `openai`, `deepseek` or `none`, and a blank answer keeps the stored choice. It shows design 0003's provider warning for each provider named and needs a typed `yes` to each, and it refuses `owner-identity-missing`, before the summary, when git has no `user.name`. The summary lists every file the confirmed writes can change or create. After the final `yes` four writes run in order, and a step with nothing to change is skipped. First, `providers.acknowledged` is recorded in the per-user project `user`, with the providers, the warning version and its SHA-256, git `user.name` and the time; a current acknowledgement is reused, and no view is added, so the view set stays at 8 and a binary built before T16 cannot write `user` once it holds the event. Second, each provider's API host, `api.openai.com` or `api.deepseek.com`, is added to `sandbox.network.allowedDomains` in Claude Code's settings file through the digest-checked replacement, with no install lock, no `install.recorded` and no `claude` command. Third, the global `review.reviewers` is written, and fourth, the settings answers go through the apply function `config set` uses. `review.reviewers` is now in the settings schema, default `["host"]`, with the interview as its setup reader and writer, and `config set` refuses it `list-not-settable`. A failure stops the run, prints its code and the writes already completed, and a rerun finishes only what is missing. `baley install` is unchanged: it records no acknowledgement and keeps every host the interview added. T16 hands Build 4 the recorded acknowledgement and `review.reviewers` for its review and fetch checks, and hands T17 the written settings and the install record, whose settings digest predates the file once the host step has run and is not drift. Enforcing the acknowledgement at issuance stays with Build 4. -- Build 3 T17 provides `baley doctor --host `, default `claude-code`, which refuses an unknown host `unknown-host` with exit 2 before the ledger opens, and the delivery checks over what `baley install` and `baley config interview` wrote. The doctor reports a partial install and a held-back sandbox block as gaps, a hook install withheld, the placed hook and settings against the whole entries install renders and the record holds, each stub the record lists that the binary no longer ships as stale, an older stub Baley placed, the version the stable path links to, the writability of each folder install writes into, the provider hosts the settings allow, each provider's acknowledgement and the effective `updates.auto`, with a fix on every finding. It never compares the settings digest, so the interview's provider hosts are not drift, and it reads no running session's version. The installed run of 2026-10-11 used Claude Code 2.1.296 on Linux with unsigned development artifacts served from a throwaway branch of this repository. It showed a new session loading the server, the hook and the stubs, a running session reporting that it found a newly written stub at its next turn (that report and the new session's list of stubs rest on the session's answer, not on a file, the ledger or a receipt, and are unverified), protection of Baley's folders (the Bash read of the home folder rests on the session's quote of the `cat` and is unverified), the versions folder and the stable path, the manual and opt-in updates, the install rerun and a newer hook beside an older server (`spikes/host-matrix/install-live-2026-10-11-run1.md`). It found three defects: the older server could not write its own project once `user` was at a newer view set ([#258](https://github.com/jcrenshaw-dev/baley/issues/258), fixed by [#260](https://github.com/jcrenshaw-dev/baley/pull/260)), install left a retired stub's file on disk ([#259](https://github.com/jcrenshaw-dev/baley/issues/259), fixed by [#261](https://github.com/jcrenshaw-dev/baley/pull/261)), and the doctor called Baley's own older stub foreign (commit `d95f482a`, in this task's code). A repeat of the install rerun after those fixes passes (`spikes/host-matrix/install-live-2026-10-11-run2.md`). Open after the run: the live repeat of #258's fix, owed at the next raise of the view set and run at Build 4 T3's raise to 9, where it passed (`spikes/host-matrix/older-server-live-2026-10-15.md`); Grep and Glob on Baley's home and config folder and the installed hook in bypass-permissions mode are unverified in a live session, as are whether a running session finds a newly written stub and the Bash read of the home folder, which rest on the session's answer; #190 is unverified; macOS was not run; signatures and release belong to #14. Build 3 stays open until T17 lands. +- Build 3 T17 provides `baley doctor --host `, default `claude-code`, which refuses an unknown host `unknown-host` with exit 2 before the ledger opens, and the delivery checks over what `baley install` and `baley config interview` wrote. The doctor reports a partial install and a held-back sandbox block as gaps, a hook install withheld, the placed hook and settings against the whole entries install renders and the record holds, each stub the record lists that the binary no longer ships as stale, an older stub Baley placed, the version the stable path links to, the writability of each folder install writes into, the provider hosts the settings allow, each provider's acknowledgement and the effective `updates.auto`, with a fix on every finding. It never compares the settings digest, so the interview's provider hosts are not drift, and it reads no running session's version. The installed run of 2026-10-11 used Claude Code 2.1.296 on Linux with unsigned development artifacts served from a throwaway branch of this repository. It showed a new session loading the server, the hook and the stubs, a running session reporting that it found a newly written stub at its next turn (that report and the new session's list of stubs rest on the session's answer, not on a file, the ledger or a receipt, and are unverified), protection of Baley's folders (the Bash read of the home folder rests on the session's quote of the `cat` and is unverified), the versions folder and the stable path, the manual and opt-in updates, the install rerun and a newer hook beside an older server (`spikes/host-matrix/install-live-2026-10-11-run1.md`). It found three defects: the older server could not write its own project once `user` was at a newer view set ([#258](https://github.com/crenshawdev/baley/issues/258), fixed by [#260](https://github.com/crenshawdev/baley/pull/260)), install left a retired stub's file on disk ([#259](https://github.com/crenshawdev/baley/issues/259), fixed by [#261](https://github.com/crenshawdev/baley/pull/261)), and the doctor called Baley's own older stub foreign (commit `d95f482a`, in this task's code). A repeat of the install rerun after those fixes passes (`spikes/host-matrix/install-live-2026-10-11-run2.md`). Open after the run: the live repeat of #258's fix, owed at the next raise of the view set and run at Build 4 T3's raise to 9, where it passed (`spikes/host-matrix/older-server-live-2026-10-15.md`); Grep and Glob on Baley's home and config folder and the installed hook in bypass-permissions mode are unverified in a live session, as are whether a running session finds a newly written stub and the Bash read of the home folder, which rest on the session's answer; #190 is unverified; macOS was not run; signatures and release belong to #14. Build 3 stays open until T17 lands. From 8d11d7486cbe883858cadd6f94ffed980262f6d0 Mon Sep 17 00:00:00 2001 From: John Crenshaw Date: Wed, 4 Nov 2026 15:24:14 -0500 Subject: [PATCH 2/2] docs(upkeep): replace issue types with type labels Issue types don't exist on a personal account, so the bug form and design 0015 use bug, enhancement, docs and task labels from the label standard in crenshawdev/.github. --- .github/ISSUE_TEMPLATE/bug.yml | 3 +-- docs/design/0015-repository-upkeep-and-build-gate.md | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index 619cb44b..308806f6 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -1,7 +1,6 @@ name: Bug description: Something Baley does wrong, or a doc that says something false -type: Bug -labels: [needs-triage] +labels: [bug, needs-triage] body: - type: textarea id: what diff --git a/docs/design/0015-repository-upkeep-and-build-gate.md b/docs/design/0015-repository-upkeep-and-build-gate.md index b1ba8ce2..295e8737 100644 --- a/docs/design/0015-repository-upkeep-and-build-gate.md +++ b/docs/design/0015-repository-upkeep-and-build-gate.md @@ -43,7 +43,7 @@ This area uses the existing [glossary](../../CONTEXT.md) terms without changing | UPK-R5 | `main` requires `cargo-test`, `clippy`, `cargo-deny` and `fmt`, with strict up-to-date checks and the expected check producer preserved; `fmt` becomes required only after its job exists and passes. | The gate includes formatting without requiring a result no workflow can produce. | | Active | | UPK-R6 | Formatting uses the exact toolchain in `rust-toolchain.toml`, explicitly installs that toolchain's `rustfmt`, and runs `cargo fmt --all --check`. | A minimal toolchain installation does not supply every optional component. | UPK-R5 | Active | | UPK-R7 | Repository metadata and README status describe the built product and supported host, using section 9's values. | Public entry points must describe the same project. | ADR 0033 | Active | -| UPK-R8 | Issues use the crenshawdev issue types and labels in the [org label standard](https://github.com/crenshawdev/.github/blob/main/LABELS.md). Dependabot's `dependencies` and `rust` labels stay as Dependabot applies them. A label is deleted only after every issue carrying it has the type that replaces it. | Removing a used label erases classification. | | Active | +| UPK-R8 | Issues use the labels in the [label standard](https://github.com/crenshawdev/.github/blob/main/LABELS.md). Dependabot's `dependencies` and `rust` labels stay as Dependabot applies them. A label is deleted only after every issue carrying it has the label that replaces it. | Removing a used label erases classification. | | Active | | UPK-R9 | The bug form sets the Bug type and `needs-triage`, and requires one of section 9's three impact choices. The question form sets `needs-triage`. Impact is the reporter's, and severity is set at triage. | Only the reporter knows what the problem costs them. | | Active | | UPK-R10 | Suite cost is measured at the implementation commit without a competing build, with six build jobs and six test threads, full per-file executed counts, the twenty slowest cases plus ties, and an assessment of every represented file. | Elapsed time and source counts do not establish test value. | UPK-R11 | Active | | UPK-R11 | Each build and test run uses its share of half the machine's threads: half the thread count divided by the number of streams building at the same time, rounded down. The other half stays free for the owner's own work. Nextest commands explicitly set the share as build jobs and test threads, and clippy explicitly sets it with `-j`. The repository sets no cargo job count and nextest's default profile uses every thread, so a command that does not set the share uses all of them. CI runs one stream and sets six. | Compilation and test execution have separate concurrency limits, a fixed count leaves threads idle when one stream builds alone, and a run on every thread leaves the machine no room for other work. | | Active | @@ -211,9 +211,9 @@ UPK-R10 and UPK-Q3 require the measurement specified in section 5, full per-file ### Labels -Baley uses the organization's issue types and labels, defined in the [org label standard](https://github.com/crenshawdev/.github/blob/main/LABELS.md). The issue types are Bug, Enhancement, Docs and Task. The labels are the four severity labels, the four resolution labels, `needs-triage`, `needs-info`, `good first issue`, `help wanted`, `security` and `design`. Dependabot adds `dependencies` and `rust` to its own pull requests and creates them when they are missing. +Baley uses the labels defined in the [label standard](https://github.com/crenshawdev/.github/blob/main/LABELS.md). Every issue gets one type label: `bug`, `enhancement`, `docs` or `task`. The other labels are the four severity labels, the four resolution labels, `needs-triage`, `needs-info`, `good first issue`, `help wanted`, `security` and `design`. Dependabot adds `dependencies` and `rust` to its own pull requests and creates them when they are missing. -Issue types replace the former `bug` and `enhancement` labels. The 18 issues that carried `bug` are type Bug, and the 54 that carried `enhancement` are type Enhancement. The 15 issues labeled `design` are type Task and keep the label. No issue carried `question`. Open issues that carried no label have `needs-triage`, as read on 2026-10-18. +Issues filed while the repository was in an organization have no type label, because GitHub issue types don't exist on a personal account. Open issues that carried no label have `needs-triage`, as read on 2026-10-18. ### Bug impact @@ -244,7 +244,7 @@ Not applicable as a new instruction surface: repository upkeep serves no model i | UPK-R5 | Built | [test.yml:132-151](../../.github/workflows/test.yml#L132) runs `fmt` beside the three other jobs, and the applied rules require all four from one producer with strict checks, as the note below records | | UPK-R6 | Built | [test.yml:138-151](../../.github/workflows/test.yml#L138) reads the exact channel from [rust-toolchain.toml:11](../../rust-toolchain.toml#L11), installs and selects it, explicitly adds its `rustfmt` component and runs `cargo fmt --all --check` | | UPK-R7 | Built | README describes the [status](../../README.md), [host](../../README.md#hosts-and-platforms), [four required checks](../../README.md#how-it-is-designed-and-built), [contribution policy](../../README.md#issues-and-contributions) and [designed credential boundary](../../README.md#outside-reviews-and-your-api-keys) and [what is still unbuilt](../../README.md#current-state). GitHub's description, six topics and disabled wiki match section 9, as read on 2026-10-06 | -| UPK-R8 | Built | The repository has the org standard's 14 labels plus `dependencies` and `rust`, and its issues carry 18 Bug, 54 Enhancement and 15 Task types, with `needs-triage` on the 39 open issues that have no type, as read on 2026-10-18 | +| UPK-R8 | Built | The repository has the label standard's 18 labels plus `dependencies` and `rust`, with `needs-triage` on open issues that carried no label, as read on 2026-10-18 | | UPK-R9 | Built | [bug.yml:3-4](../../.github/ISSUE_TEMPLATE/bug.yml#L3) sets the Bug type and `needs-triage`; [bug.yml:13-22](../../.github/ISSUE_TEMPLATE/bug.yml#L13) requires one of section 9's three impact choices with no preselected answer; the required `what`, `repro` and `version` fields remain at [6-12](../../.github/ISSUE_TEMPLATE/bug.yml#L6) and [23-36](../../.github/ISSUE_TEMPLATE/bug.yml#L23); [question.yml:3](../../.github/ISSUE_TEMPLATE/question.yml#L3) sets `needs-triage` | | UPK-R10, UPK-Q3 | Not built | Static counts below supply no executed counts or durations; [#54](https://github.com/crenshawdev/baley/issues/54) owns the measurement and assessment | | UPK-R11 | Built | The repository sets no cargo job count, so cargo uses every logical CPU; [.config/nextest.toml:3](../../.config/nextest.toml#L3) sets `test-threads = "num-cpus"`; nextest at [test.yml:60](../../.github/workflows/test.yml#L60) explicitly sets `--build-jobs 6 --test-threads 6`, and clippy at [test.yml:89](../../.github/workflows/test.yml#L89) sets `-j 6` |