Skip to content

epic: CI hardening, the driver (chant, behold, plywood, terragucci, sql-yodeler) #5452

Done

Description

@lex00

Goal

Any chant user, not only the CI products, gets the basics a regulated CI team needs, from the pipelines chant generates and from chant ci serve, with no hand-written pipeline YAML:

  • hardened, digest-pinned images;
  • a scan before anything is pushed;
  • image SBOMs that list OS packages;
  • signing and provenance that work off public Sigstore and off GitHub and GitLab;
  • evidence mapped to FedRAMP Moderate and CCCS Medium controls.

plywood, terragucci and SQL Yodeler then offer Chainguard image sets with one key, and behold draws the mixed estates such a team runs.

This issue is the driver: it is the one place that says what is next. It covers chant, behold, plywood, terragucci and sql-yodeler.

How to drive it

Read this whole issue, then pick the first unchecked line whose "after" lines are all checked. Each line is one pull request in the repository named, or one numbered pull request in the issue's own "Pull requests, in order" list. Lines in the same stage with no "after" between them can run in parallel.

  • Follow the workspace rules (CLAUDE.md at the workspace root) and the repository's AGENTS.md:

    • one issue, one branch, one pull request;
    • the local gate passes before you push;
    • queue with gh pr merge <n> --auto --squash;
    • never watch CI.
  • An issue is a lead. Check its claims against the code before building on them, and correct the issue when the code disagrees.

  • When a pull request merges, tick its line here with the PR link, and tick the matching box in the issue's own list.

  • Stop and report at every line marked person. You never:

    • cut or publish a release;
    • run an e2e, emulator, bench or live cloud read;
    • push an image;
    • set a grant override.

    A person does those, and ticks the line.

  • A pull request in behold, plywood, terragucci or sql-yodeler that needs chant from this issue waits for a chant release a person cut (stage 3). It never merges against an unreleased chant.

  • Product docs describe what works on the day the pull request merges. A step that depends on a later line says what works today, and the later line's pull request updates it.

  • Subagents: Sonnet for well-scoped lines, opus for design (release.signing: KMS, key and private Sigstore modes, and signing on Forgejo #5458, ci serve: run releases on the host, with the same steps the rendered release workflow runs #5462, Research: FedRAMP Moderate and CCCS Medium profiles and an evidence export #5447), never fable.

Stage 1: chant core, in parallel

Release hardening:

Mixed estates and lexicons:

Research, no production code:

Stage 2: chant, on top of stage 1

Stage 3: a chant release (person)

  • person cuts and publishes a chant release that carries stages 1 and 2. Record the version here: @intentius/chant 0.124.114 (aws 0.124.106, sql 0.124.103, docker 0.124.102, github 0.124.103, gitlab 0.124.102, forgejo 0.124.103, terraform 0.124.104, pulumi 0.124.104, azure 0.124.105; publish run 44989668923, cut from 1f19ae3). Every line in stage 4 pins to it.

Stage 4: the other repositories, on that release

Stage 5: docs and follow-ups

Stage 6: runs only a person grants

Each of these is ticked by a person after the run, and its issue's fake-based Done-when lines are ticked by the pull request:

Stage 7: last

Follow-ups found while closing this out

Each is labeled epic:ci-hardening. None blocks a line above. Ticked ones have merged, and all of them are in @intentius/chant 0.124.120 (publish run 45136520176, cut from 81d822c).

Fixed:

Open, release and publish:

Open, ci serve:

Open, docs and tests:

Open, weekly upgrade and other repositories:

Related, tracked elsewhere

Acceptance criteria

Activity

  1. added
    epic
    epic:ci-hardening
    on Nov 21, 2026
  2. changed the title [-]epic: CI hardening[/-] [+]epic: CI hardening, the driver (chant, behold, plywood, terragucci, sql-yodeler)[/+] on Nov 21, 2026
  3. lex00 commented on Nov 22, 2026

    @lex00
    ContributorAuthor

    Correction to the stage 1 list: #5450 is not research. It is code (a RestoreDrillOp composite, a drill record on chant/lifecycle, a workspace status view and a guide page), built on the ci-hardening branch. Only the emulator run in stage 6 is a person's; its steps and the result that ticks it are in the comment on #5450.

  4. lex00 commented on Nov 22, 2026

    @lex00
    ContributorAuthor

    Status, 2026-11-21

    The epic was built on one integration branch per repository (ci-hardening) and each branch is one pull request, in place of one pull request per line. A line above is ticked when its pull request merges.

    Repository Pull request Covers State
    chant #5473 every stage 1, 2 and 5 line, including #5464 to #5471 auto-merge on
    behold INTENTIUS/behold#1248 #1246 auto-merge on
    behold INTENTIUS/behold#1249 #1245, #1247, the floors draft, after stage 3
    plywood INTENTIUS/plywood#183 #181 draft, after stage 3
    terragucci INTENTIUS/terragucci#1530 #1521 draft, after stage 3
    sql-yodeler INTENTIUS/sql-yodeler#408 #405 draft, after stage 3

    Corrections to the lines above:

    What the stage 3 release has to settle, because each was set to an expected version before the release existed:

    • behold: AWS_STACK_MEMBER_CHANT_FLOOR and WORKSPACE_STATE_LOCATIONS_CHANT_FLOOR in src/chant-floors.ts, and CHANT_RELEASE.
    • terragucci: CI_IMAGE_BASE_CHANT_FLOOR and CHANT_PIN.
    • plywood: CHAINGUARD_IMAGES_SINCE, and the chant pins.
    • sql-yodeler: the chant pins, and a mysql case in the five places its typecheck names, since the sql lexicon's Dialect gains it.

    Each product's rendered publish.yml matches the declaration with supply-chain on. Rendering on the branch before it merges writes the old file, because the release workflow reads security groups at main; that output is not to be committed.

    Person runs added by this work, beside the stage 6 lines:

  5. lex00 commented on Nov 22, 2026

    @lex00
    ContributorAuthor

    Second chant release, 2026-11-22

    @intentius/chant 0.124.115 (publish run 45048848304, cut from f898555; the lexicons keep their versions). It follows the first product releases with supply-chain on, which the scan refused before anything was published:

    State of the stage 4 release line:

    Each product pins chant 0.124.115 before its release.

  6. lex00 commented on Nov 22, 2026

    @lex00
    ContributorAuthor

    Live AWS reads, us-east-2:

    • CloudFormation members naming deployed stacks: chant workspace graph drew the resources and edges of two live stacks from their deployed templates, with stack status, outputs and physical ids. A missing stack, a missing region and bad credentials each gave their refusal while the other stacks were still read.
    • State locations: chant workspace state listed each stack's location and lock, and marked the missing stack unreachable with its reason.
    • ECS tasks: a scratch Fargate service was deployed, chant graph --live --overlay showed its running task as a runtime node owned by the service, chant lifecycle diff --live listed it under RUNTIME and not as an orphan, and the stack was deleted.

    Found on the way: #5484, #5485, #5490.

  7. lex00 commented on Nov 22, 2026

    @lex00
    ContributorAuthor

    Registry and signing on real services, from a private scratch project:

    Found on the way: #5486 (the cut job gets no packages scope), #5491 (a private repo's cut needs actions: read to see its earlier runs).

  8. lex00 commented on Nov 22, 2026

    @lex00
    ContributorAuthor

    #5454: lexicon-upgrade.yml had failed five legs every week because the pin lookup imported generated files the workflow never builds; azure had joined that lookup. After #5489, a dispatched run on main passed the azure leg and opened #5498, the bump from d15606ff to a1a176c7 with no surface delta. Eight of nine legs passed; the gcp leg exits 1 with no output.

  9. lex00 commented on Nov 23, 2026

    @lex00
    ContributorAuthor

    behold on live AWS, with chant 0.124.118:

    Also recorded: the terragucci init/chainguard-job claim passed with its break caught (INTENTIUS/terragucci#1545).

    Found on the way: INTENTIUS/behold#1252, #5504.

  10. lex00 commented on Nov 23, 2026

    @lex00
    ContributorAuthor

    Since the last status: chant 0.124.118 and 0.124.119 are published, terragucci 0.4.66 is published with all eight images verified, and behold offers the runtime view on AWS.

    Fixed on the way: #5484, #5485, #5486, #5488, #5490, #5491, #5496, #5499, #5500, #5501, #5504, #5481, #5483, and INTENTIUS/behold#1252. Filed and open: #5508.

    Still open here: #5451 against real Sonar, Mend and Wiz; the supply-chain behaviours on a real Forgejo, a train workflow and ci serve --release; #5453.

  11. lex00 commented on Nov 23, 2026

    @lex00
    ContributorAuthor

    Acceptance evidence, GitHub and a train workflow, 2026-11-22. A scratch project with supply-chain on, on real GitHub Actions, from workflows chant rendered, with chant 0.124.119. Both scratch repositories and their packages are deleted, so this comment and the saved logs are the record.

    unpinned FROM refused scan stops before push image SBOM lists OS packages signature and SLSA name the builder
    single product run 45108857401, release-image-base-unpinned run 45109411682, 4 criticals with fixes, publish-scan-failed, nothing recorded, tagged or pushed 19 pkg:apk/wolfi packages (run 45109723256) 4 Sigstore bundles verified, builder .../chant-release.yml@refs/heads/main
    train, two members run 45109178852, release-image-base-unpinned, train-cut-failed run 45109408575, publish-scan-failed, the label is not spent 19 apk packages (run 45110409211) 4 Sigstore bundles verified, builder .../release.yml@refs/heads/main

    After the two refusals neither registry package existed and neither repository had a tag or a chant/lifecycle branch. On published product images the SBOM attestation of terragucci 0.4.66 lists 114 deb packages (tofu image) and 78 apk packages (Chainguard tofu image).

    The train needed doctor: false, because the train's cut job has no id-token: write and the doctor fails signing-oidc. That and three npm findings are being filed as issues. The npm member published with provenance to GitHub Packages, then the run failed on npm audit signatures, so chant never recorded it as revealed.

    Still to show: GitLab with an image, Forgejo, and ci serve --release.

  12. lex00 commented on Nov 23, 2026

    @lex00
    ContributorAuthor

    Acceptance evidence, ci serve --release and GitLab with an image, 2026-11-22.

    chant ci serve --forge git --release, a real host run on a workstation: chant built from main plus the fixes queued today, a bare git origin, a registry:2 container on localhost, real syft 1.56.0, grype 0.121.1 and cosign, key mode with rekor: false.

    behaviour result
    unpinned FROM refused release-image-base-unpinned in the host's cut job; the registry catalog stayed empty and no tag was pushed
    scan stops before push 4 criticals with fixes, publish-scan-failed, nothing recorded, tagged or pushed
    image SBOM lists OS packages SPDX 2.3 attestation with 19 pkg:apk/wolfi packages
    signature and SLSA name the builder builder .../builder/ci-serve/SHA256:VpiV30qh..., the host's runner key; signature, SLSA, SBOM and scan attestations verified with release verify --sigstore

    The ci/green tags were pushed by hand, because the record job fails on a root-only project. The image was built for linux/amd64, because an arm64 host cannot release its own platform. Both are filed.

    GitLab, real gitlab.com shared runners, from the release file chant rendered, chant 0.124.119, image to registry.gitlab.com, keyless.

    behaviour result
    unpinned FROM refused pipeline 3101238461, release-image-base-unpinned
    scan stops before push pipeline 3101255965, 4 criticals with fixes, publish-scan-failed, the label is not spent, registry empty
    image SBOM lists OS packages partly: the SPDX referrer with 19 apk packages was attached (pipeline 3101265545), the signed attestation was not made
    signature and SLSA name the builder not shown

    The last two stop on a chant defect: registry.gitlab.com rejects the scan findings referrer (MANIFEST_INVALID, unknown media type application/vnd.intentius.chant.scan.v1+json), before anything is signed. A fix is being written; GitLab is shown again once it is in a release. The scratch project and its registry repository are deleted.

    Still to show: Forgejo.

  13. lex00 commented on Nov 23, 2026

    @lex00
    ContributorAuthor

    Acceptance evidence, Forgejo, 2026-11-22. A real Forgejo 16.0.5 with a real forgejo-runner 13.2.0, run locally, chant 0.124.119 from npm, the workflow chant release workflow --forge forgejo rendered, committed unedited, key mode with rekor: false, image to a local registry:2.

    behaviour result
    unpinned FROM refused run 3, cut job, release-image-base-unpinned; registry catalog empty, no tag
    scan stops before push run 4, cut job, 4 criticals with fixes, publish-scan-failed; registry still empty, no tag
    image SBOM lists OS packages run 5, SPDX 2.3 attestation with 19 pkg:apk/wolfi packages
    signature and SLSA name the builder builder <instance>/proof-admin/chant-proof-5452/.forgejo/workflows/chant-release.yml@refs/heads/main, build type forgejo-actions/v1; 4 key-signed bundles verified with release verify --sigstore

    The instance, runner, registry and repository were scratch and are removed. The green gate was met by a commit status posted by hand, since the scratch repository ran no CI. Findings filed: #5542 (the release jobs always run on ubuntu-latest), #5543 (tool downloads are always amd64), #5544 (the builder id carries the runner's URL).

    With this, the acceptance line is shown on GitHub, Forgejo, a train workflow and ci serve --release. GitLab has the two refusals and the SBOM referrer; its signature and SLSA wait on #5540, which is being checked against registry.gitlab.com with a local build.

  14. lex00 commented on Nov 23, 2026

    @lex00
    ContributorAuthor

    Acceptance evidence, GitLab signing, 2026-11-22. The state that failed earlier, run again on gitlab.com shared runners with chant built from main plus #5541 (a tarball committed to the scratch project), from the release file chant rendered, keyless, image to registry.gitlab.com.

    • Pipeline 3101456909: gate, cut and publish passed. The scan findings referrer went out with artifactType: application/json and the annotation naming the chant type, and the registry accepted it. This is the check of registry.gitlab.com refuses the scan.json referrer's artifact type, so a supply-chain image release to GitLab can't publish #5540's fix against the real registry.
    • Image SBOM: a signed SPDX 2.3 attestation with 19 pkg:apk/wolfi packages; cosign verify-attestation --type spdxjson passes.
    • Signature and SLSA: builder https://gitlab.com/lex002/chant-proof-5452-image2//.gitlab-ci.yml@refs/heads/main, certificate issued for that workflow by https://gitlab.com through id_tokens, Rekor index 4050363037; cosign verify and verify-attestation --type slsaprovenance1 pass, and release verify --sigstore verifies all four bundles.

    The scratch project, its registry repository and its tokens are deleted.

    With this the acceptance line holds on GitHub, GitLab and Forgejo, on a train workflow and on ci serve --release. GitLab needs the fix in #5541, which is in the queue and not yet in a release.

  15. lex00 commented on Nov 23, 2026

    @lex00
    ContributorAuthor

    Closing status, 2026-11-23.

    Released. @intentius/chant 0.124.120 (publish run 45136520176, cut from 81d822c) carries every fix made while closing this out: #5508, #5514, #5515, #5517, #5518, #5519, #5540, #5547, #5548, #5549, #5550, #5521 and #5557. The first cut attempt was refused with release-commit-revoked: a test went 0.4s over its time budget on main after the commit was tagged green (#5557).

    Ticked. Every line in stages 1 to 6, and the acceptance line: the four supply-chain behaviours are shown on real GitHub, GitLab and Forgejo, on a train workflow and on ci serve --release, with the evidence in the comments above. GitLab needs 0.124.120. #5451 is closed on fakes by the owner's decision.

    Unticked, and what each waits on.

    Lines of the epic itself:

    Follow-ups, none of which blocks a line above. Each needs someone to pick it up; where a person must supply something, it is named.

    Not verified by a real run: INTENTIUS/terragucci#1550 (claims push a base commit) merged on its unit tests only; no claim was run for it.

  16. lex00 commented on Nov 23, 2026

    @lex00
    ContributorAuthor

    Status, 2026-11-23: the follow-ups pass.

    Merged. #5559 carries 20 follow-ups as one commit each: #5520, #5522, #5523, #5524, #5525, #5531, #5532, #5533, #5534, #5536, #5537, #5538, #5539, #5542, #5543, #5544, #5545, #5546, #5482 and #5511, plus azure and k8s for #5551 and the cause of #5556's failing shards. #5520 follows the owner's choice: release verify --sigstore exits 0 when no cut is ssh-signed, every Sigstore bundle verifies, and no release gate is named. Local gate: build, typecheck, lint and docs check passed; the unit run ended with 13 tests over the per-test time budget under load, each of which passes alone. Not yet in a chant release.

    Released. behold 0.34.5 and the VS Code extension 0.1.4, on chant 0.124.120 (behold #1259). The publish job failed three times on npm audit signatures: the registry answered attestation requests with a 200 text/plain body of OK, for a different dependency each time, and passed on the fourth. Filed as #5562. chant release verify --sigstore on both: digest matches, release-unsigned (the #5520 fix is not released yet), and no Sigstore bundles, as for 0.34.4. The pins move in behold #1261.

    Upgrades. A dispatch of lexicon-upgrade.yml on main after #5559 passed every leg. The cedar leg opens #5561 instead of filing an issue. #5556 regenerated with the dependent ranges and lockfile, and all checks pass.

    Open, and what each waits on.

    Also filed while working, each needing validation before it is built on: #5563 and #5564 here, and INTENTIUS/plywood#187, #188 and #189.

  17. lex00 commented on Nov 24, 2026

    @lex00
    ContributorAuthor

    Closing status, 2026-11-24.

    Merged.

    Released. @intentius/chant 0.124.121 (publish run 45477948578), with #5559, #5551, #5562, #5563 and #5564 in it, and the k8s, gcp and pulumi lexicons at 0.124.105. behold follows it (behold #1264) and is released as 0.34.6; its pins moved in behold #1266. The behold publish failed once on npm audit signatures: the registry answered OK for one attestation on all four tries, the new retry said the audit could not run, and a rerun of the publish job passed.

    chant release verify --sigstore on behold 0.34.6 still ends with release-unsigned. That is not the #5520 fix failing: it passes a release when its Sigstore bundles verify, and an npm-only release has none, since publish-time signing covers OCI and forge targets. Filed as #5572.

    Validated. #5563 and #5564 here, and INTENTIUS/plywood#187, #188 and #189, each with a comment on what holds and what was corrected. The plywood issues stay in plywood.

    Open, and what a person supplies.

    Filed while closing out, none blocking. #5569 (fountain and render may not keep published names; needs validation), #5571 (pr-apply help gives exit 3 for a moved plan; it is 4), #5572 (above).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    epicepic:ci-hardening

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions