Skip to content

fix(loop): a board write that fails must not stop the dispatch - #75

Merged
Ardnived merged 1 commit into
mainfrom
claude/board-degrades
Sep 8, 2026
Merged

Ardnived merged 1 commit into
mainfrom
claude/board-degrades

Conversation

@Ardnived

@Ardnived Ardnived commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

The first live dispatch, on claude-workflow#72, planned exactly right:

claude-workflow#72 issue_comment: plan = label, react, status:revising, fire:answer
claude-workflow#72 issue_comment: status → revising
TypeError: Cannot read properties of null (reading 'status')
    at projectIds (dispatcher/projects.mjs:16:21)

projectV2(number: 2) returns null with no GraphQL error when the token cannot see the organization's project. A permission answer dressed as data. The labels had already been written, the job failed at Status, and the fire never happened — the one part of the run that matters.

The fix

  • Projects calls throw BoardUnreachable, whose message names the permission to grant.
  • apply catches it, logs it, and finishes the plan, so the dispatch still fires. One board-unreachable anomaly goes in the day's journal.
  • docs/why.md#the-board-is-a-lens-so-it-may-fail-alone. A stale board is cosmetic. A dispatch that never fired is work that silently does not happen.
  • Two tests over projects.mjs, which had none. 41 pass.

Separately: the token needs a permission it does not have

This is why the null appeared, and the fix does not resolve it. SYDEVS_BOT_PAT cannot read the org project. Grant the fine-grained PAT organization permissions → Projects: read and write (the old ADD_TO_PROJECT_PAT had it, which is why actions/add-to-project worked). Until then every item's Status is stale, and each dispatch journals one anomaly saying so.

The first live dispatch planned correctly and then died on
`setStatus`: `projectV2(number: 2)` returns null, with no GraphQL error,
when the token cannot see the organization's project. The labels were
already written and the fire never happened.

Projects calls now throw `BoardUnreachable`, naming the permission to
grant. `apply` catches it, logs it, finishes the plan — so the run still
fires — and journals one `board-unreachable` anomaly.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant