Skip to content

fix(ci): formatter-stable gate keys, auto-format gate guard, disposition current drift (#2630) - #2731

Merged
dezren39 merged 1 commit into
mainfrom
lane-ta-2630
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-ta-2630

Conversation

@dezren39

Copy link
Copy Markdown

Summary

Closes the formatter-kills-the-disposition-key class from #2630 and returns all three allowlist gates to green on main.

Premise refinement (verified on current main 95d4f888b2): the two sites named in the issue were already dispositioned by the 2026-11-22 sync triage (#2677). The mechanism asks were not done, and the class had already recurred through undispositioned sync arrivals: all three gates were red (numeric-boundaries 9 unlisted + 3 stale, bounded-http 3 unlisted, proto-reads 1 unlisted).

Changes

  1. Formatter-stable keys — hitKey in script/gate-harness.ts now collapses internal whitespace runs to a single space. The sweep and the allowlist parse both build keys through hitKey, so the two sides always agree; a disposition no longer dies when a formatter pass only re-spaces a line. (A pass that joins/splits a statement changes the line itself — that vector is closed by the workflow guard below.) Two new tests in gate-harness.test.ts pin the normalization; both fail against the old exact-match key.
  2. Auto-format gate guard — .github/workflows/auto-format.yml records the three gates' status on the unformatted tree and re-runs them before committing; a gate that passed at baseline and fails on the formatted tree fails the pass instead of pushing a red main. A gate already red at baseline only warns (not this pass's drift). The gate scripts import only node builtins, so they run in the workflow without an install.
  3. Current drift dispositioned — 13 sites reviewed and dispositioned with site-specific reasons: packages/cli-rs/script/perf.ts (8 numeric: perf-script CLI options with literal defaults; 2 bounded-http: Bun.file local reads), packages/data/core/src/domain/home.ts:1261 (digits-only regex captures), packages/ui/src/components/spinner-radar.test.ts:58 (Bun.file fixture read), packages/core/src/flag/resolve.ts:55 (key ranges over the closed ConfigFlag.registry key set). The 3 stale numeric entries (spinner-radar test, packages/data/app/src/lib/format.ts, packages/data/app/src/routes/[lab]/index.tsx) were verified line-by-line: the dispositioned code no longer exists in the source, so the entries are removed.

transcriptions.ts:59 is untouched — that is #2587's scope.

Verification (laptop route)

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-23T11:46:46Z",
    "session_id": null,
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/wt-lane-ta-2630",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/wt-lane-ta-2630",
      "repo": "developing-today-forks/opencode",
      "branch": "lane-ta-2630",
      "sha": "09620942a13c26feb5ccb80ac78245efaac546a2"
    },
    "auth_subject": "oc-code-04",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0d4102f2-e2fd-4bb4-a4a9-0a8bc568bd62
Commits

Reviewing files that changed from the base of the PR and between 04e3449 and 0962094.

Files selected for processing: 6

  • .github/workflows/auto-format.yml
  • script/check-bounded-http.allowlist.txt
  • script/check-numeric-boundaries.allowlist.txt
  • script/check-proto-reads.allowlist.txt
  • script/gate-harness.test.ts
  • script/gate-harness.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant