Testing bench: credit_grant_front

The credit-grant decider: may this grant be made? Each grant kind carries exactly one form of evidence — a purchase grants on a validated receipt, a discretionary grant on an authorised operator, an achievement on a server-side attestation — and evidence that has ever granted, on any membership, never grants again. The judgement is the proven Credit_Grant_Pkg.May_Grant; this front is its forged argv shell, and it is the only door credit enters any account by.

Binary: wired (named by CREDIT_GRANT_DECIDER; the path comes only from the server's environment, never from this page)

Theorems the proven core carries

Run it yourself

Space-separated tokens, at most 8, each at most 32 characters of [A-Za-z0-9_]. Malformed tokens are allowed through on purpose: the front's own refusal of them — exit status 3 — is part of what this bench exists to show you.

The truth table — worked examples, re-runnable

These are the rows the forge's harness graded before this artifact was admitted. Running them here re-executes each one against the wired binary, live, and grades the match in front of you.

Exampleargvexpected stdoutexpected exit
validated purchase, never granted before — granted purchase true false false false true 0
PURCHASE-NEEDS-RECEIPT — no validated receipt, no grant purchase false false false false false 0
GRANT-IS-ONCE — a replayed receipt never grants again purchase true false false true false 0
no borrowed evidence — operator and attestation cannot stand in for a receipt purchase false true true false false 0
authorised operator award — granted discretionary false true false false true 0
DISCRETION-NEEDS-OPERATOR — unauthorised, no grant discretionary false false false false false 0
server-side attested achievement — granted achievement false false true false true 0
ACHIEVEMENT-NEEDS-ATTESTATION — a client asserting its own completion is not evidence achievement false false false false false 0
GRANT-IS-ONCE — a replayed attestation never grants again achievement false false true true false 0
unknown grant kind — the front itself refuses (exit 3) bribery true false false false (no output) 3
wrong arity — the front itself refuses (exit 3) purchase true (no output) 3

The inspector's note

Authored by the seat, 2026-08-13 — grades from evidence, narrated not invented.

Proof inventory — proven

Proof inventory — NOT proven

Open issues — raised, standing until closed

Security checklist — graded from evidence

ItemGradeEvidence
Memory safety by constructioncore: yes, by construction; front shell: not establishedSPARK expression functions, no IO, no state, obligations discharged (ledger 86); the .adb shell is compile-gated Ada
Proof coveragecore: all obligations discharged; front shell: nonegnatprove logs in wu-credit-grant/edge; the shell carries no proof obligations
Fail-closed doors witnessedwitnessedexit-3 refusals on unknown kind and wrong arity graded in the 13/13 table and re-runnable here; the anti-replay refusal witnessed live through the portal 08-13; the unwired-front refusal (unset CREDIT_GRANT_DECIDER means no credit enters any account) exercised by the portal's tests
Adversarial passnot yetno adversarial pass recorded — stated, not hidden
Dependency surface0 external modules beyond the GNAT runtimewith-clauses: Ada.Command_Line, Ada.Text_IO, the core package; no third-party code
Provenance chainintact for the core; open at the journal seamprose spec -> prove logs -> provenance JSONs in wu-credit-grant/edge (ledger 86); but a journalled grant does not yet carry the front's verdict with it — the module #5 gap named in the open issues

The fitting bench

fitting evidence: none yet — no artifact has been fitted to a customer environment

Back to the zone