[PR #221] ci: validate pull request coordination claims #273

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/221
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: codex/coord-claim-check-20261124-7e48


📝 Commits (10+)

  • a8b1c36 ci: validate coordination claims on pull requests
  • 07d0434 ci: correct claim parser escaping
  • a2061eb ci: require claim before pull request creation
  • a4971f4 ci: sync coordination activity in issue 14
  • 56a2f63 ci: separate read-only claim validation
  • 13cc7cd ci: maintain issue 14 PR activity
  • 02099d7 ci: avoid mentions in activity roster
  • 5880710 fix: validate all declared coordination claims
  • cbf2a71 fix: isolate activity roster in managed comment
  • d72a680 fix: strip PR comments when rechecking claims

📊 Changes

2 files changed (+2052 additions, -0 deletions)

View changed files

➕ .github/workflows/coordination-activity.yml (+1574 -0)
➕ .github/workflows/coordination-claim.yml (+478 -0)

📄 Description

Claimed in the coordination issue as: COORD-CLAIM-CHECK

Summary

  • Validate every work-item ID declared in the PR title and the Claimed in the coordination issue as: field. IDs from both locations are combined; only IDs in issue #14's Open work table are valid.
  • Require a prior unchanged claim on issue #14 for each ID, posted before the PR and owned by the PR author. Editing or deleting a claim invalidates it.
  • Accept explanatory text, comma-separated IDs, and contiguous bulleted batches after claiming:; reject malformed partial lists.
  • Keep the editable issue body separate from the Action-owned open-PR roster comment.
  • Refresh the roster every 15 minutes. Reconcile claim status after relevant comments, edits to issue #14, PR lifecycle events, and validator runs. PR lifecycle events recompute all open heads targeting main, including when a PR opens, changes commits or base, or closes. Queue automatic status reconciliation and audit all open PR heads hourly; manual per-PR refresh remains available.
  • Publish commit status context coordination-claim on current PR heads, independent of workflow rerun age or attempt limits. This is an eventually consistent diagnostic and must not be the sole required merge check because claim data lives in issue #14. Strict enforcement requires an authorized merge flow to revalidate claims immediately before merging. The Actions job coordination-claim-validator is also diagnostic.
  • Verify the repository's effective GitHub Actions event policy allows pull_request_target before December 2, 2026. The repository policy could not be confirmed through the available API; if the event is blocked, validator workflow_run events and the hourly audit remain recovery paths.
  • Manual refresh: gh workflow run coordination-activity.yml -f pr_number=<N>.
  • Mark PRs without a valid claim as Needs claim. The workflow does not close or assign PRs.

Security and scope

The claim validator is read-only. The activity workflow has issue-comment and commit-status write permissions so it can update its own marked comment and publish the current status for PR heads. Neither workflow checks out or executes pull-request code.

Local verification: both workflow YAML files parsed, all three embedded Python scripts compiled, and 42 focused checks passed for claim parsing, PR field extraction, and comment targeting. GitHub Actions execution still needs confirmation.


🔄 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/221 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `codex/coord-claim-check-20261124-7e48` --- ### 📝 Commits (10+) - [`a8b1c36`](https://github.com/ubiquitarianism/leonida/commit/a8b1c36d6d5d512c1c3279ebc1f75cf747d70d3a) ci: validate coordination claims on pull requests - [`07d0434`](https://github.com/ubiquitarianism/leonida/commit/07d04346dcc2c03fe087cda4d55ec9336c0de1e3) ci: correct claim parser escaping - [`a2061eb`](https://github.com/ubiquitarianism/leonida/commit/a2061ebd164b16c84a358f02f0fdc1cf62191172) ci: require claim before pull request creation - [`a4971f4`](https://github.com/ubiquitarianism/leonida/commit/a4971f4f71279dcf7cc2340a09a845c8c9936898) ci: sync coordination activity in issue 14 - [`56a2f63`](https://github.com/ubiquitarianism/leonida/commit/56a2f632a023d684dfe4878fc469e112342764d1) ci: separate read-only claim validation - [`13cc7cd`](https://github.com/ubiquitarianism/leonida/commit/13cc7cd16bfb4c8dc2ce95db59d1d78e07e7ee51) ci: maintain issue 14 PR activity - [`02099d7`](https://github.com/ubiquitarianism/leonida/commit/02099d7a6f1cfec74a419a05464a94ef8904c4a2) ci: avoid mentions in activity roster - [`5880710`](https://github.com/ubiquitarianism/leonida/commit/588071070f9f191b3d2075bb24bd2ac1d0da2b18) fix: validate all declared coordination claims - [`cbf2a71`](https://github.com/ubiquitarianism/leonida/commit/cbf2a71374859e4d7ee909b407f674aa7be47f8c) fix: isolate activity roster in managed comment - [`d72a680`](https://github.com/ubiquitarianism/leonida/commit/d72a680b941f6b69ac4a9358050ea001c4a36ff3) fix: strip PR comments when rechecking claims ### 📊 Changes **2 files changed** (+2052 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/coordination-activity.yml` (+1574 -0) ➕ `.github/workflows/coordination-claim.yml` (+478 -0) </details> ### 📄 Description Claimed in the coordination issue as: COORD-CLAIM-CHECK ## Summary - Validate every work-item ID declared in the PR title and the `Claimed in the coordination issue as:` field. IDs from both locations are combined; only IDs in issue #14's **Open work** table are valid. - Require a prior unchanged claim on issue #14 for each ID, posted before the PR and owned by the PR author. Editing or deleting a claim invalidates it. - Accept explanatory text, comma-separated IDs, and contiguous bulleted batches after `claiming:`; reject malformed partial lists. - Keep the editable issue body separate from the Action-owned open-PR roster comment. - Refresh the roster every 15 minutes. Reconcile claim status after relevant comments, edits to issue #14, PR lifecycle events, and validator runs. PR lifecycle events recompute all open heads targeting `main`, including when a PR opens, changes commits or base, or closes. Queue automatic status reconciliation and audit all open PR heads hourly; manual per-PR refresh remains available. - Publish commit status context `coordination-claim` on current PR heads, independent of workflow rerun age or attempt limits. This is an eventually consistent diagnostic and must not be the sole required merge check because claim data lives in issue #14. Strict enforcement requires an authorized merge flow to revalidate claims immediately before merging. The Actions job `coordination-claim-validator` is also diagnostic. - Verify the repository's effective GitHub Actions event policy allows pull_request_target before December 2, 2026. The repository policy could not be confirmed through the available API; if the event is blocked, validator workflow_run events and the hourly audit remain recovery paths. - Manual refresh: `gh workflow run coordination-activity.yml -f pr_number=<N>`. - Mark PRs without a valid claim as **Needs claim**. The workflow does not close or assign PRs. ## Security and scope The claim validator is read-only. The activity workflow has issue-comment and commit-status write permissions so it can update its own marked comment and publish the current status for PR heads. Neither workflow checks out or executes pull-request code. Local verification: both workflow YAML files parsed, all three embedded Python scripts compiled, and 42 focused checks passed for claim parsing, PR field extraction, and comment targeting. GitHub Actions execution still needs confirmation. --- <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#273
No description provided.