Repository navigation
Closed
Labels
Description
Goal
Each in-scope lexicon should have a scheduled pipeline that attempts to upgrade it to the latest available upstream spec, regenerates, validates the regen (build + lint + examples + tests), and opens a reviewable PR with a surface diff when it is ready. PR-only: a human merges, and the change rides the next monorepo release.
Scope: which lexicons have an upstream spec
Only lexicons generated from an upstream spec are in scope. Classification:
| Bucket | Lexicons | Mechanism |
|---|---|---|
| Pinned | k8s (K8S_SCHEMA_VERSION), gcp (KCC_VERSION), docker (compose/engine versions), gitlab (GITLAB_SCHEMA_VERSION, currently v17.8.1-ee) |
Bump the version constant to a newer upstream release, regen, validate. |
| Rolling | aws (CloudFormation schema zip), azure (azure-resource-manager-schemas main + api-versions.ts), github (schemastore) |
No version to bump; regen from latest and diff the generated surface. |
| Out of scope | helm (types defined statically, no upstream schema), temporal (hand-written resources, no remote spec), forgejo (thin github dialect, no codegen of its own) | Nothing to upgrade from. No pipeline. |
7 in scope: 4 pinned, 3 rolling. helm / temporal / forgejo are explicitly excluded — do not expect upgrade PRs for them.
Findings that shape the design
- Generated code is gitignored (
lexicons/*/src/generated/). Every lexicon'sprepackalready runsgenerate → bundle → validate → build, re-fetching the spec at pack time. So regen-from-latest already happens implicitly at publish; what's missing is proactive detection, validation, and review of what changed. - The work splits by spec model (pinned vs rolling) — see the table.
- Publish is monorepo-wide (
chant-v*tag;publish.ymlruns all prepacks). No per-lexicon republish today, so "republish as ready" = PR merges and rides the next release. Independent publishing is design: per-lexicon independent versioning & publish (republish one lexicon without a monorepo release) #528, not a dependency of this epic. - No scheduled workflows exist yet (
.github/workflows/).
Chosen shape
- Output: PR-only. Scheduler opens a PR with the bump/regen + a surface delta; human reviews and merges.
- Runner: dogfood chant — an audit-style
LexiconUpgradeOprun one-shot on the local executor in a scheduled CI job (no Temporal; the CI runner is the trigger), reusing the audit-Op finding-modes (report|issue|pull-request).
Sub-issues
- feat(codegen): shared lexicon regen-validate + API surface-diff tooling #524 — shared lexicon regen-validate + API surface-diff tooling
- feat(codegen): pinned-version spec bump pipeline (k8s, gcp, docker, gitlab) #525 — pinned-version bump pipeline (k8s, gcp, docker, gitlab)
- feat(codegen): rolling-spec drift pipeline (aws, azure, github) #526 — rolling-spec drift pipeline (aws, azure, github)
- feat(op): LexiconUpgradeOp + scheduled runner + PR automation #527 —
LexiconUpgradeOp+ scheduled runner + PR automation
Cross-cutting acceptance criteria
- Each in-scope lexicon has a scheduled path that regenerates from the latest available spec and opens a PR only when the regen builds, lints, passes examples/tests, and (for rolling) the surface changed.
- Surface delta drives review and semver: PRs carry a human-readable added / changed / removed breakdown; additive-only is labeled
minor, any changed/removed is labeledbreaking(major). This feeds design: per-lexicon independent versioning & publish (republish one lexicon without a monorepo release) #528's per-lexicon versioning. - Noise control: weekly schedule; one long-lived branch per lexicon; the open PR is updated in place; a re-PR happens only when the delta changes versus the PR's current head, not versus main every run.
- Supply-chain hardening: the upstream spec fetch is pinned/verified (digest or known source), and codegen treats the spec strictly as data — it never executes spec-provided input.
- Breakage is never silent: when a spec change legitimately breaks an example or test, it surfaces as a report/issue with the diff — never a silent skip, never an auto-rewrite of examples.
- No change to the pure
chant buildpath; scheduling/regen lives in the operational/CI layer. Nothing auto-merges or auto-publishes.
Related
- design: per-lexicon independent versioning & publish (republish one lexicon without a monorepo release) #528 (per-lexicon independent publish — consumes the semver labels above)
- feat(policy): reuse external policy engines (CloudFormation Guard / OPA) via a policy-pack step #522 (policy-pack Op — same operational-layer + local-executor-in-CI pattern)
Activity
lex00 commentedon Jul 1, 2026
Follow-up on the monorepo-release constraint noted above: #528 scopes per-lexicon independent versioning & publish, so a validated upgrade PR from this epic can republish a single lexicon without a full release.
feat(op): LexiconUpgradeOp + scheduled runner + PR automation (#532)
lex00 commentedon Jul 2, 2026
Epic complete — all four sub-issues shipped and merged, main green throughout.
What's now in place: a
chant dev surface-diff/pinned-upgrade/rolling-upgradetoolchain over a committed per-lexicon API surface snapshot; aLexiconUpgradeOp(dispatches pinned vs rolling, finding-modes report/issue/pull-request, one-shot on the local executor); and.github/workflows/lexicon-upgrade.yml— the repo's first scheduled workflow — running a weekly matrix over the 7 in-scope lexicons in pull-request mode with semver labels and idempotent per-lexicon branches. helm/temporal/forgejo remain out of scope (no upstream spec).Follow-up #528 (per-lexicon independent publish) stays open by design — upgrade PRs currently ride the next monorepo release.
fix(gitlab): vendor the CI schema to stop chronic 429 flakes (#607)