Skip to content

chore(routines): remove never-attached monitoring routine scripts, guard routines/ tracking - #5709

Merged
itismyfield merged 1 commit into
mainfrom
chore/remove-dead-routine-scripts
Sep 5, 2026
Merged

chore(routines): remove never-attached monitoring routine scripts, guard routines/ tracking#5709
itismyfield merged 1 commit into
mainfrom
chore/remove-dead-routine-scripts

Conversation

@itismyfield

Copy link
Copy Markdown
Owner

Why

routines/ is operator-private (docs/source-of-truth.md: git ls-files routines must be empty), but 10 scripts were tracked: local-worktree-gc.js and routines/monitoring/* (automation-candidate detector/recommender/executor ×2, daily-log-digest js+py, log_digest_issue_drafts.py, weekly_churn_audit.py, local_worktree_inventory.js). Live audit 2026-09-05: none has a routines DB row, no launchd plist, zero runs ever — dead code staged on every deploy.

What

  • git rm the 10 scripts, the 8 policies/__tests__ files and 2 tests/ python files that only exercised them, and docs/routines/{daily-log-digest,local-worktree-inventory,weekly-churn-audit}.md.
  • scripts/ci-script-checks.sh: drop the two removed unittest/node invocations; add a guard that fails when git ls-files routines is non-empty.
  • Status note at the top of the 4 automation-candidate / observation-provider PRD+spec docs (routine-side implementation removed; Rust API/DB surface untouched).

Not in this PR

  • Rust automation_candidates API/DB and the loader's bundled-helper special-casing stay (operators may still ship local monitoring scripts). Follow-up decision: retire that API surface or re-implement the executor.
  • Operator-local dead scripts (migrated-launchd briefings, warmup-obiseo-session, examples) were deleted from ~/.adk/release/routines and the workspace tree out-of-band; warmup routine row deleted via API.

Verification

  • node --test policies/__tests__/*.test.js green after removal.
  • New guard self-test passes on this branch; bash -n ok.
  • src/** unchanged → low-risk; Rust build/tests delegated to required CI.
  • Pre-existing, unrelated: tests.test_agent_maintenance_docs reports a migration-0093 rollout-contract error on main too.

Refs #5707 #5708

🤖 Generated with Claude Code

… guard routines/ against tracking

routines/ is operator-private per docs/source-of-truth.md, yet ten scripts
(local-worktree-gc.js and routines/monitoring/*) were tracked. None was ever
attached as a production routine (no routines row, no launchd plist, zero
runs), so they were dead code shipped on every deploy.

- remove the ten tracked scripts plus the policy/python tests that only
  exercised them and the three routine docs that described them
- replace their ci-script-checks.sh invocations with a guard that fails
  when `git ls-files routines` is non-empty
- annotate the automation-candidate / observation-provider PRD+spec docs
  that the routine-side implementation is gone (Rust API/DB surface stays)

Operator-local dead scripts (migrated-launchd briefings, warmup, examples)
were removed from the runtime and workspace trees separately; the
warmup-obiseo-session routine row was detached and deleted via the API.

Refs #5707 #5708

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@itismyfield
itismyfield merged commit 01c0c07 into main Sep 5, 2026
23 checks passed
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.

1 participant