Skip to content

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

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 the SahajCloud types and the atlas URL contract (all three contractSync paths), as one step at the top of Lint, Typecheck & Build.
  • 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.

⚠ 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]>
@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), 7 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 49495ca into main Nov 20, 2026
27 of 28 checks passed
@Ardnived
Ardnived deleted the claude/contract-check branch November 20, 2026 00:29
@sydevs-bot sydevs-bot moved this from Awaiting to Done in SYDevelopers Technical Roadmap Nov 20, 2026
sydevs-bot pushed a commit that referenced this pull request Nov 20, 2026
`main` gained #435 (the a11y gate and its 44px tap areas) and #451 since
049ff3c. Three text conflicts, both sides kept in each, and two breaks the
merge made that no conflict marker showed.

CHANGELOG keeps this branch's five entries and #435's five, in the file's
own descending order, and both link definitions.

`docs/testing.md` keeps #435's third-lane paragraph and this branch's
coverage paragraph. The "Three lanes" sentence is #435's and auto-merged.

`scripts/check-bundle-size.mjs` keeps both history blocks, and `embed` goes
back to 336 from #435's 338. That raise bought 0.4 KiB of generated CSS room
on a graph with 0.2 KiB spare; this branch leaves 44.0, so the raise buys
nothing and splits a pair the comment beside the constant,
`scripts/AGENTS.md` and the PR body all describe as held together at 336.
Both budgets pass either way — at 336 `embed` is 13.1% under, inside
`SLACK_RATIO`'s 15%.

#435 added `actions/cache@v4` to `ci.yml`, and this branch's new
`ci-workflows.test.ts` refuses a third-party action named by a tag. Pinned to
the commit `v4` points at, with its version beside it, like the other four.

#435 also added `pnpm test:a11y` as a step of the `gate` job, which the same
spec's "runs the lane once" assertion counted as a second vitest lane — it
matched any `pnpm test:*` step. It now keeps only the steps whose
`package.json` script runs vitest, so a second real lane still fails it.

Lean gate green on the merged tree with the build and `pnpm size`
(`check.sh --full`, exit 0). Eager payload, measured/shipped KiB:
standalone 289.7/290.9, embed 290.8/292.0, loader 2.8/3.3.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXf4EeQiCL8iF42zak
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