{
  "schema": "coreguard.surface-status/1",
  "updated": "2026-11-18",
  "why": "One registry so that 'code exists', 'something was executed once' and 'an external project can adopt this' can never be averaged into a single flattering word.",
  "axes": {
    "code": ["BUILT", "BUILT_UNVERIFIED", "PLAN_ONLY", "NOT_BUILT"],
    "execution": ["EXECUTED", "REAL_BOOK_EXECUTED", "POLICY_GATE_EXECUTED", "TEST_EXECUTED", "NONE"],
    "integration": ["ADOPTED", "PILOT", "NOT_BUILT"]
  },
  "rules": [
    "integration=ADOPTED requires a named external project running the surface, with evidence committed.",
    "integration=PILOT requires a named external partner and a committed pilot record; a plan is not a pilot.",
    "execution=EXECUTED means a committed artifact proves the call happened; it says nothing about adoptability.",
    "code=BUILT_UNVERIFIED means the file exists but no test or executed artifact covers it.",
    "No single combined label may replace these three axes anywhere in docs/."
  ],
  "surfaces": [
    {
      "id": "stellar-adapter",
      "label": "Stellar integration adapter (read / build / submit gate)",
      "path": "packages/stellar/index.mjs",
      "code": "BUILT",
      "execution": "NONE",
      "integration": "NOT_BUILT",
      "matrixRow": true,
      "evidence": [],
      "note": "Reads Horizon and builds intents; submission only through an injected submitter. No live integration, no customer."
    },
    {
      "id": "stellar-soroban-anchor",
      "label": "Soroban commitment anchor (contract + first commit call)",
      "path": "soroban/commitment-anchor",
      "code": "BUILT",
      "execution": "EXECUTED",
      "integration": "NOT_BUILT",
      "matrixRow": true,
      "evidence": ["docs/evidence/stellar-soroban-commit-executed.json"],
      "note": "Deployed to Stellar mainnet and commit() INVOKED by the owner's own script. No external project calls it."
    },
    {
      "id": "stellar-dex-gate",
      "label": "DEX gating against the real order book (DEX-GATE/1)",
      "path": "packages/stellar/dex-gating.mjs",
      "code": "BUILT",
      "execution": "REAL_BOOK_EXECUTED",
      "integration": "NOT_BUILT",
      "matrixRow": true,
      "evidence": ["docs/evidence/stellar-dex-gate-executed.json"],
      "note": "Five verdicts computed against the live XLM/USDC book. Returns PLAN_ONLY; it never sends."
    },
    {
      "id": "stellar-agent-gate",
      "label": "Agent payment gate, policy matrix (STELLAR-AGENT/1)",
      "path": "packages/stellar-agent/index.mjs",
      "code": "BUILT",
      "execution": "POLICY_GATE_EXECUTED",
      "integration": "NOT_BUILT",
      "matrixRow": true,
      "evidence": ["docs/evidence/stellar-agent-gate-executed.json"],
      "note": "VERIFIED / REJECTED / HELD matrix executed offline; submit NOT_PERFORMED (credential-gated)."
    },
    {
      "id": "stellar-presign-receipt",
      "label": "Pre-sign authorization receipts (PSAR/1)",
      "path": "packages/stellar/presign.mjs",
      "code": "BUILT",
      "execution": "TEST_EXECUTED",
      "integration": "NOT_BUILT",
      "matrixRow": true,
      "evidence": ["test/integrations/stellar-presign.test.mjs", "examples/stellar-presign/demo.mjs"],
      "note": "A receipt binds an authorization decision to the exact transaction XDR bytes (sha256 + Ed25519 over canonical JSON), fail-closed PASS or BLOCK; every verdict carries executionProof NOT_INCLUDED. Offline demo: npm run stellar:presign. No wallet embeds it; the Freighter proposal is a proposal, not an integration."
    },
    {
      "id": "agent-gate",
      "label": "Agent payment gate + signed receipts + independent verifier (AGENT-GATE/1)",
      "path": "packages/agent-gate/index.mjs",
      "code": "BUILT",
      "execution": "TEST_EXECUTED",
      "integration": "NOT_BUILT",
      "matrixRow": true,
      "evidence": [],
      "note": "The flagship surface: refuses an envelope that diverges from the authorized intent, including a batched second payment. No signer, no submission, no chain read. Distinct from product 1 of the agent-commerce family — the composed AC-FW/1 firewall (agent-authorization-firewall), which composes packages/policy over the agent-commerce verdict rather than extending this Stellar mandate gate."
    },
    {
      "id": "stellar-freighter",
      "label": "Freighter wallet wrapper",
      "path": "packages/stellar/freighter.mjs",
      "code": "BUILT_UNVERIFIED",
      "execution": "NONE",
      "integration": "NOT_BUILT",
      "matrixRow": true,
      "evidence": [],
      "note": "No end-to-end test: there is no browser wallet in CI and no credential path. Credential-gated, not proven."
    },
    {
      "id": "stellar-mainnet-executor",
      "label": "Mainnet executor (payment / invoke / anchor)",
      "path": "packages/stellar/mainnet-executor.mjs",
      "code": "PLAN_ONLY",
      "execution": "NONE",
      "integration": "NOT_BUILT",
      "matrixRow": true,
      "evidence": [],
      "note": "Returns PLAN_OK plus sample code. It is a planning surface, correctly labelled PLAN_ONLY."
    },
    {
      "id": "independent-verifier",
      "label": "Independent receipt verifier (offline, no CoreGuard server)",
      "path": "packages/independent-verifier",
      "code": "BUILT",
      "execution": "TEST_EXECUTED",
      "integration": "NOT_BUILT",
      "matrixRow": true,
      "evidence": [],
      "note": "Verifies committed evidence packages; adoption by a third party is 0."
    },
    {
      "id": "agent-gate-xdr",
      "label": "Envelope builder and decoder (AGENT-XDR/1)",
      "path": "packages/agent-gate/adapters/stellar-xdr.mjs",
      "code": "BUILT",
      "execution": "EXECUTED",
      "integration": "NOT_BUILT",
      "matrixRow": true,
      "evidence": ["docs/evidence/agent-gate-testnet-signature.json", "test/integrations/agent-gate-envelope.test.mjs"],
      "note": "Builds unsigned envelopes, decodes signed ones, refuses secrets, fee-bumps and unreadable bytes. An envelope carries no network: the hash binds the caller's passphrase. An envelope built here was signed and included on Stellar testnet (tx 7f863dd2…41b757, ledger 5665413) on 2026-11-10 and re-decoded offline."
    },
    {
      "id": "agent-gate-freighter",
      "label": "Freighter signing adapter",
      "path": "packages/agent-gate/adapters/freighter.mjs",
      "code": "BUILT_UNVERIFIED",
      "execution": "TEST_EXECUTED",
      "integration": "NOT_BUILT",
      "matrixRow": true,
      "evidence": ["docs/evidence/agent-gate-testnet-signature.json", "test/integrations/agent-gate-envelope.test.mjs"],
      "note": "Contract verified with an injected wallet: signed, empty, unsigned and swapped-bytes cases. The signing path also carried a real testnet signature to a ledger, but with a local keypair behind the Freighter interface — the extension was probed in the available browser and is NOT installed (window.freighter undefined), so a real extension has still never signed here. A real extension promotes this surface to BUILT by signing in the demo, which writes docs/evidence/agent-gate-freighter-extension-signature.json only after the server verifies an Ed25519 signature by the declared wallet key; node scripts/agent-gate-freighter-attest.mjs --verify re-derives it and --promote edits this registry."
    },
    {
      "id": "agent-gate-verify-cli",
      "label": "Third-party verifier CLI",
      "path": "packages/agent-gate/verify-cli.mjs",
      "code": "BUILT",
      "execution": "TEST_EXECUTED",
      "integration": "NOT_BUILT",
      "matrixRow": true,
      "evidence": ["test/integrations/agent-gate-envelope.test.mjs"],
      "note": "Exit codes 0/2/3/4 proven, including a receipt paired with a foreign envelope. Zero external users have run it."
    },
    {
      "id": "agent-gate-bench",
      "label": "In-process performance measurement",
      "path": "scripts/agent-gate-bench.mjs",
      "code": "BUILT",
      "execution": "TEST_EXECUTED",
      "integration": "NOT_BUILT",
      "matrixRow": true,
      "evidence": ["docs/evidence/agent-gate-bench.json"],
      "note": "2000 samples recorded. In-process only: not deployed latency, not chain confirmation, not throughput."
    },
    {
      "id": "agent-gate-browser-demo",
      "label": "Runnable browser demo (gate → wallet → conformance → receipt)",
      "path": "examples/agent-gate-browser",
      "code": "BUILT",
      "execution": "TEST_EXECUTED",
      "integration": "NOT_BUILT",
      "matrixRow": true,
      "evidence": ["test/integrations/agent-gate-browser-demo.test.mjs", "examples/agent-gate-browser/index.html"],
      "note": "A judge runs the local server and drives the loop in a browser. The page probes window.freighterApi and window.stellar.freighter, and when neither exists it says a local demo keypair signed rather than claiming a wallet. Nothing is submitted to a ledger."
    },
    {
      "id": "agentic-escrow-adapter",
      "label": "Agentic escrow arbitration adapter",
      "path": "packages/agentic-escrow-arbitration",
      "code": "BUILT",
      "execution": "NONE",
      "integration": "NOT_BUILT",
      "matrixRow": false,
      "evidence": [],
      "note": "DRY_RUN / NOT_BUILT by design; structurally unable to claim a live call."
    },
    {
      "id": "peoples-court-adapter",
      "label": "People's Court attestation adapter",
      "path": "packages/peoples-court-adapter",
      "code": "BUILT",
      "execution": "NONE",
      "integration": "NOT_BUILT",
      "matrixRow": false,
      "evidence": [],
      "note": "Fail-closed intake only. A read-only review is not an integration, an endorsement or adoption."
    },
    {
      "id": "agent-authorization-firewall",
      "label": "Agent Authorization Firewall (AC-FW/1) (product 1)",
      "path": "packages/agent-commerce/firewall.mjs",
      "code": "BUILT",
      "execution": "TEST_EXECUTED",
      "integration": "NOT_BUILT",
      "matrixRow": true,
      "evidence": ["test/integrations/agent-commerce-firewall.test.mjs", "examples/agent-commerce-firewall/run.mjs", "examples/agent-commerce-firewall/artifacts.json"],
      "note": "Product 1 of the agent-commerce family as ONE composed face over the existing engines (packages/policy + the CGCR/1 consent binding + the CGEP/1 verdict + AGR/1 — no fifth engine): a request-time interception gate (authorizeRequest: committed policy against the declared request, consent byte-match, caller-pinned window, single-use replay consulted but never consumed) and the after-the-fact review (reviewExecution: the full verifyExecution record). Refusals carry the frozen AC-FW/1 codes; ALLOW requires an empty reasons list; decisions are byte-deterministic. TEST_EXECUTED (contract tests + deterministic demo with committed artifacts); integration NOT_BUILT (no external adopter yet). Distinct older engines it composes but does not absorb: packages/firewall (Phase-D EVM decision core) and packages/agent-gate (Stellar mandate gate, AGENT-GATE/1)."
    },
    {
      "id": "consent-receipts",
      "label": "Verifiable Consent Receipts (CGCR/1) (product 2)",
      "path": "packages/agent-commerce/index.mjs",
      "code": "BUILT",
      "execution": "TEST_EXECUTED",
      "integration": "NOT_BUILT",
      "matrixRow": true,
      "evidence": ["packages/agent-commerce/index.mjs"],
      "note": "Product 2 of the agent-commerce family: a consent record binds the user's approval to the exact approved order bytes as an independently re-derivable receipt; a verifying execution that diverges is fail-closed INVALID with the drifted field named (AGR/1). Durable cross-process consumption anchoring on the same host is provided by the file-backed AC-CS/1 store adapter (consumedSet injection); an on-chain single-use marker remains OWNER-GATED / NOT_BUILT."
    },
    {
      "id": "agent-risk-engine",
      "label": "Agent Risk Engine (AGR/1) + standalone CLI (product 3)",
      "path": "packages/agent-commerce/risk.mjs",
      "code": "BUILT",
      "execution": "TEST_EXECUTED",
      "integration": "NOT_BUILT",
      "matrixRow": true,
      "evidence": ["packages/agent-commerce/risk.mjs", "packages/agent-commerce/risk-cli.mjs", "test/integrations/agent-commerce-risk-cli.test.mjs"],
      "note": "Product 3 of the agent-commerce family: deterministic authorization-drift taxonomy (named classes + severities, classes frozen) plus standalone CLI with assessment persistence (`packages/agent-commerce/risk-cli.mjs`: JSON report + JSONL ledger). Not a probabilistic fraud score; VERIFIED ≠ SAFE."
    },
    {
      "id": "agent-commerce-sdk-mcp-rest",
      "label": "Agent Commerce SDK + MCP + REST API (product 4)",
      "path": "packages/agent-commerce",
      "code": "BUILT",
      "execution": "TEST_EXECUTED",
      "integration": "NOT_BUILT",
      "matrixRow": true,
      "evidence": ["packages/agent-commerce/index.mjs"],
      "note": "Product 4 of the agent-commerce family: the commerce arc ships as SDK surface + MCP server (stdio JSON-RPC) + REST endpoints (POST /v1/authorize, POST /v1/verify, POST /v1/risk-assess). The 14 `@coreguard/*` packages are published on npm (0.1.0 series), and `@coreguard/agent-commerce` is published at 0.1.3 (2026-11-22) with the stdio MCP bin and corrected mcpName. The MCP server is listed in the MCP Registry as `io.github.EslaM-X/coreguard-agent-commerce@0.1.3` (active, isLatest, republished 2026-11-22). External adoption/integration remains NOT_BUILT; VERIFIED ≠ SAFE."
    },
    {
      "id": "agent-commerce-consumption-store",
      "label": "Durable single-use consumption store adapter (AC-CS/1)",
      "path": "packages/agent-commerce/consumption-store.mjs",
      "code": "BUILT",
      "execution": "TEST_EXECUTED",
      "integration": "NOT_BUILT",
      "matrixRow": true,
      "evidence": ["packages/agent-commerce/consumption-store.mjs", "test/integrations/agent-commerce-consumption-store.test.mjs"],
      "note": "File-backed Set-compatible consumption ledger for durable cross-process single-use anchoring on the same host via existing consumedSet injection. NOT a distributed ledger and NOT an on-chain marker; an on-chain consumption marker remains OWNER-GATED / NOT_BUILT. VERIFIED ≠ SAFE."
    },
    {
      "id": "agent-commerce-attack-battery",
      "label": "Agent Commerce named attack battery (prompt-injection fuzz + post-approval swaps/drifts + replay + cross-session gap + expiry + tamper)",
      "path": "test/integrations/agent-commerce-attack-battery.test.mjs",
      "code": "BUILT",
      "execution": "TEST_EXECUTED",
      "integration": "NOT_BUILT",
      "matrixRow": true,
      "evidence": ["test/integrations/agent-commerce-attack-battery.test.mjs"],
      "note": "Deterministic six-vector prompt-injection fuzz set, recipient swap post-approval, tax/shipping/fee escalation, credential substitution, replay, the DOCUMENTED cross-session consumption gap (fresh ledger cannot see prior consumption — named on the report, never hidden), expiry, receipt tamper, byte-determinism. Offline, synthetic orders only; VERIFIED ≠ SAFE."
    },
    {
      "id": "agent-commerce-typescript-types",
      "label": "Agent Commerce TypeScript declaration surface (AC-SDK/1 typed façade)",
      "path": "packages/agent-commerce/index.d.ts",
      "code": "BUILT",
      "execution": "TEST_EXECUTED",
      "integration": "NOT_BUILT",
      "matrixRow": true,
      "evidence": ["packages/agent-commerce/index.d.ts", "packages/agent-commerce/tsconfig.json", "packages/agent-commerce/typecheck-smoke.ts", "test/integrations/agent-commerce-types.test.mjs"],
      "note": "Type-only declaration surface over index.mjs + risk.mjs, validated structurally (declared value-exports ↔ runtime exports, constant equality, boundary strings, no implementation) and type-checked in CI via `npx --yes --package typescript@5.9 tsc --noEmit --project packages/agent-commerce` (declaration surface + smoke)."
    },
    {
      "id": "agent-commerce-dashboard",
      "label": "Agent Commerce authorization-decisions & receipts dashboard (bilingual operator view)",
      "path": "docs/agent-commerce-dashboard.html",
      "code": "BUILT",
      "execution": "TEST_EXECUTED",
      "integration": "NOT_BUILT",
      "matrixRow": true,
      "evidence": ["docs/agent-commerce-dashboard.html", "test/integrations/agent-commerce-dashboard-page.test.mjs"],
      "note": "Arabic-first RTL page with an English mirror: decision timeline (APPROVE → EXECUTE exact → MCP INVALID → HTTP VERIFIED), the 8 named attacks refused, the consent receipt id + pinned epoch, and the honest gaps panel. Embeds the committed suite artifacts verbatim; fully offline (no external scripts, fetches, absolute URLs or imports)."
    },
    {
      "id": "agent-commerce-attestation",
      "label": "Cross-Chain Execution Attestation (CGXA/1) + Soroban consent-binding preparation (product 5)",
      "path": "packages/agent-commerce/attest.mjs",
      "code": "BUILT",
      "execution": "TEST_EXECUTED",
      "integration": "NOT_BUILT",
      "matrixRow": true,
      "evidence": ["packages/agent-commerce/attest.mjs", "test/integrations/agent-commerce-attestation.test.mjs", "test/integrations/agent-commerce-soroban-binding.test.mjs", "examples/agent-commerce-attestation/run.mjs", "examples/agent-commerce-attestation/artifacts.json"],
      "note": "Product 5 of the agent-commerce family: one verifiable statement binding the consent receiptId + the executed-order commitment (the CGEP/1 trace-domain hash) + the target chain's COMMITTED binding record (frozen adapter registry: Core DAO anchor chainId 1116 per docs/DEPLOYMENT.md; Stellar anchor contract per docs/EVIDENCE-MATRIX.md) + verification level COMMITTED_EVIDENCE. Offline, deterministic, fail-closed with 9 frozen reject codes. Soroban consent-binding integration is BUILT as offline preparation (CGXA-SOROBAN/1: `buildSorobanConsentBinding`, commit_authorized invocation payload, no broadcast). THERE IS NO BROADCAST SURFACE — any commit_authorized call is owner-authorized only and NOT_PERFORMED; an attestation of one environment is never bridge trust or a relay; VERIFIED ≠ SAFE."
    }
  ]
}
