{
  "kind": "ibc-activity-feed",
  "version": 1,
  "notice": "Testnet only. Every facility, loan, host and serial number here is invented. An automated test wallet posts these records itself; they do not pass through Flare Confidential Compute. No lender uses this.",
  "generatedAt": "2026-11-23T14:00:37.812Z",
  "runner": {
    "mode": "coston2",
    "network": "Flare Coston2 testnet",
    "chainId": 114,
    "explorer": "https://coston2-explorer.flare.network",
    "wallet": "0xB174FBe2eF323F80BD20218A6FA9182C6b18A885",
    "balance": 95.09603321901854,
    "lowFunds": false,
    "registry": "0xf7c9b4c639e435554de7548115d7f9ae4a49b36b",
    "vault": "0x792383adaf75335a969c0d023c5f1b21e3e97078",
    "facilityId": "fac-runner-0001",
    "intervalMinutes": 120,
    "startedAt": "2026-11-23T13:56:35.839Z",
    "commit": "fe9a823+changes",
    "nextRunAt": "2026-11-23T16:00:42.947Z"
  },
  "health": {
    "lastScenarioOk": true,
    "suitesOk": true,
    "lastCycleAt": "2026-11-23T14:00:37.812Z"
  },
  "totals": {
    "cycles": 2,
    "scenarios": 2,
    "asExpected": 2,
    "transactions": 4,
    "suiteRuns": 3,
    "suiteFailures": 0
  },
  "scenarioList": [
    {
      "key": "clean-pass",
      "title": "Clean inspection, draw allowed",
      "story": "Every scheduled GPU answers on its host. The record is a PASS and the borrower draws.",
      "expect": "PASS on chain; the draw goes through",
      "next": false,
      "lastAt": "2026-11-23T13:56:46.033Z",
      "lastOk": true
    },
    {
      "key": "replaced-unit",
      "title": "A unit was swapped, draw refused",
      "story": "Host inv-host-a02 holds a GPU that is not on the schedule, and a scheduled one is gone. Nobody explained it.",
      "expect": "FAIL on chain; the draw is refused with ProofFailed",
      "next": false,
      "lastAt": "2026-11-23T14:00:37.812Z",
      "lastOk": true
    },
    {
      "key": "explained-replacement",
      "title": "Swap explained as a warranty replacement",
      "story": "The same swap, but the inspector records it as a warranty replacement not yet on the schedule (Amber). This vault does not lend on exceptions.",
      "expect": "PASS_WITH_EXCEPTIONS on chain; the draw is refused with ProofHasExceptions",
      "next": true,
      "lastAt": null,
      "lastOk": null
    },
    {
      "key": "old-capture",
      "title": "A capture made before the inspection",
      "story": "One host hands over a capture that does not carry the code given out on the day. Every serial matches, but the read cannot be relied on.",
      "expect": "FAIL on chain although all serials match; the draw is refused",
      "next": false,
      "lastAt": null,
      "lastOk": null
    },
    {
      "key": "host-not-read",
      "title": "A host was not read",
      "story": "One of the two hosts gives no capture, so half the scheduled units are unaccounted for.",
      "expect": "FAIL on chain with 8 of 16 matched; the draw is refused",
      "next": false,
      "lastAt": null,
      "lastOk": null
    },
    {
      "key": "goes-stale",
      "title": "A pass that goes stale by the clock",
      "story": "A clean PASS whose record is valid for under a minute (a runner-only setting; a real record is valid for weeks). Nothing is sent after it is posted.",
      "expect": "Draw allowed while fresh; after the valid-until time the vault refuses with ProofStale, with no transaction in between",
      "next": false,
      "lastAt": null,
      "lastOk": null
    },
    {
      "key": "replay",
      "title": "The same record sent twice",
      "story": "A PASS is posted. Then the very same record is offered again, as someone might to refresh an old result.",
      "expect": "The registry refuses the second one with RecordAlreadyPosted",
      "next": false,
      "lastAt": null,
      "lastOk": null
    },
    {
      "key": "rollback",
      "title": "An older record after a newer one",
      "story": "Today's FAIL is on chain. Then yesterday's clean PASS is offered, to put a better result back.",
      "expect": "The registry refuses it with OlderThanStoredRecord; the FAIL stands",
      "next": false,
      "lastAt": null,
      "lastOk": null
    },
    {
      "key": "correction",
      "title": "A pass corrected to a fail the same day",
      "story": "A PASS is posted in the morning. A second inspection the same day finds a swapped unit and posts a FAIL.",
      "expect": "The FAIL replaces the PASS; the draw that was allowed is now refused",
      "next": false,
      "lastAt": null,
      "lastOk": null
    },
    {
      "key": "tampered-evidence",
      "title": "Evidence changed after the report",
      "story": "A capture file is altered after the report was built. The check that the report follows from its evidence runs before anything is posted.",
      "expect": "The evidence check fails and nothing is sent to the chain",
      "next": false,
      "lastAt": null,
      "lastOk": null
    }
  ],
  "suites": {
    "at": "2026-11-23T14:00:21.453Z",
    "tests": 331,
    "passed": 331,
    "failed": 0,
    "list": [
      {
        "key": "collector",
        "title": "Collector and inspector kit",
        "what": "Serial matching, findings, report hashes, capture checks, the inspect command",
        "status": "pass",
        "tests": 86,
        "passed": 86,
        "failed": 0,
        "durationMs": 940
      },
      {
        "key": "runner",
        "title": "This runner",
        "what": "The feed and the scenario list",
        "status": "pass",
        "tests": 9,
        "passed": 9,
        "failed": 0,
        "durationMs": 67
      },
      {
        "key": "website",
        "title": "Website rules",
        "what": "The rules behind the sandbox page, and what the test activity page may load and say",
        "status": "pass",
        "tests": 88,
        "passed": 88,
        "failed": 0,
        "durationMs": 829
      },
      {
        "key": "driver-stale",
        "title": "Coston2 driver: stale path",
        "what": "Order of work of coston2-finish.sh, with stand-in tools",
        "status": "pass",
        "tests": 29,
        "passed": 29,
        "failed": 0,
        "durationMs": 637
      },
      {
        "key": "driver-job",
        "title": "Coston2 driver: inspection job",
        "what": "coston2-job.sh and its refusals, with stand-in tools",
        "status": "pass",
        "tests": 50,
        "passed": 50,
        "failed": 0,
        "durationMs": 4354
      },
      {
        "key": "contracts",
        "title": "Registry and vault contracts",
        "what": "ProofRegistry and MockLoanVault unit tests (Hardhat)",
        "status": "pass",
        "tests": 47,
        "passed": 47,
        "failed": 0,
        "durationMs": 1230
      },
      {
        "key": "gate",
        "title": "Gate end to end, local",
        "what": "The real registry and vault behind the extension contract and a mock FlareTeeManager (Foundry)",
        "status": "pass",
        "tests": 22,
        "passed": 22,
        "failed": 0,
        "durationMs": 582
      }
    ]
  },
  "demo": {
    "at": "2026-11-23T14:00:42.947Z",
    "registry": "0x04118f37F386Ee7436D6503b2132E42223Ba956C",
    "vault": "0x1708F9a20fAC214ceac24E5701C9fd824a5596ac",
    "status": 1,
    "fresh": true,
    "canDraw": true,
    "reason": "OK",
    "explorer": "https://coston2-explorer.flare.network"
  },
  "cycles": [
    {
      "id": 2,
      "at": "2026-11-23T14:00:37.812Z",
      "mode": "coston2",
      "network": "Flare Coston2 testnet",
      "scenario": {
        "key": "replaced-unit",
        "title": "A unit was swapped, draw refused",
        "story": "Host inv-host-a02 holds a GPU that is not on the schedule, and a scheduled one is gone. Nobody explained it.",
        "expect": "FAIL on chain; the draw is refused with ProofFailed",
        "observed": "FAIL on chain; draw refused with ProofFailed",
        "ok": true,
        "steps": [
          {
            "kind": "offchain",
            "label": "Inspection",
            "detail": "15 of 16 scheduled units matched, 2 exception(s). Result: FAIL"
          },
          {
            "kind": "offchain",
            "label": "Evidence check",
            "detail": "The report follows from the evidence files"
          },
          {
            "kind": "tx",
            "label": "Record posted",
            "detail": "FAIL, digest 0x4a0e27a774a04b84…",
            "tx": "0x64a76179514795ad01d3375c85b424d203544ef93e04b0e9c892df3b2dc79b38",
            "url": "https://coston2-explorer.flare.network/tx/0x64a76179514795ad01d3375c85b424d203544ef93e04b0e9c892df3b2dc79b38",
            "gasUsed": 155431
          },
          {
            "kind": "read",
            "label": "Registry and vault",
            "detail": "registry reads FAIL, fresh; vault says no draw: FAILED"
          },
          {
            "kind": "read",
            "label": "Draw attempt",
            "detail": "Refused by the vault: ProofFailed"
          }
        ],
        "durationMs": 8764
      },
      "balance": 95.09603321901854
    },
    {
      "id": 1,
      "at": "2026-11-23T13:56:46.033Z",
      "mode": "local",
      "network": "Simulated chain inside the runner",
      "scenario": {
        "key": "clean-pass",
        "title": "Clean inspection, draw allowed",
        "story": "Every scheduled GPU answers on its host. The record is a PASS and the borrower draws.",
        "expect": "PASS on chain; the draw goes through",
        "observed": "PASS on chain; draw went through",
        "ok": true,
        "steps": [
          {
            "kind": "offchain",
            "label": "Inspection",
            "detail": "16 of 16 scheduled units matched, 0 exception(s). Result: PASS"
          },
          {
            "kind": "offchain",
            "label": "Evidence check",
            "detail": "The report follows from the evidence files"
          },
          {
            "kind": "tx",
            "label": "Record posted",
            "detail": "PASS, digest 0xbab5db61edf6fdcc…",
            "tx": "0x5a0b4d6d965988ae7a2fd8c2a58857ec82289c66a42177c7d4a50cb85f6b621b",
            "url": null,
            "gasUsed": 155293
          },
          {
            "kind": "read",
            "label": "Registry and vault",
            "detail": "registry reads PASS, fresh; vault says a draw is allowed"
          },
          {
            "kind": "tx",
            "label": "Draw",
            "detail": "250000 drawn from the vault",
            "tx": "0x2008ff6bc719625a2c4079cddaec4290a231722b07ecfe4dac8f4df90c421363",
            "url": null,
            "gasUsed": 65446
          },
          {
            "kind": "tx",
            "label": "Repay",
            "detail": "Repaid, so the next run starts from the same balance",
            "tx": "0x1a89345ca93c21c023aad889523fbb08c15c675be3ac36edcbba2bef9c55bf24",
            "url": null,
            "gasUsed": 24274
          }
        ],
        "durationMs": 230
      },
      "balance": 9999.99686602776
    }
  ]
}
