Skip to content

lexicon-upgrade: fly matrix job fails weekly — ops/lexicon-upgrade/fly-upgrade.op.ts was never added #1218

Closed

Description

@lex00

Every scheduled lexicon-upgrade run since fly joined the matrix has failed on the fly job:

npx tsx packages/core/src/cli/main.ts run fly-upgrade --local --json
error: Op "fly-upgrade" not found
##[error]Process completed with exit code 1.

Three consecutive weekly failures so far (runs 29236836607 / 29728727253 / 30254409914 — Jul 13, 20, 27), so fly has had no rolling-drift coverage since it nominally joined, and the workflow's overall status has been red for three weeks, which also buries any real failure in another lexicon's job.

Root cause

c2d1af (fly: join the rolling-upgrade matrix (#808 T1) (#813)) wired four of the five pieces:

  • RollingLexicon union += "fly" (packages/core/src/codegen/rolling-upgrade.ts)
  • ROLLING_LEXICONS dispatch set += "fly" (upgrade Op activity)
  • workflow matrix += fly
  • seeded lexicons/fly/surface.snapshot.json

…but never added ops/lexicon-upgrade/fly-upgrade.op.ts, which is what chant run fly-upgrade resolves. The commit's verification ran dev rolling-upgrade lexicons/fly and dev surface-diff lexicons/fly --check directly — both bypass the Op layer, so the gap didn't surface.

Fix

The one-line op file, mirroring the other seven:

// ops/lexicon-upgrade/fly-upgrade.op.ts
import { LexiconUpgradeOp } from "@intentius/chant-lexicon-temporal";

const mode = (process.env.CHANT_UPGRADE_MODE ?? "report") as "report" | "issue" | "pull-request";

export default LexiconUpgradeOp({ lexicon: "fly", onFinding: mode }).op;

Verify with CHANT_UPGRADE_MODE=report chant run fly-upgrade --local and a workflow_dispatch in report mode.

Prevention

The matrix, the RollingLexicon union, the ROLLING_LEXICONS set, and the ops/lexicon-upgrade/*.op.ts files are four hand-maintained lists that must agree, and nothing checks that they do — this failure mode is exactly the drift between them. A small test (or a check in chant dev check-lexicon / repo lint) asserting every lexicon named in the workflow matrix has a matching ops/lexicon-upgrade/<lexicon>-upgrade.op.ts, and vice versa, turns the next miswiring into a PR-time failure instead of three weeks of red crons. Relevant shortly: the proposed fountain lexicon (#1217) would be the ninth entry in these lists.

Activity

  1. lex00 commented on Jul 30, 2026

    @lex00
    ContributorAuthor

    Fix on branch fix-1218-fly-upgrade-wiring (7ed76e3). The root cause turned out to be two gaps, not one: the missing op file, and the LexiconUpgradeOp composite's IN_SCOPE_LEXICONS — a fifth hand-maintained copy of the lexicon set — which also never learned about fly, so the op file alone would still have been rejected at author time (\"fly\" is not in scope). Branch adds the op file, extends the scope list, updates the pinned scope test, and lands upgrade-wiring.test.ts asserting all five lists agree (matrix == op files, op args match filenames, IN_SCOPE == matrix, rolling ⊆ matrix). Verified: CHANT_UPGRADE_MODE=report chant run fly-upgrade --local completes with HasUpgrade=false against the committed baseline; temporal suite 335/335.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions