Skip to content

[Tracking] Make Headless Harness A/B resilient to partial infrastructure failures #1021

Closed

Description

@Astro-Han

Tracking goal

A frozen Headless Harness A/B schedule should attempt every cell it can, preserve single-sample Pass@1 semantics, retain partial evidence, and report infrastructure gaps explicitly.

The experiment contract does not require zero infrastructure failures or zero missing usage. The original requirement that a run is complete only when all 30 pairs are both evaluated and fully metered is superseded by the revised contract below.

Revised contract

  • A cell-level timeout, OOM, provider failure, or verifier failure must be persisted with explicit provenance.
  • One failed cell must not abort the remaining frozen schedule when the controller can safely continue.
  • An agent that has started must never be implicitly rerun as another sample.
  • Effectiveness, economy, execution coverage, and infrastructure failures use separate denominators/status.
  • Checkpoint usage remains diagnostic and must not be promoted to trusted final usage.
  • A run may finish as completed_with_gaps when all scheduled cells were attempted but some evidence is missing or infrastructure-failed.

Active seams

These are the only new bug seams required to close this tracker.

Related work, not closure blockers

Evidence

The original Maka-vs-OpenCode run observed all 60 cells but produced only 18 effectiveness-eligible pairs and 11 fully metered pairs.

Later semantic-compact runs isolated two continuing failure modes:

  • v1 completed 30 effectiveness pairs but only 22 fully metered pairs; 9 cells across 8 pairs retained checkpoint-only usage and lacked final cell output.
  • v2 still produced 5 checkpoint-only cells across 4 complete pairs with a 120-second settlement grace, then stopped after a host OOM.
  • v4 stopped after a provider/network failure, leaving the scheduled suffix unattempted.

Affected checkpoint-only cells hit their configured 900/1800/3600-second Harbor hard timeout, consistent with an active step outliving cooperative after_step settlement.

Closure criteria

Close this tracker when #1078 and #1080 are complete and their integration coverage proves that:

  1. a non-cooperative active step settles to a durable final artifact before host hard kill;
  2. an injected cell infra failure does not prevent later scheduled cells from running;
  3. the final report exposes execution, effectiveness, economy, and infrastructure completeness independently;
  4. no path obtains apparent completeness by rerunning a started agent or treating checkpoint usage as final.

Historical run artifacts and detailed investigation remain preserved in the comments and edit history.

Activity

  1. added
    bug
    on Jul 15, 2026
  2. Astro-Han commented on Jul 16, 2026

    @Astro-Han
    ContributorAuthor

    Follow-up evidence from the Maka semantic-compact on/off runs further isolates the final-usage settlement failure.

    New observations

    Five run records exist, but only three reached A/B execution:

    • v1: 30 complete eligible pairs; 22 fully metered pairs.
    • v2: 20 complete eligible pairs before an unrelated host OOM; 16 fully metered pairs.
    • v3: aborted before A/B execution.
    • v4: 3 complete eligible pairs before an unrelated provider/network failure; all 3 fully metered.
    • v5: stopped during Oracle qualification after the experiment scope changed.

    The new v1 evidence contains 9 checkpoint-only cells across 8 pairs. Every affected cell:

    • retained maka-cell-usage-checkpoint.json;
    • lacked maka-cell-output.json;
    • ended with Harbor AgentTimeoutError;
    • hit its configured 900, 1800, or 3600 second agent hard timeout exactly.

    This confirms that the missing usage is not a report-reader defect. The report intentionally rejects checkpoint usage as final because the checkpoint may omit the last provider or compact call.

    A 120-second grace window mitigates but does not solve the issue

    A follow-up run explicitly injected:

    MAKA_CELL_SETTLEMENT_GRACE_SEC=120

    and froze the value in the run manifest. Despite that, v2 still had 5 checkpoint-only cells across 4 of its 20 complete pairs:

    • both gpt2-codegolf cells;
    • make-doom-for-mips on the semantic-off arm;
    • chess-best-move on the semantic-compact arm;
    • write-compressor on the semantic-compact arm.

    The remaining failure follows from the current deadline behavior. The soft deadline calls:

    stopSession(..., mode: 'after_step')

    An after-step stop request does not abort an active provider stream or tool execution. If that active step lasts longer than the remaining settlement grace, Harbor still reaches its hard timeout first and kills the host cell before the final artifact is serialized.

    Therefore, increasing the cooperative grace from 30 to 120 seconds is a useful mitigation, but it is not a complete fix and should not close this issue by itself.

    Proposed complete deadline contract

    Use a staged deadline:

    1. Request after_step settlement at an early cooperative deadline.
    2. If the active step has not settled by a later forced-settlement deadline, escalate to immediate.
    3. Reserve a final bounded window for runtime-event aggregation and atomic maka-cell-output.json persistence.
    4. Keep Harbor's hard timeout as the final process-level fallback.

    The regression test should include a backend or tool step that deliberately outlives the cooperative window and verify that:

    • the forced stop occurs;
    • the cell writes a final output artifact;
    • final usage is marked tokenSummarySource=final;
    • the result remains a budget-exhausted Pass@1 outcome rather than becoming an infrastructure exclusion;
    • no continuation turn starts after the deadline.

    Checkpoint usage should remain excluded from the official economy summary.

    The later host OOM and provider/network failure are separate lifecycle failures. They explain why v2 and v4 stopped early, but they do not explain the repeated checkpoint-only usage pattern.

  3. Astro-Han commented on Jul 16, 2026

    @Astro-Han
    ContributorAuthor

    Follow-up evidence from the semantic-compact on/off runs narrows the timeout-settlement failure:

    • v1 completed 30 eligible pairs, but 8 pairs (9 cells) had checkpoint-only usage. Every affected cell hit its 900/1800/3600-second Harbor hard timeout and lacked maka-cell-output.json.
    • v2 explicitly reserved MAKA_CELL_SETTLEMENT_GRACE_SEC=120, yet 4 of 20 completed pairs (5 cells) were still checkpoint-only.
    • The remaining gap is consistent with stopSession(..., mode: after_step): an active provider/tool step can outlive the cooperative grace, so Harbor kills the cell before final serialization. A 120-second grace is therefore a mitigation, not a complete fix. The robust contract should stage cooperative after_step -> forced immediate -> final-artifact window -> Harbor hard kill.

    A verified stable batch for short Maka semantic-off vs semantic-compact-replace A/B iterations is:

    • sanitize-git-repo
    • prove-plus-comm
    • merge-diff-arc-agi-task
    • fix-git
    • log-summary-date-ranges
    • hf-model-inference
    • reshard-c4-data
    • polyglot-rust-c
    • custom-memory-heap-crash
    • polyglot-c-py

    All ten were selected by Oracle qualification in v1, v2, and v4, and all ten produced eligible, final-metered results on both arms in both v1 and v2. Checkpoint usage should remain excluded from official economy totals.

  4. changed the title [-]Headless Harness A/B can finish all cells but produce an incomplete paired report[/-] [+][Tracking] Make Headless Harness A/B resilient to partial infrastructure failures[/+] on Jul 16, 2026
  5. Astro-Han commented on Jul 16, 2026

    @Astro-Han
    ContributorAuthor

    For reproductions intended to expose behavioral differences—not merely provide a lifecycle-stable smoke batch—the following tasks are more useful because at least one arm previously failed without an infrastructure failure:

    • password-recovery — v2: semantic-off passed, semantic-compact failed verification.
    • configure-git-webserver — v1: semantic-off failed verification, semantic-compact passed; v2: both failed verification.
    • pytorch-model-cli — v1: semantic-off failed verification, semantic-compact passed.
    • crack-7z-hash — v1: semantic-off passed, semantic-compact reached its model budget and failed, while still producing a final artifact.
    • mteb-leaderboard — v1: both arms completed and failed verification; semantic compact was exercised heavily.

    Suggested clean reproduction batch:

    password-recovery
    configure-git-webserver
    pytorch-model-cli
    crack-7z-hash
    mteb-leaderboard
    

    Two additional tasks also produced non-infrastructure failures, but should not be used to attribute differences specifically to semantic compact because their trajectories were affected by the Edit tool bug tracked in #1111:

    custom-memory-heap-crash
    sanitize-git-repo
    

    Tasks whose failing cells ended at the hard deadline with checkpoint-only usage are intentionally excluded from this batch. In particular, the affected tune-mjcf and v1 mcmc-sampling-stan results are lifecycle-contaminated rather than clean model/verifier failures.

    This challenge batch is selected post hoc from historically failing or discordant outcomes. It is useful for reproduction and diagnosis, but its aggregate pass rate should not be treated as an unbiased benchmark estimate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions