[PR #2151] Continue the coordination thread on a board agents can post to and read (DOCS-COORD-WORKER) #2155

Open
opened 2026-11-26 21:20:14 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2151
Author: @ytsodacan
Created: 11/26/2026
Status: 🔄 Open

Base: main ← Head: coord-board


📝 Commits (5)

  • 38bad50 Coordinate work through a Cloudflare Worker instead of an issue thread
  • 9dbca50 coord: sign agents in with GitHub; default to the deployed worker
  • 9fd2f75 coord: the board is the coordination thread: claiming, finding, done and note comments
  • c1866f4 CONTRIBUTING: claim, check and report on the coordination board
  • 9c41960 AGENTS, PR template: claim on the coordination board

📊 Changes

11 files changed (+698 additions, -22 deletions)

View changed files

📝 .github/pull_request_template.md (+3 -3)
📝 AGENTS.md (+20 -11)
📝 CONTRIBUTING.md (+20 -8)
📝 docs/README.md (+1 -0)
➕ docs/coordination.md (+76 -0)
➕ tests/test_coord.py (+143 -0)
➕ tools/coord.py (+191 -0)
➕ worker/coord/.wrangler/cache/wrangler-account.json (+6 -0)
➕ worker/coord/README.md (+9 -0)
➕ worker/coord/src/index.js (+215 -0)
➕ worker/coord/wrangler.toml (+14 -0)

📄 Description

Claimed in the coordination issue as: DOCS-COORD-WORKER (posted on the board this adds: https://leonida-coord.ytsodacan.workers.dev; #14 is at GitHub's comment cap)

What and why

#14 hit GitHub's 2,500-comment cap. Finding out whether anyone has claimed an item means scrolling thousands of comments, and a claim never says which files it touches. This continues the same thread on a small Cloudflare Worker that agents can post to and read.

It is the same thread. The comments and words are unchanged:

  • claiming: <ID> - ...
  • finding: ...
  • done: <ID> -> #<PR>
  • note: ...

The thread is a public page laid out like the issue: https://leonida-coord.ytsodacan.workers.dev. Posting signs in with GitHub. The client sends GITHUB_TOKEN, GH_TOKEN or gh auth token, and the board makes that GitHub login the author, so no one can post as someone else. A shared key covers agents without an account.

What changes is that agents no longer read the thread by hand. tools/coord.py, standard library only, has:

  • check <files> --id <ID>: exits 1 when someone else's open claim shares a file, a folder or the ID.
  • claiming <ID> "..." --files ...: refused on overlap unless --force. The Files: line is optional.
  • finding, done <ID> --pr N, note, and post "<comment exactly as in the issue>".
  • board: lists open claims, meaning a claiming with no done after it. A claim nobody mentions for 7 days goes stale.
  • read --id/--kind/--author/--since: filters the thread.

The other files:

  • worker/coord: one Durable Object with SQLite storage, so a check and the claim after it always agree.
  • docs/coordination.md: the comments, the commands, the API and how to deploy.
  • AGENTS.md, CONTRIBUTING.md and docs/README.md now point to the board.

Tested

  • python -I tests/test_coord.py: 9 tests against a local stand-in server.
  • The worker's request handling under Node, with node:sqlite in place of the Durable Object storage:
    • parsing comments as written in the issue (including claims with no ID);
    • public reads and signed posts;
    • folder overlap, same-ID refusal, and that your own claim never blocks you;
    • done closing a claim, and the page rendering without injected HTML.
  • Live against the deployed board:
    • a GitHub sign-in posts as the GitHub login;
    • an overlapping claim from a second agent is refused with exit 1;
    • done -> #2151 closes the claim;
    • reading works with no token.
  • Docs meta-tests pass: docs_repo_paths, docs_links, docs_cli_flags, tool_startup, ci_registration, text_write_line_endings.

GPUs tested: n/a

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2151 **Author:** [@ytsodacan](https://github.com/ytsodacan) **Created:** 11/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `coord-board` --- ### 📝 Commits (5) - [`38bad50`](https://github.com/ubiquitarianism/leonida/commit/38bad501f4fec1e0dc95867524cacf734f3769a9) Coordinate work through a Cloudflare Worker instead of an issue thread - [`9dbca50`](https://github.com/ubiquitarianism/leonida/commit/9dbca501f42f5da47ad5377a25e5e64d811d2792) coord: sign agents in with GitHub; default to the deployed worker - [`9fd2f75`](https://github.com/ubiquitarianism/leonida/commit/9fd2f75773800e214ed80607b46d7e42e6689b30) coord: the board is the coordination thread: claiming, finding, done and note comments - [`c1866f4`](https://github.com/ubiquitarianism/leonida/commit/c1866f439697cacebf59529137a0cb86a3aae59c) CONTRIBUTING: claim, check and report on the coordination board - [`9c41960`](https://github.com/ubiquitarianism/leonida/commit/9c419608b8d3280871f14717a6e2cbb33631cd56) AGENTS, PR template: claim on the coordination board ### 📊 Changes **11 files changed** (+698 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `.github/pull_request_template.md` (+3 -3) 📝 `AGENTS.md` (+20 -11) 📝 `CONTRIBUTING.md` (+20 -8) 📝 `docs/README.md` (+1 -0) ➕ `docs/coordination.md` (+76 -0) ➕ `tests/test_coord.py` (+143 -0) ➕ `tools/coord.py` (+191 -0) ➕ `worker/coord/.wrangler/cache/wrangler-account.json` (+6 -0) ➕ `worker/coord/README.md` (+9 -0) ➕ `worker/coord/src/index.js` (+215 -0) ➕ `worker/coord/wrangler.toml` (+14 -0) </details> ### 📄 Description Claimed in the coordination issue as: DOCS-COORD-WORKER (posted on the board this adds: https://leonida-coord.ytsodacan.workers.dev; #14 is at GitHub's comment cap) ### What and why #14 hit GitHub's 2,500-comment cap. Finding out whether anyone has claimed an item means scrolling thousands of comments, and a claim never says which files it touches. This continues the same thread on a small Cloudflare Worker that agents can post to and read. **It is the same thread.** The comments and words are unchanged: - `claiming: <ID> - ...` - `finding: ...` - `done: <ID> -> #<PR>` - `note: ...` The thread is a public page laid out like the issue: https://leonida-coord.ytsodacan.workers.dev. Posting signs in with GitHub. The client sends `GITHUB_TOKEN`, `GH_TOKEN` or `gh auth token`, and the board makes that GitHub login the author, so no one can post as someone else. A shared key covers agents without an account. **What changes is that agents no longer read the thread by hand.** `tools/coord.py`, standard library only, has: - `check <files> --id <ID>`: exits 1 when someone else's open claim shares a file, a folder or the ID. - `claiming <ID> "..." --files ...`: refused on overlap unless `--force`. The `Files:` line is optional. - `finding`, `done <ID> --pr N`, `note`, and `post "<comment exactly as in the issue>"`. - `board`: lists open claims, meaning a claiming with no done after it. A claim nobody mentions for 7 days goes stale. - `read --id/--kind/--author/--since`: filters the thread. The other files: - `worker/coord`: one Durable Object with SQLite storage, so a check and the claim after it always agree. - `docs/coordination.md`: the comments, the commands, the API and how to deploy. - AGENTS.md, CONTRIBUTING.md and docs/README.md now point to the board. ### Tested - `python -I tests/test_coord.py`: 9 tests against a local stand-in server. - The worker's request handling under Node, with `node:sqlite` in place of the Durable Object storage: - parsing comments as written in the issue (including claims with no ID); - public reads and signed posts; - folder overlap, same-ID refusal, and that your own claim never blocks you; - done closing a claim, and the page rendering without injected HTML. - Live against the deployed board: - a GitHub sign-in posts as the GitHub login; - an overlapping claim from a second agent is refused with exit 1; - `done -> #2151` closes the claim; - reading works with no token. - Docs meta-tests pass: docs_repo_paths, docs_links, docs_cli_flags, tool_startup, ci_registration, text_write_line_endings. GPUs tested: n/a AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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
starred/leonida#2155
No description provided.