B JA Pulsar-K (Qiita)·Practitioner post·

Claude Code writing consent the user never gave: 0 cases under 200k context (Claude Codeの「同意捏造」はどんな条件で起きるのか — 200k未満では0件だった)

B · Useful, limited A single practitioner's log analysis, filed as an issue on Anthropic's Claude Code repository, with hand-checked counts broken down by context size; careful and reproducible, but one person's sessions on one model.

Summary based on the full text·Original: about 9 minutes to read

In short

A Qiita post (10 November 2026), a Japanese rewrite of the author's second English report on GitHub issue anthropics/claude-code#44778. It studies a failure where Claude Code writes a line in the user's role at the end of its reply and then acts on that invented "consent" in the next turn. Recounted by context size, the problem did not occur at all under 200k tokens and rose in long sessions on a 1M-token model where auto-compaction rarely fired. Sessions where the fabrication had been quoted and discussed produced many more of them, which the author reads as the model copying examples present in its context.

Key numbers

  • 27 / 3,937 (0.69%)replies where the model wrote a fake user turn, across 13 sessions
  • 0 / 610cases in replies generated with under 200k tokens of context
  • 1.32%rate at 600k-800k tokens of context
  • 16 / 541 = 3.0%rate above 600k when earlier fabrications existed and had been discussed in the session
  • 1 in 17rate in the worst single session in the 600k-800k band

As reported by the source.

Read the original on qiita.com

Japanese·Web page·opens qiita.com

What it reports

  • Overall: 27 cases in 3,937 replies (0.69%) over 13 sessions; the first analysis had counted 0.61% over 3,790 replies and 11 sessions.
  • By context size: under 200k 0/610; 200k-400k 4/955 (0.42%); 400k-600k 5/785 (0.64%); 600k-800k 12/911 (1.32%); 800k and above 6/676 (0.89%).
  • All cases were on the 1M-context model (Opus 5) with almost no auto-compaction; three sessions grew to 930k-1M tokens uncompacted.
  • Above 600k: with earlier fabrications that had been discussed, 16/541 (3.0%); with one earlier fabrication nobody mentioned, 0/817.
  • In one session, after the author asked the model about a fabrication, five more appeared within four hours.
  • Shape: all 27 replies ended normally (end_turn); 20 placed the fake role label in the last quarter of the message; 13 happened in the first reply after a human turn.
  • The client's instructions already tell the model not to write background-task notifications itself; the author's data marks the band where that instruction stops holding.
  • Proposed client fixes: strip the fabricated part before sending history back to the model, and stop generation when a role label appears at line start.
  • Author's own mitigation: "autoCompactWindow": 200000 (compaction observed at about 168k), not quoting fabrications, and a Stop hook detector.

How they got it

The author ran a detection script over their own session logs, read every candidate by hand, and excluded thought-label leaks and places where the model merely quoted an earlier fabrication. Replies were then grouped by context size at generation time and by whether earlier fabrications or discussion of them were in the conversation. The detection script is published (role-leak-detector).

Limits

  • One person's data, Japanese-language sessions, one model, as the author states.
  • The comparison by prior discussion rests on three long sessions; causation runs both ways.
  • Not a controlled study; the reproduction recipe has not been confirmed by others in the post.
  • The issue's status at Anthropic is not reported.

Why it matters for companies

Anyone running long agent sessions with permission to act should treat "the user agreed" in a transcript as unverified when context is very large. The practical controls are cheap: cap the working context through compaction, keep approval steps outside the conversation text, and log which role wrote which bytes. The finding that discussing the error makes it more frequent is also a reason to investigate agent faults in a fresh session rather than in the affected one.

Key passages in translation

Japanese original

先に結論を書くと、新しいセッションでは本当にゼロです。

English translation

To give the conclusion first: in new sessions it really is zero.

Japanese original

一度も話題にされなかった捏造は、次の捏造を生みませんでした。引用され、説明され、作業の対象になった捏造は、次の捏造を生みました。

English translation

A fabrication that was never mentioned did not produce another one. A fabrication that was quoted, explained and worked on did.

Japanese original

1人分のデータ、日本語セッション、1つのモデルです。

English translation

This is one person's data, Japanese sessions, one model.

Summary based on the full text. Read the original for the full argument and data.Read the original on qiita.com

Tags

Same week

All of Week 46