Skip to content

RAL-191: the watchman's brief lists the jobs in flight - #278

Merged
Castor-o7 merged 1 commit into
mainfrom
ral-191
Nov 14, 2026
Merged

Castor-o7 merged 1 commit into
mainfrom
ral-191

Conversation

@Castor-o7

Copy link
Copy Markdown
Owner

From the DiscoSim issues log 1.73 ("the watchman's handoff names every job in flight, so a restart can tell what died") and the watchman.

  • New src/in_flight.rs: rally brief --watchman gains in_flight, read by the CLI on this machine (where the jobs run), read-only. For each project's stalls.locks in the projects list beside the pairing: each held lock with its holder's pid, state, command line and cwd from /proc (observed) and the owner its lock file names (declared); free slots counted, not listed; each fair pool's queue, holders and waiters by owner (RAL-188's slot_queue); a summary ("1 lock held, 1 job waiting for a slot").
  • blind: an unreadable projects list, no project naming a lock, an unreadable lock, an unseen queue. Never shown as nothing running.
  • Tests: 3 unit tests (holder row, unreadable holder, blind cases) and a CLI test with real flock holders and a waiter in a temp dir, plus the no-lock and unparseable-list blind spots. Docs: docs/brief.md item 10, roadmap.

🤖 Generated with Claude Code

From the issues log, 1.73: when the shell windows were closed every session's
background jobs ended, and nothing said what had been running. rally brief
--watchman gains in_flight, read on this machine and read-only: for each
project's stalls.locks, each held lock's holder pid, state, command and cwd
(observed) and the owner its file names (declared), free slots counted, each
fair pool's queue by owner (RAL-188), and a summary; what can't be read is
named in blind, never shown as nothing running.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Castor-o7
Castor-o7 merged commit d816bcc into main Nov 14, 2026
5 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