{
  "schema": "sml-ace-machine-contract/v1",
  "product": "SML ACE — Agentic Closure Engine",
  "canonical_url": "https://www.scriptmasterlabs.com/ace",
  "purpose": "Follow one machine intent from demand to accepted outcome, continuously audit discovery and conversion, preserve observable proof, and route around failed tools with truthfully labeled alternatives.",
  "closure_chain": ["DEMAND", "DISCOVER", "GROUND", "TRUST", "ACT", "PAY", "DELIVER", "ACCEPT"],
  "decision_policy": {
    "priority_1": "verified organic/stranger x402 accepted delivery",
    "search_lens": "evaluate scriptmasterlabs.com using observable public search principles and real SERP/GSC evidence; never claim access to Google's private ranking systems",
    "first_party_advantage": "prefer ScriptMasterLabs first-party ECHO, Proof Ledger, Information Gain, settlement, delivery and acceptance evidence when it adds unique verifiable value",
    "optimization_question": "Would a search system understand and trust this canonical asset, would an agent understand and act on it, and did the path produce a real stranger outcome?",
    "reject": ["vanity traffic as success", "402 challenges counted as sales", "controlled tests counted as stranger purchases", "fabricated rankings", "fake citations", "mass thin-page generation"]
  },
  "self_audit": {
    "loop": ["OBSERVE", "DIAGNOSE", "FIX", "PUBLISH", "VALIDATE"],
    "status_endpoint": "https://squeezeos-api.onrender.com/api/aeo/growth/status",
    "cycle_endpoint": "https://squeezeos-api.onrender.com/api/aeo/growth/cycle",
    "cycle_auth": "owner_or_cron_only",
    "inputs": ["real buyer-intent SERP grounding", "Fan Out", "retained ECHO evidence", "conversion proof"],
    "output": "bounded evidence-backed action queue against existing canonical assets",
    "mass_page_creation": false,
    "north_star": "verified organic/stranger x402 accepted delivery"
  },
  "live_api": {
    "base": "https://squeezeos-api.onrender.com",
    "status": "/api/ace/status",
    "resolve": "/api/ace/resolve?intent={intent}&failed_product={optional}",
    "proof_status": "/api/ace/proof/status",
    "self_audit_status": "/api/aeo/growth/status"
  },
  "continuity_order": [
    {"order": 1, "kind": "primary_tool", "meaning": "Best current SML capability match."},
    {"order": 2, "kind": "tool_fallback", "meaning": "Closest truthful executable alternative; equivalence is not assumed."},
    {"order": 3, "kind": "citemesh_evidence_only", "meaning": "Evidence support only; never represented as execution of the failed function."},
    {"order": 4, "kind": "agent_routes_continuation", "meaning": "Broader capability discovery when a direct substitute is not available."},
    {"order": 5, "kind": "unresolved", "meaning": "No valid substitute exists; ACE reports that truthfully rather than fabricate one."}
  ],
  "machine_truth_contract": {
    "one_intent": true,
    "one_primary_route": true,
    "silent_substitution": false,
    "fallbacks_are_labeled": true,
    "fallback_equivalence_is_never_assumed": true,
    "unknown_is_not_invented": true,
    "unprobed_route_is_not_called_live": true,
    "auto_spends": false,
    "payment_402_means": "payment_required_only_not_purchase",
    "purchase_means": "verified settlement evidence plus successful delivery; accepted delivery is tracked separately",
    "google_internal_score": null
  },
  "proof": {
    "model": "append-only hash-chained evidence ledger",
    "public_health": "https://squeezeos-api.onrender.com/api/ace/proof/status",
    "raw_records": "operator_authorized_only",
    "retains_negative_results": true,
    "truth_boundary": "The ledger proves what SML recorded and whether the stored window is hash-consistent. It does not by itself prove causality or access to private search-engine ranking systems."
  },
  "payment_defaults": {
    "network": "eip155:8453",
    "network_name": "Base mainnet",
    "asset": "USDC",
    "canonical_pay_to": "0xc29185fa176357612f3194735753e520e91adc46",
    "authority_rule": "Route-specific live payment metadata is authoritative when present."
  },
  "principle": "Human-readable. Machine-obvious. Evidence-first."
}
