← Back to Pull requests

Record original Turn handoff under a Host limit #9688

Closed
unknown closed this pull request without merging on Dec 01, 2026 00:32 UTC
View on GitHub
unknown unknown commented on Nov 30, 2026 23:59 UTC
Author

Goal

Add the native local acceptance results for earlier handoff to the original independent postcondition. The existing acceptance calls for observed work, independent validation and original Turn settlement. RFC acceptance on the base

Registered comparison

Two new frozen engineering tasks, one native Codex Host per arm in isolated SQLite. Both arms had the same starter, task instructions, tool scope, visible check and withheld original task validator in each pair. The method guidance is the treatment. The 75-second and 120-second limits apply to different tasks. Each pair shares its limit. Arm order reverses between tasks.

| Case | Arm | Original result | Checks | Original debits | Preparation through validation or failure |
| --- | --- | --- | --- | --- | --- |
| Receipt recovery | Current | Host stop unconfirmed | Unrun | 0 | 79.857 s |
| Receipt recovery | Earlier handoff | Committed | 80/80 | 1 | 75.096 s |
| UTF-8 Research page | Earlier handoff | Committed | 51/51 | 1 | 68.365 s |
| UTF-8 Research page | Current | Committed | 51/51 | 1 | 62.202 s |

Per-Turn readback

Each entry below links the observed original journal and exact artifact to its forecast, independent check, debit and replay. Native file changes verify the forecast digest and ordering before the first visible check or candidate edit. The original native codex_cli_stop_unconfirmed case did not reach the original postcondition. Its saved artifact was reconstructed from native file changes, matched by SHA-256 and independently evaluated with the frozen checks after termination. The post-run result preserves the original failed status.

The three committed Turns replayed without a new Host, state write or debit. Final token usage for the failed Turn is unknown. The fixed pair order within each task and two-task sample limit attribution. Provider billing and study-design effort remain unmeasured. Forecasts for original settlement and independent artifact correctness use distinct labels. The local evidence supports one observed outcome difference under the tighter cap. Policy benefit and calibration at larger scope remain open.

{
  "source": "21c6ddf4782617b2eec4f733010bf8c79ed7e3d2",
  "host": "codex-cli 0.172.0",
  "model": "gpt-5.6-sol",
  "reasoning": "medium",
  "backend": "isolated SQLite",
  "original_task_validator_sha256": "65bdf1d7918808ab06c3518fd70ef130ab6be2a33e9e570183745573bc38d7db",
  "cases": [
    {
      "case": "original-receipt-after-peer-repair",
      "host_seconds": 75,
      "order": [
        "current",
        "early_handoff"
      ],
      "criterion": {
        "task": "8ab7d779fe2f848c54037219f8d8f883fc3028ed7922bbcf607d9a3739da52a1",
        "starter": "099ac1d2966377bc2b094886d789e4226a62962229a2c51922829d6af75afc5e",
        "visible": "75b6eb44477a340a74a5896182263a10396ba0a77ec21f7083c7dab4ca21bd48",
        "independent": "337b33eb4525f70a726f174cbfde36795e4ae16880b156f9dfdf3c74fec40c94"
      }
    },
    {
      "case": "utf8-research-page",
      "host_seconds": 120,
      "order": [
        "early_handoff",
        "current"
      ],
      "criterion": {
        "task": "caad1cddf386ce55d80f622c3ef1429e836841f070c5b657d90de6728dd0362a",
        "starter": "2821572ae9440054184aac99e95a12ee6d421168ce97738dbb005ab13c01bb6f",
        "visible": "5f06525db707d35e0da509163e5946f16101350f3a8113c5ae509c43ce13ced7",
        "independent": "a791608111350c4345701817f39aef56a26144823a632bd6c6d1cb69835a8870"
      }
    }
  ],
  "original_runs_in_order": [
    {
      "case": "original-receipt-after-peer-repair",
      "arm": "current",
      "host_limit_seconds": 75,
      "before_work_forecast_sha256": "8e55b605e79e6b7fac0d962b775b9bac8c50228b301c2db6dceeb27e272c82e7",
      "forecast_artifact_all_pass": 0.95,
      "forecast_original_turn_accepts": 0.9,
      "artifact_sha256": "f777e20cc1e5f44f84f6b26504315bdec7a52db7627296578201a99288e282e5",
      "original_postcondition_checks": null,
      "diagnostic_same_artifact_checks": [
        80,
        80
      ],
      "journal_status": "failed",
      "recorded_failure": "codex_cli_stop_unconfirmed",
      "original_durable_writeback": false,
      "original_debit": 0,
      "replayed_same_turn_without_effects": null,
      "prepared_through_validation_or_failure_seconds": 79.857,
      "replay_seconds": null,
      "final_model_usage": null,
      "run_readback_sha256": "454c89730fc3cff03c40f91b6d7258e51db45437955d068043cf48fd6d1ba9e2"
    },
    {
      "case": "original-receipt-after-peer-repair",
      "arm": "early_handoff",
      "host_limit_seconds": 75,
      "before_work_forecast_sha256": "c8c3ba3492eb5a1dda29eaed80a4638417ea59398e3ae8c669f66100e5acb100",
      "forecast_artifact_all_pass": 0.93,
      "forecast_original_turn_accepts": 0.88,
      "artifact_sha256": "dc8f04ea1c94e2b505799905d699c31c6802336e8d02ba0c56b49abe1cb47e46",
      "original_postcondition_checks": [
        80,
        80
      ],
      "diagnostic_same_artifact_checks": null,
      "journal_status": "committed",
      "recorded_failure": null,
      "original_durable_writeback": true,
      "original_debit": 1,
      "replayed_same_turn_without_effects": true,
      "prepared_through_validation_or_failure_seconds": 75.096,
      "replay_seconds": 0.891,
      "final_model_usage": {
        "input_tokens": 307023,
        "cached_input_tokens": 284288,
        "output_tokens": 2668
      },
      "run_readback_sha256": "d54e42b206c76702a9be47d1d8f2bb3b4da6a94eab16b2ecaa8467e207ab7501"
    },
    {
      "case": "utf8-research-page",
      "arm": "early_handoff",
      "host_limit_seconds": 120,
      "before_work_forecast_sha256": "0134cdbf339187a3a68c35c93aca8eaf93357bee22a7ae045e891e7ee36331f9",
      "forecast_artifact_all_pass": 0.96,
      "forecast_original_turn_accepts": 0.92,
      "artifact_sha256": "2821572ae9440054184aac99e95a12ee6d421168ce97738dbb005ab13c01bb6f",
      "original_postcondition_checks": [
        51,
        51
      ],
      "diagnostic_same_artifact_checks": null,
      "journal_status": "committed",
      "recorded_failure": null,
      "original_durable_writeback": true,
      "original_debit": 1,
      "replayed_same_turn_without_effects": true,
      "prepared_through_validation_or_failure_seconds": 68.365,
      "replay_seconds": 0.844,
      "final_model_usage": {
        "input_tokens": 237571,
        "cached_input_tokens": 215040,
        "output_tokens": 2243
      },
      "run_readback_sha256": "74b450f5d77cd938c7021031fc9cfcf6ae783cb5f9c78ae97cae66c5fcabc87d"
    },
    {
      "case": "utf8-research-page",
      "arm": "current",
      "host_limit_seconds": 120,
      "before_work_forecast_sha256": "ce2591fc5e28cc092d6c14836fa1573a55064766cb1c010cb0bcd141dc5ed066",
      "forecast_artifact_all_pass": 0.99,
      "forecast_original_turn_accepts": 0.97,
      "artifact_sha256": "2821572ae9440054184aac99e95a12ee6d421168ce97738dbb005ab13c01bb6f",
      "original_postcondition_checks": [
        51,
        51
      ],
      "diagnostic_same_artifact_checks": null,
      "journal_status": "committed",
      "recorded_failure": null,
      "original_durable_writeback": true,
      "original_debit": 1,
      "replayed_same_turn_without_effects": true,
      "prepared_through_validation_or_failure_seconds": 62.202,
      "replay_seconds": 0.861,
      "final_model_usage": {
        "input_tokens": 200230,
        "cached_input_tokens": 178432,
        "output_tokens": 1680
      },
      "run_readback_sha256": "25fa0d8edde00c3716b8f2ad57a1fe3d3e30ecde7678dea0b592092797c72548"
    }
  ]
}

Diff: 650 lines (+487 / -163) across 8 files Reviewer: loopx-agent Review duration: 33m
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.52) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
0.52
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
56%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.388
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #9688"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 56.8% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 52% (MEDIUM) · Higher = larger blast radius
52%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 56.8% · Lower = rushed or shallow review
56.8%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 22.5% · Safe to merge
22.5%