Skip to content

dashboard: flag non-main branches and print follow-up commands - #10

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/dashboard-followup-commands
Apr 28, 2026
Merged

dashboard: flag non-main branches and print follow-up commands#10
Jammy2211 merged 1 commit into
mainfrom
feature/dashboard-followup-commands

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

  • b flag for non-main / non-tracked branches (e.g. euclid_strong_lens_modeling_pipeline currently on fix/extra-galaxies-gui-vis-index).
  • "Follow-up commands:" section at the bottom of the dashboard, grouped by Pull / Set missing upstream / Investigate manually.
  • Pure addition; suppressed entirely when nothing is actionable, so the clean case stays quiet.

Closes #9.

Test plan

  • Dashboard on current tree: b flag appears on euclid only; no Pull/Set-upstream entries since BEHIND=0 across the board; only Investigate-manually surfaces euclid's branch-mismatch.
  • Synthetic git -C HowToFit reset --hard HEAD~1 → HowToFit appears under "Pull (clean, behind, not ahead)" with correct git -C /home/jammy/Code/PyAutoLabs/HowToFit pull --ff-only line; running it restores BEHIND=0.
  • Synthetic git -C HowToFit branch --unset-upstream → HowToFit appears under "Set missing upstream" with correct git -C /home/jammy/Code/PyAutoLabs/HowToFit branch --set-upstream-to=origin/main main; running it restores tracking.
  • Existing flag glyphs (↓ ↑ * !) and Dirty files listing unchanged.

🤖 Generated with Claude Code

- 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>
@Jammy2211
Jammy2211 merged commit ea72d8e into main Apr 28, 2026
@Jammy2211
Jammy2211 deleted the feature/dashboard-followup-commands branch April 28, 2026 07:49
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 Jul 9, 2026
Jammy2211 pushed a commit that referenced this pull request Jul 29, 2026
Jammy2211 pushed a commit that referenced this pull request Jul 29, 2026
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.

Dashboard: flag non-main branches and print follow-up commands

1 participant