Skip to content

feat(repos): the claim sets In Progress - #5111

Merged
dan-petty merged 2 commits into
mainfrom
feat/4685-the-claim-sets-in-progress
Nov 12, 2026
Merged

dan-petty merged 2 commits into
mainfrom
feat/4685-the-claim-sets-in-progress

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

devops repos worktrees add now sets status/in-progress after a claim that is made. Before, the claim set only owner/agent, and the Status changed only when devops pr create opened the pull request, so the roadmap showed less of the work in progress.

The claim uses the forward rule of devops pr create (_REPLACES in pull_status.py) and writes through write_status with the new fact agent_claimed. No Status, New, Ready or Planned moves to In Progress. In Progress, In Review and every Blocked item stay, also one with implement.stopped: a claim is no fix of a stop.

A failed Status write does not stop the command: claimed stays true, the report holds the reason in the new field status_error, and the table output warns. --dry-run lists the Status requests and sends none.

Closes #4685

Change: openspec/changes/archive/2026-11-12-4685-the-claim-sets-in-progress/

@dan-petty dan-petty added type/feature Type feature: a new function scope/repos The devops repos commands and worktrees labels Nov 12, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test evidence

  • The new tests ran first against the code of origin/main at 3109817: 6 failed and 1 test module did not import (set_claimed_status did not exist). The failures were: no status_error in the report, status/ready kept after the claim, no warning, and no Status write in the dry run.
  • On this branch: tests/roadmap/test_roadmap_claim.py, tests/core/test_repos_worktrees_add.py, tests/git/, tests/invariants/ (workflow doc, living specs, change folders, architecture, dry-run ratchet) and tests/roadmap/test_roadmap_draft_readiness.py: 540 passed. tests/lang, tests/commands/test_pr.py, tests/commands/test_pr_status.py, tests/roadmap/test_roadmap_status_sync.py and tests/core/test_repos*.py: 186 passed.
  • devops ci --check --only docs,test-tree,startup-imports,constructs,lint,swallowed-failures: all pass. mypy on the 4 changed modules: no issues.
  • A real dry run (devops repos worktrees add <n> --type feat --slug x --dry-run --no-reclaim) lists 3 more requests after the claim, each with the condition the claim of the agent is made, and the write also with the item is New, Ready or Planned, or has no Status.

Interaction with #5109

#5109 adds a structural test that refuses a Status write outside status_sync.write_status. This PR adds one Status write, in set_claimed_status in src/devops_cli/roadmap/pull_status.py. The two PRs merge with no text conflict. The PR that merges second must change that line to write_status, and the structural test of #5109 names the line.

Live and owner steps

None. This PR changes no manifest, ConfigMap, Secret or repository setting.

Local tool note

The pre-commit openspec row failed locally because the devcontainer image has openspec 1.14.3 and the lock pins 1.17.0 (#5107). devops install-tools --tool openspec linked 1.17.0 into the user bin directory, and the row then passed. No skill file changed.

devops repos worktrees add now sets status/in-progress after a claim that is
made, when the item is New, Ready or Planned, or has no Status. It keeps
every other Status, Blocked included. A failed Status write only warns and
fills status_error in the report. A dry run lists the Status write.
@dan-petty
dan-petty force-pushed the feat/4685-the-claim-sets-in-progress branch from a1f8856 to 40fcff3 Compare November 12, 2026 15:19
@dan-petty

Copy link
Copy Markdown
Owner Author

Rebase on #5109

#5109 merged first, so this PR now writes the Status through status_sync.write_status, as the earlier comment said. StatusFacts gets the fact agent_claimed, and derive_status gives In Progress for it (after New and In Review). The dry run lists one more request, the read-back of the writer. docs/ROADMAP_WORKFLOW.md had a text conflict with #5104 in the step table; both changes stay.

After the rebase on origin/main at 77bdb1f: 3017 tests passed in tests/core, tests/git, tests/invariants (the Status writer test of #5109 included), tests/lang, the claim, status sync, store and pull request tests. The 2 failures are tests/core/test_git_contract.py [review_window], which fail the same way on main (#4865). devops ci --check --only docs,test-tree,startup-imports,constructs,lint,swallowed-failures and mypy pass.

Side finding

devops pr create did not set In Progress on #4685 when it opened this PR, and it did not on #5018 when #5109 opened. It reads the closing issues before GitHub links them. I filed #5112. This PR makes the gap smaller for agents, because the claim sets In Progress first.

@dan-petty
dan-petty marked this pull request as ready for review November 12, 2026 15:26
@dan-petty
dan-petty merged commit 06ef1c6 into main Nov 12, 2026
28 checks passed
@dan-petty
dan-petty deleted the feat/4685-the-claim-sets-in-progress branch November 12, 2026 15:26
@dan-petty

Copy link
Copy Markdown
Owner Author

Review findings after the merge (2026-11-12T15:26:33Z). This pull request is merged, so each confirmed finding goes to a new issue. No change to this branch.

Severity Finding Verification Action
major A release of an agent claim leaves the item In Progress with no owner, no Job and no pull request. The texts implement_outside_claimed and inbox_clears["claim"] give the release as the remedy, and that remedy does not work now. Confirmed on origin/main ba30820. apply_claim with no target writes only the owner/* label (src/devops_cli/roadmap/claim.py). The sweep writes only Ready or Planned items (_WRITTEN_FROM, status_sync.py). require_startable refuses each Status that is not Ready or Planned (_STARTABLE, implement_outside.py). _claim_lines skips an item with no owner (inbox.py), and no other inbox kind shows the item. Filed #5118 with the fix: the release of an owner/agent claim writes the Status from the facts of the item through write_status, with a test and a row in docs/ROADMAP_WORKFLOW.md.

dan-petty pushed a commit that referenced this pull request Nov 12, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.119.0](v0.118.0...v0.119.0)
(2026-11-12)


### Features

* **repos:** the claim sets In Progress
([#5111](#5111))
([06ef1c6](06ef1c6))
* **roadmap:** a fix-plan step repairs a plan PR with open findings
([#5104](#5104))
([ca5b16d](ca5b16d))
* **roadmap:** extend stage review rounds while open findings drop
([#5090](#5090))
([bacf713](bacf713))
* **roadmap:** re-anchor a stale citation that matches one line
([#5040](#5040))
([16356d8](16356d8))


### Bug Fixes

* **ci:** keep failed test IDs in the service image shard summary
([#5106](#5106))
([88589ef](88589ef))
* **github:** count each page of a paginated GitHub read
([#5070](#5070))
([908e24a](908e24a))
* **github:** keep the metrics permissions out of the runner Job token
([#5064](#5064))
([fb549ff](fb549ff))
* **github:** pace mutations through the clock seam
([#5063](#5063))
([2bd87bc](2bd87bc))
* **k8s:** delete the CoreDNS files that k3s never applies
([#5055](#5055))
([463f601](463f601))
* **monitoring:** tidy LLM stack windows, units and lines
([#5052](#5052))
([375d724](375d724))
* **roadmap:** a refused kept plan uses no stage gate return
([#4983](#4983))
([b8adbca](b8adbca))
* **roadmap:** count a command as removed only when MUST NOT governs it
([#4985](#4985))
([2e6f407](2e6f407))
* **roadmap:** cut prose after a cited stage command
([#4982](#4982))
([a172563](a172563))
* **roadmap:** name every module of a group with no named test
([#5089](#5089))
([27a0e79](27a0e79))
* **roadmap:** stage returns every open review finding to the planner
([#5067](#5067))
([21b116e](21b116e))
* **roadmap:** the alternatives check reads the tools in use
([#5062](#5062))
([8903233](8903233))
* **roadmap:** the constants gate reads 6_500 and no new value
([#5080](#5080))
([8a7b113](8a7b113))
* **roadmap:** the constants gate reads only a stated value
([#5042](#5042))
([cf4733e](cf4733e))
* **telemetry:** read repository traffic as the GitHub App
([#4932](#4932))
([7c42823](7c42823))
* **tests:** close the UDP, DNS and git gaps of the network floor
([#5101](#5101))
([047ee48](047ee48))
* **tests:** repair the bwrap contract suite and gate it
([#5110](#5110))
([9a0659d](9a0659d)),
closes [#4715](#4715)


### Performance Improvements

* **ci:** build the Service image once for its test shards
([#5079](#5079))
([dcf5bd5](dcf5bd5))
* **ci:** run only the required checks on the release PR
([#5057](#5057))
([8174071](8174071))
* **ci:** stop the cache export of pull request image builds
([#5113](#5113))
([ba30820](ba30820))
* **roadmap:** consolidate keeps its vectors in the shared tiers
([#5099](#5099))
([2a8bf1a](2a8bf1a))


### Code Refactoring

* **roadmap:** one Status writer for every job
([#5109](#5109))
([24cfedc](24cfedc))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/repos The devops repos commands and worktrees type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(repos): the claim sets In Progress

1 participant