Skip to content

Retain Codex provenance for the runtime images tested in CI - #5436

Merged
freeqaz-openai merged 8 commits into
mainfrom
ci-selected-codex-provenance-20261111
Nov 11, 2026
Merged

freeqaz-openai merged 8 commits into
mainfrom
ci-selected-codex-provenance-20261111

Conversation

@freeqaz-openai

@freeqaz-openai freeqaz-openai commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Shared k3d lanes now record the selected Gateway and Agent image IDs and imported manifest digests in their existing results and diagnostics. When the platform-selected local config digest matches the registered CRI config digest, CI reads one fixed metadata file from a stopped container. Valid records add the platform, upstream OpenClaw commit, Codex version and binary SHA-256. Missing or unbound metadata is marked unavailable. Evidence stays with its preparation, and sourceSha continues to identify the tested checkout.

All 20 focused cases and seven static and documentation checks passed on 6dfd9b8. The CLI tests use controlled cluster responses. Six real Docker cases and a cached-image executable hash check come from the unchanged extraction code on the parent. Live CRI binding, hosted artifact delivery for this head, historical image identity, model execution and release qualification remain unverified.

Required hosted CI passed on 6dfd9b8.

@clawsweeper

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

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. 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:feature Preliminary submission classification; full source review pending. labels Nov 11, 2026
@clawsweeper

clawsweeper Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR retains selected Gateway and Agent image identities and validated Codex build metadata in existing k3d CI results and diagnostics.

Example: A shared k3d lane selects a linux/amd64 runtime containing Codex 0.164.0.

  • Before: Lane results do not retain the selected runtime's Codex version or binary hash.
  • After: When host and CRI config digests match, results include Codex 0.164.0, its image-reported binary SHA-256, platform, and upstream OpenClaw commit.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is coherent and has useful lifecycle and sanitization coverage; confidence in the complete collection path remains limited to harness evidence.
Proof confidence 🦐 gold shrimp (3/6) The ordinary contributor proof gate does not apply to this collaborator-authored PR; the body reports controlled-command tooling cases and six real-Docker cases, while explicitly leaving live CRI binding and hosted artifact delivery unverified.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Contributors investigating k3d results cannot identify the selected runtime's Codex build from the retained lane evidence.
Reason: The maintainer-authored direction adds distinct diagnostic value while preserving existing image policy and artifact ownership.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored draft adds useful CI diagnostics beyond the existing build receipt, and inspection found no actionable introduced defect.

Priority: P3
Reviewed head: 88c05d3fd6ea034e0c9a9000d9de888a905a161a

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied evidence does not demonstrate a real k3d lane binding host and CRI identities and delivering the resulting provenance in hosted artifacts.
Agent review details

How this fits together

CI preparation imports selected runtime images into disposable k3d clusters; the change projects verified image metadata from private preparation state into existing result and diagnostic artifacts.

flowchart LR
  A[Selected runtime images] --> B[k3d image registration]
  B --> C[Host and CRI identity check]
  C --> D[Stopped container extraction]
  D --> E[Validated preparation records]
  E --> F[Lane results and diagnostics]
Loading

Technical review

Best possible solution:

Retain provenance through the existing preparation and artifact owners, with unavailable metadata remaining observational and resource lifecycle failures remaining explicit.

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

This is an additive diagnostics capability; source comparison confirms current main lacks the selected-image metadata projection, and no target code was executed during review.

Is this the best way to solve the issue?

The approach fits the existing CI lifecycle, reuses image-config verification, and consolidates extraction instead of retaining competing implementations.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Shared Docker image extraction keeps the original intent (cfbc826: The OpenShell installation helper retained cleanup ownership across cancellation and delayed Docker creation.)
  • Runtime image registration keeps the original intent (d353d52: Explicit CI lanes provisioned owned integration resources and recorded imported image identities.)
  • Retained k3d diagnostics keeps the original intent (deeef1c: Retain sanitized Agent namespace activity before test cleanup removes the underlying cluster evidence.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Free Wortley: Raw commit 7be5044 adds scripts/ci/prepare.mjs:2836 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7be5044c9805; files: scripts/ci/prepare.mjs)
  • kevinlin-openai: Raw commit d353d52 adds scripts/ci/prepare.mjs:753 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d353d527feb7; files: scripts/ci/prepare.mjs)

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.

Labels

Label changes:

  • add P3: This improves contributor diagnostics and image traceability without changing Agent execution or release qualification.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This improves contributor diagnostics and image traceability without changing Agent execution or release qualification.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Capture one real k3d lane result showing matched host and CRI identities, retained Codex metadata, and successful cleanup.

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.

Reviewed November 11, 2026, 3:39 AM ET / 08:39 UTC.

@freeqaz-openai freeqaz-openai changed the title Retain Codex image provenance in k3d CI results Retain Codex provenance for the runtime images tested in CI Nov 11, 2026
@freeqaz-openai
freeqaz-openai marked this pull request as ready for review November 11, 2026 09:18
@freeqaz-openai
freeqaz-openai requested a review from a team as a code owner November 11, 2026 09:18
@freeqaz-openai
freeqaz-openai merged commit f0b9c00 into main Nov 11, 2026
43 of 45 checks passed
@freeqaz-openai
freeqaz-openai deleted the ci-selected-codex-provenance-20261111 branch November 11, 2026 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant