Skip to content

refactor: delete the dead orchestration layer and the broken pr command - #29

Merged
iaj6 merged 1 commit into
mainfrom
chore/delete-dead-machinery
Jul 13, 2026
Merged

iaj6 merged 1 commit into
mainfrom
chore/delete-dead-machinery

Conversation

@iaj6

@iaj6 iaj6 commented Jul 13, 2026

Copy link
Copy Markdown
Owner

The July audit found roughly a third of core unreachable from any runtime
path: nothing in the hook-driven product creates Jobs or Locks, dispatch
can never match a hook-created session (they always carry a currentRunId),
and the machinery was kept alive only by its own tests. Keeping it meant
real maintenance cost — the lock-expiry SQL was broken, and agentops pr
couldn't create a PR at all (gh rejects the --json flag it passed).

Removed:

  • core: job.ts, dispatcher.ts, orchestrator.ts, coordination.ts, the
    Job/ResourceLock types, JobStatus/JobPriority/LockType enums,
    JobId/LockId brands, EventCategory.Job, and the job.* event types
  • db: jobs.ts, locks.ts, the jobs/locks tables (schema + migrations),
    and the job-event seed rows. Existing databases keep their orphaned
    jobs/locks tables; they are inert and harmless
  • cli: job, lock, dispatch, and pr commands; createPR/
    addPRComment/createCheckRun in github.ts (link's read-only helpers
    stay); the job branch of events colorization
  • web: job entries in the event-type union, category filter, badge
    colors, and the ActivityFeed/EventCard links that pointed at the
    long-removed /jobs pages

Docs updated (CLAUDE.md package map + commands, CHANGELOG "Removed").
Test suite drops from 1,366 to 1,256 — the difference is the dead
layer's own tests.

Co-Authored-By: Claude Fable 5 noreply@anthropic.com

The July audit found roughly a third of core unreachable from any runtime
path: nothing in the hook-driven product creates Jobs or Locks, dispatch
can never match a hook-created session (they always carry a currentRunId),
and the machinery was kept alive only by its own tests. Keeping it meant
real maintenance cost — the lock-expiry SQL was broken, and `agentops pr`
couldn't create a PR at all (gh rejects the --json flag it passed).

Removed:
- core: job.ts, dispatcher.ts, orchestrator.ts, coordination.ts, the
  Job/ResourceLock types, JobStatus/JobPriority/LockType enums,
  JobId/LockId brands, EventCategory.Job, and the job.* event types
- db: jobs.ts, locks.ts, the jobs/locks tables (schema + migrations),
  and the job-event seed rows. Existing databases keep their orphaned
  jobs/locks tables; they are inert and harmless
- cli: `job`, `lock`, `dispatch`, and `pr` commands; createPR/
  addPRComment/createCheckRun in github.ts (link's read-only helpers
  stay); the job branch of `events` colorization
- web: job entries in the event-type union, category filter, badge
  colors, and the ActivityFeed/EventCard links that pointed at the
  long-removed /jobs pages

Docs updated (CLAUDE.md package map + commands, CHANGELOG "Removed").
Test suite drops from 1,366 to 1,256 — the difference is the dead
layer's own tests.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@iaj6
iaj6 merged commit a9c9301 into main Jul 13, 2026
3 checks passed
@iaj6
iaj6 deleted the chore/delete-dead-machinery branch July 13, 2026 17:56
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