SafeGate V12 Trust-State / Privacy / Web3

Payment is the trigger. Trust-state is the architecture.

V12 documents SafeGate’s longer-term trust-state, privacy, and Web3 architecture direction. It builds on the controlled Pi Testnet payment-spine pass, the V9.1 safe negative backend validation pass, and the completed V9.1 public review sync.

SafeGate does not process payments. SafeGate verifies what happened after payment.

Pi-first, not Pi-only.

Current V12 Status

Area Status
Controlled Pi Testnet Payment SpinePASSED
V9.1 Safe Negative Backend ValidationPASSED · 18 / 18
V9.1 Public Review SyncCOMPLETE
V12 Trust-State / Privacy / Web3 DirectionDOCUMENTED DIRECTION
Complete Privacy ProtocolNOT CLAIMED
Production ReadinessNOT CLAIMED
Formal Third-Party AuditNOT CLAIMED
All Chains IntegratedNOT CLAIMED

Trust-State Layer

ARCHITECTURE DIRECTION

SafeGate maps invoice, payment, backend verification, receipt, evidence, public verify, access, freshness, integrity, and review states.

Privacy Layer

MINIMUM DISCLOSURE

Public verify should confirm outcome without exposing raw paymentId, txid, wallet data, customer data, secrets, or raw API responses.

Web3 Layer

PI-FIRST / NOT PI-ONLY

Current evidence is Pi Testnet / Sandbox oriented. Long-term architecture can remain chain-agnostic through adapters.

V12 Architecture Idea

SafeGate treats payment as a trigger, not the final product.

The product is a verifiable post-payment trust state: what was verified, when it was verified, what receipt/evidence exists, whether public verify is safe, and whether access is active, expired, revoked, disputed, stale, or unavailable.

Possible Trust States

Trust State Meaning
INVOICE_CREATEDInvoice exists; access should still be locked.
PAYMENT_PENDINGPayment flow started but backend verification is not final.
PAYMENT_VERIFIED_TESTNETControlled Testnet payment verification state reached.
RECEIPT_CREATEDReceipt created after verified state.
EVIDENCE_CREATEDEvidence created after verified state.
PUBLIC_VERIFY_AVAILABLEMinimum-disclosure public verification is available.
ACCESS_UNLOCKED_BY_BACKEND_VERIFIED_RECEIPTAccess unlock follows backend-verified receipt.
ACCESS_EXPIREDAccess is no longer active.
ACCESS_REVOKEDAccess was revoked.
ACCESS_DISPUTEDRecord is under dispute.
REVIEW_REQUIREDAmbiguous or unsafe state requires review.
STALEPublic verify result may be old or no longer current.
UNAVAILABLEBackend or verify state is unavailable.

Core Rule

No receipt, no evidence, and no access unlock before backend-verified payment state.

Frontend callback alone must never unlock access. Unknown, missing, ambiguous, duplicate, replayed, mismatched, expired, failed, stale, or unavailable states should fail secure.

Privacy / Minimum Disclosure Boundary

Public Verify Should Not Expose

  • raw paymentId
  • raw txid
  • wallet address
  • recipient address
  • access token
  • service role key
  • raw Pi API response
  • private customer data
  • private wallet data
  • environment variables

Public Verify May Expose

  • verified status
  • publicSafe status
  • minimumDisclosure status
  • paymentState label
  • accessState label
  • receiptStatus
  • evidenceStatus
  • freshnessStatus when implemented
  • integrityStatus when implemented

Future Public Verify Shape

{
  "verified": true,
  "publicSafe": true,
  "minimumDisclosure": true,
  "paymentState": "PAYMENT_VERIFIED_TESTNET",
  "accessState": "ACCESS_UNLOCKED_BY_BACKEND_VERIFIED_RECEIPT",
  "receiptStatus": "RECEIPT_CREATED",
  "evidenceStatus": "EVIDENCE_CREATED",
  "freshnessStatus": "ACTIVE_OR_NOT_IMPLEMENTED_YET",
  "integrityStatus": "VALID_OR_NOT_IMPLEMENTED_YET",
  "privateDataIncluded": false,
  "secretsIncluded": false,
  "paymentIdIncluded": false,
  "txidIncluded": false,
  "customerDataIncluded": false
}

Freshness and integrity are architecture directions unless separately implemented and validated.

V9.1 Evidence Baseline For V12

Chain-Agnostic Direction

SafeGate is Pi-first because the current evidence path uses Pi Browser, Pi authentication, payments scope, Pi Wallet, and Pi Testnet / Sandbox context.

Long-term, SafeGate can remain chain-agnostic through a shared trust-state model and future payment adapters.

Future Direction Boundary
PaymentAdapter abstractionDirection, not proof of all integrations.
PiAdapterCurrent focus is Pi-first evidence path.
Future EVM adapterNot currently claimed complete.
Future Stellar / Soroban adapterNot currently claimed complete.
Shared public verify modelArchitecture direction.
Shared privacy boundaryMinimum disclosure direction.

AI-Agent Readiness Boundary

V12 can prepare future AI-agent-readable trust states, but AI-agent readiness should not outrun backend hardening.

What V12 Does Not Claim

Review Links

Item Link
Main Review Hubhttps://www.safegatelabs.xyz
Pilot Review Index/pilot-review-index.html
V9 Payment Spine Evidence/v9-pi-payment-spine-evidence.html
V9.1 Backend Behavior Validation/v9-1-backend-behavior-validation.html
V9.1 Public Review Sync/v9-1-public-review-sync-complete.html
V12 Final Freeze Note/v12-final-freeze-note.html
V12 Public Repo PlanSAFEGATE_V12_TRUST_STATE_PRIVACY_WEB3_PLAN.md
V12 Public Repo Close NoteSAFEGATE_V12_FINAL_CLOSE_NOTE.md
Public Review Sync CompleteSAFEGATE_V9_1_PUBLIC_REVIEW_SYNC_COMPLETE.md

Main V12 Review Question

Which parts are current evidence, and which parts are future architecture direction?

Current evidence includes the controlled Pi Testnet payment-spine pass and selected V9.1 safe negative backend validation. Trust-state expansion, freshness, integrity, AI-agent readiness, and chain-agnostic adapters remain architecture direction until separately implemented and validated.

Final V12 Position

V12 is SafeGate’s documented trust-state, privacy, and Web3 architecture direction.

It builds on Controlled Pi Testnet Payment Spine, V9.1 Safe Negative Backend Validation, and V9.1 Public Review Sync.

SafeGate remains not production-ready, not formally audited, and not a completed privacy protocol.