Skip to content

PR #93 Copilot rounds past the two-round cap: eighteen fail-open hardenings from rounds 7–21 and the Codex connector (d0310f6–8fc5e1a), filed rather than taken #138

Closed

Description

@brettheap

The review threads Copilot and the Codex connector opened on #93 on 2026-09-29, against the Codex takeover's commits d0310f6 → 08dad90 (Copilot's rounds 7 to 16 on that pull request, and four Codex connector reviews), filed rather than taken under Brett Heap's ruling of 2026-09-16: Copilot takes rounds one and two, the rest are filed as issues, and the pull request lands. Each thread is replied to on #93 with this issue's number and resolved there.

Of the 25 unresolved threads: 8 were already fixed by later commits on the branch (dbbb117, 0d12428, 1e3e13b, e75df05, afd5481), 2 were taken by the finisher (the manual's archive paragraph, and the sweep's offered --reason line), 4 did not reproduce (below, with the evidence), and 11 are filed here as items 1–10. Copilot's rounds 17 to 21, on the finisher's own pushes, added ten threads: items 11 to 18, one declined below, and one taken on #93 (8fc5e1a: the sweep's writer had refused a no-log row whose cell already says RETIRED, which the listing offers as dormant). None of the 19 filed is a hole in what #93 does on a readable, ordinary checkout. Each is a fail-open or race on an exotic input: an unreadable directory, a sparse checkout, a symlink, a failed mktemp, a git show that fails, two lane-starts at once. Paths and lines are as each thread anchored them at the commit it reviewed. On main after #93 lands they move, so each item also names the function.

Not duplicated here: #120 (round 5: the register rewrite's status, the sweep's published-path preflight, rr_open's message), #122 (round 6: an unparseable archive row read as a non-row), #88, #89 and #90.

Filed: the work

  1. lanes-edit.sh:8992 (retire_rows, refusal 1; review of d0310f6). Both rows' session-id reads end in || :, so a published or local register read that FAILED looks the same as a row with no uuid, and a live session whose id is only in the unreadable copy is not fenced. Capture each read's status and refuse the whole sweep when either one fails.
  2. lanes-edit.sh:9299 (archive_rows, archive creation; review of d0310f6). Where origin holds lanes/archive/LANES-retired.md but this worktree does not have the tracked file (a sparse checkout, for example), the move creates a fresh archive holding only the rows it moves, and the commit drops every earlier reservation. Seed it from git show origin/<branch>:<path>, or refuse when the published archive exists and the local one does not.
  3. lane-start:1953 (the window-name uniqueness check; review of d0310f6). The list-windows scan and the rename-window run under no shared reservation, so two concurrent lane-starts in different windows can both see no duplicate and both take the name. The register lock that follows cannot undo the first rename. Serialize the check and the rename, or re-check after the rename and roll it back.
  4. lanes-edit.sh:5878 (lanes_rows, lr_logfiles; review of d0310f6). The fence is ls -- "$LANES_LOG_DIR" 2>/dev/null, so a log directory that exists and cannot be listed reads as "no local log", and a lane whose only object log is local can be classed DORMANT and offered to the sweep. Tell a missing directory from a failed listing, and on failure leave the class unset, as the listing already does when the liveness read fails.
  5. lanes-edit.sh:6291 and :6292 (lane_position_rows; reviews of 8326e68 and 08dad90, two threads, one item). The working-tree register counts as a source only under [ -s "$LANES_FILE" ]. Where origin has no register, a zero-byte register, a directory or a broken symlink is skipped, and next-free counts the stdin rows and the archive alone. Treat any existing path (-e or -L) as a source, and let the existing "rendered empty" check refuse it.
  6. lane-end:631 (--retire-dormant, the stderr capture; review of dbbb117). When mktemp cannot create the capture file, the listing runs with its stderr uncaptured and rd_err stays empty. Its "session records could not be read" sentence then never reaches the check that refuses on it, and the sweep goes on. Refuse when the capture file cannot be made.
  7. lanes-edit.sh:2531 (archive_text, the local rung; review of dbbb117). A local archive path that exists but is not a regular file (a directory, a FIFO, a broken symlink) is treated as an absent archive, and the read answers 0 with no rows. Refuse a present non-regular path.
  8. lanes-edit.sh:8915 (retire_rows, the writer's uuid; review of 0d12428). rr_uuid comes from session_for, which reads $LANES_SESSION or else the PUBLISHED row. The documented invocation sets only LANES_LANE. If the writer's newest transcript is stamped in this checkout's row and not yet pushed, every append-only RETIRED line carries an older uuid, or none. Read the local cell as well (as refusal 1 does for its targets), or require LANES_SESSION.
  9. lanes-edit.sh:9066 (retire_rows, the local-log preflight; review of e75df05). log_files_named_ci is ls … 2>/dev/null | awk in a script without pipefail, so an unreadable log directory passes the all-or-nothing preflight as "no log". A later ensure_log failure then arrives inside the write loop, after earlier lanes' logs are written. Make the lookup fail closed before the loop. (Item 4 is the same read, on the listing side.)
  10. lanes-edit.sh:9204 (archive_rows, the archive's type; review of afd5481). Nothing refuses a symlinked or non-regular archive. A tracked symlink passes the -f and cleanliness checks, append_text_block writes through it with >>, and the retired rows land outside the repository while the commit records only the link. Refuse a symlink or non-regular path before creating or appending.
  11. lanes-edit.sh:5903 (lanes_rows, the DORMANT class; Copilot round 17, the review of the finisher's 968ab5e). DORMANT is read from the absence of a lane_row_facts entry. Where a published log exists but its git show fails, the facts pass returns nothing for that lane, known_lanes still supplies it, and with a readable liveness read and state cell the row is classed DORMANT and hidden. (The local-log fence catches it only where the log is also in this checkout.) Carry a distinct "log unreadable" result out of the facts pass, and leave that row unclassified and visible, which also keeps it out of the sweep.
  12. lanes-edit.sh:9132 (retire_rows, the scan before the write loop; Copilot round 18, the review of the finisher's f9c0ed6). A tracked symlink at a lane's canonical log path passes the preflight. ensure_log then hands that path to append_text_block, whose >> follows the link, so the RETIRED line is written outside the repository while the commit records only the link and the register. This is the same class as item 10, for the logs rather than the archive. Refuse a symlink or non-regular log path during the scan.
  13. lane:853 (go_live, the window-name collision check; Copilot round 19, the review of the finisher's merge 7c1aef2). Before renaming a lane-shaped window to the lane being attached, the check asks register-row, which reads the PUBLISHED row. A lane whose add-row or session stamp is committed here and not yet pushed can already own that window. register-row then answers 8 and the window is renamed out from under it. Ask register-row-local as well, as the target-row validation above it already does, and fail closed when that read fails.
  14. lane-start:2153 (the retired-identity fence before the rename; Copilot round 20, the review of b58b971). The fence asks only the ARCHIVE. A row that is RETIRED but still in lanes/LANES.md, because archive-rows has not run, answers 8, row_count is 1, and the existing-row path can resume or start the lane and append a new transition to its append-only log. Refuse a row whose register state or log's last lane-kind line is terminal, before any rename or launch. (An ENDED row reaches the same path, and did before Amendment 19: a closed or dormant lane leaves the listing, one sweep retires a repository's dormant rows on a word, and a retired position is never reissued #93.)
  15. lanes:414 (the empty listing's hidden-row probe; Copilot round 20, the review of b58b971). The probe pipes lanes --closed into command grep -q . under set -o pipefail. Where the output exceeds a pipe buffer, grep -q exits on the first line, the producer takes SIGPIPE, the pipeline answers 141, and e_hidden stays 0, so the listing says no lane is recorded about a repository that has hidden rows. Consume the whole stream (awk 'NF { f = 1 } END { exit !f }').
  16. lane-start:2176 (the new-lane window-name fence; Copilot round 21, the review of 8fc5e1a). The scan skips THIS window, so a NEW lane started from a stale or reused window that is still named for ANOTHER registered lane (with no live record, so the earlier veto never ran) renames that window and takes the other lane's tmux address. Ask the registered-name question of the current window too; only a generic or unregistered current name should be reusable.
  17. lanes-edit.sh:10003 (retire_rows, the published log read; Copilot round 21). A failed git cat-file -e is read as "no published log". Where log_path_ci found the path but the blob cannot be read, lane_log_events yields an empty stream, rr_open is empty, and the sweep can retire a row whose log state was never established. Tell a missing path from an unreadable object, and refuse on the latter.
  18. lanes-edit.sh:10640 (add-row, the published-row check; Copilot round 21). rows_named_ci ends in an awk pipeline over register_text, which masks a failed published git show, and || : discards what status is left. An unreadable published register therefore reads as "no such row", and add-row can append a duplicate lane. Read the published register with its status and refuse on failure (Amendment 7(d)).

Answered on #93 and not filed as work

  • tests/test_lane_helpers_suite.py:101 (review of 0d12428). The thread says the liveness self-check also matches its own comment. It reads SUITE, which is tests/test_lane_helpers.sh, not itself. That file has exactly one LIVE_PID=$! line (:661, then sleep 4200 & LIVE_PID=$!), and the case passes in CI at 08dad90.
  • tests/test_repo_hygiene.py:1679 (review of 1e3e13b). The thread says AGENTS.md has 277 lines against a 276 cap. git show 1e3e13b:AGENTS.md | wc -l is 276, and so is the branch head, and the case passes in CI.
  • lanes-edit.sh:6087 (review of 44b77c3). The thread says lr_ll keeps the register's spelling. It is the lower-cased name: lr_names is built as tolower($0) sep $0 at :5790 and :5800, and the loop reads lr_ll lr_l from it.
  • lanes-edit.sh:6299 (review of e75df05). The thread says a locally committed, unpushed archive-rows puts the retired position back on offer. It does not: that move is ONE commit carrying the register and the archive, so until it is pushed the PUBLISHED register still carries the row. register_text reads origin first, so lane_position_rows still holds the position. Once it is pushed, the published archive holds it.
  • lane-end:652 (Copilot round 19, the review of 7c1aef2). The thread says the dormant list is enumerated before retire_rows takes its lock, so a row that becomes dormant in between is left behind. That is the design: the sweep retires exactly the rows its preview NAMED, "so the person sees what the sweep will close before it closes it" (19(c)). The writer then re-proves every named row inside the lock. Enumerating inside the lock would retire rows nobody was shown. A row that turns dormant afterwards is the next sweep's.

Lane: openRepoTools-3
🤖 Generated with Claude Code

Activity

  1. changed the title [-]PR #93 Copilot rounds past the two-round cap: ten fail-open hardenings from rounds 7–16 and the Codex connector (d0310f6–08dad90), filed rather than taken[/-] [+]PR #93 Copilot rounds past the two-round cap: twelve fail-open hardenings from rounds 7–18 and the Codex connector (d0310f6–f9c0ed6), filed rather than taken[/+] on Oct 3, 2026
  2. changed the title [-]PR #93 Copilot rounds past the two-round cap: twelve fail-open hardenings from rounds 7–18 and the Codex connector (d0310f6–f9c0ed6), filed rather than taken[/-] [+]PR #93 Copilot rounds past the two-round cap: thirteen fail-open hardenings from rounds 7–19 and the Codex connector (d0310f6–7c1aef2), filed rather than taken[/+] on Oct 3, 2026
  3. changed the title [-]PR #93 Copilot rounds past the two-round cap: thirteen fail-open hardenings from rounds 7–19 and the Codex connector (d0310f6–7c1aef2), filed rather than taken[/-] [+]PR #93 Copilot rounds past the two-round cap: fifteen fail-open hardenings from rounds 7–20 and the Codex connector (d0310f6–b58b971), filed rather than taken[/+] on Oct 3, 2026
  4. changed the title [-]PR #93 Copilot rounds past the two-round cap: fifteen fail-open hardenings from rounds 7–20 and the Codex connector (d0310f6–b58b971), filed rather than taken[/-] [+]PR #93 Copilot rounds past the two-round cap: eighteen fail-open hardenings from rounds 7–21 and the Codex connector (d0310f6–8fc5e1a), filed rather than taken[/+] on Oct 3, 2026
  5. brettheap commented on Oct 11, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoTools-4, session e545e636-93fd-4b80-81b1-48177346b887@Eagle, 2026-10-11T16:38:30Z, for #138

    Logged in lanes/log/openRepoTools-4.md at 5ca1049f5108c5a0b70a4cc4411dd8d3a6ef2b0e.

    The three reads (lane-collision-protocol Rule 1):

    1. existing `CLAIMED —` comments on opensoft/openRepoTools#138:
       none
    2. `gh pr list --repo opensoft/openRepoTools --state all --search "#138"`, kept where the row or its body names `#138`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoTools` branches naming `138` as a whole token:
       none
    
  6. 10 remaining items

  7. brettheap commented on Oct 19, 2026

    @brettheap
    ContributorAuthor
  8. brettheap commented on Oct 19, 2026

    @brettheap
    ContributorAuthor

    RELEASED — lane openRepoTools-4, session e545e636-93fd-4b80-81b1-48177346b887@Eagle, 2026-10-19T21:08:38Z, for #138 — all 18 items fixed on main by #216, #210 and #230; #138 is closed

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