Public-safe summary link · Copies a no-login summary only; this full Master Document stays owner-only.
📜 MASTER DOCUMENT 460
dPRN Console · Operating Doctrine
"Your money printer. £450/tonne fixed. Every mint sealed. Nothing happens without you."
Sealed 02 May 2026Build #76Sovereign-only vaultLibrary only
§1 · What it is
The dPRN Minting Console at /dprn-console is the sovereign-only vault dashboard where digital PRNs are minted at the doctrinal floor of £450 per tonne. Four metric cards at the top, a mint action area in the centre, recent-mints and recent-sales tables in the body, an audit trail on the side, and a settings panel at the bottom.
Every mint requires a confirmation modal — no accidental minting. Every mint is SHA-256 sealed and written to dprn_audit_log. The audit table is append-only by doctrine — refunds add reverse entries; they do not delete originals.
§2 · How to operate it
Mint flow
Enter quantity in the centre input. The total preview updates live (qty × £450).
Add an optional reference (e.g. "May batch · supplier ABC").
Tick "I confirm this material has been verified." The mint button activates.
Click ⚡ Mint — the confirmation modal opens with a triangle warning, the total in gold, and "this action cannot be undone."
Confirm wallet, enter 2FA if enabled, click Confirm Mint.
M · focus mint quantity input Ctrl+Enter · confirm mint (when modal open) Esc · close modal
Settings (collapsible bottom panel)
2FA toggle — adds a 6-digit code requirement to every mint
Mint sound toggle — the satisfying "clunk" on success
Email triggers — on mint, on sale, on low stock
Wallet address — pre-fills the confirmation modal
Min stock alert — Remaining card turns red when stock falls below
§3 · Functions exposed
Endpoint
Method
Purpose
/api/dprn/console/stats
GET
Total minted · value · sold · remaining · buyer count
/api/dprn/console/mints
GET
Last 10 mints
/api/dprn/console/sales
GET
Last 10 sales
/api/dprn/console/audit
GET
Last 100 audit entries
/api/dprn/console/audit/csv
GET
Full CSV export
/api/dprn/console/mint
POST
Create mint · seal SHA-256 · log audit
/api/dprn/console/settings
GET/POST
Read or update settings row
§4 · How it helps now
Mint without spreadsheets. Single source of truth replaces ad-hoc tally sheets.
Audit-immutable from day one. Every action SHA-256 sealed and timestamped. Append-only.
Live metrics. Total minted, total value, sold, remaining — refreshed every 30 seconds.
Settings persist. Your wallet, your low-stock threshold, your email rules — saved per-installation.
CSV export. Audit trail downloads to CSV for accountant or Companies House inspection.
§5 · How it helps in the future
Auto-mint queue. Verified Carrot submissions (status=complete in the Watcher) auto-promote into a "Pending Mint" queue. One operator click mints the whole queue.
Multi-buyer marketplace. The sales table feeds /dprn-exchange — buyers bid above £450; deltas split per Covenant.
Public verification. Every minted SHA-256 hash gets a public /verify/dprn/<hash> page so any buyer can confirm authenticity.
Treasury reconciliation. Hourly job reconciles dprn_mints against dprn_treasury to catch any drift between vault and books.
Whitelabel mode. Same console, scoped to a partner's mint pool — wires into the existing whitelabel_dprn_clients table.
§6 · How to make it better
2FA implementation. The toggle exists; the verification path needs a real TOTP backend (e.g. pyotp) and per-operator secret storage.
Refund modal. Stub exists in the spec; the UI flow needs building (button next to completed sales · reason text · audit reverse-entry).
Stripe-on-sale. Wire the sales table into Stripe Checkout for direct buyer pay-in (re-use the VMR pattern at /buy-meal-receipt).
Sparkline. A 30-day mini-chart on each metric card showing trend at a glance.
Mint approvals. Optional second-operator approval flow for mints over a threshold (e.g. 100 t).
Email backend. Wire the three email triggers (mint · sale · low stock) into SMTP.
Webhook spec. Document the H.BLUE webhook payload publicly so external partners can subscribe.
Mint scheduling. "Mint X dPRN every Monday at 9am" — cron-driven, audit-logged.
§7 · Connected MDs
MD-233 · The Original Carrot — supplier journey upstream.
MD-435 · Proof Stack — the dPRN sits at the heart of the six proof products.
MD-453 · The Circularities — Ring 4 (Circularity Credit) is what the Console mints.
MD-458 · Watcher Doctrine — the upstream supplier pipeline.
MD-459 · Intake Doctrine — the public door.
"The Vault has three rules. The price is £450. The action is irreversible. The trail is immutable. Everything else is convenience. The three rules are the doctrine." — MD-460 · sealed 02 May 2026