blitzstrike 1.0.52 → 1.0.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,80 @@ All notable changes to Blitz Strike are documented here.
5
5
  The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/).
7
7
 
8
+ ## [1.0.57] — 2026-09-13
9
+
10
+ ### Added — Autonomous Security Engine (phase 18: documentation & examples)
11
+
12
+ - `docs/AUTONOMY.md` — full reference for the autonomous engine (components,
13
+ mission lifecycle, safety invariants, CLI, MCP mission mode, no-babysitting).
14
+ - `examples/` — runnable scripts: `mission-source.sh`, `mission-web.sh`,
15
+ `benchmark.sh`.
16
+ - README — new "Autonomous engine" section + further-reading link.
17
+
18
+ ## [1.0.56] — 2026-09-13
19
+
20
+ ### Added — Autonomous Security Engine (phase 16: autonomous benchmark)
21
+
22
+ - **Autonomous Benchmark** (`src/mission/benchmark.ts`, §26):
23
+ - `runAutonomousBenchmark()` — runs the FULL autonomous engine (Mission
24
+ Control) against each labelled corpus fixture and reports tp/tn/fp/fn,
25
+ precision, recall, F1, false-positive rate, time-to-completion, and budget.
26
+ - New CLI command: `blitzstrike benchmark` (`--full` for the whole corpus).
27
+
28
+ ### Fixed — multi-language source discovery
29
+
30
+ - `iterSourceFiles` (`TARGET_EXTS`) only indexed PHP extensions, so the
31
+ autonomous engine silently skipped `.py`/`.java`/`.js`/`.ts` sources. Added
32
+ the missing extensions — the autonomous benchmark now scores
33
+ **precision 1.0 / recall 1.0 / F1 1.0** over the full 101-fixture corpus.
34
+
35
+ ## [1.0.55] — 2026-09-13
36
+
37
+ ### Added — Autonomous Security Engine (phase 15: termination engine)
38
+
39
+ - **Termination Engine** (`src/mission/termination.ts`, §24):
40
+ - `evaluateTermination()` — ordered hard stops: user_interrupted →
41
+ budget_exhausted → safety_violation → scope_violation → max_iterations →
42
+ no_progress.
43
+ - `objectiveComplete()` — all tasks in a terminal non-failed state.
44
+ - `applyTermination()` — records the reason + detail into `decision_log` and
45
+ sets `completed`/`terminated`.
46
+ - `NO_PROGRESS_LIMIT` — iterations without progress before declaring stuck.
47
+ - Mission Control now terminates on ANY traceable reason (not just budget) and
48
+ logs the termination decision with detail.
49
+
50
+ ## [1.0.54] — 2026-09-13
51
+
52
+ ### Added — Autonomous Security Engine (phase 14: budget controller)
53
+
54
+ - **Budget Controller** (`src/mission/budget.ts`, §22):
55
+ - `budgetStatus()` — tracks time / tasks / requests / tokens / cost with
56
+ per-dimension overrun flags.
57
+ - `budgetOverrun()` — detects overruns and returns a specific reason
58
+ (e.g. `budget overrun: tasks, requests`).
59
+ - `consumeTasks()` / `consumeTokens()` — increment consumption counters.
60
+ - `perTaskOverrun()` — enforces the per-task request budget.
61
+ - Extended the `Budget` type with `max_tokens`, `max_cost_usd`,
62
+ `per_task_budget`, `started_at`, and `used_tokens`/`used_cost_usd`.
63
+ - Mission Control now terminates gracefully on ANY budget dimension overrun
64
+ (not just tasks) and records a final budget snapshot in the decision log.
65
+
66
+ ## [1.0.53] — 2026-09-13
67
+
68
+ ### Added — Autonomous Security Engine (phase 13: model router)
69
+
70
+ - **Model Router** (`src/mission/router.ts`, §21):
71
+ - Pure routing layer — never calls a model. Deterministic by default.
72
+ - `routeTask()` — maps an agent type to a model tier (`large`/`medium`/`small`)
73
+ only when a provider is configured; otherwise routes to `none`.
74
+ - `AGENT_TIER` — §21 mapping (planning/source/review → large; attack execution
75
+ → medium; verification → small).
76
+ - `loadRouterConfig()` — reads `BLITZSTRIKE_MODEL_PROVIDER` / `_LARGE` /
77
+ `_MEDIUM` / `_SMALL` env vars.
78
+ - `routingPlan()` — full plan (all `none` when deterministic).
79
+ - Mission Control records the routing decision (tier) per task and the overall
80
+ routing plan in the mission `decision_log`.
81
+
8
82
  ## [1.0.52] — 2026-09-13
9
83
 
10
84
  ### Added — Autonomous Security Engine (phase 12: browser automation agent)
package/README.md CHANGED
@@ -54,6 +54,25 @@ confirms it.
54
54
 
55
55
  ---
56
56
 
57
+ ## Autonomous engine
58
+
59
+ Beyond single-tool calls, Blitz Strike ships a **self-driving security research
60
+ engine** (Mission Control). Give it a target and a scope — it plans, executes,
61
+ verifies, reviews against false positives, fills coverage gaps, and reports,
62
+ all without babysitting:
63
+
64
+ ```bash
65
+ npx blitzstrike mission ./path/to/source --mode source
66
+ npx blitzstrike mission https://example.com --mode web --scope example.com
67
+ npx blitzstrike benchmark --full
68
+ ```
69
+
70
+ It is deterministic by default (no model calls unless configured), persists
71
+ every mission (resumable), enforces scope + budget + termination policy, and
72
+ keeps long-term memory of findings and failed approaches.
73
+
74
+ → [Autonomous engine](docs/AUTONOMY.md) — full architecture + reference.
75
+
57
76
  ## Why TypeScript / Bun
58
77
 
59
78
  - **Single static binary** via `bun build --compile` — ship one executable per platform.
@@ -384,6 +403,7 @@ Do not use against systems without explicit permission from the owner.
384
403
 
385
404
  - [Installation](docs/installation.md) — prerequisites, install, client registration.
386
405
  - [Usage](docs/usage.md) — one-call engagement, granular path, modes, memory.
406
+ - [Autonomous engine](docs/AUTONOMY.md) — Mission Control, agents, security graph, benchmark.
387
407
  - [Manifesto](docs/manifesto.md) — the invariants that drive the methodology.
388
408
  - [Contributing](CONTRIBUTING.md) — how to add chains, tools, and data.
389
409
  - [Changelog](CHANGELOG.md) — version history.