Skip to content

Add human policy and supervisor regression tests - #2

Merged
markfrancisonly merged 2 commits into
mainfrom
codex/add-human-policy
Nov 7, 2026
Merged

markfrancisonly merged 2 commits into
mainfrom
codex/add-human-policy

Conversation

@markfrancisonly

@markfrancisonly markfrancisonly commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Codex remote lacked the human contribution policy, offline recovery tests, and Linux line-ending rule present in Claude remote. Add those conventions with tests adapted to Codex's supervisor and health model.

  • Copy the human policy unchanged and link it from the README.
  • Exercise the real supervisor loop with a fake CLI: capped crash backoff, fatal-error parking and recovery, intentional restarts, dead-watcher recovery, stale auth-marker clearing, state preservation, and SIGTERM forwarding.
  • Test healthcheck freshness, missing processes, crash loops, and failure states using temporary state, and test both recreation paths with Docker fully mocked.
  • Run these tests in CI before either native image build, including on test-only changes.
  • Enforce LF line endings and exclude Git metadata, workflows, tests, and Python bytecode from Docker build contexts.

Validation: all offline tests pass locally, along with shell syntax, actionlint, Compose configuration, and whitespace checks. The human policy matches its source byte for byte. GitHub Actions passed on AMD64 and ARM64, including the offline regression tests.

The tests use no live accounts, network requests, or container operations. Runtime supervisor behavior and the existing update strategy are unchanged.

@markfrancisonly markfrancisonly changed the title Add the human contribution policy Add human policy and supervisor regression tests Nov 7, 2026
@markfrancisonly
markfrancisonly merged commit 4f47b80 into main Nov 7, 2026
4 checks passed
@markfrancisonly
markfrancisonly deleted the codex/add-human-policy branch November 7, 2026 13:49
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