ci: a daily table of open claims in the coordination issue #3319

Manually merged
github merged 5 commits from github-bot/gh-3319 into gh-pr/3319/base 2026-12-03 11:30:00 +00:00 AGit
Owner

@⁠MoonEyes on GitHub · 2026-12-03 10:39 UTC · original
MoonEyes:org/claims-table → main · +640 −0 · 3 files · 5 commits · merged 2026-12-03 11:25 UTC

Claim: ORG-CLAIMS-TABLE in #3312.

Claims are rarely closed: of 1,511 IDs claimed in #2570 and #3312, 403 have no done: or released: line and 375 of those have no open pull request naming them. AGENTS.md tells contributors to stop when an item is claimed, so stale claims block work, and nobody can see them without reading 2,500 comments.

  • tools/coordination_claims.py (standard library, no network): builds the table of claims with no done:/released: line (claimed date, ID, by, age in days, up to three open pull requests naming the ID with a whole-ID match), oldest first. Comments are read in time order, so a claim after a release reopens it; fenced code and > quotes are ignored, so a quoted done: closes nothing. --update-body replaces only the text between <!-- claims-table:start --> and <!-- claims-table:end -->, refuses a body with only one marker, and stays under GitHub's 65,536-character limit (an "N more claims not shown" line when needed).
  • .github/workflows/coordination-claims.yml: daily and by hand. Finds the newest open "Coordinating who works on what" issue and the thread it continues from, reads their comments and the open pull requests, and rewrites the marked section of its body. permissions: {} at the top, issues: write, contents: read, pull-requests: read on the job; the checkout is pinned as in ci.yml, no third-party action.
  • tests/test_coordination_claims.py: 30 tests on synthetic comments (several IDs per line, bold, arrows, release then reclaim, quoted lines, D3D12-A not matching D3D12-AB, markers, the length cap).

Tested

  • The new test, tests/test_ci_registration.py, tests/test_text_write_line_endings.py, test_pr_conflict_label, test_no_game_data_workflow, test_ci_main_signal, test_progress_dashboard_ci and every tests/test_docs_*.py: OK.
  • On real data, read only (comments of #2570 and #3312, 216 open pull requests): 1,511 claimed, 403 open, 375 without a pull request; the table has 404 lines.
  • Not run on GitHub yet: the first run after the merge is the first real test. Before it, the hand-written snapshot in #3312's body gets the markers so the issue shows one table.

AI-assisted (Claude Code, Claude Opus 5.5). Independent review: a separate Claude Opus 5.5 agent; its must-fix (the body grew one newline a day) and two should-fix items (a look-alike issue could take the bot over; an edit made during the run was overwritten) are fixed in the second commit.

🤖 Generated with Claude Code

**@⁠MoonEyes** on GitHub · 2026-12-03 10:39 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3319) `MoonEyes:org/claims-table` → `main` · +640 −0 · 3 files · 5 commits · merged 2026-12-03 11:25 UTC Claim: `ORG-CLAIMS-TABLE` in #3312. Claims are rarely closed: of 1,511 IDs claimed in #2570 and #3312, 403 have no `done:` or `released:` line and 375 of those have no open pull request naming them. AGENTS.md tells contributors to stop when an item is claimed, so stale claims block work, and nobody can see them without reading 2,500 comments. - `tools/coordination_claims.py` (standard library, no network): builds the table of claims with no `done:`/`released:` line (claimed date, ID, by, age in days, up to three open pull requests naming the ID with a whole-ID match), oldest first. Comments are read in time order, so a claim after a release reopens it; fenced code and `>` quotes are ignored, so a quoted `done:` closes nothing. `--update-body` replaces only the text between `<!-- claims-table:start -->` and `<!-- claims-table:end -->`, refuses a body with only one marker, and stays under GitHub's 65,536-character limit (an "N more claims not shown" line when needed). - `.github/workflows/coordination-claims.yml`: daily and by hand. Finds the newest open "Coordinating who works on what" issue and the thread it continues from, reads their comments and the open pull requests, and rewrites the marked section of its body. `permissions: {}` at the top, `issues: write`, `contents: read`, `pull-requests: read` on the job; the checkout is pinned as in `ci.yml`, no third-party action. - `tests/test_coordination_claims.py`: 30 tests on synthetic comments (several IDs per line, bold, arrows, release then reclaim, quoted lines, `D3D12-A` not matching `D3D12-AB`, markers, the length cap). ## Tested - The new test, `tests/test_ci_registration.py`, `tests/test_text_write_line_endings.py`, `test_pr_conflict_label`, `test_no_game_data_workflow`, `test_ci_main_signal`, `test_progress_dashboard_ci` and every `tests/test_docs_*.py`: OK. - On real data, read only (comments of #2570 and #3312, 216 open pull requests): 1,511 claimed, 403 open, 375 without a pull request; the table has 404 lines. - Not run on GitHub yet: the first run after the merge is the first real test. Before it, the hand-written snapshot in #3312's body gets the markers so the issue shows one table. AI-assisted (Claude Code, Claude Opus 5.5). Independent review: a separate Claude Opus 5.5 agent; its must-fix (the body grew one newline a day) and two should-fix items (a look-alike issue could take the bot over; an edit made during the run was overwritten) are fixed in the second commit. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Claim ORG-CLAIMS-TABLE (#3312).

tools/coordination_claims.py reads the comments of the coordination threads and the open pull requests and
lists every ID that was claimed and has no later done:/released: line: claimed date, ID, claimant, age in days
and up to three open pull requests naming the ID as a whole token (D3D12-A does not match D3D12-AB or
D3D12-A-2), oldest first, with counts. --update-body replaces only the text between the claims-table markers
of an issue body, appends the block when they are absent, and drops the newest rows with a "N more" line to
stay under GitHub's 65,536-character limit. No network inside the module.

.github/workflows/coordination-claims.yml runs it once a day (and on demand): it finds the newest open issue
titled "Coordinating who works on what", reads its comments and those of the thread it continues, lists the
open pull requests and edits the body with gh issue edit --body-file.

Tested with tests/test_coordination_claims.py (synthetic comments only).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 10:45:23 +00:00
Author
Owner

@⁠merzleckeier on GitHub · 2026-12-03 10:45 UTC · original

Review of f5bcf258 on bfd03e7f:

  • Preserve concurrent issue-body edits. The job reads the body before paginating comments and listing PRs, then writes the entire old body with the new table. I ran the exact workflow step against a mock gh that adds a maintainer note outside the markers during the comments fetch. The final edit removed the note. Re-reading and comparing the body immediately before gh issue edit avoided that loss in the same fixture. A bot-owned comment would isolate generated content from edits to the issue body if the table needs a stronger guarantee.
  • Read claim events in their written order. After a prior claiming: DEMO-TASK, a single comment with released: DEMO-TASK followed by claiming: DEMO-TASK leaves the claim closed. open_claims() processes every claim before every release in each comment. Processing matches by their offset within the comment reopened it for the second commenter in the local test.

One rollout detail: #3312 still has an unmarked snapshot, so the current fallback would append a second table if the first run precedes marker placement. The workflow could skip when the markers are absent while keeping the CLI's append behavior for setup.

The 30 existing claims tests passed. The workflow reproduction used a local mock and did not update a GitHub issue. AI-assisted review with OpenAI Codex.

**@⁠merzleckeier** on GitHub · 2026-12-03 10:45 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3319#issuecomment-7375717738) Review of `f5bcf258` on `bfd03e7f`: - **Preserve concurrent issue-body edits.** The job reads the body before paginating comments and listing PRs, then writes the entire old body with the new table. I ran the exact workflow step against a mock `gh` that adds a maintainer note outside the markers during the comments fetch. The final edit removed the note. Re-reading and comparing the body immediately before `gh issue edit` avoided that loss in the same fixture. A bot-owned comment would isolate generated content from edits to the issue body if the table needs a stronger guarantee. - **Read claim events in their written order.** After a prior `claiming: DEMO-TASK`, a single comment with `released: DEMO-TASK` followed by `claiming: DEMO-TASK` leaves the claim closed. `open_claims()` processes every claim before every release in each comment. Processing matches by their offset within the comment reopened it for the second commenter in the local test. One rollout detail: #3312 still has an unmarked snapshot, so the current fallback would append a second table if the first run precedes marker placement. The workflow could skip when the markers are absent while keeping the CLI's append behavior for setup. The 30 existing claims tests passed. The workflow reproduction used a local mock and did not update a GitHub issue. AI-assisted review with OpenAI Codex.
- The body is read as stored (JSON, not --jq, which added a newline that update_body kept: one more per day).
- The issue is the newest open "Coordinating who works on what" opened by an owner, member or collaborator, so a
  look-alike issue cannot take the bot over (search API author_association; #3312 qualifies).
- The body is read again before the edit; if it changed during the run, the edit is skipped with a warning.
- The "Updated" stamp is the day, not the minute, so an unchanged table is not rewritten within a day.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot changed target branch from main to gh-pr/3319/base 2026-12-03 11:29:28 +00:00
github manually merged commit 1521629a2d into gh-pr/3319/base 2026-12-03 11:30:00 +00:00
Author
Owner

@⁠fiestorra on GitHub · 2026-12-03 12:40 UTC · original

VERIFY-3319 — aplica limpia y sus 30 tests pasan, más los 20 del catálogo que toca de paso

8 commits (6 propios + los de #3315 y #3313, que aún no están en main)
cherry-pick del rango sobre d9b618f10:  exit 0, sin conflicto

tests/test_coordination_claims.py   30 passed   (0,6 s)
tests/test_d3d12_switches.py        20 passed   (8,8 s)

Y lo que más me interesa de esta PR es que la herramienta se prueba a sí misma con el repositorio real: tools/coordination_claims.py lee los issues de coordinación y saca la tabla de claims — y entre sus 30 tests está el que comprueba lo que yo he visto hoy a mano: que #2570 está cerrado a comentarios y que la continuación es #3312. O sea que la próxima vez que un issue se llene, esto se ve en la tabla y no en un GraphQL: Commenting is disabled.

Y un detalle del método del autor que vale la pena copiar: uno de sus commits se llama «reconfigure stdout like every other tool (test_tool_stdout_enco…» — o sea que hay un test del repositorio que exige que las herramientas configuren su stdout como las demás, y esta PR lo cumple. Es el tipo de regla que sólo se descubre corriendo la suite entera y no un fichero — y hoy la he corrido entera: 1 261 ficheros, cero fallos.

Lo que no he verificado: la tabla en sí (necesita un GITHUB_TOKEN con permisos para leer los issues, y ejecutarla contra el repositorio real escribiría en el issue) y el workflow diario (eso es la primera ejecución en Actions).

**@⁠fiestorra** on GitHub · 2026-12-03 12:40 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3319#issuecomment-7378663617) ## VERIFY-3319 — aplica limpia y sus **30 tests** pasan, más los 20 del catálogo que toca de paso ``` 8 commits (6 propios + los de #3315 y #3313, que aún no están en main) cherry-pick del rango sobre d9b618f10: exit 0, sin conflicto tests/test_coordination_claims.py 30 passed (0,6 s) tests/test_d3d12_switches.py 20 passed (8,8 s) ``` **Y lo que más me interesa de esta PR es que la herramienta se prueba a sí misma con el repositorio real**: **`tools/coordination_claims.py` lee los issues de coordinación y saca la tabla de *claims*** — **y entre sus 30 tests está el que comprueba lo que yo he visto hoy a mano**: **que `#2570` está cerrado a comentarios y que la continuación es `#3312`.** **O sea que la próxima vez que un issue se llene, esto se ve en la tabla y no en un `GraphQL: Commenting is disabled`.** **Y un detalle del método del autor que vale la pena copiar**: **uno de sus commits se llama «reconfigure stdout like every other tool (test_tool_stdout_enco…»** — **o sea que hay un test del repositorio que exige que las herramientas configuren su `stdout` como las demás**, **y esta PR lo cumple.** **Es el tipo de regla que sólo se descubre corriendo la suite entera y no un fichero** — **y hoy la he corrido entera: 1 261 ficheros, cero fallos.** **Lo que no he verificado**: **la tabla en sí** (**necesita un `GITHUB_TOKEN` con permisos para leer los issues, y ejecutarla contra el repositorio real escribiría en el issue**) **y el workflow diario** (**eso es la primera ejecución en Actions**).
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/ubiquitarianism--leonida!3319
No description provided.