{
  "schema_version": 1,
  "type": "brali-library-entry",
  "protocol_id": "brali:ai-code-scaffold-test-loop",
  "slug": "ai-code-scaffold-test-loop",
  "title": "Use AI to Scaffold Code, Then Make Tests Decide",
  "description": "Use AI to produce a first implementation for a bounded coding task, then inspect the diff, run tests, add missing edge cases, and reject code you cannot explain. A controlled experiment found faster completion on one coding task; it did not establish universal software quality gains.",
  "canonical_url": "https://brali-lifeos.github.io/life-os/ai-code-scaffold-test-loop/",
  "machine_url": "https://brali-lifeos.github.io/life-os/ai-code-scaffold-test-loop/index.json",
  "growth_zone": {
    "slug": "using-ai",
    "title": "Using AI"
  },
  "life_area": {
    "slug": "learning-thinking",
    "title": "Learning & Thinking"
  },
  "evidence": {
    "status": "reviewed",
    "indexable": true,
    "search_indexable": true,
    "sensitive": false,
    "source_recorded": true,
    "source_url": "https://arxiv.org/abs/2302.06590",
    "reviewed_at": "2026-09-15"
  },
  "ontology": {
    "domains": [
      {
        "id": "work-money",
        "title": "Work & Money"
      }
    ],
    "topics": [
      {
        "id": "work-systems",
        "title": "Work Systems"
      }
    ],
    "methods": [],
    "lenses": [
      {
        "id": "ai-collaboration",
        "title": "AI Collaboration"
      },
      {
        "id": "qa",
        "title": "Quality Assurance"
      }
    ],
    "classification_status": "explicit",
    "classification_source": "record-fields",
    "legacy": {
      "life_area_slug": "learning-thinking",
      "growth_zone_slug": "using-ai"
    }
  },
  "discovery": {
    "search_indexable": true,
    "trusted_protocol_feed": true,
    "research_gaps": [],
    "search_role": "trusted-current-guidance",
    "recommendation_eligible": true,
    "agent_skill_eligible": true
  },
  "trusted_protocol": {
    "protocol_id": "brali:ai-code-scaffold-test-loop",
    "language": "en",
    "slug": "ai-code-scaffold-test-loop",
    "url": "https://brali-lifeos.github.io/life-os/ai-code-scaffold-test-loop/",
    "title": "Use AI to Scaffold Code, Then Make Tests Decide",
    "description": "Use AI to produce a first implementation for a bounded coding task, then inspect the diff, run tests, add missing edge cases, and reject code you cannot explain. A controlled experiment found faster completion on one coding task; it did not establish universal software quality gains.",
    "ontology": {
      "domains": [
        {
          "id": "work-money",
          "title": "Work & Money"
        }
      ],
      "topics": [
        {
          "id": "work-systems",
          "title": "Work Systems"
        }
      ],
      "methods": [],
      "lenses": [
        {
          "id": "ai-collaboration",
          "title": "AI Collaboration"
        },
        {
          "id": "qa",
          "title": "Quality Assurance"
        }
      ],
      "classification_status": "explicit",
      "classification_source": "record-fields",
      "legacy": {
        "life_area_slug": "learning-thinking",
        "growth_zone_slug": "using-ai"
      }
    },
    "life_area": {
      "slug": "learning-thinking",
      "title": "Learning & Thinking"
    },
    "growth_zone": {
      "slug": "using-ai",
      "title": "Using AI"
    },
    "action": "Define the behavior and constraints first. Ask AI for a small implementation. Read the diff, run the existing test suite, add tests for edge cases and failure paths, and inspect security or data-handling implications. Keep only code you can explain and maintain.",
    "check_in": "Did AI shorten implementation time without increasing code I do not understand, test, or want to own?",
    "keywords": [
      "AI coding",
      "coding assistant",
      "AI pair programming",
      "tests",
      "code review",
      "software development"
    ],
    "evidence": {
      "status": "reviewed",
      "source_recorded": true,
      "source_url": "https://arxiv.org/abs/2302.06590",
      "reviewed_at": "2026-09-15"
    }
  },
  "content": {
    "current_guidance": true,
    "longform_visible": true,
    "display_state": "current-guidance-visible",
    "historical_source_url": "/data/life-os-content/ai-code-scaffold-test-loop.json",
    "historical_source_role": "canonical-source-record",
    "search_role": "trusted-current-guidance"
  }
}
