blitzstrike 2.4.26 → 2.4.28

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/index.js +416 -193
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,38 @@ 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
+ ## [2.4.28] — 2026-09-14
9
+
10
+ ### Added — Enterprise Empirical Intelligence Ledger (LOOP 2, cross-target)
11
+
12
+ - New `src/intelligence.ts`: append-only JSONL ledger
13
+ (`~/.blitzstrike/intelligence.jsonl`) that records VERIFIED verdicts
14
+ (confirmed/false_positive) as (vector, tech) outcomes — the enterprise
15
+ layer that makes Blitz Strike COMPOUND across engagements.
16
+ - `strike_resolve` now auto-records every confirmed/false_positive verdict
17
+ into the ledger (sink type -> attack-vector name via sinkToVector).
18
+ - `attack_plan`'s success_probability is now a Bayesian posterior: the formula
19
+ prior is upgraded by the empirical hit-rate (Beta-binomial, prior strength
20
+ K=5), falling back tech-specific -> any-tech -> formula. A new Laravel target
21
+ inherits the hit-rates of past Laravel engagements.
22
+ - New `intelligence` tool: query hit-rates / top-vectors / raw ledger.
23
+ - System prompt: cross-target intelligence directive.
24
+
25
+ ## [2.4.27] — 2026-09-14
26
+
27
+ ### Added — SELF-HARDENING loop (false-positives -> corpus -> benchmark)
28
+
29
+ - New `capture_false_positive` tool: records a VERIFIED false positive (code +
30
+ language + detector + note) into a writable corpus (`~/.blitzstrike/corpus/`,
31
+ override `BLITZSTRIKE_CORPUS_DIR`). Every engagement makes the detector more
32
+ precise — never just discard a refuted lead.
33
+ - `loadCorpus` now merges the package corpus (read-only) + the captured
34
+ corpus (writable), so the next `run_benchmark` measures whether a captured
35
+ FP is fixed (tn) or still_flagged (fp).
36
+ - `run_benchmark` reports a `captured_false_positives` section: total /
37
+ still_flagged / fixed + per-entry outcome.
38
+ - System prompt: verified false positives must be captured for self-hardening.
39
+
8
40
  ## [2.4.26] — 2026-09-14
9
41
 
10
42
  ### Added — derived success_probability + estimated_time + plan modes