Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
fix(relay): package changelog for release notes [H5,H18]
Corey Olsonc5b57389290f
diff --git a/relay/Dockerfile b/relay/Dockerfileindex 97ca72db..9223e74a 100644--- a/relay/Dockerfile+++ b/relay/Dockerfile@@ -5,6 +5,7 @@ ENV NODE_ENV=production \WORKDIR /appCOPY --chown=node:node package.json ./package.json+COPY --chown=node:node CHANGELOG.md ./CHANGELOG.mdCOPY --chown=node:node src/ ./src/COPY --chown=node:node relay/ ./relay/RUN mkdir -p /data && chown node:node /data && chmod 700 /datadiff --git a/test/relay-deploy.test.js b/test/relay-deploy.test.jsindex 4a6401a1..3e3e6257 100644--- a/test/relay-deploy.test.js+++ b/test/relay-deploy.test.js@@ -6,7 +6,9 @@ import { createServer } from 'node:http';import { existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync, statSync, copyFileSync } from 'node:fs';import { join, resolve } from 'node:path';import { tmpdir } from 'node:os';+import { pathToFileURL } from 'node:url';import { test } from 'node:test';+import { releaseHeadlinesBetween } from '../src/changelog.js';import { ENGINE_VERSION } from '../src/machine.js';import { relayClientFixture } from './relay-client-fixture.js';import { githubFixture } from './relay-fixture.js';@@ -48,6 +50,19 @@ function copiedImage(t, omitted = []) {return image;}+/** Verify the copied image carries the exact shipped notes consumed by its runtime helper. */+async function assertCopiedChangelog(image) {+ const shipped = readFileSync(join(ROOT, 'CHANGELOG.md'));+ const copied = readFileSync(join(image, 'CHANGELOG.md'));+ assert.deepEqual(copied, shipped, 'the production image includes byte-identical shipped release notes');+ const runtimeChangelog = await import(pathToFileURL(join(image, 'src/changelog.js')).href);+ assert.deepEqual(+ runtimeChangelog.releaseHeadlinesBetween('0.0.0', '99.99.99'),+ releaseHeadlinesBetween('0.0.0', '99.99.99'),+ 'the copied runtime helper reads release headlines from the packaged notes',+ );+}+/** Start the copied production entry point with private fixture storage and no inherited selectors. */function copiedServer(t, image, port, provider) {const privateHome = mkdtempSync(join(tmpdir(), 'pullboard-relay-image-home-'));@@ -366,6 +381,7 @@ test('[H5,H18] the container entry point serves readiness and stays available',test('[H5,H18] Docker COPY sources boot the relay and serve its browser page, while omitted runtime files refuse startup', async (t) => {const provider = await githubFixture(t);const image = copiedImage(t);+ await assertCopiedChangelog(image);const port = await unusedPort();const origin = `http://127.0.0.1:${port}`;const running = copiedServer(t, image, port, provider);