Skip to content

Check CI for private machine, person, and agent names - #1

Merged
myobie merged 1 commit into
mainfrom
agent/private-names
Sep 29, 2026
Merged

myobie merged 1 commit into
mainfrom
agent/private-names

Conversation

@myobie

@myobie myobie commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator

Public repositories get invented examples only. That means no machine or host names, no personal home paths, no real person IDs and no internal agent or fleet IDs.

  • scripts/check-private-names.py checks every tracked text file. It fails on:
    • one of the fleet's machine names
    • a /home/NAME or /Users/NAME path whose NAME does not start with example
    • a person/NAME ID other than person/alex or person/example…
    • any agent/fleet/ ID
  • The machine names are stored as SHA-256 digests, so the check doesn't publish them. The script's docstring explains how to add one.
  • A line that has to stay as it is can be listed in .private-names-allow.
  • .github/workflows/private-names.yml runs the check on every push to main and every pull request.
  • The tests' home directories are now /home/example and /Users/example. Before, they were /home/user, /home/bob, /Users/alice, /Users/dev and /Users/Dev99.
    • The encode test uses /Users/Example99/Proj, which keeps the mixed case and digits it checks.
    • The cross-machine integration test still moves from a macOS path to a different Linux path.

Tested locally: the check fails on main with 11 findings and passes on this branch. deno fmt --check and deno lint are clean, and deno test -A gives 62 passed.

Public repositories hold invented examples only: no machine or host
names, no personal home paths, no real person IDs, no internal agent
or fleet IDs. scripts/check-private-names.py fails on any of those in
a tracked file, and a new workflow runs it on every push and pull
request.

The tests' home directories (/home/user, /home/bob, /Users/alice,
/Users/dev, /Users/Dev99) are now /home/example and /Users/example,
keeping the mixed case and digits the encode test needs.
@myobie
myobie merged commit a69cb3e into main Sep 29, 2026
2 checks passed
@myobie
myobie deleted the agent/private-names branch September 29, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant