Skip to content

feat(qa): compare live Code Mode tasks and interviews - #147537

Merged
steipete merged 1 commit into
mainfrom
codex/code-mode-live-benchmark-recovered
Sep 13, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/code-mode-live-benchmark-recovered

Conversation

@steipete

@steipete steipete commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Related: #147105

What Problem This Solves

Code Mode changes need a repeatable way to compare completed tasks, actual tool effects, and agent explanations across built revisions.

User Impact

Developers can opt into six live Gateway workloads through qa:code-mode-models, compare clean baseline and candidate builds, and inspect a follow-up interview for each run. The existing default matrix is unchanged.

No installed-user schema, configuration format, or stored-state upgrade path changes. The generated fixture's JSONL receipt is a per-cell synthetic test artifact: the runner creates a fresh temporary root and empty collector-owned file, passes its path to the generated plugin, and exports it as evidence. Kept state is for inspection, not resumed or migrated as operator state. New comparison rows require their explicit workload fingerprints; legacy rows without that evidence are rejected with a diagnostic instead of being silently converted.

Why This Change Was Made

The workloads cover retained results, heterogeneous data joins, real automation/process contracts, failures after a write, and repeated checked cells. Each uses isolated state, a narrow tool catalog, and checks of actual calls and effects. Workload fingerprints prevent mismatched comparisons. Original failures remain visible, with separate task-behavior and interview-consistency observations; task-only comparisons require verified model identities. Interview explanations still need assessment against the recorded behavior.

Evidence

  • 187 focused tests passed. Coverage includes duplicate writes, unrelated mutations, incomplete cleanup, missing evidence, workload/model mismatches, task/interview receipt separation, terminal evidence across waits, sequential checked-cell values, observed preview coverage, and created-job lifecycle identity/order. Independent history reads may overlap the rename; required state observations and cleanup remain checked. Regression counterexamples failed before the fixes. The full changed-file gate and final affected type/lint/format/MDX checks passed.
  • A matched real-OpenAI campaign used openai/gpt-5.6-luna and openai/gpt-5.6-sol across six tasks on baseline and candidate. Task-behavior checks improved from 8/12 to 12/12 and answer correctness from 10/12 to 12/12. Invoice totals came from all 240 retained records with one fetch; malformed post-write replies identified the bad fields and were followed by inspection without duplicate settlement.
  • Replaying all 24 saved task/interview recordings through the final collector and checks reproduced the original task, answer, and combined totals exactly. All 79 evidence input files remained hash-identical; no provider call or original-score rewrite was involved.
  • An independent call/result audit verified all four automation trials performed every required operation on their created job and preserved caller-visible inventory. One baseline run retried a rejected update with the correct argument and ran the two final reads concurrently; both reads completed before removal.
  • Original strict combined scores remain 8/12 to 7/12, with five candidate interview-check failures. Two previewComplete: true flags conflict with explicitly sampled descriptors; their prose discusses complete later calculations or caller-visible inventory, and the original prompt did not define which preview the flag meant. Grounded follow-ups clarified the distinction. Both models separately completed direct native typed reads without casts; earlier weak typing and one inaccurate self-description remain qualifications, not retroactive score changes.
  • A final real-key smoke on the rebuilt exact candidate passed all 12 automation behavior checks, while retaining its interview mismatch. Its initial code used added:any and incorrectly read added.job.id; the model inspected state and recovered without duplicate creation. Removing only :any makes the real candidate compiler reject that access before dispatch. Types protect this case when the model uses them.
  • Task latency varied. These single-trial observations on a shared host do not establish a general speedup. Original paired metric rows and underlying session/call evidence were recovered and independently verified after a temporary worktree disappeared; deleted original report bytes and unprinted supplemental timings remain unavailable.

Fresh independent review is clean through P2. Detailed synthetic transcripts remain local. No operator Gateway, stored operator state, real channel, or real device was used.

Extend the existing model matrix with isolated Gateway tasks, fixed-workload build comparisons, and separate task and interview evidence. Preserve failed trials, exact source identities, task effects, logical cell completion, and observed preview coverage.

Validation: 187 focused tests, changed-file and targeted type/lint/docs checks, exact-candidate runtime build, actual OpenAI smoke, read-only replay of 24 original trials plus the final smoke, and fresh P2 review. Original scores and interview qualifications remain preserved.
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review September 13, 2026 23:18
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts extensions: qa-lab size: XL maintainer Maintainer-authored PR labels Sep 13, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 13, 2026, 7:26 PM ET / 23:26 UTC.

ClawSweeper review

What this changes

Adds six opt-in Code Mode workloads that run through disposable Gateways, collect follow-up interviews, and compare task results across built revisions.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep open: this is useful, distinct evaluation work that current main does not provide. No blocking introduced defect was identified, and the maintainer-protected PR is not a cleanup candidate.

Priority: P2
Reviewed head: dbd4463cf32fb4d1106847ed9d46675e46a13173

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent evaluation extension with substantial counterexample coverage and no identified blocking defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied repository state identifies maintainer-authored work, so the external-contributor gate does not apply; the body reports exercising the new Gateway task/interview path with real providers and an exact-candidate smoke, while retaining recordings locally.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied repository state identifies maintainer-authored work, so the external-contributor gate does not apply; the body reports exercising the new Gateway task/interview path with real providers and an exact-candidate smoke, while retaining recordings locally.
Evidence reviewed 9 items Verified introduced scope: Read the complete new implementation and tests, plus the modified runner and documentation. The pinned merge-base-to-head delta adds evaluation tooling without changing production Code Mode execution or existing matrix defaults.
Still necessary on main: The fetched main runner retains the earlier matrix tasks and lacks the new runtime/comparison options; tree inspection found neither new Gateway runner nor comparison module. The Gateway runner is also absent from the supplied latest-release commit.
Isolation and evidence boundaries: The runner supplies temporary state, home and workspace paths, a loopback Gateway token, an explicit environment and task-specific tools. It captures task receipts before the interview and supervises Gateway process-tree cleanup.
Findings None None.
Security None None.

How this fits together

The developer model matrix exercises OpenClaw’s agent runtime using selected models and synthetic tasks. It collects transcripts and tool effects, then produces task scores, interview checks, and paired measurements.

flowchart TD
  A[Models and task selections] --> B[Built revision]
  B --> C[Disposable Gateway]
  D[Synthetic fixtures and real tools] --> C
  C --> E[Task and follow-up interview]
  E --> F[Transcripts and effect receipts]
  F --> G[Behavior checks]
  G --> H[Matched baseline comparison]
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Tests +2091, Docs +76, Other +1941. Total +4108 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 2091 0 +2091
Docs 1 76 0 +76
Config 0 0 0 0
Generated 0 0 0 0
Other 4 1954 13 +1941
Total 8 4121 13 +4108

Review metrics

Metric Value Why it matters
Evaluation controls 2 opt-in CLI options; existing task defaults preserved Revision selection and baseline comparison extend developer evaluation without changing ordinary matrix invocation.
Tooling versus tests Tooling +1,941 net lines; tests +2,091 net lines The growth supports six workload fixtures, Gateway lifecycle management, evidence collection and comparison, with counterexamples protecting score validity.

Stored data model

Persistent data-model change detected: serialized state: scripts/lib/code-mode-matrix-gateway-fixtures.ts, unknown-data-model-change: scripts/lib/code-mode-matrix-gateway-fixtures.ts. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep comparative evaluation in the existing matrix, with fixed workloads, separate task and interview evidence, and performance claims limited to observed measurements.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this adds evaluation capability rather than repairing a reported bug; the read-only review inspected the runner and counterexample tests without executing them.

Is this the best way to solve the issue?

Yes: extending the existing matrix is a coherent approach, and separating task behavior from interview consistency avoids treating agent explanations as proof of execution.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against fa724c69996a.

Labels

Label changes:

  • add P2: This is a bounded developer-evaluation improvement with no demonstrated urgent production regression.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied repository state identifies maintainer-authored work, so the external-contributor gate does not apply; the body reports exercising the new Gateway task/interview path with real providers and an exact-candidate smoke, while retaining recordings locally.

Label justifications:

  • P2: This is a bounded developer-evaluation improvement with no demonstrated urgent production regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied repository state identifies maintainer-authored work, so the external-contributor gate does not apply; the body reports exercising the new Gateway task/interview path with real providers and an exact-candidate smoke, while retaining recordings locally.

Evidence

What I checked:

  • Verified introduced scope: Read the complete new implementation and tests, plus the modified runner and documentation. The pinned merge-base-to-head delta adds evaluation tooling without changing production Code Mode execution or existing matrix defaults. (scripts/code-mode-model-matrix.ts:339, dbd4463cf32f)
  • Still necessary on main: The fetched main runner retains the earlier matrix tasks and lacks the new runtime/comparison options; tree inspection found neither new Gateway runner nor comparison module. The Gateway runner is also absent from the supplied latest-release commit. (scripts/code-mode-model-matrix.ts:33, fa724c69996a)
  • Isolation and evidence boundaries: The runner supplies temporary state, home and workspace paths, a loopback Gateway token, an explicit environment and task-specific tools. It captures task receipts before the interview and supervises Gateway process-tree cleanup. (scripts/lib/code-mode-matrix-gateway.ts:909, dbd4463cf32f)
  • Comparison validity: Comparison rejects missing or duplicate pairs and mismatched workload fingerprints/settings. Task-only deltas require successful observed task checks and verified model identities; failed combined outcomes remain recorded. (scripts/lib/code-mode-matrix-comparison.ts:110, dbd4463cf32f)
  • Implementation boundary: Documentation explicitly distinguishes OpenClaw’s QuickJS-WASI Code Mode from Codex Code Mode; the new Gateway configuration selects the OpenClaw agent runtime. No affirmative Codex dependency signal applies. Public docs: docs/tools/code-mode.md. (docs/tools/code-mode.md:25, dbd4463cf32f)
  • Related work remains distinct: The author’s closing comment on [Feature]: reduce repeated work in Code Mode #147105 identifies landed runtime improvements while explicitly leaving comparative token and latency measurements unestablished. This PR supplies evaluation machinery rather than replacing those fixes.

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete

Copy link
Copy Markdown
Contributor Author

Maintainer compatibility assessment: the data-model classifier has matched a synthetic fixture receipt, not an installed-user data model. No production schema, migration, configuration reader, or upgrade path changes in this PR.

The runner creates a fresh temporary root and an empty receipt file for each cell (creation, initialization). The generated fixture writes only to that collector-supplied path; receipts are then exported as test evidence. Retained temporary state supports inspection, not operator-state resumption or migration.

The existing default matrix remains unchanged. The new opt-in comparison refuses legacy rows without workload fingerprints with an explicit diagnostic. Regression coverage exercises repeated fixture registration against the same owned receipt, separate task/interview snapshots, missing workload evidence, and unchanged defaults. The final checker also replays all 24 recorded runs with the original verdicts and 79 evidence files unchanged.

The PR body now contains this compatibility explanation. I consider the classifier's migration-proof item not applicable; ClawSweeper's substantive code and security review reports no findings. The native review records this assessment, and normal CI/merge gates remain required.

@steipete
steipete merged commit 520442c into main Sep 13, 2026
228 checks passed
@steipete
steipete deleted the codex/code-mode-live-benchmark-recovered branch September 13, 2026 23:32
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
Extend the existing model matrix with isolated Gateway tasks, fixed-workload build comparisons, and separate task and interview evidence. Preserve failed trials, exact source identities, task effects, logical cell completion, and observed preview coverage.

Validation: 187 focused tests, changed-file and targeted type/lint/docs checks, exact-candidate runtime build, actual OpenAI smoke, read-only replay of 24 original trials plus the final smoke, and fresh P2 review. Original scores and interview qualifications remain preserved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation extensions: qa-lab maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant