Skip to content

fix: prevent oversized Codex launch briefs from exceeding argument limits - #35

Merged
peterOC26 merged 2 commits into
mainfrom
fm/fm-relaunch-brief-arg-limit-b1
Oct 31, 2026
Merged

peterOC26 merged 2 commits into
mainfrom
fm/fm-relaunch-brief-arg-limit-b1

Conversation

@peterOC26

Copy link
Copy Markdown
Owner

Intent

"Q1552 y" (Q1552, 2026-10-31): start a Codex-only batch now with a 25% Codex floor, using Codex allowance before its reset. This job (fleet issues https://github.com/peterOC26/fleet/issues/288 and https://github.com/peterOC26/fleet/issues/209, the same defect): fm-control relaunch appends every relaunch note to data//brief.md (record_note in bin/fm-control.sh); after many relaunches the launch brief passes 131072 bytes and the Codex launch, which passes the brief as one argument, fails with "Argument list too long" (seen 2026-10-01 at 134998 bytes and 2026-10-09 at 131 KB). Workaround so far: moving old notes by hand to data//brief-progress-archive.md.

What Changed

  • Deliver Codex launch briefs larger than 64 KiB through a short file pointer, preserving complete instructions and progress notes while avoiding argument-size failures.
  • Stage the pointer atomically with private permissions and stop launch if staging fails.
  • Document large-brief delivery and add regression coverage for inline prompts and oversized relaunch briefs.

Risk Assessment

✅ Low: The change is small and only affects Codex launches over 64 KiB. It writes the pointer file atomically, leaves smaller briefs inline as before, keeps brief.md unchanged, and adds a regression test that runs the real launch. The test should fail with E2BIG without the fix. The one open point is whether the other harnesses should get the same fix.

Testing

The targeted regression file and three real Codex/tmux scenarios passed. CLI transcripts and model-written reports demonstrate preserved instructions and fresh checkpoints; direct oversized execution reproduced E2BIG. Disposable settings resolved folder trust without changing normal settings, and the lab was removed.

  • Live validation: ✅ go - 3 of 3 scenarios driven live against the product
Scenario Result Live Evidence
Relaunch a short Codex task and receive its original intent and latest checkpoint inline ✅ pass live live-results.json: short-inline; short-inline-completed-terminal.txt
Relaunch with instructions exceeding 131072 bytes and recover intent, historical notes, and the latest checkpoint ✅ pass live live-results.json: oversized-relaunch; inline-counterfactual.txt
Relaunch the oversized task again and receive the new checkpoint while preserving earlier instructions ✅ pass live live-results.json: oversized-second-relaunch; oversized-second-relaunch-completed-terminal.txt
Evidence: Live validation evidence

Source: Live validation evidence

# Codex relaunch live evidence

Real Codex CLI 0.160.0, using the existing ChatGPT login in disposable settings, on a private tmux socket with a 120-column by 40-row terminal. All lifecycle operations used a marked lab home. The lab path contained a space.

| Scenario | Rendered instructions | Actual Codex prompt | Observable result |
| --- | ---: | ---: | --- |
| short-inline | 3,231 bytes | 3,264 bytes | Model-written JSON matched independently generated intent and checkpoint tokens; original instruction prefix preserved byte-for-byte. |
| oversized-relaunch | 150,541 bytes | 271 bytes | Model-written JSON matched independently generated intent and checkpoint tokens; original instruction prefix preserved byte-for-byte. |
| oversized-second-relaunch | 151,361 bytes | 271 bytes | Model-written JSON matched independently generated intent and checkpoint tokens; original instruction prefix preserved byte-for-byte. |

Real codex exec with the entire encoded launch brief (150575 bytes) was refused by Linux: errno=7 Argument list too long. The same brief succeeded through fm-control relaunch using its generated pointer.

The second oversized relaunch used a new latest token and Codex returned that token while retaining the original intent and both historical tokens. See live-results.json for expected and observed values and *-completed-terminal.txt for the actual Codex interactions.

The targeted tests/fm-control-relaunch.test.sh completed with exit 0. No linters, formatters, static analysis, or complete repository suite were run.

Cleanup confirmed: the disposable lab, its isolated Codex settings, and the private tmux socket directory were removed; the private server returned exit 0 on shutdown.
Evidence: Observed Codex prompts and model-written results

Source: Observed Codex prompts and model-written results

[
  {
    "name": "short-inline",
    "control_exit": 0,
    "original_bytes": 853,
    "launch_brief_bytes": 3231,
    "source_prefix_preserved": true,
    "prompts": [
      {
        "pid": 1037641,
        "bytes": 3264
      },
      {
        "pid": 1037737,
        "bytes": 3264
      }
    ],
    "observed_report": {
      "intent": "49f122e5bf0a440f",
      "early": null,
      "late": null,
      "latest": "d4a461239953649d"
    },
    "expected_report": {
      "intent": "49f122e5bf0a440f",
      "early": null,
      "late": null,
      "latest": "d4a461239953649d"
    },
    "pass": true
  },
  {
    "name": "oversized-relaunch",
    "control_exit": 0,
    "original_bytes": 148163,
    "launch_brief_bytes": 150541,
    "source_prefix_preserved": true,
    "prompts": [
      {
        "pid": 1065294,
        "bytes": 271
      },
      {
        "pid": 1065399,
        "bytes": 271
      }
    ],
    "observed_report": {
      "intent": "49f122e5bf0a440f",
      "early": "04f7abafd5b501b4",
      "late": "667db0383745b9cf",
      "latest": "40295790a0285295"
    },
    "expected_report": {
      "intent": "49f122e5bf0a440f",
      "early": "04f7abafd5b501b4",
      "late": "667db0383745b9cf",
      "latest": "40295790a0285295"
    },
    "pass": true
  },
  {
    "name": "oversized-second-relaunch",
    "control_exit": 0,
    "original_bytes": 148983,
    "launch_brief_bytes": 151361,
    "source_prefix_preserved": true,
    "prompts": [
      {
        "pid": 1107179,
        "bytes": 271
      },
      {
        "pid": 1107271,
        "bytes": 271
      }
    ],
    "observed_report": {
      "intent": "49f122e5bf0a440f",
      "early": "04f7abafd5b501b4",
      "late": "667db0383745b9cf",
      "latest": "a77a227ffa6292a5"
    },
    "expected_report": {
      "intent": "49f122e5bf0a440f",
      "early": "04f7abafd5b501b4",
      "late": "667db0383745b9cf",
      "latest": "a77a227ffa6292a5"
    },
    "pass": true
  }
]
Evidence: Real relaunch transcript

Source: Real relaunch transcript

$ ['~/.no-mistakes/worktrees/7f0ec18181b6/01M691RDTZQKJTBP1EPEQSTMY0/bin/fm-lab-home.sh', 'create', '~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space']
~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space

exit=0
$ ['codex', 'login', 'status']
Logged in using ChatGPT

exit=0
$ ['git', 'init', '-q', '~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/projects/sample']

exit=0
$ ['git', '-C', '~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/projects/sample', 'add', 'README.md']

exit=0
$ ['git', '-C', '~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/projects/sample', '-c', 'user.name=Live Test', '-c', 'user.email=live@example.invalid', 'commit', '-qm', 'initial']

exit=0
$ ['treehouse', 'get', '--lease', '--json', '--no-fetch', '--lease-holder', '~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/lvc4910415', '--root', '~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/pool']
{"path":"~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/pool/.treehouse/sample-64821e/1/sample","lease_id":"1fff61d485b3191dc72d958ff284ac9d","lease_holder":"~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/lvc4910415","leased_at":"2026-10-31T14:27:17.558336202+01:00"}
A new version of treehouse is available: v2.3.0 → v3.1.8
Run "treehouse update" to update

🌳 Setting up worktree...
🌳 Leased worktree at ~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/pool/.treehouse/sample-64821e/1/sample. Run 'treehouse return ~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/pool/.treehouse/sample-64821e/1/sample' to release it.

exit=0
$ ['tmux', '-L', 'fm-lab', 'new-session', '-d', '-s', 'fm-lab', '-n', 'fm-lvc4910415', '-x', '120', '-y', '40', '-c', '~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/pool/.treehouse/sample-64821e/1/sample', 'bash --noprofile --norc']

exit=0
$ ['tmux', '-L', 'fm-lab', 'display-message', '-p', '-t', 'fm-lab:fm-lvc4910415', '#{socket_path},#{pid},0']
~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/s/tmux-1000/fm-lab,1025838,0

exit=0
$ ['~/.no-mistakes/worktrees/7f0ec18181b6/01M691RDTZQKJTBP1EPEQSTMY0/bin/fm-control.sh', 'lvc4910415', 'relaunch', '--note', 'LATEST_TOKEN=d4a461239953649d\nFor this launch, read the complete instructions and write the requested JSON report at ~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/data/lvc4910415/report.json.']
relaunched lvc4910415 harness=codex from=codex model=default effort=low backend=tmux endpoint=fm-lab:fm-lvc4910415 worktree=~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/pool/.treehouse/sample-64821e/1/sample
fm-gate-refuse: gate agent lifecycle permitted only against lab home ~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space
fm-gate-refuse: gate agent lifecycle permitted only against lab home ~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
●  WATCHER DOWN - SUPERVISION IS OFF
●  1 task(s) in flight, but no watcher has a fresh beacon (last beat: never, grace 300s).
●  Trust the emitted supervision protocol for this harness; do not use shell & for watcher repair.
●  This is a supervision warning only; the guarded operation WILL still run.
●  repair missing watcher supervision with a foreground checkpoint: bin/fm-watch-checkpoint.sh --seconds 180.
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

exit=0
$ ['tmux', '-L', 'fm-lab', 'capture-pane', '-p', '-S', '-2000', '-t', 'fm-lab:fm-lvc4910415']
bash-5.2$ cd -- '~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/pool/.treehouse/sample-64821e/1/s
ample'
bash-5.2$ export GOTMPDIR=/tmp/fm-lvc4910415/gotmp
bash-5.2$ export COMPACT_ADVISER_DISABLE=1
bash-5.2$ export FM_TASK_ID=lvc4910415
bash-5.2$ . '/tmp/fm-lvc4910415+db7311489cb220a86d23183727095907add859beb662f9102372608214169d6f/launch.s1793453241.1030
225.11696.sh'


































exit=0
$ ['tmux', '-L', 'fm-lab', 'capture-pane', '-p', '-t', 'fm-lab:fm-lvc4910415']
bash-5.2$ cd -- '~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/pool/.treehouse/sample-64821e/1/s
ample'
bash-5.2$ export GOTMPDIR=/tmp/fm-lvc4910415/gotmp
bash-5.2$ export COMPACT_ADVISER_DISABLE=1
bash-5.2$ export FM_TASK_ID=lvc4910415
bash-5.2$ . '/tmp/fm-lvc4910415+db7311489cb220a86d23183727095907add859beb662f9102372608214169d6f/launch.s1793453241.1030
225.11696.sh'


































exit=0
$ ['tmux', '-L', 'fm-lab', 'capture-pane', '-p', '-t', 'fm-lab:fm-lvc4910415']

  Folder access
  ~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/pool/.treehouse/sample-64821e/1/sample

  Note: You’re in a subdirectory of a Git project. Trusting will apply to the repository root:
  ~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/projects/sample

  Trust this folder? Codex can read, edit, and run files here, subject to your permission settings. Folder settings
  can run code automatically, even without a model request. Continue only if you trust these files. Your trust
  decision will be saved.

› 1. Trust and continue
  2. Quit

  enter continue · esc quit


























exit=0
$ ['tmux', '-L', 'fm-lab', 'send-keys', '-t', 'fm-lab:fm-lvc4910415', 'Enter']

exit=0
$ ['tmux', '-L', 'fm-lab', 'capture-pane', '-p', '-t', 'fm-lab:fm-lvc4910415']
  worktrees/7f0ec18181b6/01M691RDTZQKJTBP1EPEQSTMY0/.agents/skills/firstmate-coding-guidelines/SKILL.md` instead.

  # Task
  ## Captain's intent
  Verify complete instruction delivery to this disposable Codex task.
  INTENT_TOKEN=49f122e5bf0a440f

  ## Firstmate spec
  This is a read-and-report live launch verification, requiring no project changes, no delegation, no external
  messages, and no pipeline commands.
  Read the entire launch instructions and the progress notes, then write a JSON object at `~/.no-mistakes/
  evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/data/lvc4910415/report.json` with these exact keys: "intent", "early",
  "late", "latest". The intent value is INTENT_TOKEN's value. The early and late values are EARLY_TOKEN and LATE_TOKEN
  if present, otherwise null. The latest value is the LAST occurrence of LATEST_TOKEN in the progress notes. Output
  actual observed values, not variable names. Do not create or edit any other files. Then stop and wait.

  ## Progress note (2026-10-31T13:27:19Z)

  This task was relaunched. Continue from here; the local copy and every
  uncommitted change are exactly as the previous worker left them.

  First, check your instruction inbox: list it with
  `find '~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/state/lvc4910415.inbox' -maxdepth 1
  -name '*.msg' 2>/dev/null | sort -V`, act on
  each message in numeric order, then mv each handled file into
  '~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/state/lvc4910415.inbox/handled/'. A steer sent
  before the relaunch survives there.

  LATEST_TOKEN=d4a461239953649d
  For this launch, read the complete instructions and write the requested JSON report at ~/.no-mistakes/
  evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/data/lvc4910415/report.json.


• Working (1s • esc to interrupt)


› Ask Codex to do anything

  GPT-6.1-Sol low · ~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/pool/.treehouse/sample-64821e/1/sample…
  ? for shortcuts                                                                              ⚠ 1 warning · f2 to view

exit=0
$ ['tmux', '-L', 'fm-lab', 'capture-pane', '-p', '-t', 'fm-lab:fm-lvc4910415']

  ## Firstmate spec
  This is a read-and-rep

... [41388 bytes truncated] ...

eleases/latest │
╰─────────────────────────────────────────────────╯


  >_ OpenAI Codex (v0.160.0)
     ~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/pool/.treehouse/sample-64821e/1/sample
  permissions: YOLO mode

  Nice place you’ve got here. Very monospace.


› FIRSTMATE_OP: v1 launch-brief: Read the complete launch brief at `~/.no-mistakes/
  evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/data/lvc4910415/launch-brief.md` and follow it exactly. Its current
  role contract establishes your role before project instructions.


• I’ll read the complete launch brief and follow its role contract and instructions.

• Explored
  └ Read launch-brief.md
    + Show details







• Working (10s • esc to interrupt)


› Ask Codex to do anything

  GPT-6.1-Sol low · ~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/pool/.treehouse/sample-64821e/1/sample…
  ? for shortcuts                                                                              ⚠ 1 warning · f2 to view

exit=0
$ ['tmux', '-L', 'fm-lab', 'capture-pane', '-p', '-t', 'fm-lab:fm-lvc4910415']
│ Run npm install -g @openai/codex to update.     │
│                                                 │
│ See full release notes:                         │
│ https://github.com/openai/codex/releases/latest │
╰─────────────────────────────────────────────────╯


  >_ OpenAI Codex (v0.160.0)
     ~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/pool/.treehouse/sample-64821e/1/sample
  permissions: YOLO mode

  Nice place you’ve got here. Very monospace.


› FIRSTMATE_OP: v1 launch-brief: Read the complete launch brief at `~/.no-mistakes/
  evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/data/lvc4910415/launch-brief.md` and follow it exactly. Its current
  role contract establishes your role before project instructions.


• I’ll read the complete launch brief and follow its role contract and instructions.

• Explored
  └ Read launch-brief.md
    + Show details

• Ran find '~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/state/lvc4910415.inbox' -maxdepth 1 -…
  └ (no output)
    + Show details

• Failed (exit 127) python - <<'PY' …
  └ /bin/bash: line 1: python: command not found
    + Show details

◦ Working (12s • esc to interrupt)


› Ask Codex to do anything

  GPT-6.1-Sol low · ~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/pool/.treehouse/sample-64821e/1/sample…
  ? for shortcuts                                                                              ⚠ 1 warning · f2 to view

exit=0
$ ['tmux', '-L', 'fm-lab', 'capture-pane', '-p', '-t', 'fm-lab:fm-lvc4910415']

  >_ OpenAI Codex (v0.160.0)
     ~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/pool/.treehouse/sample-64821e/1/sample
  permissions: YOLO mode

  Nice place you’ve got here. Very monospace.


› FIRSTMATE_OP: v1 launch-brief: Read the complete launch brief at `~/.no-mistakes/
  evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/data/lvc4910415/launch-brief.md` and follow it exactly. Its current
  role contract establishes your role before project instructions.


• I’ll read the complete launch brief and follow its role contract and instructions.

• Explored
  └ Read launch-brief.md
    + Show details

• Ran find '~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/state/lvc4910415.inbox' -maxdepth 1 -…
  └ (no output)
    + Show details

• Failed (exit 127) python - <<'PY' …
  └ /bin/bash: line 1: python: command not found
    + Show details

• Ran python3 - <<'PY' …
  └
    LATEST_TOKEN=a77a227ffa6292a5
    For this launch, read the complete instructions and write the requested JSON report at ~/.no-mistakes/evid…
    + 60 lines (ctrl+t to expand)

• Working (14s • esc to interrupt)


› Ask Codex to do anything

  GPT-6.1-Sol low · ~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/pool/.treehouse/sample-64821e/1/sample…
  ? for shortcuts                                                                              ⚠ 1 warning · f2 to view

exit=0
$ ['tmux', '-L', 'fm-lab', 'capture-pane', '-p', '-t', 'fm-lab:fm-lvc4910415']

  >_ OpenAI Codex (v0.160.0)
     ~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/pool/.treehouse/sample-64821e/1/sample
  permissions: YOLO mode

  Nice place you’ve got here. Very monospace.


› FIRSTMATE_OP: v1 launch-brief: Read the complete launch brief at `~/.no-mistakes/
  evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/data/lvc4910415/launch-brief.md` and follow it exactly. Its current
  role contract establishes your role before project instructions.


• I’ll read the complete launch brief and follow its role contract and instructions.

• Explored
  └ Read launch-brief.md
    + Show details

• Ran find '~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/state/lvc4910415.inbox' -maxdepth 1 -…
  └ (no output)
    + Show details

• Failed (exit 127) python - <<'PY' …
  └ /bin/bash: line 1: python: command not found
    + Show details

• Ran python3 - <<'PY' …
  └
    LATEST_TOKEN=a77a227ffa6292a5
    For this launch, read the complete instructions and write the requested JSON report at ~/.no-mistakes/evid…
    + 60 lines (ctrl+t to expand)

• Working (16s • esc to interrupt)


› Ask Codex to do anything

  GPT-6.1-Sol low · ~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/pool/.treehouse/sample-64821e/1/sample…
  ? for shortcuts                                                                              ⚠ 1 warning · f2 to view

exit=0
$ ['tmux', '-L', 'fm-lab', 'display-message', '-p', '-t', 'fm-lab:fm-lvc4910415', '#{pane_pid}']
1025864

exit=0
$ ['tmux', '-L', 'fm-lab', 'capture-pane', '-p', '-S', '-2000', '-t', 'fm-lab:fm-lvc4910415']


› FIRSTMATE_OP: v1 launch-brief: Read the complete launch brief at `~/.no-mistakes/
  evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/data/lvc4910415/launch-brief.md` and follow it exactly. Its current
  role contract establishes your role before project instructions.


• I’ll read the complete launch brief and follow its role contract and instructions.

• Explored
  └ Read launch-brief.md
    + Show details

• Ran find '~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/state/lvc4910415.inbox' -maxdepth 1 -…
  └ (no output)
    + Show details

• Failed (exit 127) python - <<'PY' …
  └ /bin/bash: line 1: python: command not found
    + Show details

• Ran python3 - <<'PY' …
  └
    LATEST_TOKEN=a77a227ffa6292a5
    For this launch, read the complete instructions and write the requested JSON report at ~/.no-mistakes/evid…
    + 60 lines (ctrl+t to expand)

• Ran python3 - <<'PY' …
  └   "late": "667db0383745b9cf",
      "latest": "a77a227ffa6292a5"
    }
    + 3 lines (ctrl+t to expand)

◦ Working (18s • esc to interrupt)


› Ask Codex to do anything

  GPT-6.1-Sol low · ~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/lab space/pool/.treehouse/sample-64821e/1/sample…
  ? for shortcuts                                                                              ⚠ 1 warning · f2 to view

exit=0
{"name": "oversized-second-relaunch", "control_exit": 0, "original_bytes": 148983, "launch_brief_bytes": 151361, "source_prefix_preserved": true, "prompts": [{"pid": 1107179, "bytes": 271}, {"pid": 1107271, "bytes": 271}], "observed_report": {"intent": "49f122e5bf0a440f", "early": "04f7abafd5b501b4", "late": "667db0383745b9cf", "latest": "a77a227ffa6292a5"}, "expected_report": {"intent": "49f122e5bf0a440f", "early": "04f7abafd5b501b4", "late": "667db0383745b9cf", "latest": "a77a227ffa6292a5"}, "pass": true}
All live scenarios passed.
$ ['tmux', '-L', 'fm-lab', 'kill-server']

exit=0
Disposable lab and private tmux server removed.
Evidence: Oversized inline argument reproduces E2BIG

Source: Oversized inline argument reproduces E2BIG

Real codex exec with the entire encoded launch brief (150575 bytes) was refused by Linux: errno=7 Argument list too long. The same brief succeeded through fm-control relaunch using its generated pointer.

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

⚠️ **Review** - 1 warning
  • ⚠️ bin/fm-spawn.sh:6048 - The new size guard only applies when HARNESS is codex. Eleven other launch templates hand the encoded brief to the agent CLI as a single argument in exactly the same way: &#34;$(__OPINPUT__ encode launch-brief &lt; __BRIEF__)&#34;. The same sq_brief value is substituted into all of them. They are opencode (bin/fm-spawn.sh:2446), pi (2453/2455), omp (2472), agy (2497), grok (2505), cursor (2518), gemini (2553), devin (2557), polytoken (2587), commandcode (2594) and muse (2626). record_note in bin/fm-control.sh adds to brief.md no matter which harness the task uses. So after enough relaunches, a task on any of these harnesses whose launch-brief.md goes past 128 KiB on Linux still fails with "Argument list too long". This is the failure from fleet issues Honor project base refs for FirstMate spawns kunchenguid/firstmate#288/docs: document Orca backend adapter contract kunchenguid/firstmate#209, just on a different harness. kimi and rovo already use a pointer, and claude uses the doorbell record. The intent only names the Codex launch, so applying the fix to all harnesses would widen the scope. The natural place to do it is the shared sq_brief substitution, applied to every template that uses the encode launch-brief &lt; __BRIEF__ form. Confirm whether that wider fix is wanted here or as a follow-up.
✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 3 of 3 scenarios driven live against the product
Scenario Result Live Evidence
Relaunch a short Codex task and receive its original intent and latest checkpoint inline ✅ pass live live-results.json: short-inline; short-inline-completed-terminal.txt
Relaunch with instructions exceeding 131072 bytes and recover intent, historical notes, and the latest checkpoint ✅ pass live live-results.json: oversized-relaunch; inline-counterfactual.txt
Relaunch the oversized task again and receive the new checkpoint while preserving earlier instructions ✅ pass live live-results.json: oversized-second-relaunch; oversized-second-relaunch-completed-terminal.txt
  • codex --version and codex login status
  • bash tests/fm-control-relaunch.test.sh
  • python3 ~/.no-mistakes/evidence/01M691RDTZQKJTBP1EPEQSTMY0/live-codex.py
  • Executed real Codex with the full 150575-byte encoded instructions and reproduced Linux E2BIG.
  • Compared model-written reports with independent tokens, checked byte-preserved instruction prefixes, and confirmed disposable lab cleanup.
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@peterOC26
peterOC26 merged commit e3e433b into main Oct 31, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant