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:
- Non-git directories under
~/Code/PyAutoLabs/ — bug artifacts that should be reviewed/deleted. Skip prefixes . (hidden) and z_ (user's personal/staging convention).
- Stashes older than 14 days — drift-from-stash failure mode.
- 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).
Add
scripts/pyauto_audit.shdefining apyauto-auditshell function (sourced from~/.bashrcnext topyauto_status.sh). Catches structural state the dashboard can't show:~/Code/PyAutoLabs/— bug artifacts that should be reviewed/deleted. Skip prefixes.(hidden) andz_(user's personal/staging convention).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_DAYSenv-var overrides for testing.Re-scoped from autoprompt 06 (the heavyweight monthly cron audit spec). The dashboard's
bflag (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 — thepyauto-statusBEHIND counts and prompt 03's history-rewrite guard cover the failure modes 04 was trying to address).