Skip to content

feat(op): LexiconUpgradeOp + scheduled runner + PR automation #527

Closed

Description

@lex00

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 on WorkflowAuditOp / 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; report mode needs nothing external.
  • Scheduled GitHub Actions workflow (.github/workflows/, first schedule: in the repo), weekly, matrix over the 7 in-scope lexicons (k8s, gcp, docker, gitlab, aws, azure, github), each job running the Op in pull-request mode. Mirrors how publish.yml runs 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>-upgrade runs one-shot on the local executor and, in pull-request mode, 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions