Skip to content

2026.10.03 - Phase 1: Maintenance Cache Evidence - #71

Merged
lanhhoang merged 8 commits into
masterfrom
20261003-phase-01-pi-dcp-maintenance-cache-evidence
Oct 4, 2026
Merged

lanhhoang merged 8 commits into
masterfrom
20261003-phase-01-pi-dcp-maintenance-cache-evidence

Conversation

@lanhhoang

Copy link
Copy Markdown
Contributor
  • Warning-free repository checks — pnpm lint now runs biome lint --error-on-warnings ., so a lint warning fails the build instead of scrolling past. All 57 prior warnings were resolved with typed test helpers (requireDefined, getMessageText) and explicit control flow; no rule was weakened (.github/workflows/quality.yml, package.json, tests/helpers.ts, src/messages/priority.ts).
  • Dead manual-trigger state removed — pendingManualTrigger field, the unreachable compress-pending manualMode variant, and the PendingManualTrigger interface are gone. manualMode is now exactly false | "active", pinned by a type-level expectTypeOf test (src/state/types.ts, src/state/state.ts, tests/commands-manual.test.ts, tests/persistence.test.ts).
  • Privacy-safe prompt-cache evidence — pnpm analyze:sessions now reports UsageTotals (per-corpus and per-file input/output/cacheRead/cacheWrite plus optional cacheWrite1h/reasoning, provider-reported totalTokens, and each cost component), a LatencySummary from user/tool-result → assistant transitions, and separate malformedUsage / malformedLatency diagnostics. Usage is read from every Pi carrier: assistant messages (required), standalone usage entries, tool results, compactions, and branch summaries (scripts/analyze-sessions.ts, tests/session-analysis.test.ts).
  • Identifier-free session reports — files are now identified by a one-based fileIndex only; input paths, basenames, provider/model names, usage kinds, and notes are never retained. Existing tests/priority.test.ts, tests/inject.test.ts, tests/pipeline.test.ts, tests/prune.test.ts, tests/tool-cache.test.ts, tests/integration.test.ts, tests/compress-range.test.ts, tests/context-limits.test.ts, and tests/index.test.ts were updated to the new contract.
  • Version bump and docs refresh — version 0.6.0 → 0.6.1 (package.json); CHANGELOG.md adds a [0.6.1] - 2026-10-03 entry; README.md replaces the 0.4.0/0.4.1/0.5.0/0.6.0 blocks with a focused "What's new in 0.6.1" section and the explicit "no pruning policy changed" note (package.json, CHANGELOG.md, README.md).
  • Plan + design refresh — Phase 1 plan and the improvement-roadmap design spec now reflect the actual 0.6.1 surface: provenance scope, identifier-free reporting, the four required-usage carriers, and Node 22.19.0 vs 24 evidence gates (docs/superpowers/specs/2026-10-03-pi-dcp-improvement-roadmap-design.md, docs/superpowers/plans/2026-10-03-phase-01-pi-dcp-maintenance-cache-evidence.md).

No pruning policy, incremental-pruning timing, or strategy eligibility changed in this release; no published schema, no dependency pins, no release workflow, and no Pi/OpenCode reference repositories were touched.

@lanhhoang lanhhoang changed the title 2026.10.03 - Pi DCP Maintenance Cache Evidence (Phase 1, v0.6.1) 2026.10.03 - Maintenance Cache Evidence Oct 4, 2026
@lanhhoang lanhhoang changed the title 2026.10.03 - Maintenance Cache Evidence 2026.10.03 - Phase 1: Maintenance Cache Evidence Oct 4, 2026
@lanhhoang
lanhhoang merged commit 375c1ce into master Oct 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant