Repository navigation
Closed
Labels
Description
Friction
- On 2026-10-09, the owner asked that a green pull request mean that the merge publishes. The owner expects read-only validation of all release steps in a release pull request. The owner expects the same for all workflows around release and distribution.
- ADR 0012 makes this more urgent. Every item pull request now targets
main. GitHub Pages is a legacy build ofmain:/docs. So documentation goes live when its pull request merges, and a broken site build breaks Pages at that merge. - The release pull request changes four files:
CHANGELOG.md,.release-please-manifest.json, and the version lines ofpyproject.tomlanduv.lock. It never changesdocs/ork8s/. A rehearsal on it tests nothing about the site or the overlay. The checks belong on the pull requests that change those paths. - The required checks already cover what a read-only job can reach for the release. They are
uv lock --check,uv buildand the image verify job. This item adds two read-only checks that nothing runs today. They are the Pages build and the image check of the Argo CD overlay.
Evidence
Checked at f3b17488 on 2026-10-22.
Site build:
- No workflow in
.github/workflows/builds the Pages site. A search forjekyllandpagesin those files finds nothing. - The GitHub documentation on required checks names two cases. A job that a job-level
ifskips reports success. A workflow that apathsfilter skips stays pending and blocks the merge. (Read on 2026-10-22.) devops gh pages verifyreadsdocs/github-pages.config.yamland counts the Markdown files indocs/. It does not build the site (verify_pages_configurationinsrc/devops_cli/github/pages.py).- Jekyll reads
_config.ymlor_config.tomlby default (Jekyll documentation).docs/_config.ymlholds only anexcludelist foragent/. A real build shows which configuration file Pages applies. - The header of
docs/_config.ymlrecords a Pages failure. A Liquid tag in one task file failed every Pages deployment onmainuntil someone excluded the folderagent/.
Argo CD overlay:
check_argocd_gate(src/devops_cli/k8s/argocd_gate.py, 316 lines) builds each Argo CD Application of this repository with Kustomize, from an exported archive. It rejects template-domain placeholders.- It has no caller, because feat(release): release-please makes every release from main #1952 deleted
src/devops_cli/release/cut.py. The item ci(k8s): the Argo CD build gate runs in devops ci on every change to k8s #1860 moves it intodevops ci. - The gate parses Helm values files. It does not render Helm charts, because a chart "cannot be built offline".
- At the tip, 29
image:lines in 11 files underk8s/pin container images. They sit in DaemonSet, Deployment, CronJob and Argo Workflows WorkflowTemplate objects. Nothing checks that these images exist in their registries. - Three of the 29 lines name the service image without a tag. Image Updater keeps that image at the digest of
service:latest, ask8s/argocd/image-updater-values.yamlsets. - Helm values files hold images as
repositoryandtagpairs, for examplek8s/llm/values-open-webui.yaml. These pairs are notimage:keys.
Related jobs:
ci.ymlalready runs theservice-imagejob on pull requests intomainwithcontents: read(refactor(release): the release no longer pins, bumps or pre-publishes the service image tag; image updater rolls service:latest #1486). The item ci(image): move the image checks to one path-filtered workflow #1858 replaces its body with a call to the reusableimage.yml. It also adds the path-filter jobchanges.
Existing tool considered
- Site build: used. The container image of
actions/jekyll-build-pagesv1.0.13 (2024-08-06, commit44a6e6beabd48582f863aeeb6cb2151cc1716697) builds the site. Itsaction.ymlsays it produces "Jekyll build artifacts compatible with GitHub Pages". Itsentrypoint.shruns thegithub-pagesgem. - The action itself: not used. The action names its image by a tag:
docker://ghcr.io/actions/jekyll-build-pages:v1.0.13. A commit pin of the action therefore does not pin the builder. ADR 0012 rejects the action of python-semantic-release for the same gap, "an unpinned Docker image". - Digest run: used. The job runs the image by digest in a
docker runstep. The digest of the tag on 2026-10-22 issha256:6791ebfd912185ed59bfb5fb102664fa872496b79f87ff8b9cfba292a7345041. - Digest run wiring: ours. The step sets the variables that
entrypoint.shreads. They areGITHUB_WORKSPACE,GITHUB_REPOSITORY,GITHUB_API_URL,INPUT_SOURCE,INPUT_DESTINATION,INPUT_BUILD_REVISION,INPUT_VERBOSE,INPUT_FUTUREandINPUT_TOKEN. The step also setsDO_NOT_TRACK=1. - Kustomize: used.
src/devops_cli/tools_lock/tools.lockpinskustomizev5.8.3. The item ci(k8s): the Argo CD build gate runs in devops ci on every change to k8s #1860 already calls it. - Image existence:
kbldfirst.kbld(Carvel, release v0.49.2 of 2026-09-29) searches the YAML keyimageby default and resolves each reference to a digest. Its documentation does not say what it does for a reference that does not resolve. Nobody ran it. - Image existence: fallback.
docker buildx imagetools inspect <image>is inrelease.yml, which publishes the images. It needs the Docker CLI with the buildx plugin, which a Podman workstation may not have. The fallback then walks the rendered documents for the keyimage, with the YAML parser that the gate already uses. - Cost. ADR 0012 gives no figure for this item. The pull request states these figures before work starts: tokens to implement, maintain and fix, and elapsed time. AGENTS.md requires this under Open Tools Before Internal Code. Until the pull request states the cost, the build part is a proposal.
- Size estimate. The docs-site job takes about 30 lines of YAML. A
kbldwrapper takes about 40 lines of source, and the fallback takes about 80. These are estimates in lines, not tokens.
Premises to verify first
The item checks each premise before it writes code. If a premise fails, the item stops. It comments on the issue with the evidence. It adds no compensating code.
- The pinned image builds the
docs/tree and passes on the tip. kustomize build | kbld -f -fails for one missing tag and passes on the tree. If it does not, the fallback applies.- The registries of the pinned images answer without credentials from the runner.
Proposed remedy
- Docs-site job. A job in
ci.ymlbuildsdocs/with the pinned image. It runs for apull_requestevent when thechangesjob (ci(image): move the image checks to one path-filtered workflow #1858) reports a change underdocs/**. The job hasneeds: changesand a job-levelif. No workflow-levelpathsfilter exists, because a filter leaves a required check pending. - Job limits. The job has
contents: read,persist-credentials: falseand atimeout-minutesvalue. It does not deploy and it uploads no artifact. Itsifnames no branch. No other job needs it. A build failure fails the pull request. - Image-pins check. A named check of
devops ciruns next to the gate of ci(k8s): the Argo CD build gate runs in devops ci on every change to k8s #1860. Its trigger files arek8s/**. It takes everyimagestring from the Kustomize output of each Application path. It asks the registry whether the image exists. - Skipped images. The check skips the images that Image Updater manages. It reads their names from the
ImageUpdaterobject ink8s/argocd/image-updater-values.yaml. Code does not list them. - Failure messages. A missing image fails the check and names the image and the Application. A registry that does not answer fails the check and names the registry. The check never passes on an error.
- Scope limit. The check does not cover the images that Helm charts render. The gate does not render charts. The pull request states this gap in its body.
- Writes. Neither job writes anything. Neither needs a secret or a registry login.
- Documents. The pull request adds one line for the image-pins check to the list of
devops cichecks indocs/SDLC.md. It describes the docs-site job in the document that describes the jobs ofci.yml.devops docs checkpasses.
What it deletes
Nothing. devops gh pages verify stays.
Tests
- The image-pins tests cover four cases. They are a missing image, a present image, an image that Image Updater manages and a registry error. The test for the missing image checks that the failure names the image and the Application.
- The extraction tests cover the shapes that the tree uses: Deployment, DaemonSet, CronJob and Argo Workflows WorkflowTemplate.
- The registry is the process edge. The tests double it through the shared fake that
docs/TESTING.mdnames for the container tools (ADR 0007). The tests reach no network. Each test takes less than 1 s. - A workflow contract test in
tests/test_workflow_contracts.pypins the trigger, the permissions and the digest form of the image. It also pins thedocs/**filter. The same test checks that theifnames no branch and that no job needs the docs-site job. actionlint,zizmoranduv run devops cipass.
Order and dependencies
- The item ci(image): move the image checks to one path-filtered workflow #1858 (step 5) must merge first. It adds the
changesjob, which this item extends with adocsoutput. - The item ci(k8s): the Argo CD build gate runs in devops ci on every change to k8s #1860 (step 8) must merge first. It puts the Kustomize gate in
devops ci, and the image-pins check runs next to it. - This item does not depend on feat(release): release-please opens the release pull request, topic pull requests target main, and its merge publishes #1861, feat(k8s): Argo CD follows release tags #1862 or refactor(release)!: delete the bespoke release machinery, the roadmap close command and the changelog fragment code #1863. All three are closed. Item pull requests target
main. - If the item "refactor(docs): CLI and MCP reference pages are built when the docs publish instead of being committed" exists, it adds the Pages workflow. It builds the same site. The item that merges second changes its job to call the build step of the first. Neither item waits for the other.
- The docs-site job needs only ci(image): move the image checks to one path-filtered workflow #1858. If the owner wants the site check before step 8, a person splits the item at intake.
- The pull request follows the item rules of ADR 0012. Its title is a Conventional Commit. Its body says
Closes #1651. - Once feat(openspec): the pull request that closes a change archives it, and readiness checks the archived folder #1846 is delivered, the pull request also carries the archived OpenSpec change folder as its last commit.
Fit
One pull request. No block is known.
Acceptance criteria
- A pull request that breaks the Jekyll build fails the docs-site job. A Liquid tag that never closes in a file under
docs/is one example. The same branch, fixed, passes. - A pull request that changes no file under
docs/skips the docs-site job. The skipped job reports success. - The docs-site job runs the Jekyll image by digest. A contract test pins the digest,
contents: read,persist-credentials: falseand thedocs/**filter. The same test checks that theifnames no branch. - A Kustomize output that pins a missing image fails the image-pins check. The failure names the image and the Application. A present image passes.
- The image-pins check skips the images that the
ImageUpdaterobject lists. The test reads the names from that file. - A registry that does not answer fails the check and names the registry.
- The image-pins tests reach no network and each takes less than 1 s.
- On the unmodified tree, the image-pins check passes. The pull request body lists the registries that the check asked and the number of references that it checked. It also records the run time of the docs-site job.
- Neither job has a write scope. Neither uses
pull_request_target.actionlintandzizmorreport no new finding, anduv run devops cipasses. - The pull request body states the cost of the build part: tokens to implement, maintain and fix, and elapsed time.
- Pending a person: the owner decides whether the
mainruleset requires the docs-site job. If it does, the ruleset also requires thechangesjob, because a failedchangesjob skips the docs-site job. ADR 0012 lists three required checks:Static Analysis,Tests & CoverageandSemantic PR title. The image-pins check runs insideStatic Analysis, so it needs no ruleset change.
Related
- Split from fix(release): a release pull request rehearses the cut and the release job read-only, so a green pull request means the release job passes on merge #1425 (its part 2). GitHub closed fix(release): a release pull request rehearses the cut and the release job read-only, so a green pull request means the release job passes on merge #1425 as not planned. The release job that it rehearsed no longer exists.
- refactor(release): the release no longer pins, bumps or pre-publishes the service image tag; image updater rolls service:latest #1486 (closed): the
service-imagejob withcontents: read. - fix(release): the cut opens as a pull request only after the release pull request's checks pass, so a fix for a failing check reaches the version's changelog #1544 (closed): the gate of the old release pipeline.
- ADR 0012,
docs/adr/0012-releases-are-derived-by-release-please-from-trunk-and-milestones-are-planning-buckets.md. - Priority under the owner's blocker rule (2026-10-17): no rule-driven raise. No filed item waits for this item.
Proposed design
Problem statement
A pull request that changes documentation or Argo CD overlay can break the site or deployment. The checks for these are not run on pull requests.
Acceptance criteria
- Criterion 1: A pull request that breaks the Jekyll build fails the docs-site job
Verification: Run a pull request with a broken Liquid tag in docs/ and verify the docs-site job fails - Criterion 2: A pull request that changes no file under docs/ skips the docs-site job
Verification: Run a pull request that only changes k8s/ and verify the docs-site job is skipped - Criterion 3: The docs-site job runs the Jekyll image by digest
Verification: Check workflow run for docs-site job and confirm it uses pinned digest image - Criterion 4: A Kustomize output that pins a missing image fails the image-pins check
Verification: Run a pull request that adds a missing image reference and verify image-pins check fails - Criterion 5: The image-pins check skips images managed by Image Updater
Verification: Verify the check reads from k8s/argocd/image-updater-values.yaml and skips those images - Criterion 6: A registry that does not answer fails the check and names the registry
Verification: Run test with fake registry that returns error and verify it names the registry in failure message
Key questions
None.
Open questions
- Does the pinned Jekyll image build the docs/ tree and pass on the tip? (missing verified source)
- Does
kustomize build | kbld -f -fail for one missing tag and pass on the tree? (missing verified source) - Do the registries of the pinned images answer without credentials from the runner? (missing verified source)
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 18, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
The candidate proposes a new feature to enhance CI workflows with read-only validation checks.The owner has explicitly stated this item blocks the release process and is a priority under their blocker rule.This change ensures that release pull requests fail before merge if there are site or deployment issues, improving reliability.Requires implementing new jobs in CI workflows and updating documentation, but does not involve major architectural changes.[-]feat(ci): a release pull request builds the pages site and renders the argo cd overlay read-only, so a site or deploy break fails before the merge[/-][+]feat(ci): a pull request builds the pages site and renders the argo cd overlay read-only, so a site or deploy break fails before the merge[/+]feat(ci): a pull request that changes the docs builds the pages site,…