Skip to content

place_skill_and_hook's refusals say the skills and the command files are not placed, which is false once a file before the refused one is placed #321

Open

Description

@brettheap

What happens

When --install refuses at a skill file or a command file, the refusal ends with a sentence about what is and is not placed. At 93ab282 (the head of #257's branch, fix/install-rechecks-pipx-link-at-placement-257, not yet landed, when this was filed) there are four, in place_skill_and_hook:

  • openRepoTools:3502 (place_by_rename of a SKILL.md) and :3480 (the mkdir before it): The $placed commands above are placed; the skills and the hook are not.
  • :3546 (place_by_rename of a command file) and :3532 (the mkdir before it): The $placed commands above are placed; the skills, the command files and the hook are not.

They are older than #257's branch: at a42946e the same four are at :3467, :3445, :3511 and :3497.

Why they are false

The loops place all six skill files (three skills at two destinations each, :3469-3514; SKILLS=(handoff lane-swap restart) at :2313) before any command file (:3528-3550; COMMANDS=(handoff ctx swap) at :2326), and the hook pair last (:3552). So the skill sentence is true only for the first skill file: from the second on, the skill files before the refused one are placed. The command-file sentence is false whenever it fires, because all six skill files are placed, and so is every command file before the refused one. The #257 branch's own case shows the order: tests/test_install_pipx.py:1939-1943 reads which files are on disk after the refusal.

A person reads that sentence to learn what the refusal left on the machine, and it says there are no skills where there are some. The bin loop's sentence is true at every position, because nothing after the loop is placed: "Whatever the lines above report is placed; the skills, the command files and the hook entries are not placed at all." (:2182-2183).

Tests

Only the start of the sentence is pinned: tests/test_install_pipx.py:1931 asserts "The 17 commands above are placed;". git grep at 93ab282 finds neither tail anywhere but openRepoTools, so rewording the rest costs no test.

Suggested fix

Say what is true at every position, and keep the pinned start. For example:

  • skills: "The 17 commands above are placed; so is every skill file before this one. This one, the skill files after it, the command files and the hook are not."
  • command files: "The 17 commands above are placed; so are the skill files and every command file before this one. This one, the command files after it and the hook are not."

Add a case that makes the refusal fire at a later skill file than the first and at a later command file than the first, and reads the sentence against the files on disk (placed_files, as :1939-1943 already does for the first of each).

Found by: the light check of #257's 93ab282 (part B, NIT 2, 2026-10-22). Filed on Brett Heap's word of 2026-10-23T14:21:33Z, by multiple choice: "Refusals are not placed".

Lane: openRepoTools-5

Activity

  1. brettheap commented on Oct 24, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoTools-5, session 0d83dca2-c18c-4bb0-99ce-896e6cafea02@Eagle, 2026-10-24T14:18:38Z, for #321

    Logged in lanes/log/openRepoTools-5.md at e7425e8d6fb6407c26437e4d34dc66acde8f5cf2.

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

    1. existing `CLAIMED —` comments on opensoft/openRepoTools#321:
       none
    2. `gh pr list --repo opensoft/openRepoTools --state all --search "#321"`, kept where the row or its body names `#321`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoTools` branches naming `321` 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