Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions tools/hygiene/audit-machine-specific-content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,16 @@
// - Windows home paths: `C:\Users\<name>` (both backslash and
// forward-slash forms)
//
// Excluded from the scan: history surfaces (ROUND-HISTORY.md,
// hygiene-history/, DECISIONS/) and this audit script itself
// (its patterns ARE examples).
// Excluded from the scan:
// - History surfaces (ROUND-HISTORY.md, hygiene-history/, DECISIONS/)
// - This audit script itself (its patterns ARE examples).
// - launchd / service plist files under .gemini/launchd/ and
// .gemini/service/ — those are the CANONICAL home for machine-
// specific paths by design (maintainer-only artifacts with a
// maintainer-note comment explaining the paths are machine-
// specific and must be regenerated per-machine before
// `launchctl load`). Flagging them as gaps is a false-positive
// that creates ongoing audit noise.
//
// Usage:
// bun tools/hygiene/audit-machine-specific-content.ts # summary
Expand Down Expand Up @@ -65,7 +72,7 @@ const PATTERN_NAMES: readonly string[] = [
];

const EXCLUDE_RE =
/^(docs\/ROUND-HISTORY\.md|docs\/hygiene-history\/|docs\/DECISIONS\/|tools\/hygiene\/audit-machine-specific-content\.(sh|ts))/;
/^(docs\/ROUND-HISTORY\.md|docs\/hygiene-history\/|docs\/DECISIONS\/|tools\/hygiene\/audit-machine-specific-content\.(sh|ts)|\.gemini\/(launchd|service)\/[^/]+\.plist$)/;

const SPAWN_MAX_BUFFER = 64 * 1024 * 1024; // 64 MiB

Expand Down
Loading