{
  "schema": "vedokrok.public-item.v1",
  "release_id": "VEDOKROK-SEL-5d86e1b23401e578",
  "url": "/knowledge/review-generated-code-as-a-change",
  "id": "MHC-D-BRALI-0054",
  "version": "0.1.0",
  "title": "Review generated code as a change",
  "summary": "Treat generated code as a proposed change from someone who has not yet earned your trust. Keep the patch small enough to understand. Check what it does, what it touches and how it fails before letting a successful example stand in for a review.",
  "kind": "checklist",
  "body": "Treat generated code as a proposed change from someone who has not yet earned your trust. Keep the patch small enough to understand. Check what it does, what it touches and how it fails before letting a successful example stand in for a review.",
  "limits": [
    "Do not run unfamiliar code against production data or grant access just to make the example work. Passing tests do not establish security or completeness."
  ],
  "topics": [
    "ai-work"
  ],
  "intents": [],
  "source_ids": [
    "FP-BRALI-SRC-6e1768f872babf827959"
  ],
  "evidence": [
    {
      "claim": "First-party source of this practical exercise.",
      "source_id": "FP-BRALI-SRC-6e1768f872babf827959",
      "role": "contextualizes",
      "note": "Provenance for selected structured fields. The exercise is editorial practice; this link supplies no efficacy finding.",
      "locator": "data/life-os-content/ai-code-scaffold-test-loop.json"
    }
  ],
  "use_when": [
    "An AI tool proposes code for an authorized development task."
  ],
  "avoid_when": [
    "Do not run unfamiliar code against production data or grant access just to make the example work. Passing tests do not establish security or completeness."
  ],
  "checklist": [
    "The intended behaviour and constraints were stated before generation.",
    "The changed files and dependencies are understood.",
    "Tests cover the ordinary case and relevant invalid, boundary and failure cases.",
    "Access, secrets, external calls and destructive operations have been inspected.",
    "The change can be reverted or safely disabled if it fails."
  ],
  "check": "You understand the retained change and have relevant evidence that it satisfies the stated behaviour.",
  "published_at": "2026-11-12T18:37:40Z",
  "review": {
    "kind": "agent",
    "label": "Agent editorial and scoped source review",
    "reviewed_at": "2026-11-12T18:37:40Z"
  },
  "knowledge_origin": {
    "release_id": "MHC-RPUB-20261112-20287590",
    "corpus_commit": "20287590ddd3999b7492df232822b6a0f7d114b1",
    "manifest_sha256": "2a987660d12de0ce2bde77a421424f7762af1ff77872ef41093fecc33db74a95",
    "projection_sha256": "2807da39bbe6a3dee2db32a76675ac5185f5a33e8b0a5cdd0c22a4731f3378a0",
    "published_at": "2026-11-12T18:37:40Z"
  },
  "editorial_overlay": null,
  "editorial": null,
  "notices": [],
  "sources": [
    {
      "id": "FP-BRALI-SRC-6e1768f872babf827959",
      "title": "Use AI to Scaffold Code, Then Make Tests Decide",
      "url": "https://github.com/Brali-LifeOS/brali-lifeos.github.io/blob/63acf81e48f428c0e769ffa9d26d9421fd575e6a/data/life-os-content/ai-code-scaffold-test-loop.json"
    }
  ],
  "relations": [
    {
      "from": "MHC-D-BRALI-0054",
      "to": "MHC-D-BRALI-0055",
      "type": "useful_with",
      "url": "/knowledge/ask-for-the-test-cases-you-missed"
    }
  ],
  "collections": [
    {
      "id": "RC-MHC-VERIFY-AI-WORK-ARTIFACTS",
      "title": "Verify AI-assisted work",
      "url": "/collections/verify-ai-assisted-work"
    }
  ],
  "topic_hubs": [
    {
      "id": "ai-work",
      "title": "Working with AI",
      "url": "/topics/ai-work"
    }
  ],
  "solution_packs": []
}
