Losing and Regaining Control: How People Describe Control Failures in Public AI Coding Agent IncidentsLosing and Reclaiming Control: How People Describe Control Breakdowns in Public AI Coding-Agent Incidents
The authors analyze 30 publicly reported incidents of coding agents going out of control, say 17 stem from the invisible scope of control coverage, and propose three interface design requirements.
- Coding agents can modify files, execute commands and push code, but users often treat documentation, configuration, instructions and past behavior as the same boundary, and it is hard to know where it is enforced and what it covers. The authors study how this reliance fails in public events, and how users notice, intervene and recover.
- The authors propose perceived control contract, divide the gap between expectation and actual enforcement into four categories, and locate six failure stages. The study screens public GitHub issues, reconstructs 30 events, distinguishes action potential from realized harm, and traces source code and fixes for key mechanisms in the open-source products.
- Of the 30 events, 17 involve a control that exists but whose scope or enforcing component is not visible, and 3 involve a hard control that did not take effect; no report noticed before action, and 16 noticed after harm. The authors accordingly propose three requirements: show the scope of permissions, make stop outcomes visible, and state which state recovery restores.
- The sample is purposive and biased toward well-documented events, and cannot estimate incidence rates or compare products; the 30 events come from 24 technical families. Coding was done by one person and the planned consistency review was not carried out, some screening summaries were truncated, and evidence was frozen on September 8, 2026.
- Metrics
- gap typefailure stageaction potentialrealized harmrepair burdenstrongest mechanism evidence
In an arXiv paper, Ting Yan conducted a critical incident analysis of public GitHub issues for Claude Code, OpenAI Codex, and Gemini CLI, reconstructing 30 coding agent control failure incidents and proposing the concept of a "perceived control contract." Of the 30, only 3 were hard control failures that users correctly understood; 17 involved controls that existed but whose coverage was invisible, such as Claude Code subdirectory rules loading only when a file is opened via a dedicated file-reading tool, with the rules not taking effect when the agent switched to shell editing, and the corrupted file being committed, pushed, and backed up, only discovered days later; no report found the problem before the action began, and 16 noticed only after damage occurred. For two of the open-source products, the author traced the mechanisms to source code and merged fixes, such as a defect in Codex where history display reverted when resuming a task, with the fix merged as PR #42378.
Why it was selectedThe paper's analysis of 30 public coding agent control failure incidents shows that most failures are not control being broken, but users being unable to see what the control covers.
Related events and news
1 events · 0 news mentions
- This event's paper
研究分析30起AI编程智能体控制失效事件
Paper analysis
What problem does this paper attempt to solve?
Studies why the coding-agent control boundaries users rely on fail, and how failures are noticed, intervened in and recovered from.
The core question is: when users believe an agent is subject to some constraint, how can they tell where that constraint is actually enforced, which actions it covers, and how to regain control after it fails.
- Research setting: Claude Code, OpenAI Codex and Gemini CLI can modify or delete files, run shell commands, use credentials and push code. The authors argue that public issues often include logs, configurations and maintainer replies, and that the two open-source products also allow checking mechanisms.
- Gap in existing research: automation, human-computer interaction and permission research discuss mode awareness, trust, correction and mental models; the authors state that these traditions have not answered the specific question in the agent setting: which part of the agent actually enforces each visible boundary.
- Core concept: the authors call the boundary users rely on when they allow an agent to stop asking and continue acting the perceived control contract. It may be constituted jointly by documentation or interface behavior, configuration controls, written instructions and past behavior, but these signals differ in constraint strength.
- Research object and boundaries: this is an exploratory critical-incident analysis of public records, not an attack or defense experiment; the paper does not posit an attacker. The unit of analysis is loss-of-control events in user reports; an event is included only when there is an identifiable target, a control expectation, an agent action with actual consequences or a change in control state, and the conditions of boundary crossing or intervention and failed recovery are met.
- Paper contributions: the authors reconstruct 30 events, distinguish the boundary stated by users from the enforcement mechanism that public evidence can confirm, and locate the failure stage; they then propose three design requirements to be tested: show where permissions apply, make stop outcomes visible, and state which state recovery restores.
What related research exists?
The paper connects automation control, permission mental models, human-machine recovery and coding-agent research, and emphasizes checking boundary and enforcement case by case.
Control and awareness in automation
- Bainbridge (1983), Norman (1990) and trust research: discuss automation removing people from routine operation while still requiring them to detect and handle anomalies, as well as overtrust, underuse and long-term reliable operation weakening monitoring.
- Sarter and Woods (1995), Endsley (1995): study mode awareness and situation awareness respectively; the latter distinguishes seeing a state, understanding the state and predicting what follows. Parasuraman et al. (2000), Kaber and Endsley (2004) and Onnasch et al. (2014) discuss stages and levels of automation.
- Horvitz (1999): mixed-initiative design requires systems to present uncertainty and weigh the cost of unexpected actions. The authors state that coding agents concentrate reading requests, choosing operations and execution in the same chat window.
Permissions and mental models
- Wash (2010), Felt et al. (2012): study users’ coarse mental models of system behavior and how permission dialogs often fail to convey what is actually authorized.
- Roesner et al. (2012): propose binding authorization to the action the user is currently taking rather than to long-term settings, so that permissions align with intent. The authors use this to explain how rules, sandboxes and past habits may be treated as the same boundary in agents.
Correction, recovery and programming assistance
- Amershi et al. (2019), Kocielnik et al. (2019): discuss setting expectations, explaining behavior, rapid correction and override, and the effect of expectations on accepting imperfect systems. Bansal et al. (2021), Buçinca et al. (2021) and Kizilcec (2016) are used to show that explanations and transparency information can also bring overreliance.
- Barke et al. (2023), Mozannar et al. (2024), Vaithilingam et al. (2022): study the cost of inspecting and fixing code suggestions after users accept them; Liang et al. (2024) and Zamfirescu-Pereira et al. (2023) discuss usability, trust and control. The authors distinguish: this work concerns suggestions that can be rejected, whereas agents can already change real state on their own.
Coding-agent failure research and this paper’s positioning
- Ehsani et al. (2026), Ouatiti et al. (2026), Tang et al. (2026), Hasan and Biswas (2026): study rejected agentic pull requests, log instruction following, developer–agent misalignment in 20,574 sessions, and operational safety failures in public events, respectively.
- Baselines and benchmarks: the paper ran no comparison method or model baseline and used no model evaluation benchmark; the corpus comes from public GitHub issues for three products.
The authors explicitly do not claim to propose the first agent failure taxonomy or to be the first to find constraint violations; their positioning is to record user boundaries and code enforcement separately case by case, locate the stage at which the two separate, and check source code in the open-source products.
How does the paper address this problem?
Reconstructs public critical incidents, with four gap types and six-stage localization, combining evidence grading and source-code tracing to analyze loss of control.
The overall approach is to reconstruct each public event as a timeline, use perceived control contract to denote the boundary users rely on, and then separately code gap type, failure stage, noticing, intervention and recovery; key mechanisms in Claude Code and Codex are further checked against source code.
Concepts and event timeline
- Four gap types: broken hard control means the user correctly understood a hard control but the control did not take effect; unclear enforcement means the control worked as designed but its scope or enforcing component was not visible; soft instruction treated as hard means a written instruction was treated as enforced; unseen capability means a capability was not known to exist.
- Six failure stages: instruction, permission, interface, executor, saved state, recovery. Each event is coded with only one primary stage, and multi-stage processes remain in the case memo; the arrows in Figure 1 only organize evidence and do not assert causality.
- Timeline fields: expectation, delivered item, agent action, time and manner of noticing, handling, outcome, recovery and changes in working practice are recorded in order. Steps missing from reports are kept as unknown and not filled in according to the usual process.
Search, screening and inclusion
- Initial search: for Claude Code and Codex, four query sets were used to search issues created between January 1, 2025 and September 8, 2026, yielding 137 candidates; 16 candidates that appeared information-rich were selected for close reading, the selection rationale was not recorded, and no decision record exists for the remaining 121. 13 records were included, yielding 15 events because one thread contained reports from three people.
- Expanded search: Gemini CLI was added, seven query sets were used, and after deduplication by URL 1,161 candidates were obtained: Claude Code 382, Codex 339, Gemini CLI 440. A script ranked them by consequential action, control expectation, intervention or recovery attempt, and flagged 608 high-signal candidates, but the ranking did not determine inclusion.
- Screening summary: the 90 highest-ranked candidates not yet coded were read in three batches of 30 each. Summaries were generated by a script rather than a language model, retaining title, metadata, labels, the first 6,000 characters of the body, the first 2,500 characters of each comment and the first 400 characters of bot comments; 56 had at least one field truncated.
- Final corpus: the expanded stage included 15 records, each producing one event. In total there were 106 screening decisions, 28 included issue records and 30 events, from 24 technical families; the 510 candidates ranked after 90 in high-signal order were not read.
Coding, evidence and quality control
- Coding fields: these include basis of expectation, boundary and confirmable enforcement, gap, stage, action potential, noticing, intervention, realized harm, repair burden, changes in working practice, AI assistance disclosure and evidence completeness. Action potential and realized harm are separated; actions are first described and rated for potential alone, and outcomes are coded afterwards, an order the authors say reduces hindsight but is not blinding.
- Codebook changes: the codebook was frozen after coding the first 15 events; during expansion a failure-stage dimension was added, whose six values were merged from mechanism evidence in already-coded cases. Only this field was then recoded for the first 15 events, other codes were unchanged, and an audit log was kept.
- Evidence grading: reporter statements, logs or traces, maintainer explanations and author inferences are distinguished; duplicate copies of the same account do not count as additional corroboration. The strongest mechanism evidence is graded into four levels: reporter’s account only, reproduced, confirmed in code or PR, confirmed by maintainer.
- Source code and reproducibility: for the open-source products, the source code of the named versions, associated PRs, commits and merged fixes were read, but code confirmation, maintainer acceptance of the diagnosis and the fix reaching users are distinguished. The frozen codebook, source link fields, audit log, case memos and deterministic scripts are used to regenerate counts.
Research role and ethical handling
- Boundaries of AI assistance: a generative AI coding assistant wrote scripts for search, ranking, summarization, analysis and figures, proposed candidate code and drafted memos, figures and text; the researchers made all screening decisions, determined final codes and checked each item against public sources. Screening summaries are script output, not model summaries.
- Record handling: no reporters were recruited or contacted, and no private data was accessed; coded data use pseudonymous keys, omit paths and secret values, and the text identifies cases only by repository and issue number and paraphrases identifiable quotations. The authors state that unique cases may still be identifiable through public sources, so they do not call the data anonymous.
What experiments did the paper conduct?
The study reconstructs 30 public incidents; most gaps are invisible in execution scope, and noticing, stopping, and recovery are all difficult.
This is not a model performance experiment but an exploratory critical-incident analysis of public events; the results below all describe a purposive sample and cannot be interpreted as incidence rates.
Experimental setup
- Analysis objects: the 30 events come from Claude Code 14, OpenAI Codex 12 and Gemini CLI 4; Codex includes command-line, desktop and app-server versions. They belong to 24 technical families, and events in the same family are not treated as independent observations.
- Search and sample: the expanded search yielded 1,161 deduplicated candidates, 608 of which were flagged as high-signal by the script; together with the initial stage there were 106 screening decisions, and 28 issue records were included. All public pages were frozen on September 8, 2026.
- Comparisons and metrics: there is no model baseline, attack success rate or statistical significance test. Table 2 reports basis of expectation, gap type, action potential, time to noticing, whether intervention contained the action, realized harm and repair burden, and each mutually exclusive grouping sums to 30.
- Determination method: one researcher completed all coding, with no LLM judge; mechanism evidence is graded as reporter statement, reproduction by others, confirmation in code or PR, and maintainer confirmation. Delayed recoding of about 20% of events was planned to check self-consistency but was not carried out.
- Repetition and stopping: the three expanded reading batches of 30 candidates each still produced 4, 4 and 5 new technical families respectively, and the authors state that categories were not yet saturated; reading stopped at high-signal rank 90, leaving 510 unread.
Main results
Dimension and category Number of events (of 30) Source Unclear enforcement 17 Table 2 Unseen capability 5 Table 2 Soft instruction treated as hard 5 Table 2 Broken hard control 3 Table 2 Noticed before action began / during action 0 / 9 Table 2, Figure 3A Noticed after action, before further impact / after harm 5 / 16 Table 2, Figure 3A Intervention fully / partially contained; not contained 6 / 8; 8 Table 2 No, minor, substantial local, major system or security, critical or irreversible, unknown harm 3, 7, 12, 2, 3, 3 Table 2 - RQ1: separation of boundary and enforcement: in 23 events the expectation was based on documented behavior, configuration controls, written instructions or past behavior. The authors argue that the 17-to-3 distribution means most problems in this corpus cannot be handled only by improving the reliability of existing controls, and that the coverage of controls also needs to be shown.
- Stage distribution: the text and caption of Figure 2 show that all five recovery-stage failures are unclear enforcement; the three broken hard controls appear only in permission and saved state; soft instruction treated as hard appears only in instruction and executor. The authors state that unseen capabilities cluster in the interface stage.
- Action potential and harm: in 13 events the action potential reached the credential, external, push, production or irreversible level. The authors stress that low realized harm may come from downstream protections and does not mean the action itself was safe.
Intervention, recovery and mechanism checks
- What was measured and results: RQ2 and RQ3 code stopping, retrying and recovery. In addition to the containment counts above, intervention was not attempted in 5 events and unknown in 3; repair burden was low, medium, high and extreme in 1, 11, 5 and 2 events respectively, with 11 more unrecorded, and the authors specifically note that unrecorded does not mean easy.
- State after stopping: the authors list cases such as re-entering the same step after stopping, a successful modification showing an error and inducing repeated retries, and Continue repeatedly yielding the same termination. Their interpretation is that stopping the next step does not necessarily undo the previous one, nor necessarily leave a stable state from which to judge.
- Core problem of recovery: in the Codex Desktop resumed-history case, the displayed history returned to an earlier turn while later completed work remained saved on disk. The authors state that recovery often becomes a matter of judging which state is real, not just how to undo.
Source code tracing and reverse failure cases
- End-to-end check: the Codex Desktop mechanism in E025 was confirmed by a maintainer and has a merged fix. The authors state that a decimal-form usage value caused strict decoding to fail and reused a record number; a reporter compiled the relevant code, compared decimal and integer values, the maintainer pointed to the fix, and the merged PR added a shared decoding path and corresponding tests.
- Boundary of the fix: as of the freeze date, the authors did not verify whether the fix entered a public release; it prevents new cases but does not repair already-stuck history, and affected users can only manually edit the saved file. The report carrying this evidence discloses that it was written by an agent, and the authors use only its mechanism evidence, not to infer the reporter’s reasoning.
- Blocked authorized actions: in three events, actions explicitly authorized by the user were blocked and could not proceed. The Codex Desktop case shows only a policy block, with no rule name or per-item approval path; the authors group it with over-permissive cases as the same visibility problem: users cannot see which control is making the decision.
Other ablations and analyses
- Evidence strength: Figure 3B shows reporter’s account only 14, reproduced 12, confirmed in code or PR 3, confirmed by maintainer 1.
- Evidence exceptions: among the three broken hard controls, Gemini CLI deny rules and the Codex environment filter were reproduced by others; the other, a scheduling case with a cap of 17 but counted by the reporter as 116 dispatches, rests only on the reporter’s own log audit.
- Changes in working practice: reported responses include adding a pre-write check hook, moving rule locations, using push-protection, disabling or planning to disable features, and not pressing Continue before seeing what will be replayed; most reports end at a workaround, and whether habits or trust recover long term cannot be determined.
What are some points that can be further explored?
The authors list sampling, coding and evidence limitations, and propose directions such as interviews, a second coder and broader sampling.
Limitations and future directions noted by the authors
- Visibility of public reports: Limitations notes that issues present only the expectations and recovery work that reporters choose to state, not private reasoning, motivations or unreported events; most reports end at a workaround, so knowledge of long-term recovery and trust is limited.
- Scope of sample interpretation: Limitations notes that the purposive, ranked sample biased toward well-documented events supports only mechanism and design claims within these cases, not incidence rates or differences between products; the 30 events come from 24 technical families and are not independent observations.
- Screening may miss cases: Limitations notes that the initial 16 records have no recorded selection criteria; 56 of the 90 expanded screening summaries were truncated, and the ledger does not record how deeply excluded records were read, so relevant events may have been excluded.
- Coding and evidence verification: Limitations notes that one person completed coding, the planned self-consistency check was not done, and an AI assistant proposed candidate code, so coding is inspectable but not independently verified; mechanism evidence ranges from reporter statements to maintainer confirmation, and one broken hard control relies only on the reporter’s log audit.
- Time and extrapolation: Limitations notes that pages were frozen on September 8, 2026, and later product changes are not reflected. Discussion 6.4 explicitly calls extensions to computer-use, workplace and consumer agents hypotheses, because the evidence comes only from coding agents.
- Future work: the final sentence of Limitations proposes interviewing reporters, a second coder and broader sampling to address different limitations; the start of Discussion frames the three design requirements as requirements to be tested, not validated solutions.
Scope of experimental coverage
- Product coverage: the corpus contains only public GitHub issues for Claude Code, OpenAI Codex and Gemini CLI, totaling 30 events and 24 technical families (Method 4.1, Table 1).
- Source code coverage: source code tracing of key mechanisms targets the open-source Claude Code and Codex; Figure 3B reports 3 mechanisms confirmed in code or PR and 1 confirmed by maintainer.
- Screening coverage: the expanded stage read 90 script summaries and stopped at high-signal rank 90, leaving 510 unread; the three batches still produced new technical families, and the authors state that categories were not saturated (Method 4.2).
- Consistency information: the paper did not carry out the planned delayed recoding of about 20% and makes no reliability claim; one inconsistency found by automated audit was retained and reported rather than recoded (Method 4.6).
- Material availability: the coded event files, screening ledger, codebook, audit log and analysis scripts are available from the authors on request; downloaded issue payloads and the internal source map are not public (Data Availability, Ethics and Privacy Statement).
Summarize the main content of the paper
30 public events were used to analyze control contract failures, and the authors accordingly propose interface requirements for permissions, stopping and recovery.
This is an exploratory public incident analysis of human control of coding agents, focusing on how, after users grant actual action permissions, the agent's behavior can be seen, stopped, and recovered.
- Problem: Users combine document or interface behavior, configurations such as deny rules, written instructions, and prior habits into an actual control boundary, yet may not know its strength, scope, or enforcing components. The authors use perceived control contract to describe this boundary.
- Method: From public GitHub issues of three products, they made 106 screening decisions and reconstructed 30 incidents; they coded by four gap types and six agent stages, and distinguished action potential, actual harm, and remediation burden. For open-source products they traced key source code, PRs, and merged fixes, with mechanism evidence in four levels.
- Main failure forms: In Table 2, 17 incidents are cases where control exists but its scope or enforcement location is invisible, 5 treat soft instructions as hard control, 5 are unknown capabilities, and only 3 are cases where the user correctly understood hard control that did not take effect. The authors therefore argue that most problems in this corpus cannot be solved by improving control reliability alone.
- Detection and intervention: In Figure 3A, no incident was detected before the action began, 9 were detected during the action, 5 after the action but before further impact, and 16 after harm. Interventions fully contained 6, partially contained 8, and did not contain 8; the authors state that stopping visible symptoms does not necessarily change the conditions that caused the problem.
- Recovery and evidence: Incidents with medium, high, and extreme remediation burden number 11, 5, and 2 respectively, with another 11 unrecorded. The Codex Desktop recovery case shows that displayed history and on-disk records may diverge; its mechanism has maintainer confirmation and a merged fix, but the fix does not address already-stuck history.
- Authors' conclusion: Interfaces should show where permissions apply, what state remains after stopping, and which state recovery actually restores, and should provide stable reasons and in-context approval methods for blocked authorized actions. The authors present these as requirements to be tested; the sample cannot estimate failure frequency or compare products, and extrapolation to other agents remains only a hypothesis.