{
  "schemaVersion": 1,
  "packId": "inkdraft-r006-v1",
  "version": "1.0",
  "evidenceType": "synthetic_test_inputs_and_expected_observations",
  "executedProductResults": false,
  "provenance": {
    "author": "InkDraft",
    "created": "2026-11-18",
    "generator": "experiments/r006/generate.py",
    "inputs": "Original text and explicitly authored polyline glyphs; no imported paper, customer data or captured handwriting.",
    "rendering": "Deterministic PDF 1.4 and PNG generation; PDF standard Helvetica; stroke references are generated, not physical Pencil ink."
  },
  "license": "LICENSE.txt (original R006 pack files only)",
  "documents": {
    "A": {
      "file": "worksheet-a.pdf",
      "title": "R006 - Read Edit Reread A",
      "pageCount": 5,
      "pages": [
        {
          "fixturePage": "A1",
          "marker": "R006-A-P1",
          "printedControl": "11",
          "codeBefore": "B7K2MX",
          "codeAfter": "B7K2MX"
        },
        {
          "fixturePage": "A2",
          "marker": "R006-A-P2",
          "printedControl": "22",
          "codeBefore": "C4N8RT",
          "codeAfter": "C4N8RT"
        },
        {
          "fixturePage": "A3",
          "marker": "R006-A-P3",
          "printedControl": "33",
          "codeBefore": "D9P3WY",
          "codeAfter": "D9P3WY"
        },
        {
          "fixturePage": "A4",
          "marker": "R006-A-P4",
          "printedControl": "44",
          "codeBefore": "F2H6ZX",
          "codeAfter": "F2H6ZX"
        },
        {
          "fixturePage": "A5",
          "marker": "R006-A-P5",
          "printedControl": "55",
          "codeBefore": "G8M4RV",
          "codeAfter": "K3T7WN"
        }
      ]
    },
    "B": {
      "file": "switch-b.pdf",
      "title": "R006 - Switch B",
      "pageCount": 1,
      "pages": [
        {
          "fixturePage": "B1",
          "marker": "R006-B-ONLY",
          "printedControl": "AMBER",
          "codeBefore": null,
          "codeAfter": null
        }
      ]
    }
  },
  "cases": [
    {
      "id": "full_read",
      "expected": "Read A1-A5 in order at one revision. All five printed controls and handwritten codes match. Follow every cursor; >=2 batches because at most four images per batch."
    },
    {
      "id": "edit_reread",
      "expected": "After erasing only A5 ink and writing K3T7WN, a delta from the completed full-read baseline returns exactly A5 with the new code, same document ID and order, advanced revision, changed A5 hash and unchanged A1-A4 hashes."
    },
    {
      "id": "no_change",
      "expected": "Without any intervening edit, a delta from the completed second baseline returns status current, zero page images, same document/revision/order and no removed IDs."
    },
    {
      "id": "stale_revision",
      "expected": "get_pages for A5 at the first revision after the edit returns isError true with code revision_conflict and zero images. This intentional rejection is the expected result."
    },
    {
      "id": "switch_document",
      "expected": "Open the already-imported B without editing. Old A baseline returns resync_required. Fresh full read returns a different document ID, later account revision, B1, AMBER and no A pages."
    },
    {
      "id": "switch_back",
      "expected": "Open A again without editing. Query the previous A baseline; even A-to-B-to-A requires resync_required. Fresh full read returns original A document/page IDs, later revision and A5 code K3T7WN."
    }
  ],
  "scoring": {
    "unit": "one ordered run on one named client and installed app build",
    "statuses": [
      "pass",
      "fail",
      "blocked",
      "not_run",
      "invalid"
    ],
    "passMeaning": "Operator-reported observations satisfy this pack; scorer does not authenticate tool logs or verify screenshots.",
    "failureCategories": [
      "stale_answer",
      "wrong_or_unreadable_code",
      "incomplete_read",
      "protocol_mismatch"
    ],
    "independentEvidence": "A reviewer must inspect actual tool events and synthetic page images; model prose alone is insufficient.",
    "baselineRule": "Save the account revision only after all batches finish. Never splice revisions. Freeze editing during each read.",
    "limits": [
      "Public fixed answers are not blinded; this is not a handwriting accuracy benchmark.",
      "No latency, consumer outcome, client compatibility or recommendation lift is established by these fixtures."
    ]
  }
}
