Skip to content

--install's hook conflict read answers present before it looks for a rival, so a settings file carrying BOTH our entry and another writer of the same hook installs in silence (both arms) #59

Closed

Description

@brettheap

Lane: openrepotools-3 (openRepoTools-3)

Found by Copilot round 1 on #52 (Amendment 12's name guard), and declined there: the shape PREDATES that pull request on the arm it was reported on, and both arms have to move together.

What the read does. plan_hook_merge asks one question per hook entry, in jq, and present is tested FIRST:

[ (.hooks.SessionStart // [])[]? | (.hooks // [])[]? | .command // empty ] as $cmds
| if ($cmds | index($c)) then "present"
  elif ($cmds | map(select(test("session-start"))) | length) > 0 then "conflict"
  else "absent" end

So a settings.json carrying our exact entry and a second entry that runs the same verb with a different command string answers present: --install adds nothing, says nothing, and the person keeps two writers of one hook — the state the conflict arm exists to refuse — with the run reporting success. The UserPromptSubmit arm that Amendment 12 adoption act 3 added (openRepoTools:722, keyed on the verb guard with a boundary on both sides so ~/projects/xFactory/guard.sh is no conflict) is a deliberate byte-for-byte mirror and has the same ordering.

What is not wrong. Nothing is installed twice by such a run: with the exact entry already there, there is nothing to add and the file is unchanged. The defect is that the state is never NAMED, and that a person who runs --install expecting it to police this hook is told everything is fine.

The decision this wants. conflict refuses the WHOLE install (--install is all-or-nothing, R-A9-12), so making conflict beat present means a workstation carrying a rival writer cannot install or update ANY of the nineteen artifacts until the rival is removed. That is already the rule for a file with no entry of ours; this issue is whether it is also the rule for a file that has both. Whichever answer it gets, BOTH arms take it in one commit, with a case each in tests/test_install_skill_and_hook.py (the existing pair is test_a_second_writer_of_this_hook_refuses_whatever_file_carries_it and test_a_differing_guard_entry_refuses_and_places_nothing).

Evidence: Copilot round 1 on #52 — the openRepoTools:708 thread and the suppressed :726 finding.

🤖 Generated with Claude Code

Activity

  1. brettheap commented on Sep 15, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoTools-3, session 4135b2c9-34a6-47e3-a156-5adebb632fae@Eagle, 2026-09-15T00:25:19Z, for #59

    Logged in lanes/log/openRepoTools-3.md at dcb017eaa61a96d5e47ccd391ca2c80927ceb8a9.

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

    1. existing `CLAIMED —` comments on opensoft/openRepoTools#59:
       none
    2. `gh pr list --repo opensoft/openRepoTools --state all --search "#59"`, kept where the row or its body names `#59`:
    52	The name guard refuses a prompt whose window, session name and register row are not ONE lane — the lock types `/rename <lane>` into the pane, a person's rename is an OFFER answered at the next prompt, and a transcript two live processes hold is a refusal in the guard, in `lane-start` and in `lane-end --retire`	feat/amendment-12-name-guard-lock	MERGED
    3. `git ls-remote --heads [email protected]:opensoft/openRepoTools` branches naming `59` as a whole token:
       none
    
  2. brettheap commented on Sep 16, 2026

    @brettheap
    ContributorAuthor

    RELEASED — lane openRepoTools-3, session 4135b2c9-34a6-47e3-a156-5adebb632fae@Eagle, 2026-09-16T00:35:53Z, for #59

  3. brettheap commented on Sep 16, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoTools-1, session df82f553-7803-49c4-8ddf-3f9acdcb8ee0@Eagle, 2026-09-16T01:06:16Z, for #59

    Logged in lanes/log/openRepoTools-1.md at d8366387c85b12d49dc37f5aeae4cc7734c02097.

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

    1. existing `CLAIMED —` comments on opensoft/openRepoTools#59:
    6:CLAIMED — lane openRepoTools-3, session 4135b2c9-34a6-47e3-a156-5adebb632fae@Eagle, 2026-09-15T00:25:19Z, for opensoft/openRepoTools#59
    13:1. existing `CLAIMED —` comments on opensoft/openRepoTools#59:
    26:RELEASED — lane openRepoTools-3, session 4135b2c9-34a6-47e3-a156-5adebb632fae@Eagle, 2026-09-16T00:35:53Z, for opensoft/openRepoTools#59
    2. `gh pr list --repo opensoft/openRepoTools --state all --search "#59"`, kept where the row or its body names `#59`:
    52	The name guard refuses a prompt whose window, session name and register row are not ONE lane — the lock types `/rename <lane>` into the pane, a person's rename is an OFFER answered at the next prompt, and a transcript two live processes hold is a refusal in the guard, in `lane-start` and in `lane-end --retire`	feat/amendment-12-name-guard-lock	MERGED
    3. `git ls-remote --heads [email protected]:opensoft/openRepoTools` branches naming `59` as a whole token:
       none
    
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