Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pm-stack/opencode-claimant/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ worker sessions it launches run on the standing OpenCode server
- `poll.py` — read-only candidate discovery the prompt runs each fire:
claimed tasks whose `progress.lane` is `opencode` with no bound
`session_id` (across the four repo-health queues), plus the live
root-session count for the 20-session cap. It cannot mutate anything.
root-session count for the 36-session cap. It cannot mutate anything.
- `install.mjs` — idempotent installer: merges the task definition
(stable id `f1b4a33b-14d5-4a69-9ad6-d221e42e3ac9`) into the laptop's
code-project OpenChamber store, preserving all other tasks, with a
Expand Down
4 changes: 2 additions & 2 deletions pm-stack/opencode-claimant/claimant.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"repo-health-openchamber-pilot",
"repo-health-nix-pilot",
]
CAP = 20
CAP = 36
ACTIVE_WINDOW_MS = 30 * 60 * 1000 # 30 minutes
OPENCODE_URL = os.environ.get("OPENCODE_URL", "http://127.0.0.1:13420")
AUTH_FILE = os.environ.get(
Expand Down Expand Up @@ -311,7 +311,7 @@ def discover_candidates_and_stuck():
"stuck_bound": [...],
"live_root_sessions": int | None,
"active_root_sessions": int | None,
"cap": 20,
"cap": 36,
"cap_room": int | None
}
"""
Expand Down
4 changes: 2 additions & 2 deletions pm-stack/opencode-claimant/poll.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# null = server unreadable
"active_root_sessions": int | null, # roots still active
# (see is_active_root)
"cap": 20,
"cap": 36,
"cap_room": int | null # CAP - active roots;
# null when count unknown
}
Expand All @@ -51,7 +51,7 @@
"repo-health-openchamber-pilot",
"repo-health-nix-pilot",
]
CAP = 20
CAP = 36
# A root session counts toward the cap only while it is active: no
# terminal marker and recent activity. GET /api/session returns every
# finished-but-unarchived session forever (50 roots at the #3026 gate
Expand Down
8 changes: 4 additions & 4 deletions pm-stack/opencode-claimant/prompt.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ improvise the steps by hand. Inside a fire, claimant.py launches
distinct candidates in parallel under a bounded pool and a
single-instance lock; exactly-once stays anchored on the atomic DB
bind. (History: the cap was 12 until 2026-11-05, when the
binding-rate fix raised it to 20 to match demonstrated headroom;
binding-rate fix raised it first to 20, then to 36 the same day (at 20, scheduled lane-runner waves of ~39 roots at load ~4/16 cores still left the claimant cap_room 0; 36 sits above the observed wave size while keeping total roots within ~2x the census-proven level);
claimant.py itself was committed the same day - before that it
existed only as an untracked file in the laptop primary checkout,
which is part of why the standing claimant never went live.)
Expand Down Expand Up @@ -55,7 +55,7 @@ Never claim, bind, launch, or mutate a task in shadow mode.
created-but-never-prompted and dead (step 1's recovery rule, #4758).
Retain the candidate list from the start of each fire; a task recovered
during supervision is eligible on the next fire, not this one.
- Concurrency cap: **20** active root sessions across the fleet. Count
- Concurrency cap: **36** active root sessions across the fleet. Count
with poll.py (OpenCode server `GET /api/session` on
http://127.0.0.1:13420, root sessions only; poll.py counts a root as
active only with no terminal marker — `time.idle`/`outcome` — and
Expand Down Expand Up @@ -145,7 +145,7 @@ Never claim, bind, launch, or mutate a task in shadow mode.
shows 0 claimed-with-lane-opencode unbound candidates (poll.py
returns an empty candidate list), end the fire quietly.
3. CAP: if poll.py reports `cap_room` 0 (active root sessions at the
20 cap) or null (server unreadable), end the fire; record the
36 cap) or null (server unreadable), end the fire; record the
saturation in the fire log (step 6).
4. For each candidate, highest queue priority first, while cap room
remains:
Expand Down Expand Up @@ -248,7 +248,7 @@ queue task and issue>, "model": {"id": <route model>,
- Never work a task yourself; you claim/bind/launch/record only.
- Never launch for a task whose issue carries `held`, `user/owned`,
`do-not-merge`, or `do-not-auto-edit` — skip and log it.
- Never exceed the 20-session cap, never double-bind a task, never
- Never exceed the 36-session cap, never double-bind a task, never
bind a session id you did not just create.
- No credential value ever enters a prompt, log, or task record; the queue
CLI and poll.py reach the queue-broker with the broker's client
Expand Down