Skip to content

fix(images): fetch pinned Vim from Debian snapshot - #14715

Merged
prekshivyas merged 4 commits into
mainfrom
codex/fix-pinned-vim-download
Nov 21, 2026
Merged

prekshivyas merged 4 commits into
mainfrom
codex/fix-pinned-vim-download

Conversation

@rsliter

@rsliter rsliter commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Outcome

Restore base-image builds when Debian removes the pinned ARM64 Vim package from its live pool. All four base Dockerfiles fetch the identical package from the immutable snapshot already used for Expat.

Reason

PR #14659 image publication 44789389707 failed before candidate behavior because the ARM64 Vim URL returns HTTP 404. This separate prerequisite repair keeps that diagnostic PR scoped.

Changes

Use the existing Debian snapshot for vim-tiny in OpenClaw, Hermes, Deep Agents Code, and Pi. Rename the existing snapshot variable to describe both consumers. Update the existing shell contract's expected URL. Record the genuine AMD64 and ARM64 Pi qualification receipts and replace their two authority digests, as required for changed Pi image inputs.

Package versions, SHA-256 values, TLS and hash verification, retry budgets, install order, and runtime code remain unchanged. Dockerfile comments identify the separate snapshot and live-pool package sources.

Verification

  • Downloaded both architecture packages from the snapshot and verified the existing SHA-256 values: AMD64 df2d037d405f1376d1d8025d022dba81fbfed8695f68a131b788d16d3b68cf83; ARM64 3948582a06ba027513d036c446f6dc9b7a9ed344a460ad05f232e2779f484cd1.
  • Existing base security contract: 144 tests passed across all four images and both architectures, including installation integrity and cleanup.
  • Affected tests: 501 passed; five failed on local Python build-backend availability or macOS fixture permissions. All five failures reproduced on unchanged main 403ec4989b8c232cca6e1894efbe2ef2a2b71585.
  • Installed commit hooks passed with hadolint 2.14, matching CI's pinned version. Local Homebrew 2.15 reports an unchanged-main HEALTHCHECK warning; no hook was skipped.
  • Qualification run 44795346407 passed for image-input commit 9e47fee713878abf2b92c17cf321cdf30ead918e, including both Pi builds/startup/publication and all-agent Docker AMD64, Docker ARM64, and rootless Podman activation. Artifact hashes, source/cohort bindings, image digests, and cleanup were independently verified.
  • Receipt follow-up 5b4d5de63779ee0feb068270798e968488abb45f: 85 receipt-admission and agent-lifecycle tests passed; strict source parity and installed publication validation plus CLI TypeScript passed. The image inputs are unchanged from qualified commit 9e47fee; both receipt files are exact producer artifact bytes.
  • Commit 5b4d5de: source CI, security, CodeRabbit, and image qualification 44824510396 passed, including both Docker platforms and rootless Podman. Advisor run 44827801940 reported one duplicated documentation finding about stale package-source comments.
  • Signed commit 015c79818d02ede786799dac1a9b3536cfe52cee corrects those four comments. All non-comment Dockerfile content is identical. Eight package execution contracts and installed commit/publication hooks passed; documentation validation found zero errors and two existing warnings.
  • Image qualification 44837524030 passed for 015c798, including both Docker platforms and rootless Podman. AMD64 initially failed before Hermes startup on an image-pull stream interruption; its single job-only retry passed. Six published image contracts, all three activation results, matching digests, 39 cleanup actions, and Docker absence on Podman were verified. Security, docs, all 12 source-test shards, and CodeRabbit passed; strict CI correctly required replacement Pi receipts after the raw Dockerfile comment change.
  • Signed receipt-only follow-up c812971318e70376d05057a75ccbf779dc8312f4 copies the exact AMD64/ARM64 producer artifacts from that run and replaces their authority digests. Strict source parity, 85 focused tests, installed commit/publication checks, and CLI TypeScript passed. Image inputs remain identical to qualified 015c798. Fresh exact-head CI, automated review, image qualification, and recommended manual E2E remain pending. No secrets or credentials are in the diff.

Review notes

This is a separate URL-only prerequisite repair for #14659. Local review of NVIDIA/NemoClaw@c812971318e70376d05057a75ccbf779dc8312f4 covered agents/hermes/Dockerfile.base, agents/langchain-deepagents-code/Dockerfile.base, agents/pi/Dockerfile.base, the root base Dockerfile, their existing test consumer, both Pi receipt files, and src/lib/agent/candidate-authority.ts. Source comparison, exact-byte package verification, immutable artifact verification, and receipt source-parity validation confirmed unchanged hashes, all four sibling consumers, existing denial/integrity/cleanup contracts, and no workflow or privilege change. Independent automated review remains required.


Signed-off-by: Rebecca Sliter [email protected]

Summary by CodeRabbit

  • Bug Fixes
    • Updated sandbox image downloads so Expat and vim-tiny use Debian Snapshot packages, while other packages continue to use the official Debian package pool.
  • Chores
    • Refreshed the Pi agent’s qualification records for Linux/amd64 and Linux/arm64.

@copy-pr-bot

copy-pr-bot Bot commented Nov 20, 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 20, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Four base Dockerfiles now use debian_snapshot_url for Expat and vim-tiny downloads. The package-download test, Pi qualification records, and Pi receipt digest allowlist also change.

Changes: Debian Snapshot Package Sources

Layer / File(s) Summary
Update package download sources
Dockerfile.base, agents/{hermes,langchain-deepagents-code,pi}/Dockerfile.base, test/runtime/sandbox/sandbox-base-security-packages.test.ts
The four base Dockerfiles use debian_snapshot_url for Expat and vim-tiny downloads. The test expects vim-tiny to use the snapshot archive. Package versions, checksums, and download settings remain unchanged.
Update Pi qualification records
ci/pi-agent-qualification-v1-linux-{amd64,arm64}.json, src/lib/agent/candidate-authority.ts
The Pi qualification records contain updated image digests and references, source revisions, releases, and cohorts. The Pi receipt digest allowlist contains two replacement digests.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: cv

Merge Risk: Minimal · up to c8129

This change restores base-image builds that broke when Debian removed the pinned ARM64 Vim package from its live pool, by fetching the same pinned package from the immutable snapshot. It also refreshes the Pi qualification records and their accepted digests together. The supplied evidence shows no concrete regression, so the change looks safe to merge once the pending CI finishes.

Security architecture risk: Minimal · up to c8129

The source change preserves package versions, checksum verification, and installation ordering. The refreshed Pi receipts match their new acceptance hashes, while candidate admission controls remain unchanged. No introduced or worsened security or failure-containment risk was established.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The directly affected supply-chain scope is the four base-image builds and images derived from them. The admission change is limited to the two accepted Pi qualification records; controlling the receipt path alone still does not authorize arbitrary image bytes.

Trust Boundaries and Controls

  • observed — Downloaded package contents remain subject to pinned checksum verification before installation. Receipt admission separately checks the same in-memory contents that it parses, after regular-file and identity checks, and closes its descriptor on success or failure. These controls predate this PR and are retained.

Resilience and Maintainability Implications

  • observed — The inspected rebuild preparation fails closed when candidate qualification is unavailable or unsupported, requires a managed-image replacement, and retains a frozen handoff containing previous authority. Existing checks reject provider, reference, source-revision, or cohort mismatches during handoff reuse. This PR does not modify those transition controls.
Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "fix(images): fetch pinned Vim from Debian snapshot" matches the main change. The PR changes all four base Dockerfiles so they fetch the pinned vim-tiny package from the Debian snapshot arch…
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.
Full details: Title check

Explanation

The title "fix(images): fetch pinned Vim from Debian snapshot" matches the main change. The PR changes all four base Dockerfiles so they fetch the pinned vim-tiny package from the Debian snapshot archive instead of the live Debian pool, which was affected by Debian removing the ARM64 package. The title is specific, concise, and free of file lists or vague terms. The Pi qualification records and receipt updates are supporting changes that the title does not need to cover.

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 015c798 and c812971.

Files selected for processing: 3

  • ci/pi-agent-qualification-v1-linux-amd64.json
  • ci/pi-agent-qualification-v1-linux-arm64.json
  • src/lib/agent/candidate-authority.ts

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

@rsliter

rsliter commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness recorded Codex Desktop; startup CLI 0.155.0-alpha.9.2 Persisted session metadata; startup version is not a claim about later app updates.
Skills partial nemoclaw-contributor-implement-issue; nemoclaw-contributor-create-pr; nemoclaw-maintainer-classify-ci-failure; nemoclaw-maintainer-e2e Complete relevant reads for the active repair; historical output includes truncated reads, so a complete whole-session skill inventory cannot be established from those outputs.
Instruction files partial AGENTS.md; WRITING.md; CONTRIBUTING.md; agents/langchain-deepagents-code/AGENTS.md; PR and session-report templates Complete reads visible for the active repair. Development and validation references were read by applicable section. Historical truncated output limits the whole-session inventory.
Tool calls partial exec: 4410; wait: 292; sleep: 55; spawn_agent: 3; followup_task: 2; list_agents: 3; wait_agent: 11; send_message: 2; request_user_input_async: 2 Attempted wrapper calls in the persisted whole-session record, including failures. Nested tool invocations are not added to these counts. Historical agent calls precede this repair; no subagent wrote this patch.
Session window recorded 2026-09-21T15:50:49.612Z to 2026-11-20T18:37:55.077Z; 60 days, 2:47:05.465000 Whole long-running chat including idle time and unrelated prior work. The Vim URL repair was authored November 20 after explicit approval for a separate prerequisite repair. Prior repository activity is inherited context.
Compactions recorded 48 Persisted compaction events through cutoff.
Models partial gpt-5.6-sol; gpt-6.1-sol Ordered model values present in persisted turn contexts. Other runtime overrides are not recorded there.
Reasoning levels recorded high; medium Ordered changes present in persisted turn contexts through cutoff.

@github-code-quality

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

Copy link
Copy Markdown
Contributor

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage/plugin

main 63002cd codex/fix-pinned-vim... c812971 +/-
96% 97% +1%
View coverage of the 10 most impacted files.
File main 63002cd codex/fix-pinned-vim... c812971 +/-
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/fix-pinned-vim... c812971 +/-
84% 86% +2%
View coverage of the 10 most impacted files.
File main 63002cd codex/fix-pinned-vim... c812971 +/-
src/lib/onboard.ts 62% 50% -12%
src/lib/actions...ess-recovery.ts 65% 83% +18%
src/lib/inferen...ollama/proxy.ts 41% 61% +20%
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 21, 2026 01:53 UTC

@rsliter

rsliter commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

Please review exact signed commit 9e47fee713878abf2b92c17cf321cdf30ead918e. This prerequisite repair changes only the pinned Vim download location across the four existing base-image owners. Both architecture downloads match the unchanged SHA-256 pins; the existing 144-test security contract and installed publication checks passed. Local broad-run limitations are recorded in the PR body.

@coderabbitai

coderabbitai Bot commented Nov 20, 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.

@rsliter

rsliter commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

Please review signed receipt follow-up 5b4d5de63779ee0feb068270798e968488abb45f.

The preceding managed-image run passed for image-input commit 9e47fee713878abf2b92c17cf321cdf30ead918e: both Pi platform build/startup/publication jobs and all-agent Docker AMD64, Docker ARM64, and rootless Podman activation passed. The immutable archive hashes, exact source/cohort/platform bindings, published digest sets, and cleanup were verified.

This follow-up copies the two exact Pi contract artifacts and replaces their authority digests. It resolves the expected strict CI receipt-refresh requirement. No image input changed after the qualified producer commit; strict source parity passes. Keeping the qualified parent source in the receipts is intentional.

The 85 focused receipt-admission and agent-lifecycle tests, installed publication validation, and CLI TypeScript passed. Fresh exact-commit CI, automated review, image qualification, and applicable recommended E2E remain pending.

@coderabbitai

coderabbitai Bot commented Nov 20, 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.

@rsliter

rsliter commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

Please review commit 015c79818d02ede786799dac1a9b3536cfe52cee.

Completed collection for 5b4d5de: source CI, security, CodeRabbit, and image run 44824510396 passed. All three activation artifacts confirmed the candidate/cohort and successful cleanup. All nine Advisor specialist artifacts from 44827801940 were collected. Documentation and migration reported the same valid finding: four Dockerfile comments still placed vim-tiny in the live Debian pool.

This commit corrects only those comments. All non-comment Dockerfile content is identical. Eight existing package execution contracts passed, documentation validation found zero errors and two existing warnings, and installed commit/publication hooks passed. The changed raw Pi Dockerfile input requires fresh genuine qualification receipts; those and independent checks remain pending. No readiness claim yet.

@coderabbitai

coderabbitai Bot commented Nov 20, 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.

@rsliter

rsliter commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

Please review signed receipt follow-up c812971318e70376d05057a75ccbf779dc8312f4.

Completed collection for 015c798: image run 44837524030 passed, including Docker AMD64/ARM64 and rootless Podman. AMD64's initial image-pull stream interruption occurred before Hermes startup; the single job-only retry passed. Six immutable producer contracts, all three matching activation results, 39 successful cleanup actions, and Docker absence during Podman execution were verified. Security, docs, all 12 CLI shards, and CodeRabbit passed. Source CI correctly required refreshed Pi receipts after the prior raw Dockerfile comment change; Advisor specialists were skipped at that CI gate.

This commit copies the two exact Pi producer artifacts from that successful run and replaces only their authority digests. Image inputs are unchanged from qualified 015c798. Strict source parity, 85 focused receipt/lifecycle tests, installed commit/publication checks, and CLI TypeScript passed. Fresh exact-head CI and independent review remain pending.

@coderabbitai

coderabbitai Bot commented Nov 21, 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 c812971. 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

@prekshivyas
prekshivyas merged commit c474038 into main Nov 21, 2026
134 of 135 checks passed
@prekshivyas
prekshivyas deleted the codex/fix-pinned-vim-download branch November 21, 2026 04:38
@github-actions github-actions Bot added the v0.0.146 Release target label Nov 21, 2026
prekshivyas added a commit that referenced this pull request Nov 21, 2026
Integrate merged prerequisite #14715 without changing qualified image inputs.
Preserve equivalent immutable Vim file-ID downloads and the OpenShell 0.1.9 Pi receipts.

Signed-off-by: Prekshi Vyas <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v0.0.146 Release target

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants