Skip to content

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

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

@Ardnived Ardnived commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Runs sydevs/claude-workflow/.github/actions/contract-check@main on the generated SahajCloud types (server/payload-types.ts, from contractSync) and the English mirror (lib/translations.en.json, against production via pnpm sync:translations), as two steps at the top of Lint, Typecheck & Unit.
  • 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.

Replaces #310. That PR compared every PR with SahajCloud main, so one upstream merge would redden every open PR, fire fix-ci on each bot PR, and fail the merge queue. It was also red by design until sydevs/SahajCloud#1218 ships.

Until sydevs/SahajCloud#1218 lands, main still carries the hand-typed wisdom_sidetext. A PR that re-syncs either file will therefore fail here, along with typecheck, until it is regenerated from a source that has the key. That is the right signal.

⚠ 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

🤖 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]>
@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 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), 19 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 5abd16b into main Nov 20, 2026
29 of 31 checks passed
@Ardnived
Ardnived deleted the claude/contract-check branch November 20, 2026 00:26
@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