Skip to content

epic: scheduled lexicon spec upgrades (auto-PR from latest upstream specs) #523

Closed

Description

@lex00

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's prepack already runs generate → 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.yml runs 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 LexiconUpgradeOp run 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

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 labeled breaking (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 build path; scheduling/regen lives in the operational/CI layer. Nothing auto-merges or auto-publishes.

Related

Activity

  1. added
    enhancement
    epic
    on Jul 1, 2026
  2. lex00 commented on Jul 1, 2026

    @lex00
    ContributorAuthor

    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.

  3. lex00 commented on Jul 2, 2026

    @lex00
    ContributorAuthor

    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-upgrade toolchain over a committed per-lexicon API surface snapshot; a LexiconUpgradeOp (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.

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

    enhancementepic

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions