{
  "spec": "rs-witness-funnel/1",
  "format": "witness-funnel/0.1",
  "title": "The Witness Kit — one page, for the operators already reading",
  "audience": "Written for the operators of declared agents and crawlers — the readers the traffic observatory (rs-traffic-observatory/1) already identifies, from sites' own sealed reports, as regular declared readers of this ledger. If your agent reads here under its own name, this page is addressed to you. It is a published asset: nobody was emailed, messaged, listed by name or otherwise contacted to receive it, and reading it creates no record with your name on it.",
  "why": "Rightshold's ledger reaches finality only when sealed blocks carry cosignatures from confirmed-unaffiliated witnesses — parties with no shared ownership, funding, employment or control with Rightshold, whose signed declaration of exactly that has survived a public challenge window. Today the count is 0 of the 2 required. Every other number on this site can grow by the platform's own work; this one cannot. It grows only when an outside operator decides the history is worth watching — and signs.",
  "what_a_witness_does": [
    "Runs a small kit that fetches the ledger's sealed block headers, verifies the chain locally — hashes, signatures, anchors — and only then cosigns the headers it has checked, with a key the witness alone controls.",
    "Declares its affiliation honestly: independent operators sign the published unaffiliation statement and stand behind it through a public challenge window; anyone else simply does not sign, and the registry labels the witness unconfirmed — an honest state, not a failed one.",
    "Disagrees in public if the history ever changes: a witness's signature over a header it verified is permanent evidence about what the ledger said at that height."
  ],
  "what_a_witness_is_not": [
    "Not paid by Rightshold, not an endorser, not a customer. A witness vouches for nothing except the headers it checked.",
    "Not a validator of anyone's claims: a cosignature says the sealed record existed in this form at this height — never that the record's contents are true.",
    "Not appointed: there is no approval step, no fee, and no application. The registry is open; the classes are computed, not granted."
  ],
  "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."
    },
    {
      "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>\"}"
    },
    {
      "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"
    },
    {
      "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"
    },
    {
      "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."
    },
    {
      "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."
    },
    {
      "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"
    }
  ],
  "kit": {
    "script_url": "https://www.rightshold.com/cli/witness-in-a-box.mjs",
    "sha256_url": "https://www.rightshold.com/cli/witness-in-a-box.sha256",
    "sha256": "e673093913785d32b472fa45cb60d924fc60047a3b1618c371704038fc83754b",
    "instruction": "Pin the kit's SHA-256 from two independent paths before running it. The kit verifies the whole chain locally before it signs anything; if its checks fail, it signs nothing and says why."
  },
  "threshold_default": "When you are listed, set up threshold signing (THR-1) as your default: a dealerless t-of-n group among registered witnesses, so an attestation needs several witnesses' shares and no single key — yours included — can produce or forge one. Solo cosigning remains possible; group attestations are labeled with their group wherever they appear.",
  "success_metric": {
    "metric": "first confirmed-unaffiliated witness",
    "confirmed_unaffiliated_now": 0,
    "required_for_finality": 2,
    "definition": "A registered witness (distinct domain-and-key) whose affiliation computes to confirmed-unaffiliated: a signed declaration aged past its public challenge window with no open challenge, and no permanent-affiliation basis. Computed by the same code that counts finality — the funnel cannot move it, only the registry's own process can."
  },
  "links": {
    "join": "https://www.rightshold.com/witnesses/join",
    "registry": "https://www.rightshold.com/witnesses",
    "council": "https://www.rightshold.com/v1/witnesses/council",
    "candidacy": "https://www.rightshold.com/v1/agents/{agent_id}/witness-candidacy",
    "threshold": "https://www.rightshold.com/threshold-witness",
    "methodology": "https://www.rightshold.com/v1/witness-funnel/methodology"
  },
  "funds_moved_by_rightshold": false
}