Skip to content

xaccefy/pi-casefile

v0.9.4MIT

Offensive security case ledger for Pi Agent — evidence tracking with machine-verified PoC gates.

pi-casefile

Security case ledger for the Pi agent — evidence tracking with machine-verified PoC gates.

npm License: MIT

What it is

A structured ledger for offensive-security work — bug bounties, CTFs, audits — built around one idea: an agent's claim is not evidence until the machine replays it.

Cases move hypothesis → investigating → confirmed → reported. Promotion between phases is gated:

  • Zero exit is necessary but never proof — direct-response findings require nonce-bound body evidence plus a DNS-pinned, conclusive target_only replay against an operator-approved control
  • Differential confirmationinter_host (attack vs control host) or intra_target (attack vs baseline request) so "it worked" means the discriminator fired, not "the agent said so"
  • Blind/OOB classes confirm through an operator-run oracle with per-run tokens and source-separation attestation
  • Only the main agent makes the semantic decision and commits phase transitions

Designed for human + AI workflows: every confirmed finding carries a reproducible evidence trail a human can audit.

Tools

ToolPurpose
CaseAdd / CaseList / CaseUpdate / CaseContextcase lifecycle and context retrieval
EvidenceAddattach raw evidence to a case
PromoteFinding → harness replay → ConfirmFindinggated finding pipeline
Scratchpadphase-scoped working notes, resume-safe

Install

pi install npm:@xaccefy/pi-casefile

Peer-depends on a Pi-compatible agent host (@earendil-works/pi-coding-agent, pi-ai, pi-tui, typebox). Runtime deps: @xaccefy/pi-shared, undici.

Development

bun install
bun test --isolate   # 302 tests
bun run typecheck

The JSON contracts in schemas/ are the agent-facing mirror of the SPECS table in src/pipeline-submit.ts; a drift-guard test fails if they diverge.

License

MIT