dashboard: flag non-main branches and print follow-up commands - #10
Merged
Conversation
- Add `b` flag for branches that don't match the upstream branch (or branch != main when upstream is NONE), surfacing forgotten feature branches on canonical checkouts. - Add a "Follow-up commands" section after the dirty-files listing, grouped by Pull (clean+behind+not-ahead, copy-pasteable `git -C <abs-path> pull --ff-only`), Set missing upstream (branch=main + upstream=NONE), and Investigate manually (diverged, behind+dirty, branch-mismatch). Section is suppressed when nothing is actionable. Replaces the heavier /sync skill spec (autoprompt 05) — the printed commands are the action. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced Apr 28, 2026
Jammy2211
added a commit
that referenced
this pull request
Apr 28, 2026
`scripts/pyauto_audit.sh` defines a `pyauto-audit` shell function (sourced
from ~/.bashrc next to pyauto_status.sh) that scans ~/Code/PyAutoLabs/
for state the dashboard can't show:
1. Top-level directories with no .git (skip "." and "z_" prefixes
for hidden / personal-staging dirs).
2. Stashes older than PYAUTO_AUDIT_STASH_DAYS (default 14 days).
3. Local-only branches with no upstream and last commit older than
PYAUTO_AUDIT_BRANCH_DAYS (default 30 days).
Three sections, plain text, sections suppressed when empty, single
"clean" message when all clear. Always exits 0 — informational, the
user reads and decides. Run on demand. PYAUTO_AUDIT_ROOT,
PYAUTO_AUDIT_STASH_DAYS, PYAUTO_AUDIT_BRANCH_DAYS env-var overrides.
Re-scoped from autoprompt 06 (the heavyweight monthly cron audit
spec). The dashboard's `b` flag (shipped in #10) covers prompt 06's
findings #1 + #2; prompts 02 + 07 cover #4 + #7. Only the genuinely
structural checks remain.
Also deletes autoprompt/04_source_of_truth_rule.md — already-rejected
during this sweep. The pyauto-status BEHIND counts and prompt 03's
history-rewrite guard cover the failure modes that 04 was trying to
address; keeping a rejected prompt in autoprompt/ is just noise.
Co-authored-by: Jammy2211 <JNightingale2211@gmail.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Jammy2211
pushed a commit
that referenced
this pull request
May 28, 2026
Jammy2211
pushed a commit
that referenced
this pull request
Jul 9, 2026
…an-directed; refactor claim released
Jammy2211
pushed a commit
that referenced
this pull request
Jul 29, 2026
Jammy2211
pushed a commit
that referenced
this pull request
Jul 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
bflag for non-main / non-tracked branches (e.g.euclid_strong_lens_modeling_pipelinecurrently onfix/extra-galaxies-gui-vis-index).Closes #9.
Test plan
bflag appears on euclid only; no Pull/Set-upstream entries since BEHIND=0 across the board; only Investigate-manually surfaces euclid's branch-mismatch.git -C HowToFit reset --hard HEAD~1→ HowToFit appears under "Pull (clean, behind, not ahead)" with correctgit -C /home/jammy/Code/PyAutoLabs/HowToFit pull --ff-onlyline; running it restores BEHIND=0.git -C HowToFit branch --unset-upstream→ HowToFit appears under "Set missing upstream" with correctgit -C /home/jammy/Code/PyAutoLabs/HowToFit branch --set-upstream-to=origin/main main; running it restores tracking.🤖 Generated with Claude Code