paqad-ai 1.76.0 → 1.76.1

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
@@ -1,5 +1,33 @@
1
1
  # paqad-ai
2
2
 
3
+ ## 1.76.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 721b434: feat(#468): Phase C — writer cutover, retire the old evidence paths, add a warn-only existence gate
8
+
9
+ Third and final PR of the #339/#468 evidence-in-bundle cutover — the only phase that changes the on-disk layout, now that both writers (Phase A) and readers (Phase B) are proven.
10
+
11
+ - RAG (the deferred piece): the `runtime/scripts/rag-evidence-record.mjs` prompt seam and the TS recorder now write retrieval rows to the two-home `rag.jsonl` (the active feature's bundle, else `_chat/<session>/`), with the conversation ordinal re-homed to `_chat/<session>/`; the retired `paqad.rag-evidence/` substrate is gone. `foldRagEvidenceSession` reads `_chat` + the bundle projection (`readAllFeatureRag`) filtered by session.
12
+ - Writer cutover: the completion seam stops the old-home writes — the `rule-evidence` project ledger, the top-level `evidence.jsonl` / `receipts.jsonl` / `receipt.dsse.json` / `ai-bom.json`, and the duplication/change-metrics project ledgers — keeping every engine cache (`report.json`, `drift.json`, `duplication.json`) and the per-feature bundle receipt/evidence. The reproducibility context stamp moves to `.paqad/session/context-stamp.json`. `src/rule-scripts/rule-ledger.ts` is retired.
13
+ - Existence gate: a new `evidence_existence_gate=off|warn` knob (default `warn`, no exit-blocking tier) verifies the bundle's `rule-run.jsonl` / `duplication.jsonl` / `change-metrics.jsonl` / `rag.jsonl` exist backfill-first — minting the recoverable three deterministically from the caches (marked `backfilled: true`), and reporting an unrecoverable RAG absence as Inconclusive. Flag-aware: a flag-off / RAG-dark / copy-only / non-feature-dev change reads skipped, never a hard block. The gate runs at the completion backstop alongside the #394 plan/spec/review assertions and can only surface (pass/skipped/inconclusive), never fail.
14
+
15
+ - 721b434: Evidence-in-bundle cutover, Phase B (#468): re-point every evidence reader off the retired
16
+ session-ledger and top-level homes and onto the per-feature bundle projections. The Rule
17
+ Compliance collector reads findings from the bundle `rule-run.jsonl` (latest by `ts`) and
18
+ drift live from the `.cache/drift.json`; the Change Shape collector and `metrics report`
19
+ read the ts-sorted window of the bundle `change-metrics.jsonl`; the SIEM `audit export`
20
+ aggregate unions the bundle projections and projects attestation/evidence from per-feature
21
+ receipts; and the Trust panel (evidence feed, receipt feed, AI-BOM, attestation,
22
+ onboarding, inventory) projects from the bundle union via `projectAiBomFromFeatures` and new
23
+ per-feature receipt readers. The per-feature receipt now additionally carries the
24
+ authorship/compliance/reproducibility predicates the attestation surfaces read, so a bundle
25
+ receipt is a complete attestation record. The RAG session fold stays on the substrate in
26
+ this phase: its re-point is coupled to the prompt-seam writer and moves with it in Phase C.
27
+ No old-home write is removed and no path is retired — every old-home write still fires, so
28
+ rollback is a single revert. Phase C removes the old writes and adds the existence gates.
29
+ - 9ff0f23: Evidence-in-bundle cutover, Phase A (#468): add additive per-feature bundle writers for duplication counts (`duplication.jsonl`), change-metrics ratios (`change-metrics.jsonl`), and the graded gate rows (`evidence.jsonl`), plus their whole-project projections. Every existing project/session-scoped write is left untouched — this is a dual-write parity window, not a cutover. A parity test asserts the new bundle rows agree with the old-home rows for a real feature-development change. No reader is re-pointed and no path is retired yet (Phases B and C).
30
+
3
31
  ## 1.76.0
4
32
 
5
33
  ### Minor Changes