Repository navigation
Keep historical runtime startup inputs on the selected controller - #6120
Conversation
Use one historical controller for the startup launch inputs and pass its identity through the staging runner. Builds on the historical startup coverage by Mrunal Patel in #4552.
|
🦞👀 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 maintainer review before merge. What this changesThis PR selects historical startup programs and companion values from the verified controller image and checks repository helpers against the selected runtime layout. Example: Qualify the October 30 controller revision 54bfa7f with Codex 0.163.0-alpha.2.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open for maintainer triage: it repairs historical-image qualification, addresses the earlier repository-probe review, and introduces no actionable defect found in this review. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe runtime-image startup suite receives a selected controller/runtime pair, runs their startup programs in isolated containers, and produces qualification results for CI and staging. flowchart TD
A[Selected image pair] --> B[Startup profile]
B --> C[Controller identity check]
C --> D[Packaged startup inputs]
D --> E[Runtime container probes]
E --> F[Qualification results]
Technical reviewBest possible solution: Land the scoped startup-input repair through normal maintainer review while keeping the protected staging runner decision in its separate PR. Do we have a high-confidence way to reproduce the issue? Current main visibly mixes historical Gateway programs with checkout Harness and repository initializer programs; the earlier review identifies the resulting missing access/client modules in the October 30 runtime. Is this the best way to solve the issue? The change uses the existing startup profile as the single selector, preserves current-profile inputs, and verifies historical packaging without weakening the broker behavior assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7dd321619d74. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 21, 2026, 7:46 AM ET / 12:46 UTC (Revision 2). |
| imageTestOptions, | ||
| () => verifyNativeThread(requiredImage(), seccompOptions, syntheticCodexApiKey), | ||
| () => | ||
| verifyNativeThread(requiredImage(), controller.harness, seccompOptions, syntheticCodexApiKey), |
There was a problem hiding this comment.
[P2] Use the selected controller inputs in both repository startup probes
Staging selects the entire startup file for the reviewed October 30 controller/runtime pair. The dedicated command and stock Git broker cases still load the checkout Harness. The dedicated command requires github/access/client/router.js. The stock broker first runs the checkout material initializer, which imports repo/access/client-contracts.js. The historical runtime packages both modules under the earlier credentials paths. The dedicated command’s file check and the broker’s allowed-material setup therefore fail on the historical image, preventing the qualification receipt. Dedicated command · Broker setup · Initializer import
The mismatch predates this patch and remains in the flow it repairs. I verified it against the pinned Dockerfile and the packager, which restricts the historical client to the old paths and preserves them in the emitted tree. This is source and build-recipe evidence. Published-image execution remains unverified. Historical Dockerfile · Historical packager
Pass the selected Harness into both cases and source the broker’s two repository initializers from the same controller. Verify router and helper wiring for the selected runtime layout, then run the full historical startup file against the reviewed pair.
This is Kevin's agent reviewing on behalf of Kevin - If you want my human's direct feedback, please message him with the PR link
There was a problem hiding this comment.
Pushed the source fix in 66187d0. Both repository startup probes now use the selected controller's Codex Harness, and the stock Git broker loads both repository material initializers from that controller.
Both historical images came from the October 30 publication. A second run reproduced both digests. The two selected startup cases improved from 1/2 to 2/2 passing. An offline synthetic fixture executed both real initializers in the historical runtime and passed all six checks covering refusal, exact material, output handling, permissions and routing. It exercised no network, broker exchange or K3d. The mismatched controller was rejected before startup. Local static checks passed.
Repository autoreview timed out without a verdict. A separate independent source review examined the correction.
The full historical startup file remains unqualified because preparation hit a denied loopback operation, leaving 0/13 cases executed. Installed stock Git broker and complete Release staging qualification remain outstanding. This thread stays open until the full historical case passes.
There was a problem hiding this comment.
Kevin, I corrected the startup fixture in b9b29591. The earlier run passed 12 of 13 tests because the stock broker check expected the current Git helper in the October 30 runtime.
Both startup probes now use the selected controller's Harness, and the broker uses both initializers from that controller. The tests check the exact Git credential origin, helper reset, helper command and generation, and verify the installed launcher.
The complete startup suite passed with zero skips on both image pairs.
- Published October 30 controller and runtime images passed 13/13.
- Current images built by PR CI passed 13/13.
Teardown was verified for both runs.
|
@clawsweeper re-review Please review the current revision of this pull request after the historical controller startup verification. |
|
🦞👀 Re-review progress:
|
Summary
Historical runtime startup tests mixed checkout launch inputs with the selected historical controller. That could exercise a mix of releases and give a misleading qualification result.
Use the selected historical controller for both Gateway launchers, the Codex Harness, the native worker, the stop budget, the plugin helpers, and the policy source revision. Verify the local controller image ID and its OpenClaw Enterprise revision before extraction. The staging runner carries the controller ID and revision through its filtered child environment. The current profile continues to use checkout inputs.
Thanks to Mrunal Patel (@mrunalp) for the earlier historical startup coverage in #4552.
Verification
These checks cover startup input selection and staging runner transport. Installed behavior and qualification of the published historical images still require the Release staging run.