Agents Builders

Codex Update Guard

Archived
codex-update-guard

Created

Jun 29, 16:26

Started

Jun 29, 16:27

Completed

Jun 29, 20:09

DevOps handoff

Type

Feature

Shape

backend

Worktree Slug

codex-update-guard

Repositories

mcritchie-studio

Release Slug

Branch

feat/codex-update-guard

Local URL

QA URL

Production URL

codex-runtime agent-ops

Acceptance Criteria

  • Command fetches and stages latest Codex release
  • Patch review explains mascot hook compatibility
  • Patched binary replaces current only after checks pass
  • Rollback path preserves previous working runtime

Expected Test Plan

  • [unit] Command argument and plan smoke tests
  • [integration] Runtime doctor validates patched installation

Checks Run

  • [unit] ruby -Itest test/commands/codex_update_test.rb
  • [unit] ruby -Itest test/commands/install_agent_skills_test.rb
  • [unit] ruby -Itest test/commands/codex_session_title_test.rb
  • [integration] PATH=/opt/homebrew/opt/ruby@3.3/bin:/opt/homebrew/lib/ruby/gems/3.3.0/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/pkg/env/global/bin:/Library/Apple/usr/bin:/opt/homebrew/bin:/Users/alex/.codex/packages/standalone/releases/0.142.4-aarch64-apple-darwin/codex-path:/Users/alex/.codex/tmp/arg0/codex-arg04LUXV1:/Users/alex/.local/share/mise/installs/node/20/bin:/Users/alex/.cargo/bin:/opt/homebrew/lib/ruby/gems/3.3.0/bin:/opt/homebrew/opt/ruby@3.3/bin:/Users/alex/.local/bin:/Users/alex/.local/share/solana/install/active_release/bin bin/rails test test/commands/codex_update_test.rb test/commands/install_agent_skills_test.rb test/commands/codex_session_title_test.rb
  • [integration] bin/agent-runtime doctor
  • [integration] bin/codex-update plan --latest-version 0.142.4 --release-url https://github.com/openai/codex/releases/tag/v0.142.4
  • [full-suite@af97631ec3131e7dbba4f9d5d9f73cc21819898e] bin/rails test green
  • [rubocop@af97631ec3131e7dbba4f9d5d9f73cc21819898e] bin/rubocop clean

Agent Context

Build a controlled Codex update command/SOP for Mr. McRitchie. Goal: inspect latest Codex release, review update impact, stage the stock binary, apply/verify McRitchie Pokémon thread-title hook compatibility, swap current only after checks pass, and preserve rollback to the last known-good runtime. Keep the startup updater opt-in; this command is the deliberate update path.

Stage Timeline

Who handled each stage, the time it took (measured), and the model / tokens / cost reported (best-effort) — plus who's on it right now. means the agent didn't report that metric.

Sizing Avi · PO Dev MEDIUM Actual XL
  1. Created Designed
    S Spearow
    Spearow
    Model
    Duration
    Tokens
    Cost
    Completed Jun 29, 16:26 · 9 days ago
    api
  2. Designed Building
    S Spearow
    Spearow
    Model
    gpt-5.5
    Duration
    1 minute
    Tokens
    1,206,439
    Cost
    ~$0.65
    Started Jun 29, 16:26
    Completed Jun 29, 16:27 · 9 days ago
    cli
  3. Building Submitted
    S Spearow
    Spearow
    Model
    gpt-5.5
    Duration
    17 minutes
    Tokens
    11,686,904
    Cost
    ~$6.97
    Started Jun 29, 16:27
    Completed Jun 29, 16:44 · 9 days ago
    cli
  4. Submitted Reviewed Review Activity
    C Carl
    Carl primary
    A Alex
    Alex light
    Model
    gpt-5.5
    Duration
    about 1 hour
    Tokens
    10,868,517
    Cost
    ~$7.79
    Started Jun 29, 16:44
    Completed Jun 29, 17:44 · 9 days ago
    cli
  5. Reviewed Assembled
    S Steffon
    Steffon
    Model
    gpt-5.5
    Duration
    about 2 hours
    Tokens
    25,502,557
    Cost
    ~$19.54
    Started Jun 29, 17:44
    Completed Jun 29, 19:41 · 9 days ago
  6. Assembled Shipped
    A Avi
    Avi
    Model
    gpt-5.5
    Duration
    28 minutes
    Tokens
    9,163,074
    Cost
    ~$6.23
    Started Jun 29, 19:41
    Completed Jun 29, 20:09 · 9 days ago
  7. Shipped Archived
    Model
    Duration
    4 days
    Tokens
    Cost
    Started Jun 29, 20:09
    Completed Jul 04, 03:23 · 4 days ago

Conversation

QA review feedback, agent handoffs, and follow-up notes for this task.

Comment alex 9 days ago

Scout report: merge-ready - Light review found no blockers. PR meets the backend Codex update guard acceptance, CI is green, and the focused command suite passes locally with the required Ruby path. Reporter: alex Outcome: merge-ready Findings: - No blocker: bin/codex-update gates plan/run/inspect/apply-patch/promote/restore, refuses non-hook-capable promotion, disables startup update prompts, and preserves a last-good runtime for rollback. - Non-blocker: draft PR #284 overlaps bin/agent-runtime, bin/install-agent-docs, and test/commands/install_agent_skills_test.rb; merge-tree conflicts if #284 lands first, but #287 is clean against current release and #284 is draft. Questions: - none Checks: - gh pr checks 287: lint, test, scan_js, and scan_ruby all passed. - Focused Rails command tests with Homebrew Ruby PATH: 32 runs, 212 assertions, 0 failures. - bin/codex-update plan --latest-version 0.142.4 --release-url https://github.com/openai/codex/releases/tag/v0.142.4: reports current 0.142.3 with live threadName hook support. - Merge safety: origin/release is an ancestor of origin/pr-287 and merge-tree against release is clean.

Comment carl 9 days ago

Scout report: merge-ready - Primary review found no blockers; acceptance, CI, DoR, mascot hook inspection, and rollback guard are merge-ready. Reporter: carl Outcome: merge-ready Findings: - Blockers: none. - Non-blocker: live GitHub latest tag is rust-v0.142.4 while examples use 0.142.4; plan displays the tag literal but update safety is unaffected. - Merge safety: PR is clean against release; #276 overlap resolves cleanly, draft #284 has textual conflicts in agent-runtime/install-agent-docs/tests and should rebase after #287. Questions: - none Checks: - [unit] ruby -Itest test/commands/codex_update_test.rb; ruby -Itest test/commands/install_agent_skills_test.rb; ruby -Itest test/commands/codex_session_title_test.rb - [integration] PATH=/opt/homebrew/opt/ruby@3.3/bin:/opt/homebrew/lib/ruby/gems/3.3.0/bin:$PATH bin/rails test test/commands/codex_update_test.rb test/commands/install_agent_skills_test.rb test/commands/codex_session_title_test.rb - [integration] bin/codex-update plan --json fetched rust-v0.142.4 and inspected patched 0.142.3 hook support - [integration] bin/codex-update inspect stock 0.142.4 exited 2 with stock_without_thread_name=true - [ci] GitHub CI lint, scan_js, scan_ruby, test all pass - [dor] bin/dor-check codex-update-guard passes from PR worktree

Handoff avi 9 days ago

Avi Heartbeat moved codex-update-guard to reviewed after carl + alex reported merge-ready. Left for Steffon QA. Reports: - carl: merge-ready - Primary review found no blockers; acceptance, CI, DoR, mascot hook inspection, and rollback guard are merge-ready. - alex: merge-ready - Light review found no blockers. PR meets the backend Codex update guard acceptance, CI is green, and the focused command suite passes locally with the required Ruby path.

Sealed-bid sizing

Edit →

Alex (PM)

Avi (PO)

Dev

MEDIUM

Actual

XL