Skip to content

ci(dispatch): call the contract check on a contract-sync PR - #308

Closed
Ardnived wants to merge 1 commit into
mainfrom
claude/verify-contract-sync
Closed

Ardnived wants to merge 1 commit into
mainfrom
claude/verify-contract-sync

Conversation

@Ardnived

Copy link
Copy Markdown
Contributor

Summary

  • Adds a verify-contract-sync job to workflow-state.yml. It calls sydevs/claude-workflow's contract-verify.yml on PRs on claude/chore-sync-contracts, the contractSync.branch.
  • That check re-runs this repo's sync command on main and compares the output with the PR head. On an exact match, for a bot PR that touches only the copied contract, it approves as github-actions[bot], and the merge queue merges. Otherwise it asks for review and says why.
  • The job is granted contents: read and pull-requests: write only. The existing dispatch job is unchanged.

⚠ Merge order

Merge only after sydevs/claude-workflow#279. Until contract-verify.yml exists on claude-workflow's main, this file fails to load. That takes the dispatcher down in this repo.

Test results

  • Lean gate: N/A, this is a workflow file only. The YAML parses, and the jobs are dispatch and verify-contract-sync.
  • pull_request_target runs the base branch's copy, so this change first runs on the next sync PR after merge.

Notes for reviewer

The design, the safety argument and the dispatcher's tests are in sydevs/claude-workflow#279. The same change is open in WeMeditateWeb, SahajAtlasWeb and SahajAtlasWordpress.

🤖 Generated with Claude Code

A contract-sync PR whose copy matches what its sync command writes from
main is approved by sydevs/claude-workflow's contract-verify.yml, as
github-actions[bot], instead of waiting on a person. Any other PR keeps
the owner-approval flow.

Merge after sydevs/claude-workflow#279: until contract-verify.yml exists
on its main, this file fails to load, and the dispatcher stops here.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sydevs-bot

sydevs-bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

🤖 no session running

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@sydevs-bot

Copy link
Copy Markdown
Contributor

Adversarial review skipped: 1 file(s), 18 changed line(s), under review.skipWhen. Say @sydevs-bot review to force one.

🤖 sydevs dispatcher

@sydevs-bot sydevs-bot moved this from Pending to Awaiting in SYDevelopers Technical Roadmap Nov 19, 2026
@Ardnived
Ardnived added this pull request to the merge queue Nov 19, 2026
@Ardnived
Ardnived removed this pull request from the merge queue due to a manual request Nov 19, 2026
@Ardnived

Copy link
Copy Markdown
Contributor Author

Superseded: the contract check moves into the dispatcher (sydevs/claude-workflow#280). This repo needs only the one-line permission grant now, which is in its own PR.

@Ardnived Ardnived closed this Nov 19, 2026
@Ardnived
Ardnived deleted the claude/verify-contract-sync branch November 19, 2026 23:06
@sydevs-bot sydevs-bot moved this from Awaiting to Done in SYDevelopers Technical Roadmap Nov 19, 2026
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.

2 participants