testsAndMisc/docs/superpowers/contracts/phone-lease-fifo-queue-2026-11-21.json
Krzysztof kuhy Rudnicki 24503e9197
Some checks are pending
md-naming / markdown naming convention (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (mypy, mypy) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (pylint, pylint) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (rest, ) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (shellcheck, shellcheck) (push) Waiting to run
Python tests / test (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Shell tests / shell-tests (push) Waiting to run
Shell tests / lib-tests (push) Waiting to run
Shell tests / arch-tests (push) Waiting to run
phone_lease: fair FIFO queue; drop fix_waifu2x
Finish the queue left uncommitted on 2026-11-17: callers that find a
scope taken get a ticket and are granted in arrival order, dead
sessions are reaped at once. The CLI keeps exit 3 for a held scope.
fix_waifu2x.sh patched the CUDA waifu2x build, now uninstalled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWV2U9cEtTMTf7iQWin
2026-11-21 11:50:32 +01:00

15 lines
857 B
JSON

{
"title": "phone_lease fair FIFO queue",
"objective": "Sessions that find a phone scope taken get a ticket and are granted in arrival order; dead sessions' leases and tickets are dropped at once; a whole-phone hold ends 30 s after its first grant.",
"acceptance_criteria": [
"python_pkg/phone_lease tests pass with 100% branch coverage (test_fifo, test_alive, test_queue_props plus the old suites)",
"CLI: a second owner on a held package exits 3 with its place in line; another package is granted in parallel; the queued owner gets the lease after release",
"the CLI keeps exit 3 for a held scope, which phone_deploy_launch.sh depends on"
],
"out_of_scope": [
"Changing the CLI exit code to QUEUED_EXIT (75)",
"~/.claude phone scripts"
],
"verifier": "python_pkg/phone_lease/tests and the CLI run in the evidence file"
}