SShortSingh.
Back to feed

LLM-based pseudocode compiler silently fixed a student's bug, prompting a faithfulness test

0
·6 views

A developer building Pseudo.NET, a compiler for free-form pseudocode that uses a local language model, found the model repaired a deliberately wrong program when its comment stated the intended result. In a running-total test, the model added a reset that the student never wrote, so the program printed the correct values instead of the buggy ones. The developer wrote six faulty programs and ran them through the compiler, and the model kept the mistake in five of six cases. A separate case, a function missing a return, showed the compiler itself had silently defaulted to zero, which the developer has since changed to an explicit error. The results come from single runs on one model family, so the developer notes they are preliminary. Teachers are now advised to avoid stating expected results in comments and to inspect the generated code when output surprises them.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Designing Human Escalation Paths into AI Workflows Before Failures Occur

The article argues that engineers should plan for what happens when an AI system cannot safely finish a task, not just for the successful path. It explains that understanding a request does not grant permission to act, so authentication and business rules must be enforced by the server rather than by conversational replies. Workflows should define permitted actions, track state transitions with actor, timestamp, and reason, and preserve only the minimum context needed for a human reviewer. The author recommends synthetic tests covering scenarios like missing consent, ambiguous identity, and dependency timeouts, and notes that handoffs must have a responsible recipient and honest communication about availability. The piece concludes that a trustworthy system is judged by how predictably it stops and transfers responsibility, not only by how often it succeeds.

0
ProgrammingDEV Community ·

Black Friday Load Testing: Validating the Full Customer Journey, Not Just Server Health

The article argues that a healthy-looking server dashboard does not prove a system is reliable during peak shopping traffic, since customers may still be unable to submit requests or learn their status. It proposes testing one representative flow: finding a service, submitting an inquiry, receiving a durable acknowledgement, and having the next action assigned. Recommended practices include using synthetic data in isolated environments, enforcing capacity limits in the authoritative transactional store, and distinguishing transient failures from invalid or ambiguous requests in retry logic. The author also suggests simulating slow dependencies, lost responses, full queues, and worker restarts, while tracking latency, duplicates, and queue age. The piece presents these as design guidance rather than reported results.

0
ProgrammingDEV Community ·

Engineers Urged to Design Systems Around the People Who Use and Maintain Them

A Thanksgiving-weekend editorial argues that gratitude should shape engineering decisions, not just sentiment. It describes designing interfaces for users with limited connectivity, eyesight, or time, using clear labels and error messages, and cites W3C form guidance while noting that such steps alone do not guarantee accessibility conformance. The piece recommends durable recovery states with accountable owners for failed automated requests, and runbooks that let colleagues diagnose and verify fixes without exposing private data. It also urges teams to define success by actual customer outcomes rather than completed automated steps, and to test one small workflow from the user's perspective.

0
ProgrammingDEV Community ·

ag-ui: Chinese translation of the Agent-User Interaction Protocol released

A Chinese translation of the README for ag-ui, an MIT-licensed TypeScript protocol with about 21,900 GitHub stars, was published on 2026-11-27 at yangshun2005/ag-ui-cn. The protocol standardizes streaming, bidirectional communication between AI agents and user-facing applications, replacing custom integration code for each framework. Version 1.0 is described as stable and backward compatible with 0.x releases, with SDKs in TypeScript, Python, and .NET. The Chinese edition adds a separate quick-start guide that is labeled as supplementary, offering a CLI scaffold path requiring an OpenAI API key and a keyless Python-and-TypeScript example. The translation repository itself currently has no stars, so its quality has not yet been independently validated.