Repository navigation
fix(dispatcher): a refused sync status leaves a PR, not a bare branch - #306
Merged
Merged
Conversation
contracts-sync posted its commit status before `gh pr create`, so when SYDEVS_BOT_PAT could not write statuses the job pushed the sync branch and died before opening the PR. Every sync since #280 added `attest` has done this in both consumers: no `sydevs / contract-sync` status exists on any sync commit since, and the last sync PRs (WeMeditateWeb#306, SahajAtlasWeb#439) were opened an hour before #280 merged. Open the PR first, then attest. A refused status still fails the job, but leaves a PR a person can review. contracts-verify also fires on the status event, so the order costs no approval once the token can write it. Record the missing Commit statuses permission beside `attest` and in the routine-setup PAT table. Part of #305. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
🤖 no session running Written by the sydevs dispatcher. Sessions never edit this comment. |
sydevs-bot
approved these changes
Nov 22, 2026
sydevs-bot
left a comment
Contributor
There was a problem hiding this comment.
Approved for Ardnived, who wrote it: GitHub refuses an author's own approval. CI is green and the automated review has run. Enable auto-merge when you want it merged: the queue tests it against its base. 🤖 Written by the sydevs autonomous loop — see what this is
Contributor
|
Adversarial review skipped: 2 file(s), 18 changed line(s), under 🤖 sydevs dispatcher |
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
contracts-syncnow opens the sync PR before posting itssydevs / contract-syncstatus. A refused status still fails the job, but no longer strands a pushed branch with no PR.attestneeds — Commit statuses: write on eachcontractSyncconsumer — besideattestindispatcher.ymland in theSYDEVS_BOT_PATrow ofdocs/routine-setup.md.Part of #305. The root cause is the token, which this PR cannot change:
SYDEVS_BOT_PATneeds Commit statuses read and write on WeMeditateWeb, SahajAtlasWeb and SahajAtlasWordpress.Failure this prevents
Since #280 added
attest(merged 2026-11-19 23:30Z), every contract sync has pushedclaude/chore-sync-contractsand then 403ed onPOST /statuses, beforegh pr create. The 403 is pinned toattest, not to the PR call:sydevs / contract-syncstatus exists onWeMeditateWeb@3626cc1or on the current head806e63f.gh pr createworked with this token; the status call is new.mainright now (from SahajCloud#1218, run 45078199691), with no PR.With this order, the same token gap would have left a draft PR in each consumer for a person to review, not a branch nobody sees.
Test results
node --test dispatcher/test/*.test.mjs: 399 pass, 0 fail. The step's shell is not under test; the change is a reorder of one call.dispatcher.ymlparses as YAML.Notes for reviewer
🤖 Generated with Claude Code