{
  "schema_version": "0.1",
  "id": "IMP-004",
  "title": "Minimal CRAFTE state-tool extension",
  "status": "complete",
  "source_prd_id": "PRD-002",
  "source_architecture_id": "ARCH-002",
  "source_request_id": "REQ-085",
  "created_at": "2026-07-12",
  "updated_at": "2026-07-12",
  "summary": "Add five small tools to the existing server, prove duplicate safety, integrate delivery/docs, and repeat CHML audit/fix cycles to zero findings.",
  "phases": [
    {
      "id": "IMP-PHASE-011",
      "name": "State tools and verified integration",
      "order": 1,
      "tasks": ["IMP-TASK-031", "IMP-TASK-032", "IMP-TASK-033"],
      "exit_criteria": "Focused/full tests, state/release gates, code review, and repeated audits report zero critical/high/medium/low findings."
    }
  ],
  "tasks": [
    {
      "id": "IMP-TASK-031",
      "phase": "IMP-PHASE-011",
      "summary": "Write failing Node tests for find/get/create/update/link plus stale-registry, duplicate, immutable-field, symmetric-link, and concurrent-create cases; implement the minimal server changes.",
      "sources": ["PRD-REQ-021", "PRD-REQ-022", "PRD-REQ-023", "ARCH-COMP-017", "ARCH-COMP-018", "ARCH-IF-011"],
      "validation": "IMP-VAL-028",
      "status": "complete"
    },
    {
      "id": "IMP-TASK-032",
      "phase": "IMP-PHASE-011",
      "summary": "Update MCP documentation, downstream server parity, version and release metadata without expanding the persistence model.",
      "sources": ["PRD-REQ-021", "PRD-REQ-022", "ARCH-DEC-011"],
      "validation": "IMP-VAL-029",
      "status": "complete"
    },
    {
      "id": "IMP-TASK-033",
      "phase": "IMP-PHASE-011",
      "summary": "Self-review and audit/fix/reaudit until tests, gates, drift validators, and CHML review findings are all zero, then record evidence and ship.",
      "sources": ["PRD-REQ-023", "PRD-NFR-011", "ARCH-RISK-008"],
      "validation": "IMP-VAL-030",
      "status": "complete"
    }
  ],
  "validations": [
    {"id": "IMP-VAL-028", "method": "Focused Node tests prove all five tools and duplicate/concurrency invariants.", "evidence": "EV-057"},
    {"id": "IMP-VAL-029", "method": "Installer/parity/release tests prove the exact server and documentation reach downstream repos.", "evidence": "EV-057"},
    {"id": "IMP-VAL-030", "method": "Full suite, local workflow, state/gap/release/gate/drift checks and CHML code review finish with zero findings.", "evidence": "EV-057"}
  ],
  "tracking_ids": ["TRK-074", "TRK-075"],
  "completed_at": "2026-07-12",
  "risks_and_rollback": [
    "Existing specialised tools remain compatible; rollback removes only the five generic tools and their docs/tests."
  ]
}
