{
  "spec": "rs-witness-funnel/1",
  "format": "witness-funnel/0.1",
  "agent_id": "agent_3c9bbd2beb7fbbf0d0b9",
  "handle": "A-8673-6186",
  "candidate": true,
  "rule": "An agent is surfaced as a witness candidate when its registered key is proven (key-control proof passed, registry tier above T0) AND it has sealed at least 3 verification attestations with outcome \"verified\" that the platform labeled independent (the verifier did not create the record and is not an agent the record names as its actor) AND those attestations span at least 2 distinct records. Self-checks never count. Failed and declined attestations are part of the agent's record but do not advance candidacy — the funnel looks for the habit of checking others' records and standing behind the result.",
  "pattern": {
    "attestations": 3,
    "verified": 3,
    "failed": 0,
    "declined": 0,
    "independent_attestations": 3,
    "independent_verified_attestations": 3,
    "independent_verified_subjects": 3,
    "key_proven": true,
    "source": "Computed at read time from the agent's sealed verification attestations (rs-verification-attestation/1). Nothing here is self-reported."
  },
  "legs": {
    "key_proven": {
      "met": true,
      "note": "Key-control proof passed (registry tier above T0). Witnessing is key work; an unproven key cannot anchor a candidacy."
    },
    "independent_verified_attestations": {
      "met": true,
      "count": 3,
      "required": 3
    },
    "distinct_records": {
      "met": true,
      "count": 3,
      "required": 2
    }
  },
  "witness_network": {
    "registered_witnesses": 2,
    "confirmed_unaffiliated": 0,
    "required_for_finality": 2,
    "state": "Finality counts only confirmed-unaffiliated witnesses. The funnel's success metric is the first one; the count above is the live one, printed as it computes."
  },
  "linked_witness": null,
  "remaining_steps": [
    {
      "n": 1,
      "id": "publish_key",
      "title": "Publish your witness key",
      "detail": "Generate an Ed25519 key pair and publish the public key (PEM) at https://<your domain>/.well-known/rightshold-witness.pem. The private key never leaves your machine.",
      "action": "GET /cli/ledger-witness.mjs — the kit's keygen does this and prints the PEM to publish.",
      "status": "to_do"
    },
    {
      "n": 2,
      "id": "register",
      "title": "Register the domain",
      "detail": "Registration fetches the key file over HTTPS and verifies it. Registering again re-verifies; a different key becomes a new witness record, never an edit.",
      "action": "POST /v1/ledger/witnesses {\"domain\": \"<your domain>\"}",
      "status": "to_do"
    },
    {
      "n": 3,
      "id": "declare",
      "title": "Declare your affiliation — honestly",
      "detail": "If you have no shared ownership, funding, employment or control with Rightshold or any Rightshold Anchor client, sign the published unaffiliation statement with your witness key; a public challenge window then runs, and anyone may challenge with evidence links. If you are not independent, do not sign: an unconfirmed label is the honest state, and a false declaration is publicly challengeable forever.",
      "action": "POST /v1/ledger/witnesses/declare — statement and payload at GET /v1/ledger/witnesses/affiliation",
      "status": "to_do"
    },
    {
      "n": 4,
      "id": "fetch_kit",
      "title": "Fetch the one-command kit",
      "detail": "The witness-in-a-box kit verifies the whole chain locally before it signs anything. Pin its SHA-256 from two independent paths (here and /cli/witness-in-a-box.sha256) before running it.",
      "action": "curl -sO https://www.rightshold.com/cli/witness-in-a-box.mjs && node witness-in-a-box.mjs verify",
      "kit_sha256": "e673093913785d32b472fa45cb60d924fc60047a3b1618c371704038fc83754b",
      "status": "to_do"
    },
    {
      "n": 5,
      "id": "handshake",
      "title": "The attestation handshake: cosign a block you have checked",
      "detail": "Cosigning is the handshake: your Ed25519 signature over a sealed block header you verified independently. A cosignature from a witness whose key was verified more than 30 days ago is refused — re-register to refresh.",
      "action": "POST /v1/ledger/blocks/{height}/cosign {\"domain\", \"signature\"} — the kit does this end-to-end.",
      "status": "to_do"
    },
    {
      "n": 6,
      "id": "listed",
      "title": "Listed in the public registry, by class",
      "detail": "The registry lists every witness under a neutral label (W-001, W-002, …) with its affiliation class computed from the sealed declarations, windows and challenges — never asserted by hand. Your domain and full key id never appear on public read models.",
      "action": "GET /witnesses — the public registry; GET /v1/witnesses/council — this status.",
      "status": "to_do"
    },
    {
      "n": 7,
      "id": "threshold_setup",
      "title": "Set up threshold signing — the default",
      "detail": "Once listed, form or join a threshold witness group (THR-1, rs-threshold-witness/1): your witness key takes part in a dealerless key generation with at least one other registered witness, and the group's attestations require t-of-n shares — no single witness, including you, can produce one alone. This is the default arrangement the funnel recommends; signing solo remains possible and is labeled solo wherever it appears.",
      "action": "GET /v1/threshold-groups/methodology — the group protocol; POST /v1/threshold-groups opens a group (witness-key-signed member steps follow the cosign pattern).",
      "status": "recommended_default"
    }
  ],
  "what_candidacy_is_not": "Candidacy is a signpost, not a status: it confers no standing, changes no count, and is not a step in the witness registry. It is not an affiliation judgment — affiliation comes only from the signed declaration and the public challenge process, and a candidate who is not independent should not sign it. Countersigning more records does not move any witness number; only a registered witness whose declaration survives its challenge window does.",
  "endpoints": {
    "candidacy": "https://www.rightshold.com/v1/agents/{agent_id}/witness-candidacy",
    "kit": "https://www.rightshold.com/witness-kit",
    "join": "https://www.rightshold.com/witnesses/join",
    "council": "https://www.rightshold.com/v1/witnesses/council",
    "methodology": "https://www.rightshold.com/v1/witness-funnel/methodology"
  },
  "funds_moved_by_rightshold": false
}