Skip to content

Commit 5d33e23

Browse files
committed
v3.0.8: Update CHANGELOG, README, llms.txt, llms-full.txt, and bump version
- CHANGELOG: full 3.0.8 entry with all 11 fixes detailed - README: updated 'New in This Update' section, test count (61), project structure (all schemas + test files) - llms.txt: Bun 1.2+ lockfile support noted - llms-full.txt: test count updated to 61 - package.json: version bumped to 3.0.8
1 parent 96912a6 commit 5d33e23

5 files changed

Lines changed: 51 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,33 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [3.0.8] - 2026-03-13
9+
10+
### Highlights
11+
- **All 61 tests pass.** Systematic reliability audit fixed 11 bugs across schemas, scripts, and the orchestrator — 10 previously-failing tests now pass, plus one new test added.
12+
- **`High` severity now works end-to-end.** All JSON schemas, severity ranking functions, and payload-guard templates recognize `High` as a valid severity level.
13+
- **Confidence threshold is fully configurable.** The `--confidence-threshold` flag now propagates through the entire pipeline — from the orchestrator through `processPendingChunks` to `record-findings`.
14+
- **Shell injection fixed in doc-lookup.** Library names and IDs passed to `chub` CLI are now properly shell-quoted.
15+
- **Modern Bun support.** `dep-scan.cjs` detects `bun.lock` (Bun 1.2+ text format) alongside the legacy `bun.lockb` binary format.
16+
17+
### Fixed
18+
- `schemas/findings.schema.json`, `schemas/skeptic.schema.json`, `schemas/referee.schema.json`, `schemas/fix-report.schema.json`: added missing `High` to severity enums — previously only `Critical`, `Medium`, and `Low` were accepted, causing valid findings to fail schema validation
19+
- `scripts/bug-hunter-state.cjs`: `severityRank()` now returns rank 2 for `High` severity — previously returned -1 (unknown), breaking severity ordering and dedup logic
20+
- `scripts/run-bug-hunter.cjs`: `classifyStrategy()` added explicit parentheses around compound conditions to prevent operator-precedence misclassification
21+
- `scripts/run-bug-hunter.cjs`: `runCommandOnce()` now clears the SIGKILL failsafe timer on normal exit — previously leaked a timer handle that could fire after the process had already exited
22+
- `scripts/run-bug-hunter.cjs`: `processPendingChunks()` now receives and forwards `confidenceThreshold` to `record-findings` — previously the configurable threshold was silently ignored, always defaulting to 75
23+
- `scripts/worktree-harvest.cjs`: commit log parsing no longer truncates the hash or drops the message when a `git log` line contains no space separator
24+
- `scripts/dep-scan.cjs`: lockfile detection now checks for `bun.lock` (text format, Bun ≥1.2) in addition to `bun.lockb`
25+
- `scripts/payload-guard.cjs`: hunter and fixer severity template strings now include `High` alongside `Critical`, `Medium`, and `Low`
26+
- `scripts/doc-lookup.cjs`: `chubSearch()` and `chubGet()` now shell-quote all interpolated arguments via single-quote wrapping — previously, library names containing shell metacharacters could cause command injection
27+
28+
### Changed
29+
- `scripts/bug-hunter-state.cjs`: `record-findings` command now accepts an optional 4th positional argument for confidence threshold (defaults to 75 for backwards compatibility)
30+
- Test suite expanded from 50 passing / 10 failing to **61 passing / 0 failing**
31+
32+
### Added
33+
- `scripts/tests/bug-hunter-state.test.cjs`: new test verifying that `High` severity findings are ranked above `Medium` and `Low`, and that re-recording with higher severity upgrades the existing ledger entry
34+
835
## [3.0.7] - 2026-03-12
936

1037
### Highlights
@@ -212,7 +239,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
212239
- Coverage enforcement - partial audits produce explicit warnings
213240
- Large codebase strategy with domain-first tiered scanning
214241

215-
[Unreleased]: https://github.com/codexstar69/bug-hunter/compare/v3.0.5...HEAD
242+
[Unreleased]: https://github.com/codexstar69/bug-hunter/compare/v3.0.8...HEAD
243+
[3.0.8]: https://github.com/codexstar69/bug-hunter/compare/v3.0.7...v3.0.8
244+
[3.0.7]: https://github.com/codexstar69/bug-hunter/compare/v3.0.5...v3.0.7
216245
[3.0.5]: https://github.com/codexstar69/bug-hunter/compare/v3.0.4...v3.0.5
217246
[3.0.4]: https://github.com/codexstar69/bug-hunter/compare/v3.0.3...v3.0.4
218247
[3.0.3]: https://github.com/codexstar69/bug-hunter/compare/v3.0.2...v3.0.3

README.md

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,15 @@ npm install -g @aisuite/chub
5151

5252
## New in This Update
5353

54-
This release makes Bug Hunter much better at PR-first auditing and safer at automated remediation.
54+
This release is a reliability hardening pass — 11 bugs fixed, 10 previously-failing tests now pass, and the full pipeline is more robust end-to-end.
5555

56-
- **PR review is now a first-class workflow.** Review the current PR, the most recent PR, or a specific PR number with `--pr`, `--pr current`, `--pr recent`, or `--pr 123`.
57-
- **PR security review is now built in.** `--pr-security` runs a PR-scoped security audit with threat-model and dependency context, without editing code.
58-
- **Strategic remediation is now explicit.** Bug Hunter writes `fix-strategy.json` and `fix-plan.json` before fixes run, so auto-fix decisions stay explainable and reviewable.
59-
- **The security pack is now bundled locally.** `commit-security-scan`, `security-review`, `threat-model-generation`, and `vulnerability-validation` now ship inside the repo under `skills/`.
60-
- **Fix execution is harder to break.** This update adds schema-validated fix plans, atomic lock handling, safer worktree cleanup, stash preservation, and shell-safe worker command templating.
56+
- **`High` severity works everywhere.** All JSON schemas, severity ranking, and payload-guard templates now recognize `High` — previously only `Critical`, `Medium`, and `Low` were accepted, silently dropping valid findings.
57+
- **Confidence threshold is fully wired.** `--confidence-threshold` now propagates from the CLI through the orchestrator to `record-findings`. Previously the flag was parsed but never forwarded, always defaulting to 75.
58+
- **Shell injection fixed in doc-lookup.** Library names passed to `chub` CLI are now properly shell-quoted — prevents command injection via crafted library names.
59+
- **SIGKILL timer leak fixed.** The failsafe kill timer in `runCommandOnce` is now cleared on normal exit — previously it could fire after the child had already exited.
60+
- **Modern Bun lockfile support.** `dep-scan.cjs` now detects `bun.lock` (text format, Bun 1.2+) alongside the legacy `bun.lockb` binary format.
61+
- **Worktree commit parsing hardened.** Edge case where `git log` lines with no space separator caused truncated hashes and wrong messages is now handled.
62+
- **61 tests, 0 failures.** Up from 50 passing / 10 failing — the test suite now covers severity ranking, schema validation, confidence threshold propagation, and shell-safe worker templating.
6163

6264
<p align="center">
6365
<img src="docs/images/2026-03-12-pr-review-flow.png" alt="PR review workflow banner — pull request scope, security checks, threat-model context, and final verdict in a clean product-style UI" width="100%">
@@ -688,7 +690,7 @@ All flags compose: `/bug-hunter --deps --threat-model --fix src/`
688690

689691
Bug Hunter ships with a test fixture containing an Express app with **6 intentionally planted bugs** (2 Critical, 3 Medium, 1 Low):
690692

691-
The repository also ships with **60 Node.js regression tests** covering orchestration, schemas, PR scope resolution, fix-plan validation, lock behavior, worktree lifecycle, and the bundled local security-skill routing.
693+
The repository also ships with **61 Node.js regression tests** covering orchestration, schemas, PR scope resolution, fix-plan validation, lock behavior, worktree lifecycle, severity ranking, and the bundled local security-skill routing.
692694

693695
```bash
694696
/bug-hunter test-fixture/
@@ -758,8 +760,12 @@ bug-hunter/
758760
│ ├── findings.schema.json # Hunter findings schema
759761
│ ├── skeptic.schema.json # Skeptic artifact schema
760762
│ ├── referee.schema.json # Referee artifact schema
763+
│ ├── fix-report.schema.json # Fix report artifact schema
761764
│ ├── fix-strategy.schema.json # Strategic remediation schema
762-
│ └── fix-plan.schema.json # Fix execution schema
765+
│ ├── fix-plan.schema.json # Fix execution schema
766+
│ ├── coverage.schema.json # Coverage tracking schema
767+
│ ├── recon.schema.json # Recon artifact schema
768+
│ └── shared.schema.json # Shared definitions
763769
764770
├── skills/ # Bundled local security pack
765771
│ ├── commit-security-scan/
@@ -781,6 +787,10 @@ bug-hunter/
781787
│ ├── code-index.cjs # Cross-domain analysis (optional)
782788
│ └── tests/ # Test suite (node --test)
783789
│ ├── run-bug-hunter.test.cjs # Orchestrator tests
790+
│ ├── bug-hunter-state.test.cjs # State management tests
791+
│ ├── code-index.test.cjs # Code index tests
792+
│ ├── delta-mode.test.cjs # Delta mode tests
793+
│ ├── pr-scope.test.cjs # PR scope resolution tests
784794
│ └── worktree-harvest.test.cjs # Worktree lifecycle tests
785795
786796
├── templates/

llms-full.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ bug-hunter/
166166
│ ├── doc-lookup.cjs # Context Hub + Context7 doc lookup
167167
│ ├── context7-api.cjs # Context7 standalone fallback
168168
│ ├── prepublish-guard.cjs # Publish safety net
169-
│ └── tests/ # Test suite (60 tests)
169+
│ └── tests/ # Test suite (61 tests)
170170
├── templates/ # Subagent launch template
171171
└── test-fixture/ # 6 planted bugs for validation
172172
```

llms.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Bug Hunter is an automated adversarial code auditing skill for AI coding agents.
1313
- Security classification: STRIDE threat categories, CWE weakness IDs, CVSS 3.1 scoring
1414
- Documentation verification: checks claims against official library docs via Context Hub + Context7
1515
- Safe auto-fix: git-branched fixes with worktree isolation, canary rollout, test verification, and automatic rollback
16-
- Dependency CVE scanning: lockfile-aware audits for npm, pnpm, yarn, bun
16+
- Dependency CVE scanning: lockfile-aware audits for npm, pnpm, yarn, bun (including Bun 1.2+ text-format lockfiles)
1717
- PR review: first-class `--pr` workflow for reviewing current, recent, or numbered PRs
1818
- Enterprise security pack: bundled STRIDE threat modeling, vulnerability validation, and security review skills
1919

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codexstar/bug-hunter",
3-
"version": "3.0.7",
3+
"version": "3.0.8",
44
"description": "Adversarial AI bug hunter — multi-agent pipeline finds security vulnerabilities, logic errors, and runtime bugs, then fixes them autonomously. Works with Claude Code, Cursor, Codex CLI, Copilot, Kiro, and more.",
55
"license": "MIT",
66
"main": "bin/bug-hunter",

0 commit comments

Comments
 (0)