Skip to content

Add pyauto-audit shell function for non-git dirs / old stashes / abandoned branches #11

Description

@Jammy2211

Add scripts/pyauto_audit.sh defining a pyauto-audit shell function (sourced from ~/.bashrc next to pyauto_status.sh). Catches structural state the dashboard can't show:

  1. Non-git directories under ~/Code/PyAutoLabs/ — bug artifacts that should be reviewed/deleted. Skip prefixes . (hidden) and z_ (user's personal/staging convention).
  2. Stashes older than 14 days — drift-from-stash failure mode.
  3. Local-only branches with no upstream and last commit >30 days — abandoned feature branches.

Plain text output, three sections, suppressed when nothing is actionable. No cron, no severity tags, no snooze file — on-demand only. PYAUTO_AUDIT_ROOT / PYAUTO_AUDIT_STASH_DAYS / PYAUTO_AUDIT_BRANCH_DAYS env-var overrides for testing.

Re-scoped from autoprompt 06 (the heavyweight monthly cron audit spec). The dashboard's b flag (just merged via #10) already covers prompt 06's findings #1 + #2; prompts 02 + 07 cover #4 + #7. Only the genuinely structural checks remain.

This PR also deletes autoprompt/04_source_of_truth_rule.md (already-rejected during the autoprompt sweep — the pyauto-status BEHIND counts and prompt 03's history-rewrite guard cover the failure modes 04 was trying to address).

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions