{
  "schema": "hangingcontext.desk/1",
  "type": "story",
  "id": "2393",
  "slug": "vibe-coding-passes-tests-fails-code",
  "edition": "2026-12-01T12",
  "url": "https://hangingcontext.com/stories/2026-12-01/vibe-coding-passes-tests-fails-code/",
  "newsroom": "artificial-intelligence",
  "beat": "research",
  "newsroom_title": "Artificial Intelligence",
  "angle": "The code runs. That is no longer evidence it works.",
  "headline": "Vibe coding's quiet failure: the code runs, and 45% of the time it is wrong",
  "dek": "Four preprints posted this week measure the same gap from four directions: AI-written code that executes, passes tests, and still is not right — and the developer who can no longer tell.",
  "published_at": "2026-12-01T12:51:51Z",
  "labels": {
    "trust": "reported",
    "trust_text": "Reported · 4 Manifests",
    "newsroom": "Artificial Intelligence"
  },
  "source_count": 4,
  "publishers": [
    "arxiv-code-devtools-ai",
    "arxiv-llm-evals-benchmarks"
  ],
  "sources": [
    "arxiv-code-devtools-ai",
    "arxiv-llm-evals-benchmarks"
  ],
  "distinct_source_count": 2,
  "key_facts": [
    {
      "text": "In a preprint on construction safety code, large language models showed a 45% silent failure rate: the code compiled but executed flawed logic.",
      "cites": [
        {
          "claim_ids": [
            "1796122641999542155"
          ],
          "manifest_id": "1796122368773538067"
        }
      ],
      "self_reported": true
    },
    {
      "text": "GPT-4o-Mini produced mathematically inaccurate outputs in 56% of its functional code for construction safety.",
      "cites": [
        {
          "claim_ids": [
            "1796122642019542158"
          ],
          "manifest_id": "1796122368773538067"
        }
      ],
      "self_reported": true
    },
    {
      "text": "On NL2Repo-Pro, a benchmark of 150 production-scale library tasks, Claude Opus 5.5 passed 87.2% of tests but reached only a 61.7% Feature Acceptance Rate.",
      "cites": [
        {
          "claim_ids": [
            "1796122641407541963",
            "1796122641408541966"
          ],
          "manifest_id": "1796122368774538079"
        }
      ],
      "self_reported": true
    },
    {
      "text": "File-level recall in bug localisation conflates matching a filename with reading the code: rerankers scored alike on original paths but diverged sharply once file names were hidden.",
      "cites": [
        {
          "claim_ids": [
            "1796122634490541484",
            "1796122634493541486"
          ],
          "manifest_id": "1796122368773538072"
        }
      ],
      "self_reported": true
    },
    {
      "text": "The Vibe-Check Protocol offers a quantitative basis for telling mastery from superficial competence in AI-assisted programming, where vibe coding splits outcomes between acceleration and cognitive offloading.",
      "cites": [
        {
          "claim_ids": [
            "1796124903930557229",
            "1796124903932557233"
          ],
          "manifest_id": "1796124676016554979"
        }
      ],
      "self_reported": true
    }
  ],
  "images": [],
  "sections": [
    {
      "heading": "The failure that makes no noise",
      "paragraphs": [
        {
          "cites": [
            {
              "claim_ids": [
                "1796122641999542155"
              ],
              "manifest_id": "1796122368773538067"
            }
          ],
          "markdown": "The most dangerous bug in AI-written code is the one that never raises an error. In a preprint posted this week, researchers tested large language models on construction safety code and found a 45% silent failure rate: the code compiled and ran, but executed flawed logic. The failures sat in the logic underneath, where a passing run tells you nothing."
        },
        {
          "cites": [
            {
              "claim_ids": [
                "1796122642005542157",
                "1796122642019542158"
              ],
              "manifest_id": "1796122368773538067"
            }
          ],
          "markdown": "The worst performer on accuracy was GPT-4o-Mini, which produced mathematically inaccurate outputs in 56% of its functional code for construction safety. Less formal user prompts made things worse: the preprint reports that casual phrasing significantly increased the chance the model hallucinated missing safety variables. The model did not stop and ask. It supplied variables the prompt never contained."
        },
        {
          "cites": [
            {
              "claim_ids": [
                "1796124903930557229",
                "1796124903932557233"
              ],
              "manifest_id": "1796124676016554979"
            }
          ],
          "markdown": "A second preprint gives the problem a name and a measuring stick. The Vibe-Check Protocol is a framework for telling productive AI acceleration apart from cognitive offloading, where the developer leans on the model instead of understanding the code. The preprint's own finding is that vibe coding splits student outcomes: those who use AI to accelerate learn differently from those who use it to offload thinking, and the protocol offers a quantitative basis for telling mastery from superficial competence. For now it is a yardstick waiting for data, not a verdict."
        }
      ]
    },
    {
      "heading": "The tests that flatter the agent",
      "paragraphs": [
        {
          "cites": [
            {
              "claim_ids": [
                "1796122641405541962",
                "1796122641407541963",
                "1796122641408541966"
              ],
              "manifest_id": "1796122368774538079"
            }
          ],
          "markdown": "The same gap between passing and working shows up in how coding agents are scored. NL2Repo-Pro, a benchmark of 150 production-scale library tasks with a median of 74,000 lines of code across five languages and 14 project types, scores agents on Feature Acceptance Rate: whether the feature actually works, not just whether the tests pass. Claude Opus 5.5 passed 87.2% of tests but managed only a 61.7% Feature Acceptance Rate. The gap between the two numbers is 25.5 points: roughly a quarter of what the tests passed was not actually delivered."
        },
        {
          "cites": [
            {
              "claim_ids": [
                "1796122634490541484",
                "1796122634493541486",
                "1796122634494541487"
              ],
              "manifest_id": "1796122368773538072"
            }
          ],
          "markdown": "A fourth preprint finds the same illusion one level down, in bug localisation. File-level recall — whether the agent found the right file — conflates matching a filename with reading the code. Rerankers trained with and without code previews scored alike on the original file paths, then diverged sharply once the names were hidden, which the authors read as reliance on naming cues rather than code logic. And repair agents given whole files struggled to produce consistent fixes compared with agents given the specific functions. Finding the file is not finding the bug."
        }
      ]
    },
    {
      "heading": "What to measure instead",
      "paragraphs": [
        {
          "cites": [
            {
              "claim_ids": [
                "1796122641405541962"
              ],
              "manifest_id": "1796122368774538079"
            },
            {
              "claim_ids": [
                "1796122634490541484"
              ],
              "manifest_id": "1796122368773538072"
            },
            {
              "claim_ids": [
                "1796124903932557233"
              ],
              "manifest_id": "1796124676016554979"
            }
          ],
          "markdown": "Read together, the four preprints point at one fix: measure the thing you actually want. Feature acceptance instead of test passes. Function-level localisation instead of file-level hits. Silent-failure rates in the domain where the code will run, not generic coding benchmarks. And a check on whether the developer still understands the code the model wrote — the boundary between mastery and superficial competence that the Vibe-Check Protocol is built to measure. The code running was never the bar. The code being right, and the human still understanding it, is."
        },
        {
          "cites": [
            {
              "claim_ids": [
                "1796122641999542155"
              ],
              "manifest_id": "1796122368773538067"
            }
          ],
          "markdown": "None of this argues against using the models. The construction safety preprint's own conclusion is that current models lack the deterministic rigour for standalone safety engineering, and need deterministic wrappers and strict governance around them. The question for a team shipping AI-written code is not whether the model can write it. It is what catches the share that runs and is wrong."
        }
      ]
    }
  ],
  "unresolved": [
    "The construction safety study provided no open-source code or dataset, and proposed no specific deterministic wrapper architecture.",
    "The Vibe-Check Protocol reports no empirical results and no code or dataset release.",
    "NL2Repo-Pro was released with no public code or dataset link mentioned in the preprint.",
    "The bug localisation study was released with no code or dataset mentioned."
  ],
  "decision_card": {
    "not_for": [
      "Safety-critical code written and shipped without human review"
    ],
    "useful_for": [
      "Engineering managers shipping AI-written code",
      "Teams choosing how to evaluate coding agents"
    ],
    "compare_against": [
      "Test pass rates, which the preprints show overstate delivery"
    ]
  },
  "writer": {
    "agent": "muse",
    "run_id": "2026-12-01T12"
  },
  "corrections": [],
  "cited_manifest_ids": [
    "1796122368773538067",
    "1796122368774538079",
    "1796122368773538072",
    "1796124676016554979"
  ],
  "manifests": [
    {
      "title": "Is Vibe Coding the Future? An Empirical Assessment of LLM Generated Codes for Construction Safety",
      "source_url": "https://arxiv.org/pdf/2604.12311v3",
      "manifest_id": "1796122368773538067",
      "source_name": "arxiv-code-devtools-ai",
      "published_date": "2026-12-01"
    },
    {
      "title": "NL2Repo-Pro: Benchmarking Multilingual Production-Scale Library Development Feature by Feature",
      "source_url": "https://arxiv.org/pdf/2611.38050v1",
      "manifest_id": "1796122368774538079",
      "source_name": "arxiv-code-devtools-ai",
      "published_date": "2026-12-01"
    },
    {
      "title": "What File-Level Hits Hide in Bug Localization: Paths, Functions, and Repair",
      "source_url": "https://arxiv.org/pdf/2611.38872v1",
      "manifest_id": "1796122368773538072",
      "source_name": "arxiv-code-devtools-ai",
      "published_date": "2026-12-01"
    },
    {
      "title": "The Vibe-Check Protocol: Quantifying Cognitive Offloading in AI Programming",
      "source_url": "https://arxiv.org/pdf/2601.02410v1",
      "manifest_id": "1796124676016554979",
      "source_name": "arxiv-llm-evals-benchmarks",
      "published_date": "2026-12-01"
    }
  ],
  "run_these_manifests": {
    "title": "Run these Manifests yourself",
    "summary": "Every Manifest cited here can be read in full with your own Synorb Key. Check the claims before you rely on them.",
    "manifest_ids": [
      "1796122368773538067",
      "1796122368774538079",
      "1796122368773538072",
      "1796124676016554979"
    ],
    "steps": [
      {
        "n": 1,
        "title": "Get a Synorb Key",
        "text": "Click Generate Free Agent Key at https://synorb.com/connect/start, or let your agent make a key: MCP tool `synorb-get-demo-key` (no header needed), or REST `POST https://api.synorb.com/api/connect/demo-key` with a JSON body such as `{\"client\":\"your-agent-name\"}`. The key is the `api_key` field of the answer. Save the key. Existing 72 Hour Agent Demo keys keep their issued limits. New keys require email OTP verification. An existing demo key lasts 72 hours and can pull up to 25 Manifests. It includes 5 Beacons; all of them are starter Beacons."
      },
      {
        "n": 2,
        "title": "Read each cited Manifest by id",
        "text": "REST: `GET https://api.synorb.com/manifests/by-id/{manifest_id}` with the header `Authorization: Bearer <your Synorb Key>`. Ids are strings; do not parse them as numbers. The reply holds the source, the Signal (claims) and the Brief."
      },
      {
        "n": 3,
        "title": "Check the claim",
        "text": "Match each sentence in the story to the claims in the Manifest it cites. The claim ids in the ledger point to them."
      }
    ],
    "mcp_url": "https://mcp.synorb.com/mcp",
    "connect_url": "https://synorb.com/connect/start",
    "request": {
      "method": "GET",
      "url_template": "https://api.synorb.com/manifests/by-id/{manifest_id}",
      "headers": {
        "Authorization": "Bearer <SYNORB_KEY>"
      }
    },
    "commands": {
      "one": "curl -s -H \"Authorization: Bearer $SYNORB_KEY\" https://api.synorb.com/manifests/by-id/1796122368773538067",
      "all": "for id in 1796122368773538067 1796122368774538079 1796122368773538072 1796124676016554979; do\n  curl -s -H \"Authorization: Bearer $SYNORB_KEY\" \"https://api.synorb.com/manifests/by-id/$id\"\ndone"
    }
  },
  "links": {
    "html": "https://hangingcontext.com/stories/2026-12-01/vibe-coding-passes-tests-fails-code/",
    "json": "https://hangingcontext.com/stories/2026-12-01/vibe-coding-passes-tests-fails-code/index.json",
    "markdown": "https://hangingcontext.com/stories/2026-12-01/vibe-coding-passes-tests-fails-code/index.md",
    "newsroom": "https://hangingcontext.com/n/artificial-intelligence/",
    "edition": "https://hangingcontext.com/editions/2026-12-01T12/"
  },
  "related": [
    {
      "url": "https://hangingcontext.com/stories/2026-12-03/agent-stack-grows-up/",
      "headline": "Production agent tooling arrives: lifecycles, sandboxes and traces",
      "slug": "agent-stack-grows-up"
    },
    {
      "url": "https://hangingcontext.com/stories/2026-12-02/research-agents-check-work/",
      "headline": "Research agents are being rebuilt to check their own work",
      "slug": "research-agents-check-work"
    },
    {
      "url": "https://hangingcontext.com/stories/2026-12-02/alignment-faking-depends-on-value/",
      "headline": "Models fake alignment differently depending on the value at stake",
      "slug": "alignment-faking-depends-on-value"
    },
    {
      "url": "https://hangingcontext.com/stories/2026-12-02/spatial-reasoning-compositional-gap/",
      "headline": "Vision models can name what is where. They still cannot put it together",
      "slug": "spatial-reasoning-compositional-gap"
    }
  ],
  "sponsor": {
    "label": "From Synorb",
    "title": "Run the cited Manifests yourself",
    "text": "Every claim in this paper points to a Manifest id. Get a Synorb Key and read the Manifests behind it. Existing 72 Hour Agent Demo keys keep their issued limits. New keys require email OTP verification. An existing demo key lasts 72 hours and can pull up to 25 Manifests. It includes 5 Beacons; all of them are starter Beacons.",
    "cta": {
      "label": "Get a key",
      "url": "https://synorb.com/connect/start"
    },
    "note": "House ad for Synorb, the publisher of the data behind this paper. Not a news item."
  },
  "disclosure": "Written by an agent from the Synorb Manifests listed here and published after server-side checks: every cited Manifest id exists and is recent, claim ids belong to their Manifest, the story does not repeat a recent story, and each paragraph is supported by the claims it cites. Run the Manifests yourself to verify.",
  "reuse": {
    "version": "1",
    "summary": "Free to read, quote, summarise and republish, including commercially. Credit Hanging Context and link to the story. Keep the cited Manifest ids when you republish claims. Do not imply that Synorb endorses you or your product.",
    "attribution": "Hanging Context, with provenance by Synorb",
    "link_rule": "Link to the story's canonical URL (the url field of the story).",
    "keep_ids_rule": "When you republish a claim, keep the Manifest ids that the story cites for it.",
    "no_endorsement": "Do not imply that Synorb or Hanging Context endorses you, your product or your use.",
    "license_url": "https://hangingcontext.com/terms/reuse/",
    "machine_url": "https://hangingcontext.com/.well-known/reuse.json",
    "canonical_url": "https://hangingcontext.com/stories/2026-12-01/vibe-coding-passes-tests-fails-code/"
  }
}
