Skip to content

Keep historical runtime startup inputs on the selected controller - #6120

Merged
freeqaz-openai merged 3 commits into
mainfrom
fix/historical-controller-startup-inputs
Nov 21, 2026
Merged

freeqaz-openai merged 3 commits into
mainfrom
fix/historical-controller-startup-inputs

Conversation

@freeqaz-openai

Copy link
Copy Markdown
Collaborator

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

  • The 13 local startup controls recorded 5 passes and 8 failures on the baseline, then 13 passes on the fix. A synthetic Docker subprocess recorded launch arguments and inputs, including refusals before extraction or launch.
  • The staging qualification suite passed all 10 cases, including pair pull and cleanup and all seven sign-in cases. The parent supplied distinct runtime and controller IDs. The historical child asserted the controller ID and expected revision. Removing the controller ID from the runner allowlist made the child fail its ID assertion.
  • Sibling runtime fixture and model-probe tests passed 18 cases and skipped five that require a local runtime image.

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.

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.
@freeqaz-openai freeqaz-openai added the agent-created PR opened by an AI agent; does not identify the reviewer or approver. label Nov 15, 2026
@clawsweeper

clawsweeper Bot commented Nov 15, 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.

@freeqaz-openai
freeqaz-openai requested a review from a team November 15, 2026 01:48
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal priority bug or improvement with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 15, 2026
@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: Repository probes use checkout Harness and initializer code that expects the newer access/client layout.
  • After: The probes use the paired controller's programs and verify the historical credentials/client layout.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused test repair supported by source-bound historical image execution and passing current-head checks, with no actionable finding.
Proof confidence 🐚 platinum hermit (4/6) This changes qualification tests rather than shipped product behavior; the successful historical-image job binds the exact reviewed source and requires 13 passing real-container cases, while formal protected staging qualification remains separate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Release operators can receive failed or misleading historical-image qualification because startup probes combine programs from different releases.
Reason: The maintainer-authored repair restores the existing historical qualification contract and retains meaningful real-image assertions.

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
Reviewed head: b9b2959115b6de3c7f2655f2846d877081f6393f

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Historical startup profile and launch-program selection keeps the original intent (Qualify published controller and runtime images for staging #4463: Qualify reviewed published historical controller/runtime pairs using trusted checkout tests while keeping test source and image source distinct.)
  • Typed startup suite, container probes, and repository assertions keeps the original intent (e94ec77: Convert the startup suite to TypeScript while preserving module modes, launcher inputs, registration order, and observable broker and filesystem checks.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Preflight source

Source 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 cluster

Relationship: canonical
Canonical: #6120
Summary: This PR carries the historical startup repair retained from the closed runtime update; the protected runner change is adjacent work.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P2: The repair restores accurate qualification of a specifically supported historical image pair with limited impact outside release verification.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-15T01:59:43.509Z sha 912e046 :: needs maintainer review before merge. :: none

Reviewed November 21, 2026, 7:46 AM ET / 12:46 UTC (Revision 2).

@freeqaz-openai
freeqaz-openai marked this pull request as ready for review November 15, 2026 02:08
imageTestOptions,
() => verifyNativeThread(requiredImage(), seccompOptions, syntheticCodexApiKey),
() =>
verifyNativeThread(requiredImage(), controller.harness, seccompOptions, syntheticCodexApiKey),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Teardown was verified for both runs.

@freeqaz-openai

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

Please review the current revision of this pull request after the historical controller startup verification.

@clawsweeper

clawsweeper Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Nov 21, 2026
@freeqaz-openai
freeqaz-openai merged commit 39db805 into main Nov 21, 2026
53 checks passed
@freeqaz-openai
freeqaz-openai deleted the fix/historical-controller-startup-inputs branch November 21, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-created PR opened by an AI agent; does not identify the reviewer or approver. P2 Normal priority bug or improvement 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants