Skip to content

--install writes a receipt of what it placed, so a later retirement has ownership evidence stronger than a header substring #57

Closed

Description

@brettheap

openRepoTools --install retires a word by REMOVING the copy it once placed (retire_commands, landed in #45 under lane-collision-protocol Amendment 18 Addendum 2), and the only evidence it has that a file at ~/.local/bin/<name> is one it wrote is a CONTENT MARKER: the sentence Installed on PATH by + this installer's own name, which its own commands carry in their header.

Copilot's round-3 review of #45 (openRepoTools:263) named that:

This ownership test is only a searchable content substring, not proof that this installer created the file. A user-owned restart script copied from an old installation or containing the same banner will satisfy grep and be deleted on the next install […] Use durable ownership metadata or another check that distinguishes installer output from a user file before removing it.

It was declined for restart and the reason does not generalise. No installer that ever placed restart wrote a receipt, so no receipt can identify the copies that are on people's PATHs today — the marker is the only evidence that exists for the population the act was written for. (The retirement also refuses a symlink outright, ! -L, and names rather than removes anything that is not a regular file carrying the marker.)

But every retirement AFTER this one could have better evidence than a substring, if --install left a record of what it wrote:

  • --install writes something like ~/.local/share/openRepoTools/installed.tsv — one row per placed file: name, destination, sha256 of the bytes it wrote, and the UTC stamp.
  • A later retirement consults it FIRST: a row whose sha256 still matches the file on disk is this installer's copy beyond argument, and it is removed.
  • The header marker stays as the FALLBACK for anything placed before receipts existed, exactly as it is today — so nothing that works now stops working.
  • A file the receipt knows about whose sha256 NO LONGER matches is a person's edit of an installed command: named, left, and the rm printed for them, like every other file this installer did not write.

Wants: a decision about where the receipt lives (XDG_DATA_HOME, or beside the bin directory OPENREPOTOOLS_BIN_DIR points at), what happens when it cannot be written (a fail-closed note, never a refused install), and cases in tests/test_openrepotools_command.py for all four arms above.

Not urgent and not a defect in what shipped: restart is the only retired word, and RETIRED=(restart) is handled by the marker.

Activity

  1. brettheap commented on Sep 15, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoTools-3, session 4135b2c9-34a6-47e3-a156-5adebb632fae@Eagle, 2026-09-15T04:04:16Z, for #57

    Logged in lanes/log/openRepoTools-3.md at 2a8a1cdb4f8db33263546c658d35acfc02e2996d.

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

    1. existing `CLAIMED —` comments on opensoft/openRepoTools#57:
       none
    2. `gh pr list --repo opensoft/openRepoTools --state all --search "#57"`, kept where the row or its body names `#57`:
    45	`lane`: one word lists the lanes and binds the one you pick — available goes through the launcher in its own directory and profile, LIVE HERE attaches and never starts a second process, bound elsewhere names where; and `restart` leaves the person's PATH in the same breath (Amendment 18 Addendum 1 and Addendum 2)	feat/lane-the-word	OPEN
    3. `git ls-remote --heads [email protected]:opensoft/openRepoTools` branches naming `57` 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:48Z, for #57

  3. brettheap commented on Sep 16, 2026

    @brettheap
    ContributorAuthor

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

    Logged in lanes/log/openRepoTools-1.md at 15076a7b853995b923aec7cfcf622a4aeea0de00.

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

    1. existing `CLAIMED —` comments on opensoft/openRepoTools#57:
    6:CLAIMED — lane openRepoTools-3, session 4135b2c9-34a6-47e3-a156-5adebb632fae@Eagle, 2026-09-15T04:04:16Z, for opensoft/openRepoTools#57
    13:1. existing `CLAIMED —` comments on opensoft/openRepoTools#57:
    26:RELEASED — lane openRepoTools-3, session 4135b2c9-34a6-47e3-a156-5adebb632fae@Eagle, 2026-09-16T00:35:48Z, for opensoft/openRepoTools#57
    2. `gh pr list --repo opensoft/openRepoTools --state all --search "#57"`, kept where the row or its body names `#57`:
    45	`lane`: one word lists the lanes and binds the one you pick — available goes through the launcher in its own directory and profile, LIVE HERE attaches and never starts a second process, bound elsewhere names where; and `restart` leaves the person's PATH in the same breath (Amendment 18 Addendum 1 and Addendum 2)	feat/lane-the-word	MERGED
    3. `git ls-remote --heads [email protected]:opensoft/openRepoTools` branches naming `57` as a whole token:
       none
    
  4. added a commit that references this issue on Oct 3, 2026
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