Repository navigation
fix(perf): isolate benchmark subprocess transport - #144159
Conversation
Run transported CLI samples and their temporary state through the explicit SUT transport while preserving native measurements. Reject unsupported transported runtime RSS and profiles before launching candidate code. Punchcard-Session: coral-orchard-orchard-d4
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. Reviewed September 11, 2026, 6:35 AM ET / 10:35 UTC (Revision 3). ClawSweeper reviewWhat this changesAdds an explicit transport for benchmark subprocesses and temporary files, and prevents comparisons between native and transported measurements. Merge readiness⛔ Blocked before merge - 5 items remain This remains a distinct prerequisite for the linked isolation work. The previous mixed-mode comparison finding is resolved, and no new concrete patch defect was established; the protected, member-authored PR should remain open. Priority: P2 Review scores
Verification
How this fits togetherThe CLI benchmark runs candidate commands and collects timing and memory measurements for performance reports. The transport moves candidate execution and temporary-file operations behind a configured execution boundary while the evaluator retains report generation. flowchart LR
A[Benchmark cases] --> B[Benchmark evaluator]
C[Trusted transport configuration] --> B
B --> D{Execution mode}
D -->|Native| E[Local candidate process]
D -->|Transport| F[Isolated candidate and temporary files]
E --> G[Measurements and reports]
F --> G
G --> H[Compatible comparisons and budgets]
Before merge
Findings
Agent review detailsSecurityNeeds attention: No concrete exploit or supply-chain regression was established, but the changed cross-principal execution boundary remains unproven. PR surfaceTests +243, Other +220. Total +463 across 7 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain native defaults and legacy-report compatibility, with verified cross-user isolation and process teardown before transported benchmarking is accepted. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main launches candidate code under the evaluator's process identity with its inherited environment. No live cross-principal reproduction was executed in this read-only review. Is this the best way to solve the issue? Yes, the explicit transport and shared comparison contract are a focused solution that preserves native behavior; acceptance still depends on evidence for the actual principal boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f50d4ce71e3e. LabelsLabel justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
Record evaluator-owned execution identity per suite and enforce compatible modes in comparisons, budget checks, and source summaries while preserving independent RSS semantics. Punchcard-Session: coral-orchard-orchard-d4
|
Merged via squash.
|
Preserve the reviewed harness while incorporating the landed benchmark prerequisite. Punchcard-Session: coral-orchard-orchard-d4 * commit '4407ed19ac63b1c1c84a0cfe6eb4bbeca9c2322c': (1196 commits) fix(perf): isolate benchmark subprocess transport (#144159) refactor(auth): await Copilot cache persistence (#144810) refactor(web-fetch): exercise URL normalization through the public tool (#144887) fix(ollama): preserve hosted subdomain model context (#144891) fix(doctor): explain Codex plugin health failures (#144813) fix(channels): honor pinned accounts in Mattermost model menus (#144880) fix(update): failed-update records hide the triggering error behind the excerpt tail (#144729) fix(logging): preserve OpenClaw package references in diagnostics (#144808) fix: retain plugin detail tab selections while inspection loads (#144647) fix: keep discovered models when sign-in tokens renew (#144861) fix(update): preserve local package overrides (#89985) fix(update): resolve compatibility bridges within the runtime graph (#144831) chore(i18n): refresh native locales (#144856) fix: preserve child signal termination during CLI respawn (#144838) fix(text): hide encoded MiniMax tool envelopes (#126307) fix(subagents): deliver child replies that match the empty placeholder (#130647) fix(cli): reject blank message channel selectors (#144802) fix(telegram): preserve mixed text order and pending stop (#144839) fix(memory): restore FTS fallback for same-name view collisions (#144783) chore(release): close out 2026.9.4 on main (#144708) ...
* fix(perf): isolate benchmark subprocess transport Run transported CLI samples and their temporary state through the explicit SUT transport while preserving native measurements. Reject unsupported transported runtime RSS and profiles before launching candidate code. Punchcard-Session: coral-orchard-orchard-d4 * fix(perf): reject mixed benchmark execution modes Record evaluator-owned execution identity per suite and enforce compatible modes in comparisons, budget checks, and source summaries while preserving independent RSS semantics. Punchcard-Session: coral-orchard-orchard-d4
What Problem This Solves
Isolated CLI benchmarks must launch candidate code outside evaluator authority
without comparing transported timings against direct-native measurements.
Why This Change Was Made
Adds benchmark subprocess transport and an explicit native-versus-transport
execution-mode marker. Saved comparisons, budget evaluation and source-summary
consumption reject mixed modes rather than silently combining incompatible
measurements.
Ordinary native execution and runtime-RSS behavior remain intact. Unsupported
transport/runtime-RSS combinations reject before prefix execution.
User Impact
CLI benchmarking remains available through the isolated source lane, with
transport overhead identified rather than hidden in native baselines.
Existing route: #144159.
Harness: #144162.
Activation: #127240.
Evidence
d91704b4fbdbb47f6b036f198ec433d476cc331e.full changed gate.
succeeded (
pull_request, attempt 1,ci.yml): 93 terminal jobs,76 successful and 17 skipped; gate
103034639461passed.Skipped jobs are not proof.
cleanup proof is a final activation gate with landed dependencies; it has
not passed.
Punchcard-Session: coral-orchard-orchard-d4