Skip to content

examples/pcr: add executable showboat demo#35

Merged
pyrex41 merged 1 commit into
mainfrom
docs/pcr-showboat-demo
Jul 6, 2026
Merged

examples/pcr: add executable showboat demo#35
pyrex41 merged 1 commit into
mainfrom
docs/pcr-showboat-demo

Conversation

@pyrex41

@pyrex41 pyrex41 commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Adds examples/pcr/DEMO.md — an executable showboat walkthrough that both documents and proves the proof-carrying-requests example. showboat verify examples/pcr/DEMO.md (from the repo root) re-runs every code block and diffs the output; it passes deterministically (verified twice).

Sections:

  • The logic — the one live-fact rule + grant rules.
  • The money shot — one proof term's fate as its fact is revoked and restored: ALLOW → DENY (identical bytes) → alice's own proof still ALLOW (surgical) → re-grant → ALLOW.
  • Both engines agree — native vs CPS selftest, byte-identical verdicts and inference counts.
  • The full battery — every selftest category (revocation window, TTL, staleness cap, write-failure, corrupt-blob refusal, hostile input, intern-DoS).
  • The proof is hostile input — live denials: spoofed proof, uppercase type-variable injection, unknown principal, and a grant refused (507) over a corrupt blob.

Every block filters out non-deterministic noise (timing, heap deltas, the kernel load banner) so verify is stable across runs and machines. README links the demo.

Doc-only; no code changes.

🤖 Generated with Claude Code

DEMO.md is a verifiable walkthrough — `showboat verify examples/pcr/DEMO.md`
re-runs every block from the repo root and diffs the output. Covers the money
shot (one proof term's fate as its fact is revoked and restored, surgically),
the engine-parity check (native vs CPS byte-identical), the full selftest
battery of behavior/defense categories, and a live hostile-input pass
(spoofed proof, uppercase type-variable injection, unknown principal, and a
grant refused over a corrupt blob). Every block is filtered to deterministic
output (no timing/heap/boot-banner noise) so verify is stable. README links it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@pyrex41 pyrex41 merged commit 8f0cd05 into main Jul 6, 2026
@pyrex41 pyrex41 deleted the docs/pcr-showboat-demo branch July 6, 2026 23:02
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