Skip to content

ci: a docs-only change takes the light lane - #340

Merged
Ardnived merged 6 commits into
mainfrom
claude/ci-docs-light-lane
Nov 24, 2026
Merged

Ardnived merged 6 commits into
mainfrom
claude/ci-docs-light-lane

Conversation

@Ardnived

@Ardnived Ardnived commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Why

A PR that changes only docs or agent files still ran the whole gate (ESLint, typecheck, unit tests, Ladle build, wrangler dry run) and both smoke legs, 12-16 minutes for a change nothing builds or tests reads. See sydevs/SahajCloud#1265. This applies the same fix as sydevs/SahajCloud#1266.

What changes

Both jobs start with sydevs/claude-workflow/.github/actions/change-scope@main, which outputs full.

  • Lint, Typecheck & Unit (gate): everything after the classify step is gated on full — pnpm setup, node, install, both contract checks, pnpm lint, typecheck, test:run, the a11y summary, ladle:build, check:wrangler. No formatter runs on the light lane either: .prettierignore excludes *.md and .claude/, docs/ holds only markdown, and .vscode/ is untracked, so prettier --check . could only ever read files a light PR left alone.
  • Smoke (web) / Smoke (ladle): checkout and the scope step run in the job; the ladle-built check, pnpm setup, install, preview discovery, the specs, the results summary and the missing-preview report are gated on full. A docs-only PR builds no Cloudflare preview, so it no longer waits out discovery's timeout.
  • Each job writes one job-summary line on the light lane, naming what did not run. A skipped step writes no summary and the action leaves only an annotation, so without this all three required checks would go green and blank — the shape ci(preview): move the Ladle site to Workers and fail on no preview #184 named.
  • Dependency Review is not gated.

No workflow-level paths and no job-level if on the smoke matrix: a skipped matrix job reports under its unexpanded name Smoke (${{ matrix.target }}), which would not satisfy the required Smoke (web) and Smoke (ladle). Every required check still reports, green.

LIGHT_PATHS at workflow level holds the regex once, read by both jobs through the env context. It widens the action's default — .claude/ and .vscode/ — to every markdown file and everything under docs/, then narrows out docs/DESIGN_SYSTEM.md, which tests/guards/design-tokens.test.ts reads and holds to layouts/tailwind.css. The action leaves prose out of its default because a repo's tests may read it, so that widening is the one decision here worth reviewing: nothing else in this repo reads markdown, docs/, .claude/ or .vscode/. The regex is extended (no lookahead), so the exception goes by final letter; a file named *M.md takes the full lane, which errs safe. tests/guards/ladle-watch-paths.test.ts still finds WATCH and IGNORE, which are unchanged.

A push, an unreadable base or an empty diff runs the full lane. Also noted in docs/cloudflare-previews-ci.md.

⚠ Merge order

sydevs/claude-workflow#314 (adds the change-scope action) had to merge first, and has, as 0288c17. uses: ...change-scope@main resolves now.

🤖 Generated with Claude Code

Classify the change with sydevs/claude-workflow's change-scope action. When every changed
file is markdown, under docs/, .claude/ or .vscode/ (docs/DESIGN_SYSTEM.md excepted, which
a guard test reads), gate keeps install and the prettier check and skips the rest, and
smoke skips preview discovery and its specs. Steps are gated, not the workflow or the
matrix job, so every required check still reports.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 24, 2026
@sydevs-dispatcher

sydevs-dispatcher Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

🤖 no session running
CI fix 1

recent dispatches
  • 19:01Z address-review · attempt 1 · session · done
  • 19:01Z address-review · attempt 1 · session
  • 18:51Z review-pr · attempt 1 · session · done
  • 18:51Z review-pr · attempt 1 · session
  • 18:31Z fix-ci · attempt 1 · session · done

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

@sydevs-bot

Copy link
Copy Markdown
Contributor

CI is red for one reason, and it is not in this repo. All three required checks died in under five seconds, at Prepare all required actions:

Can't find 'action.yml', 'action.yaml' or 'Dockerfile' for action
'sydevs/claude-workflow/.github/actions/change-scope@main'.

The runner resolved sydevs/claude-workflow@main to c78caaa, which carries no change-scope action. sydevs/claude-workflow#314 adds it at exactly that path and is still open. This is the merge order this PR's body already names.

Nothing here can fix it. Pinning the action to #314's branch would only need reverting. Merge sydevs/claude-workflow#314, then re-run CI on this PR.

I pushed nothing. The diff itself reads correct against #314's action: the path, the light input and the full output all match, and docs/DESIGN_SYSTEM.md stays on the full lane through both regex branches.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 24, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 24, 2026
@Ardnived
Ardnived enabled auto-merge November 24, 2026 18:49
@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 24, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 24, 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.

🧐 Adversarial review

The shape is right and no bigger than the problem: two jobs, one shared action, steps gated rather than the workflow or a matrix job — the trap this repo's required checks would fall into. The central claim holds: docs/DESIGN_SYSTEM.md is the only prose file anything in CI reads, so widening light to all markdown and docs/ is safe today.

Two things undercut it. The light lane keeps a step that cannot check any file able to reach that lane, and that step is the only reason install stays on it. And the file calls its light input the action's default when it is a widening of it, which hides the one decision here worth reviewing.

Findings

  • should-fix ci.yml:80 — prettier --check . covers no file the light lane can carry, and holds install there.
  • should-fix ci.yml:37 — the comment, and the body, invert what changed about light.
  • should-fix docs/cloudflare-previews-ci.md:14 — the new bullet restates the regex, the steps and the fallbacks.
  • should-fix ci.yml:160 — the regex is hand-typed twice, held equal by a comment.
  • consider ci.yml:264 — a light run leaves both smoke summaries empty.
  • consider ci.yml:168 — the ladle scope step is the other path classifier, left outside the new owner.

What was checked

ci.yml and docs/cloudflare-previews-ci.md whole on the branch; change-scope's action.yml and scope.sh on claude-workflow main (#314 merged as 0288c17, so the body's ⚠ is satisfied). Grepped every reader of a markdown, docs/ or .claude/ path: only tests/guards/design-tokens.test.ts. git ls-tree — docs/ is all markdown, .vscode/ untracked. Read .prettierignore and the lint script. new-pieces.mjs says NONE, so no streamliner ran; I walked the ladder instead. No question threads, no preview links, no earlier critic review.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

Comment thread .github/workflows/ci.yml Resolved
Comment thread .github/workflows/ci.yml Resolved
Comment thread .github/workflows/ci.yml Resolved
Comment thread .github/workflows/ci.yml Resolved
Comment thread .github/workflows/ci.yml Resolved
Comment thread docs/cloudflare-previews-ci.md Resolved
@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 24, 2026
@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 24, 2026
`prettier --check .` covered no file that can put a PR on the light lane:
.prettierignore excludes `*.md` and `.claude/`, `docs/` holds only markdown,
and `.vscode/` is untracked. It was also the only reason pnpm, node and
install stayed on that lane. Gate all three on `full` and drop the step, as
the `smoke` job already does. The light `gate` is now checkout plus classify.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjW4TqxVvLNPAXcahCX
The default is `.claude/` and `.vscode/` — neither markdown nor `docs/`. The
input is that default widened and then narrowed by one file, and the comment
read as if only the narrowing happened, hiding the one decision here worth
reviewing. The action's own warning puts the risk of widening on the repo
that does it, so the comment now names the widening first.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjW4TqxVvLNPAXcahCX
Both jobs typed the regex out, held equal by a comment. A workflow-level
`env:` holds it once and both `with:` blocks read it, so the comment goes
away and so does the drift it was guarding against. The explanation of what
the regex covers moves to the value.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjW4TqxVvLNPAXcahCX
A light change skipped every step that writes `$GITHUB_STEP_SUMMARY`, so all
three required checks went green with nothing in them, and the action leaves
only an annotation. #184 named that shape: a skip must never look like a
pass. Each job now writes one line saying what did not run, and the quiet
cases the missing-preview step counts go from three to four.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjW4TqxVvLNPAXcahCX
The bullet restated the regex's conditions, the step inventory and the
full-lane fallbacks, all of which live in `ci.yml` and the action's
`scope.sh`. Prose keeps the intent and the pointer.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjW4TqxVvLNPAXcahCX
@sydevs-bot

Copy link
Copy Markdown
Contributor

All six threads of the adversarial review are answered, pushed as d7ea2b4.

Adopted:

  • ci.yml:80 — pnpm, node and install gated on full, formatter dropped. a347541
  • ci.yml:37 — the comment names the widening first. 1691a2b
  • ci.yml:160 — one LIGHT_PATHS at workflow level. c87517e
  • ci.yml:264 — each job writes a light-lane summary line. 470eab1
  • docs:14 — bullet cut to intent and pointer. d7ea2b4

Rebutted:

  • ci.yml:168 — ladle-watch-paths.test.ts reads WATCH and IGNORE out of this file, so the action cannot own them yet.

Lean gate: ✓ lint, tsc, 1763 tests. Body refreshed.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 24, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Pending in SYDevelopers Technical Roadmap Nov 24, 2026

@sydevs-dispatcher sydevs-dispatcher 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. 🤖 Written by the sydevs autonomous loop — see what this is

@Ardnived
Ardnived added this pull request to the merge queue Nov 24, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Awaiting in SYDevelopers Technical Roadmap Nov 24, 2026
Merged via the queue into main with commit bc325a6 Nov 24, 2026
101 of 110 checks passed
@Ardnived
Ardnived deleted the claude/ci-docs-light-lane branch November 24, 2026 19:15
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Awaiting to Done in SYDevelopers Technical Roadmap Nov 24, 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.

3 participants