Repository navigation
feat(op): LexiconUpgradeOp + scheduled runner + PR automation - #532
Merged
Merged
Conversation
Add the runner that dogfoods chant to keep in-scope lexicons current with their upstream specs (closes #527, epic #523). - LexiconUpgradeOp composite (temporal lexicon), modeled on WorkflowAuditOp: detects a newer upstream spec, dispatches PINNED {k8s,gcp,docker,gitlab} to checkPinnedUpgrade and ROLLING {aws,azure,github} to checkRollingUpgrade, runs the surface-diff, and surfaces a finding. helm/temporal/forgejo are rejected at construction (no upstream spec). Finding modes report (default, no external services) | issue | pull-request. Runs one-shot on the local executor via chant run; optional TemporalSchedule for continuous re-check. - lexiconUpgrade activity: pinned-vs-rolling classification/dispatch, finding-mode selection, semver labeling (additive to minor, changed/removed to breaking), and idempotent PR automation on a long-lived branch per lexicon (lexicon-upgrade/<lexicon>) that updates the open PR in place and re-pushes only when the delta changes. A failing regen/validation surfaces a report or issue with the diff, never a PR and never an auto-rewrite. - Scheduled workflow .github/workflows/lexicon-upgrade.yml (first schedule in the repo): weekly cron, matrix over the 7 in-scope lexicons, pull-request mode, per-lexicon jobs mirroring publish.yml. Never auto-merges. - ops/lexicon-upgrade/<lexicon>-upgrade.op.ts: the Op definitions chant run discovers; mode is read from CHANT_UPGRADE_MODE so one definition serves the local report loop and the CI pull-request loop. - Consume-only integration hook in codegen/pinned-upgrade.ts: export applyPinnedVersionBump (wraps the internal pin-location map + existing applyVersionBump) so the Op can commit a bump to a branch; export checkPinnedUpgrade and its types from the core barrel. No detection, regen, or diff logic is reimplemented or changed.
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #527. Final sub-issue of epic #523 — the runner that dogfoods chant to keep in-scope lexicons current with upstream specs.
What
LexiconUpgradeOpcomposite (temporal lexicon), modeled onWorkflowAuditOp. Phases detect a newer upstream spec, dispatch to the right check, run the surface-diff, and surface a finding. Rejects out-of-scope lexicons (helm/temporal/forgejo) at construction.lexiconUpgradeactivity: pinned-vs-rolling classification/dispatch, finding-mode selection, semver labeling, and idempotent PR automation..github/workflows/lexicon-upgrade.yml— the firstschedule:in the repo. Weekly cron, matrix over the 7 in-scope lexicons, pull-request mode, per-lexicon jobs mirroringpublish.yml. Never auto-merges.ops/lexicon-upgrade/<lexicon>-upgrade.op.ts— the Op definitionschant rundiscovers; mode read fromCHANT_UPGRADE_MODE.Design
checkPinnedUpgrade(feat(codegen): pinned-version spec bump pipeline (k8s, gcp, docker, gitlab) #525); ROLLING {aws, azure, github} →checkRollingUpgrade(feat(codegen): rolling-spec drift pipeline (aws, azure, github) #526). Detection/regen/diff are consumed, not reimplemented.report(default, no external services) |issue|pull-request. Runs one-shot on the local executor; optionalTemporalSchedulefor continuous re-check.lexicon-upgrade/<lexicon>), reset frommaineach run. If the open PR body already matches the new summary (trim-insensitive), the run short-circuits with no git/PR mutation. Otherwise the branch is force-pushed and the PR body updated in place — a re-PR happens only when the delta changes.additive→minor,breaking→breaking.Supply chain
Regen runs through each lexicon's own generate step; the Op only reads produced artifacts and never executes spec-provided input.
Validation
npx tsc --noEmit -p packages/core/tsconfig.json— clean.npx vitest runon the new + existing temporal tests — 77 passing (27 new);pinned-upgrade+activity-registrycore tests green.regenLexicon/npm run generatein the dev loop — the check functions andghare mocked in tests; the workflow runs live in CI.