Skip to content

Remove hardcoded local paths and internal session artifacts - #4

Merged
vbeefy merged 1 commit into
mainfrom
fix/scrub-local-paths
Aug 28, 2026
Merged

vbeefy merged 1 commit into
mainfrom
fix/scrub-local-paths

Conversation

@vbeefy

@vbeefy vbeefy commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Several files carried absolute paths from one developer's machine, exposing a username and directory layout for no benefit. Two others were internal operational artifacts that should not have survived the public release.

Paths replaced with values that work anywhere

file change
smoke-{provenance,substrate,variety}-e2e.sh resolve the corpus relative to the script rather than to one machine
scripts/backup-globi-to-nas.sh SOURCE_DB derived from the script location; cron example genericised
prompts/role-agent-interactive.md repo-relative path
.claude/agents/planner-migration-auditor.md refers to the PolyCrop checkout by name, not by one machine's absolute path

smoke-substrate-e2e.sh previously hardcoded PROD_DB with no way to override it; all three smoke scripts now accept the same PROD_DB environment override, so this is a small usability fix as well as a cleanup.

Removed as internal session exhaust

  • recovery-939-prompt.txt — a one-off prompt written for an unattended recovery run, describing internal pipeline state. Referenced by nothing.
  • GUAM-REINGEST-RESUME.md — an internal ingestion-campaign hand-off playbook.

Two comments pointing at the removed playbook were updated rather than left dangling (.gitignore, scripts/fetch-uog-ceo-pdfs.cjs).

No credentials were exposed

Worth stating explicitly, since the file names suggest otherwise: the NAS backup script already kept host, user and key in an untracked ~/.agroeco-backup.conf and shipped only REPLACE_WITH_* placeholders. A scan for tokens, keys and private material across the tree found nothing — the only real exposure was the username and directory layout.

Verification

All four shell scripts pass bash -n; the modified Node script passes node --check. A sweep of every tracked file for absolute home paths, other-repo references and personal identifiers now returns nothing.

Related, not fixed here

Around twenty public files reference internal-only documents that this repository does not ship (CLAUDE.md, .okf/, docs/superpowers/, phase histories). Those are dangling references rather than leaked information, so they are left for a separate pass.

Several files carried absolute paths from one developer's machine, exposing a
username and directory layout for no benefit, and two files were internal
operational artifacts that should not have survived the public release.

Paths replaced with values that actually work anywhere:

  smoke-{provenance,substrate,variety}-e2e.sh  resolve the corpus relative to
    the script rather than to one machine, and all three now honour a PROD_DB
    override (substrate previously hardcoded it with no way to override)
  scripts/backup-globi-to-nas.sh               SOURCE_DB derived from the
    script location; cron example genericised
  prompts/role-agent-interactive.md            repo-relative path
  .claude/agents/planner-migration-auditor.md  refers to the PolyCrop checkout
    by name instead of by one machine's absolute path

Removed as internal session exhaust, referenced by nothing that ships:

  recovery-939-prompt.txt        a one-off prompt for an unattended recovery
    run, describing internal pipeline state
  GUAM-REINGEST-RESUME.md        an internal campaign hand-off playbook

Two comments that pointed at the removed playbook were updated rather than left
dangling (.gitignore, scripts/fetch-uog-ceo-pdfs.cjs).

No credentials were exposed at any point: the NAS backup script already kept
host, user and key in an untracked ~/.agroeco-backup.conf and shipped only
REPLACE_WITH_* placeholders. All four shell scripts still parse.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@vbeefy
vbeefy merged commit 7b4b98b into main Aug 28, 2026
1 of 2 checks passed
@vbeefy
vbeefy deleted the fix/scrub-local-paths branch August 28, 2026 04:52
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