Skip to content

Nothing surfaces a pools file that disagrees with the running pool #57

Closed

Description

@aicayzer

set-count changes the running pool. It does not touch the pools file. So after a resize the two disagree, and nothing says so until someone runs apply.

Observed live:

~/.config/runpool/pools:   marfa --org withmarfa --count 4 --watch ...
runpool pools (live):      marfa  org  withmarfa  count=3

The count was lowered with set-count after measuring contention. runpool apply would put it back to 4 — restoring the exact oversubscription the measurement was done to remove, via a command that looks like a no-op.

It is visible, but only if you look

apply --dry-run reports it plainly:

  ~ marfa        org  withmarfa                count 3 -> 4

Both the README and the skill say to run --dry-run first and read the plan, so the documented workflow does catch this. The gap is that nothing surfaces it proactively — the drift can sit for weeks and is only discovered by someone about to overwrite it.

The obvious fix cuts against a stated constraint

doctor is the natural home, alongside the drain-readiness note. But AGENTS.md says the split by concern is load-bearing and specifically that it "keeps the pools file out of everything that does not read one" — and doctor currently does not read one. Teaching lib/scheduler.sh about the pools file weakens exactly the boundary that document defends.

Alternatives, none free:

  • set-count writes the file. Then the file stops being the human-authored thing you copy between machines, and set-count gains pools-file awareness instead — the same boundary problem moved to lib/lifecycle.sh.
  • set-count warns when the file names a different count. Cheaper than writing it, same boundary cost.
  • Accept it as the design. The file is intent, the pool is state, apply --dry-run is the reconciliation step, and drift is the normal condition between them rather than a fault.

Worth a decision rather than a patch. The third option may well be right, in which case the docs should say so plainly instead of leaving it implied.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions