Repository navigation
Releases
Bureau v3.9.2 — Decision answers, merge approval binding and Trivy parsing
Bureau v3.9.2 — Decision answers, merge approval binding and Trivy parsing
Release preparation · 2026-11-24 · source tag v3.9.2. v3.9.2 is a patch release on v3.9.0. Tagging and GitHub Release publication remain separate maintainer operations.
The release includes #165, #166, #167, #168 and #169 in first-parent merge order. All changes are merged. The changelog collects the four release fragments.
What changed since v3.9.0
Exact answers to implementation decision holds
For humans answering implementation questions, this changes what counts as an answer: only a later Linear reply starting with the exact Answer: <hold-id> line, followed by a nonblank body, answers the hold. Earlier prose and completion footers cannot release a new hold. Every matching decision and its questions reach implementation through retries and QA rework. CRLF and CR replies preserve their body, and decision waits release on the next poll or restart.
Admission covers dispatcher-launched Shepherd and rejects failed or empty startup route reads before ownership or labels. Dispatcher reconciliation retries read-only admission failures without Linear mutations. Ticks and read/move handlers preserve exit 24. Admission, overlap preflight and preparation share complete paginated canonical-branch resolution across Shepherd, dispatcher, queue and direct workers. Hold questions and app summaries lose private metadata before the runtime adds the ID and copyable instructions. A time cap before the first pass still labels and summarizes the halt.
Merge approvals bound to the reviewed head and target branch
Both automatic merge routes bind APPROVE and AUTO_APPROVE to the reviewed head and target branch on both gate passes. The gate still selects the newest PR comment containing the Code Review v2 heading through gh pr view --json comments. Target branch names may contain backticks, and the target SHA may advance. Each pass checks base freshness against the same PR snapshot used for the approval binding. Bureau authenticates the newest visible review in complete gate snapshots and atomically pins the head.
Bureau prepares the merge message before the final checks, unconditionally re-reads the approved target, checks ticket authorization immediately before merge, and checks merged state, merge commit and target afterward. A wrong target or an outcome that remains uncertain logs an error, posts a Linear comment and holds with needs-human and exit 25. An uncertain result gets one fresh reconciliation read; rollback and automatic merge retry are excluded from that response.
A stale approval returns to Build Review with exit 20 and a refreshed report even if earlier gate comments cannot be read. Shepherd uses agents.max_review_rounds as a separate stale-handoff limit per run, counted after the move to Build Review is confirmed. Human holds take effect immediately during confirmation; a move still invisible after one bounded polling budget returns quiet retry 2. Stale approvals preserve the dispatcher's base-refresh allowance.
The inline route reviews and cleans up against the PR's advertised head, including same-named fork branches, force-pushes and deleted or pruned branches. A failed cleanup fetch uses the pinned review base and returns quiet retry 2. The acceptance brief credits a verdict only to its separately recorded reviewed head, and Shepherd preserves post-merge reconciliation reports.
Target validation stays observational. GitHub has no expected-base merge option, so a retarget after the final read can still change the destination. The post-merge check detects that outcome; destination selection remains subject to that race.
Narrower Trivy inline-ignore stripping and Yarn parsing
For repositories using Trivy QA, Bureau strips ignore comments only in explicitly recognised per-file shapes with fully classified prefixes. Every other marker line stays byte-identical and reduces coverage with inline ignore format not recognised. YAML node properties, block scalars and flow collections, HCL interpolation and heredocs, Bicep multi-line strings and other unrecognised constructs also preserve all later marker lines. Dockerfiles retain every marker from the first << through end of file without parsing delimiters. Ordinary supported comments, string and data bytes, whitespace and LF/CRLF handling are preserved.
Yarn plain values now use an explicit character and leading-form allow-list for tool-written tokens, compact ranges, protocol references, URLs, hashes and checksums, booleans, cache keys, bin paths and platform conditions. Unsupported leading forms, : and # reduce coverage with lockfile format not recognised. Quoted values and recognised Yarn v1/Berry metadata keep their existing handling. Parser and neutralization identities change, so earlier receipts are remeasured once.
v3.9.0 publication record
The source-only record captures the published tag and merge commit, GitHub Release, release review rounds, both gate suites, CI results passing on the first attempt without reruns and the tested-tree comparison. See the unchanged v3.9.0 release notes.
New files
| File | Installation and purpose |
|---|---|
templates/scripts/bureau-hold-context.py |
Complete scripts resync together with interfaces for implementation decision context. |
tests/hold_answers_test.py, tests/test_hold_answers.sh, tests/test_inline_merge_regressions.sh |
Repository-only regression entry points. |
docs/release-notes-v3.9.0.md |
Unchanged archive of the previous release notes. |
Configuration and exit-code changes
Configuration keys, defaults, commands and the v3 exit vocabulary stay unchanged. Semgrep and Trivy retain their existing opt-in settings. The answer rule and approval binding apply when their respective runtime paths run.
| Behaviour | Action / result |
|---|---|
| Implementation decision answers | Reissue open holds with fresh IDs and obtain later replies beginning with the exact Answer: <hold-id> line and a nonblank body. Completed holds stay as they are. |
| Older approvals without binding lines | One fresh review is required. |
| Review evidence | Resync evidence writers and readers together. Older readers do not understand the new optional reviewed_head round field; legacy records still use matching receipts. |
| Trivy receipts | Earlier receipts are remeasured once because parser and neutralization identities change. |
A stale approval uses existing exit 20 and returns to Build Review. A wrong-target or still-uncertain merge outcome holds with exit 25. A definitive blocker such as a merge conflict also returns 25 when the base name is missing; a failed read with only undecided blockers returns 2. See exit codes.
Upgrade an existing installation
From v3.9.0, once v3.9.2 is published. Drain old drivers and stop every shepherd, queue loop, dispatcher and supervisor. Preserve unfinished work, local commits, customized assets, user instructions, Spec Kit assets and constitution, and shared runtime records. Compare installed drift and reconcile local incident fixes. Record the previous source commit and save the pre-upgrade inventory and private backup, including .bureau-install.json and .gitignore. Select the published v3.9.2 tag and refresh discovery.
Use the v3.9.2 preview and apply commands in each adopting repository with its existing target selection. Resync the complete scripts scope together with interfaces, including evidence writers and readers. Resolve conflicts before applying. --update edits configuration only.
Before re-enabling dispatch, reissue every open implementation hold with a fresh ID and its still-open questions, including tickets whose label was already removed. Keep each ticket held and ask humans to repost earlier decisions as later replies beginning with the exact Answer: <hold-id> line and a nonblank body. Completed holds stay as they are. Follow the Bash hold-reissue recipe and retry rule. Obtain one fresh review for older approvals without the binding lines. Expect earlier Trivy receipts to be remeasured once.
Run python3 scripts/bureau-doctor.py --mode background for a background installation or python3 scripts/bureau-doctor.py --mode app for an app-only installation and reconcile holds. Restart all drivers together. If dispatch was paused for the upgrade, run python3 scripts/bureau-runtime.py unpause after restart and hold reissue. Qualify a representative ticket before leaving dispatch unattended. Live adopter qualification remains pending.
From earlier versions. Apply the cumulative steps through v3.9.0 first, then this upgrade. The v3.9.0 publication record itself needs only a source checkout update.
Compatibility and rollback
Configuration schema versions 1 and 2, Bash 3.2+, Python 3.9+, Node 18+ for the shared scheduler, Spec Kit 1.2.2 and the current-workspace prepare/finish protocol apply. Scanner platform prerequisites remain as documented in the v3.9.0 compatibility record. Writers and readers of review evidence need a coordinated resync because of the optional reviewed_head round field; legacy records still use matching receipts.
For rollback, stop drivers and reconcile unfinished writers, local commits and holds. Follow the restore procedure to restore the complete v3.9.0 asset set, co...
Bureau v3.9.0 — Semgrep and Trivy evidence, Python bytecode fix
Bureau v3.9.0 — Semgrep and Trivy evidence, Python bytecode fix
Release preparation · 2026-11-20 · source tag v3.9.0. v3.9.0 is a minor release on v3.8.0. Tagging and GitHub Release publication remain separate maintainer operations.
The release includes #158, #159, #160, #161 and #163 in first-parent merge order. All changes are merged. The changelog collects the five release fragments.
What changed since v3.8.0
Optional Semgrep CE evidence in code review
Independent specialists finish their first pass before all review roles receive the bounded Semgrep projection in the late step. Semgrep scans offline under network denial. Bureau loads the bundled bureau-semgrep-rules.yml from the installed runtime and reads any configured extra rules and .bureau/semgrep-ignore.json suppressions from the pinned PR base. Bureau verifies a private copy of the Semgrep packages against a shipped manifest before probing the interpreter and re-hashes the copy before each scan side. Once Bureau has loaded the rules and validated the base suppressions, an empty set of eligible files on both sides passes as not_applicable without checking scanner prerequisites. A configured extra_rules file missing from the pinned base yields not_measured even with an empty eligible set.
In advisory mode, Bureau reports the evidence and skips the scanner's verdict floor. On a fresh review, any Semgrep projection, including not_applicable, triggers one late provider call per specialist after the independent passes. Malformed supplemental output ends the stage with exit 22. Blocking mode holds approval on new findings at or above the configured severity and on unavailable or incomplete measurements. Existing BLOCK verdicts and review caps still apply. With blocking enabled, Bureau's automatic merge pipeline rechecks the receipt against the head and base.
Optional Trivy evidence in QA
Trivy scans dependencies and configuration on the final QA head, including repositories without a test harness. This release excludes image scanning. The stage runs a verified private copy of the binary offline under network denial, checks the external database cache for integrity and freshness, and uses Trivy's embedded configuration checks. Database downloads occur in a separate operator refresh. Expiring exceptions come from the pinned base and the scan ignores head-native suppressions.
With Trivy enabled, live QA without a test harness runs git push origin HEAD even when there is no QA merge to publish. A rejected push exits 18 before Trivy evidence or ticket routing, including in advisory mode. A failed PR lookup or base fetch while pinning the scan base also exits 18 before scanning. Once the scan step runs, advisory mode reports the result and QA continues. Blocking mode holds for a human on qualifying new findings, measurement gaps or coverage gaps without an active exception. After a failed base scan, unclassified head findings still count toward the severity floor, even if every coverage gap has a file exception. With Trivy enabled in blocking mode, Bureau's automatic merge pipeline requires a valid final-head receipt even without a QA state. With agents.merge_mode: "manual" and no QA state, a human can merge without a Trivy receipt.
Scanner receipts and merge freshness
Both scanners write immutable evidence attempts and add a retention reference for each PR that produces or reuses one. Open consuming PRs keep referenced attempts beyond the newest 20. An unknown PR inventory keeps all referenced attempts.
For scanners enabled in blocking mode, Bureau's automatic merge pipeline checks the receipts and fetches the base again before the existing just-in-time merge gates. A final read checks the PR base name and live branch tip before the head-pinned merge. If either changes, the merge retries with exit 2 even when the final gates pass. The ticket checkpoint remains the last step before merge.
Python bytecode in stage commits
Stages suppress installed Bureau helper bytecode and exclude the Bureau cache from shell stage commits. The installer adds the literal scripts/__pycache__/ ignore rule and preserves existing rules. Staging and doctor match the exact path components and existing aliases of the same directory. A separate application's Scripts/__pycache__/ remains eligible for ordinary staging on a case-sensitive filesystem.
Merge gate holds on an unreadable commit-status read
When agents.merge_require_green_ci is on, Bureau's CI merge gate reads check runs and legacy commit statuses for the PR head. Before this release, a failed status read counted as an empty status list, so green check runs could pass the gate while statuses, possibly a failing required context, were never read. A failed status read now prevents green CI regardless of agents.merge_min_required_checks, and the gate line names the failed read and the head SHA. If no decided blocker takes precedence, the dedicated merge stage, the inline merge after review and the just-in-time recheck end with 2 and retry later. Decided check-run blockers, such as a failed check or an overdue queued check, keep 25, and merge_require_green_ci: false still switches the check off. This behaviour had been present since v3.1.0.
v3.8.0 publication record
The source-only record captures the published tag and merge commit, GitHub Release, CI results including one tag rerun, tested-tree comparison and decision to skip the manual live injection sample. See the v3.8.0 release notes.
New files
| File | Installation and purpose |
|---|---|
templates/scripts/bureau-semgrep.py, bureau-semgrep.sh, bureau-semgrep-rules.yml, bureau-semgrep-lock.txt, bureau-semgrep-manifest-*.json |
Complete scripts resync for code review, the blocking merge recheck, and the locked scanner packages and platform manifests. |
templates/scripts/bureau-trivy.py, bureau-trivy.sh, bureau-trivy-pins.json |
Complete scripts resync for QA, the blocking merge recheck and binary pins. |
templates/scripts/bureau-scan.py, bureau-scan-nonet.sb |
Shared scan and receipt support and the macOS network-denial profile. |
scripts/semgrep_pin.py |
Source-only generator for Semgrep wheel manifests. |
tests/test_semgrep*.sh, tests/test_trivy*.sh, tests/test_python_bytecode.sh |
Repository-only regression entry points. |
docs/release-notes-v3.8.0.md |
Unchanged archive of the previous release notes. |
Configuration and exit-code changes
Semgrep runs in the background review pipeline and Trivy runs in the background QA pipeline. The app's prepare/finish flow runs neither scanner, so enabling either in advisory or blocking mode has no effect there. Semgrep and Trivy are off until enabled. Set the appropriate enabled key to boolean true and select advisory for the first adoption. Blocking is a separate opt-in through mode. See Semgrep configuration and Trivy configuration.
| Key | Default / action | Effect |
|---|---|---|
review.semgrep.enabled, review.semgrep.mode |
false, advisory |
Enables offline Semgrep CE in background review. Blocking also rechecks before merge. |
BUREAU_SEMGREP_VENV |
Operator-supplied venv or shared-state fallback | Selects the pinned Semgrep environment for the matching platform and interpreter. |
qa.trivy.enabled, qa.trivy.mode |
false, advisory |
Enables offline Trivy in background QA. Blocking also rechecks before merge. |
BUREAU_TRIVY_BIN, qa.trivy.cache_dir |
Operator-supplied binary or shared-state fallback, plus an external cache directory | Supplies the pinned executable and its separately refreshed databases. |
qa.trivy.image_archive_command |
Remove from existing configurations | Runtime and doctor reject this key, including with null or with Trivy disabled. |
A shell stage that reaches its commit step with a staged Bureau cache change, including the cleanup deletion, stops with exit 24 and leaves the index untouched. See exit codes.
The CI merge gate no longer passes when the commit-status read fails, where it could merge before. If no decided blocker takes precedence, the merge ends with 2 (not yet decided) and retries; decided blockers keep 25. No configuration key changes.
Upgrade an existing installation
From v3.8.0, once v3.9.0 is published. Stop every shepherd, queue loop, dispatcher and supervisor. Preserve unfinished work, local commits, customized assets, instructions, the Spec Kit constitution and shared runtime records. Compare installed script drift and reconcile local incident fixes before replacing assets. Select the published v3.9.0 tag and refresh discovery. Save the pre-upgrade inventory and private backup, including .bureau-install.json and .gitignore in the backup. Use the v3.9.0 scripts-only preview and apply commands in every adopting repository with its existing target selection. Resolve conflicts before applying. --update edits configuration only.
To set up Semgrep for background review, create a standard-library venv with the supported CPython and install Semgrep CE 1.183.0 from the shipped wheel-only hash lock. Set BUREAU_SEMGREP_VENV or use the shared-state fallback. Qualify network isolation on the deployment host, then enable review.semgrep.enabled with review.semgrep.mode set to advisory. See Semgrep installation.
To set up Trivy for background QA, provide the verified 0.76.1 b...
Bureau v3.8.0 — QA evidence, approval status and runtime fixes
Bureau v3.8.0 — QA evidence, approval status and runtime fixes
Release preparation · 2026-11-14 · source tag v3.8.0. v3.8.0 is a minor release on v3.7.0. Tagging and GitHub Release publication remain separate maintainer operations.
The release includes, in first-parent merge order: #133, #134, #139, #140, #136, #138, #141, #142, #137, #143, #144, #145, #146, #147, #148, #149, #150, #151, #152, #153, #154, #155, #156. All changes are merged. The changelog collects the 22 release fragments; the CI dependency update in #137 is also included.
What changed since v3.7.0
Optional advisory QA evidence
Three new QA checks are opt-in and advisory and never change QA's result: fail-before-pass, test integrity and task completion. They read settings from QA's trusted pinned base and add bounded evidence to the acceptance brief. Existing mandatory cancellation, timeout and process-ownership holds still apply independently of their findings. Resync scripts together before enabling any check.
repo.changed_test_command enables fail-before-pass measurement after the final QA gate passes. Changed tests run in isolated head/base trees without inherited Git context. The configured command uses one unquoted {file} placeholder, for example python3 -m pytest -q {file}. Repositories with worktree links are not measured. Cleanup timeouts or errors preserve completed results and report leftovers for the next sweep; retained execution ownership keeps QA held. See configuration and #146.
repo.test_integrity_check: true adds static checks after green QA for removed assertions, new skip/disabled markers and unresolved first-party imports. Verdicts are pass, flagged or unverifiable. Python uses syntax trees; other supported languages use symmetric lexical counts, including tokens in literals and comments, so their findings say "assertion-like sites went down". Relative imports can resolve root packages or JavaScript index files; imports outside the tree and escaped JavaScript specifiers are not checked. These checks cannot establish whether an assertion became weaker in meaning. See #147.
repo.task_completion_check: true compares completed tasks' named paths with the pinned ticket diff and flags test tasks without added or modified test files. Counts and bounded per-task rules appear in the acceptance brief. This proves only that a named file changed; correctness still requires review. The default is off. See #152.
Exact-commit human approval accident guard
An opt-in bureau/human-approval commit status records approval of the exact current PR head. The decision script reads agents.merge_approvers from the default branch. An allowed person creates a comment whose first line is /bureau approve <40-hex-sha>. Only newly created comments trigger the workflow; edited comments do not count. A new push leaves its new commit without the status, and refused commands leave statuses untouched.
Install the separate approval workflow scope as well as the scripts scope, and commit the script, workflow and approval policy to the default branch. Require bureau/human-approval in branch protection for it to bind merges. Doctor reports configuration and installation problems and warns about a shared approver login; it does not read or change branch protection. Existing merge checks gain no context-specific approval gate.
This is an accident guard. Deliberate bypass remains possible: PR workflows can write the same status, and agents using an allowed person's login can approve themselves. Use a separate account or token when Bureau shares an approver's login. An unforgeable form needs a separate Bureau identity and remains future work. Absent or empty policy leaves the feature off; invalid or unreadable policy refuses approval. See #151.
Secrets file outside the checkout
New installations put their secrets file in ~/.config/bureau/<repository directory name>.env, with file mode 0600 and directory mode 0700. repo.env_file selects the file. Existing installations keep working with their current file and can move it using the migration steps.
Doctor warns about checkout-local or group/other-readable secrets. Moving the file blocks the conventional checkout path only: a process running with the user's permissions can still discover and read the external file. Update any BUREAU_ENV_FILE process override and restart loops and supervisors after moving it. See #155.
Stored Git credentials
Branch-controlled code no longer gets stored Git credential helpers by default: agents, test gates, the post-implement command, the review build check, conflict commands and changed-test measurements all receive the reset in both environment modes. Terminal prompting is disabled. Bureau's own git and gh calls retain their credential behavior.
In default environment mode, the reset preserves valid inherited counted Git configuration and appends an empty credential.helper entry; clean mode inherits no counted pairs. Both modes drop inherited GIT_CONFIG_PARAMETERS so an included file cannot restore helpers after the reset. Malformed inherited counts discard the inherited counted pairs and start the reset at entry 0. Invalid settings refuse with exit 24 before a gate creates a process hold. The reset switches off helper lookup; code can still supply its own helper or invoke one directly. Askpass limit: GIT_ASKPASS, SSH_ASKPASS and configured core.askPass are unchanged and can still supply a password.
Installations whose test gates or post-implement commands fetch private dependencies using a stored credential are affected. Set repo.untrusted_git_credentials: "keep" to restore the old behavior, or supply another authentication method before restarting. Resync the scripts together. On rollback, remove this setting for the older runtime; restoring that runtime restores its credential behavior. See #154.
Impeccable pins
Supported Impeccable versions are now skill 4.9.0 and engine 0.1.23. Installations with design.impeccable.enabled: true must separately install those versions and update design.impeccable.skill_version to "4.9.0" and design.impeccable.engine_version to "0.1.23" in .bureau.json, or remove both version keys to follow the pins, together with the scripts resync. Until tooling and configuration match, Bureau reports Impeccable as unavailable and stages continue without it. With Impeccable disabled, only the resync is needed; old version values are harmless while it stays off.
Follow the installation guidance: --no-hooks is required, and separately installed agents must be removed or disabled. Bureau installs none of this tooling. Upstream skill 4.9.1 and engine 0.1.24 are unsupported by this release. See #156.
QA retries, review questions and implementation searches
QA's final test gate allows one bounded rerun for complete, named unittest/pytest assertion failures. Crashes, timeouts, zero tests, cleanup failures and environment denials stay on the failure path. Only failure diagnostics are classified; test names and traceback file/function names do not decide eligibility. Simple native commands select failed cases; other commands rerun the gate and must show complete case identities and passing coverage of every original case. Counts alone cannot establish recovery. Phase 1 retains its existing whole-gate retry on any nonzero exit. See #140.
A recovered final gate records a bounded flaky marker, retains both logs and reports the flake in the QA comment and acceptance packet. Implementation receives no-change guidance only for a QA bounce carrying that recorded flake; ordinary QA and human feedback retain their prompts. Final QA gates default to 900 seconds per attempt through BUREAU_QA_TEST_TIMEOUT (1–86400). Older evidence readers must be upgraded together.
Review specialists separate optional human questions from acceptance-criteria holds. Questions never change verdicts; every hold still blocks. Independent and late reports retain their complete question union, rendering shows at most 32 with an omitted count, and fallback receives unchanged reports while validated, escaped questions are appended. The model-written comment may still repeat specialist text. See #149.
Imp...
Bureau v3.7.0
Bureau v3.7.0 — preserved work, design guidance and release tooling
Release preparation · 2026-11-09 · source tag v3.7.0. v3.7.0 is a minor release on v3.6.0. Tagging and GitHub Release publication remain separate maintainer operations.
The release includes, in first-parent merge order: #114, #115, #116, #119, #117, #118, #121, #120, #122, #123, #124, #125, #126, #127, #128, #129, #131, #130, #132. This includes the v3.6.0 publication record in #114 and the accepted control-plane design in #115; neither adds a new runtime. The changelog is the consolidated change and upgrade record.
What changed since v3.6.0
Preserve local work before stage starts
Ticket-stage checkout and disposable-worker reset hold with 30 / local-commits-held before dropping commits reachable only from the target branch or its attached/detached HEAD. Other local branches and all remote refs count as retained reachability. The hold names each commit and leaves the branch and checkout intact. Push work that must survive; an explicit one-run BUREAU_DROP_LOCAL_COMMITS=1 allows discarding it and prints/logs full discarded SHAs.
Reset-time holds preserve the worker through dispatcher reconciliation; the tick reports blocked with exit 30. Recovering a clean held worker with the override still requires ownership and a preservation record matching the issue, target branch and worktree identity, including when only the branch ref retains unpublished commits. Older hold records without that identity require explicit recovery. Recorded Bureau review checkpoints and successful worker-stage heads keep their existing resume/stall behavior only when exact heads and worktree identities match; author or message resemblance does not exempt operator commits. See exit-30 recovery.
Shepherd starts at QA, Build Review, Merge or Done require the ticket branch on origin and an open PR before any claim, label, Linear move or stage work. A confirmed missing prerequisite holds with 31 / open-pr-required and prints a PR creation command with the configured base plus the original restart command. Push/open the PR, then rerun that command. Lookup errors remain 18; direct review retains 15 for a confirmed missing PR. Build and earlier starts are unchanged. Review and shepherd share implement's bounded transient PR lookup retries. See exit-31 recovery.
Optional local Impeccable guidance and evidence
Per-repository design.impeccable is off by default. When enabled with verified local tooling, UX references the installed playbooks and preserves project rules in root PRODUCT.md/DESIGN.md; implementation feeds offline mechanical/deferred detector findings into its bounded loop. Review saves independent specialist judgements first, then considers detector findings as late machine evidence with separate receipts. Late evidence cannot erase the independent findings or holds.
Bureau verifies skill 4.8.0 and engine 0.1.18 without downloading or installing Impeccable, its hooks or agents. Operators supply the pinned tooling separately with hooks disabled and remove/disable any separately installed agents. Local snapshots, disabled telemetry, exact reasoned ignores and resolved in-repository paths constrain measurement. Unavailable tooling is explicit; failed measurement and outside-repository findings never mean clean. Cancellation latches SIGINT/SIGTERM across launch until the engine can be killed and joined, then removes snapshots and restores handlers. Disabled integration preserves existing prompts and checks. See configuration for the complete contract.
Provider, PR and admission reliability
Implementation retries transient post-push PR lookup, ready, view and create failures on both ready and draft paths. Defaults are three retries after 2/4/8 seconds; BUREAU_IMPL_PR_RETRIES and BUREAU_IMPL_PR_RETRY_WAIT provide bounded overrides. Failed lookup never implies no PR. Exhaustion holds with 18, identifies the pushed branch and asks the operator to rerun the stage before any hand-off.
Provider classification reads terminal Codex/Claude errors and CLI stderr, excluding tool/agent text and MCP server authentication notices. Capacity/overload retains exit 23 and genuine CLI authentication failure retains 16. Retry policy and evidence schema remain unchanged.
Read-only Codex runs keep the repository unwritable and gain a private writable scratch directory even with caller-supplied TMPDIR. Explicit CLI sandbox overrides prevent inherited writable roots/network settings from widening access; the prompt supplies a shell-quoted repository path for reads. Scratch cleanup covers completion, failure and stops. Optional per-run sandbox/command metadata needs no evidence schema migration; workspace-write and Claude behavior remain.
File-overlap admission scopes Linear comments/snapshots to linear.projects while retaining candidates and issues with reservations, waiters, migration entries or leases. Title/description edits no longer invalidate snapshots; membership, state and label edits still do. Shepherd uses the dispatcher's three-attempt bound. Provenance and ownership are rechecked against the final unfiltered snapshot; uncertain cross-project PRs retain their diffs. State/reservation formats and exits remain unchanged.
Shepherd --from-stage can move inactive/backlog tickets directly to ungated targets, respecting configured active states and strict withdrawal checks after the move. Gated targets refuse with 25 before claiming or moving; operators first move the ticket into an active state. Linear read failures retain 10, and existing ownership, human-hold and budget/progress rules remain.
Cheaper startup and read-only baseline reporting
Pipeline startup uses one framed source-time jq read instead of 35 while preserving defaults, warnings and live lookups. Unused settings and the unused QA sandbox predicate are removed. repo.commit_prefix never affected behavior and can be deleted. Doctor caches helper imports, crosschecks resolve their prefix once, and the legacy dashboard reads only its last 200 log lines. Review merging/evidence reconstruction reuse imports per invocation without changing output, ordering, digests or exits. The CI-marker check batches commit-object reads with length and range checks, fails closed on read/scratch errors, and cleans up on INT/TERM/HUP.
The source-only command python3 -I scripts/bureau-baseline.py --repo PATH [--weeks N] [--format md|json] reports retained weekly completions, abandonment, review rounds, costs, attribution and defect back-references with sources and missing measurements. Eligibility history and Triage entry stay unavailable rather than inferred. It needs local Git, authenticated gh and optional jq/Linear credentials; it installs no runtime assets. See the maintainer guide.
Contributor tests, CI and release checks
Pull requests run all Linux tests in four shards and the focused 56-entry macOS manifest in two. Main, release-branch and tag pushes, weekly schedules and manual dispatch retain all six full macOS shards. BUREAU_TEST_MANIFEST filters before sharding and rejects invalid/empty selections. Platform-sensitive additions need a manifest entry and reason; focused PR CI is not full macOS coverage. See contributor coverage.
Per-file process groups have weighted deadlines of at least ten minutes, TERM/KILL cleanup and explicit timeout results; BUREAU_TEST_FILE_TIMEOUT overrides them. Optional BUREAU_TEST_TIMINGS records duration/outcome/OS, and tests/update_shard_weights.py accepts successful records for the matching OS. Focused mutation controls require declared detection while ordinary positive runs keep complete matrices. Fixture hygiene adds injected clocks/process tables, readiness signals, batched PID audits, bounded inspection retries, disabled automatic Git maintenance and one-call runtime copies. The dispatcher shutdown fixture observes wrapper exit through a FIFO that closes under SIGKILL; the cancellation probe targets the populated check's isolated process group.
The source-only scripts/release_verify.py compares two refs and rejects changes in templates/, tests/ and scripts/, excluding only itself and tests/test_release_verify.sh. It prints differing paths and permits documentation-only changes. Use it between the release branch head that ran the full macOS suite and the candidate/tagged commit; see release verification. It checks tree identity, not test results.
Documentation and accepted design
The README now starts from the Linear workflow, human merge/hold boundaries, isolation and requirements; the static manual gains a light/dark SVG. [ADR ...
Bureau v3.6.0 — review isolation, evidence and bounded runs
Stable release · 2026-11-03 · source tag v3.6.0 · prepared 2026-11-02. The GitHub Release is marked as latest and records the exact tagged commit, merge commit 85b41a7 of #113. v3.6.0 is a minor release on v3.5.1.
The release includes #96, #97, #100, #101, #102, #103, #104, #105, #106, #107, #108, #109, #110, #111, the actions/checkout 7.0.1 dependency update #8, and #112 for review and QA configuration isolation. The v3 exit-code vocabulary, configuration schema versions and Spec Kit 1.2.2 pin stay in place.
What changed since v3.5.1
Review and QA configuration isolation
Code-review specialists, the fallback merger, the finding verifier, QA and their validation conflict repair exclude automatic project and local configuration. Claude starts with --setting-sources user, retaining the operator's user settings, authentication, endpoints, user instructions and plugins. Project agents, skills, commands, .mcp.json and hooks stay out through the adapter's isolation flags. Codex disables automatic project documents and hooks and ignores execpolicy rules while retaining Bureau's explicit sandbox, model and effort selections. Implement and other stages retain their existing configuration behavior.
Trusted instruction files, scripts/bureau-stage.md and their recursive @ imports come from pinned PR-base Git blobs and travel in system text. Nested instructions retain their directory scope. Import examples in fenced blocks and inline code spans are ignored. The checkout stays in place. Unsafe paths or contents, imports beyond five levels, or a complete instruction block above 256 KiB stop with exit 24 before model launch. Direct review/QA adapter calls require a full pinned BUREAU_PROVIDER_CONFIG_BASE commit; a missing pin also exits 24. See provider runtime.
Changes to protected agent configuration produce deterministic AGENT_CONFIG annotations under their own review heading and human_merge evidence dispositions. Protected paths include instruction files, .claude/**, .codex/**, .agents/**, root .mcp.json, scripts/bureau-stage.md and imported dependencies. These annotations ask the human merger to inspect the configuration change, are excluded from fixes and verification, and never change the verdict.
QA pins the open PR's actual target before the relevant provider call, including optional validation conflict repair. A successful lookup that finds no open PR permits a fetched origin/main pin for an operator rerun or a branch before PR creation. Lookup, metadata and fetch errors stop with exit 18. Operators must provide working PR lookup and base-fetch access even when using the no-open-PR path.
Evidence packet and advisory risk tier
The existing human-boundary acceptance brief gains stage verdicts and attempt IDs, CI check-run conclusion counts at its immutable HEAD, Git numstat and binary counts, files outside the committed task inventory, retained review rounds and cap, and per-stage/total tokens and estimated costs. Missing evidence is stated explicitly. CI collection failure renders unavailable and preserves the existing delivery, retry and deduplication path. Frozen PR/HEAD briefs retain their bodies; the extension has no backfill. See the packet contract and ADR 0012.
A mechanical low, normal or high risk tier accompanies those facts. Defaults classify docs/tests-only changes of at most 100 changed lines and five files as low when they contain no binary or sensitive path. A sensitive path or at least 1000 changed lines makes the tier high. Mandatory configuration, dependency, CI, environment and agent-path rules remain active when extra sensitive patterns are empty. The tier leaves routing, holds, verdicts and merge authority unchanged. Optional agents.risk_tier customizes thresholds and patterns; invalid settings exit 24 before stage mutations.
Run budget and cooperative kill switch
Optional ticket budgets limit cumulative tokens, provider attempts and summed provider wall time across stages, retries, checker/verifier calls, worktrees and driver restarts sharing one Git directory. Both budget and trusted-progress policies default off. Unknown token usage stays null and, with a token limit, stops at the next safe checkpoint unless allow_unknown_usage: true permits it; known lower bounds still apply. Call slots are reserved atomically before paid work. Token/time allowances can overshoot through calls already admitted.
Budget exhaustion and opt-in progress stalls use the existing cooperative stop latch. Current writers finish and join; the next checkpoint prevents further ordinary provider work or publication, preserves unfinished work and releases ownership after writers finish. Confirmed ticket withdrawal keeps precedence. Stops latch before diagnostic output, so closed stderr cannot bypass preservation. Terminal reasons use the closed existing-exit mapping: budget, timeout, watchdog, review_capped, human_hold, ticket_withdrawn and stalled. See the stop protocol.
Trusted progress requires a new contract-bound fact proved by an actual runtime-executed green gate at unchanged HEAD. Provider reports, commits, checkboxes and repeated green checks add no progress. The default enabled policy stalls after two completed work-stage attempts without a new fact; quiet waits and incomplete or held stages spend no turns. An empty enabled contract supplies no qualifying facts. Customized QA/review wrappers must use bureau_run_gate; bureau_record_gate remains observational.
Ticket ledgers, admitted-attempt histories and separate durable witnesses survive evidence pruning. Under an enabled policy, witnessed missing, empty or unreadable accounting holds with 25 / budget; other invalid mandatory accounting fails closed with 24. With both policies disabled, accounting failures warn without changing stage exits. Inspect and reconcile saved work and ownership before using the explicit operator reset. Deleting a ledger cannot renew an enabled allowance.
Process-group termination and the opt-in outside-sandbox gate
The shared bureau-process.py helper handles termination for providers, gates, conflict helpers, dispatch, runtime and post-implement hooks. Cancellation latches before cleanup and retains exit 130 and its log; timeouts retain 124 and their consumed reservation. Failed termination signals remain uncertain unless group absence is proved. A bounded two-second probe/reap loop handles macOS zombie-only groups; an exited leader alone cannot establish safe cleanup. The v3.5.1 macOS gate-cancellation limitation is addressed by these runtime and harness changes in #105 and #106.
Durable unfinished-process holds are written before spawning. Uncertain termination keeps holds, leases, branch registration and checkout state, blocks further publication and makes a restarted dispatcher refuse with 25 / human_hold. Determined timeout/cancellation exits survive. Operators must stop and inspect writers, reconcile work and explicitly remove the relevant holds before restarting. Post-implement launch creates its hold before forking; EXIT masks repeated signals and joins the hook before any preservation push. An unfinished fifteen-second drain retains the hold. See termination handling.
Opt-in agents.providers.codex.gate_outside_sandbox: true delegates the full configured gate after each successful Codex implementation pass and in QA's final phase to Bureau's existing filtered outside runner. Codex retains its editing sandbox and may run focused tests. Receipts and reservations bind the check to that pass, command and HEAD; final validation reuses it. Implementation receives the previous outside result in its next brief. Red completed implementation retains exit 14, red QA returns to Build, and independent blockers survive green tests. The default remains false. See ADR 0013.
Review merge in code with ADR citations
The three specialists still run in parallel. bureau-review.py merges their complete schema-valid JSON findings in code when summaries contain only neutral printable ASCII. It deduplicates by path, inclusive range and normalized title, retaining highest severity, distinct detail, source anchors, ADR reference...
Bureau v3.5.1 — Spec Review and UX fail closed on invalid results
Stable release · 2026-10-29 · source tag v3.5.1 · prepared 2026-10-28. The GitHub Release is marked as latest and records the exact tagged commit. The previous stable release is v3.5.0; its notes retain the earlier release history.
v3.5.1 is a patch release on v3.5.0. It contains only #98, which validates Spec Review and UX results before routing and binds their cached overlap readiness to the validated result contract. No configuration keys and no exit codes are new. The existing exit 22 (provider-or-result-error) widens to these invalid results; see the exit-code contract.
What changed since v3.5.0
All behavior changes below are on by default after resync. The readiness changes apply when the existing overlap gate is enabled; this release keeps its configuration unchanged.
Spec Review and UX validate their result contracts
Both background stages pass their new schemas through the shared provider adapter for Claude and Codex. Spec Review requires an exact, case-sensitive review_status of PASS or FAIL, ui_work_needed and a string summary. The UI field accepts booleans and the legacy strings true, TRUE, yes, YES, false, FALSE, no, NO, normalized to the existing UI/no-UI routes. UX requires an exact, case-sensitive design_status of COMPLETE, INCOMPLETE or NEEDS_HUMAN and a string summary.
The v3.5.0 prompt fields remain optional: Spec Review accepts integer issues_found and issues_fixed and a string array remaining_issues; UX accepts components_net_new with path and prop sketches, components_reused paths and open_questions with question q and boolean blocking. Prop sketches require name, type and a scalar-or-null default. The shared validator enforces declared type unions. Unknown extra fields are rejected, including within component, prop and question objects. Codex uses the existing strict wire projection and canonical validation; Claude uses the existing structured-output and transcript recovery rules. Stage prompts now request the required result fields, with review gaps in summary and design details, prop sketches and questions in design.md. Customized prompts can keep the declared optional fields. See the result contracts.
Invalid results hold before publication
Missing, unknown, wrongly typed or schema-invalid results exit 22, preserve stage edits and hold the ticket in its current state with needs-human. A failed label write leaves a durable local hold. The stages publish no success comment, ordinary push or Build/Design move. The shell also checks exact known statuses before routing. Valid results retain these routes:
| Result | Route |
|---|---|
Spec Review PASS, UI needed |
Design with needs-ux |
Spec Review PASS, no UI needed |
Build through overlap admission |
Spec Review FAIL |
Spec for rework |
UX COMPLETE |
Build through overlap admission |
UX INCOMPLETE |
Spec Review for rework |
UX NEEDS_HUMAN |
Remain in Design with the existing human hold |
The deterministic governance check can still force a valid Spec Review result to FAIL. Ticket withdrawal is checked first and retains precedence over result errors and human escalation.
Overlap readiness requires the current validated contract
Spec Review/UX readiness now records validated_status (PASS/COMPLETE) and result_contract_sha256, the SHA-256 digest of the installed canonical schema, alongside the existing branch, HEAD, task, ticket and configuration identity. Missing identity, a different digest or a non-passing status invalidates and deletes the cached record. A pending overlap readiness record from v3.5.0 therefore causes one fresh provider call on the first resume after resync, including when its original result was PASS or COMPLETE.
An invalid fresh result holds with 22. A fresh passing result records current readiness; subsequent overlap waits still return quiet 29 and retry admission without another provider call. Copy readiness and admission rules remain unchanged. No manual readiness migration is needed.
New files
| File | Installation and purpose |
|---|---|
templates/scripts/bureau-spec-review.schema.json |
Installed as scripts/bureau-spec-review.schema.json by scripts resync; validates Spec Review results by default. |
templates/scripts/bureau-ux.schema.json |
Installed as scripts/bureau-ux.schema.json by the same resync; validates UX results by default. |
tests/judged_stage_results_test.py, tests/test_judged_stage_results.sh |
Repository regression fixtures and their shell entry point; use fake Claude/Codex CLIs and local Git. |
The existing common-Git bureau/admission/v1.json readiness entries gain the two identity fields above. This release adds no state store or configuration key.
Upgrade an existing installation
From v3.5.0: stop all shepherds, queue loops, dispatchers and supervisors, preserve unfinished work and customized assets, and compare installed-script drift. Select tag v3.5.1 in the source skill checkout and refresh skill discovery. Resync the complete scripts and interfaces scopes together (--resync-interfaces --resync-scripts) in each adopting repository, including both new schema files, then restart drivers together. Resolve customizations through preview and resolve. --update changes configuration only. See Upgrade to v3.5.1 and the source-update instructions.
Check customized prompts against the declared result fields and expect one fresh provider call for each old waiting Spec Review/UX readiness record. Legacy ui_work_needed strings stay accepted. Run doctor and qualify a representative ticket before unattended dispatch.
From earlier versions: follow Upgrade to v3.5 and its earlier sections first, then the v3.5.1 steps above.
Compatibility and rollback
The v3.5 exit-code vocabulary, configuration schemas, Spec Kit 1.2.2 pin and app prepare/finish protocol remain compatible. Exit 22 already exists; its use widens to invalid Spec Review/UX results. The new result schemas and stricter routing apply automatically. Partial script/schema updates are incompatible.
To roll back, stop every driver, select tag v3.5.0 in the source skill checkout and restore its scripts and interfaces together, or restore the private backup (rollback), then restart drivers together. Preserve unfinished work and common-Git admission state for reconciliation. Rollback restores v3.5.0's result handling and cannot undo commits, pushes or Linear/GitHub changes made in between.
Validation
The maintainer's release validation record reports two Codex review rounds for #98. GitHub CI on #98 at 0ce1b2a is green on all 10 shards (run 40703173924) after one re-run of a macOS shard. On the first attempt, a gate cancellation test in tests/provider_adapter_test.py failed on timing; it covers code #98 does not change and is the known limitation below. The changed tests passed locally on macOS. Provider calls are faked in tests. No installation has run v3.5.1 before the release. Release preparation changes documentation only.
See current release status. The main-branch CI result remains for the maintainer to record.
Known limitations
On macOS CI, a gate cancellation test can intermittently lose the cancellation exit code 130. A gate run is never falsely green because of this. A fix is planned for a later release.
Bureau v3.5.0 — coordinated dispatch, evidence and bounded recovery
Stable release · 2026-10-28 · source tag v3.5.0 · prepared 2026-10-27. The GitHub Release is marked as latest and records the exact tagged commit. The previous stable release is v3.4.1; its notes retain the earlier release history.
v3.5.0 is a minor release on v3.4.1. It collects #76–#94 and the Spec Kit 1.2.2 upgrade in #75. The v3 exit vocabulary gains 28 and 29; scripts and interfaces must be resynced together. It goes straight to stable without a release candidate.
What changed since v3.4.1
Shell inputs and the child environment
Numeric settings are validated after source selection and before arithmetic. Invalid values use bounded defaults and warnings name only the key; leading zeros in inherited values and JSON digit strings are decimal. Supervisor environment/JSON precedence now takes effect. The environment filter judges actual child-visible exports, including caller-local shadowing and Bash 5.2's export-cache rebuild, and keeps reserved helper names out of children. Unknown or different encodings use conservative secret-carrier removal, which can remove otherwise allowed variables containing a short secret. These changes are on by default in both environment modes. (#76, #93)
The shell filter requires Python 3.9+ on the system default PATH from /usr/bin/getconf PATH and /usr/bin/env -0. A Python available only on a custom PATH is insufficient; BUREAU_PYTHON does not override the snapshot interpreter. Missing trusted tooling or an invalid snapshot stops before the child with 24. See numeric and environment rules for bounds, precedence and measured overhead.
Repository CI now runs four ubuntu-latest shards and six macos-latest shards, with a 90-minute job limit. BUREAU_TEST_SHARD=i/n selects one balanced share; unset runs the full suite and bash tests/run.sh --list lists it. Portable fixture paths and two CI-only test fixes are included: the fixtures accept Git's newer fetch-error wording and ensure productive silence tests emit enough events. These CI changes require no adopter CI resync. (#93)
Merge gate CI check
The merge gate's CI check now judges only the newest check run per check name and app, ordered by started_at (fractional seconds and numeric offsets included) and then by id; a group with an unreadable time orders by id alone. An older failed or queued run no longer holds back a newer successful run of the same check. Only successful check runs and successful legacy statuses count toward agents.merge_min_required_checks; skipped and neutral runs never fail the head and never count. This changes by default: a head whose checks are all skipped, for example a draft pull request in a workflow that skips drafts, now waits with "only 0 completed check(s)" under the default minimum of 1, also after the CI start grace. Set merge_min_required_checks: 0 to let such heads pass. The "no check run and no status" line still needs a head with no check run and no status at all.
Spec admission, numbering and phase resume
A full configured spec cap now returns quiet wait 28, with holding issue identifiers and states. Under manual merge mode, Merge stops counting by default; Build Review still counts. Set agents.max_concurrent_include_merge: true to keep the earlier manual single-flight behavior. The existing ticket-cap default remains 0 (unlimited). Numbers are reserved per issue across fetched origin branches, local branches and worktrees sharing one Git directory; retries reuse them. The allocator lock waits at most 300 seconds by default, then returns 124 and routes back to Triage. Separate clones/hosts need separate coordination. (#77)
Successful specify, plan and tasks phases now commit their feature directory locally and record input and artifact fingerprints. Registered workers resume only a verified committed prefix; ordinary retries discard unfinished edits. Changed inputs or failed spec review start again at specify. Stale local feature branches fast-forward; divergent local/origin history holds with 25 and needs-human before model work. Fresh spec resets use origin/<repo.base_branch>; a verified checkpoint selects its recorded commit. There is still one final stage push. Checkpoint reuse is on by default, requires both commits and metadata, and ignores older checkpoint formats. (#79)
Every spec now needs a plain, column-0 Governance and security section with Decision: and Rationale: lines before its first code or HTML block; leading YAML front matter is allowed. Background spec review and app spec/spec_review completion enforce the shared structural check by default. Add or move this section in existing specs. Spec review still judges adequacy; specify/plan must leave measurements, probes, benchmarks and full test gates to implementation/QA. Customized Spec Kit templates and the constitution remain preserved. See spec resume and governance.
The source range also upgrades Spec Kit to pinned 1.2.2, checks helper content before repository-writing CLI calls, preserves active dual-host integration and requires exact feature-directory variables for existing-feature helpers. Resolve customized helpers before specify integration upgrade; see Spec Kit resync. This upgrade is required for the new allocator. (#75)
Preserved implement worktrees and outside gates
A worker preserved after provider/result failure 22 or quota 23 can retain a clean HEAD ahead of origin solely by verified clean two-parent base merges. This narrow reuse rule is on by default, uses the original worktree path and requires Git 2.38+ for merge-tree verification. Own commits, conflict resolutions, dirt, unknown legacy records, timeouts and interrupted runs do not qualify. The existing clean on-origin rule remains independent of base resolution. See merge-only retries. (#80)
Codex implement/QA gate recovery now requires same-attempt receipt identity and proof that the exact configured command failed or aborted in a real repository-root execution. A legacy SANDBOX_GATE: claim alone stays blocked. Typed gate holds share that proof rule; independent product, security and human holds survive outside green. The executor reserves one outside run per stage attempt/gate/HEAD, with at most one verified executor publication commit between receipt and rerun. QA reuses its final outside test phase. This stricter behavior is on by default; keep repo.test_command set to the full project gate. See outside-gate recovery. (#81)
Review convergence and ticket withdrawal
The default review severity floor is now BUG: validated MINOR and SKIP findings are deferred, and a required fix can be discharged only by an exact match to a nonblank deferred finding. Choose MINOR for stricter review. A new total-round limit defaults to max_review_cycles + 1 (four with the existing default); unresolved work at that limit blocks with 25, while genuine approval can finish. Fresh attempts reserve a round before paid calls, including attempts later interrupted or failed. Changed policy or legacy approval records require fresh review; unchanged approval reuse and gate polling consume no round. Security/build floors and BLOCK remain in force. (#84)
Background ticket state is now a cooperative kill switch by default. Configured Done stops with 0, configured cancelled/canceled/duplicate IDs with 26, and other inactive IDs with 25. A latched withdrawal prevents later refresh failure or reactivation from restarting that run. Providers finish their current call; subsequent ordinary publication and recovery stop. Implement's best-effort preservation push of commits already made still runs. Additional checkpoint refresh failures warn once and allow the authorized unit to continue; mandatory reads stay strict. App prepare/finish keeps its existing protocol. See withdrawal. (#85)
Optional conflict repair and silence detection
Declared generated outputs and verified append-only files can be resolved deterministically, with dependency preparation, regeneration, explicit outside tests and checkout rollback. Both strategy lists default to empty; legacy mechanical rules remain available. Optional model repair runs only when agents.conflict_resolver.enabled is true, after deterministic resolution, with one durable attempt per ticket/base by default (maximum two). It cannot edit outside the conflict set or stage its own changes. Both forms need explicit repo.test_command and writable external snapshot storage sized for ignored dependencies too. (#86, #90)
Unresolved rebase ...
Bureau v3.4.1 — Herdr pane variables out of child environments; recovered Codex errors; kept Claude results
Stable release · 2026-10-20 · source tag v3.4.1. The GitHub Release is marked as latest and records the exact tagged commit. The previous stable release is v3.4.0; its notes retain the earlier release history.
v3.4.1 is a patch release on v3.4.0 with three fixes in one pull request, #73. The v3 exit-code contract stays; no exit code or configuration key is new, and no interfaces change. It goes straight to stable without a release candidate.
What changed since v3.4.0
Herdr pane variables stay out of child environments
Bureau drops every HERDR_ variable from the environments it builds for headless agents, their login checks, test commands and other child commands, in both repo.untrusted_env modes. Herdr is a terminal multiplexer; its pane variables made headless stages claim the operator's pane through the SessionStart hook, so Herdr later showed or resumed a Bureau stage instead of the operator's session. The clean-mode allowlist and exit codes stay the same. Installations that start shepherd runs from inside Herdr benefit directly.
Codex can recover from an error notice
A Codex error event followed by a later turn.completed no longer fails the stage with 22. A later completion recovers preceding error notices, and the last completion supplies usage. Successful call metadata records the recovered count and first message, truncated to 200 characters. Any turn.failed or error without a later completion still fails; final-message requirements, schema validation and failing-process classification are unchanged.
Claude structured results survive a late wakeup
Claude stages with tools run with ScheduleWakeup, CronCreate, CronDelete, RemoteTrigger and Monitor disallowed through --disallowedTools, including behind Headroom; upstream_summary stays tool-free. This prevents a late scheduled wakeup from discarding a completed structured result and turning finished work into exit 22.
When a successful Claude envelope lacks an object in structured_output and the stage expects a schema, the adapter takes the last StructuredOutput call's input from that session's stage transcript, validates it as before and records structured_source: "transcript" in the call metadata. An object in the envelope keeps precedence. An invalid latest transcript result still fails; a missing transcript or tool call retains the existing handling, including 22 for a prose-only result. Codex arguments, its final.txt path and the schemas are unchanged.
Upgrade an existing installation
From v3.4.0: select tag v3.4.1 in the source skill checkout, then resync the scripts scope as one set (--resync-scripts) in each adopting repository and restart queue loops and supervisors. No other action is required. See Upgrade to v3.4.1 and the source-update instructions.
From earlier versions: follow Upgrade to v3.4 and its earlier upgrade sections first, then follow the v3.4.1 steps above.
Compatibility and rollback
The v3 exit-code contract stays; no exit code or configuration key is new, and no interfaces change. No configuration or schema migration is needed.
To roll back, select tag v3.4.0 in the source skill checkout and resync the scripts scope as one set, or restore the private backup (rollback), then restart queue loops and supervisors. Rollback cannot undo commits, pushes or Linear/GitHub changes made in between.
Validation
The maintainer's release validation record reports new regression tests for each fix, each failing on v3.4.0. The full suite (107 tests) passed on macOS outside any sandbox on v3.4.0, on each fix and on the combined branch. Each fix had one independent Codex review with no findings.
GitHub CI is green on macOS and Ubuntu for #73 at head 35c176d. It was merged as 5b71c1b with an identical tree. Release preparation changes documentation only; runtime, installer, templates, tests and CI stay at the 5b71c1b baseline. The final tagged commit is recorded in the GitHub Release body. See current release status.
Known limitations
Provider calls are faked in tests. No live Herdr session, live Codex 503 recovery or live wakeup was reproduced. No installation has run v3.4.1 before the release, and there is no release candidate; the first installation runs follow the release.
Bureau v3.4.0 — operator hooks without submodule recursion; Claude effort per stage and configuration directory
Stable release · 2026-10-09 · source tag v3.4.0. The GitHub Release is marked as latest and records the exact tagged commit. The previous stable release is v3.3.0, with its candidates v3.3.0-rc.2 and v3.3.0-rc.1. Earlier releases: v3.2.1, v3.2.0 and its candidate v3.2.0-rc.1, v3.1.0 with its candidates v3.1.0-rc.2 and v3.1.0-rc.1, v3.0.2, v3.0.1, v3.0.0 with its candidates v3.0.0-rc.2 and v3.0.0-rc.1, and the previous major release v2.0.0.
v3.4 is a minor release on v3.3.0 with six pull requests. The v3 exit-code contract stays; no exit code is new. It goes straight from v3.3.0 to stable, without a release candidate.
What changed since v3.3.0
Remote git and the environment of branch code (#69)
With the default and with repo.remote_git_runs_hooks: "operator", Bureau's push, fetch and pull no longer recurse into submodules. A repository whose stages change submodule commits must push those itself or set the key to true; Bureau's push neither pushes nor checks those commits in the restricted modes. Bureau forces push.recurseSubmodules=no, fetch.recurseSubmodules=no and submodule.recurse=false after the caller's git options, so configuration files, includes, environment entries, -c and --config-env cannot turn recursion back on. The default fetch previously recursed on demand into populated submodules.
In those modes, calls that ask for recursion, git clone and unknown leading git options are refused with 128 before git runs. This includes git submodule and any accepted prefix of --recurse-submodules, --recurse-submodules-default or --recursive, except a value of no; --no-recurse-submodules is allowed. Every subcommand argument is checked, including option values and words after --. --attr-source and --shallow-file now consume their separate value in every mode. No Bureau script clones or asks for recursion.
The new "operator" value runs only the main checkout's own hooks directory, hooks/ in the git common directory, with core.hooksPath forced to its absolute path even from a linked worktree. An operator pre-push, such as Git LFS or a secret scanner, can run while a tracked .githooks or .husky directory stays excluded. Hooks defined in configuration stay switched off by name. true keeps every configured hook; false or an absent key keeps hooks off. Doctor reports remote_git_hooks as on, operator or off, accepts "operator" without a type warning and warns when Git LFS uses that mode without an executable pre-push in the operator directory.
By default the agent's environment no longer carries BUREAU_ENV_FILE and BUREAU_CONFIG. The same applies to the review build check, the three QA test runs, repo.post_implement_command, the Codex completion test, the app test action, upstream-port.sh build/test commands and the Claude and Codex login checks. "clean" already dropped them. Bureau's own scripts, the provider process, git and gh keep the paths. Custom project commands that read them must locate their configuration themselves or receive what they need explicitly. The shell and Python filters stay in parity; see the security boundary.
Claude effort per stage (#65)
The resolved effort now reaches Claude as --effort <value>, including behind the Headroom wrap. Precedence is BUREAU_REASONING_<STAGE>, then agents.<stage>.reasoning_effort, then agents.providers.claude.reasoning_effort. Claude accepts low, medium, high, xhigh and max; none, minimal and ultra now cause configuration error 22 before any provider call. An existing Claude effort setting therefore changes the next run: previously it was resolved but never passed, leaving the operator's Claude settings in effect. Without a setting the argv stays as before and the CLI keeps its own default. Codex effort is unchanged, and --describe reports the resolved effort for both runners.
A clean preserved worktree can resume (#66)
A stage with a target branch can re-register an unregistered preserved worktree and continue when it is a linked worktree of this repository at its top level, outside the main checkout, with an empty git status --porcelain --untracked-files=all and HEAD equal to or behind origin/<branch> after a fresh fetch. Ignored files do not count. The single Re-accepted the clean preserved worktree … line names the head and origin branch. Uncommitted changes, untracked files, commits origin lacks, an unknown or missing origin branch and a failed fetch retain the refusal, exit 21, needs-human and the halt comment; spec always refuses. A stage that failed with unfinished work still preserves it and drops its disposable registration.
A Claude configuration directory for an installation (#67)
agents.providers.claude.config_dir or BUREAU_CLAUDE_CONFIG_DIR selects the CLAUDE_CONFIG_DIR given to the Claude child and its claude auth status --json check; the environment variable wins. This lets headless stages use a lean profile instead of the operator's global instructions, hooks, plugins and user-scope MCP servers. The path must be absolute or start with ~/, and the directory must exist; an invalid setting ends with 22 before any provider call. Unset, this setting leaves the inherited Claude directory unchanged. Codex ignores it. --describe reports config_dir, and doctor reports claude_config_dirs per enabled Claude stage and warns when Claude is not logged in in a configured directory. See Claude configuration directory.
Malformed environment names in the secret filter (#70)
An environment entry whose name is no shell identifier no longer runs code during secret filtering. On bash 3.2, an indirect expansion of such a name could execute its array subscript in the Bureau shell, which holds the unexported .env keys; glob characters could also expand into filenames. bureau_without_secrets, bureau_untrusted_env and bureau_exec_runtime now skip those names unexpanded. Characters that make a subscript or substitution are rejected under every locale; with the caller's nocasematch, some locales still accept a few non-ASCII letters, which execute nothing. Well-named variables are filtered as before. Exploitation required a malformed entry in the environment that starts Bureau, such as a tmux server's environment. No setting or exit code changes.
.env and the start line (#71)
Configuration and troubleshooting now state the existing precedence: an allowed key defined in an installation's .env overrides the process environment and the start line; a key absent from .env uses the environment value. For one run, use a per-stage key absent from .env, or change or comment out that line and restore it afterwards. This is a documentation correction with no behaviour change or resync of its own.
Upgrade an existing installation
From v3.3.0: select tag v3.4.0 in the source skill checkout, then resync the scripts scope as one set (--resync-scripts); bureau-config.sh, bureau-doctor.py, bureau-env.sh, bureau-provider.py, bureau-runtime.py and bureau-supervision.py changed together. Pause dispatch, preserve unfinished work and customized files, and use preview and resolve. No files under templates/ outside templates/scripts/ changed since v3.3.0, so no interfaces resync is needed. No configuration schema or data migration is needed; /bureau-init --update changes configuration only.
From older versions: go through Upgrade to v3.3 and its earlier upgrade sections first, including the scripts and interfaces scopes where required, then follow the v3.4 steps. The previous stable notes retain the v3.3 candidate upgrade paths.
What to check before dispatch resumes
- Submodules: with the default and with
"operator", Bureau's push, fetch and pull neither push nor fetch submodule commits, and the push does not check whether they are on the remote. If stages chan...
Bureau v3.3.0 — shell gates for Codex implement and QA turns in the sandbox
Stable release · 2026-10-07 · source tag v3.3.0. The GitHub Release is marked as latest and records the exact tagged commit. v3.3.0 has the same runtime, installer, templates and tests as its second candidate, v3.3.0-rc.2. Both candidates, rc.2 and v3.3.0-rc.1, stay published as prereleases. The previous stable release is v3.2.1. Earlier releases: v3.2.0 and its candidate v3.2.0-rc.1, v3.1.0 with its candidates v3.1.0-rc.2 and v3.1.0-rc.1, v3.0.2, v3.0.1, v3.0.0 with its candidates v3.0.0-rc.2 and v3.0.0-rc.1, and the previous major release v2.0.0.
Stable release of the 3.3.0 candidates. v3.3 is a minor release on v3.2.1 with two pull requests: the implement gate and private temporary directories (#60), and the QA gate (#62). Codex implement and QA turns blocked only by tests the sandbox denies now reach a shell gate, where the full project test command decides the result outside the sandbox. Codex calls without TMPDIR also get a private temporary directory under /tmp. The v3 exit-code contract stays; no exit code is new. Claude runs are unchanged.
What changed since v3.2.1
Codex implement and temporary directories (#60)
- The Codex turn names sandbox-only blockers. Its implement prompt says to finish every other task and report
NEEDS_HUMANwith onenotes.needs_humanobject per affected task. Each stringreasonmust begin withSANDBOX_GATE:and name the failing tests and the denied operation, such as socket bind/listen, network access or access to the per-user temporary directory. Never change, skip or deselect tests to bypass the sandbox; code failures and other blockers must not use the prefix. - Part 1 admits the run to the existing completion path. Only a non-empty needs-human array with every reason prefixed, a configured
repo.test_commandand commits beyondorigin/mainqualify. The shell treats that run asCOMPLETEbefore the post-implement hook and squash-range check. A missing command, no commits, mixed reasons or malformed reasons leaveNEEDS_HUMANin place; hook and squash-range failures keep their existing handling. - Part 2 runs the project gate over the pushed state. If the intervening checks still allow completion, the shell runs
repo.test_commandonce after the final push, outside the Codex sandbox throughbureau_untrusted_env bash --noprofile --norc -c, without Bureau secrets. Green continues asCOMPLETEand hands off to QA or Build Review; red, or a command emptied in between, restoresNEEDS_HUMANand keeps the ticket labelledneeds-human. The ordinary Codex completion check does not run the suite a second time. The implement summary comment records the gate decisions. - The shell reader is strict. It accepts one JSON object or a cost envelope whose
resultstring holds one object, reads the whole input and preserves parsing failure. Fenced JSON, trailing garbage, multiple values and partial reads cannot qualify. Every needs-human entry must be an object with a string reason beginning with the prefix. - The provider lets Codex reach the shell gate. A Codex
NEEDS_HUMANresult with onlySANDBOX_GATE:reasons is passed through even when it contains “Operation not permitted”, “Permission denied” or “sandbox denied”; the provider no longer ends that call early with24. Other denied-operation results keep the existing environment-blocked handling. Claude result handling is unchanged. - Codex gets a temporary directory it can use. When its child environment has no
TMPDIR, the provider allocates a privatebureau-codex-*directory directly under resolved/tmp, outside the repository regardless ofTEMPorTMP. Allocation follows the signal handlers, and cleanup follows the child on completion, timeout, interruption and exceptions. Removal failures are reported without failing the call. An existingTMPDIRpasses through unchanged; the provider's own environment is unchanged.
Codex QA (#62)
- The QA turn names sandbox-only blockers. It reports
NEEDS_HUMANwith stringcoverage_notesbeginning withSANDBOX_GATE:and naming the tests and denied operation. QA keeps its existing schema, with no needs-human array. The strict reader accepts exactly one JSON object or a cost envelope whoseresultstring holds exactly one object; fenced JSON, trailing garbage, multiple values, missing or non-string notes and unprefixed blockers never qualify. Never change, skip or deselect a test to bypass the sandbox; a correctness bug or a harness broken outside it staysNEEDS_HUMANwithout the prefix. - The final outside run decides the status. The existing Phase 3 run of the project test command outside the sandbox decides GREEN (Build Review) or RED (Build), without a
needs-humanlabel or an extra test run. The decision leads the QA summary comment. The squash-range check still holds the ticket for a human if it finds a CI suppressor or cannot read the range; its report then leads the comment. - The provider lets Codex QA reach its gate. A qualifying QA result is passed through even when it names “Operation not permitted”, “Permission denied” or “sandbox denied”, instead of ending early with
24. The implement exception remains scoped to itsnotes.needs_humanarray; QA usescoverage_notes. Claude prompts and behaviour, other stages and exit codes are unchanged.
Claude prompts, child environments, result handling and exit codes retain their previous behaviour. See the implement sandbox gate contract and the QA sandbox gate contract for the runtime details.
Upgrade an existing installation
From v3.2.1: select tag v3.3.0 in the source skill checkout, then resync the scripts scope as one set (--resync-scripts); implement-pipeline.sh, qa-pipeline.sh, bureau-config.sh and bureau-provider.py changed together. Pause dispatch, preserve unfinished work and customized files, and use preview and resolve. No configuration, interface or schema migration is needed.
For Codex implement and QA, repo.test_command must hold the full project gate, including the tests the sandbox can deny. Restart queue loops and supervisors after the resync so they read the new scripts; a stage already running keeps the old scripts because the installer replaces files atomically. Run doctor (python3 scripts/bureau-doctor.py --mode background) and follow Upgrade to v3.3.
Already on a candidate. From v3.3.0-rc.2: select tag v3.3.0; no resync is needed, because runtime, installer, templates and tests are identical (the manifest keeps naming rc.2 as its source until the next resync). From v3.3.0-rc.1: select tag v3.3.0 and resync the scripts scope as one set for rc.2's QA changes (qa-pipeline.sh, bureau-config.sh and bureau-provider.py), then restart queue loops and supervisors. There are no file changes beyond what rc.2 had.
From v3.1.0 or older: go through Upgrade to v3.2 and its earlier upgrade steps first, including the scripts and interfaces scopes and the applicable configuration checks, then follow the v3.3 steps above.
Compatibility and rollback
Dependencies, supported platforms, configuration schemas and the manifest version are unchanged. The v3 exit-code contract stays; no configuration or data migration is needed.
To roll back to v3.2.1, select tag v3.2.1 in the source skill checkout and resync the scripts scope as one set, or restore the private backup (rollback). That restores the previous Codex handling of sandbox-denied tests and temporary directories. Selecting tag v3.3.0-rc.1 instead and resyncing the scripts scope as one set removes only the QA gate, retaining the implement gate and private temporary directories. Restart queue loops and supervisors after either resync. Rollback cannot undo commits, pushes or Linear/GitHub changes made in between.
Validation
Live implement acceptance in an installation. An installation ran its first real Codex implement turn (gpt-6.1-sol, reasoning high) on the gate. Codex reported NEEDS_HUMAN with exactly o...