{
  "name": "The ROAS Capital Effect",
  "mark": "The ROAS Capital Effect™",
  "owner": "ROAS Capital Pte. Ltd.",
  "url": "https://roas.capital/#engine",
  "version": "0.1.0",
  "description": "Closed loop that compounds paid spend into attributed revenue. Attribution is the eye, the agent is the brain, landing pages and ad sets are the body and hand, ROAS is the gate, budget is the capital.",
  "nodes": [
    {"id": "attr", "kicker": "01 truth", "title": "Attribution", "role": "first-party journeys, not platform dashboards"},
    {"id": "agent", "kicker": "02 brain", "title": "Agent", "role": "mutations: headline, CTA, audience, bid"},
    {"id": "landing", "kicker": "03 body", "title": "Landing", "role": "Cloudflare Pages version N live"},
    {"id": "ads", "kicker": "04 hand", "title": "Ad sets", "role": "creative + bid + cap"},
    {"id": "gate", "kicker": "05 gate", "title": "ROAS hold", "role": "live ROAS vs target; hold or kill"},
    {"id": "budget", "kicker": "06 capital", "title": "+ Budget", "role": "scale winners; starve losers"}
  ],
  "compounding": {
    "start_roas": 1.0,
    "target_roas": [2, 3],
    "versions": 40,
    "window": "1 week",
    "formula": "1 + (target-1) * (1 - (1 - version/40)^1.65)"
  },
  "agent_interface": {
    "discover": [
      "https://roas.capital/llms.txt",
      "https://roas.capital/effect.json",
      "https://digihub-x402.marcel-13f.workers.dev/v1/tools"
    ],
    "pay": {
      "protocol": "x402",
      "asset": "USDC",
      "network": "eip155:8453",
      "facilitator": "digihub-x402",
      "status": "planned",
      "proposed_tools": [
        {
          "name": "roas_effect_observe",
          "method": "GET",
          "path": "/v1/roas/effect",
          "paid": false,
          "returns": "current loop state for a page: version, compounding_roas, last_gate"
        },
        {
          "name": "roas_effect_cycle",
          "method": "POST",
          "path": "/v1/roas/effect/cycle",
          "paid": true,
          "price_usdc": 1,
          "body": {
            "page_url": "https://…",
            "spend_eur": 200000,
            "target_roas": 3,
            "version": 1
          },
          "returns": "next version, mutations[], gate hold|scale|kill, log line"
        },
        {
          "name": "roas_effect_apply",
          "method": "POST",
          "path": "/v1/roas/effect/apply",
          "paid": true,
          "price_usdc": 5,
          "note": "Applies an approved mutation to Cloudflare Pages + Meta/Google child account. Human gate until Feike attribution + ROAS optimizer are wired."
        }
      ]
    }
  }
}
