Skip to content

Amendment 15 tooling: lane names compare case-insensitively; the register row's spelling is canonical — row lookup, lane-start resolution, add-row refusal, log file name — after #26 lands #31

Closed

Description

@brettheap

Lane: openrepotools-3 (openRepoTools-3)

Tooling half of Lane Collision Protocol Amendment 15 — brettheap/new-workstation#28 (governing), #29 (DRAFT text). Brett Heap, 2026-09-13, verbatim: "can we make lane names case insenstive?" → canonical "The register row's spelling (Recommended)", scope "Rule clause + tooling (Recommended)".

The incident: 2026-09-13T23:51:56Z, lane-start openxfactory 2 found no row for openXfactory-2 (the row key — row_of_lane / row_line — is the ONE exact comparison left; repos.tsv, lane_named_ci, Rule 6 attribution and home matching already lowercase), minted session c0d09b6d, named the window openxfactory-2 and added a second row. Both spellings had always shared lanes/log/openxfactory-2.md. Merged by hand the same night (register commit "merge row openxfactory-2 into openXfactory-2").

Waits for #26 (Amendment 11 tooling) to land; built from main after it by lane openRepoTools-3.

Acts

  1. lanes-edit.sh: a canon_lane <typed> resolver — the register row whose key equals the typed name case-insensitively (from origin/<branch>, R19); exactly one → its spelling; none → the typed spelling (for add-row); two or more → REFUSE naming them all ("merge them into one row"). Every <lane> argument and LANES_LANE pass through it before any read or write; row_of_lane/row_line/ROW_AWK compare tolower; log, claim, release, who --lane, append-session-id, set-row-state (A13) write the canonical spelling; the log file is lanes/log/<canonical>.md — where a lowercase-named file already exists for a mixed-case lane (openxfactory-2.md for openXfactory-2), git mv it once in the first write that would touch it, in that commit.
  2. lane-start: resolve <repo> to the checkout's real directory under $PROJECTS_ROOT case-insensitively (one match; two differing only by case → refusal naming both); resolve <repo>-<n> to the existing row's spelling; rename the window and --name the launch with it; add-row refuses when a row exists under any case, naming it; the new-lane spelling of <repo> is the directory's real name.
  3. lane-end, lanes, restart (A11): the same resolver on their <lane> argument.
  4. The SessionStart hook and Amendment 12's guard compare window name, session name and row key case-insensitively; the lock renames a session whose name differs from the canonical only by case (a /rename to the canonical spelling).
  5. Tests in tests/test_lane_helpers.sh: a lowercase typed name resolves to a mixed-case row (lane-start resumes it; window renamed to the row's spelling); add-row refuses the case-duplicate; a register with two case-differing rows makes claim/log/append-session-id refuse naming both; a repo directory typed in the wrong case is found; the log file rename happens once; Rule 6 attribution still matches.
  6. Docs: docs/README-lanes.md (the naming rule, the canonical spelling) and AGENTS.md's lane paragraph if a line moves (caps).

🤖 Generated with Claude Code

Activity

  1. brettheap commented on Sep 14, 2026

    @brettheap
    ContributorAuthor

    Amendment 15 is IN FORCE (brettheap/new-workstation#29 → 83680ce; ratified 2026-09-14T00:07:18Z 'Ratify as drafted (Recommended)'). Buildable here once #26 lands.

    Lane: openrepotools-3 (openRepoTools-3)

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