Skip to content

Commit 1d65586

Browse files
heavygeecursoragent
andcommitted
docs: point session monitor to ~/coding/server-setup/scripts/hapi/
hapi-sessions-health.sh + the C plotter were untracked in scripts/ and kept getting swept into stashes by routine `git stash -u` on HAPI worktrees, vanishing from disk while the watch process kept running stale in-memory code. Moved to server-setup/scripts/hapi/ (committed there); hapi-watch-activate-driver.sh now defaults to the new path. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 3110d28 commit 1d65586

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/tooling/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Feature agents should **read the relevant doc below at session start**; meta bot
1414
|-------|------|----------------|
1515
| **HAPI API / hub** | `~/coding/hapi` (upstream/main mirror), `~/coding/hapi-driver` (daily soup), `~/coding/hapi-*` PR worktrees, `hapi-active` symlink | Driver manifest rebuild, worktree hygiene, live swing |
1616
| **Adjacent HAPI repos** | e.g. `hapi-garden`, `hapi-session-attention`, any `~/coding/hapi-*` worktree with an open branch | Same rules; confirm which tree is active before debugging "prod" |
17-
| **Machine helpers** | `~/.local/bin/hapi-use-worktree`, `hapi-use-main`, `gh` wrapper, `pr-post-push-check*`, `hapi-sessions-health.sh` | Installed, executable, match docs |
17+
| **Machine helpers** | `~/.local/bin/hapi-use-worktree`, `hapi-use-main`, `gh` wrapper, `pr-post-push-check*`, `~/.local/bin/hapi-sessions-health.sh``server-setup/scripts/hapi/` | Installed, executable, match docs |
1818
| **Agent hooks** | `~/.claude/settings.json`, `~/.cursor/hooks.json`, `~/coding/AGENTS.local.md` | Policy text matches docs; note IDE vs CLI hook parity gaps |
1919
| **Upstream boundary** | `tiann/hapi` PRs | No operator-local files, no AI attribution (see repo `AGENTS.local.md`) |
2020

@@ -91,7 +91,7 @@ hapi-sessions-health.sh jellybot # filter by path/flavor/id
9191

9292
Meta bot triages `STUCK?`, `ZOMBIE`, and missing runner PIDs; escalates or kills stale processes per operator policy.
9393

94-
Script: `scripts/hapi-sessions-health.sh` (repo root).
94+
Script: `~/coding/server-setup/scripts/hapi/hapi-sessions-health.sh` (operator tooling; symlinked as `~/.local/bin/hapi-sessions-health.sh`). Used to live in this repo at `scripts/hapi-sessions-health.sh`; relocated 2026-05-31 so `git stash -u` operations on HAPI worktrees don't sweep it away.
9595

9696
### 4. Verification commands (HAPI default)
9797

scripts/tooling/hapi-watch-activate-driver.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
set -euo pipefail
1010

1111
PRIMARY="${HAPI_PRIMARY:-$HOME/coding/hapi}"
12-
HEALTH="${HAPI_SESSIONS_HEALTH:-$PRIMARY/scripts/hapi-sessions-health.sh}"
12+
HEALTH="${HAPI_SESSIONS_HEALTH:-$HOME/coding/server-setup/scripts/hapi/hapi-sessions-health.sh}"
1313
INTERVAL="${HAPI_WATCH_INTERVAL:-30}"
1414
ONCE=0
1515

0 commit comments

Comments
 (0)