Skip to content

feat(headless): configure harness execution per run - #1297

Merged
Astro-Han merged 9 commits into
mainfrom
feat/headless-codex-concurrent-pairs
Jul 21, 2026
Merged

Astro-Han merged 9 commits into
mainfrom
feat/headless-codex-concurrent-pairs

Conversation

@Astro-Han

@Astro-Han Astro-Han commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • make harness execution policy independent of Kimi Code, OpenCode, and Codex competitor profiles
  • use one safe default for every run: one task pair with sequential arms; allow each experiment to override pair concurrency and arm execution
  • freeze the Codex comparison on gpt-5.6-sol with xhigh reasoning for both arms
  • validate the configured reasoning effort against authoritative model metadata before building the manifest, so recorded execution identity matches the provider request
  • use the shared ThinkingLevel contract across the manifest and Harbor runner
  • expose only the pinned native Codex executable on login-shell PATH; preserve the task image's Node runtime
  • preserve task-native stream connect and idle timeouts across the Maka host-cell backend boundary
  • stack on feat(headless): support harness task subsets #1295 because the live hard-task experiment depends on explicit task-subset support

Verification

  • TDD RED/GREEN: Maka's gpt-5.6-sol provider options omitted xhigh; now the request includes reasoningEffort: xhigh
  • TDD RED/GREEN: unsupported profile effort reached the manifest; now profile construction fails fast from model metadata
  • TDD RED/GREEN: Codex install overwrote /usr/local/bin/node; now it links only the native Codex executable
  • core tests: 1,132 passed
  • runtime tests: passed
  • headless tests: 1,172 passed, 1 skipped
  • core, runtime, and headless typecheck passed
  • npm run lint, npm run format:check, and git diff --check passed

Operational behavior

The default is MAKA_HARNESS_AB_PAIR_CONCURRENCY=1 with MAKA_HARNESS_AB_ARM_EXECUTION=sequential. Experiments can explicitly select pair concurrency from 1 through 4 and either sequential or parallel arms. Resuming with a different effective policy is rejected by the existing immutable-manifest check.

Audited scoring and safe resume behavior remain isolated in the follow-up stacked PR #1313.

@Astro-Han Astro-Han changed the title feat(headless): run Codex harness pairs concurrently feat(headless): configure harness execution per run Jul 21, 2026
@Astro-Han

Copy link
Copy Markdown
Contributor Author

A few minor notes:

  • preexistingTerminalEventIds keeps all WAL events for the run+fingerprint, not just terminal ones. Harmless (only terminal events feed onArmEvent), but rename to preexistingReplayedEventIds or tighten the filter so "set contents == suppressed replays" is literal.
  • The two ln -sf in codex_agent.py are ;-chained without set -euo pipefail, so a half-link can exit 0. Use && or check exit codes.
  • _rollout_token_totals picks "latest" by string-comparing timestamp, correct only if all rollout timestamps share format and timezone. Note the assumption, or select by mtime + line.
  • resolveHarnessAbExecutionPolicy's taskCount < 1 throw has no test; one case would cover the branch.

@Astro-Han
Astro-Han force-pushed the feat/headless-codex-concurrent-pairs branch from a6de34e to cc3406f Compare July 21, 2026 14:42
@Astro-Han
Astro-Han changed the base branch from feat/headless-harness-task-subsets to main July 21, 2026 16:08
@Astro-Han
Astro-Han force-pushed the feat/headless-codex-concurrent-pairs branch from 4971071 to 3f6adcc Compare July 21, 2026 16:09
@Astro-Han
Astro-Han merged commit 157cf0d into main Jul 21, 2026
3 checks passed
@Astro-Han
Astro-Han deleted the feat/headless-codex-concurrent-pairs branch July 21, 2026 16:14
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