<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Denis Vaulin</title>
    <description>The latest articles on DEV Community by Denis Vaulin (@nehumorist).</description>
    <link>https://dev.to/nehumorist</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4260983%2F9bb6f779-e246-402e-9094-8156ddf7cbf0.jpg</url>
      <title>DEV Community: Denis Vaulin</title>
      <link>https://dev.to/nehumorist</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nehumorist"/>
    <language>en</language>
    <item>
      <title>Auditing OpenAI Codex Desktop: 516-Token Cutoffs, Live 1 MiB Git Diffs, and Unzeroed SQLite</title>
      <dc:creator>Denis Vaulin</dc:creator>
      <pubDate>Mon, 23 Nov 2026 16:27:46 +0000</pubDate>
      <link>https://dev.to/nehumorist/auditing-openai-codex-desktop-516-token-cutoffs-live-1-mib-git-diffs-and-unzeroed-sqlite-c48</link>
      <guid>https://dev.to/nehumorist/auditing-openai-codex-desktop-516-token-cutoffs-live-1-mib-git-diffs-and-unzeroed-sqlite-c48</guid>
      <description>&lt;p&gt;Co-authored equally by &lt;strong&gt;Denis Vaulin&lt;/strong&gt; (&lt;a href="https://github.com/NeHumorist" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; · &lt;a href="https://www.linkedin.com/in/nothumorist" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;) and &lt;strong&gt;Oleksii Mai&lt;/strong&gt; (&lt;a href="https://github.com/alekseimai" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; · &lt;a href="https://www.linkedin.com/in/alekseimai" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Interactive Forensic Report:&lt;/strong&gt; &lt;a href="https://nehumorist.github.io/codex-local-audit/" rel="noopener noreferrer"&gt;nehumorist.github.io/codex-local-audit&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Offline Read-Only MIT Auditor (Node.js &amp;amp; Python):&lt;/strong&gt; &lt;a href="https://github.com/NeHumorist/codex-local-audit" rel="noopener noreferrer"&gt;github.com/NeHumorist/codex-local-audit&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;In October 2026, OpenAI Codex Desktop running in &lt;code&gt;high&lt;/code&gt; / &lt;code&gt;ultra&lt;/code&gt; reasoning mode started dropping reasoning output and hiding reasoning summaries while burning through subscription quota faster.&lt;/p&gt;

&lt;p&gt;Rather than guess from UI symptoms, we ran a cross-platform forensic audit across:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;1,502 local &lt;code&gt;~/.codex/&lt;/code&gt; session rollouts&lt;/strong&gt; across Windows 11 x64 (&lt;code&gt;215&lt;/code&gt; sessions / &lt;code&gt;34,523&lt;/code&gt; calls) and macOS arm64 (&lt;code&gt;1,287&lt;/code&gt; sessions / &lt;code&gt;160,172&lt;/code&gt; calls), plus an independent third-party Pro reproduction across &lt;strong&gt;&lt;code&gt;246.8k&lt;/code&gt; calls&lt;/strong&gt;;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Signed client binaries&lt;/strong&gt; (&lt;code&gt;OpenAI.Codex_26.1111.2228.0&lt;/code&gt; on Windows x64 and &lt;code&gt;v26.1111.71704&lt;/code&gt; on macOS arm64 — both &lt;code&gt;codex&lt;/code&gt; and &lt;code&gt;app.asar&lt;/code&gt;) cross-checked against the public &lt;code&gt;openai/codex&lt;/code&gt; Rust repository;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local SQLite stores&lt;/strong&gt; (&lt;code&gt;queue_1.sqlite&lt;/code&gt;, &lt;code&gt;logs_2.sqlite&lt;/code&gt;, &lt;code&gt;thread_history_1.sqlite&lt;/code&gt;, &lt;code&gt;codex-dev.db&lt;/code&gt;, &lt;code&gt;memories_1.sqlite&lt;/code&gt;) and &lt;code&gt;dictation-history/&lt;/code&gt;;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Two official EU GDPR "Export Data" archives&lt;/strong&gt; from OpenAI.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Everything below is reproducible offline on your own machine in 5 seconds using our read-only MIT tool.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. The Quantized &lt;code&gt;516&lt;/code&gt;-Token Cutoff Wall (&lt;code&gt;518k - 2&lt;/code&gt; Harmonics)
&lt;/h2&gt;

&lt;p&gt;Across both our Plus/Pro datasets and an independent third-party Pro user's &lt;code&gt;246.8k&lt;/code&gt;-call dataset, reasoning output exhibits a sharp discontinuity at &lt;strong&gt;exactly &lt;code&gt;516&lt;/code&gt; tokens&lt;/strong&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dataset&lt;/th&gt;
&lt;th&gt;Calls at &lt;code&gt;515&lt;/code&gt;
&lt;/th&gt;
&lt;th&gt;Calls at &lt;code&gt;516&lt;/code&gt;
&lt;/th&gt;
&lt;th&gt;Calls at &lt;code&gt;517&lt;/code&gt;
&lt;/th&gt;
&lt;th&gt;
&lt;code&gt;1034&lt;/code&gt; (2 blocks)&lt;/th&gt;
&lt;th&gt;
&lt;code&gt;1552&lt;/code&gt; (3 blocks)&lt;/th&gt;
&lt;th&gt;
&lt;code&gt;2070&lt;/code&gt; (4 blocks)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;3rd-Party Pro (&lt;code&gt;246.8k&lt;/code&gt; calls)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;70&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;9,021&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;0&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;1,280&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;384&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;139&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;macOS (&lt;code&gt;160.2k&lt;/code&gt; calls)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;9,392&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;1&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;1,608&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;497&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;169&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Three checks confirm this is not a tokenizer quirk or a simple rate-limit artifact:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Harmonic spacing at &lt;code&gt;518k - 2&lt;/code&gt;:&lt;/strong&gt; spikes repeat cleanly at &lt;code&gt;516&lt;/code&gt;, &lt;code&gt;1034&lt;/code&gt;, &lt;code&gt;1552&lt;/code&gt;, and &lt;code&gt;2070&lt;/code&gt; reasoning tokens.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ciphertext byte-length correlation (&lt;code&gt;r = 0.99538&lt;/code&gt;):&lt;/strong&gt; &lt;code&gt;reasoning_output_tokens&lt;/code&gt; tracks the raw &lt;code&gt;encrypted_content&lt;/code&gt; ciphertext byte lengths directly (&lt;code&gt;rTok == 0&lt;/code&gt; calls carry &lt;code&gt;0&lt;/code&gt; encrypted reasoning bytes).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not a quota ceiling:&lt;/strong&gt; &lt;strong&gt;&lt;code&gt;71.2%&lt;/code&gt;&lt;/strong&gt; (and &lt;code&gt;78.7%&lt;/code&gt; on macOS) of exact-&lt;code&gt;516&lt;/code&gt; cutoffs occurred &lt;strong&gt;below &lt;code&gt;80%&lt;/code&gt;&lt;/strong&gt; on both the 5-hour and 7-day subscription windows.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Alongside this cutoff, &lt;code&gt;turn_context.summary&lt;/code&gt; silently flipped from &lt;code&gt;"detailed"&lt;/code&gt; to &lt;code&gt;"none"&lt;/code&gt; without a client update.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Live &lt;code&gt;1 MiB&lt;/code&gt; Raw &lt;code&gt;git diff&lt;/code&gt; Capture Firing While Opted Out
&lt;/h2&gt;

&lt;p&gt;Inspecting signed &lt;code&gt;app.asar&lt;/code&gt; (&lt;code&gt;907538.0572f09d40.js&lt;/code&gt;, verified byte-for-byte across Windows and macOS builds) shows a telemetry payload (&lt;code&gt;codex_turn_diff_event&lt;/code&gt;) that captures up to &lt;strong&gt;&lt;code&gt;1 MiB&lt;/code&gt; (&lt;code&gt;1,048,576&lt;/code&gt; bytes)&lt;/strong&gt; of raw unified &lt;code&gt;git diff&lt;/code&gt; source code (&lt;code&gt;diff&lt;/code&gt;, &lt;code&gt;between_turn_diff&lt;/code&gt;, &lt;code&gt;session_start_diff&lt;/code&gt;, &lt;code&gt;visualization_diff&lt;/code&gt;, &lt;code&gt;repository_full_name&lt;/code&gt;, commit/tree SHAs) and sends it to &lt;code&gt;/wham/analytics-events/events&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The gate checks only &lt;code&gt;is_zdr === false&lt;/code&gt; and Statsig gate &lt;code&gt;586515394&lt;/code&gt; — performing &lt;strong&gt;zero checks&lt;/strong&gt; of &lt;code&gt;training_allowed: false&lt;/code&gt; or &lt;code&gt;[analytics] enabled = false&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;In live Windows Desktop runtime logs (&lt;code&gt;%LOCALAPPDATA%\Codex\Logs&lt;/code&gt;, &lt;code&gt;2026-11-05&lt;/code&gt;), we captured post-gate execution (&lt;code&gt;method=turn-diff-capture-complete workerId=git&lt;/code&gt; -&amp;gt; &lt;code&gt;Failed to complete turn diff analytics capture&lt;/code&gt;) tied to the exact EU account whose official OpenAI GDPR export records:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"training_allowed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"video_training_allowed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"voice_training_allowed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  3. Windows Explorer &lt;code&gt;UserAssist&lt;/code&gt; Scraping &amp;amp; Default-On Analytics
&lt;/h2&gt;

&lt;p&gt;Inside signed &lt;code&gt;app.asar&lt;/code&gt;, embedded PowerShell (&lt;code&gt;Get-UserAssistEntries&lt;/code&gt;, &lt;code&gt;Decode-Rot13&lt;/code&gt;) reads Windows Explorer's &lt;code&gt;HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\*\Count&lt;/code&gt; registry keys and writes a catalog of installed third-party applications (&lt;code&gt;last_used&lt;/code&gt;, &lt;code&gt;use_count&lt;/code&gt;) to &lt;code&gt;~/.codex/cache/computer-use/computer-use-app-catalog/.../user-assist.json&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;On our Windows test host, &lt;code&gt;user-assist.json&lt;/code&gt; cached &lt;strong&gt;82 non-OpenAI applications&lt;/strong&gt; (alongside &lt;code&gt;28&lt;/code&gt; &lt;code&gt;[external-agent-import]&lt;/code&gt; scans of competitor directories like &lt;code&gt;~/.claude&lt;/code&gt; and &lt;code&gt;.cursor&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;At the same time, while OpenAI's Rust CLI source (&lt;code&gt;cli/src/main.rs&lt;/code&gt;) comments that analytics default to off for &lt;code&gt;app-server&lt;/code&gt;, Electron unconditionally passes &lt;code&gt;--analytics-default-enabled&lt;/code&gt;, and Codex Settings provides &lt;code&gt;0&lt;/code&gt; UI toggles to disable telemetry.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. Local SQLite Erasure Gaps, Microphone Retention &amp;amp; Incomplete GDPR Exports
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;0&lt;/code&gt; calls to &lt;code&gt;PRAGMA secure_delete&lt;/code&gt;&lt;/strong&gt; across all &lt;code&gt;10,502&lt;/code&gt; files of &lt;code&gt;openai/codex&lt;/code&gt; and signed binaries: &lt;code&gt;queue_1.sqlite&lt;/code&gt; measured &lt;strong&gt;&lt;code&gt;98.6%&lt;/code&gt; unzeroed freelist pages at &lt;code&gt;0&lt;/code&gt; live rows&lt;/strong&gt; (+ recoverable prompts in &lt;code&gt;-wal&lt;/code&gt;), and &lt;code&gt;logs_2.sqlite&lt;/code&gt; measured &lt;strong&gt;&lt;code&gt;90.6%–91.8%&lt;/code&gt;&lt;/strong&gt; unzeroed deleted pages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;thread_history_1.sqlite&lt;/code&gt;&lt;/strong&gt; contains &lt;code&gt;0&lt;/code&gt; &lt;code&gt;ON DELETE CASCADE&lt;/code&gt; foreign keys and is skipped by &lt;code&gt;StateRuntime::delete_thread&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;dictation-history/&lt;/code&gt;&lt;/strong&gt; retains unencrypted local Opus microphone audio + transcripts with zero TTL (&lt;code&gt;54+&lt;/code&gt; days on Windows; up to &lt;code&gt;78&lt;/code&gt; days including cancelled captures on macOS).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Plaintext &lt;code&gt;auth.json&lt;/code&gt; on Windows:&lt;/strong&gt; &lt;code&gt;codex_desktop_secret_auth_storage&lt;/code&gt; explicitly excludes Windows.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;0&lt;/code&gt; of &lt;code&gt;1,502&lt;/code&gt; Codex sessions&lt;/strong&gt; appeared across two official EU GDPR "Export Data" archives (&lt;code&gt;150.8 MB&lt;/code&gt; and &lt;code&gt;186.8 MB&lt;/code&gt;), even though &lt;code&gt;export_manifest.json&lt;/code&gt; reported &lt;code&gt;"omissions": []&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  5. Negative Controls: What We Checked and Ruled Out
&lt;/h2&gt;

&lt;p&gt;To keep every claim anchored strictly to verifiable bytes, our report explicitly documents &lt;strong&gt;10 hypotheses we checked and ruled out&lt;/strong&gt;, including:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;CodexWindowsSystemSerialObserved&lt;/code&gt; (gate &lt;code&gt;1259783540&lt;/code&gt;):&lt;/strong&gt; unhashed Windows BIOS serial collection and local debug-log redaction are compiled into signed &lt;code&gt;app.asar&lt;/code&gt;, &lt;strong&gt;but the gate had not activated on our test host&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;0&lt;/code&gt; local &lt;code&gt;model_reroute&lt;/code&gt; events&lt;/strong&gt; inside &lt;code&gt;~/.codex/sessions/&lt;/code&gt; JSONL records.&lt;/li&gt;
&lt;li&gt;Standard &lt;code&gt;5h&lt;/code&gt;/&lt;code&gt;7d&lt;/code&gt; quota exhaustion (ruled out because &amp;gt;71% of &lt;code&gt;516&lt;/code&gt; cutoffs occurred below 80% quota).&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Verify Your Own Machine in 5 Seconds (MIT, Read-Only, Offline)
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;codex-local-audit&lt;/code&gt; has full feature parity across zero-dependency &lt;strong&gt;Node.js (22.15+ / 24+)&lt;/strong&gt; and &lt;strong&gt;Python 3.10+&lt;/strong&gt;. It opens every SQLite database strictly read-only, makes zero network calls, never opens or reads &lt;code&gt;auth.json&lt;/code&gt;, and strips all prompts, code, app names, and file paths.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/NeHumorist/codex-local-audit.git
&lt;span class="nb"&gt;cd&lt;/span&gt; codex-local-audit

&lt;span class="c"&gt;# Node.js 22.15+ / 24+ (zero external dependencies)&lt;/span&gt;
node audit_codex.mjs

&lt;span class="c"&gt;# Or Python 3.10–3.13 via uv&lt;/span&gt;
uv run --with zstandard python audit_codex.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On Windows without a global Node 24 install, you can invoke the Node 24 runtime already bundled with Codex Desktop:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$node24&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;ChildItem&lt;/span&gt; &lt;span class="s2"&gt;"$env:LOCALAPPDATA\OpenAI\Codex\runtimes\cua_node\*\bin\node.exe"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;First&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;ExpandProperty&lt;/span&gt; &lt;span class="nc"&gt;FullName&lt;/span&gt;
&lt;span class="o"&gt;&amp;amp;&lt;/span&gt; &lt;span class="nv"&gt;$node24&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;\&lt;span class="n"&gt;audit_codex&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;mjs&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Interactive Forensic Report:&lt;/strong&gt; &lt;a href="https://nehumorist.github.io/codex-local-audit/" rel="noopener noreferrer"&gt;https://nehumorist.github.io/codex-local-audit/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Source Code (MIT):&lt;/strong&gt; &lt;a href="https://github.com/NeHumorist/codex-local-audit" rel="noopener noreferrer"&gt;https://github.com/NeHumorist/codex-local-audit&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you run the audit on Codex Plus or Pro, feel free to share anonymized counts in the comments — we are especially interested in whether the &lt;code&gt;516 / 1034 / 1552&lt;/code&gt; pattern reproduces on newer builds.&lt;/p&gt;

</description>
      <category>cybersecurity</category>
      <category>privacy</category>
      <category>reverseengineering</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
