Skip to content

ci(contracts): fail only a PR's own change to a copied contract - #93

Merged
Ardnived merged 1 commit into
mainfrom
claude/contract-check
Nov 20, 2026
Merged

Ardnived merged 1 commit into
mainfrom
claude/contract-check

Conversation

@Ardnived

Copy link
Copy Markdown
Contributor

Summary

  • Runs sydevs/claude-workflow/.github/actions/contract-check@main on tests/atlas-url-contract.json. It replaces the URL contract in sync job's step, and the job keeps its required name.
  • A PR that changes a copied contract must leave it exactly as its sync command writes it. A PR that leaves the copy alone passes, however far SahajCloud has moved. Drift on main is the contract sync's job to fix.
  • A command that fails is annotated as an infrastructure failure, so the dispatcher re-runs it instead of firing fix-ci.

What changes: a WordPress PR no longer goes red when SahajCloud changes the URL contract and the re-sync has not landed yet. The push to main run used to show drift on main; it now passes, and the contract sync opens a re-sync PR for that drift. The job's comment now warns that a green run may mean "untouched", and the step log says which.

⚠ Merge order

Draft until sydevs/claude-workflow#283 merges. The action doesn't exist on claude-workflow's main yet, so this PR's CI fails at that step. It stays a draft so the loop doesn't spend fix-ci runs on that failure. Once #283 merges, re-run CI and mark this ready.

Test results

  • Lean gate: N/A, workflow only. The YAML parses, and the action steps are where the summary says.
  • The action's behaviour is covered by dispatcher/test/contract-check.test.mjs in #283. This PR's CI, after #283 merges, is its first run on GitHub.

🤖 Generated with Claude Code

Calls sydevs/claude-workflow's contract-check action. A PR that changes a
copied contract must leave it exactly as its sync command writes it; a PR
that leaves the copy alone passes, however far SahajCloud has moved. Drift
on main is the contract sync's to fix.

Needs sydevs/claude-workflow#283 on main first.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Ardnived
Ardnived marked this pull request as ready for review November 20, 2026 00:24
@sydevs-bot

sydevs-bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

🤖 no session running

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

@sydevs-bot sydevs-bot moved this from Awaiting to Pending in SYDevelopers Technical Roadmap Nov 20, 2026

@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), 30 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 20, 2026
@Ardnived
Ardnived merged commit b04bb30 into main Nov 20, 2026
28 of 29 checks passed
@Ardnived
Ardnived deleted the claude/contract-check branch November 20, 2026 00:27
@sydevs-bot sydevs-bot moved this from Awaiting to Done in SYDevelopers Technical Roadmap Nov 20, 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