Skip to content

fix: retire status.sh --repos, which sourced a deleted file - #332

Merged
Jammy2211 merged 1 commit into
mainfrom
claude/status-sh-repos-missing-source-rj332c
Aug 26, 2026
Merged

fix: retire status.sh --repos, which sourced a deleted file#332
Jammy2211 merged 1 commit into
mainfrom
claude/status-sh-repos-missing-source-rj332c

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Closes #331.

What was wrong

scripts/status.sh --repos sourced scripts/pyauto_status.sh and called a
pyauto-status shell function. Both went with the cross-repo git sync dashboard
when it became a leg of the Heart-owned $health door (/health status), so
the branch sourced a file that is not in this repo.

The branch ended in exit 0, so it reported success while printing nothing
but two shell errors — a caller could not tell the dashboard had gone:

$ bash scripts/status.sh --repos
scripts/status.sh: line 20: .../scripts/pyauto_status.sh: No such file or directory
scripts/status.sh: line 21: pyauto-status: command not found
$ echo $?
0

Delete, not repoint

No caller passes the flag. PyAutoMind, PyAutoBrain and PyAutoHeart were all
searched: nothing invokes status.sh with any argument (the Brain/Heart files
named in the prompt reference overnight_status.sh and ci_status.sh, which
are unrelated scripts).

Repointing turned out not to be an option either — the replacement is an
agent-driven procedure, not a sourceable shell function, so there is nothing
here to point the branch at. The branch is deleted; in its place the flag now
names /health status on stderr and exits 2.

Changes

  • scripts/status.sh — vestigial branch removed, replaced by the retirement
    pointer; usage header updated to [--full] with a note recording where the
    dashboard went.
  • tests/test_status_script.py (new, 4 tests) — drives the real script rather
    than grepping it, because the failure was in what the shell did with the
    branch: the retired flag fails loudly and names /health status, raises no
    shell error, every file the script sources exists, and a bare run still
    reports the registry. All four assertions fail against the old branch
    (verified).
  • Mind state: prompt draft/bug/pyautomind/active/ with its Issued:
    date, active.md entry, dashboard regenerated.

Verification

  • python3 -m pytest tests/ -q216 passed (the suite spawn_drift's
    privacy job runs on this PR).
  • python3 scripts/lifecycle.py check → OK.
  • Manually: bash scripts/status.sh --repos → pointer on stderr, exit 2;
    bash scripts/status.sh → unchanged output, exit 0.

Generated by Claude Code

`scripts/status.sh --repos` sourced `scripts/pyauto_status.sh` and called a
`pyauto-status` shell function. Both went with the cross-repo git sync
dashboard when it became a leg of the Heart-owned `$health` door
(`/health status`), so the branch sourced a file that is not in this repo.
It ended in `exit 0`, so it reported success while printing nothing but two
shell errors — a caller could not tell the dashboard had gone.

No caller passes the flag: PyAutoMind, PyAutoBrain and PyAutoHeart were all
searched and nothing invokes `status.sh` with any argument. The replacement is
an agent-driven procedure rather than a sourceable shell function, so there is
nothing to repoint the branch at — it is deleted, and in its place the flag now
says where the dashboard went and exits 2.

Adds `tests/test_status_script.py`, which drives the real script: the retired
flag fails loudly and names `/health status`, raises no shell error, every file
the script sources exists, and a bare run still reports the registry. All four
assertions fail against the old branch.

Also files the task: prompt draft/ -> active/, active.md entry, dashboard
regenerated.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ETn87kL4dFJdfzYWbPQMJS
@Jammy2211
Jammy2211 merged commit 70dda35 into main Aug 26, 2026
4 checks passed
Jammy2211 pushed a commit that referenced this pull request Aug 26, 2026
main advanced while this task was in flight (status-sh-repos-missing-source
retired, #331#332). The only conflict was dashboard.html, a generated file —
resolved by regenerating dashboard.md/.html with `intake --apply dashboard`,
never by hand.

`dashboard --check` current, `registry_toc --check` fresh, `lifecycle check` and
`lifecycle index --check` OK, `repos_sync --check` all 13 legs OK.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Nj7cTnL8Ke5WoNsdGVhCKn
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.

fix: retire status.sh --repos, which sources a deleted file

1 participant