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

Merged
MoonEyes merged 5 commits from upstream-pr/3319 into main 2026-12-03 11:25:29 +00:00
MoonEyes commented 2026-12-03 10:39:08 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T10:39:08Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5624802680 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3319). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T10:39:08Z. --- 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)
merzleckeier commented 2026-12-03 10:45:13 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T10:45:13Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7375717738 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3319#issuecomment-7375717738). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T10:45:13Z. --- 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.
fiestorra commented 2026-12-03 12:40:18 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T12:40:18Z.


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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7378663617 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3319#issuecomment-7378663617). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T12:40:18Z. --- ## 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**).
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
ProjectLeonida/mandy!3319
No description provided.