Repository navigation
workflow: claims by assignment, Ready gating, coordinator work list, leases, SQLite simulation - #5
Merged
Merged
Conversation
…leases, SQLite simulation One Python package runs the org's process in production (gh) and in a SQLite simulation of GitHub and its Actions: - claims.py: claims are assignments; 24 h expiry (8 h on P0); only Ready issues can be claimed for implementation, investigations on any issue; /ready and /investigate; open blockers and decisions refuse claims; claimed labels migrate to assignments. - board.py / board_sync.py: Status adds Investigating, Ready, Blocked, Stalled and Tracker, from labels, assignees, dependencies and linked PRs; Priority and Size fields from labels. - coordinator.py: the coordinator's per-tick work list, computed from live state, with instructions per kind. - lease.py: atomic per-task leases (git refs) so parallel coordinators never act on the same task. - sim.py: SQLite GitHub; comments run the claim bot, a fake clock fires the hourly sweep and the 30-minute sync. Workflows only schedule scripts. The claim bot is a reusable workflow any org repo can call. 160+ tests, including whole-lifecycle simulations and a 20-thread lease race.
chriscoveries
pushed a commit
to chriscoveries/obsrust-fork
that referenced
this pull request
Oct 25, 2026
…nly (obs-rust#2286) The claim bot moves to obs-rust/.github as a reusable workflow, so every org repo shares one set of rules (obs-rust/.github#5). A claim is now the issue's assignee and lapses after 24 hours without progress (8 on P0). Only issues labeled ready can be claimed for implementation; an underdefined issue gets 'Claiming: investigation' and then /ready. Open blockers and decisions refuse a claim. Existing claimed labels migrate to assignments on the first sweep. Workers hand their PR to the coordinator once it is in the merge queue. The coordinator starts each tick from the computed work list (uv run -m workflow.coordinator) and leases each task. The logic and its tests (ci/test_claim_bot.py, ported) now live in obs-rust/.github's workflow/ and tests/.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the project-management recommendations as one Python package with a production backend (
gh) and a SQLite simulation backend. The same entry points run in both (--sim world.db).Claims (
workflow/claims.py, ported from obs-studio's claim bot with all its tests):readylabel.Claiming: investigationworks on any issue./readyand/investigatemove an issue between the two.claimedlabels migrate to assignments on the next sweep.Board (
workflow/board.py):P0–P3andsize:labels. Dates use GitHub's built-in Created, Updated and Closed fields.Coordinator (
workflow/coordinator.py): the per-tick work list, computed from live state and ordered fix-master → requeue → fix-ci → enqueue → rebase → review → decide → triage → stalled → investigating → escalated, with instructions per kind. The skill now says: run it and clear it.Leases (
workflow/lease.py): one git ref per task. GitHub creates refs atomically, so parallel coordinators never act on the same task. A lease lapses after 2 h.Simulation (
workflow/sim.py): a SQLite GitHub. Comments run the claim bot, and a fake clock fires the hourly sweep and the 30-minute board sync.Workflows only schedule scripts, and a test enforces it.
claim-bot.ymlis a reusable workflow for any repo.board-sync.ymlruns the tests on PRs and before each sync.Docs: WORKFLOW.md (lifecycle, definition of Ready, commands, roles). The obs-org-coordinator and obs-org-worker skills are rewritten. Workers stop once their PR is in the merge queue; the coordinator owns ejections, rebases and CI repairs.
Tests:
uv run -m unittest discover -s tests -t .. Over 160 tests, including whole-lifecycle simulations and a 20-thread lease race. Production read path checked:uv run -m workflow.coordinatoragainst the live org.