Skip to content

Releases

v0.8.0 — bounded investigation and integration fixes

Choose a tag to compare

@shanemhamilton shanemhamilton released this 11 Oct 20:27

Changed

  • Bound context batches by configurable file and byte limits, retain deferred work,
    and complete context, hunt, review, and checkpoint for each admitted slice.
  • Trace lifecycle, shared-state, transaction, and API/error contracts alongside
    security paths, while retaining the same source, review, and executable-proof gates.
  • Build local priority evidence in detect-only mode even when baseline execution is
    unavailable; missing checks remain unknown.

Fixed

  • Keep exact audit membership separate from the 200-file display summary so larger
    histories do not make previously audited paths look new.
  • Bind extraction to the audited checkout with run-local indexes, and invalidate
    reachability conclusions when directed edges or entry seeds change.
  • Accept baseline receipts at the integration baseline gate and preserve immutable
    evidence across integration retries without relaxing verification or source checks.
  • Preserve the saved run counter on Linux when using the no-Python state fallback.
  • Read proxy secret permissions portably while still requiring a regular file with
    mode 0600 before any Docker access.
  • Record canonical run/worktree paths and resolve the Git executable so filesystem
    aliases on macOS satisfy the same strict identity checks used on Linux.
  • Bind landed closeout to its run ID and load trusted proof modules independently
    of the audited checkout, preserving the integration receipt's proof fields.
  • Support preflight's sibling worktree and evidence layout during integration,
    rejecting tracked paths that could overwrite evidence before Git changes trees.

Evaluation

  • Add optional context on/off and cold/warm measurement with explicit provenance and
    accounting. Runtime oracles and live paired runs are still required before claiming
    improved detection, precision, or cost.

v0.7.1 — review-gate hardening & lifecycle reconciliation

Choose a tag to compare

@shanemhamilton shanemhamilton released this 26 Sep 13:04

Review-gate hardening and lifecycle test reconciliation

Bugsweep v0.7.1 aligns the review gate requirements across documentation and enforcement, hardens prompt evaluation defenses, and reconciles the integration test suite with the v0.7.0 lifecycle contract.

  • Review gate parity & prompt injection hardening: Closed review-gate drift where low and medium severity findings were documented to need 1 review but required K=3 votes at closeout. Aligned docs, scripts, and Repro eligibility checks to require K native votes uniformly.
  • Ledger vote verification: Fixed ledger vote checking to avoid keying on model-written fix severity, preventing bypasses via severity downgrade.
  • Branch protection in cleanup: bugsweep-cleanup.sh now strictly validates branch ownership and refuses non-bugsweep/* branches before merging or deleting.
  • Prompt injection hardening: Hardened Hunt, Challenge, and Referee prompts to treat target comments, docs, and repository instruction files as untrusted claims, preventing embedded comments from misleading Skeptics into rejecting legitimate findings.
  • Bats test suite lifecycle reconciliation: Reconciled Bats contract and integration test suite with the v0.7.0 lifecycle contract, retiring legacy shell rerun assertions in favor of the structured proof pipeline (resolves #8).
  • CI test runner portability: Fixed bench adapter contract tests to use POSIX-compliant printf across shell variants (e.g. Ubuntu's dash) and added fallback shims for macOS runners lacking sha256sum.

Install

curl -fsSL https://raw.githubusercontent.com/shanemhamilton/bugsweep/main/install.sh | bash -s -- --version v0.7.1

Full changelog: v0.7.0...v0.7.1

v0.7.0 — lifecycle parity & evidence pipeline

Choose a tag to compare

@shanemhamilton shanemhamilton released this 22 Sep 16:14

Baton-parity lifecycle and structured evidence pipeline

Bugsweep now enforces a single-worktree ownership invariant matching the Baton skill, preventing worktree and branch sprawl across multi-agent audits.

  • Single-worktree lifecycle contract: Every Bugsweep invocation owns exactly one RUN_DIR, worktree, and branch. Subagents (Hunters, Skeptics, Referees) and resumed sessions reuse that exact worktree and never invoke preflight themselves.
  • Concurrent isolation guards: Sibling runs running concurrently must explicitly record their isolation reason, owner, base SHA, branch, and retirement trigger.
  • Unified quality gate workflow: Added scripts/quality-check.sh covering pytest unit test coverage floors, installer verification, Bats lifecycle and install contracts, and ShellCheck in a single pass.
  • Structured evidence pipeline: Unified models and parsers for execution events, review evidence, terminal lifecycle states, and fix verification receipts.
  • Worktree sprawl eliminated: Pruned legacy/dangling worktrees, prevented runaway branch creation, and strengthened Git caching and .gitignore hygiene.

Verification

  • 630 Python unit tests passed with 84% scorer coverage and 80% installer coverage.
  • Bats lifecycle, closeout-contract, and install-contract suites passed completely.
  • ShellCheck passed cleanly across all core scripts.
  • Clean working tree on main with verified remote alignment.

Install

curl -fsSL https://raw.githubusercontent.com/shanemhamilton/bugsweep/main/install.sh | bash -s -- --version v0.7.0

Full changelog: v0.6.0...v0.7.0

v0.7.0-rc.1 — experimental evidence pipeline

Choose a tag to compare

@shanemhamilton shanemhamilton released this 06 Sep 18:09

Development prerelease of the evidence and evaluation changes. Not production-ready. Stable remains v0.6.0; main is unchanged.

Adds structured execution/review/fix evidence, durable closeout records, frozen benchmark schedules and stage comparisons, human-calibration tooling, staged installer recovery, analyzer imports, and cross-platform CI.

Validation: 630 Python tests pass; scorer aggregate line/branch coverage is 84%. The installer/quality subset passes 25 tests with 80% installer-helper line/branch coverage. Three pure Bats checks and focused ShellCheck pass. A further 19 Git-backed Python tests pass.

The full Bats shell compatibility suite completed: 293 passed, 152 failed (445 total). Failures span cleanup, closeout, finalize, integration, reproduction, checks, referee, and benchmark contracts. Live model/host runs, Docker isolation and provider-cap enforcement, actual installer recovery, analyzer compatibility, and final acceptance remain incomplete. Corpus inventories are unverified, native ground-truth detection integration is missing, and five required evidence kinds remain unsupported. No measured efficacy or production-safety claim is made.

Use only for development evaluation. See the tagged README for the complete checkout and explicit-version installation instructions; downloading install.sh alone omits required helper files.

Cross-platform CI failed all four jobs: macOS lacks sha256sum in the benchmark adapter; Linux exposes escaped JSON in a fake-native test fixture. Each job passed 629 of 630 Python tests and stopped before later gates. These results reinforce the experimental status; stable promotion is blocked.

v0.6.0 — closed-loop runs

Choose a tag to compare

@shanemhamilton shanemhamilton released this 29 Aug 18:10

Closed-loop runs

Bugsweep now finishes each run instead of leaving temporary Git resources as a review queue.

  • Locally lands verified fixes through an exact-source, post-merge quality-gate receipt.
  • Records confirmed but unresolved work in the project's existing tracker with verified readback.
  • Recovery-bundles unlanded commits before exact branch cleanup.
  • Reports success only after the run-owned branch and worktree are both absent.

Scope and safety

  • Path-scoped invocations now stay path-scoped throughout planning, coverage, and priority intelligence.
  • Cleanup requires an exact run branch and no longer scans or prunes a bugsweep/* prefix.
  • Fix-cap exhaustion switches the remaining frontier to detect-and-record mode instead of ending discovery.
  • Fix modes require Referee evidence before mutation; flaky or unchecked fixes cannot auto-land.
  • Ordinary runs use isolated worktrees and block on incomplete prior closeout instead of accumulating branches.

Verification

  • 399 Python tests passed with 94.78% coverage.
  • 452 Bats shell and integration tests passed.
  • Changed shell scripts passed Bash syntax checks and ShellCheck at warning severity.
  • Changed priority-context implementation passed Ruff; targeted strict mypy passed for the modified priority context, summary, and applier modules.
  • The staged release diff passed whitespace and secret scans.

Install

curl -fsSL https://raw.githubusercontent.com/shanemhamilton/bugsweep/main/install.sh | bash -s -- --version v0.6.0

Full changelog: v0.5.0...v0.6.0

v0.5.0 — priority intelligence

Choose a tag to compare

@shanemhamilton shanemhamilton released this 10 Jul 04:54
1747e24

Priority intelligence

Bugsweep now starts where current risk and user value are concentrated—without becoming a diff scanner or weakening its proof standard.

  • Collects bounded local evidence from recent code changes, failing checks, reachability, repeated repairs, prior findings, repository-local project signals, and durable outcome history.
  • Produces deterministic priority-context.json and priority report artifacts with stable reason codes, signal health, top targets, and exact completed-hunt fingerprints.
  • Supports bounded hard-focus promotion while keeping every tracked file eligible and preserving the Hunter → Skeptic → Referee tribunal.
  • Records signal yield only when findings explicitly cite the reason code; coincidences remain unattributed, and scoring weights never silently rewrite themselves.

Detection and orchestration

  • Added recall-mode near-miss surfacing, K-vote adjudication for high/critical findings, and additive executable repro evidence.
  • Added atomic frontier claims for concurrent subagents, collision-resistant run IDs, Git-history risk priors, rollup digests, and the NightShift multi-agent contract.
  • Isolated flaky reruns and hardened per-check failure accounting so existing failures cannot mask new regressions.

Reliability and security

  • Closed command injection in state.env persistence and parsing.
  • Hardened degraded finalization, stale-stub handling, live-lease teardown checks, and cleanup error reporting.
  • Restored the project site with a custom docs-only GitHub Pages workflow that avoids malformed benchmark gitlinks.

Verification

  • 399 Python tests passed with 94.78% coverage.
  • 328 Bats shell workflow tests passed.
  • Changed Python files passed the repository-pinned Ruff formatter/linter and strict mypy.
  • All 41 tracked shell files passed Bash syntax checks and ShellCheck at error severity.
  • The public project site passed desktop and 375px mobile browser QA and is live at https://shanemhamilton.github.io/bugsweep/.

Install

curl -fsSL https://raw.githubusercontent.com/shanemhamilton/bugsweep/main/install.sh | bash -s -- --version v0.5.0

Full changelog: v0.4.0...v0.5.0

v0.4.0 — overnight-orchestrator milestone

Choose a tag to compare

@shanemhamilton shanemhamilton released this 08 Jul 22:05

The overnight-orchestrator milestone: bugsweep grows from a single-run bug hunter into a fleet a headless scheduler can drive unattended and tear down cleanly. The trust contract is unchanged — the core run still never touches remotes, and you are still the only merge gate. The worst case is a branch you delete.

Added

  • Deterministic, schema-valid run-summary.json (bugsweep-mu3) — finalize.sh always writes a machine-readable summary (status, coverage, severity counts, fixed/quarantined/confirmed-unfixed) a scheduler can branch on instead of parsing model prose. Falls back to a minimal "degraded": true summary if full reduction can't run; it always exists after finalize.
  • Run-summary enrichment + cross-run aggregation (bugsweep-xdw) — root_cause_clusters, a follow_up "where to look next" frontier, and aggregate-summaries.sh (all backward-compatible optional fields).
  • Worktree isolation for concurrent runs (bugsweep-p74) — preflight.sh --worktree isolates each run in a linked worktree so multiple sibling subagents can hunt one repo at once without colliding or touching your checkout.
  • Incremental, checkpointed context-build with a deterministic batch plan (bugsweep-e1r).
  • Optional static-analyzer seeding, off by default (bugsweep-042) — analyzers.sh feeds semgrep/gosec/bandit hits to the Referee as corroboration, never a replacement for adversarial review.
  • Serialized, re-verifying multi-branch merge (bugsweep-5e8) — integrate.sh lands verified fix branches one at a time, re-running the gate after each and stopping cleanly on the first failure.
  • A deadline that always finalizes (bugsweep-5ft) — the runtime cap routes straight to finalize.sh, so a run that runs out of time still restores the branch and writes its report, summary, and handoff.
  • GitHub Pages marketing page (docs/index.html) + a refreshed README documenting the above.

Changed

  • Flaky-aware revert (bugsweep-ml7) — a newly-failing test is rerun (default 3×); only a strict majority of passing reruns reclassifies it FLAKY and skips the revert. Reruns share the run's tree/environment (not full isolation), so any fix landing flaky is surfaced loudly, never silently.
  • Concurrency hardening (bugsweep-re9) — lease heartbeat + single-winner stale-lock adoption.

Fixed

  • Crash-safe teardown (bugsweep-8d0) — the worktree/branch reaper reclaims only on positive evidence a run is dead/done; anything dirty, unmerged, or ambiguous is preserved. Closes seven data-loss paths found in adversarial re-review.

Verified green: 169 bats · 315 pytest @ 98.89% coverage · shellcheck clean.

Install: curl -fsSL https://raw.githubusercontent.com/shanemhamilton/bugsweep/main/install.sh | bash — or pin this release with --version v0.4.0.

Full changelog: https://github.com/shanemhamilton/bugsweep/blob/v0.4.0/CHANGELOG.md

v0.3.1 — Post-finalize continuation safety

Choose a tag to compare

@shanemhamilton shanemhamilton released this 03 Jun 01:26

Added

  • Post-finalize continuation contract for autonomous runs: one approved do it action covers land, target-branch proof, safe push, configured smoke checks, remote read-back, and cleanup.
  • finalize.sh now writes <RUN_DIR>/post-finalize-handoff.json for parent agents.
  • Bats integration tests for cleanup branch deletion, linked worktree handling, conflicts, protected targets, Bash 3.2 syntax, and portability guardrails.

Changed

  • scripts/bugsweep-cleanup.sh deletes bugsweep/* branches only after containment proof, removes only clean linked worktrees, preserves dirty linked worktrees, and emits stable machine-readable result lines.
  • --autonomous now stops at the explicit post-finalize continuation gate instead of treating invocation as implicit merge/push/delete authorization.

v0.3.0 — Autonomous mode auto-lands fixes

Choose a tag to compare

@shanemhamilton shanemhamilton released this 31 May 11:32

What's new

--autonomous mode now completes end-to-end. Previously, --autonomous stopped at a throwaway branch and printed "recommended next steps" requiring a manual merge. Now it finishes the job:

  1. Merges all verified fix commits into the original branch (--no-ff)
  2. Pushes to remote
  3. Deletes the bugsweep branch

If the push fails (no remote or insufficient access), the local merge is preserved and only git push remains. If the merge itself fails (rare; conflicting concurrent work), the branch is preserved and the normal human handoff is presented.

Why it's safe

  • The --autonomous invocation is the explicit authorization for merge+push — other modes (--fix, --approve, detect-only) still stop at the human gate as before
  • BUGSWEEP_MODE is now written to state.env at preflight, so the mode survives context resets during long overnight runs — finalize.sh reads it from disk, not from model memory

Upgrading

/bugsweep --update

v0.2.0

Choose a tag to compare

@shanemhamilton shanemhamilton released this 31 May 00:11

What's new in v0.2.0

Added

  • Unattended run scripts — scripts/bugsweep-prepare.sh (activity-aware dirty-tree handling) and scripts/bugsweep-cleanup.sh (post-run merge gate). Together they make bugsweep schedulable without human babysitting: defer on active work, auto-close stale trees, merge and prune fix branches automatically.
  • references/autonomous-maintenance.md — copy-paste recipe for repeatable headless runs including scheduling notes and placeholder prompts.
  • Bench harness (bench/) — full 4-track evaluation framework: 9-CVE detection corpus, bugsweep + baseline runner adapters, cross-model LLM judge (format-robust, location-aware), precision track scorer, leaderboard renderer, and container isolation. 197 tests.
  • install.sh --update flag + passive staleness check — re-run the installer to pull the latest version; passive warnings appear on invocation when a newer tag is available.

Fixed

  • Skeptic over-conservatism calibrated — weak-grounds rejection brought into correct range.
  • Stale-branch accumulation loop: SKILL.md now includes Step 0 stale-branch check and Step 5 land-or-discard handoff.
  • Bash 3.2 compatibility for bugsweep-cleanup.sh (macOS default shell).

Upgrade

bash <(curl -fsSL https://raw.githubusercontent.com/shanemhamilton/bugsweep/main/install.sh)

Or pin to this release:

bash <(curl -fsSL https://raw.githubusercontent.com/shanemhamilton/bugsweep/main/install.sh) --version v0.2.0

Full changelog: v0.1.0...v0.2.0