trace-to-skill 0.1.65 → 0.1.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -3
- package/dist/src/benchmark.js +6 -0
- package/dist/src/benchmark.js.map +1 -1
- package/dist/src/demo.js +8 -0
- package/dist/src/demo.js.map +1 -1
- package/dist/src/rules.js +24 -1
- package/dist/src/rules.js.map +1 -1
- package/dist/src/types.d.ts +1 -1
- package/docs/BENCHMARK.md +2 -1
- package/docs/CODEX_ISSUE_MAP.md +3 -0
- package/docs/DEMO.md +27 -25
- package/docs/DISCOVERY.md +3 -1
- package/docs/FAILURE_TAXONOMY.md +8 -0
- package/docs/OPENAI_OSS_BRIEF.md +6 -6
- package/docs/SCORECARD.md +3 -2
- package/docs/USE_CASES.md +35 -20
- package/fixtures/codex-subagent-lifecycle.md +133 -0
- package/llms.txt +4 -1
- package/package.json +4 -1
- package/schemas/analysis-result.schema.json +1 -0
package/README.md
CHANGED
|
@@ -72,6 +72,7 @@ Use it when you need to:
|
|
|
72
72
|
- **Diagnose stale connector auth/cache:** run `trace-to-skill codex-report ./runs` when Codex app connectors return `401 Reauthentication required`, keep the same `link_*`, report `isAccessible: false`, or survive restart/plugin reinstall/cache clearing.
|
|
73
73
|
- **Explain missing MCP tools across Codex surfaces:** run `trace-to-skill codex-report ./runs` when MCP servers work in CLI or user-global config but are absent in VS Code, Desktop, WSL, or project-local sessions.
|
|
74
74
|
- **Report terminal output and scrollback integrity failures:** run `trace-to-skill codex-report ./runs` when Codex terminal output disappears, gets overwritten, truncates numbered lines, snaps scrollback to the bottom, or only survives in logs/transcripts.
|
|
75
|
+
- **Triage subagent lifecycle drift:** run `trace-to-skill codex-report ./runs` when completed or closed subagents stay visible, stale spawn edges remain open, child threads crowd the recent list, `agent thread limit reached` blocks new work, or compaction loses prior subagent IDs.
|
|
75
76
|
- **Reduce approval friction:** run `trace-to-skill analyze ./runs` when `Approve for this session` is not remembered, repeated prompts push users toward Full Access, or trusted MCP tools like Playwright require dozens of approvals.
|
|
76
77
|
- **Diagnose sandbox blockers:** run `trace-to-skill analyze ./runs` on Codex traces that fail with sandbox setup refresh, `os error 740`, ACL, ownership, or approval-mode permission errors.
|
|
77
78
|
- **Debug Codex auth/connectivity:** run `trace-to-skill analyze ./runs` on logs with `token_exchange_failed`, `auth.openai.com/oauth/token`, Cloudflare challenge, proxy/CA, IPv6, or stream disconnect symptoms.
|
|
@@ -124,6 +125,7 @@ Open-source maintainers do not need more AI-generated noise. They need agents th
|
|
|
124
125
|
- Did a Codex app connector keep stale `link_*` or `isAccessible: false` metadata after `401 Reauthentication required`, restart, plugin reinstall, or cache regeneration?
|
|
125
126
|
- Did MCP servers work in Codex CLI, `~/.codex/config.toml`, or a new conversation, but disappear from VS Code, Desktop, WSL, project `.codex/config.toml`, or an older session?
|
|
126
127
|
- Did Codex terminal scrollback, streamed output, or transcript rendering drop, overwrite, truncate, duplicate, or hide evidence lines that still exist in raw logs?
|
|
128
|
+
- Did completed, closed, interrupted, or stale subagents diverge between the Desktop UI, live registry, `thread_spawn_edges`, spawn quota, recent-list/sidebar, and parent-agent discoverability?
|
|
127
129
|
- Did repeated approval prompts make a safer scoped mode unusable or require huge per-tool MCP approval configs?
|
|
128
130
|
- Can the failure be reported to OpenAI with line-linked evidence, redaction notes, and the exact diagnostics maintainers need?
|
|
129
131
|
- Can we produce an application-ready OpenAI OSS brief from the repo's actual license, distribution, readiness, and benchmark state?
|
|
@@ -204,6 +206,7 @@ Trace analysis detects run-level failures:
|
|
|
204
206
|
| Codex remote control | Mobile or remote sessions route through stale listeners, stale enrollment, or incomplete helper bundles |
|
|
205
207
|
| Codex MCP discovery mismatch | MCP works in CLI or one config scope but disappears in VS Code, Desktop, WSL, project config, or an older session |
|
|
206
208
|
| Codex terminal output integrity | Terminal scrollback, streamed output, or transcript rendering drops, overwrites, truncates, duplicates, or hides lines that raw logs still contain |
|
|
209
|
+
| Codex subagent lifecycle | Completed, closed, stale, or interrupted subagents diverge across UI, registry, persisted spawn edges, quota, recent list, or parent discoverability |
|
|
207
210
|
| Codex MCP runtime | MCP tools are configured but approval, namespace routing, unsupported callable names, or stdio transport fail at runtime |
|
|
208
211
|
| Codex plugin runtime | Browser, Computer Use, Chrome, connectors, or bundled plugins are advertised but fail because helper paths, plugin-list schemas, or cache state drift |
|
|
209
212
|
| Codex file tree UI | Desktop file tree, floating file panel, or file preview cannot be revealed, refreshes stale entries, or loses workspace navigation |
|
|
@@ -251,6 +254,7 @@ trace-to-skill demo deeplink-launch
|
|
|
251
254
|
trace-to-skill demo connector-auth-cache
|
|
252
255
|
trace-to-skill demo mcp-discovery-mismatch
|
|
253
256
|
trace-to-skill demo terminal-output-integrity
|
|
257
|
+
trace-to-skill demo subagent-lifecycle
|
|
254
258
|
trace-to-skill demo patch-overwrite
|
|
255
259
|
trace-to-skill guard-patch ./change.patch --root .
|
|
256
260
|
trace-to-skill session-audit ~/.codex --format json
|
|
@@ -465,7 +469,7 @@ jobs:
|
|
|
465
469
|
issues: write
|
|
466
470
|
steps:
|
|
467
471
|
- uses: actions/checkout@v5
|
|
468
|
-
- uses: grnbtqdbyx-create/trace-to-skill@v0.1.
|
|
472
|
+
- uses: grnbtqdbyx-create/trace-to-skill@v0.1.66
|
|
469
473
|
with:
|
|
470
474
|
mode: all
|
|
471
475
|
doctor-threshold: "85"
|
|
@@ -514,7 +518,7 @@ Composite action usage:
|
|
|
514
518
|
|
|
515
519
|
```yaml
|
|
516
520
|
- id: trace-to-skill
|
|
517
|
-
uses: grnbtqdbyx-create/trace-to-skill@v0.1.
|
|
521
|
+
uses: grnbtqdbyx-create/trace-to-skill@v0.1.66
|
|
518
522
|
with:
|
|
519
523
|
mode: all
|
|
520
524
|
doctor-threshold: "85"
|
|
@@ -556,7 +560,7 @@ Action outputs:
|
|
|
556
560
|
|
|
557
561
|
By default, generated reports are also appended to the GitHub Actions Job Summary. Set `job-summary: "false"` to disable that UI output.
|
|
558
562
|
|
|
559
|
-
Tagged Action releases build and run the CLI from `$GITHUB_ACTION_PATH`, so a workflow pinned to a release tag such as `@v0.1.
|
|
563
|
+
Tagged Action releases build and run the CLI from `$GITHUB_ACTION_PATH`, so a workflow pinned to a release tag such as `@v0.1.66` executes that release's checked-out source instead of pulling the default branch at runtime.
|
|
560
564
|
|
|
561
565
|
## Codex Skill
|
|
562
566
|
|
package/dist/src/benchmark.js
CHANGED
|
@@ -107,6 +107,12 @@ const BENCHMARK_CASES = [
|
|
|
107
107
|
fixture: "fixtures/codex-terminal-output-integrity.md",
|
|
108
108
|
expectedKinds: ["codex_terminal_output_integrity", "weak_evidence"]
|
|
109
109
|
},
|
|
110
|
+
{
|
|
111
|
+
id: "codex-subagent-lifecycle",
|
|
112
|
+
title: "Codex subagent lifecycle and state reconciliation failure",
|
|
113
|
+
fixture: "fixtures/codex-subagent-lifecycle.md",
|
|
114
|
+
expectedKinds: ["codex_subagent_lifecycle", "weak_evidence"]
|
|
115
|
+
},
|
|
110
116
|
{
|
|
111
117
|
id: "quota-mismatch",
|
|
112
118
|
title: "Codex quota mismatch",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benchmark.js","sourceRoot":"","sources":["../../src/benchmark.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AA8B9C,MAAM,eAAe,GAA8B;IACjD;QACE,EAAE,EAAE,qBAAqB;QACzB,KAAK,EAAE,2BAA2B;QAClC,OAAO,EAAE,sBAAsB;QAC/B,aAAa,EAAE,EAAE;QACjB,YAAY,EAAE,IAAI;KACnB;IACD;QACE,EAAE,EAAE,iBAAiB;QACrB,KAAK,EAAE,yCAAyC;QAChD,OAAO,EAAE,wBAAwB;QACjC,aAAa,EAAE,CAAC,cAAc,EAAE,sBAAsB,EAAE,eAAe,EAAE,UAAU,EAAE,m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5B,QAAgB,EAChB,gBAAwB;IAExB,IAAI,UAAU,CAAC,YAAY,IAAI,QAAQ,KAAK,CAAC,EAAE,CAAC;QAC9C,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,UAAU,CAAC,eAAe,IAAI,gBAAgB,KAAK,CAAC,EAAE,CAAC;QACzD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,UAAU,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;AAChF,CAAC;AAED,SAAS,WAAW;IAClB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;AAC7E,CAAC"}
|
package/dist/src/demo.js
CHANGED
|
@@ -63,6 +63,12 @@ const DEMO_SCENARIOS = [
|
|
|
63
63
|
fixture: "fixtures/codex-terminal-output-integrity.md",
|
|
64
64
|
description: "Terminal scrollback, streamed output, or transcript rendering drops, overwrites, truncates, or makes lines inaccessible."
|
|
65
65
|
},
|
|
66
|
+
{
|
|
67
|
+
id: "subagent-lifecycle",
|
|
68
|
+
title: "Codex subagent lifecycle",
|
|
69
|
+
fixture: "fixtures/codex-subagent-lifecycle.md",
|
|
70
|
+
description: "Completed, closed, stale, or interrupted subagents diverge between UI, live registry, persisted state, quota, and parent discoverability."
|
|
71
|
+
},
|
|
66
72
|
{
|
|
67
73
|
id: "token-burn",
|
|
68
74
|
title: "Codex token burn",
|
|
@@ -150,6 +156,7 @@ export function renderDemoMarkdown(result) {
|
|
|
150
156
|
"trace-to-skill demo connector-auth-cache",
|
|
151
157
|
"trace-to-skill demo mcp-discovery-mismatch",
|
|
152
158
|
"trace-to-skill demo terminal-output-integrity",
|
|
159
|
+
"trace-to-skill demo subagent-lifecycle",
|
|
153
160
|
"trace-to-skill demo file-tree-ui",
|
|
154
161
|
"trace-to-skill demo usage-reset-drift",
|
|
155
162
|
"```",
|
|
@@ -178,6 +185,7 @@ export function renderDemoScenarioList(scenarios = listDemoScenarios()) {
|
|
|
178
185
|
"trace-to-skill demo connector-auth-cache",
|
|
179
186
|
"trace-to-skill demo mcp-discovery-mismatch",
|
|
180
187
|
"trace-to-skill demo terminal-output-integrity",
|
|
188
|
+
"trace-to-skill demo subagent-lifecycle",
|
|
181
189
|
"trace-to-skill demo --list",
|
|
182
190
|
"```",
|
|
183
191
|
""
|
package/dist/src/demo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"demo.js","sourceRoot":"","sources":["../../src/demo.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAgBrD,MAAM,cAAc,GAAmB;IACrC;QACE,EAAE,EAAE,gBAAgB;QACpB,KAAK,EAAE,mCAAmC;QAC1C,OAAO,EAAE,kCAAkC;QAC3C,WAAW,EAAE,iHAAiH;KAC/H;IACD;QACE,EAAE,EAAE,qBAAqB;QACzB,KAAK,EAAE,mCAAmC;QAC1C,OAAO,EAAE,uCAAuC;QAChD,WAAW,EAAE,0HAA0H;KACxI;IACD;QACE,EAAE,EAAE,mBAAmB;QACvB,KAAK,EAAE,yBAAyB;QAChC,OAAO,EAAE,qCAAqC;QAC9C,WAAW,EAAE,mGAAmG;KACjH;IACD;QACE,EAAE,EAAE,oBAAoB;QACxB,KAAK,EAAE,0BAA0B;QACjC,OAAO,EAAE,sCAAsC;QAC/C,WAAW,EAAE,wFAAwF;KACtG;IACD;QACE,EAAE,EAAE,eAAe;QACnB,KAAK,EAAE,gCAAgC;QACvC,OAAO,EAAE,iCAAiC;QAC1C,WAAW,EAAE,y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const RULES = [
|
|
|
401
401
|
suggestedRule: "When reporting Codex terminal output or scrollback integrity failures, capture Codex CLI/app/extension version, OS, shell, terminal emulator and version, remote/WSL/SSH/tmux/Zellij state, model, whether streaming was active, exact scroll action, whether the viewport snapped to bottom, first missing or duplicated line id, raw log/transcript/transaction evidence showing the line still exists, terminal capture such as tmux capture-pane or Windows Terminal screenshot/video, reproduction script or numbered-line harness output, control run without Codex-specific escape/history insertion, terminal dimensions and scrollback settings, whether /resume or transcript mode recovers the content, and whether downgrade or another terminal changes behavior.",
|
|
402
402
|
suggestedSkill: "codex-terminal-output-triage"
|
|
403
403
|
},
|
|
404
|
+
{
|
|
405
|
+
kind: "codex_subagent_lifecycle",
|
|
406
|
+
severity: "high",
|
|
407
|
+
title: "Codex subagent lifecycle or state reconciliation failure",
|
|
408
|
+
why: "When completed, closed, stale, or interrupted subagents remain visible, keep quota slots, lose parent discoverability, or diverge between UI, live registry, and persisted spawn-edge state, long-running Codex sessions become hard to trust or recover.",
|
|
409
|
+
patterns: [
|
|
410
|
+
/\bsubagents?\b.{0,220}\b(stale|zombie|orphan(?:ed)?|refus(?:e|ing) to close|cannot be closed|can't be closed|accumulat(?:e|es|ing)|remain visible|still listed|visible count|Show \d+ more)\b/i,
|
|
411
|
+
/\b(completed|closed|shutdown|not_found|not found|already[- ]closed|terminal|inactive)\b.{0,220}\bsubagents?\b.{0,220}\b(still visible|remain(?:s)? listed|active list|Subagents panel|side panel|cache|UI|right rail|stale)\b/i,
|
|
412
|
+
/\b(close_agent|close route|readback|live close|agent controls)\b.{0,220}\b(not_found|not found|shutdown|completed|closed|pending_init|no live handle|no live agent|still visible|still listed|stale|UI|cache)\b/i,
|
|
413
|
+
/\b(thread_spawn_edges|spawn edges?|child_thread_id|parent_thread_id)\b.{0,220}\b(open|closed|stale|status|persisted|SQLite|state_5\.sqlite|spawn-edge)\b/i,
|
|
414
|
+
/\b(agent thread limit reached|agents\.max_threads|max_threads|spawn quota|quota slot|active spawn quota|counted against|per-session agent thread limit)\b/i,
|
|
415
|
+
/\b(completed|final|TurnComplete|terminal)\b.{0,220}\b(subagents?|agents?)\b.{0,220}\b(count(?:s|ed|ing)? against|consume|block|release|quota|thread limit|spawn)\b/i,
|
|
416
|
+
/\bsubagent child threads?\b.{0,220}\b(top-level recent conversations|recent conversation|sidebar|archived\s*=\s*0|unarchived|consume.*slots|page limit|recent-list)\b/i,
|
|
417
|
+
/\b(list_agents|\/agents|loaded\/list|thread\/loaded\/list)\b.{0,220}\b(live agents|closed agents|prior spawned|previously spawned|not available|cannot retrieve|no way to list|discoverable)\b/i,
|
|
418
|
+
/\bsubagents?\b.{0,220}\b(context compact(?:ed|ion)?|auto compact(?:ed|ion)?|compaction)\b.{0,220}\b(not aware|forgot|id was not available|cannot list|created a new subagent|forked the main session)\b/i,
|
|
419
|
+
/\bfork_context\b.{0,220}\b(unbiased review|forked our conversation|full conversation history|main session|bad call|do not fork|biased reviewer)\b/i,
|
|
420
|
+
/\b(main agent|parent thread|parent agent|root thread)\b.{0,220}\b(subagents?|child threads?|spawned sessions?)\b.{0,220}\b(no way to list|not aware|resume|discover|stale|closed|open edges?)\b/i,
|
|
421
|
+
/\bsubagents?\b.{0,220}\b(MCP startup interrupted|codex_apps|connection lifecycle|MCP connections?|connection pool|file descriptor|SSE connection|long session|5\+ hours)\b/i,
|
|
422
|
+
/\b(background work|background task|parallel-first|Down panel|task panel)\b.{0,220}\b(subagents?|terminals|nonblocking|lastProgressAt|halt_reason|stop_reason|budget_slice|worker id|receipt)\b/i
|
|
423
|
+
],
|
|
424
|
+
suggestedRule: "When reporting Codex subagent lifecycle failures, capture Codex app/CLI/extension version, OS, surface, model, subscription/workspace, root thread id, subagent ids/nicknames/roles, spawn/close/list commands or UI actions, close_agent results, list_agents or /agents output, thread_spawn_edges status counts, agent registry or max_threads/quota evidence, recent-list/sidebar behavior, whether child threads are archived or shown as top-level conversations, last-progress/heartbeat or halt reason, MCP server state for subagents, compaction/resume timing, screenshot or redacted UI state, whether restart/reload/new thread clears it, and whether stale agents are UI-only or still block new spawns.",
|
|
425
|
+
suggestedSkill: "codex-subagent-lifecycle-triage"
|
|
426
|
+
},
|
|
404
427
|
{
|
|
405
428
|
kind: "codex_mcp_discovery_mismatch",
|
|
406
429
|
severity: "high",
|
|
@@ -567,7 +590,7 @@ const RULES = [
|
|
|
567
590
|
/\binsufficient tool messages following tool_calls message\b/i,
|
|
568
591
|
/\btool_call_id\b.{0,160}\b(missing|unmatched|not followed|protocol|invalid_request_error|tool messages?)\b/i,
|
|
569
592
|
/\bclose_agent\b.{0,180}\b(hang forever|waits? forever|never returns|thread never terminates|agent thread limit reached|registry slot|already closed)\b/i,
|
|
570
|
-
/\b(subagent|child thread|durable spawn edge|thread_spawn_edges)\b.{0,180}\b(
|
|
593
|
+
/\b(subagent|child thread|durable spawn edge|thread_spawn_edges)\b.{0,180}\b(registry slot|thread limit|agent thread limit reached|hang forever|never returns|timeout)\b/i,
|
|
571
594
|
/\b(failed to revert changes|revert changes failed|undo button stopped working|could not undo|rollback failed)\b/i,
|
|
572
595
|
/\b(Codex|agent|extension)\b.{0,180}\b(deleted|truncated|overwrote|destroyed|lost)\b.{0,160}\b(uncommitted code|existing file|codebase|file contents)\b/i,
|
|
573
596
|
/\b(IDE-integrated diff|presenting changes|proposed changes|diff approval|show a diff|apply changes)\b.{0,180}\b(fail|missing|unsafe|rollback|revert|approval)\b/i
|
package/dist/src/rules.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.js","sourceRoot":"","sources":["../../src/rules.ts"],"names":[],"mappings":"AAYA,MAAM,KAAK,GAAqB;IAC9B;QACE,IAAI,EAAE,sBAAsB;QAC5B,QAAQ,EAAE,MAAM;QAChB,KAAK,EAAE,mDAAmD;QAC1D,GAAG,EAAE,wGAAwG;QAC7G,QAAQ,EAAE;YACR,6CAA6C;YAC7C,iFAAiF;SAClF;QACD,aAAa,EACX,sIAAsI;QACxI,cAAc,EAAE,gCAAgC;KAC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,CAAC,EAAE,CAAC;AAChD,CAAC;AAED,SAAS,QAAQ,CAAC,OAAe,EAAE,MAAc;IAC/C,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;IAChF,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAE,KAAiC,CAAC,CAAC,CAAC,SAAS,CAAC;AACtH,CAAC;AAED,SAAS,MAAM,CAAC,KAAa;IAC3B,OAAO,KAAK;SACT,OAAO,CAAC,uBAAuB,EAAE,oBAAoB,CAAC;SACtD,OAAO,CAAC,kCAAkC,EAAE,yBAAyB,CAAC;SACtE,OAAO,CAAC,0BAA0B,EAAE,uBAAuB,CAAC;SAC5D,OAAO,CAAC,gFAAgF,EAAE,gBAAgB,CAAC,CAAC;AACjH,CAAC"}
|
package/dist/src/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type Severity = "low" | "medium" | "high" | "critical";
|
|
2
|
-
export type FindingKind = "premature_completion" | "tests_not_run" | "test_failure" | "ignored_instruction" | "hallucinated_file" | "over_editing" | "unsafe_command" | "secret_exposure" | "sensitive_file_access" | "hidden_unicode" | "prompt_injection" | "codex_remote_compact" | "context_compaction" | "codex_latest_turn_drift" | "codex_latency_regression" | "codex_thinking_hang" | "codex_clipboard_attachment" | "codex_deeplink_launch" | "codex_connector_auth_cache" | "codex_approval_friction" | "sandbox_permission" | "codex_windows_helper_path" | "codex_connectivity" | "codex_remote_control" | "codex_terminal_output_integrity" | "codex_mcp_discovery_mismatch" | "codex_mcp_runtime" | "codex_plugin_runtime" | "codex_file_tree_ui" | "codex_session_state" | "codex_token_burn" | "codex_resource_leak" | "codex_tool_call_integrity" | "codex_usage_reset_drift" | "quota_mismatch" | "mcp_risk" | "weak_evidence";
|
|
2
|
+
export type FindingKind = "premature_completion" | "tests_not_run" | "test_failure" | "ignored_instruction" | "hallucinated_file" | "over_editing" | "unsafe_command" | "secret_exposure" | "sensitive_file_access" | "hidden_unicode" | "prompt_injection" | "codex_remote_compact" | "context_compaction" | "codex_latest_turn_drift" | "codex_latency_regression" | "codex_thinking_hang" | "codex_clipboard_attachment" | "codex_deeplink_launch" | "codex_connector_auth_cache" | "codex_approval_friction" | "sandbox_permission" | "codex_windows_helper_path" | "codex_connectivity" | "codex_remote_control" | "codex_terminal_output_integrity" | "codex_subagent_lifecycle" | "codex_mcp_discovery_mismatch" | "codex_mcp_runtime" | "codex_plugin_runtime" | "codex_file_tree_ui" | "codex_session_state" | "codex_token_burn" | "codex_resource_leak" | "codex_tool_call_integrity" | "codex_usage_reset_drift" | "quota_mismatch" | "mcp_risk" | "weak_evidence";
|
|
3
3
|
export interface TraceInput {
|
|
4
4
|
path: string;
|
|
5
5
|
content: string;
|
package/docs/BENCHMARK.md
CHANGED
|
@@ -23,6 +23,7 @@ This benchmark runs the public fixture pack that ships with the repository and p
|
|
|
23
23
|
| Codex auth and connectivity failure | `fixtures/codex-connectivity.md` | 75 | 2 | 0 | `codex_connectivity`, `weak_evidence` | pass |
|
|
24
24
|
| Codex remote-control route health failure | `fixtures/codex-remote-control.md` | 75 | 2 | 0 | `codex_remote_control`, `weak_evidence` | pass |
|
|
25
25
|
| Codex terminal output and scrollback integrity failure | `fixtures/codex-terminal-output-integrity.md` | 75 | 2 | 0 | `codex_terminal_output_integrity`, `weak_evidence` | pass |
|
|
26
|
+
| Codex subagent lifecycle and state reconciliation failure | `fixtures/codex-subagent-lifecycle.md` | 75 | 2 | 0 | `codex_subagent_lifecycle`, `weak_evidence` | pass |
|
|
26
27
|
| Codex quota mismatch | `fixtures/quota-mismatch.md` | 59 | 3 | 0 | `codex_usage_reset_drift`, `quota_mismatch`, `weak_evidence` | pass |
|
|
27
28
|
| MCP config with secret exposure | `fixtures/mcp-risk.json` | 59 | 2 | 1 | `mcp_risk`, `secret_exposure` | pass |
|
|
28
29
|
| Sensitive file access in agent context | `fixtures/sensitive-file-access.md` | 75 | 2 | 0 | `sensitive_file_access`, `weak_evidence` | pass |
|
|
@@ -33,7 +34,7 @@ This benchmark runs the public fixture pack that ships with the repository and p
|
|
|
33
34
|
| Codex session resume and state failure | `fixtures/codex-session-state.md` | 59 | 3 | 0 | `codex_resource_leak`, `codex_session_state`, `weak_evidence` | pass |
|
|
34
35
|
| Codex token burn and usage-drain loop | `fixtures/codex-token-burn.md` | 59 | 3 | 0 | `codex_resource_leak`, `codex_token_burn`, `weak_evidence` | pass |
|
|
35
36
|
| Codex resource leak and runaway process | `fixtures/codex-resource-leak.md` | 75 | 2 | 0 | `codex_resource_leak`, `weak_evidence` | pass |
|
|
36
|
-
| Codex tool-call integrity and rollback failure | `fixtures/codex-tool-call-integrity.md` |
|
|
37
|
+
| Codex tool-call integrity and rollback failure | `fixtures/codex-tool-call-integrity.md` | 43 | 4 | 0 | `codex_resource_leak`, `codex_subagent_lifecycle`, `codex_tool_call_integrity`, `weak_evidence` | pass |
|
|
37
38
|
| Codex apply_patch Add File overwrite safety | `fixtures/codex-apply-patch-overwrite.md` | 75 | 2 | 0 | `codex_tool_call_integrity`, `weak_evidence` | pass |
|
|
38
39
|
| Codex usage reset schedule drift | `fixtures/codex-usage-reset-drift.md` | 75 | 2 | 0 | `codex_usage_reset_drift`, `weak_evidence` | pass |
|
|
39
40
|
| Untrusted PR comment prompt injection | `fixtures/prompt-injection.md` | 50 | 3 | 1 | `premature_completion`, `prompt_injection`, `weak_evidence` | pass |
|
package/docs/CODEX_ISSUE_MAP.md
CHANGED
|
@@ -32,6 +32,7 @@ npx trace-to-skill diagnostics-bundle ~/.codex --output codex-diagnostics
|
|
|
32
32
|
| App connector auth cache and stale link regressions | `401 Reauthentication required`, `refresh token was revoked`, stale `link_*`, `isAccessible: false`, `codex_apps_tools` or `codex_app_directory` cache regeneration keeps broken connector state | `codex_connector_auth_cache` | `trace-to-skill codex-report ./runs` or `trace-to-skill demo connector-auth-cache` |
|
|
33
33
|
| MCP discovery and config-scope mismatches | CLI `/mcp` works but VS Code/Desktop has no `mcp__*` tools, project `.codex/config.toml` ignored, `codex mcp get` says `No MCP server named`, WSL opens Windows `config.toml`, `CODEX_HOME` differs | `codex_mcp_discovery_mismatch` | `trace-to-skill codex-report ./runs` or `trace-to-skill demo mcp-discovery-mismatch` |
|
|
34
34
|
| Terminal output and scrollback integrity failures | scrollback lines disappear, streaming output overwrites older visible transcript, complete numbered lines are missing, `missing_count`, `tmux_scrollback_repro.sh`, viewport snaps to bottom, transcript mode cannot recover output | `codex_terminal_output_integrity` | `trace-to-skill codex-report ./runs` or `trace-to-skill demo terminal-output-integrity` |
|
|
35
|
+
| Subagent lifecycle and state reconciliation failures | completed/closed subagents remain visible, stale `thread_spawn_edges`, `agent thread limit reached`, `close_agent` hangs or returns `not_found`, child threads crowd recent conversations, compaction loses prior subagent IDs, forked review inherits parent context | `codex_subagent_lifecycle` | `trace-to-skill codex-report ./runs` or `trace-to-skill demo subagent-lifecycle` |
|
|
35
36
|
| Approval persistence and MCP approval friction | `Approve for this session` is not remembered, command approval cache misses, repeated file-change approvals, `approval_policy = "never"` still prompts for MCP tools, per-tool approval configs explode | `codex_approval_friction` | `trace-to-skill codex-report ./runs` |
|
|
36
37
|
| Config and Preferences drift | legacy `profile` / `[profiles.*]`, `configVersionConflict`, Preferences `Unable to save`, stale model pin, missing `default_permissions` profile, enabled plugin cache missing, Windows elevated sandbox mode | `sandbox_permission`, `codex_plugin_runtime`, `codex_approval_friction` | `trace-to-skill config-audit ~/.codex --format json` |
|
|
37
38
|
| Bundled plugin cache and marketplace drift | Computer Use unavailable, Browser/Chrome plugin unavailable, generated runtime marketplace omits bundled plugins, missing `.mcp.json` or `plugin.json`, helper app not installed, `CODEX_HOME` points at another runtime | `codex_plugin_runtime`, `codex_mcp_runtime` | `trace-to-skill plugin-audit ~/.codex --app /Applications/Codex.app --format json` |
|
|
@@ -70,6 +71,7 @@ npx trace-to-skill diagnostics-bundle ~/.codex --output codex-diagnostics
|
|
|
70
71
|
- Include connector/plugin name and id, installed plugin root, exact Codex Apps tool name, 401/reauth text, `link_*` id before and after reconnect/cache regeneration, `isAccessible` state, redacted `codex_apps_tools`/`codex_app_directory` metadata, ChatGPT app page state, and external MCP workaround result for connector auth-cache regressions.
|
|
71
72
|
- Include effective `CODEX_HOME`, config files considered, redacted MCP sections, trust/profile/default-permissions state, `codex mcp list/get`, CLI-versus-Desktop/VS Code comparison, loaded config path/log lines, WSL/remote/SSH state, and restart/reload/new-conversation results for MCP discovery mismatches.
|
|
72
73
|
- Include terminal emulator/version, shell, WSL/SSH/tmux/Zellij state, streaming state, exact scroll action, viewport snap behavior, first missing or duplicated line id, raw log/transcript proof, terminal capture, numbered-line harness/control output, terminal dimensions/scrollback settings, and `/resume` or transcript recovery behavior for terminal-output integrity reports.
|
|
74
|
+
- Include root thread id, subagent ids/nicknames/roles, spawn/close/list commands, `close_agent` results, `list_agents` or `/agents` output, `thread_spawn_edges` status counts, `agents.max_threads` or registry quota evidence, recent-list/sidebar behavior, child-thread archive/top-level status, last-progress or halt reason, MCP server state for subagents, compaction/resume timing, redacted UI evidence, restart/reload behavior, and whether stale agents are UI-only or still block spawns for subagent-lifecycle reports.
|
|
73
75
|
- Include selected approval scope, displayed vs executed command, MCP server/tool names, visible args, repeated prompt count, and config snippets for approval-friction reports.
|
|
74
76
|
- Include `config-audit` output for Preferences/config, sandbox, model-pin, MCP approval, and plugin-cache reports.
|
|
75
77
|
- Include `plugin-audit` output, plugin name/version, cache path, helper path, manifest path, runtime marketplace, app-bundle marketplace, native pipe env vars, settings/plugin-list errors, and restart behavior for plugin runtime failures.
|
|
@@ -92,6 +94,7 @@ npx trace-to-skill diagnostics-bundle ~/.codex --output codex-diagnostics
|
|
|
92
94
|
- App connector auth cache and stale link regressions: https://github.com/openai/codex/issues/24675, https://github.com/openai/codex/issues/25443
|
|
93
95
|
- MCP discovery and config-scope mismatches: https://github.com/openai/codex/issues/6465, https://github.com/openai/codex/issues/13025, https://github.com/openai/codex/issues/13549
|
|
94
96
|
- Terminal output and scrollback integrity failures: https://github.com/openai/codex/issues/15380, https://github.com/openai/codex/issues/24849, https://github.com/openai/codex/issues/10726
|
|
97
|
+
- Subagent lifecycle and state reconciliation failures: https://github.com/openai/codex/issues/23930, https://github.com/openai/codex/issues/23700, https://github.com/openai/codex/issues/25341, https://github.com/openai/codex/issues/25179, https://github.com/openai/codex/issues/22779, https://github.com/openai/codex/issues/24281, https://github.com/openai/codex/issues/25426, https://github.com/openai/codex/issues/22099
|
|
95
98
|
- Approval persistence and MCP approval friction: https://github.com/openai/codex/issues/4212, https://github.com/openai/codex/issues/13476, https://github.com/openai/codex/issues/2998
|
|
96
99
|
- Config and Preferences drift: https://github.com/openai/codex/issues/25440, https://github.com/openai/codex/issues/25442, https://github.com/openai/codex/issues/20538, https://github.com/openai/codex/issues/24963
|
|
97
100
|
- Latest-turn drift and compaction memory loss: https://github.com/openai/codex/issues/8648, https://github.com/openai/codex/issues/5957, https://github.com/openai/codex/issues/10823, https://github.com/openai/codex/issues/11626
|
package/docs/DEMO.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# trace-to-skill Demo
|
|
2
2
|
|
|
3
|
-
Scenario: **Codex
|
|
3
|
+
Scenario: **Codex subagent lifecycle**
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Completed, closed, stale, or interrupted subagents diverge between UI, live registry, persisted state, quota, and parent discoverability.
|
|
6
6
|
|
|
7
|
-
Fixture: `fixtures/codex-
|
|
7
|
+
Fixture: `fixtures/codex-subagent-lifecycle.md`
|
|
8
8
|
|
|
9
9
|
This is a packaged public fixture, so you can try the project without collecting a private trace first.
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ This is a packaged public fixture, so you can try the project without collecting
|
|
|
14
14
|
|
|
15
15
|
Score: **75/100**
|
|
16
16
|
|
|
17
|
-
Likely failure class: **Codex
|
|
17
|
+
Likely failure class: **Codex subagent lifecycle or state reconciliation failure (codex_subagent_lifecycle, high)**
|
|
18
18
|
|
|
19
19
|
Agent workflow needs clearer verification, instruction, or security hardening before broad reuse.
|
|
20
20
|
|
|
@@ -23,25 +23,25 @@ Agent workflow needs clearer verification, instruction, or security hardening be
|
|
|
23
23
|
```md
|
|
24
24
|
### What happened?
|
|
25
25
|
|
|
26
|
-
trace-to-skill detected Codex
|
|
26
|
+
trace-to-skill detected Codex subagent lifecycle or state reconciliation failure (codex_subagent_lifecycle). When completed, closed, stale, or interrupted subagents remain visible, keep quota slots, lose parent discoverability, or diverge between UI, live registry, and persisted spawn-edge state, long-running Codex sessions become hard to trust or recover.
|
|
27
27
|
|
|
28
28
|
### Detected failure class
|
|
29
29
|
|
|
30
|
-
-
|
|
30
|
+
- codex_subagent_lifecycle: Codex subagent lifecycle or state reconciliation failure (high)
|
|
31
31
|
|
|
32
32
|
### Evidence
|
|
33
33
|
|
|
34
|
-
#### Codex
|
|
35
|
-
- fixtures/codex-
|
|
36
|
-
- fixtures/codex-
|
|
37
|
-
- fixtures/codex-
|
|
38
|
-
- fixtures/codex-
|
|
39
|
-
- fixtures/codex-
|
|
40
|
-
- fixtures/codex-
|
|
34
|
+
#### Codex subagent lifecycle or state reconciliation failure
|
|
35
|
+
- fixtures/codex-subagent-lifecycle.md:16 - Completed or closed subagents remain visible in the Subagents panel.
|
|
36
|
+
- fixtures/codex-subagent-lifecycle.md:17 - The app shows stale subagent cards after close/readback reports no live agent handle.
|
|
37
|
+
- fixtures/codex-subagent-lifecycle.md:18 - The visible subagent count grows very large; the panel can show Show 67 more or 100+ stale entries.
|
|
38
|
+
- fixtures/codex-subagent-lifecycle.md:20 - It is unclear which subagents are active versus stale UI/cache entries.
|
|
39
|
+
- fixtures/codex-subagent-lifecycle.md:27 - thread_spawn_edges status count: closed=549, open=0
|
|
40
|
+
- fixtures/codex-subagent-lifecycle.md:28 - After restarting Codex Desktop multiple times, the Subagents panel still visually shows stale subagent cards.
|
|
41
41
|
|
|
42
42
|
### Diagnostics to attach
|
|
43
43
|
|
|
44
|
-
- When reporting Codex
|
|
44
|
+
- When reporting Codex subagent lifecycle failures, capture Codex app/CLI/extension version, OS, surface, model, subscription/workspace, root thread id, subagent ids/nicknames/roles, spawn/close/list commands or UI actions, close_agent results, list_agents or /agents output, thread_spawn_edges status counts, agent registry or max_threads/quota evidence, recent-list/sidebar behavior, whether child threads are archived or shown as top-level conversations, last-progress/heartbeat or halt reason, MCP server state for subagents, compaction/resume timing, screenshot or redacted UI state, whether restart/reload/new thread clears it, and whether stale agents are UI-only or still block new spawns.
|
|
45
45
|
|
|
46
46
|
### Privacy
|
|
47
47
|
|
|
@@ -50,25 +50,25 @@ trace-to-skill detected Codex terminal output or scrollback integrity failure (c
|
|
|
50
50
|
|
|
51
51
|
## Findings
|
|
52
52
|
|
|
53
|
-
### 1. Codex
|
|
53
|
+
### 1. Codex subagent lifecycle or state reconciliation failure
|
|
54
54
|
|
|
55
55
|
Severity: **high**
|
|
56
56
|
|
|
57
|
-
When
|
|
57
|
+
When completed, closed, stale, or interrupted subagents remain visible, keep quota slots, lose parent discoverability, or diverge between UI, live registry, and persisted spawn-edge state, long-running Codex sessions become hard to trust or recover.
|
|
58
58
|
|
|
59
59
|
Evidence:
|
|
60
|
-
- `fixtures/codex-
|
|
61
|
-
- `fixtures/codex-
|
|
62
|
-
- `fixtures/codex-
|
|
63
|
-
- `fixtures/codex-
|
|
64
|
-
- `fixtures/codex-
|
|
65
|
-
- `fixtures/codex-
|
|
66
|
-
- `fixtures/codex-
|
|
67
|
-
- `fixtures/codex-
|
|
60
|
+
- `fixtures/codex-subagent-lifecycle.md:16` Completed or closed subagents remain visible in the Subagents panel.
|
|
61
|
+
- `fixtures/codex-subagent-lifecycle.md:17` The app shows stale subagent cards after close/readback reports no live agent handle.
|
|
62
|
+
- `fixtures/codex-subagent-lifecycle.md:18` The visible subagent count grows very large; the panel can show Show 67 more or 100+ stale entries.
|
|
63
|
+
- `fixtures/codex-subagent-lifecycle.md:20` It is unclear which subagents are active versus stale UI/cache entries.
|
|
64
|
+
- `fixtures/codex-subagent-lifecycle.md:27` thread_spawn_edges status count: closed=549, open=0
|
|
65
|
+
- `fixtures/codex-subagent-lifecycle.md:28` After restarting Codex Desktop multiple times, the Subagents panel still visually shows stale subagent cards.
|
|
66
|
+
- `fixtures/codex-subagent-lifecycle.md:36` Codex subagents have been going stale and refusing to close for the past week.
|
|
67
|
+
- `fixtures/codex-subagent-lifecycle.md:47` Long sessions with stale subagents may hold MCP connections or leave connection lifecycle state unclear.
|
|
68
68
|
|
|
69
69
|
Suggested rule:
|
|
70
70
|
|
|
71
|
-
> When reporting Codex
|
|
71
|
+
> When reporting Codex subagent lifecycle failures, capture Codex app/CLI/extension version, OS, surface, model, subscription/workspace, root thread id, subagent ids/nicknames/roles, spawn/close/list commands or UI actions, close_agent results, list_agents or /agents output, thread_spawn_edges status counts, agent registry or max_threads/quota evidence, recent-list/sidebar behavior, whether child threads are archived or shown as top-level conversations, last-progress/heartbeat or halt reason, MCP server state for subagents, compaction/resume timing, screenshot or redacted UI state, whether restart/reload/new thread clears it, and whether stale agents are UI-only or still block new spawns.
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
## Reporter Notes
|
|
@@ -90,6 +90,7 @@ Suggested rule:
|
|
|
90
90
|
- `deeplink-launch`: OAuth callbacks, notification clicks, mobile links, or `codex app <path>` external activation fail to route into Codex.
|
|
91
91
|
- `connector-auth-cache`: App connectors keep stale `link_*` auth or discovery metadata after reauth-required responses.
|
|
92
92
|
- `mcp-discovery-mismatch`: MCP servers work in CLI or one config scope but are absent in Desktop, VS Code, WSL, or project-local sessions.
|
|
93
|
+
- `terminal-output-integrity`: Terminal scrollback, streamed output, or transcript rendering drops, overwrites, truncates, or makes lines inaccessible.
|
|
93
94
|
- `token-burn`: Usage drains from background polling, idle activity, compaction loops, retries, or cached-heavy turns.
|
|
94
95
|
- `patch-overwrite`: `apply_patch` accepts `*** Add File` for an existing path, turning a create operation into a silent overwrite.
|
|
95
96
|
- `sensitive-files`: Secrets, local credentials, production env files, or private databases enter agent context.
|
|
@@ -108,6 +109,7 @@ trace-to-skill demo deeplink-launch
|
|
|
108
109
|
trace-to-skill demo connector-auth-cache
|
|
109
110
|
trace-to-skill demo mcp-discovery-mismatch
|
|
110
111
|
trace-to-skill demo terminal-output-integrity
|
|
112
|
+
trace-to-skill demo subagent-lifecycle
|
|
111
113
|
trace-to-skill demo file-tree-ui
|
|
112
114
|
trace-to-skill demo usage-reset-drift
|
|
113
115
|
```
|
package/docs/DISCOVERY.md
CHANGED
|
@@ -29,6 +29,7 @@ This page is written for maintainers, search engines, package indexes, and AI re
|
|
|
29
29
|
- Codex MCP tools are visible in `tools/list` but fail at runtime because approval is cancelled, elicitation is unsupported in exec mode, namespace or `serverName` metadata is dropped, routed names become `unsupported call`, or stdio transport closes.
|
|
30
30
|
- Codex MCP servers work in CLI or one config scope but are absent in VS Code, Desktop, WSL, remote, project-local, or older-conversation sessions because the effective config path, `CODEX_HOME`, trust/profile state, or tool exposure differs.
|
|
31
31
|
- Codex terminal output or scrollback becomes unreliable because streamed lines disappear, get overwritten, truncate, duplicate, misalign, snap to the bottom, or only survive in logs/transcripts.
|
|
32
|
+
- Codex subagents become hard to trust because completed or closed agents remain visible, stale spawn edges stay open, child threads crowd the recent list, spawn quota is exhausted, or compaction loses prior subagent IDs.
|
|
32
33
|
- Codex approval flow repeatedly prompts after `Approve for this session`, forgets a safe approval scope, or forces large trusted MCP servers into noisy per-tool approval configs.
|
|
33
34
|
- Codex config drift makes Preferences unable to save, keeps legacy `profile` / `[profiles.*]` config after migration, pins an unavailable model, points `default_permissions` at a missing profile, enables Windows elevated sandbox mode, or references plugin cache entries that are missing on disk.
|
|
34
35
|
- Codex Desktop file tree, folder icon, floating file panel, or built-in file preview disappears, goes stale, or cannot be revealed by `View > Toggle File Tree`.
|
|
@@ -71,6 +72,7 @@ npx trace-to-skill demo deeplink-launch
|
|
|
71
72
|
npx trace-to-skill demo connector-auth-cache
|
|
72
73
|
npx trace-to-skill demo mcp-discovery-mismatch
|
|
73
74
|
npx trace-to-skill demo terminal-output-integrity
|
|
75
|
+
npx trace-to-skill demo subagent-lifecycle
|
|
74
76
|
npx trace-to-skill scorecard .
|
|
75
77
|
npx trace-to-skill lint-agents .
|
|
76
78
|
npx trace-to-skill guard-github-event "$GITHUB_EVENT_PATH"
|
|
@@ -122,7 +124,7 @@ npx trace-to-skill suggest ./runs --target agents-md
|
|
|
122
124
|
|
|
123
125
|
## Related Keywords
|
|
124
126
|
|
|
125
|
-
Codex, OpenAI Codex, Codex issue report, OpenAI triage, Codex diagnostics bundle, privacy-preserving support bundle, Codex plugin audit, Computer Use unavailable, Codex Browser plugin unavailable, bundled marketplace mismatch, generated runtime marketplace, plugin manifest missing, CODEX_HOME mismatch, Codex CLI, Codex sandbox, Windows sandbox, Codex config audit, Codex config.toml, Codex Preferences unable to save, configVersionConflict, default_permissions missing profile, Codex Windows helper path, Codex WindowsApps, Codex rg Access Denied, Codex ripgrep, CodexSandboxUsers, LocalCache Local OpenAI Codex bin, node_repl spawn setup refresh, Codex approval friction, Approve for this session, Allow for this session, approval_policy never, MCP approval prompts, default_tools_approval_mode, Playwright MCP approvals, Chrome DevTools MCP approvals, Codex auth, token_exchange_failed, Codex connectivity, stream disconnected, Codex connector auth cache, Codex Apps stale link, codex_apps_tools, codex_app_directory, Reauthentication required, refresh token revoked, isAccessible false, link_ connector, Codex deeplink, Codex OAuth callback, codex://oauth_callback, Unable to find Electron app, Error launching app, type=click&tag, AppUserModelID, DelegateExecute, codex app path, Codex remote compact, responses/compact, /compact timeout, tcp_user_timeout, stream_idle_timeout_ms, Codex remote control, Codex mobile, Waiting for desktop, Directory Unavailable, stale listener, Codex terminal output, Codex scrollback, Codex terminal history, terminal output integrity, missing_count, missing_examples, tmux_scrollback_repro.sh, line_truncation_repro.md, Windows Terminal scrollback, transcript mode, Codex MCP runtime, MCP unsupported call, mcp__node_repl__js, MCP namespace serverName, MCP Transport closed, StdioServerTransport, Codex plugin runtime, Computer Use native pipe path unavailable, SKY_CUA_NATIVE_PIPE_DIRECTORY, Plugin loading failed, plugin/list unknown variant vertical, Codex Browser plugin, Codex Computer Use, Codex Chrome plugin, stale plugin cache, codex plugin add, Codex file tree, Toggle File Tree, missing folder icon, floating file panel stale, file preview fails, workspace navigation, Codex latest-turn drift, Codex replies to earlier messages, stale prompt response, ignoring latest message, previous prompt, auto compaction forgets edits, raw tool payload leak, write_stdin session_id, Codex latency regression, GPT-5.5 Fast slow, Codex too slow, thinking stalls, Codex thinking hang, Codex stuck thinking, Codex Working stuck, no streamed follow-up, first response_item delayed, responses_http time.idle, model_client.stream_responses_api, turn/start, task_started, Codex Copy as Markdown missing, Codex Pasted text.txt, Codex long pasted prompt attachment, Codex clipboard export, Codex paste as text, Codex generated attachment preview edit, Codex goal ignores attachment, pasted-text-attachments.json, fileAttachments promptRaw composer.getText, pre-first-token latency, search/read latency, runtime scheduling latency, Codex resume, Codex session audit, Codex history audit, Codex session index, session_index.jsonl, Codex session state, rollout JSONL, logs_2.sqlite, codex-tui.log, sandbox.log, thread_goals, state_5.sqlite, goals_1.sqlite, archived chats, Codex token burn, Codex usage evidence, Codex rate-limit evidence, Codex usage drain, Codex usage reset, Codex weekly reset drift, reset_at changed, deterministic reset, rate limit reset, write_stdin polling, cached input tokens, compaction tax, background process polling, Codex resource leak, Codex performance, high CPU, high GPU, shell-snapshot, Code Helper Renderer, Codex tool-call integrity, apply_patch, apply_patch Add File overwrite, patch guard, guard-patch, Add File symlink, tool_call_id,
|
|
127
|
+
Codex, OpenAI Codex, Codex issue report, OpenAI triage, Codex diagnostics bundle, privacy-preserving support bundle, Codex plugin audit, Computer Use unavailable, Codex Browser plugin unavailable, bundled marketplace mismatch, generated runtime marketplace, plugin manifest missing, CODEX_HOME mismatch, Codex CLI, Codex sandbox, Windows sandbox, Codex config audit, Codex config.toml, Codex Preferences unable to save, configVersionConflict, default_permissions missing profile, Codex Windows helper path, Codex WindowsApps, Codex rg Access Denied, Codex ripgrep, CodexSandboxUsers, LocalCache Local OpenAI Codex bin, node_repl spawn setup refresh, Codex approval friction, Approve for this session, Allow for this session, approval_policy never, MCP approval prompts, default_tools_approval_mode, Playwright MCP approvals, Chrome DevTools MCP approvals, Codex auth, token_exchange_failed, Codex connectivity, stream disconnected, Codex connector auth cache, Codex Apps stale link, codex_apps_tools, codex_app_directory, Reauthentication required, refresh token revoked, isAccessible false, link_ connector, Codex deeplink, Codex OAuth callback, codex://oauth_callback, Unable to find Electron app, Error launching app, type=click&tag, AppUserModelID, DelegateExecute, codex app path, Codex remote compact, responses/compact, /compact timeout, tcp_user_timeout, stream_idle_timeout_ms, Codex remote control, Codex mobile, Waiting for desktop, Directory Unavailable, stale listener, Codex terminal output, Codex scrollback, Codex terminal history, terminal output integrity, missing_count, missing_examples, tmux_scrollback_repro.sh, line_truncation_repro.md, Windows Terminal scrollback, transcript mode, Codex subagent lifecycle, stale subagents, close_agent, thread_spawn_edges, agent thread limit reached, agents.max_threads, list_agents, /agents, subagent child threads, fork_context, unbiased review, subagent recent conversations, Codex MCP runtime, MCP unsupported call, mcp__node_repl__js, MCP namespace serverName, MCP Transport closed, StdioServerTransport, Codex plugin runtime, Computer Use native pipe path unavailable, SKY_CUA_NATIVE_PIPE_DIRECTORY, Plugin loading failed, plugin/list unknown variant vertical, Codex Browser plugin, Codex Computer Use, Codex Chrome plugin, stale plugin cache, codex plugin add, Codex file tree, Toggle File Tree, missing folder icon, floating file panel stale, file preview fails, workspace navigation, Codex latest-turn drift, Codex replies to earlier messages, stale prompt response, ignoring latest message, previous prompt, auto compaction forgets edits, raw tool payload leak, write_stdin session_id, Codex latency regression, GPT-5.5 Fast slow, Codex too slow, thinking stalls, Codex thinking hang, Codex stuck thinking, Codex Working stuck, no streamed follow-up, first response_item delayed, responses_http time.idle, model_client.stream_responses_api, turn/start, task_started, Codex Copy as Markdown missing, Codex Pasted text.txt, Codex long pasted prompt attachment, Codex clipboard export, Codex paste as text, Codex generated attachment preview edit, Codex goal ignores attachment, pasted-text-attachments.json, fileAttachments promptRaw composer.getText, pre-first-token latency, search/read latency, runtime scheduling latency, Codex resume, Codex session audit, Codex history audit, Codex session index, session_index.jsonl, Codex session state, rollout JSONL, logs_2.sqlite, codex-tui.log, sandbox.log, thread_goals, state_5.sqlite, goals_1.sqlite, archived chats, Codex token burn, Codex usage evidence, Codex rate-limit evidence, Codex usage drain, Codex usage reset, Codex weekly reset drift, reset_at changed, deterministic reset, rate limit reset, write_stdin polling, cached input tokens, compaction tax, background process polling, Codex resource leak, Codex performance, high CPU, high GPU, shell-snapshot, Code Helper Renderer, Codex tool-call integrity, apply_patch, apply_patch Add File overwrite, patch guard, guard-patch, Add File symlink, tool_call_id, failed revert changes, patch safety, Codex quota, usage limit, rate limits, sensitive files, Codex privacy, .env, private keys, credential files, AGENTS.md, SKILL.md, Claude Code, Cursor, Copilot coding agent, Gemini CLI, MCP, Model Context Protocol, prompt injection, agent evals, AI code review, open-source maintainers, trace redaction, SARIF, GitHub Actions.
|
|
126
128
|
|
|
127
129
|
## Non-Goals
|
|
128
130
|
|
package/docs/FAILURE_TAXONOMY.md
CHANGED
|
@@ -104,6 +104,14 @@ Common signals include Windows Terminal scrollback losing older output, PowerShe
|
|
|
104
104
|
|
|
105
105
|
The fix is to capture Codex CLI/app/extension version, OS, shell, terminal emulator and version, WSL/SSH/tmux/Zellij state, model, whether streaming was active, exact scroll action, viewport snap behavior, first missing or duplicated line id, raw log/transcript/transaction evidence showing the line still exists, terminal capture such as `tmux capture-pane` or a screenshot/video, numbered-line harness output, control run without Codex-specific rendering, terminal dimensions and scrollback settings, `/resume` or transcript recovery behavior, and whether downgrade or another terminal changes the result.
|
|
106
106
|
|
|
107
|
+
## Codex Subagent Lifecycle
|
|
108
|
+
|
|
109
|
+
Codex subagents can diverge across the Desktop UI, live close/readback routes, persisted SQLite spawn edges, recent-conversation listing, and active spawn quota. The result is a session where users cannot tell whether a helper is active, closed, stale, consuming a slot, or merely rendered from old cache.
|
|
110
|
+
|
|
111
|
+
Common signals include completed or closed subagent cards staying visible, `Show 67 more` or 100+ stale subagent entries, `close_agent` returning `shutdown`, `completed`, `not_found`, or `pending_init` while the panel still lists the agent, `thread_spawn_edges` rows stuck `open`, `state_5.sqlite` showing stale child threads, `collab spawn failed: agent thread limit reached`, child subagent threads appearing as top-level recent conversations, compaction losing prior subagent IDs, and the parent forking the main session when it should resume an unbiased reviewer.
|
|
112
|
+
|
|
113
|
+
The fix is to capture Codex app/CLI/extension version, OS, surface, model, subscription/workspace, root thread id, subagent ids/nicknames/roles, spawn/close/list commands or UI actions, `close_agent` results, `list_agents` or `/agents` output, `thread_spawn_edges` status counts, registry or `agents.max_threads` evidence, recent-list/sidebar behavior, whether child threads are archived or shown top-level, last-progress or halt reason, MCP server state for subagents, compaction/resume timing, redacted screenshot or UI state, whether restart/reload/new thread clears it, and whether stale agents are UI-only or still block new spawns.
|
|
114
|
+
|
|
107
115
|
## Codex MCP Runtime
|
|
108
116
|
|
|
109
117
|
Codex MCP tools can be configured and discoverable but still fail at runtime. Common causes include non-interactive approval paths cancelling the call, elicitation not being supported in exec mode, deferred discovery replaying a call without namespace or `serverName`, routed callable names such as `mcp__node_repl__js` becoming unsupported, or stdio transports closing before a second tool call.
|
package/docs/OPENAI_OSS_BRIEF.md
CHANGED
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
| Field | Value |
|
|
4
4
|
| --- | --- |
|
|
5
5
|
| Repository | https://github.com/grnbtqdbyx-create/trace-to-skill |
|
|
6
|
-
| Package | trace-to-skill@0.1.
|
|
6
|
+
| Package | trace-to-skill@0.1.66 |
|
|
7
7
|
| License | Apache-2.0 |
|
|
8
8
|
| Codex readiness | ready (100/100) |
|
|
9
|
-
| Benchmark | pass,
|
|
9
|
+
| Benchmark | pass, 33 cases |
|
|
10
10
|
|
|
11
11
|
## Why This Repository Qualifies
|
|
12
12
|
|
|
13
|
-
trace-to-skill helps open-source maintainers adopt Codex safely by turning failed coding-agent runs into evidence-backed rules, reusable workflows, and CI gates. It supports real maintenance work: PR review, issue triage, release quality, MCP risk, prompt-injection defense, privacy-preserving trace sharing, and repeat failure reduction. The repository is ready, scores 100/100 on the local Codex readiness doctor, and ships a deterministic benchmark with
|
|
13
|
+
trace-to-skill helps open-source maintainers adopt Codex safely by turning failed coding-agent runs into evidence-backed rules, reusable workflows, and CI gates. It supports real maintenance work: PR review, issue triage, release quality, MCP risk, prompt-injection defense, privacy-preserving trace sharing, and repeat failure reduction. The repository is ready, scores 100/100 on the local Codex readiness doctor, and ships a deterministic benchmark with 33 public fixture cases.
|
|
14
14
|
|
|
15
15
|
### 500-Character Version
|
|
16
16
|
|
|
17
|
-
> trace-to-skill helps open-source maintainers adopt Codex safely by turning failed coding-agent runs into evidence-backed rules, reusable workflows, and CI gates. It supports real maintenance work: PR review, issue triage, release quality, MCP risk, prompt-injection defense, privacy-preserving trace sharing, and repeat failure reduction. The repository is ready, scores 100/100 on the local Codex readiness doctor, and ships a deterministic benchmark with
|
|
17
|
+
> trace-to-skill helps open-source maintainers adopt Codex safely by turning failed coding-agent runs into evidence-backed rules, reusable workflows, and CI gates. It supports real maintenance work: PR review, issue triage, release quality, MCP risk, prompt-injection defense, privacy-preserving trace sharing, and repeat failure reduction. The repository is ready, scores 100/100 on the local Codex readiness doctor, and ships a deterministic benchmark with 33 public fixture cases.
|
|
18
18
|
|
|
19
19
|
## How API Credits Would Be Used
|
|
20
20
|
|
|
@@ -27,10 +27,10 @@ API credits would power optional maintainer workflows on top of the local determ
|
|
|
27
27
|
## Evidence
|
|
28
28
|
|
|
29
29
|
- Public repository: https://github.com/grnbtqdbyx-create/trace-to-skill
|
|
30
|
-
- One-command package: npx trace-to-skill@0.1.
|
|
30
|
+
- One-command package: npx trace-to-skill@0.1.66
|
|
31
31
|
- Open-source license: Apache-2.0
|
|
32
32
|
- Codex readiness doctor: ready, 100/100, 0 failed checks.
|
|
33
|
-
- Public fixture benchmark: pass,
|
|
33
|
+
- Public fixture benchmark: pass, 33 cases.
|
|
34
34
|
- Maintainer control: generated rules are suggestions, evidence is line-linked, and secrets can be redacted before sharing.
|
|
35
35
|
|
|
36
36
|
## Next Steps Before Submitting
|
package/docs/SCORECARD.md
CHANGED
|
@@ -9,7 +9,7 @@ Status: **pass**
|
|
|
9
9
|
| Failed doctor checks | 0 |
|
|
10
10
|
| Critical findings | 0 |
|
|
11
11
|
| Built-in benchmark | pass |
|
|
12
|
-
| Benchmark cases |
|
|
12
|
+
| Benchmark cases | 33 |
|
|
13
13
|
|
|
14
14
|
## Doctor Summary
|
|
15
15
|
|
|
@@ -40,6 +40,7 @@ This benchmark runs the public fixture pack that ships with the repository and p
|
|
|
40
40
|
| Codex auth and connectivity failure | `fixtures/codex-connectivity.md` | 75 | 2 | 0 | `codex_connectivity`, `weak_evidence` | pass |
|
|
41
41
|
| Codex remote-control route health failure | `fixtures/codex-remote-control.md` | 75 | 2 | 0 | `codex_remote_control`, `weak_evidence` | pass |
|
|
42
42
|
| Codex terminal output and scrollback integrity failure | `fixtures/codex-terminal-output-integrity.md` | 75 | 2 | 0 | `codex_terminal_output_integrity`, `weak_evidence` | pass |
|
|
43
|
+
| Codex subagent lifecycle and state reconciliation failure | `fixtures/codex-subagent-lifecycle.md` | 75 | 2 | 0 | `codex_subagent_lifecycle`, `weak_evidence` | pass |
|
|
43
44
|
| Codex quota mismatch | `fixtures/quota-mismatch.md` | 59 | 3 | 0 | `codex_usage_reset_drift`, `quota_mismatch`, `weak_evidence` | pass |
|
|
44
45
|
| MCP config with secret exposure | `fixtures/mcp-risk.json` | 59 | 2 | 1 | `mcp_risk`, `secret_exposure` | pass |
|
|
45
46
|
| Sensitive file access in agent context | `fixtures/sensitive-file-access.md` | 75 | 2 | 0 | `sensitive_file_access`, `weak_evidence` | pass |
|
|
@@ -50,7 +51,7 @@ This benchmark runs the public fixture pack that ships with the repository and p
|
|
|
50
51
|
| Codex session resume and state failure | `fixtures/codex-session-state.md` | 59 | 3 | 0 | `codex_resource_leak`, `codex_session_state`, `weak_evidence` | pass |
|
|
51
52
|
| Codex token burn and usage-drain loop | `fixtures/codex-token-burn.md` | 59 | 3 | 0 | `codex_resource_leak`, `codex_token_burn`, `weak_evidence` | pass |
|
|
52
53
|
| Codex resource leak and runaway process | `fixtures/codex-resource-leak.md` | 75 | 2 | 0 | `codex_resource_leak`, `weak_evidence` | pass |
|
|
53
|
-
| Codex tool-call integrity and rollback failure | `fixtures/codex-tool-call-integrity.md` |
|
|
54
|
+
| Codex tool-call integrity and rollback failure | `fixtures/codex-tool-call-integrity.md` | 43 | 4 | 0 | `codex_resource_leak`, `codex_subagent_lifecycle`, `codex_tool_call_integrity`, `weak_evidence` | pass |
|
|
54
55
|
| Codex apply_patch Add File overwrite safety | `fixtures/codex-apply-patch-overwrite.md` | 75 | 2 | 0 | `codex_tool_call_integrity`, `weak_evidence` | pass |
|
|
55
56
|
| Codex usage reset schedule drift | `fixtures/codex-usage-reset-drift.md` | 75 | 2 | 0 | `codex_usage_reset_drift`, `weak_evidence` | pass |
|
|
56
57
|
| Untrusted PR comment prompt injection | `fixtures/prompt-injection.md` | 50 | 3 | 1 | `premature_completion`, `prompt_injection`, `weak_evidence` | pass |
|
package/docs/USE_CASES.md
CHANGED
|
@@ -19,13 +19,14 @@ npx trace-to-skill demo deeplink-launch
|
|
|
19
19
|
npx trace-to-skill demo connector-auth-cache
|
|
20
20
|
npx trace-to-skill demo mcp-discovery-mismatch
|
|
21
21
|
npx trace-to-skill demo terminal-output-integrity
|
|
22
|
+
npx trace-to-skill demo subagent-lifecycle
|
|
22
23
|
```
|
|
23
24
|
|
|
24
25
|
What it proves:
|
|
25
26
|
|
|
26
27
|
- packaged fixtures can produce a real Codex issue report immediately
|
|
27
28
|
- maintainers can inspect the output shape before sharing any private log
|
|
28
|
-
- demos cover remote compact failures, Windows helper path failures, patch overwrite safety, approval friction, latency, Thinking hangs, clipboard/attachment regressions, deeplink/OAuth launch regressions, connector auth-cache regressions, MCP discovery/config-scope mismatches, terminal output/scrollback integrity, token burn, sensitive files, and prompt injection
|
|
29
|
+
- demos cover remote compact failures, Windows helper path failures, patch overwrite safety, approval friction, latency, Thinking hangs, clipboard/attachment regressions, deeplink/OAuth launch regressions, connector auth-cache regressions, MCP discovery/config-scope mismatches, terminal output/scrollback integrity, subagent lifecycle drift, token burn, sensitive files, and prompt injection
|
|
29
30
|
|
|
30
31
|
See the generated demo output in [docs/DEMO.md](DEMO.md).
|
|
31
32
|
|
|
@@ -48,7 +49,7 @@ What it proves:
|
|
|
48
49
|
Recommended CI surface:
|
|
49
50
|
|
|
50
51
|
```yaml
|
|
51
|
-
- uses: grnbtqdbyx-create/trace-to-skill@v0.1.
|
|
52
|
+
- uses: grnbtqdbyx-create/trace-to-skill@v0.1.66
|
|
52
53
|
with:
|
|
53
54
|
mode: all
|
|
54
55
|
doctor-threshold: "85"
|
|
@@ -162,7 +163,21 @@ This catches signals such as Windows Terminal scrollback lines disappearing, str
|
|
|
162
163
|
|
|
163
164
|
Include the Codex CLI/app/extension version, OS, shell, terminal emulator and version, WSL/SSH/tmux/Zellij state, model, whether streaming was active, exact scroll action, terminal dimensions and scrollback settings, first missing or duplicated line id, raw log/transcript proof, terminal capture, numbered-line harness output, control run, `/resume` or transcript recovery behavior, and whether another terminal or downgrade changes the result.
|
|
164
165
|
|
|
165
|
-
## 11. Codex
|
|
166
|
+
## 11. Codex Subagent Lifecycle And State Reconciliation
|
|
167
|
+
|
|
168
|
+
Use this when subagents appear completed, closed, stale, or interrupted but Codex cannot reconcile UI state, live handles, persisted spawn edges, parent discoverability, and active spawn quota.
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
npx trace-to-skill demo subagent-lifecycle
|
|
172
|
+
npx trace-to-skill analyze ./runs --format json
|
|
173
|
+
npx trace-to-skill codex-report ./runs --output openai-codex-subagents.md
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
This catches signals such as completed subagents remaining visible in the Subagents panel, `close_agent` returning `not_found` or hanging, `thread_spawn_edges` rows staying open, `agent thread limit reached`, child subagent threads showing as top-level recent conversations, and compaction losing the prior subagent id so the parent forks the main session instead of resuming an unbiased reviewer.
|
|
177
|
+
|
|
178
|
+
Include Codex app/CLI/extension version, OS, surface, model, subscription/workspace, root thread id, subagent ids/nicknames/roles, spawn/close/list commands, `close_agent` results, `list_agents` or `/agents` output, `thread_spawn_edges` status counts, `agents.max_threads` or registry quota evidence, recent-list/sidebar behavior, child-thread archive/top-level status, last-progress or halt reason, MCP server state, compaction/resume timing, redacted UI evidence, restart/reload behavior, and whether stale agents are UI-only or still block spawns.
|
|
179
|
+
|
|
180
|
+
## 12. Codex MCP Runtime Triage
|
|
166
181
|
|
|
167
182
|
Use this when MCP tools are configured and visible, but Codex cannot actually call them at runtime.
|
|
168
183
|
|
|
@@ -173,7 +188,7 @@ npx trace-to-skill config-audit ~/.codex --format json
|
|
|
173
188
|
|
|
174
189
|
This catches signals such as `user cancelled MCP tool call`, `request_user_input is not supported in exec mode`, `Approve app tool call?`, `tool_call_mcp_elicitation`, routed callable names like `mcp__node_repl__js` becoming `unsupported call`, deferred discovery dropping namespace or `serverName`, `tools/list` succeeding while Codex routing fails, and stdio transport lifecycle failures such as `Transport closed`, `stdin_end`, `stdin_close`, `transport_close`, or stderr backpressure.
|
|
175
190
|
|
|
176
|
-
##
|
|
191
|
+
## 13. Codex Resume And Session State Triage
|
|
177
192
|
|
|
178
193
|
Use this when long Codex sessions become difficult to resume, Desktop history rendering gets sluggish, or local state migrations break goals/projects/history.
|
|
179
194
|
|
|
@@ -190,7 +205,7 @@ This catches signals such as `codex resume` picker hangs, `codex resume <id>` wo
|
|
|
190
205
|
|
|
191
206
|
For mixed resume, crash, config, plugin, or history issues, `diagnostics-bundle` writes the session, config, and plugin reports together with a checklist of files not to attach publicly.
|
|
192
207
|
|
|
193
|
-
##
|
|
208
|
+
## 14. Codex File Tree UI Evidence
|
|
194
209
|
|
|
195
210
|
Use this when Codex Desktop cannot reveal project files through the native file tree, folder icon, floating file panel, or built-in preview.
|
|
196
211
|
|
|
@@ -201,7 +216,7 @@ npx trace-to-skill codex-report ./runs --output openai-codex-issue.md
|
|
|
201
216
|
|
|
202
217
|
This catches signals such as `View > Toggle File Tree` doing nothing, `Cmd+Shift+E` or `Ctrl+Shift+E` having no visible effect, the folder icon disappearing, the floating file panel showing stale or unclickable entries after add/rename/delete operations, and `.doc`, `.pdf`, or `.ppt` previews failing until restart.
|
|
203
218
|
|
|
204
|
-
##
|
|
219
|
+
## 15. Codex Token Burn Attribution
|
|
205
220
|
|
|
206
221
|
Use this when Codex usage drains faster than expected and the trace needs to separate useful model work from orchestration overhead.
|
|
207
222
|
|
|
@@ -212,7 +227,7 @@ npx trace-to-skill codex-report ./runs --output openai-codex-issue.md
|
|
|
212
227
|
|
|
213
228
|
This catches signals such as tokens `burning very fast`, usage dropping by visible percentages after one or two prompts, weekly allowance depletion, 5-hour usage reaching 0%, large `input` plus `cached input` totals, `write_stdin` empty polling, background commands repeatedly reporting no new output, idle app usage, compaction tax, retry/tool loops, and missing attribution between normal turns, compaction, background polling, subagents, and retries.
|
|
214
229
|
|
|
215
|
-
##
|
|
230
|
+
## 16. Usage Reset Drift Evidence
|
|
216
231
|
|
|
217
232
|
Use this when Codex reset timing changes unexpectedly or users lose the ability to plan paid usage.
|
|
218
233
|
|
|
@@ -223,7 +238,7 @@ npx trace-to-skill codex-report ./runs --output openai-codex-issue.md
|
|
|
223
238
|
|
|
224
239
|
This catches signals such as weekly reset dates moving from one date to another, `reset_at` jumping after the first prompt, saved weekly usage being wiped or pushed into the next window, outage compensation resets changing the anchor, `/status` and dashboard disagreement, and requests for deterministic reset schedules or rollover of unused prior-window usage.
|
|
225
240
|
|
|
226
|
-
##
|
|
241
|
+
## 17. Quota And Usage-Limit Evidence
|
|
227
242
|
|
|
228
243
|
Use this when Codex blocks a prompt with a usage-limit message but another surface still shows remaining quota.
|
|
229
244
|
|
|
@@ -233,7 +248,7 @@ npx trace-to-skill analyze ./runs --format json
|
|
|
233
248
|
|
|
234
249
|
This catches traces where `/status` or the usage page shows remaining 5h or weekly quota, accounts appear to share limits unexpectedly, a Team account inherits a Plus account's limit state, or quota reset times jump after logout/login.
|
|
235
250
|
|
|
236
|
-
##
|
|
251
|
+
## 18. Codex Resource Leak Evidence
|
|
237
252
|
|
|
238
253
|
Use this when Codex Desktop, the VS Code extension, renderer, app-server, GPU process, shell snapshot, or helper process keeps burning local resources after the useful work should be idle.
|
|
239
254
|
|
|
@@ -246,7 +261,7 @@ This catches signals such as high `Code Helper (Renderer)` or `Code Helper (Plug
|
|
|
246
261
|
|
|
247
262
|
Include process names/PIDs, CPU/GPU/RSS samples over time, log-loop snippets, workspace Git-root state, animation/reduce-motion state, and whether closing the panel/app, killing exact PIDs, `git init`, rollback, or restart clears the leak.
|
|
248
263
|
|
|
249
|
-
##
|
|
264
|
+
## 19. Codex Thinking Hang Evidence
|
|
250
265
|
|
|
251
266
|
Use this when Codex accepts a prompt, finishes a local tool call, or keeps a Responses stream open but the UI/CLI remains on Thinking or Working with no visible assistant follow-up.
|
|
252
267
|
|
|
@@ -260,7 +275,7 @@ This catches signals such as `turn/start`, `task_started`, a completed local too
|
|
|
260
275
|
|
|
261
276
|
Include the Codex version, OS, model and reasoning/speed settings, turn or thread id, prompt timestamp, last successful tool output, first `response_item` timestamp, `responses_http` or websocket transport evidence, `time.busy` / `time.idle`, MCP/subagent state, stop/interrupt behavior, and whether a new thread or minimal config recovers.
|
|
262
277
|
|
|
263
|
-
##
|
|
278
|
+
## 20. Codex Clipboard And Pasted-Text Attachment Evidence
|
|
264
279
|
|
|
265
280
|
Use this when copy/export, long pasted prompts, or generated `Pasted text.txt` attachments break Codex prompt, `/goal`, or support-report workflows.
|
|
266
281
|
|
|
@@ -274,7 +289,7 @@ This catches signals such as `Copy as Markdown` disappearing from the Copy menu,
|
|
|
274
289
|
|
|
275
290
|
Include app version, OS, surface, exact copy menu items, source text size, paste action, visible editor text, generated attachment name/path/size, `pasted-text-attachments.json` or fileAttachments metadata, command path such as `/goal`, preview/edit/revert actions tried, clipboard payload format, and whether paste-as-text, opt-out, explicit file reference, or downgrade changes behavior.
|
|
276
291
|
|
|
277
|
-
##
|
|
292
|
+
## 21. Codex Deeplink And External Launch Evidence
|
|
278
293
|
|
|
279
294
|
Use this when OAuth callbacks, notification clicks, browser extension activation, mobile pairing, or CLI app-open commands fail to route back into Codex.
|
|
280
295
|
|
|
@@ -288,7 +303,7 @@ This catches signals such as `codex://oauth_callback?code=...` opening an Electr
|
|
|
288
303
|
|
|
289
304
|
Include app/CLI/extension version, OS/build, install source, package id/path, affected surface, exact redacted URI shape, browser and connector/plugin name, error dialog text, whether the app was already running, AppX/MSIX evidence such as AppUserModelID and DelegateExecute, HKCU/HKCR `codex` keys, command-line arguments, repair/reinstall/re-register attempts, and whether manual `codex://test` or `Start-Process` reproduces.
|
|
290
305
|
|
|
291
|
-
##
|
|
306
|
+
## 22. Codex App Connector Auth Cache Evidence
|
|
292
307
|
|
|
293
308
|
Use this when Codex app connectors appear installed but keep stale auth or discovery metadata after a reauth-required response.
|
|
294
309
|
|
|
@@ -302,7 +317,7 @@ This catches signals such as `401: "Server returned 401: 'Reauthentication requi
|
|
|
302
317
|
|
|
303
318
|
Include app/CLI version, OS, connector/plugin name and id, installed plugin root, exact tool name, redacted `codex_apps_tools` and `codex_app_directory` metadata, `link_*` id before/after reconnect, `isAccessible` state, restart/remove/re-add/cache-clear/sign-in attempts, ChatGPT app page state, and whether an external MCP workaround succeeds.
|
|
304
319
|
|
|
305
|
-
##
|
|
320
|
+
## 23. Codex MCP Discovery And Config Scope Evidence
|
|
306
321
|
|
|
307
322
|
Use this when MCP servers work in Codex CLI or one config scope but are missing in VS Code, Desktop, WSL, remote sessions, project-local config, or an older conversation.
|
|
308
323
|
|
|
@@ -316,7 +331,7 @@ This catches signals such as `MCP servers not detected in Codex VS Code extensio
|
|
|
316
331
|
|
|
317
332
|
Include app/CLI/extension version, OS, IDE, remote/WSL/SSH state, workspace root, effective `CODEX_HOME`, all config files considered (`~/.codex/config.toml`, project `.codex/config.toml`, `.vscode/mcp.json`, `.mcp.json`), redacted MCP sections, trust/profile/default-permissions state, `codex mcp list`, `codex mcp get <server>`, CLI-versus-Desktop/VS Code comparison, loaded config path/log lines, whether moving the same server to user-global config fixes it, and whether the current session exposes `mcp__*` tools.
|
|
318
333
|
|
|
319
|
-
##
|
|
334
|
+
## 24. Patch Overwrite Guard
|
|
320
335
|
|
|
321
336
|
Use this before applying a generated patch when you want create/update/delete semantics checked against the actual workspace.
|
|
322
337
|
|
|
@@ -333,7 +348,7 @@ For a public demo report:
|
|
|
333
348
|
npx trace-to-skill demo patch-overwrite
|
|
334
349
|
```
|
|
335
350
|
|
|
336
|
-
##
|
|
351
|
+
## 25. OpenAI Codex Issue Report
|
|
337
352
|
|
|
338
353
|
Use this when you want to file or update an OpenAI/Codex issue with a concise, evidence-backed report instead of pasting a full transcript.
|
|
339
354
|
|
|
@@ -346,7 +361,7 @@ The report includes the likely Codex failure class, line-linked evidence, diagno
|
|
|
346
361
|
|
|
347
362
|
For a cluster-to-command map of current Codex issue patterns, see [CODEX_ISSUE_MAP.md](CODEX_ISSUE_MAP.md).
|
|
348
363
|
|
|
349
|
-
##
|
|
364
|
+
## 26. Sensitive File Access Evidence
|
|
350
365
|
|
|
351
366
|
Use this when a trace suggests an agent read, attached, uploaded, diffed, or indexed credential-bearing files.
|
|
352
367
|
|
|
@@ -359,7 +374,7 @@ This catches signals such as `.env`, `.env.production`, `.npmrc`, `.pypirc`, `.n
|
|
|
359
374
|
|
|
360
375
|
Before publishing evidence, run `trace-to-skill redact` and attach only redacted excerpts plus the file path/class.
|
|
361
376
|
|
|
362
|
-
##
|
|
377
|
+
## 27. GitHub Context Guard
|
|
363
378
|
|
|
364
379
|
Use this before an agent reads untrusted GitHub text.
|
|
365
380
|
|
|
@@ -376,7 +391,7 @@ Use it when:
|
|
|
376
391
|
- a bot asks Codex to triage untrusted user reports
|
|
377
392
|
- logs or comments might contain instructions like "ignore previous instructions" or "print secrets"
|
|
378
393
|
|
|
379
|
-
##
|
|
394
|
+
## 28. Failed Agent Run To Reviewable Rule
|
|
380
395
|
|
|
381
396
|
Use this when a coding agent made a repeated workflow mistake.
|
|
382
397
|
|
|
@@ -394,7 +409,7 @@ Recommended maintainer loop:
|
|
|
394
409
|
4. Copy only evidence-backed rules into the real policy file.
|
|
395
410
|
5. Run `eval` or `scorecard` in CI so the same failure does not silently return.
|
|
396
411
|
|
|
397
|
-
##
|
|
412
|
+
## 29. Privacy-Preserving Adoption
|
|
398
413
|
|
|
399
414
|
Use this when you want public evidence without leaking private traces.
|
|
400
415
|
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# Codex subagent lifecycle fixture
|
|
2
|
+
|
|
3
|
+
This fixture uses public, token-free examples of Codex subagent lifecycle state diverging between the UI, live close/readback routes, persisted SQLite spawn edges, recent conversations, and quota accounting.
|
|
4
|
+
|
|
5
|
+
## Stale subagents in Desktop UI
|
|
6
|
+
|
|
7
|
+
Environment:
|
|
8
|
+
|
|
9
|
+
- Codex Desktop 26.527.31326 and related app builds
|
|
10
|
+
- Long-running macOS or Linux sessions with many helper subagents
|
|
11
|
+
- Subagent roles such as researcher, planner, reviewer, coder, and verifier
|
|
12
|
+
|
|
13
|
+
Observed behavior:
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
Completed or closed subagents remain visible in the Subagents panel.
|
|
17
|
+
The app shows stale subagent cards after close/readback reports no live agent handle.
|
|
18
|
+
The visible subagent count grows very large; the panel can show Show 67 more or 100+ stale entries.
|
|
19
|
+
Some close attempts return shutdown, completed, not_found, or pending_init, but the UI still lists the agent.
|
|
20
|
+
It is unclear which subagents are active versus stale UI/cache entries.
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Local state evidence:
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
SQLite integrity check: ok
|
|
27
|
+
thread_spawn_edges status count: closed=549, open=0
|
|
28
|
+
After restarting Codex Desktop multiple times, the Subagents panel still visually shows stale subagent cards.
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Stale workers poison goal mode
|
|
32
|
+
|
|
33
|
+
Runtime report:
|
|
34
|
+
|
|
35
|
+
```text
|
|
36
|
+
Codex subagents have been going stale and refusing to close for the past week.
|
|
37
|
+
One stale agent can halt the entire /goal mode.
|
|
38
|
+
Attempting to close it again can make the whole session stuck again.
|
|
39
|
+
Typically, if 1 agent goes stale and is unable to get closed, more will follow over upcoming hours.
|
|
40
|
+
The issue is reset by quitting and starting Codex again, where the 5 agents quota is back.
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Related MCP state:
|
|
44
|
+
|
|
45
|
+
```text
|
|
46
|
+
MCP startup interrupted. The following servers were not initialized: codex_apps
|
|
47
|
+
Long sessions with stale subagents may hold MCP connections or leave connection lifecycle state unclear.
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Completed agents still consume spawn quota
|
|
51
|
+
|
|
52
|
+
Reproduction pattern:
|
|
53
|
+
|
|
54
|
+
```text
|
|
55
|
+
Set a low agents.max_threads value.
|
|
56
|
+
Spawn a subagent and drive it to TurnComplete.
|
|
57
|
+
Attempt to spawn another agent.
|
|
58
|
+
The next spawn fails with collab spawn failed: agent thread limit reached.
|
|
59
|
+
Completed subagents continue to count against the per-session agent thread limit until explicitly closed.
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Expected:
|
|
63
|
+
|
|
64
|
+
```text
|
|
65
|
+
Completed subagents should remain addressable for history/listing, but they should not consume active spawn quota unless restarted and reacquiring a slot.
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## close_agent and durable state can diverge
|
|
69
|
+
|
|
70
|
+
Failure shape:
|
|
71
|
+
|
|
72
|
+
```text
|
|
73
|
+
multi_agent_v1.close_agent can remain unresolved after marking a subagent closed.
|
|
74
|
+
The persistent thread_spawn_edges row already shows status=closed.
|
|
75
|
+
The child rollout ends with turn_aborted reason="interrupted".
|
|
76
|
+
The in-memory registry slot remains counted, so later spawn_agent calls fail with agent thread limit reached.
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Relevant code path names from the report:
|
|
80
|
+
|
|
81
|
+
```text
|
|
82
|
+
codex-rs/core/src/tools/handlers/multi_agents/close_agent.rs
|
|
83
|
+
codex-rs/core/src/agent/control.rs
|
|
84
|
+
thread.wait_until_terminated().await
|
|
85
|
+
AgentRegistry.release_spawned_thread
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Child threads appear as top-level recent conversations
|
|
89
|
+
|
|
90
|
+
Local state summary:
|
|
91
|
+
|
|
92
|
+
```text
|
|
93
|
+
Total threads: 553
|
|
94
|
+
Unarchived threads: 114
|
|
95
|
+
Subagent child threads linked by thread_spawn_edges: 61
|
|
96
|
+
Unarchived subagent child threads: 51
|
|
97
|
+
Unarchived non-child threads: 63
|
|
98
|
+
thread_spawn_edges.status: 56 closed, 5 open
|
|
99
|
+
jobs, agent_jobs, and agent_job_items were empty
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Observed behavior:
|
|
103
|
+
|
|
104
|
+
```text
|
|
105
|
+
Subagent child threads are returned by ordinary recent conversation listing.
|
|
106
|
+
Child threads consume global recent-list slots and make older parent/user conversations look missing from the sidebar.
|
|
107
|
+
Some spawn edges remain open even when there is no obvious active agent job or worker process.
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Compaction loses subagent discoverability
|
|
111
|
+
|
|
112
|
+
User flow:
|
|
113
|
+
|
|
114
|
+
```text
|
|
115
|
+
A subagent completed an unbiased review.
|
|
116
|
+
The main thread compacted automatically.
|
|
117
|
+
The user asked the main agent to get back with that subagent for another review round.
|
|
118
|
+
The main agent created a new subagent instead and forked the main session with full conversation history.
|
|
119
|
+
It later explained: the original subagent id was not available in the compacted context.
|
|
120
|
+
It also said it cannot retrieve a list of prior spawned sessions and can only act on an agent id it already knows.
|
|
121
|
+
With the subagent id copied from /agents by the user, it can resume the subagent correctly.
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Why this matters:
|
|
125
|
+
|
|
126
|
+
```text
|
|
127
|
+
Forking the main session defeats an unbiased review request because the reviewer inherits the parent agent's assumptions and the user's prior conversation.
|
|
128
|
+
Prior resumable subagents should be discoverable to the model or clearly unavailable with a structured reason.
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## Evidence a good report should include
|
|
132
|
+
|
|
133
|
+
The report should include Codex app/CLI/extension version, OS, surface, model, subscription/workspace, root thread id, subagent ids/nicknames/roles, spawn/close/list commands or UI actions, `close_agent` results, `list_agents` or `/agents` output, `thread_spawn_edges` status counts, agent registry or `agents.max_threads` evidence, recent-list/sidebar behavior, whether child threads are archived or shown as top-level conversations, last-progress/heartbeat or halt reason, MCP server state for helper agents, resume timing, screenshot or redacted UI state, whether restart/reload/new thread clears it, and whether stale agents are UI-only or still block new spawns.
|
package/llms.txt
CHANGED
|
@@ -25,6 +25,7 @@ Runtime: Node.js 20+
|
|
|
25
25
|
- Codex MCP runtime failures such as cancelled non-interactive approvals, `request_user_input is not supported in exec mode`, dropped namespace or `serverName` metadata, `unsupported call: mcp__...__...`, and closed `StdioServerTransport` sessions
|
|
26
26
|
- Codex MCP discovery and config-scope mismatches where CLI `/mcp` works but VS Code, Desktop, WSL, project `.codex/config.toml`, `CODEX_HOME`, or an older conversation exposes no `mcp__*` tools
|
|
27
27
|
- Codex terminal output and scrollback integrity failures where streamed lines disappear, get overwritten, truncate, duplicate, misalign, snap to the bottom, or only survive in raw logs/transcripts
|
|
28
|
+
- Codex subagent lifecycle failures where completed or closed agents remain visible, `thread_spawn_edges` drift, child threads crowd the recent list, `agent thread limit reached` blocks spawns, or compaction loses prior subagent IDs
|
|
28
29
|
- Codex resume and session-state failures such as frozen resume pickers, large rollout JSONL histories, short `session_index.jsonl`, sluggish Desktop thread rendering, dropped recent context after resume, archived chat loading failures, and `state_5.sqlite` / `goals_1.sqlite` migration drift
|
|
29
30
|
- Codex file tree and workspace navigation UI failures such as `View > Toggle File Tree` doing nothing, missing folder icons, stale floating file panels, and built-in preview failures
|
|
30
31
|
- Codex Thinking or Working hangs after accepted turns, successful local tools, or open Responses streams with no streamed assistant follow-up
|
|
@@ -76,6 +77,7 @@ npx trace-to-skill demo deeplink-launch
|
|
|
76
77
|
npx trace-to-skill demo connector-auth-cache
|
|
77
78
|
npx trace-to-skill demo mcp-discovery-mismatch
|
|
78
79
|
npx trace-to-skill demo terminal-output-integrity
|
|
80
|
+
npx trace-to-skill demo subagent-lifecycle
|
|
79
81
|
npx trace-to-skill lint-agents .
|
|
80
82
|
npx trace-to-skill guard-github-event "$GITHUB_EVENT_PATH"
|
|
81
83
|
npx trace-to-skill guard-patch ./change.patch --root .
|
|
@@ -97,7 +99,7 @@ npx trace-to-skill init --comment --sarif
|
|
|
97
99
|
## GitHub Action
|
|
98
100
|
|
|
99
101
|
```yaml
|
|
100
|
-
- uses: grnbtqdbyx-create/trace-to-skill@v0.1.
|
|
102
|
+
- uses: grnbtqdbyx-create/trace-to-skill@v0.1.66
|
|
101
103
|
with:
|
|
102
104
|
mode: all
|
|
103
105
|
doctor-threshold: "85"
|
|
@@ -126,6 +128,7 @@ npx trace-to-skill init --comment --sarif
|
|
|
126
128
|
- Codex readiness checker for open-source repositories
|
|
127
129
|
- Codex issue report demo without private traces
|
|
128
130
|
- Codex terminal scrollback output integrity report
|
|
131
|
+
- Codex subagent lifecycle state reconciliation report
|
|
129
132
|
- AGENTS.md linter for Codex and Claude Code
|
|
130
133
|
- turn failed agent runs into AGENTS.md rules
|
|
131
134
|
- prompt injection guard for GitHub issue and PR comments
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trace-to-skill",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.66",
|
|
4
4
|
"description": "Turn failed AI coding-agent runs into reusable AGENTS.md rules, SKILL.md files, and eval evidence.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -106,6 +106,9 @@
|
|
|
106
106
|
"codex-terminal",
|
|
107
107
|
"codex-scrollback",
|
|
108
108
|
"terminal-output",
|
|
109
|
+
"codex-subagent",
|
|
110
|
+
"codex-subagents",
|
|
111
|
+
"subagent-lifecycle",
|
|
109
112
|
"codex-mcp",
|
|
110
113
|
"codex-mcp-discovery",
|
|
111
114
|
"mcp-config",
|