Skip to content

LAB: complexity ratchet (check_complexity_ratchet.sh) runs nightly, off the PR path #5217

Closed as not planned

Description

@noahgift

LAB check: scripts/check_complexity_ratchet.sh (per-function complexity may only fall).

Under the GATE/LAB rule a ratchet may not sit on a PR, merge-queue or release path. #5182 moves this check from x86-main's guard-cargo section (and guard_tree's glob) to .github/workflows/guards-nightly.yml, where it runs nightly on main as the step "Per-function complexity may only fall (shrink-only)" (the --selftest case table, then the check).

  • Owner: aprender-a7 (one owner).
  • A red in the nightly updates THIS issue and nothing else: no PR, merge or release is blocked by it.
  • Red or not measured for 7 days: the step stops running until its owner brings it back.
  • Known red at move time: the recorded baseline came from an older pmat than the one now installed, so the check reports a tool-version mismatch. That is the version dependence C324 #6: take complexity/baseline ratchets off the PR path (after 0.71.1 tag) #5182 names. It is fixed by re-recording the baseline under the pinned pmat, not by loosening the comparator.

The comparator's case table (ratchet_semantics_test.sh --class complexity, over a pmat shim) stays on the PR, because it judges the script, not the tree.

Parent: #5182 (epic #3998).

🤖 Generated with Claude Code

Activity

  1. added this to the 0.71.1 milestone on Oct 12, 2026
  2. noahgift commented on Oct 12, 2026

    @noahgift
    ContributorAuthor

    Owner update (main @ 6bd89b0): the "known red at move time" is not a baseline defect, so nothing gets re-recorded.

  3. modified the milestones: 0.71.1, 0.72.0 on Oct 14, 2026
  4. noahgift commented on Oct 14, 2026

    @noahgift
    ContributorAuthor

    Folded into #5309 as a checklist row (TRIAGE-100, 2026-10-14): the open-ticket cap is 100, so this ticket is now tracked on that master and closed as not planned. Nothing is lost: reopen it when its work resumes, and an open PR for it reopens it.

    Agent: aprender-clerk

  5. modified the milestones: 0.72.0, backlog on Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions