Post-Incident-Proofs is a Lean 4 repository focused on verifiable post-incident evidence workflows. It provides executable checks for logging integrity, rate-limit behavior, version transitions, bundle validation, and operational readiness.
Incident workflows are often hard to trust when verification is manual or inconsistent. This project makes verification explicit and repeatable through Lean modules plus executable gates that run both locally and in CI.
| Area | What exists today | How to validate |
|---|---|---|
| Build integrity | Lean package and library compile | lake build |
| Logging checks | Log verifier and integrity checks | lake exe log_verifier |
| Rate checks | Rate model verifier | lake exe rate_verifier |
| Version checks | Version roundtrip verifier | lake exe version_verifier |
| Bundle checks | Bundle validation command | lake exe verify_bundle <path> |
| Ops checks | Security, observability, full validation executables | lake exe security, lake exe observability, lake exe validate |
| Delivery quality | CI gates, hygiene checks, release artifacts | .github/workflows/ |
lake build
lake exe tests
lake exe security
lake exe observability
lake exe validatelake exe verify_bundle <path>
lake exe log_verifier
lake exe rate_verifier
lake exe version_verifier
lake exe tests
lake exe benchmarks
lake exe security
lake exe observability
lake exe validatemake build
make test
make security
make observability
make validate
make benchmark
make ci
make release- Copy
.env.exampleto.env. - Set strong values for:
GF_SECURITY_ADMIN_USERGF_SECURITY_ADMIN_PASSWORDAPP_HMAC_KEY
- Never commit
.envfiles or private key material. - Optional helper for local generation:
python scripts/generate_secrets.py.
- CI includes verification, benchmark, dependency review, policy lint, and repository hygiene workflows.
- Release automation publishes:
- source tarball
- source checksum
- release notes
- Scheduled SLO checks run through
slo-gate.
- API surface:
docs/API.md - Security policy:
SECURITY.md - Assurance mapping:
docs/ASSURANCE_MATRIX.md - SLOs:
docs/SLOS.md - Definition of done:
docs/DEFINITION_OF_DONE.md - Contributing guide:
CONTRIBUTING.md - Architecture decisions:
docs/adr/