Skip to content

Leak guard: refuse posts and pushes that contain personal details (private pattern file) #892

Open

Description

@scuttletoby

What: an enforced leak guard for this public repo. Before an agent posts to GitHub or pushes, a hook checks the text against personal patterns (names, addresses, machine names, private paths) kept in a private local file that never enters the repo; a report-only scan checks PR and issue text.

Why the owner wants it: the owner asked "is the public fork safe?". A scan found files and diffs clean, but some old PR text and one commit trailer held personal details. Today the rule "nothing personal in the public fork" is only text in agent instructions.

Already built: the secret sweep for tokens and keys (#782, follow-ups #791). Nothing checks personal patterns yet.

Left:

  • A hook (part of the agent guards kit, fork-kit/agent-guards: the machine's agent guard hooks as a kit (#834 G4) #847) that refuses a gh post, PR body, commit message or push that matches a private pattern; patterns come from a private file outside the repo
  • A report-only scan of PR, issue and comment text, run on a schedule
  • A short doc: where the pattern file lives, how to add a pattern, what happens on a match (old text can only be removed by deleting and re-posting; edits keep history)

Done when: an agent cannot post or push text that matches a private pattern, the scan reports old matches, and the pattern file never appears in the fork.

🤖 Generated with Claude Code

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions