Repository navigation
Closed
Labels
enhancementNew feature or request
Description
Part of #523. Consumes the shared tooling (#524) and drives the pinned (#525) and rolling (#526) pipelines.
The runner that dogfoods chant: an audit-style Op that runs one-shot on the local executor in a scheduled CI job (no Temporal — the CI runner is the trigger; an upgrade check needs no durable gate), reusing the audit-Op finding-mode plumbing.
Scope
LexiconUpgradeOp({ lexicon, onFinding })modeled onWorkflowAuditOp/PipelineAuditOp:- phases: detect (pinned: newer release? / rolling: surface changed?) → regen+validate (shared tooling, feat(codegen): shared lexicon regen-validate + API surface-diff tooling #524) → surface-diff → finding.
- finding-modes:
report(default, no external services) |issue|pull-request. For the epic goal,pull-request. - runs one-shot via
chant run <name>on the local executor;reportmode needs nothing external.
- Scheduled GitHub Actions workflow (
.github/workflows/, firstschedule:in the repo), weekly, matrix over the 7 in-scope lexicons (k8s, gcp, docker, gitlab, aws, azure, github), each job running the Op inpull-requestmode. Mirrors howpublish.ymlruns prepack per lexicon. - PR automation: long-lived branch per lexicon (
lexicon-upgrade/<lexicon>), idempotent — update the open PR in place; re-PR only when the delta changes versus the PR's current head. Apply the semver label (minor/breaking) from the surface delta.
Supply-chain hardening
- The upstream spec fetch is pinned/verified (digest or known source); codegen treats the spec strictly as data and never executes spec-provided input. An automated regen that pulls upstream is a supply-chain surface — harden it here.
Acceptance criteria
chant run <lexicon>-upgraderuns one-shot on the local executor and, inpull-requestmode, opens/updates a single PR when an upgrade is ready.- A scheduled workflow runs the 7-lexicon matrix weekly and never auto-merges or auto-publishes.
- Failure (regen breaks, validation/example fails) produces a report/issue with the diff, not a PR and not a silent pass or auto-rewrite.
- No Temporal dependency for the scheduled path; Temporal remains only for gated applies elsewhere.
Notes
- helm / temporal / forgejo are excluded from the matrix (no upstream spec — see epic: scheduled lexicon spec upgrades (auto-PR from latest upstream specs) #523).
- Same operational-layer + local-executor-in-CI pattern as feat(policy): reuse external policy engines (CloudFormation Guard / OPA) via a policy-pack step #522.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
feat(codegen): pinned-version upgrade detection for k8s, gcp, docker,…
feat(codegen): rolling-spec drift detection for aws, azure, github (#526
feat(codegen): rolling-spec drift detection for aws, azure, github (#526