From cd56f1f5d54ef29fa4d7ef382b2d6f3531357ffa Mon Sep 17 00:00:00 2001 From: jctanner Date: Sun, 15 Nov 2026 16:04:14 -0500 Subject: [PATCH 1/5] Publish release images and pin service deployments with local build support --- .dockerignore | 19 +++ .github/workflows/ci.yml | 31 +++++ .github/workflows/container.yml | 123 ++++++++++++++++++ .github/workflows/release.yml | 43 ++++++ .ledger/PLAN.md | 4 + .../notes/cc-43-external-release-proposals.md | 31 +++++ .ledger/tasks/current/cc-43-releases.md | 100 ++++++++++++++ Makefile | 3 + deploy/golang-reverse-proxy/deployment.yaml | 2 +- deploy/k8s/10-github-emulator.yaml | 2 +- deploy/k8s/12-jira-emulator.yaml | 2 +- deploy/k8s/19-gitlab-emulator.yaml | 2 +- deploy/k8s/20-pipeline-dashboard.yaml | 4 +- deploy/k8s/26-fullsend-dashboard.yaml | 4 +- deploy/k8s/29-model-relay.yaml | 4 +- deploy/k8s/31-hooksink.yaml | 4 +- deploy/release-images.json | 10 ++ deploy/scripts/05-build-images.sh | 16 ++- deploy/scripts/09-deploy-ingress-proxy.sh | 5 + deploy/scripts/14-deploy-gitlab-emulator.sh | 2 +- deploy/scripts/27-deploy-model-relay.sh | 2 +- deploy/scripts/28-deploy-hooksink.sh | 2 +- deploy/scripts/deploy-all.sh | 6 +- deploy/scripts/render_domain_manifest.py | 19 ++- docs/releases.md | 72 ++++++++++ scripts/publish_image.sh | 31 +++++ scripts/release_version.py | 15 +++ scripts/test_publish_image.py | 54 ++++++++ tests/test_release_images.py | 40 ++++++ 29 files changed, 629 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/container.yml create mode 100644 .github/workflows/release.yml create mode 100644 .ledger/notes/cc-43-external-release-proposals.md create mode 100644 .ledger/tasks/current/cc-43-releases.md create mode 100644 deploy/release-images.json create mode 100644 docs/releases.md create mode 100644 scripts/publish_image.sh create mode 100644 scripts/release_version.py create mode 100644 scripts/test_publish_image.py create mode 100644 tests/test_release_images.py diff --git a/.dockerignore b/.dockerignore index fb66a6ca..12a6a4d3 100644 --- a/.dockerignore +++ b/.dockerignore @@ -51,3 +51,22 @@ remote_skills/ # Exclude build/temp files *.log .DS_Store + +# Release builds include only the pinned OpenShell SDK inputs, never host state. +.git +**/.git +.env +.env.* +*.pem +*.key +internal-ca.crt +checkouts/* +!checkouts/openshell/ +checkouts/openshell/* +!checkouts/openshell/python/ +!checkouts/openshell/proto/ +!checkouts/openshell/tasks/ +checkouts/openshell/tasks/* +!checkouts/openshell/tasks/scripts/ +checkouts/openshell/tasks/scripts/* +!checkouts/openshell/tasks/scripts/generate_python_proto.py diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..d98791bb --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: Release deployment checks +on: + push: + branches: [main] + pull_request: + branches: [main] +permissions: + contents: read +jobs: + release-config: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.13' + - run: python -m unittest discover -s tests -p test_release_images.py -v + - run: | + for script in deploy/scripts/*.sh; do bash -n "$script"; done + proxy: + runs-on: ubuntu-latest + defaults: + run: + working-directory: deploy/golang-reverse-proxy + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version-file: deploy/golang-reverse-proxy/go.mod + cache: false + - run: go test ./... diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml new file mode 100644 index 00000000..510835fa --- /dev/null +++ b/.github/workflows/container.yml @@ -0,0 +1,123 @@ +name: Container image + +on: + push: + branches: [main] + tags: ["20[0-9][0-9].[0-9][0-9].[0-9][0-9]*"] + pull_request: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: container-${{ github.ref }} + cancel-in-progress: false + +jobs: + image: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + strategy: + fail-fast: false + matrix: + include: + - variant: dashboard + port: 5000 + context: . + dockerfile: deploy/dashboard/Dockerfile + image: ghcr.io/jctanner/breadboard-dashboard + - variant: fullsend-dashboard + port: 5000 + context: . + dockerfile: deploy/fullsend-dashboard/Dockerfile + image: ghcr.io/jctanner/breadboard-fullsend-dashboard + - variant: golang-reverse-proxy + port: 80 + context: deploy/golang-reverse-proxy + dockerfile: Dockerfile + image: ghcr.io/jctanner/breadboard-golang-reverse-proxy + steps: + - uses: actions/checkout@v4 + - name: Fetch the pinned OpenShell SDK source + if: matrix.variant == 'dashboard' + uses: actions/checkout@v4 + with: + repository: NVIDIA/openshell + ref: b2ea81822bb5263679ed00ff0fbe8c08577abab5 + path: checkouts/openshell + - name: Validate release tag + if: startsWith(github.ref, 'refs/tags/') + run: python3 scripts/release_version.py "$GITHUB_REF_NAME" + - name: Publication policy regression tests + run: python3 -m unittest discover -s scripts -p test_publish_image.py -v + - uses: docker/setup-buildx-action@v3 + - id: meta + uses: docker/metadata-action@v5 + with: + images: ${{ matrix.image }} + flavor: latest=false + tags: | + type=raw,value=latest,enable={{is_default_branch}} + type=sha,format=long + type=ref,event=tag + type=ref,event=pr + - name: Build once for smoke testing and publishing + uses: docker/build-push-action@v6 + with: + context: ${{ matrix.context }} + file: ${{ matrix.context }}/${{ matrix.dockerfile }} + platforms: linux/amd64 + load: true + tags: release-smoke:local + labels: ${{ steps.meta.outputs.labels }} + cache-from: type=gha,scope=${{ matrix.variant }} + cache-to: type=gha,mode=max,scope=${{ matrix.variant }} + - name: Smoke test + env: + VARIANT: ${{ matrix.variant }} + CONTAINER_PORT: ${{ matrix.port }} + run: | + docker run -d --name release-smoke -p "127.0.0.1:8080:$CONTAINER_PORT" release-smoke:local + for _ in $(seq 1 30); do + if curl --max-time 2 -fsS http://127.0.0.1:8080/healthz > /dev/null; then + exit 0 + fi + sleep 2 + done + exit 1 + - name: Container logs and cleanup + if: always() + run: | + docker logs release-smoke || true + docker rm -f release-smoke || true + - if: github.event_name != 'pull_request' && (github.ref == format('refs/heads/{0}', github.event.repository.default_branch) || startsWith(github.ref, 'refs/tags/')) + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Publish the tested image + id: publish + if: github.event_name != 'pull_request' && (github.ref == format('refs/heads/{0}', github.event.repository.default_branch) || startsWith(github.ref, 'refs/tags/')) + env: + TAGS: ${{ steps.meta.outputs.tags }} + IMAGE_REPOSITORY: ${{ matrix.image }} + run: bash scripts/publish_image.sh + - name: Record published image + if: startsWith(github.ref, 'refs/tags/') + uses: actions/upload-artifact@v4 + with: + name: published-image-${{ matrix.variant }} + path: image.txt + retention-days: 30 + + release: + if: startsWith(github.ref, 'refs/tags/') + needs: image + permissions: + contents: write + uses: ./.github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..8487b846 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,43 @@ +name: GitHub release + +on: + workflow_call: + +permissions: + contents: write + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/download-artifact@v4 + with: + pattern: published-image-* + path: published-images + - name: Release only after the image was smoke-tested and published + uses: actions/github-script@v7 + with: + script: | + const fs = require('fs'); + const images = fs.readdirSync('published-images').sort().map(directory => + fs.readFileSync(`published-images/${directory}/image.txt`, 'utf8').trim()); + if (!images.length || images.some(image => !/^ghcr\.io\/[^\s]+@sha256:[a-f0-9]{64}$/.test(image))) { + throw new Error('Published image digests are missing or invalid'); + } + const tag = context.ref.replace('refs/tags/', ''); + if (!context.ref.startsWith('refs/tags/')) { + throw new Error('Releases require a tag'); + } + const {owner, repo} = context.repo; + try { + await github.rest.repos.getReleaseByTag({owner, repo, tag}); + throw new Error('Release already exists; releases are immutable'); + } catch (error) { + if (error.status !== 404) throw error; + } + const {data: notes} = await github.rest.repos.generateReleaseNotes({owner, repo, tag_name: tag}); + await github.rest.repos.createRelease({ + owner, repo, tag_name: tag, name: tag, draft: false, prerelease: false, + body: `${notes.body}\n\nSource commit: ${context.sha}\n\nContainers:\n${images.map(image => `- \`${image}\``).join("\n")}`, + make_latest: 'true' + }); diff --git a/.ledger/PLAN.md b/.ledger/PLAN.md index 405fa440..0a95e115 100644 --- a/.ledger/PLAN.md +++ b/.ledger/PLAN.md @@ -1031,3 +1031,7 @@ Other existing work remains under `plans/`, `tasks/`, `bugs/`, and `decisions/`. - [Other Claude subagent information channels](tasks/done/claude-subagent-shared-information-analysis.md): complete; six new controls, file-change injection, host/model distinction and dormant nested-memory flag documented. - [Claude skill variable expansion](tasks/done/claude-skill-variable-expansion-analysis.md): complete; full prompt-placeholder catalog, field/stage differences, nine controls and forty-one exact symbols documented. + +## CC-43 + +- [Service releases and container images](tasks/current/cc-43-releases.md) diff --git a/.ledger/notes/cc-43-external-release-proposals.md b/.ledger/notes/cc-43-external-release-proposals.md new file mode 100644 index 00000000..fb2b996f --- /dev/null +++ b/.ledger/notes/cc-43-external-release-proposals.md @@ -0,0 +1,31 @@ +# CC-43: Release proposals for repositories owned outside jctanner + +No writes, branches, tags or releases were made in these repositories. + +## vokramd/markov + +Preserve existing SemVer: v0.1.0 is a published GitHub release and v0.2.0 is +an existing git tag. The checkout has a GoReleaser release-candidate workflow +triggered by v* tags with archive, package and OCI candidate validation. Do +not replace it with CalVer or duplicate CC-71 work. + +## vokramd/markovd + +Go API and React frontend; Dockerfile builds both and serves HTTP on 8080; +/health is the smoke endpoint. No tags, releases or workflow files were +observed. Coordinate its release version contract with Markov/CC-71 before +adding anything: prefer retaining its owner's chosen scheme, potentially +v-prefixed SemVer aligned with Markov, rather than imposing CalVer. +Suggested CI: Go tests and UI build, then Linux amd64 image build and /health +smoke test. Publish tested images and digest-backed GitHub releases only +after explicit authorization to change vokramd repositories. + +## opendatahub-io/observatory + +Python FastAPI and React; multi-stage Dockerfile, port 8000, /healthz. +No tags/releases or workflow files observed. Proposed CI: backend tests on +SQLite, frontend build/tests, container smoke test and GHCR publication. +Determine release policy with repository owners before adopting CalVer. +The current integration Dockerfile copies org-pulse-config.json; confirm +this is committed and contains no deployment-specific credentials before +publishing. External repository writes require separate approval. diff --git a/.ledger/tasks/current/cc-43-releases.md b/.ledger/tasks/current/cc-43-releases.md new file mode 100644 index 00000000..039cc867 --- /dev/null +++ b/.ledger/tasks/current/cc-43-releases.md @@ -0,0 +1,100 @@ +# CC-43: Service releases and container images + +## Status + +Current. Human approved conventions on 2026-11-15; preserve existing version schemes. + +## Approved conventions + +UTC YYYY.MM.DD with .1, .2 suffixes; identical immutable git/release/image tags. +latest follows successful default-branch builds; sha- remains. +Build once, smoke-test, publish the tested image, then create the GitHub release. +One PR per jctanner repository; merge only green CI. No automatic retries. +No package visibility changes or writes outside jctanner without separate approval. + +## Inventory and evidence + +REST GET on all repositories succeeded; all are public. Fine-grained write +scopes are not established by repository metadata alone. + +| Repository | Build | Smoke | Existing release scheme | +| --- | --- | --- | --- | +| jctanner/jira-emulator | Python Dockerfile | /rest/api/2/priority | No tags/releases; package placeholder 0.1.0 | +| jctanner/github-emulator | Python/React Dockerfile | /api/v3 | No tags/releases | +| jctanner/gitlab-emulator | Python Dockerfile | /api/v4 | Existing 2026.06.30 tag; preserve CalVer | +| jctanner/slack-emulator | Rust Containerfile | Verify before implementation | No tags/releases | +| jctanner/entra-id-emulator | Flask Dockerfile needs source bundled | Verify before implementation | No tags/releases | +| jctanner/google-docs-emulator | Python Dockerfile | /healthz and existing smoke script | No tags/releases | +| jctanner/hooksink | Rust Dockerfile | /healthz | No tags/releases | +| jctanner/model-relay | Rust Dockerfile | /health | No tags/releases | +| jctanner/breadboard | deploy Dockerfiles | Dashboards /healthz | No tags/releases | +| opendatahub-io/observatory | Python/React Dockerfile | /healthz | No tags/releases; proposal only | +| vokramd/markovd | Go/React Dockerfile | /health | No tags/releases; proposal only | +| vokramd/markov | GoReleaser | Existing release validation | v0.1.0 release, v0.2.0 tag; preserve SemVer | + +Jira main 54d9f8e includes PRs through #31; no open PRs observed after CC-63 work. +Jira implementation uses an isolated worktree on cc-43-releases. +Breadboard worktree created from fetched origin/main 40ef0d6, leaving the +parent branch and human's uncommitted work untouched. + +## Acceptance criteria + +- [x] Inventory and approval +- [ ] Jira reference PR merged with green CI and first release published +- [ ] Remaining owned repositories: one PR, green CI, release and image each +- [ ] Breadboard matrix publication and pinned deployment option +- [ ] Non-owned repository proposals and deferred image decisions documented +- [ ] Evidence and remaining access/visibility blockers recorded + +## Jira reference progress + +- PR: https://github.com/jctanner/jira-emulator/pull/32 +- Commits: 330a332, 3a74c08, 179e1e8 (current head). +- Local make lint passed; make test: 411 passed, 19 skipped. +- actionlint and release JavaScript syntax checks passed. +- Both standalone and K3s matrix image builds/smoke tests passed at + https://github.com/jctanner/jira-emulator/actions/runs/43759916492 . +- Initial K3s smoke failed because its API is loopback-only behind Caddy. + Inspected the failed job before changing anything; fixed smoke testing to + supply a synthetic HTTP Caddy configuration and check through port 80. +- No automatic workflow retries. Awaiting green test/integration CI before merge. + +## Additional deployment inventory + +Org Pulse backend/frontend are layered images from red-hat-data-services +repositories and already use a CORE_TAG contract. Do not impose CalVer or +write there. Fullsend runner/sandbox/code and local OpenShell supervisor are +integration builds over repositories owned by fullsend-ai/NVIDIA; retain +local build paths pending a separately scoped release contract. Workflow +Dojo is optional, outside deploy-all.sh, and absent from this machine's +component checkouts; inventory only for this rollout. The legacy +ai-first-pipeline image is generated by a deployment script rather than a +maintained Dockerfile and is deferred. No maintained breadboard Compose +file was found on origin/main. + +## First Jira release and publication correction + +Jira 2026.11.15 is published: +https://github.com/jctanner/jira-emulator/releases/tag/2026.11.15 . Both +standalone and K3s images passed smoke tests and were successfully pushed. +The automatic release metadata step rejected the first local RepoDigest, +which named release-smoke rather than GHCR. Verified the actual registry +push digests in the successful Actions jobs and completed the GitHub release +through REST without changing its tag or images. Corrective PR #33 records +the digest reported by Docker push, with regression tests; no workflow was +retried and no release was overwritten. + +## Breadboard implementation validation + +- Publication regression tests passed. +- Release/local image-selection tests: 4 passed. +- Reverse proxy go test ./... passed. +- All deployment shell scripts passed bash -n; diff check passed. +- Workflow actionlint passed before PR preparation; final workflow check follows. +- Existing dashboard domain tests could not run with the parent environment + because pytest is absent there; no parent dependencies were modified. +- Release matrix: dashboard, fullsend-dashboard, golang-reverse-proxy. +- Dashboard fetches pinned public OpenShell source in CI, not the human's checkout. +- Deployment manifests use immutable CalVer pins; explicit rebuild targets + export BREADBOARD_IMAGE_SOURCE=local and retain existing local build tags. +- No cluster deployment or package visibility change has been performed. diff --git a/Makefile b/Makefile index 4ae60433..8f981512 100644 --- a/Makefile +++ b/Makefile @@ -789,3 +789,6 @@ backup-full: host-backup-full ## Shortcut restore: host-restore ## Shortcut list-backups: host-list-backups ## Shortcut clean-all: host-clean-all ## Shortcut + +# Explicit rebuild commands retain local builds and deploy their local tags. +host-rebuild-dashboard host-rebuild-fullsend-dashboard host-rebuild-jira host-rebuild-github host-rebuild-gitlab host-rebuild-ingress-proxy host-rebuild-relay host-rebuild-hooksink host-rebuild-all-with-emulators: export BREADBOARD_IMAGE_SOURCE = local diff --git a/deploy/golang-reverse-proxy/deployment.yaml b/deploy/golang-reverse-proxy/deployment.yaml index d707408a..d270a418 100644 --- a/deploy/golang-reverse-proxy/deployment.yaml +++ b/deploy/golang-reverse-proxy/deployment.yaml @@ -46,7 +46,7 @@ spec: value: "2" containers: - name: proxy - image: ingress-proxy:latest + image: ghcr.io/jctanner/breadboard-golang-reverse-proxy:2026.11.15 imagePullPolicy: IfNotPresent ports: diff --git a/deploy/k8s/10-github-emulator.yaml b/deploy/k8s/10-github-emulator.yaml index fe93b9d3..ce485223 100644 --- a/deploy/k8s/10-github-emulator.yaml +++ b/deploy/k8s/10-github-emulator.yaml @@ -61,7 +61,7 @@ spec: containers: - name: github-emulator - image: github-emulator:k3s + image: ghcr.io/jctanner/github-emulator-k3s:2026.11.15 imagePullPolicy: IfNotPresent ports: diff --git a/deploy/k8s/12-jira-emulator.yaml b/deploy/k8s/12-jira-emulator.yaml index ce48bbd3..d14203cb 100644 --- a/deploy/k8s/12-jira-emulator.yaml +++ b/deploy/k8s/12-jira-emulator.yaml @@ -68,7 +68,7 @@ spec: containers: - name: jira-emulator - image: jira-emulator:k3s + image: ghcr.io/jctanner/jira-emulator-k3s:2026.11.15 imagePullPolicy: IfNotPresent ports: diff --git a/deploy/k8s/19-gitlab-emulator.yaml b/deploy/k8s/19-gitlab-emulator.yaml index d71bf334..8e5964db 100644 --- a/deploy/k8s/19-gitlab-emulator.yaml +++ b/deploy/k8s/19-gitlab-emulator.yaml @@ -98,7 +98,7 @@ spec: containers: - name: gitlab-emulator - image: gitlab-emulator:latest + image: ghcr.io/jctanner/gitlab-emulator:2026.11.15 imagePullPolicy: IfNotPresent ports: diff --git a/deploy/k8s/20-pipeline-dashboard.yaml b/deploy/k8s/20-pipeline-dashboard.yaml index 452f884e..432bae9c 100644 --- a/deploy/k8s/20-pipeline-dashboard.yaml +++ b/deploy/k8s/20-pipeline-dashboard.yaml @@ -41,8 +41,8 @@ spec: containers: - name: dashboard - image: pipeline-dashboard:latest - imagePullPolicy: Never # Use local image + image: ghcr.io/jctanner/breadboard-dashboard:2026.11.15 + imagePullPolicy: IfNotPresent command: - /bin/bash diff --git a/deploy/k8s/26-fullsend-dashboard.yaml b/deploy/k8s/26-fullsend-dashboard.yaml index 2ef14e3b..af2a498b 100644 --- a/deploy/k8s/26-fullsend-dashboard.yaml +++ b/deploy/k8s/26-fullsend-dashboard.yaml @@ -68,8 +68,8 @@ spec: serviceAccountName: fullsend-dashboard containers: - name: dashboard - image: fullsend-dashboard:latest - imagePullPolicy: Never + image: ghcr.io/jctanner/breadboard-fullsend-dashboard:2026.11.15 + imagePullPolicy: IfNotPresent ports: - name: http containerPort: 5000 diff --git a/deploy/k8s/29-model-relay.yaml b/deploy/k8s/29-model-relay.yaml index 3f780632..1f4a86dc 100644 --- a/deploy/k8s/29-model-relay.yaml +++ b/deploy/k8s/29-model-relay.yaml @@ -106,8 +106,8 @@ spec: runAsNonRoot: true containers: - name: relay - image: model-relay:latest - imagePullPolicy: Never + image: ghcr.io/jctanner/model-relay:2026.11.15 + imagePullPolicy: IfNotPresent ports: - name: inference containerPort: 8080 diff --git a/deploy/k8s/31-hooksink.yaml b/deploy/k8s/31-hooksink.yaml index 8057c0ae..4381d63e 100644 --- a/deploy/k8s/31-hooksink.yaml +++ b/deploy/k8s/31-hooksink.yaml @@ -91,8 +91,8 @@ spec: fsGroup: 1000 containers: - name: sink - image: hooksink:latest - imagePullPolicy: Never + image: ghcr.io/jctanner/hooksink:2026.11.15 + imagePullPolicy: IfNotPresent ports: - name: http containerPort: 8080 diff --git a/deploy/release-images.json b/deploy/release-images.json new file mode 100644 index 00000000..0073402f --- /dev/null +++ b/deploy/release-images.json @@ -0,0 +1,10 @@ +{ + "jira-emulator:k3s": "ghcr.io/jctanner/jira-emulator-k3s:2026.11.15", + "github-emulator:k3s": "ghcr.io/jctanner/github-emulator-k3s:2026.11.15", + "gitlab-emulator:latest": "ghcr.io/jctanner/gitlab-emulator:2026.11.15", + "hooksink:latest": "ghcr.io/jctanner/hooksink:2026.11.15", + "model-relay:latest": "ghcr.io/jctanner/model-relay:2026.11.15", + "pipeline-dashboard:latest": "ghcr.io/jctanner/breadboard-dashboard:2026.11.15", + "fullsend-dashboard:latest": "ghcr.io/jctanner/breadboard-fullsend-dashboard:2026.11.15", + "ingress-proxy:latest": "ghcr.io/jctanner/breadboard-golang-reverse-proxy:2026.11.15" +} diff --git a/deploy/scripts/05-build-images.sh b/deploy/scripts/05-build-images.sh index 82049b5e..3b961dd7 100755 --- a/deploy/scripts/05-build-images.sh +++ b/deploy/scripts/05-build-images.sh @@ -30,7 +30,9 @@ FORCE_REBUILD="${FORCE_REBUILD:-1}" echo "--- Building pipeline-dashboard image (web UI) ---" cd ${PROJECT_ROOT} -if [ "${FORCE_REBUILD}" != "1" ] && image_in_k3s "pipeline-dashboard:latest"; then +if [ "${BREADBOARD_IMAGE_SOURCE:-published}" = published ]; then + echo "Using pinned published pipeline-dashboard image" +elif [ "${FORCE_REBUILD}" != "1" ] && image_in_k3s "pipeline-dashboard:latest"; then echo " pipeline-dashboard:latest already in k3s, skipping (set FORCE_REBUILD=1 to rebuild)" elif [ -f deploy/dashboard/Dockerfile ]; then ${CONTAINER_CMD} build -f deploy/dashboard/Dockerfile -t pipeline-dashboard:latest . @@ -137,7 +139,9 @@ fi echo "" # Build github-emulator if the repo exists -if [ "${FORCE_REBUILD}" != "1" ] && image_in_k3s "github-emulator:k3s"; then +if [ "${BREADBOARD_IMAGE_SOURCE:-published}" = published ]; then + echo "Using pinned published github-emulator image" +elif [ "${FORCE_REBUILD}" != "1" ] && image_in_k3s "github-emulator:k3s"; then echo "--- github-emulator:k3s already in k3s, skipping ---" elif [ -d ${PROJECT_ROOT}/checkouts/github-emulator ]; then echo "--- Building github-emulator image for k3s ---" @@ -158,7 +162,9 @@ else fi # Build jira-emulator if the repo exists -if [ "${FORCE_REBUILD}" != "1" ] && image_in_k3s "jira-emulator:k3s"; then +if [ "${BREADBOARD_IMAGE_SOURCE:-published}" = published ]; then + echo "Using pinned published jira-emulator image" +elif [ "${FORCE_REBUILD}" != "1" ] && image_in_k3s "jira-emulator:k3s"; then echo "--- jira-emulator:k3s already in k3s, skipping ---" elif [ -d ${PROJECT_ROOT}/checkouts/jira-emulator ]; then echo "--- Building jira-emulator image for k3s ---" @@ -195,7 +201,9 @@ else fi # Build gitlab-emulator if the repo exists -if [ "${FORCE_REBUILD}" != "1" ] && image_in_k3s "gitlab-emulator:latest"; then +if [ "${BREADBOARD_IMAGE_SOURCE:-published}" = published ]; then + echo "Using pinned published gitlab-emulator image" +elif [ "${FORCE_REBUILD}" != "1" ] && image_in_k3s "gitlab-emulator:latest"; then echo "--- gitlab-emulator:latest already in k3s, skipping ---" elif [ -d ${PROJECT_ROOT}/checkouts/gitlab-emulator ]; then echo "--- Building gitlab-emulator image for k3s ---" diff --git a/deploy/scripts/09-deploy-ingress-proxy.sh b/deploy/scripts/09-deploy-ingress-proxy.sh index 63fc6830..743f5645 100755 --- a/deploy/scripts/09-deploy-ingress-proxy.sh +++ b/deploy/scripts/09-deploy-ingress-proxy.sh @@ -9,6 +9,7 @@ PROJECT_ROOT="${SCRIPT_DIR}/../.." echo "==> Deploying Go Reverse Proxy (Ingress Controller)..." +if [ "${BREADBOARD_IMAGE_SOURCE:-published}" = local ]; then # Use docker or podman if command -v docker &> /dev/null; then CONTAINER_CMD="docker" @@ -30,6 +31,10 @@ sudo k3s ctr images rm docker.io/library/ingress-proxy:latest localhost/ingress- ${CONTAINER_CMD} save ingress-proxy:latest | sudo k3s ctr images import - > /dev/null sudo k3s ctr images tag localhost/ingress-proxy:latest docker.io/library/ingress-proxy:latest 2>/dev/null || true +fi + +# Both image sources apply the same maintained manifest. +cd "${PROJECT_ROOT}/deploy/golang-reverse-proxy" # Deploy to cluster echo " Deploying to Kubernetes..." "${SCRIPT_DIR}/apply-domain-manifests.sh" deployment.yaml diff --git a/deploy/scripts/14-deploy-gitlab-emulator.sh b/deploy/scripts/14-deploy-gitlab-emulator.sh index 7263769e..f82fd440 100755 --- a/deploy/scripts/14-deploy-gitlab-emulator.sh +++ b/deploy/scripts/14-deploy-gitlab-emulator.sh @@ -34,7 +34,7 @@ echo "--- Creating storage ---" kubectl apply -f 03-storage.yaml echo "--- Deploying GitLab Emulator ---" -kubectl apply -f 19-gitlab-emulator.yaml +"${SCRIPT_DIR}/apply-domain-manifests.sh" 19-gitlab-emulator.yaml echo "" echo "==> Deployment complete!" diff --git a/deploy/scripts/27-deploy-model-relay.sh b/deploy/scripts/27-deploy-model-relay.sh index 36f57b2d..48dc05cb 100755 --- a/deploy/scripts/27-deploy-model-relay.sh +++ b/deploy/scripts/27-deploy-model-relay.sh @@ -20,7 +20,7 @@ if ! kubectl get secret model-relay-admin -n "${NAMESPACE}" >/dev/null 2>&1; the fi "${SCRIPT_DIR}/apply-domain-manifests.sh" "${PROJECT_ROOT}/deploy/k8s/02-certificates.yaml" -kubectl apply -f "${PROJECT_ROOT}/deploy/k8s/29-model-relay.yaml" +"${SCRIPT_DIR}/apply-domain-manifests.sh" "${PROJECT_ROOT}/deploy/k8s/29-model-relay.yaml" "${SCRIPT_DIR}/apply-domain-manifests.sh" "${PROJECT_ROOT}/deploy/k8s/08-ingress-https.yaml" echo " Waiting for Model Relay..." diff --git a/deploy/scripts/28-deploy-hooksink.sh b/deploy/scripts/28-deploy-hooksink.sh index 64ed7432..d8c5913c 100755 --- a/deploy/scripts/28-deploy-hooksink.sh +++ b/deploy/scripts/28-deploy-hooksink.sh @@ -21,7 +21,7 @@ if ! kubectl get secret hooksink-tokens -n "${NAMESPACE}" >/dev/null 2>&1; then --from-literal=default-sender-token="${HOOKSINK_DEFAULT_SENDER_TOKEN:-whs_$(random_value)}" \ --from-literal=default-consumer-token="${HOOKSINK_DEFAULT_CONSUMER_TOKEN:-whc_$(random_value)}" fi -kubectl apply -f "${PROJECT_ROOT}/deploy/k8s/31-hooksink.yaml" +"${SCRIPT_DIR}/apply-domain-manifests.sh" "${PROJECT_ROOT}/deploy/k8s/31-hooksink.yaml" echo " Waiting for webhook sink..." kubectl wait --for=condition=Available --timeout=120s deployment/hooksink -n "${NAMESPACE}" || true diff --git a/deploy/scripts/deploy-all.sh b/deploy/scripts/deploy-all.sh index b644c563..b78c4a74 100755 --- a/deploy/scripts/deploy-all.sh +++ b/deploy/scripts/deploy-all.sh @@ -94,7 +94,7 @@ if [ "${FORCE_REBUILD}" = "1" ] || ! image_in_k3s "fullsend-runner-dev:k3s" || ! bash "${SCRIPT_DIR}/05i-build-fullsend.sh" fi -if [ "${FORCE_REBUILD}" = "1" ] || ! image_in_k3s "fullsend-dashboard:latest"; then +if [ "${BREADBOARD_IMAGE_SOURCE:-published}" = local ] && { [ "${FORCE_REBUILD}" = "1" ] || ! image_in_k3s "fullsend-dashboard:latest"; }; then bash "${SCRIPT_DIR}/05j-build-fullsend-dashboard.sh" fi @@ -102,11 +102,11 @@ if [ "${FORCE_REBUILD}" = "1" ] || ! image_in_k3s "org-pulse-backend:k3s" || ! i bash "${SCRIPT_DIR}/05l-build-org-pulse.sh" fi -if [ "${FORCE_REBUILD}" = "1" ] || ! image_in_k3s "model-relay:latest"; then +if [ "${BREADBOARD_IMAGE_SOURCE:-published}" = local ] && { [ "${FORCE_REBUILD}" = "1" ] || ! image_in_k3s "model-relay:latest"; }; then bash "${SCRIPT_DIR}/05m-build-model-relay.sh" fi -if [ "${FORCE_REBUILD}" = "1" ] || ! image_in_k3s "hooksink:latest"; then +if [ "${BREADBOARD_IMAGE_SOURCE:-published}" = local ] && { [ "${FORCE_REBUILD}" = "1" ] || ! image_in_k3s "hooksink:latest"; }; then bash "${SCRIPT_DIR}/05n-build-hooksink.sh" fi diff --git a/deploy/scripts/render_domain_manifest.py b/deploy/scripts/render_domain_manifest.py index 391eb6a8..41475aa0 100755 --- a/deploy/scripts/render_domain_manifest.py +++ b/deploy/scripts/render_domain_manifest.py @@ -15,7 +15,9 @@ CRITICAL: Internal cluster names (*.svc.cluster.local) are NEVER modified. """ +import json import os +from pathlib import Path import re import sys @@ -183,6 +185,21 @@ def transform_manifest(content: str, domain: str) -> str: return result + +def transform_images(content: str, source: str = "published") -> str: + """Select release pins or the existing local build tags, only in image fields.""" + if source not in {"published", "local"}: + raise ValueError("BREADBOARD_IMAGE_SOURCE must be published or local") + mapping = json.loads((Path(__file__).resolve().parents[1] / "release-images.json").read_text()) + if source == "local": + mapping = {published: local for local, published in mapping.items()} + return re.sub( + r"(?m)^(\s*image:\s*)([^\s#]+)([^\n]*)$", + lambda match: match[1] + mapping.get(match[2], match[2]) + match[3], + content, + ) + + def main() -> None: if len(sys.argv) < 2: print("Usage: render_domain_manifest.py [domain]", file=sys.stderr) @@ -200,7 +217,7 @@ def main() -> None: with open(file_arg, "r", encoding="utf-8") as f: content = f.read() - rendered = transform_manifest(content, domain) + rendered = transform_manifest(transform_images(content, os.getenv("BREADBOARD_IMAGE_SOURCE", "published")), domain) sys.stdout.write(rendered) diff --git a/docs/releases.md b/docs/releases.md new file mode 100644 index 00000000..d47fa3dc --- /dev/null +++ b/docs/releases.md @@ -0,0 +1,72 @@ +# Service releases and published images + +Release versions use UTC CalVer `YYYY.MM.DD`, then `.1`, `.2`, etc. for further +releases that day. Git tags, GitHub release names and image tags are identical +and immutable. Repositories with established schemes retain them: Markov uses +v-prefixed SemVer, and GitLab's existing `2026.06.30` tag is preserved. +Package metadata versions are separate and are not rewritten by this rollout. + +The container workflow builds Linux amd64 images once, smoke-tests their +`/healthz` endpoint, then publishes that exact tested image. PRs do not publish. +Main builds update `latest` and `sha-`; release builds publish the +exact CalVer tag without changing `latest`. A GitHub release is created only +after every matrix image publishes; its notes include all image digests. + +| Published image | Build context | Smoke port | +| --- | --- | --- | +| ghcr.io/jctanner/breadboard-dashboard | Repository root, pinned OpenShell SDK checkout | 5000 | +| ghcr.io/jctanner/breadboard-fullsend-dashboard | Repository root | 5000 | +| ghcr.io/jctanner/breadboard-golang-reverse-proxy | deploy/golang-reverse-proxy | 80 | + +The dashboard SDK source is pinned to OpenShell commit +`b2ea81822bb5263679ed00ff0fbe8c08577abab5`; Actions fetches that public commit +before the build. It does not copy a developer's ignored checkout. + +## Deployment and local builds + +`deploy/release-images.json` records each selected image's release pin and +its corresponding local build tag. Maintained manifests use the published +CalVer tags and `IfNotPresent`. They include the Jira and GitHub K3s variants +required by the existing TLS/Caddy manifests. No deployment is performed by +the release workflows. Package visibility is a separate human-approved action; +configure image pull authentication for private packages. + +Regular deploy scripts use the pins and skip local builds for these images. +`BREADBOARD_IMAGE_SOURCE=local` selects the existing local tags through +`apply-domain-manifests.sh`, retaining domain rendering. Explicit +`make host-rebuild-dashboard`, emulator, proxy, relay and hooksink rebuild +targets select local images automatically. To review either form without +applying it: + +```sh +bash deploy/scripts/apply-domain-manifests.sh --render deploy/k8s/20-pipeline-dashboard.yaml +BREADBOARD_IMAGE_SOURCE=local bash deploy/scripts/apply-domain-manifests.sh --render deploy/k8s/20-pipeline-dashboard.yaml +``` + +Update a release pin by checking the GitHub release and its published digest, +then changing the manifest and `release-images.json` together in a PR. Use +`image:tag@sha256:...` for additional digest pinning. This repository has no +maintained Compose deployment on origin/main. + +## Images retained as local or upstream builds + +- Pipeline agent: requires the installation's internal CA and unpinned + architecture/agent source inputs. Publish only after those build inputs and + CA injection have a separate reproducible contract. +- Claude agent and Fullsend Mint development images: retain local development + builds; the mint is an integration-only credential exchange service. +- Fullsend runner/sandbox/code and OpenShell supervisor local variants: built + from third-party integration sources; retain their upstream release schemes + and local overlays pending owner coordination. +- Org Pulse: layered images in red-hat-data-services repositories, already + using a CORE_TAG contract; retain that contract and upstream publication. +- Observatory and markovd: repositories outside jctanner; proposals only until + separately authorized. Markov's existing SemVer release path is preserved. +- Workflow Dojo: optional, outside deploy-all.sh; inventory only here. +- Legacy ai-first-pipeline: generated Dockerfile in a deployment script; + deferred until it has a maintained reproducible build definition. + +A failed publication creates no GitHub release. Inspect Actions and GHCR before +any next action; do not automatically retry or overwrite release images. +Allocate a new CalVer suffix if a release image was partially published. +Changing GHCR package visibility always requires separate human approval. diff --git a/scripts/publish_image.sh b/scripts/publish_image.sh new file mode 100644 index 00000000..d1023216 --- /dev/null +++ b/scripts/publish_image.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash +# Publish only the locally smoke-tested image; Docker push reports the registry digest. +set -euo pipefail +image="${IMAGE_REPOSITORY,,}" +if [[ "$GITHUB_REF" == refs/tags/* ]]; then + if docker manifest inspect "$image:$GITHUB_REF_NAME" > /dev/null 2>manifest-error; then + echo "Release image already exists; immutable tags cannot be republished." + exit 1 + fi + if ! grep -Eqi 'manifest unknown|no such manifest|not found' manifest-error; then + cat manifest-error + exit 1 + fi +fi +pushed_digest="" +while IFS= read -r tag; do + docker tag release-smoke:local "$tag" + docker push "$tag" | tee push-output + current_digest=$(sed -nE 's/.*digest: (sha256:[a-f0-9]{64}) size:.*/\1/p' push-output) + if [[ ! "$current_digest" =~ ^sha256:[a-f0-9]{64}$ ]]; then + echo "Docker push did not report exactly one registry digest." + exit 1 + fi + if [[ -n "$pushed_digest" && "$pushed_digest" != "$current_digest" ]]; then + echo "Published tags resolved to different image digests." + exit 1 + fi + pushed_digest="$current_digest" +done <<< "$TAGS" +[[ -n "$pushed_digest" ]] +printf '%s@%s\n' "$image" "$pushed_digest" > image.txt diff --git a/scripts/release_version.py b/scripts/release_version.py new file mode 100644 index 00000000..3278f589 --- /dev/null +++ b/scripts/release_version.py @@ -0,0 +1,15 @@ +"""Validate release tags without interpreting CalVer as SemVer.""" +import datetime +import re +import sys + + +def validate(value: str) -> str: + if not re.fullmatch(r"20[0-9]{2}\.[0-9]{2}\.[0-9]{2}(?:\.[1-9][0-9]*)?", value): + raise ValueError("expected YYYY.MM.DD or YYYY.MM.DD.N (N >= 1)") + datetime.date.fromisoformat(value[:10].replace(".", "-")) + return value + + +if __name__ == "__main__": + print(validate(sys.argv[1])) diff --git a/scripts/test_publish_image.py b/scripts/test_publish_image.py new file mode 100644 index 00000000..964a775a --- /dev/null +++ b/scripts/test_publish_image.py @@ -0,0 +1,54 @@ +"""Catch local-name RepoDigests and enforce publication failures and immutability.""" +import os +import subprocess +import tempfile +import unittest +from pathlib import Path + +SCRIPT = Path(__file__).with_name("publish_image.sh") +DIGEST = "sha256:" + "a" * 64 + + +class PublishImageTest(unittest.TestCase): + def publish(self, mode): + with tempfile.TemporaryDirectory() as directory: + root = Path(directory) + docker = root / "docker" + docker.write_text( + '#!/usr/bin/env bash\n' + 'case "$1" in\n' + ' manifest)\n' + ' if [[ "$MODE" == existing ]]; then exit 0; fi\n' + ' if [[ "$MODE" == denied ]]; then echo denied >&2; exit 1; fi\n' + ' echo "manifest unknown" >&2; exit 1;;\n' + ' tag) exit 0;;\n' + ' push)\n' + ' if [[ "$MODE" == failed ]]; then exit 1; fi\n' + ' if [[ "$MODE" == missing ]]; then echo "no digest"; exit 0; fi\n' + f' echo "$2: digest: {DIGEST} size: 1234";;\n' + # Real Docker can list release-smoke@sha256 first. Never use it. + ' *) echo "Unexpected docker operation: $1" >&2; exit 99;;\n' + 'esac\n' + ) + docker.chmod(0o755) + result = subprocess.run( + ["bash", str(SCRIPT)], cwd=root, capture_output=True, text=True, check=False, + env={**os.environ, "PATH": directory + os.pathsep + os.environ["PATH"], + "MODE": mode, "IMAGE_REPOSITORY": "ghcr.io/jctanner/example", + "GITHUB_REF": "refs/tags/2026.11.15", "GITHUB_REF_NAME": "2026.11.15", + "TAGS": "ghcr.io/jctanner/example:2026.11.15\nghcr.io/jctanner/example:sha-source"}, + ) + image = (root / "image.txt").read_text() if (root / "image.txt").exists() else None + return result, image + + def test_registry_reference_uses_the_successful_push_digest(self): + result, image = self.publish("success") + self.assertEqual(result.returncode, 0, result.stderr) + self.assertEqual(image, f"ghcr.io/jctanner/example@{DIGEST}\n") + + def test_existing_release_registry_errors_and_push_failures_stop_publication(self): + for mode in ["existing", "denied", "failed", "missing"]: + with self.subTest(mode=mode): + result, image = self.publish(mode) + self.assertNotEqual(result.returncode, 0) + self.assertIsNone(image) diff --git a/tests/test_release_images.py b/tests/test_release_images.py new file mode 100644 index 00000000..83027afc --- /dev/null +++ b/tests/test_release_images.py @@ -0,0 +1,40 @@ +"""Release pins and the local build option must select the intended images.""" +import importlib.util +import json +from pathlib import Path +import unittest + +ROOT = Path(__file__).resolve().parents[1] +SPEC = importlib.util.spec_from_file_location("renderer", ROOT / "deploy/scripts/render_domain_manifest.py") +MODULE = importlib.util.module_from_spec(SPEC) +SPEC.loader.exec_module(MODULE) + + +class ReleaseImagesTest(unittest.TestCase): + def test_release_and_local_selection_for_all_pins(self): + pins = json.loads((ROOT / "deploy/release-images.json").read_text()) + for local, published in pins.items(): + with self.subTest(image=local): + original = f" image: {local}\n" + expected = f" image: {published}\n" + self.assertEqual(MODULE.transform_images(original), expected) + self.assertEqual(MODULE.transform_images(expected, "local"), original) + self.assertNotIn(":latest", published) + + def test_other_images_and_unrelated_text_are_preserved(self): + text = " image: postgres:16\n value: pipeline-dashboard:latest\n" + self.assertEqual(MODULE.transform_images(text), text) + self.assertEqual(MODULE.transform_images(text, "local"), text) + + def test_invalid_source_fails_closed(self): + with self.assertRaises(ValueError): + MODULE.transform_images("image: postgres:16\n", "typo") + + def test_pins_are_used_in_manifests_and_remain_domain_independent(self): + paths = list((ROOT / "deploy/k8s").glob("*.yaml")) + paths.append(ROOT / "deploy/golang-reverse-proxy/deployment.yaml") + combined = "\n".join(path.read_text() for path in paths) + for published in json.loads((ROOT / "deploy/release-images.json").read_text()).values(): + self.assertIn("image: " + published, combined) + rendered = MODULE.transform_manifest(MODULE.transform_images(combined), "bb.example") + self.assertIn("ghcr.io/jctanner/jira-emulator-k3s:2026.11.15", rendered) From 6f4cb05b3374d67898f3e47e42f119be921bcf92 Mon Sep 17 00:00:00 2001 From: jctanner Date: Sun, 15 Nov 2026 16:09:54 -0500 Subject: [PATCH 2/5] Supply synthetic runtime configuration for the dashboard smoke check --- .github/workflows/container.yml | 6 +++++- .ledger/tasks/current/cc-43-releases.md | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 510835fa..d22c3e17 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -81,7 +81,11 @@ jobs: VARIANT: ${{ matrix.variant }} CONTAINER_PORT: ${{ matrix.port }} run: | - docker run -d --name release-smoke -p "127.0.0.1:8080:$CONTAINER_PORT" release-smoke:local + extra=() + if [[ "$VARIANT" == dashboard ]]; then + extra=(-e ANTHROPIC_VERTEX_PROJECT_ID=synthetic-ci-project) + fi + docker run -d --name release-smoke -p "127.0.0.1:8080:$CONTAINER_PORT" "${extra[@]}" release-smoke:local for _ in $(seq 1 30); do if curl --max-time 2 -fsS http://127.0.0.1:8080/healthz > /dev/null; then exit 0 diff --git a/.ledger/tasks/current/cc-43-releases.md b/.ledger/tasks/current/cc-43-releases.md index 039cc867..940b6c2b 100644 --- a/.ledger/tasks/current/cc-43-releases.md +++ b/.ledger/tasks/current/cc-43-releases.md @@ -98,3 +98,25 @@ retried and no release was overwritten. - Deployment manifests use immutable CalVer pins; explicit rebuild targets export BREADBOARD_IMAGE_SOURCE=local and retain existing local build tags. - No cluster deployment or package visibility change has been performed. + +## Rollout PRs + +- Jira reference #32 merged; publication correction #33 open. +- GitHub emulator #23: https://github.com/jctanner/github-emulator/pull/23 +- GitLab emulator #1: https://github.com/jctanner/gitlab-emulator/pull/1 +- Slack emulator #1: https://github.com/jctanner/slack-emulator/pull/1 +- Hooksink #1: https://github.com/jctanner/hooksink/pull/1 +- Model Relay #1: https://github.com/jctanner/model-relay/pull/1 +- Entra ID #1: https://github.com/jctanner/entra-id-emulator/pull/1 +- Google Docs #1: https://github.com/jctanner/google-docs-emulator/pull/1 + +All PR creation calls succeeded; no missing per-repository write access has +been observed. Fine-grained token values were read only at request time. + +Dashboard image build succeeded, but startup requires a configured model +project or relay URL. Inspected the failed smoke logs; the smoke fixture now +sets only a synthetic project name (no credentials, no inference). This is +runtime smoke configuration, not a value baked into the image. + +Anonymous GHCR reads already work for Jira standalone, Jira K3s and Entra ID. +No package visibility changes were necessary or performed. From 81bf359b0caf9c7185c20cb6cbd13260fc473637 Mon Sep 17 00:00:00 2001 From: jctanner Date: Sun, 15 Nov 2026 16:14:03 -0500 Subject: [PATCH 3/5] Pin the verified Jira follow-up release and record rollout evidence --- .ledger/tasks/current/cc-43-releases.md | 16 ++++++++++++++++ deploy/k8s/12-jira-emulator.yaml | 2 +- deploy/release-images.json | 2 +- tests/test_release_images.py | 2 +- 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.ledger/tasks/current/cc-43-releases.md b/.ledger/tasks/current/cc-43-releases.md index 940b6c2b..39460cfb 100644 --- a/.ledger/tasks/current/cc-43-releases.md +++ b/.ledger/tasks/current/cc-43-releases.md @@ -120,3 +120,19 @@ runtime smoke configuration, not a value baked into the image. Anonymous GHCR reads already work for Jira standalone, Jira K3s and Entra ID. No package visibility changes were necessary or performed. + +## Verified release progress + +- Jira corrective PR #33 merged at a9b93fcb333b51243a1fe8d549611623ee7dca73. + The corrected tag-driven workflow automatically created 2026.11.15.1; + Breadboard now pins this release. Original 2026.11.15 tag/images are unchanged. +- Entra ID #1 merged at e8d58605c9d61d37d83d4b5209aea0453bab1e52; + automatic 2026.11.15 release published. +- Google Docs #1 merged at 9b6f6ac4613a67d9519d766150e4be9900f5a92d; + automatic 2026.11.15 release published. +- Hooksink #1 merged at 4861f01d20db998c4bb1f43405e20ed17688de88; + awaiting default-branch publication before tagging. +- GitHub/GitLab image smoke checks pass after standalone /data URL fixes; + full Python CI remains pending. GitLab smoke now runs through Caddy. +- Jira and Entra latest OCI revisions match their current main commits and + remain labeled latest after release publication. Anonymous reads succeeded. diff --git a/deploy/k8s/12-jira-emulator.yaml b/deploy/k8s/12-jira-emulator.yaml index d14203cb..3f2226aa 100644 --- a/deploy/k8s/12-jira-emulator.yaml +++ b/deploy/k8s/12-jira-emulator.yaml @@ -68,7 +68,7 @@ spec: containers: - name: jira-emulator - image: ghcr.io/jctanner/jira-emulator-k3s:2026.11.15 + image: ghcr.io/jctanner/jira-emulator-k3s:2026.11.15.1 imagePullPolicy: IfNotPresent ports: diff --git a/deploy/release-images.json b/deploy/release-images.json index 0073402f..bc4ad673 100644 --- a/deploy/release-images.json +++ b/deploy/release-images.json @@ -1,5 +1,5 @@ { - "jira-emulator:k3s": "ghcr.io/jctanner/jira-emulator-k3s:2026.11.15", + "jira-emulator:k3s": "ghcr.io/jctanner/jira-emulator-k3s:2026.11.15.1", "github-emulator:k3s": "ghcr.io/jctanner/github-emulator-k3s:2026.11.15", "gitlab-emulator:latest": "ghcr.io/jctanner/gitlab-emulator:2026.11.15", "hooksink:latest": "ghcr.io/jctanner/hooksink:2026.11.15", diff --git a/tests/test_release_images.py b/tests/test_release_images.py index 83027afc..80da3557 100644 --- a/tests/test_release_images.py +++ b/tests/test_release_images.py @@ -37,4 +37,4 @@ def test_pins_are_used_in_manifests_and_remain_domain_independent(self): for published in json.loads((ROOT / "deploy/release-images.json").read_text()).values(): self.assertIn("image: " + published, combined) rendered = MODULE.transform_manifest(MODULE.transform_images(combined), "bb.example") - self.assertIn("ghcr.io/jctanner/jira-emulator-k3s:2026.11.15", rendered) + self.assertIn("ghcr.io/jctanner/jira-emulator-k3s:2026.11.15.1", rendered) From 15de3c569a122d32b4e56908573748bdee4cef5e Mon Sep 17 00:00:00 2001 From: jctanner Date: Sun, 15 Nov 2026 16:16:38 -0500 Subject: [PATCH 4/5] Preserve the local pipeline agent CA build input --- .dockerignore | 1 - .ledger/tasks/current/cc-43-releases.md | 8 +++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.dockerignore b/.dockerignore index 12a6a4d3..a038de7b 100644 --- a/.dockerignore +++ b/.dockerignore @@ -59,7 +59,6 @@ remote_skills/ .env.* *.pem *.key -internal-ca.crt checkouts/* !checkouts/openshell/ checkouts/openshell/* diff --git a/.ledger/tasks/current/cc-43-releases.md b/.ledger/tasks/current/cc-43-releases.md index 39460cfb..f6504275 100644 --- a/.ledger/tasks/current/cc-43-releases.md +++ b/.ledger/tasks/current/cc-43-releases.md @@ -40,7 +40,7 @@ parent branch and human's uncommitted work untouched. ## Acceptance criteria - [x] Inventory and approval -- [ ] Jira reference PR merged with green CI and first release published +- [x] Jira reference PR merged with green CI and first release published - [ ] Remaining owned repositories: one PR, green CI, release and image each - [ ] Breadboard matrix publication and pinned deployment option - [ ] Non-owned repository proposals and deferred image decisions documented @@ -136,3 +136,9 @@ No package visibility changes were necessary or performed. full Python CI remains pending. GitLab smoke now runs through Caddy. - Jira and Entra latest OCI revisions match their current main commits and remain labeled latest after release publication. Anonymous reads succeeded. + +A final local-build review retained internal-ca.crt in the root Docker build +context because the existing pipeline-agent Dockerfile explicitly copies that +installation's public CA. The selected release Dockerfiles do not copy it; +.env files, key files and unrelated checkouts remain excluded. This preserves +the deferred agent's existing local build path. From 17a55f638c72e323c5a882d2774f88d6b9bc8870 Mon Sep 17 00:00:00 2001 From: jctanner Date: Sun, 15 Nov 2026 16:39:04 -0500 Subject: [PATCH 5/5] Record verified component release pins and publication evidence --- .ledger/notes/cc-43-release-verification.json | 166 ++++++++++++++++++ .ledger/tasks/current/cc-43-releases.md | 41 +++++ docs/README.md | 4 + 3 files changed, 211 insertions(+) create mode 100644 .ledger/notes/cc-43-release-verification.json diff --git a/.ledger/notes/cc-43-release-verification.json b/.ledger/notes/cc-43-release-verification.json new file mode 100644 index 00000000..4bba9d0c --- /dev/null +++ b/.ledger/notes/cc-43-release-verification.json @@ -0,0 +1,166 @@ +{ + "verified_at_utc": "2026-11-15T21:39:01.685987+00:00", + "status": "All eight component releases verified; Breadboard matrix publication pending", + "deployment_performed": false, + "package_visibility_changed": false, + "repositories": { + "jctanner/jira-emulator": { + "tag": "2026.11.15.1", + "url": "https://github.com/jctanner/jira-emulator/releases/tag/2026.11.15.1", + "images": { + "ghcr.io/jctanner/jira-emulator": { + "release_digest": "sha256:446aceda6048c490e0e99ff396fdc95f93051f204239c13adf7472ee18bb034d", + "latest_digest": "sha256:98a4f3b38cc6e61275c7f9fcd7dd933fc714b8f290d35f940d6766ea22b01737", + "source": "a9b93fcb333b51243a1fe8d549611623ee7dca73", + "anonymous_pull": true + }, + "ghcr.io/jctanner/jira-emulator-k3s": { + "release_digest": "sha256:7751ab7312d662a3b66490c4969a100aa951d25da6777a7fd9f4e95015c4d71d", + "latest_digest": "sha256:a98b3dd0a4afbb5e7ed5c7fd6ceebcf6a1b66005dfb062a73523a273f56ff550", + "source": "a9b93fcb333b51243a1fe8d549611623ee7dca73", + "anonymous_pull": true + } + } + }, + "jctanner/entra-id-emulator": { + "tag": "2026.11.15", + "url": "https://github.com/jctanner/entra-id-emulator/releases/tag/2026.11.15", + "images": { + "ghcr.io/jctanner/entra-id-emulator": { + "release_digest": "sha256:1424858c4b3a7561665667f2e241fe32d51cc71cfcd79c3bc477f14637089f66", + "latest_digest": "sha256:df415940c734bf260aa09f6a2cbc7c11e6b58bdb00b4980b6ecf44506db3bb83", + "source": "e8d58605c9d61d37d83d4b5209aea0453bab1e52", + "anonymous_pull": true + } + } + }, + "jctanner/google-docs-emulator": { + "tag": "2026.11.15", + "url": "https://github.com/jctanner/google-docs-emulator/releases/tag/2026.11.15", + "images": { + "ghcr.io/jctanner/google-docs-emulator": { + "release_digest": "sha256:9d5185c4e4b1d7297921e85dfeb79e527a6964d8e0e68d62d9391604329cb1a2", + "latest_digest": "sha256:42a8eabf9b12f104e08765bfbe322ee05e4f7e73e2dc1c65b8c76b8b7ed990e3", + "source": "9b6f6ac4613a67d9519d766150e4be9900f5a92d", + "anonymous_pull": true + } + } + }, + "jctanner/hooksink": { + "tag": "2026.11.15", + "url": "https://github.com/jctanner/hooksink/releases/tag/2026.11.15", + "images": { + "ghcr.io/jctanner/hooksink": { + "release_digest": "sha256:34dc639557a2d38ee97b7744c41cff81754250bb959fd1ffbb129d552d60d9d1", + "latest_digest": "sha256:609f34797473b9a5c8adbb7d1aa82f39ccfddc21cdbd3ffb81a4b08b5edc79ef", + "source": "4861f01d20db998c4bb1f43405e20ed17688de88", + "anonymous_pull": true + } + } + }, + "jctanner/slack-emulator": { + "tag": "2026.11.15", + "url": "https://github.com/jctanner/slack-emulator/releases/tag/2026.11.15", + "images": { + "ghcr.io/jctanner/slack-emulator": { + "release_digest": "sha256:a0fa4571062a75828e3ac435ce22a23e285547a30b759f7561d3b745141f0795", + "latest_digest": "sha256:045e7bfce69c437c8f2f2a0453adeef5a2265ea845c2867b7101cec19994046c", + "source": "17b289a59ec966c978296eb5676a602329773c61", + "anonymous_pull": true + } + } + }, + "jctanner/model-relay": { + "tag": "2026.11.15", + "url": "https://github.com/jctanner/model-relay/releases/tag/2026.11.15", + "images": { + "ghcr.io/jctanner/model-relay": { + "release_digest": "sha256:d20ab116f1e8065f7b170ffb40002a4c7deb1b47dc5fa91fb6b539186374249d", + "latest_digest": "sha256:d1d8fa1b517902256bd888e0f9fa0dc21f3a2b5de420face6d5d6ac85c37be04", + "source": "a2834fa2b1118d28728384cfdf9d069f57906bdf", + "anonymous_pull": true + } + } + }, + "jctanner/github-emulator": { + "tag": "2026.11.15", + "url": "https://github.com/jctanner/github-emulator/releases/tag/2026.11.15", + "images": { + "ghcr.io/jctanner/github-emulator": { + "release_digest": "sha256:b0fa193de528755ffede90011dc852516a9aed10b08b0873239f9b3d9ddfba2a", + "latest_digest": "sha256:06787c46608a983773652401a3ed3a0cae578b97b829af0fcfb785c4e3bd1331", + "source": "0273956cd730cff0249f37eee8b1cc6db7c0ef06", + "anonymous_pull": true + }, + "ghcr.io/jctanner/github-emulator-k3s": { + "release_digest": "sha256:1bda90babb3f8120ce9de6f37381bd157098a77ede839e9234d2610520351d9a", + "latest_digest": "sha256:e41805bf8534079651069106d46e00c1d1ec73c66d9b273f712d653ed9592fc3", + "source": "0273956cd730cff0249f37eee8b1cc6db7c0ef06", + "anonymous_pull": true + } + } + }, + "jctanner/gitlab-emulator": { + "tag": "2026.11.15", + "url": "https://github.com/jctanner/gitlab-emulator/releases/tag/2026.11.15", + "images": { + "ghcr.io/jctanner/gitlab-emulator": { + "release_digest": "sha256:7b558202cbf4c090c20662c09c4da0ce06a5739d8288e62bddda0b0a36c4f66d", + "latest_digest": "sha256:5da90743f0506b046ccf500d005b10751d865d846509d2dd5fdbe98331b29dfc", + "source": "bfb7f2b28894fa5b0a44016f012e27fe708c722e", + "anonymous_pull": true + } + } + } + }, + "merged_prs": { + "jctanner/jira-emulator": { + "pr": 33, + "head_sha": "4a8248802ec4fa62284663d43d7fcd5f76858d2e", + "merge_sha": "a9b93fcb333b51243a1fe8d549611623ee7dca73", + "url": "https://github.com/jctanner/jira-emulator/pull/33" + }, + "jctanner/entra-id-emulator": { + "pr": 1, + "head_sha": "096bdcbb50b30a74a16245d35c9dcc5564019488", + "merge_sha": "e8d58605c9d61d37d83d4b5209aea0453bab1e52", + "url": "https://github.com/jctanner/entra-id-emulator/pull/1" + }, + "jctanner/google-docs-emulator": { + "pr": 1, + "head_sha": "a42e2ba57f81af96844a7d5e8f422249c45d6080", + "merge_sha": "9b6f6ac4613a67d9519d766150e4be9900f5a92d", + "url": "https://github.com/jctanner/google-docs-emulator/pull/1" + }, + "jctanner/hooksink": { + "pr": 1, + "head_sha": "00ac33609ee5eccf3ace7820f406eb96646d879f", + "merge_sha": "4861f01d20db998c4bb1f43405e20ed17688de88", + "url": "https://github.com/jctanner/hooksink/pull/1" + }, + "jctanner/slack-emulator": { + "pr": 1, + "head_sha": "d2445406308a1846cb0b61a0e3c7ec7f9f84baa4", + "merge_sha": "17b289a59ec966c978296eb5676a602329773c61", + "url": "https://github.com/jctanner/slack-emulator/pull/1" + }, + "jctanner/model-relay": { + "pr": 1, + "head_sha": "4609c9cf5af85842685574a8eef681fece6d4ce7", + "merge_sha": "a2834fa2b1118d28728384cfdf9d069f57906bdf", + "url": "https://github.com/jctanner/model-relay/pull/1" + }, + "jctanner/github-emulator": { + "pr": 23, + "head_sha": "c9209ae6ca984c569059117ddb434c841e6272cb", + "merge_sha": "0273956cd730cff0249f37eee8b1cc6db7c0ef06", + "url": "https://github.com/jctanner/github-emulator/pull/23" + }, + "jctanner/gitlab-emulator": { + "pr": 1, + "head_sha": "c62b629c8da085643b32987c2971ec02894e8066", + "merge_sha": "bfb7f2b28894fa5b0a44016f012e27fe708c722e", + "url": "https://github.com/jctanner/gitlab-emulator/pull/1" + } + } +} diff --git a/.ledger/tasks/current/cc-43-releases.md b/.ledger/tasks/current/cc-43-releases.md index f6504275..7b58331d 100644 --- a/.ledger/tasks/current/cc-43-releases.md +++ b/.ledger/tasks/current/cc-43-releases.md @@ -142,3 +142,44 @@ context because the existing pipeline-agent Dockerfile explicitly copies that installation's public CA. The selected release Dockerfiles do not copy it; .env files, key files and unrelated checkouts remain excluded. This preserves the deferred agent's existing local build path. + +## Remaining full-suite CI completed + +- GitHub emulator: 1066 passed in 613.58s; both image variants passed. +- GitLab emulator: 749 passed in 477.02s; image smoke passed. The scoped + clean-runner/parser/precedence fixes are included in its single rollout PR. +- Breadboard final PR checks are green. Its merge remains gated on the + GitHub/GitLab release pins actually existing and passing registry verification. +- Six component repositories have verified GitHub releases, matching image + digests/source labels, unchanged latest semantics and anonymous pull access. + +## Final publication stage + +GitHub emulator #23 merged at 0273956cd730cff0249f37eee8b1cc6db7c0ef06; +GitLab emulator #1 merged at bfb7f2b28894fa5b0a44016f012e27fe708c722e. +Both main image publication runs succeeded. First CalVer tags are now being +allocated from current remote state; GitLab's 2026.06.30 tag remains unchanged. +The machine-readable verification note records the six already verified +component releases; it will be completed after the final publications. + +## Component release verification complete + +All eight component repositories now have verified releases and anonymous GHCR +pulls. GitHub/GitLab release tags and image digests match their merged source +commits. Their latest images retain latest labels and the correct main source +revision after release publication. No package visibility changes were needed. + +- jctanner/entra-id-emulator: [2026.11.15](https://github.com/jctanner/entra-id-emulator/releases/tag/2026.11.15); PR #1; 1 verified image(s). +- jctanner/github-emulator: [2026.11.15](https://github.com/jctanner/github-emulator/releases/tag/2026.11.15); PR #23; 2 verified image(s). +- jctanner/gitlab-emulator: [2026.11.15](https://github.com/jctanner/gitlab-emulator/releases/tag/2026.11.15); PR #1; 1 verified image(s). +- jctanner/google-docs-emulator: [2026.11.15](https://github.com/jctanner/google-docs-emulator/releases/tag/2026.11.15); PR #1; 1 verified image(s). +- jctanner/hooksink: [2026.11.15](https://github.com/jctanner/hooksink/releases/tag/2026.11.15); PR #1; 1 verified image(s). +- jctanner/jira-emulator: [2026.11.15.1](https://github.com/jctanner/jira-emulator/releases/tag/2026.11.15.1); PR #33; 2 verified image(s). +- jctanner/model-relay: [2026.11.15](https://github.com/jctanner/model-relay/releases/tag/2026.11.15); PR #1; 1 verified image(s). +- jctanner/slack-emulator: [2026.11.15](https://github.com/jctanner/slack-emulator/releases/tag/2026.11.15); PR #1; 1 verified image(s). + +The verification JSON contains exact release/latest digests and source SHAs. +Breadboard PR #11 is the final publication step; its selected image pins now +all resolve to verified component releases. Its own matrix images will be +verified after merging and tagging. Final verification will also be attached +to the Breadboard GitHub release as a release manifest. diff --git a/docs/README.md b/docs/README.md index 326d2593..79eebb19 100644 --- a/docs/README.md +++ b/docs/README.md @@ -59,3 +59,7 @@ Stable reference material. ## Reference (top-level) - [vertex-claude-runtime.md](vertex-claude-runtime.md) — Vertex AI Claude runtime wiring + +## Releases + +- [Service releases, published images and local builds](releases.md)