Skip to content

session-handoff's command block uses a bare scripts/handoff.py, which resolves to a carrier's own scripts/ directory #1512

Closed

Description

@ptr727

Found while resyncing ptr727/aiopurpleair against the hub, audit run 2026-09-10T16:57:09Z | hub 9d5a0c0. Filed per RESYNC.md section 2. Minor, and offered as precision rather than as a break.

The observation

.github/skills/session-handoff/SKILL.md "Running the Chain" carries its commands as a bare relative path, in the shape python3 scripts/handoff.py current ....

The skill is carried into every fleet repository, and a carrier can have a real scripts/ directory of its own. aiopurpleair does: it holds scripts/generate_openapi.py. So in that tree the path resolves to a directory that exists and does not hold handoff.py, rather than failing in a way that names the cause.

Why this is minor

The prose immediately above the block already says where to run it, at line 193:

The mechanics are the hub's scripts/handoff.py, run from a hub checkout, per GOVERNANCE.md "Hub-Hosted Tooling".

So the instruction is correct as written and a reader who reads the sentence is not misled. The issue is only that the command block is the part that gets copied, and once copied it carries no trace of the sentence that scoped it.

Why it is worth a line anyway

GOVERNANCE.md "Hub-Hosted Tooling" names this exact hazard as the reason a carried rule names a tool as the hub's:

A tool named in a carried rule is therefore named as the hub's, since the alternative is a pointer to a path the reader does not have, and a pointer that resolves nowhere teaches the reader that a pointer in carried text is decorative.

A pointer that resolves to the wrong real directory is a slightly worse case than one that resolves nowhere, because nothing errors in a way that names the cause.

Precedent in the same tree

Other carried surfaces already solve this by writing the reach into the command itself. local-strict-review uses an explicit placeholder, assigning engine to a <hub-checkout>/scripts/local_review.py path with a comment noting that in the hub itself it is just scripts/local_review.py.

Suggested fix

Adopt that same shape in session-handoff, prefixing each command with a <hub-checkout>/ placeholder, so the block stays correct when it is copied out of the prose that scoped it.

A note on filing this

The first attempt to file this issue was refused by the gh-write-guard hook, because the body quoted the skill's command block verbatim and that block contains a placeholder in owner/repo shape following the repository flag. The guard read the quoted placeholder as the write's own target and correctly refused a cross-owner write. Worth knowing that quoting a command block containing that flag is enough to trip it, since the guard cannot tell a quotation from an invocation.

Environment

  • Hub main at 9d5a0c0
  • Affected surface: .github/skills/session-handoff/SKILL.md "Running the Chain"
  • Observed carrier with a colliding scripts/: ptr727/aiopurpleair
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