Skip to content

ci(lane-line): widen lane key character class to allow uppercase - #909

Merged
brettheap merged 1 commit into
mainfrom
ci/lane-line-allow-uppercase
Sep 10, 2026
Merged

brettheap merged 1 commit into
mainfrom
ci/lane-line-allow-uppercase

Conversation

@brettheap

@brettheap brettheap commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-2 (openXfactory-2)
Claim: #744 (comment)
Refs #744

Summary

  • Widen the required lane-line check's character class from [a-z0-9-] to
    [A-Za-z0-9-] in .github/workflows/lane-line.yml, so a lane line naming a
    display name with capitals (Lane: openXfactory-2) passes bare. The
    existing lowercase-key-plus-parenthetical form (Lane: openxfactory-2 (openXfactory-2)) keeps validating unchanged, since it is a strict subset
    of the widened class.
  • Bot-author exemption logic (Ruling D-7's two-step detect/gate shape, oxF
    openDox + openXdox: two open-source layers, an installable app with users, projects and a database; domain descendants pin openXdox (Brett's ruling 2026-09-04) #656) is untouched — only the character class inside the second step's
    regex changed.
  • No other file in this repo encodes the character class as a rule: no
    active (non-archived) OpenSpec spec or proposal states it as a requirement,
    no test asserts it, and the README's mentions of lane-line only name it
    as a required-check label. This workflow file is the only edit.

Test plan

  • YAML re-parsed after the edit: python3 -c "import yaml; yaml.safe_load(open('.github/workflows/lane-line.yml'))" — OK.
  • python3 -m pytest -q -k lane — 416 passed, 2 skipped; 3 pre-existing errors
    in tests/clearing/ (fixture-teardown AssertionError in
    _pytest/fixtures.py, on operation-report-both-lanes /
    dark-lane-as-a-widening / lane-the-operation-does-not-permit fixtures)
    are unrelated to lane-line.yml and reproduce on main before this change.
    No test in this repo asserts the lane-line regex itself, so none needed
    updating.
  • actionlint is not available in this environment; substituted a manual
    diff review (single-line character-class change, no control-flow change).
  • The live test of the new pattern is this PR's own lane-line check. Its
    body's first line is the plain lowercase form, which matches both the old
    and the new regex, so it passes regardless of which workflow version
    GitHub evaluates it against (see below).

Note on which workflow version gates this PR

lane-line.yml triggers on pull_request (not pull_request_target), so
GitHub evaluates the check using the workflow file on this PR's own head
— i.e. already the widened regex, not the base branch's old one. This PR's
body line 1 is deliberately kept in the lowercase-key-plus-parenthetical form
so it would pass under either version regardless.

Authority: Brett Heap 2026-09-10 ~17:2xZ, verbatim "do 1 and 2, sign, file
it, do 744", recorded as the CLAIMED comment linked above.

🤖 Generated with Claude Code

Summary by Sourcery

Allow uppercase characters in lane-line names so display names such as openXfactory-2 pass validation.

New Features:

  • Allow required lane-line checks to accept lane names containing uppercase letters.

CI:

  • Update the lane-line workflow validation to accept uppercase letters while preserving existing lowercase and parenthetical formats.

The required `lane-line` check matched `^Lane: [a-z0-9-]+( \(.*\))?$`
(case-sensitive), so a lane whose display name carries capitals
(openXfactory-2, xFactory-1) had to write a lowercase key plus a
parenthetical to pass. Widen the character class to `[A-Za-z0-9-]`
so the display name can stand alone; the lowercase-key-plus-parenthetical
form keeps validating unchanged. Bot-author exemption logic
(Ruling D-7) is untouched.

Refs #744

Lane: openxfactory-2
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings September 10, 2026 17:44

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 2 hours and 18 minutes by commenting @sourcery-ai review. Upgrade to get a review now.

@sourcery-ai

sourcery-ai Bot commented Sep 10, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Updates the required lane-line workflow check to accept lane keys containing uppercase letters, enabling forms such as Lane: openXfactory-2 without changing bot exemptions or existing lowercase-plus-parenthetical behavior.

Flow diagram for the widened lane-line validation

flowchart TD
    A["First non-whitespace PR body line"] --> B{"Matches Lane line regex"}
    B -->|"Lane: [A-Za-z0-9-]+"| C["lane-line OK"]
    B -->|"Optional parenthetical display name"| C
    B -->|"No match"| D["Check fails"]
Loading

File-Level Changes

Change Details Files
Permit uppercase letters in the first-line lane identifier while preserving existing optional display-name validation.
  • Expand the lane key regex character class from lowercase alphanumerics and hyphen to both cases.
  • Leave whitespace handling, optional parenthetical form, and match/gate control flow unchanged.
.github/workflows/lane-line.yml

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is a minimal, localized regex widening in the lane-line CI check with no control-flow changes and matches the stated intent.

Pull request overview

Updates the lane-line required GitHub Actions check so PR bodies may use lane identifiers containing uppercase letters (e.g., Lane: openXfactory-2) without needing a lowercase “key + parenthetical” form, aligning the CI gate with the lane naming used in practice.

Changes:

  • Widened the lane-name character class in the lane-line workflow regex from [a-z0-9-] to [A-Za-z0-9-].
  • Kept existing bot-author exemption flow and overall gating behavior unchanged.
File summaries
File Description
.github/workflows/lane-line.yml Adjusts the Lane: line validation regex to accept uppercase characters in lane names.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@sonarqubecloud

Copy link
Copy Markdown

@brettheap
brettheap merged commit bd1c54c into main Sep 10, 2026
13 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-2 (openXfactory-2)
LANDED — lane openxfactory-2 (openXfactory-2), 2026-09-10T18:07:53Z, PR #909 → bd1c54c (no Rule 6 window)
Brett Heap 2026-09-10, verbatim: "land 909 350 416 when green". --squash --admin at head e5e70b8 (code-owner review cannot clear on a self-authored PR; admin merge on his word, B2 pattern).

brettheap added a commit that referenced this pull request Sep 10, 2026
…g before the ratification encode

MERGED BEFORE THE ENCODE SO EVERY RATIFICATION FIGURE IS TAKEN ON A TREE THAT
ALREADY CARRIES CURRENT MAIN. The branch was frozen at `5dd724f5` when
`origin/main` was `e0638f11` — the tree every figure in the pull request body
and in `tasks.md` § 5 was measured on. `origin/main` has since advanced by two
commits, `40d2f821` (the carve floor's line definition, PR #907) and `bd1c54c6`
(the `lane-line` workflow's lane-key character class widened for uppercase, PR
#909), so this merge comes FIRST and the ratification commit lands on top of
it. The single gate capture `review/verification-2026-09-10.md` is therefore
already a post-merge run and no re-measure is owed at landing.

NOTHING CONFLICTED AND NOTHING OF THIS PACKET'S IS TOUCHED. Main's two commits
move `.github/workflows/lane-line.yml`, `docs/opendox-cutover-runbook.md`,
`scripts/carve_lines.py`, `scripts/validate-carve-manifest.py`,
`scripts/verify-carve-arrival.py`, `tests/carve_arrival/` and
`tests/carve_manifest/` — no `README.md`, nothing under `openspec/`, nothing
under `scripts/doc_health/` and nothing under `tests/doc-health/`. So the
README `## OpenSpec Records` block had no conflict to resolve, the delta is
byte-unmoved, and the `doc-health` corpus this packet measures is unchanged by
the merge.

Refs #856, refs #860

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants