From da00a850ec8ef5686f7d2531779d68867e262d54 Mon Sep 17 00:00:00 2001 From: mesalogo Date: Tue, 25 Aug 2026 21:13:46 +0800 Subject: [PATCH] fix: report verified Agent CI archives The native Linux CI builder completed both deterministic package assemblies but read an obsolete nested return field while producing its result JSON. It now reports the archive name from the actual assembleAgentPackage result and guards that shape in workflow tests. --- build/agent-ci-bundle.cjs | 2 +- tests/agents-workflow.test.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/build/agent-ci-bundle.cjs b/build/agent-ci-bundle.cjs index 7ca241ff..9194dad2 100644 --- a/build/agent-ci-bundle.cjs +++ b/build/agent-ci-bundle.cjs @@ -186,7 +186,7 @@ async function buildCiAgentBundle(options) { remoteRuntimeVersion: runtimeLock.runtimes.opencode.version, architecture: options.arch, - archive: second.package.archive, + archive: second.archive, archiveSha256: archiveDigest } } finally { diff --git a/tests/agents-workflow.test.ts b/tests/agents-workflow.test.ts index 10bc1b40..e815e57a 100644 --- a/tests/agents-workflow.test.ts +++ b/tests/agents-workflow.test.ts @@ -176,6 +176,10 @@ describe('GoodBuddy Agents workflow', () => { ) expect(ciBundleSource).toContain('assembleAgentPackage') expect(ciBundleSource).toContain('buildRuntimeBundle') + expect(ciBundleSource).toContain('archive: second.archive') + expect(ciBundleSource).not.toContain( + 'second.package.archive' + ) expect(build).toContain('.gbagent') expect(ciBundleSource).not.toContain( 'readTrustedKeyRegistry'