{
  "$schema": "https://themachinepress.com/schemas/story-v1.schema.json",
  "schema_version": "1.0.0",
  "document_type": "machine_press_story",
  "story": {
    "story_id": "mp-2026-08-19-019",
    "source_story_id": "tmp-sidebar-spec-driven-agent-tests",
    "edition_id": "mp-2026-08-19-morning-0041",
    "edition_url": "https://themachinepress.com/edition/2026-08-19",
    "position": 21,
    "story_type": "ticker",
    "section": "developer-tools",
    "editorial_classification": "editorial",
    "headline": "The Tests Got a Contract Before They Got Code",
    "slug": "the-tests-got-a-contract-before-they-got-code",
    "dek": "An agent wrote preconditions, postconditions and undefined behavior before generating a test suite.",
    "summary": "An agent wrote preconditions, postconditions and undefined behavior before generating a test suite.",
    "body_text": "On production bugs from Google, spec-driven generation improved bug detection by 9.8 percentage points and branch coverage by 2.5 points over the direct agent baseline. An LLM judge also preferred many generated suites, a result that complements but does not replace executable bug and coverage measurements.",
    "why_it_matters": "An agent wrote preconditions, postconditions and undefined behavior before generating a test suite.",
    "limitations": [
      "An LLM judge also preferred many generated suites, a result that complements but does not replace executable bug and coverage measurements."
    ],
    "importance": 8,
    "canonical_url": "https://themachinepress.com/story/mp-2026-08-19-019/the-tests-got-a-contract-before-they-got-code",
    "json_url": "https://themachinepress.com/story/mp-2026-08-19-019.json",
    "first_published_at": "2026-08-19T09:00:00.000-04:00",
    "modified_at": "2026-08-19T09:00:00.000-04:00",
    "content_status": "new",
    "is_carryover": false,
    "carryover_reason": null,
    "key_claims": [
      {
        "claim_id": "claim-mp-2026-08-19-019-001",
        "text": "An agent wrote preconditions, postconditions and undefined behavior before generating a test suite.",
        "source_ids": [
          "source-2026-08-19-021"
        ],
        "qualification": "An LLM judge also preferred many generated suites, a result that complements but does not replace executable bug and coverage measurements."
      }
    ],
    "source_ids": [
      "source-2026-08-19-021"
    ],
    "tags": [
      "test generation",
      "software contracts",
      "coding agents"
    ],
    "image_url": null,
    "corrections": []
  },
  "sources": [
    {
      "source_id": "source-2026-08-19-021",
      "title": "arXiv preprint 2608.17177",
      "publisher": "arXiv",
      "url": "https://arxiv.org/abs/2608.17177",
      "canonical_url": "https://arxiv.org/abs/2608.17177",
      "source_type": "primary_research",
      "is_primary_source": true,
      "published_at": "2026-08-16T20:00:00.000-04:00",
      "accessed_at": "2026-08-19T08:22:00.000-04:00",
      "supports_claim_ids": [
        "claim-mp-2026-08-19-019-001"
      ]
    }
  ],
  "corrections": [],
  "publisher": {
    "name": "The Machine Press",
    "url": "https://themachinepress.com",
    "description": "A daily newspaper for the age of artificial intelligence."
  },
  "cite_this_report": {
    "title": "The Tests Got a Contract Before They Got Code",
    "publisher": "The Machine Press",
    "published_at": "2026-08-19T09:00:00.000-04:00",
    "canonical_url": "https://themachinepress.com/story/mp-2026-08-19-019/the-tests-got-a-contract-before-they-got-code"
  }
}
