From 532622eb3ddb1c3d1b77b8ee0ce7b4d973ba6dbf Mon Sep 17 00:00:00 2001 From: Zac Wang Date: Wed, 9 Sep 2026 21:53:42 +0000 Subject: [PATCH] feat(ci): promote Deep Agents Code managed image pointers Extends the shipped-agent pointer set from (openclaw hermes) to include langchain-deepagents-code at both managed-images.yaml sites, so the promote lane records and moves : and : consumer pointers for the Deep Agents Code image it already builds, validates, attests, and stages in the six-candidate cohort barrier (#11341). Stock Deep Agents Code onboarding already consumes this image buildless by exact digest, and SHIPPED_MANAGED_IMAGE_AGENTS already names the agent shipped; only the consumer pointers were missing, so downstream custom images (nemo-deepagents onboard --from) had nothing to FROM by name. This aligns the workflow's pointer set with the source contract's shipped-agent list. The publication tests now prove the Deep Agents Code pointer moves only after all cohort aliases stage and that a barrier failure moves no pointer for any agent. The quickstart documents starting custom images FROM the published image. Signed-off-by: Zac Wang --- .github/workflows/managed-images.yaml | 23 +++++++++++-------- .../quickstart-langchain-deepagents-code.mdx | 2 ++ ...anaged-image-publication-promotion.test.ts | 10 ++++---- ...managed-image-publication-workflow.test.ts | 4 ++-- 4 files changed, 23 insertions(+), 16 deletions(-) diff --git a/.github/workflows/managed-images.yaml b/.github/workflows/managed-images.yaml index dd691e2e223..efec04911f7 100644 --- a/.github/workflows/managed-images.yaml +++ b/.github/workflows/managed-images.yaml @@ -3023,9 +3023,10 @@ jobs: # Record the intended root pointers for every shipped agent in its # exact contract. They are not moved until all v2 evidence artifacts - # are durable. Hermes ships alongside OpenClaw (#11228); Deep Agents - # Code stays cohort-only until its own publication decision. - shipped_agents=(openclaw hermes) + # are durable. Hermes ships alongside OpenClaw (#11228), and Deep + # Agents Code alongside both (#11341), matching + # SHIPPED_MANAGED_IMAGE_AGENTS in src/lib/onboard/managed-image. + shipped_agents=(openclaw hermes langchain-deepagents-code) release_tag="$(jq -r '.[0].release // empty' "$CANDIDATE_SET")" while IFS= read -r candidate; do @@ -3269,12 +3270,14 @@ jobs: exit 1 fi cohort="$PUBLICATION_COHORT" - # Root pointers move for every shipped agent: OpenClaw and, per - # #11228, Hermes. Deep Agents Code stays cohort-only. Every shipped - # agent's contract and exact cohort bytes are validated before any - # pointer moves. A registry failure can leave an earlier agent's - # pointers moved; rerunning this job reconciles them to this cohort. - shipped_agents=(openclaw hermes) + # Root pointers move for every shipped agent: OpenClaw, Hermes + # (#11228), and Deep Agents Code (#11341), matching + # SHIPPED_MANAGED_IMAGE_AGENTS in src/lib/onboard/managed-image. + # Every shipped agent's contract and exact cohort bytes are validated + # before any pointer moves. A registry failure can leave an earlier + # agent's pointers moved; rerunning this job reconciles them to this + # cohort. + shipped_agents=(openclaw hermes langchain-deepagents-code) release_tag="$(jq -r '.source.release // empty' "$cohort_contract")" if [[ ! "$GITHUB_SHA" =~ ^[0-9a-f]{40}$ ]]; then echo "ERROR: durable managed image pointer identity is invalid." >&2 @@ -3319,7 +3322,7 @@ jobs: expected_digest="$(jq -er --arg agent "$agent" '.agents[$agent].digest' "$cohort_contract")" expected_size="$(jq -er --arg agent "$agent" '.agents[$agent].descriptor.size | tostring' "$cohort_contract")" if [ "$image" != "ghcr.io/nvidia/nemoclaw/${agent}-sandbox" ] || - [[ ! "$exact_reference" =~ ^ghcr\.io/nvidia/nemoclaw/(openclaw|hermes)-sandbox@sha256:[0-9a-f]{64}$ ]] || + [[ ! "$exact_reference" =~ ^ghcr\.io/nvidia/nemoclaw/(openclaw|hermes|langchain-deepagents-code)-sandbox@sha256:[0-9a-f]{64}$ ]] || [ "${exact_reference%@*}" != "$image" ]; then echo "ERROR: durable managed image pointer identity is invalid for ${agent}." >&2 exit 1 diff --git a/docs/get-started/quickstart-langchain-deepagents-code.mdx b/docs/get-started/quickstart-langchain-deepagents-code.mdx index de574fed1a8..ceba9b4d68c 100644 --- a/docs/get-started/quickstart-langchain-deepagents-code.mdx +++ b/docs/get-started/quickstart-langchain-deepagents-code.mdx @@ -70,6 +70,8 @@ If you use the coding-agent prompt in the preceding section, you can skip this p If registry or catalog availability prevents resolution, stock onboarding stops before sandbox creation and does not build a shipped Dockerfile. Invalid or inconsistent catalog evidence fails closed before sandbox creation. An explicit `nemo-deepagents onboard --from ` remains a separate custom-image path. + Start a custom Dockerfile from the published complete image, `FROM ghcr.io/nvidia/nemoclaw/langchain-deepagents-code-sandbox@sha256:`, which already carries every managed Deep Agents Code layer. + Releases publish that image with `:` and `:` tags alongside `openclaw-sandbox` and `hermes-sandbox`; pin the digest rather than a tag so rebuilds stay reproducible. diff --git a/test/inference/managed/managed-image-publication-promotion.test.ts b/test/inference/managed/managed-image-publication-promotion.test.ts index 1d9a5a79a3b..7b6d25bb794 100644 --- a/test/inference/managed/managed-image-publication-promotion.test.ts +++ b/test/inference/managed/managed-image-publication-promotion.test.ts @@ -52,7 +52,7 @@ function expectedReceipt(cohort: string, receiptAttempt: number): Record { - it("stages all multi-platform cohort aliases before moving the shipped root pointers (#7744, #11228)", () => { + it("stages all multi-platform cohort aliases before moving the shipped root pointers (#7744, #11228, #11341)", () => { const promotion = required( step( managedPromoter(readWorkflow("managed-images.yaml")), @@ -77,6 +77,7 @@ describe("managed-image publication promotion", () => { expect(failedCalls).toContain(`openclaw-sandbox:cohort-${cohort}`); expect(failedCalls).not.toContain(`openclaw-sandbox:${revision}`); expect(failedCalls).not.toContain(`hermes-sandbox:${revision}`); + expect(failedCalls).not.toContain(`langchain-deepagents-code-sandbox:${revision}`); const accepted = runManagedImagePromotion(promotion, "", pointer); const acceptedCalls = accepted.calls.join("\n"); @@ -97,6 +98,7 @@ describe("managed-image publication promotion", () => { ); const rootPointer = acceptedCalls.indexOf(`openclaw-sandbox:${revision}`); const hermesPointer = acceptedCalls.indexOf(`hermes-sandbox:${revision}`); + const dcodePointer = acceptedCalls.indexOf(`langchain-deepagents-code-sandbox:${revision}`); expect(accepted.calls.filter((call) => call.startsWith("pull ")).sort()).toEqual( expectedPullCalls.sort(), @@ -110,10 +112,10 @@ describe("managed-image publication promotion", () => { }); expect(lastCohortStage).toBeGreaterThanOrEqual(0); expect(rootPointer).toBeGreaterThan(lastCohortStage); - // Hermes ships its root pointer alongside OpenClaw (#11228); Deep Agents - // Code stays cohort-only. + // Every shipped agent's root pointer moves only after all cohort aliases + // stage: Hermes per #11228, Deep Agents Code per #11341. expect(hermesPointer).toBeGreaterThan(lastCohortStage); - expect(acceptedCalls).not.toContain(`langchain-deepagents-code-sandbox:${revision}`); + expect(dcodePointer).toBeGreaterThan(lastCohortStage); expect(Object.keys(accepted.platformContracts).sort()).toEqual( publicationAgents .flatMap((agent) => publicationPlatforms.map((platform) => `${agent}|${platform}`)) diff --git a/test/inference/managed/managed-image-publication-workflow.test.ts b/test/inference/managed/managed-image-publication-workflow.test.ts index dc91d57c2c1..fbaa39c977a 100644 --- a/test/inference/managed/managed-image-publication-workflow.test.ts +++ b/test/inference/managed/managed-image-publication-workflow.test.ts @@ -1254,12 +1254,12 @@ fi expect(promotion.run).toContain('"${descriptor_args[@]}"'); expect(promotion.run).toContain('cmp -s "$expected_descriptors" "$actual_descriptors"'); expect(promotion.run).toContain(') == ["linux/amd64", "linux/arm64"]'); - expect(promotion.run).toContain("shipped_agents=(openclaw hermes)"); + expect(promotion.run).toContain("shipped_agents=(openclaw hermes langchain-deepagents-code)"); expect(promotion.run).toContain( 'aliases+=("$(jq -r \'.image\' <<<"$cohort_manifest"):${GITHUB_SHA}")', ); expect(promotion.run).not.toContain('imagetools create "${consumer_tag_args[@]}"'); - expect(pointer.run).toContain("shipped_agents=(openclaw hermes)"); + expect(pointer.run).toContain("shipped_agents=(openclaw hermes langchain-deepagents-code)"); expect(pointer.run).toContain( "exact_reference=\"$(jq -er --arg agent \"$agent\" '.agents[$agent].reference'", );