Skip to content

fix(images): identify rejected base image probes - #14930

Open
rsliter wants to merge 4 commits into
mainfrom
codex/base-image-probe-diagnostics
Open

rsliter wants to merge 4 commits into
mainfrom
codex/base-image-probe-diagnostics

Conversation

@rsliter

@rsliter rsliter commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Outcome

Base-image rejection reports the failed compatibility probe, exit status or timeout, and a bounded local image identity snapshot. Diagnostics run on the host; shared image inputs match main.

Reason

Staging qualification for #14844 rebuilt OpenClaw and Deep Code bases after generic capability warnings. Those warnings did not distinguish a mismatch, timeout, or container failure.

Changes

  • Share a host-side failure reporter across security-inventory and Deep Code probes. Discard raw container output and error messages.
  • Preserve probe arguments, security flags, 20-second deadlines, acceptance checks, and fallback decisions. Inspect local image identity only after rejection, within two seconds.
  • Keep onboarding and rebuild fixtures aligned with the existing inventory script and status-bearing runner result.
  • Tighten the existing Docker import-count ratchet from 40 to 39 after consolidating imports.

Verification

  • CLI base-image tests: 187 passed, including failures, timeout, launch failure, hostile output, and generated inventory acceptance/rejection.
  • Security-package and runtime-tool integration tests: 184 passed, including reduced-context renderer parity.
  • Strict inventory fixture and DNS argv tests: 2 passed.
  • Strict Pi qualification receipt check: passed. Both shared inventory generators match main byte for byte; no receipt or authority changes.
  • Normal installed commit hooks: passed. Publication validation and current CI results are tracked in PR checks.
  • No secrets, API keys, or credentials in the diff. No live E2E manually dispatched; the original runtime mismatch remains unobserved.

Review notes

Author self-review covers the final diff at 6bd1677355693ff1328737dc273ffd4d93e4afa2. CodeRabbit is clear. All nine Advisor reports were collected: eight are clear; the architecture finding requests diagnostics on the separate, unchanged Hermes MCP/ACP runtime probe.

Maintainer Rebecca Sliter approved accepting Require no Advisor blockers as a non-success for that finding and commit only: approval and rationale, follow-up #14942. The Advisor result remains red; no branch rules or other checks were bypassed. Hermes stays outside this minimal change.

PR E2E qualification is separately waived, including automatic self-hosted qualification 46544319301 and its sandbox-image build prerequisites. Their actual statuses remain visible and are not claimed as passes. Follow-up #14942 also tracks qualification applicability. Required GitHub branch checks, ordinary PR CI, and the managed-image workflow passed. Independent human approval remains required. The image ID is a post-probe snapshot, not an atomic binding to the executed container.


Signed-off-by: Rebecca Sliter 571084+rsliter@users.noreply.github.com

Summary by CodeRabbit

  • Bug Fixes
    • Improved validation of supported base images, including checks for expected versions, sandbox identity, required utilities, and security inventory.
    • Failed checks now provide clearer, sanitized diagnostics, while container output remains suppressed.
    • Base-image validation now handles unsuccessful, timed-out, or unlaunchable checks more consistently.

Signed-off-by: Rebecca Sliter <571084+rsliter@users.noreply.github.com>
@rsliter rsliter self-assigned this Nov 30, 2026
@copy-pr-bot

copy-pr-bot Bot commented Nov 30, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Base-image checks now use a shared probe that validates command output and reports bounded diagnostics. Deep Agents Code and security-inventory checks use the helper. Tests and Docker mocks are updated, and the Docker adapter fan-in limit decreases from 40 to 39.

Changes: Base-image probe checks

Layer / File(s) Summary
Shared probe and validation
src/lib/sandbox-base-image/probe.ts, src/lib/sandbox-base-image/probe.test.ts
captureBaseImageProbe runs Docker checks with output suppressed and validates status and exact output. It classifies failures and sanitizes diagnostic metadata. Tests cover probe outcomes and generated inventory checks.
Adopt the shared probe
src/lib/agent/deep-agents-code-base-image.ts, src/lib/sandbox-base-image/security-inventory.ts, src/lib/agent/*base-image*.test.ts, src/lib/onboard/base-image.test.ts, test/helpers/base-image-test-harness.ts, test/helpers/onboard-script-mocks.cjs
Deep Agents Code and security-inventory checks use the shared probe. Docker test mocks implement dockerRun, and related tests check probe options and diagnostic metadata.

Architecture budget

Layer / File(s) Summary
Lower Docker adapter fan-in limit
ci/source-architecture-budget.json
The configured fanIn.maxByFile limit for the Docker adapter decreases from 40 to 39.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant sandboxBaseImageHasPackageInventory
  participant captureBaseImageProbe
  participant dockerRun
  sandboxBaseImageHasPackageInventory->>captureBaseImageProbe: probe name, image reference, arguments, expected marker
  captureBaseImageProbe->>dockerRun: run probe with timeout and output options
  dockerRun-->>captureBaseImageProbe: status and stdout
  captureBaseImageProbe-->>sandboxBaseImageHasPackageInventory: exact-match output or empty string
Loading

Suggested reviewers: cv, apurvvkumaria

Merge Risk: Minimal · up to 6bd16

This change adds bounded host-side diagnostics for rejected base-image probes without changing acceptance behavior. No remaining merge-blocking risk was found.

Security architecture risk: Minimal · up to 6bd16

Base images must still pass the same compatibility checks. Rejections now include bounded diagnostics without printing raw container output, and the added metadata lookup cannot make a rejected image pass.

Security review details

Security Blast Radius

  • inferred — The added Docker operation is a read-only metadata lookup for the rejected candidate under existing runner authority. It neither pulls an image nor feeds metadata back into the acceptance decision.

Trust Boundaries and Controls

  • observed — The runner executes Docker without a host shell and suppresses raw probe output. The warning includes runtime status and only format-checked image references, SHA-256 IDs, and numeric version values; it does not print raw container output or error messages.
Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(images): identify rejected base image probes" matches the main change. The PR adds bounded host-side diagnostics that identify which base image compatibility probe was rejected, along w…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title "fix(images): identify rejected base image probes" matches the main change. The PR adds bounded host-side diagnostics that identify which base image compatibility probe was rejected, along with its exit status or timeout and a local image identity snapshot. The title is concise, uses a conventional commit prefix, and names the primary change. It does not mention the secondary changes, such as the test fixture updates and the Docker import-count ratchet change from 40 to 39, but the PR does not need to cover every detail.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 4d6e4d4 and 6bd1677.

Files selected for processing: 3

  • src/lib/sandbox-base-image/probe.test.ts
  • src/lib/sandbox-base-image/probe.ts
  • test/helpers/onboard-script-mocks.cjs
Files with no reviewable changes: 1

  • test/helpers/onboard-script-mocks.cjs
Files skipped from review as they are similar to previous changes: 1

  • src/lib/sandbox-base-image/probe.ts

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

@rsliter

rsliter commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening

This long-running authoring session includes unrelated earlier work. Diagnostics implementation started 2026-11-30T17:56:04.213Z; report cutoff 2026-11-30T18:13:42.205Z.

Field Status Value Evidence or limit
Harness recorded Codex Desktop, CLI 0.148.0-alpha.9 Persisted session metadata and repository activity identify the authoring record.
Skills partial Contributor implement-issue, create-pr, onboard; maintainer audit-e2e-assertions Current task reads are retained; some earlier tool outputs are truncated, preventing a complete historical inventory.
Instruction files partial AGENTS.md; WRITING.md; development reference; contribution guidance; publication and validation references; PR and session templates Complete current reads where available; earlier truncated outputs limit the whole-session inventory.
Tool calls partial exec wrappers: 16892; wait: 865; sleep: 876; spawn-agent: 14; other recorded calls: 95 Counts attempted calls, including failures, through cutoff. Nested runtime tool invocations are not separately logged. No subagents used for this diagnostics change.
Session window recorded 2026-08-25T21:31:59.024Z to 2026-11-30T18:13:42.205Z; 96 days, 20:41:43.181000 Whole-session elapsed time includes idle time and unrelated work.
Compactions recorded 264 Persisted compaction events through cutoff.
Models recorded gpt-5.6-sol; gpt-6.1-sol Distinct model values in persisted turn metadata, in first-seen order.
Reasoning levels recorded xhigh; high; medium Distinct recorded effort values in first-seen order.

@rsliter

rsliter commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

Please review commit d01234a. This draft adds bounded base-image probe diagnostics; it preserves acceptance checks, fallback behavior, and probe deadlines.

@github-code-quality

github-code-quality Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage/plugin

main 63002cd codex/base-image-pro... 6bd1677 +/-
96% 97% +1%
View coverage of the 10 most impacted files.
File main 63002cd codex/base-image-pro... 6bd1677 +/-
nemoclaw/src/sh...cy-boundary.cts 100% 97% -3%
nemoclaw/src/onboard/config.ts 98% 96% -2%
nemoclaw/src/ru...time-context.ts 100% 99% -1%
nemoclaw/src/bl...print/runner.ts 95% 95% 0%
nemoclaw/src/bl...ime-identity.ts 97% 97% 0%
nemoclaw/src/bl...t-management.ts 100% 100% 0%
nemoclaw/src/index.ts 94% 99% +5%
nemoclaw/src/de...search-state.ts 0% 100% +100%
nemoclaw/src/on...native-route.ts 0% 100% +100%
nemoclaw/src/search-config.ts 0% 100% +100%

TypeScript / code-coverage/cli

main 63002cd codex/base-image-pro... 6bd1677 +/-
84% 86% +2%
View coverage of the 10 most impacted files.
File main 63002cd codex/base-image-pro... 6bd1677 +/-
src/lib/onboard.ts 62% 50% -12%
src/lib/actions...ess-recovery.ts 65% 83% +18%
src/lib/inferen...ollama/proxy.ts 41% 64% +23%
src/lib/onboard.../application.ts 55% 84% +29%
src/lib/domain/...y/dimensions.ts 0% 75% +75%
src/lib/inferen...er/lifecycle.ts 0% 75% +75%
src/lib/actions...ry/operation.ts 0% 76% +76%
src/lib/actions...try/snapshot.ts 0% 84% +84%
src/lib/inferen...ovider/index.ts 0% 90% +90%
src/lib/hermes-...yard-routing.ts 0% 95% +95%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.


Updated November 30, 2026 23:18 UTC

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Signed-off-by: Rebecca Sliter <571084+rsliter@users.noreply.github.com>
@rsliter

rsliter commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

Please review commit d70b527. The follow-up aligns the existing exact inventory-script fixture and its status-bearing runner result with the new probe. It changes only the shared test helper, preserving all assertions and production checks.

All nine affected integration tests pass locally, including the DNS argv and stale-gateway recovery cases that failed in the initial CI. Package-download HTTP 404s are an inherited image-build blocker addressed separately by #14913; fresh Pi qualification receipts remain pending those builds. No image pins, package rules, retries, or deadlines are changed here.

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Signed-off-by: Rebecca Sliter <571084+rsliter@users.noreply.github.com>
@rsliter

rsliter commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

Please review commit 4d6e4d4 against main fd9b476. This normal merge consumes the already-merged pinned-zlib download fix in #14913. The main-relative change remains the bounded probe diagnostics and strict fixture support.

Both formerly failing CLI shards passed on d70b527; the one allowed retry of unrelated 5-second unit timeouts also passed. The merged tree passed 21 focused native-package, DNS argv, and gateway recovery checks. Current-head image qualification and fresh Pi receipts remain pending. No assertions, deadlines, or image acceptance rules were relaxed.

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor
Action not completed

No files to review.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@wscurran wscurran added area: observability Logging, metrics, tracing, diagnostics, or debug output area: packaging Packages, images, registries, installers, or distribution area: security Security controls, permissions, secrets, or hardening integration: dcode LangChain Deep Code integration behavior integration: openclaw OpenClaw integration behavior labels Nov 30, 2026
Signed-off-by: Rebecca Sliter <571084+rsliter@users.noreply.github.com>
@rsliter

rsliter commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator Author

Manual PR E2Es are waived for commit 6bd1677355693ff1328737dc273ffd4d93e4afa2 and its host-only diagnostics scope, per Rebecca Sliter (rsliter): “agreed, make the change and LMK when it’s ready, I’ll waive any E2Es for this.”

The final diff leaves shared image inputs, package versions, image pins, probe acceptance checks, security flags, and deadlines unchanged. Local evidence: 187 CLI tests, 184 security/package tests, 2 strict fixture tests, and the strict Pi qualification check passed. Normal publication hooks passed.

This records the requested manual E2E exception. Required CI, automated review, and independent merge approval still apply. No manual E2E will be dispatched for this scope.

Clarification for automatic qualification: the requester's original waiver of “any E2Es for this” also covers E2E / Self-Hosted PR Qualification, run 46544319301, automatically triggered after the ready transition. This includes its sandbox-image build prerequisites. Those jobs are not required to qualify this unchanged host-only commit under the waiver; their actual queued or eventual results remain visible and are not claimed as passes. No jobs were manually dispatched or cancelled.

Required GitHub branch checks (checks, commit-lint, dco-check, check-hash, changes), verified signatures, and independent approval remain required. Follow-up #14942 records validation-scope review separately from this PR.

@rsliter

rsliter commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

Please review commit 6bd1677355693ff1328737dc273ffd4d93e4afa2. The change is now host-side diagnostics only: shared inventory generators match main, and inventory sub-stage labels were removed. Probe acceptance, security flags, deadlines, image pins, and package versions are unchanged.

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@github-actions

Copy link
Copy Markdown
Contributor

PR Review Advisor finished for commit 6bd1677. Include the Advisor findings in the complete PR feedback collection. Verify and group valid findings before repair.

Request review only when Require no Advisor blockers is green.

All previous runs

@rsliter

rsliter commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator Author

Review disposition for 6bd1677355693ff1328737dc273ffd4d93e4afa2 against fd9b4765d406ce8792bda0a9008ee595f940762b:

  • CodeRabbit completed its review with no actionable comments.
  • All nine Advisor specialist reports were collected and read. Eight are clear. The architecture report asks to migrate the separate Hermes MCP/ACP runtime probe to the new diagnostics helper.
  • F-architecture-standard-work-136700f5eb26f35e4995 is classified as an out-of-scope enhancement, with its blocking severity unsupported for this change. hermesBaseImageSupportsRuntime is unchanged from main, has a distinct MCP/ACP contract, and retains its existing 20-second timeout and success marker. The new helper moves only security-inventory and Deep Code probes. No Hermes runtime regression or failed acceptance requirement was demonstrated. The migration specialist independently identifies that separate owner rather than a partially migrated caller. Adding Hermes runtime diagnostics would expand the explicitly minimal OpenClaw/Deep Code diagnostic scope, so no code was added for that request.
  • The deterministic E2E floor selects full-e2e, security-posture, and hermes-e2e; all nine specialists recommend no additional selections. These manual E2Es are not run, under the recorded host-only E2E waiver. No runtime success is claimed.

Require no Advisor blockers is red because the gate counts that architecture finding. This disposition does not change the gate result. CI tests passed; image activation is still running. The PR stays draft. Independent human approval remains required.

@rsliter

rsliter commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator Author

Maintainer exception: Advisor scope finding

Approved by Rebecca Sliter (@rsliter, repository admin) for commit 6bd1677355693ff1328737dc273ffd4d93e4afa2: “Approve Advisor exception; keep minimal scope.”

Accept the non-success result of Require no Advisor blockers in run 46535520888 for finding F-architecture-standard-work-136700f5eb26f35e4995 only. Leave the separate Hermes MCP/ACP runtime probe unchanged.

Rationale: the finding requests broader diagnostic coverage on an unchanged validation owner. This PR's accepted scope is bounded host diagnostics for security-inventory and Deep Code probes. No Hermes regression was demonstrated. Eight other Advisor specialists and CodeRabbit are clear; all PR CI and image checks passed. Complete source disposition.

Follow-up: #14942, owned by @rsliter, tracks the scope/severity classification separately. The existing manual E2E waiver remains separate.

The Advisor result remains visibly red and is not claimed as a pass. This exception does not change branch rules, waive other checks, or supply independent approval. Normal merge still requires an eligible independent human approval.

@rsliter
rsliter marked this pull request as ready for review December 1, 2026 00:19

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: observability Logging, metrics, tracing, diagnostics, or debug output area: packaging Packages, images, registries, installers, or distribution area: security Security controls, permissions, secrets, or hardening integration: dcode LangChain Deep Code integration behavior integration: openclaw OpenClaw integration behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants