{
  "commit": "03dc2d5a727b1195ec82857a98506f632529e280",
  "lens": "liveness",
  "verdict": "findings",
  "counts": {
    "high": 2,
    "medium": 4,
    "low": 0,
    "info": 0
  },
  "findings": [
    {
      "id": "liveness-1",
      "severity": "high",
      "title": "Unprovable successful result has no recovery transition",
      "where": "src/Changeme.sol: _head, proveJob, retry, skip",
      "scenario": [
        "1. A fresh project receives a successful build report.",
        "2. Its authenticated document is unavailable or unsupported by the proof parser."
      ],
      "impact": "Future rounds and their funds cannot advance.",
      "proof": "Static state review and existing lifecycle assertions confirm missing timeout transition for NeedsProof.",
      "fix": "Provide permissionless timeout recovery without deleting the successful version record or treating unauthenticated job IDs as proven. Runtime byte delta not measured; total available margin is 214 bytes.",
      "liveOnly": false
    },
    {
      "id": "liveness-2",
      "severity": "medium",
      "title": "Unknown head recovery depends on new sponsorship",
      "where": "src/Changeme.sol: _head, retry, skip, _tryDispatch",
      "scenario": [
        "1. A project experiences unsuccessful or silent work.",
        "2. Later wishes await recovery."
      ],
      "impact": "Even funded queues may wait indefinitely for a paying volunteer.",
      "proof": "Source review: ordinary pooled dispatch only accepts Open and Continue. README describes sponsorship. Existing recovery suite passed.",
      "fix": "Define a recovery funding policy protecting contributors from invalid parent selection. If authenticated recovery is unavailable, provide a nonpaying exit for stranded contributions. Runtime byte delta not measured; total available margin is 214 bytes.",
      "liveOnly": false
    },
    {
      "id": "liveness-3",
      "severity": "medium",
      "title": "Full underfunded round cannot accept further ordinary contributions",
      "where": "src/Changeme.sol: contribute, retry, _tryDispatch",
      "scenario": [
        "1. A round fills during high prices or temporary dispatch unavailability.",
        "2. The pool remains insufficient for the quote."
      ],
      "impact": "Price reduction or full-price sponsorship is needed; not an unconditional freeze.",
      "proof": "Static review: MAX_WISHES is 50; the limit is enforced before payment. Existing full-round and price tests passed separately.",
      "fix": "Allow funding the shortfall without another wish, or bounded rollover with clear receipt accounting. Runtime byte delta not measured; total available margin is 214 bytes.",
      "liveOnly": false
    },
    {
      "id": "liveness-4",
      "severity": "high",
      "title": "Reported failure bypasses required one-day recovery delay",
      "where": "src/Changeme.sol: _requireRecoverable, retry, skip",
      "scenario": [
        "1. A paid build reports failure before the recovery window elapses.",
        "2. The round is eligible for abandonment earlier than specified."
      ],
      "impact": "Explicit delay rule is broken; paid wishes can be abandoned without the intended recovery window.",
      "proof": "Static review: timing condition applies only to Pending. Existing recovery tests characterize earlier eligibility.",
      "fix": "Apply the one-day eligibility check to all recoverable active attempts with a documented timestamp convention; simplify the status branch. Runtime byte delta not measured; total available margin is 214 bytes.",
      "liveOnly": false
    },
    {
      "id": "liveness-5",
      "severity": "medium",
      "title": "Unavailable price still accepts irreversible contributions",
      "where": "src/Changeme.sol: _livePrice, contribute, _tryDispatch, retry",
      "scenario": [
        "1. The needed action has no available quote.",
        "2. Users queue wishes."
      ],
      "impact": "Dispatch awaits external service restoration; already collected funds have no nonpaying exit. Not evidence of permanent service outage.",
      "proof": "Source and README explicitly describe accepting contributions despite unavailable price.",
      "fix": "Reject new payments while the applicable price is unavailable and define a bounded exit for existing queued funds. Never pay a zero or stale quote. Runtime byte delta not measured; total available margin is 214 bytes.",
      "liveOnly": false
    },
    {
      "id": "liveness-6",
      "severity": "medium",
      "title": "Callback delivery and consumer settlement can diverge",
      "where": "src/Changeme.sol: onResult, onFailure, _requireRecoverable; docs/intake.md",
      "scenario": [
        "1. An Intake request completes without consumer settlement.",
        "2. Timeout recovery is needed."
      ],
      "impact": "Paid work may not become a recorded version. Recovery awaits the day, usable project head and sponsorship. Variable-length URI event work is not uniformly bounded by normal gas tests.",
      "proof": "Documentation records one-shot completion and possible callback suppression. Existing binding and normal controller callback tests passed; no controller OOG reproduction claimed.",
      "fix": "Keep callback work bounded and retain authoritative result references in Intake history. Ensure timeout recovery does not require delivery. Runtime byte delta not measured; total available margin is 214 bytes.",
      "liveOnly": false
    }
  ],
  "checked": [
    "Round Open: anyone contributes or dispatches with known head, available price and sufficient funds; exceptions above.",
    "Round Sent: authenticated Intake settles the active attempt; anyone may recover subject to delay and funding/head conditions.",
    "Round Built: terminal archived version; head proof is a separate requirement.",
    "Round Skipped: terminal archive; late callback cannot settle it. Next round progresses subject to eligibility.",
    "Attempt None: default enum value, not an allocated attempt; getter rejects nonexistent IDs.",
    "Attempt Pending: Intake may settle; anyone can retry or skip after a day. Retry requires sponsor and quote.",
    "Attempt Succeeded: terminal settlement; anyone may prove the job ID with authenticated bytes. Unprovable result is exception above.",
    "Attempt Refused: active recovery available; proven parent preserved. Attempt Failed: active recovery available but head Unknown. Neither becomes Abandoned when closed.",
    "Attempt Abandoned: terminal; stale reports cannot replace current version. Existing silent recovery/archive tests passed.",
    "Head Open: initial or proven open refusal; anyone dispatches eligible idle round.",
    "Head Continue: proven success or proven continuation refusal; anyone dispatches eligible idle round.",
    "Head NeedsProof: anyone may prove committed document; no other transition exists.",
    "Head Unknown: pending, failed, abandoned or unproven refusal; active recovery subject to eligibility; idle nonempty round requires sponsor. Empty idle round needs a wish first.",
    "Existing tests passed for exact allowances, live quotes, serialization, minimum payment, receipts, silent timeout and stale callback rejection.",
    "Existing tests passed for name/symbol, transfer, archive, no public mint/owner surface, wish bytes and body limit. Semantic adherence by generated sites not established.",
    "Live-only observations, not blockers: actual delivery and gas, result document availability/format, current head after failure, historical CID availability. No real orders tested.",
    "Scope limitation: defensive source review and existing local suite only; no new vulnerability reproduction tests, no live transactions or paid orders. Fix size deltas unmeasured."
  ],
  "commands": [
    "git clone https://github.com/identity-md-launches/goal-3599-have-swarm-build-test test/scratch/liveness-source; git checkout --detach 03dc2d5a727b1195ec82857a98506f632529e280 \u2014 exit 0",
    "git rev-parse HEAD; ls -R src test; cat src/Changeme.sol \u2014 exit 0, pinned commit confirmed",
    "cat src/protocol/IntakeBinding.sol test/lifecycle/Recovery.t.sol test/lifecycle/Payments.t.sol docs/intake.md; forge test --offline \u2014 exit 0, solc 0.8.26, 88 passed, 0 failed, 0 skipped, seven suites",
    "cat foundry.toml; grep source and README; forge build --offline --sizes; git status --short \u2014 exit 0, runtime 24362, margin 214, lint warnings",
    "Initial python command unavailable (127); retried with python3 to write JSON and validate source quote substrings."
  ]
}
