Skip to content

fix(build): pnpm generate:types rewrites payload-types.ts after prettier 3.9.10 - #998

Merged
sydevs-bot merged 16 commits into
mainfrom
claude/fix-992-format-gate
Oct 21, 2026
Merged

sydevs-bot merged 16 commits into
mainfrom
claude/fix-992-format-gate

Conversation

@sydevs-bot

@sydevs-bot sydevs-bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • The committed tree now matches the formatter the repo installs, and a named CI step holds it.
  • pnpm generate:types no longer rewrites src/payload-types.ts on every run.

Change outline

Flow — the CI job, and where a misformat lands

 Lint, Test & Smoke                       .github/workflows/ci.yml
   pnpm install --frozen-lockfile
   pnpm lint                              # eslint only; never looked at formatting
+  pnpm format:check                      # its own named step
   pnpm typecheck
   pnpm typecheck:tests
   pnpm test
   smoke specs vs the Railway preview

Both halves verified on this branch: a deliberately misformatted file fails format:check by
name, and leaves pnpm lint exiting 0.

Files — the formatter's scope, and the four things it must not reach

 .prettierignore
 ├── src/migrations/, src/payload-types.ts, importMap.js   generator-owned (pre-existing)
+├── .claude/, .vscode/, .mcp.json                         protected paths
+├── pnpm-lock.yaml                                        pnpm's own output
+├── seeds/atlas/data/ + 3 named dumps                     extract-script output
+└── docs/rules/code-comments.md                           compared across four repos

A protected path cannot be written by an unattended run at all, so gating one makes the gate
unfixable by the loop rather than merely annoying (WeMeditateWeb#97). The other three re-churn on
their own generator's next run, which is what the pre-existing entries are already for.

Contract — the generated union a consumer copies

 export interface Event {                 src/payload-types.ts
   verificationStage:
-    | 'unverified'                       # eight lines: prettier 3.7.4 at printWidth 120
-    | 'denied'
-    …
+    'unverified' | 'denied' | … | 'finished';   # one line: 3.9.10 at the same width

The type is unchanged. Payload compiles these types with json-schema-to-typescript, which
formats its output through the repo's own installed prettier at its DEFAULT_OPTIONS
printWidth: 120. That union is 104 characters on one line, so it fits — and 3.9.10 keeps such a
union inline where 3.7.4 broke it. #991 bumped only prettier here; payload and
json-schema-to-typescript are untouched in that commit.

So the committed file was 3.7.4's rendering while the generator emits 3.9.10's. The file is
.prettierignored precisely because it is committed in its generator's format, which is what
this restores.

Preview

  • Admin — the app boots, signed in as PREVIEW_ADMIN_EMAIL

The preview is here to show it still boots at all: every src/** file was rewritten by the
formatter and src/payload-types.ts was regenerated, so a successful Railway build is the real
signal on this PR. Nothing in the diff is observable in the UI, so no page is deep-linked and
data is not seeded — there is nothing data-dependent to look at.

Contract impact

src/payload-types.ts and src/collections/Events/endpoints/responseTypes.ts are both
contract-sync sources. WeMeditateWeb (server/payload-types.ts) and SahajAtlasWeb
(src/types/payload/payload-types.ts, src/types/payload/response-types.ts) commit copies, and
these exact bytes are what they commit: both pnpm types:cms scripts curl these files raw
from main and run strip-payload-augmentation.mjs, with no prettier step anywhere in either.

No consumer issue is needed even so, because neither consumer's formatter reads the synced copy.
SahajAtlasWeb ignores src/types/payload/ in both .prettierignore and eslint.config.js.
WeMeditateWeb has no such entry, and needs none: its only formatter check is prettier/prettier
under ESLint, and Payload's generated header carries /* eslint-disable */, which turns every
rule off for the whole file. The loop's contract-sync PR carries the copies over after this
merges.

src/lib/atlas/atlas-url-contract.json, which SahajAtlasWordpress diffs raw, is untouched and
was already formatted.

Test results

  • Lean gate: ✓ pnpm lint, pnpm typecheck, pnpm typecheck:tests, pnpm test:unit
    (204 files, 2653 tests)
  • Targeted specs: none — no behaviour changed. CI runs the integration lane.
  • Build: N/A — not run locally; Railway builds the preview.

Three checks specific to this ticket, all green on the branch head:

  • git status --porcelain empty → pnpm lint → still empty.
  • pnpm generate:types → git diff --exit-code src/payload-types.ts exits 0, twice in a row.
  • pnpm exec prettier --check . exits 0.

Manual verification

  1. The .vscode/ entry guards a path no unattended run can fix. Confirm you agree it belongs in
    the ignore list rather than in the gate: pnpm exec prettier --file-info .vscode/settings.json.
  2. Skim the markdown in the reformat for anything prettier mangled. The mechanical checks are in
    the notes below, but prose is the one thing they cannot judge.

Notes for reviewer

The one part of the ticket this branch does not do. The ticket asks for pnpm format:check
in .claude/skills/pr-prep/check.sh too, beside its lint step. .claude/ is a Claude Code
protected path: an unattended run cannot write it — it waits on an approval prompt nobody
answers. That one line needs an attended edit, and #1006 now carries it, so Closes #992
leaves nothing unscheduled. The gap is recorded in docs/rules/testing-reqs.md rather than left
implicit, and the four acceptance criteria do not depend on it (criterion 3 names CI).

The ticket's stated symptom does not reproduce, and the real one is next door. It reports
pnpm lint rewriting src/payload-types.ts. On ea0b8ef it does not: the tree is clean
afterwards, and both eslint and prettier have ignored that file since #866. What does rewrite it
is pnpm generate:types, with exactly the Event.verificationStage reflow the ticket
describes. Measured, not inferred — and the fix is the one the ticket asked for either way.

How to review 229 machine-edited files. Commit 3b05cad is provably nothing but
prettier --write: re-running prettier over each of the 229 files' origin/main version
reproduces the committed version byte-for-byte, 229 of 229. Marker counts are unchanged
across the branch — 615 ⚠, 1585 #NNN breadcrumbs, 26 tool directives — and
comment-lint.mjs added no banned phrasing. The later commits carry the hand-written changes and
are small.

⚠ One hand-written change sits inside a merge commit, where a commit-by-commit read will not
show it.
89f6569 widens five capture patterns in tests/unit/perf-figures-pinned.spec.ts to
tolerate the whitespace prettier pads a markdown table's columns with; #994 landed that spec
written against single-space pipes, so without this every capture misses and the suite throws at
module scope. Red before that merge commit, green after. It is not lifted onto its own commit
because that means rewriting published history.

Merging this will conflict every open PR. A 229-file reformat touches what almost any branch
touches, and per AGENTS.md § "A conflicted PR runs no CI" (#632, #653) GitHub then schedules
zero runs for them, silently. Worth merging when the open-PR set is small, and telling each
author to merge origin/main in rather than wait for a run that will never come.

Detail

Dismissed finding: prettier drops a markdown container marker on a straddling code span.
Prettier will not break inside an inline code span, so a span that starts a wrapped line loses
its list indent or blockquote > and survives by CommonMark lazy continuation. 16 instances
across the branch (2 blockquote, 14 list indent), in seeds/atlas/AGENTS.md,
seeds/atlas/MIGRATION_PLAN.md, src/globals/AGENTS.md and tests/AGENTS.md.

Not fixed, for three reasons. It changes no rendering — lazy continuation is CommonMark and
GitHub honours it. It cannot be fixed for every case: MIGRATION_PLAN.md's schedule-shape span
is 132 characters against a printWidth of 100, so no rewrap keeps it on one line. And a
hand-written prose rewrap inside 3b05cad would destroy the byte-for-byte property above, which
is the only thing making a 229-file commit reviewable at all.

Security review: skipped, with the trigger matched. 19 files match
securityReview.triggerPattern — src/plugins/access/, src/plugins/storage/, the webhook
route, four collection hooks//endpoints/. Every one of them is in the 229 proven to be
exactly prettier's output, so there is no changed logic to review.

Review pass. /code-review high over the hand-written files; no routine has
pr-review-toolkit. Four findings, all accepted and fixed except the one dismissed above:
.vscode/ missing from the protected-path block (f24ce2a), AGENTS.md still claiming
--full reproduces Tier 3 (3efe07b), and seeds/**/data*.json over-matching 12 translation
seed files that have no writer (f24ce2a).

Measurement. 240 files failed prettier --check . on ea0b8ef; 10 of those are the
protected and generated paths now ignored, leaving the 229 reformatted. The ticket's figure of
217 was taken on 1030da7 with narrower globs. Re-measure rather than reusing any of the three.

statusConfig.json is not a landmine. scripts/generate-status-config.ts emits
JSON.stringify(json, null, 2) plus a newline, which is byte-identical to prettier's JSON
output, so it stays in scope and stays clean.

Closes #992

`package.json` had no formatter entry point, so nothing but a bare
`pnpm exec prettier` could reformat the tree, and nothing named the
scope. Add `format` and `format:check` over the whole repo.

Four groups must stay out of that scope, or the gate the later commits
add cannot be satisfied:

`.claude/` and `.mcp.json` are Claude Code protected paths. An
unattended run cannot write one — it waits on an approval prompt nobody
answers, having written nothing (WeMeditateWeb#97). A formatting gate
covering them is unfixable by the loop rather than merely annoying.

`pnpm-lock.yaml` is pnpm's output, and `seeds/**` data files are
`JSON.stringify(data, null, 2)` dumps from the extract scripts. Both
re-churn on their generator's next run, which is the reason the
existing entries in this file are here.

`docs/rules/code-comments.md` carries a block compared against the three
other product repos' copies, whitespace-normalised but not
emphasis-normalised. Prettier rewrites `*why*` to `_why_`, and
comment-rule-sync.mjs then reported all three others DRIFTED — measured
against this branch. Changing that file means changing four copies and
the canonical source together, which is not this ticket.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012MrpcWJKjvVHJkeXWtJctV
#991 raised prettier from 3.7.4 to 3.9.10 without reformatting, so 229
tracked files no longer matched the formatter the repo installs. Nothing
gated on it, so the drift was invisible.

Mechanical, formatter-only. No behaviour changed and no prose was
rewritten: the ⚠ markers (615) and the #NNN breadcrumbs (1585) are
unchanged in count, as are the 26 tool directives.

Markdown emphasis markers and table padding move in the docs, because
prettier normalises both.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012MrpcWJKjvVHJkeXWtJctV
`pnpm generate:types` rewrote this file on every run, leaving a modified
tracked file behind and a confusing `git status` for every contributor
and every unattended run.

Payload compiles the types with json-schema-to-typescript, which formats
its output through the repo's own installed prettier at the generator's
`printWidth: 120` (its DEFAULT_OPTIONS). `Event.verificationStage` is
104 characters on one line, so it fits that width — and 3.9.10 keeps
such a union inline where 3.7.4 broke it across eight lines. #991 bumped
only prettier here; payload and json-schema-to-typescript are unchanged
in that commit.

So the committed file was 3.7.4's rendering and the generator now emits
3.9.10's. The file is in .prettierignore because it is committed in its
generator's format, which is exactly what this restores. Re-running
`pnpm generate:types` on this commit leaves the tree clean.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012MrpcWJKjvVHJkeXWtJctV
`pnpm lint` is eslint only, so nothing checked the formatter. That is
how #991 raised prettier without a reformat and left 229 files drifted
with every check green.

The step is separate from lint on purpose: a formatting failure should
name itself. Verified both halves on this branch — a deliberately
misformatted file fails `pnpm format:check` by name and leaves
`pnpm lint` exiting 0.

Ordered after the reformat in this branch's history, so the gate is
never added ahead of a tree that satisfies it.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012MrpcWJKjvVHJkeXWtJctV
Two corrections from the review pass.

`.vscode/settings.json`, `launch.json` and `extensions.json` are tracked
and were in the gate's scope, while `.vscode/` is a Claude Code protected
path — the same unfixable-by-the-loop failure the block already cites for
`.claude/`. They are formatted today, so nothing is red; VS Code rewriting
one from its own UI is what would turn it red with no unattended fix
available. `.npmrc` and `.yarnrc` need no entry: prettier infers no parser
for them.

`seeds/**/data*.json` also matched the 12 translation seed files, which
have no writer anywhere in the repo and so are ordinary tracked data. The
four generator-written dumps are now listed one by one, which is also what
makes the comment beside them true.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012MrpcWJKjvVHJkeXWtJctV
`AGENTS.md`'s command list and CI description, plus the Tier 3 row in
`docs/rules/testing-reqs.md`, all described a CI that checked no
formatting.

Its `--full` claim is corrected too: that flag no longer reproduces Tier 3,
because the lean gate script lives under `.claude/`, a protected path an
unattended run cannot write. The Tier 2 row is left as it stands and a
paragraph says why, so the asymmetry is a stated gap rather than a
discrepancy a reader has to resolve.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012MrpcWJKjvVHJkeXWtJctV
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Oct 20, 2026
@sydevs-bot

sydevs-bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running

recent dispatches
  • 05:35Z resolve-conflicts · attempt 1 · session · done
  • 05:35Z resolve-conflicts · attempt 1 · session
  • 02:18Z resolve-conflicts · attempt 1 · session · done
  • 02:18Z resolve-conflicts · attempt 1 · session
  • 01:28Z resolve-conflicts · attempt 1 · session · done

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

main gained #978 (translating a Path Step no longer overwrites its English
text) and #985 (the admin Transcript tab). Three files conflicted. Each was
touched on this branch only by 3b05cad, the pure `prettier --write` commit,
so each took main's content and was re-formatted rather than merged hunk by
hunk — there was no hand-written side to weigh:

- docs/architecture.md — main drops the `meditationTranscript` endpoint row
- src/jobs/CleanupOrphanedMedia/schemaUtils.ts — main's `localizedAt` tracking
- tests/COVERAGE.md — main's new rows

`prettier --write .` then ran over the whole merge result. That is part of the
resolution, not a separate change: four of main's files auto-merged
unformatted (CleanupOrphanedMedia.ts and three unit specs), and the
`format:check` step this branch adds would have failed on main's own files.

For all 36 files main changed, the merged content is byte-for-byte
`prettier(main's version)`: 29 formatted files reproduced exactly, 6
prettier-ignored files identical to main, and src/payload-types.ts — the one
hybrid of two generator renderings — reproduced exactly by
`pnpm generate:types`, twice in a row.

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

Copy link
Copy Markdown
Contributor Author

Merged origin/main (#978, #985). Three files conflicted, and none needed a judgement call: each was touched on this branch only by 3b05cad, the pure prettier --write commit, so each took main's content and was re-formatted.

  • docs/architecture.md — main drops the meditationTranscript endpoint row.
  • src/jobs/CleanupOrphanedMedia/schemaUtils.ts — main's localizedAt tracking.
  • tests/COVERAGE.md — main's new rows.

prettier --write . then ran over the merge result, which the diff shows as four extra files: CleanupOrphanedMedia.ts and three unit specs auto-merged from main unformatted, and this branch's format:check step would have failed on them.

Two checks held the resolution. For all 36 files main changed, the merged content is byte-for-byte prettier(main's version) — 29 formatted, 6 prettier-ignored and identical. And src/payload-types.ts, the one textual hybrid of two generator renderings, is reproduced exactly by pnpm generate:types.

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


Generated by Claude Code

@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Oct 20, 2026
The 18:36Z merge commit took a stale `origin/main` ref, so it never saw
#995 (three stale transcript claims corrected) or #1000 (`status` named as
the virtual field it is). Two files conflicted, and both are files this
branch touches only in 3b05cad, the pure `prettier --write` commit, so each
took main's content and was re-formatted rather than merged hunk by hunk:

- tests/unit/job-stage-view.spec.ts — #1000 drops `defaultValue` from
  `statusField()`'s return type and its cast
- tests/COVERAGE.md — #1000's wording for the transcripts row

For all five files main changed, the merged content is byte-for-byte
`prettier(main's version)`, so nothing main wrote was dropped and nothing
but formatting was imposed on it. `prettier --check .` passes over the whole
tree, which is what the `format:check` step this branch adds will run in CI.

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

Copy link
Copy Markdown
Contributor Author

Merged origin/main again (#995, #1000). The 18:36Z session merged a stale origin/main ref, so its merge commit never saw those two.

Two files conflicted, neither needing a judgement call: this branch touches both only in 3b05cad, the pure prettier --write commit. Each took main's content, re-formatted.

One check held it. For all five files main changed, the merged content is byte-for-byte prettier(main's version), so nothing of main's was dropped and nothing but formatting was imposed. prettier --check . passes over the tree.

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


Generated by Claude Code

@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Oct 20, 2026
#994 re-measured the unit lane and rewrote every tier figure. Three files
conflicted, and all three are files this branch touches only in 3b05cad, the
pure `prettier --write` commit — so each took main's content and was
re-formatted, rather than merged hunk by hunk:

- README.md — #994's `test:unit` row, naming the 78 s figure
- tests/AGENTS.md — #994's unit-lane speed cell
- docs/rules/testing-reqs.md — #994's tier targets, its Tier 1 false-failure
  block and its 8 s typecheck figures, plus this branch's own two additions
  re-applied on top: `pnpm format:check` in the Tier 3 row, and the paragraph
  on why Tier 2 omits it

README.md and tests/AGENTS.md are byte-for-byte `prettier(main's version)`.
AGENTS.md auto-merged and differs from it only by this branch's three
hand-written lines.

#994 also adds tests/unit/perf-figures-pinned.spec.ts, which captures each
figure out of tests/PERF.md with patterns written against single-space table
pipes. Prettier pads a table's columns to its widest cell, so every capture
missed and the suite threw at module scope — 11 cases, red before this commit
and green after. The patterns now allow whitespace around a cell's pipes, which
pins the same figures under either spelling. PERF.md's note on keeping the cell
shapes says so too.

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

Copy link
Copy Markdown
Contributor Author

Merged origin/main, which brought #994's re-measured tier figures.

Three files conflicted — README.md, tests/AGENTS.md, docs/rules/testing-reqs.md — and this branch touches all three only in 3b05cad, the pure prettier --write commit. Each took main's content and was re-formatted. The first two are byte-for-byte prettier(main's version); in testing-reqs.md this branch's two additions were re-applied on top — pnpm format:check in the Tier 3 row, and why Tier 2 omits it.

One hand-written change. #994's new tests/unit/perf-figures-pinned.spec.ts captures each figure out of tests/PERF.md with patterns written against single-space table pipes. Prettier pads those columns, so every capture missed and the suite threw at module scope. The patterns now allow whitespace around a cell's pipes — 11 cases, red before this merge commit and green after.

Lean gate green: 204 files / 2653 tests, prettier --check . clean. The body's Test results figures (198 / 2575) predate #994.

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


Generated by Claude Code

@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Oct 20, 2026

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

🧐 Adversarial review

The PR is the right size for #992, with nothing smuggled in. The reformat is clean: no .prettierignore path appears in the diff, src/payload-types.ts carries only the verificationStage reflow, and the ⚠ count does not fall.

Two body claims are wrong, and you read it first. ## Contract impact says each consumer regenerates its copy under its own prettier; both types:cms scripts raw-curl this file, so the bytes propagate. SahajAtlasWeb ignores that path in prettier and eslint, so the conclusion survives — the mechanism does not. And the last merge commit hand-edits a spec no named commit shows.

The decision for you: #992's part 2 also asked for the gate in .claude/skills/pr-prep/check.sh. A protected path blocks it, so the PR records the gap in docs and closes the ticket anyway. Docs schedule no work.

Findings

  • should-fix — Closes #992 with part 2 half-landed and no follow-up. docs/rules/testing-reqs.md:42
  • should-fix — ## Contract impact names the wrong sync mechanism. src/payload-types.ts:1892
  • should-fix — merge 89f6569 hand-edits a spec. tests/unit/perf-figures-pinned.spec.ts:56
  • consider — the code-comments.md exclusion fixes only this side. .prettierignore:46

What was checked

Read whole: .prettierignore, ci.yml, AGENTS.md, docs/rules/testing-reqs.md, eslint.config.mjs, the five hand-written commits, three merges. Consumer side: both types:cms scripts, SahajAtlasWeb's .prettierignore and eslint.config.js, WeMeditateWeb's eslint-plugin-prettier. atlas-url-contract.json untouched; ⚠ 642 → 643.

Not re-run: prettier --check . and generate:types; CI's green format:check evidences the first. The ## Preview link 404s with no Railway status on this head, so the boot signal the body leans on is absent.

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


Generated by Claude Code

Comment thread docs/rules/testing-reqs.md Resolved
Comment thread src/payload-types.ts Resolved
Comment thread tests/unit/perf-figures-pinned.spec.ts Resolved
Comment thread .prettierignore Resolved
@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Oct 20, 2026
The paragraph recorded that Tier 2 omits `pnpm format:check` and left
nothing to close the gap, while #998 closes #992 — whose part 2 asked
for exactly that step. #1006 now carries the one attended edit, so the
ticket closes with its remaining work scheduled rather than dropped.

It also names the cost of the gap, since that is what decides the
priority: a misformat now reaches CI first, where it spends a red check
and one of the three `fix-ci` iterations a PR gets.

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

Copy link
Copy Markdown
Contributor Author

All four threads answered and resolved. One commit, one ticket, three body corrections.

Adopted

Answered

Base already current at bb64d7b. Lean gate green on d3ec784: 204 files, 2653 tests.

🤖 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 Oct 20, 2026
@sydevs-bot
sydevs-bot added this pull request to the merge queue Oct 21, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 21, 2026
@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed awaiting labels Oct 21, 2026
Three docs conflicted on the same axis: main re-measured the unit lane
after #1005 added a spec, while this branch had reformatted the tables
prettier now owns. Took main's figures — 218 files / 2795 tests, and the
two session rows it added to tests/PERF.md — and re-ran the formatter
over them, so neither side loses. AGENTS.md keeps this branch's
`pnpm format:check` line beside main's repinned count.

main's src/collections/Forms/fields.ts (#1002) arrived unformatted and
would have failed the gate this branch adds, so prettier ran over it too.

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

Copy link
Copy Markdown
Contributor Author

Resolved three doc conflicts, all one shape. main repinned the unit lane after #1005 added a spec, while this branch had reformatted those tables. Took main's figures — 218 files / 2795 tests, and the two session rows it adds to tests/PERF.md — then re-ran prettier over them, so neither side loses. AGENTS.md keeps main's count beside this branch's pnpm format:check line.

One change sits outside the conflict. src/collections/Forms/fields.ts arrived from #1002 unformatted, and would have failed the format:check step this PR adds. Formatted only — a single array literal reflowed onto one line.

Green on the merge: lint, both typechecks, 218 files / 2795 tests, and prettier --check . clean. pnpm generate:types leaves src/payload-types.ts unchanged against main's new schema.

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


Generated by Claude Code

@sydevs-bot sydevs-bot added awaiting and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Oct 21, 2026
@sydevs-bot
sydevs-bot added this pull request to the merge queue Oct 21, 2026
Merged via the queue into main with commit 9eedacf Oct 21, 2026
14 checks passed
@sydevs-bot
sydevs-bot deleted the claude/fix-992-format-gate branch October 21, 2026 06:17
@sydevs-bot sydevs-bot moved this from Approved to Done in SYDevelopers Technical Roadmap Oct 21, 2026
sydevs-bot added a commit to sydevs/SahajAtlasWeb that referenced this pull request Oct 21, 2026
sydevs-bot pushed a commit that referenced this pull request Oct 21, 2026
#998 reformatted the tree with prettier 3.9.10 and added `pnpm format:check`
as a CI gate. Every conflict is that reformat landing on a table this branch
had rewritten: `AGENTS.md`, `tests/AGENTS.md`, `tests/COVERAGE.md` and
`tests/PERF.md`.

Took this branch's content in all four, then ran prettier over them, so the
tables carry the registry vocabulary and the merged tree's figures in #998's
formatting. `perf-figures-pinned.spec.ts` counts the unit lane off disk and
agrees with the 219 / 2804 this branch already pinned, so `main`'s 218 / 2795
was the stale side.

`src/AGENTS.md` auto-merged unformatted and is formatted here too; the gate
now passes `format:check` across the whole tree.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WQWn1vPBG5N38U46oE1r2B
sydevs-bot pushed a commit that referenced this pull request Oct 21, 2026
…-locale-fallback

Both conflicts are this branch's code against #998's prettier 3.9.10 reformat,
so each hunk keeps this branch's behaviour and prettier reapplies main's shape.

- `lessons.ts`: `unitGroupSpecs` kept `labels` in the `evaluate` destructure;
  main had only collapsed the `.map()` callback onto one line.
- `shared.ts`: main reformatted a type annotation inside `getWmAppConfig`'s
  hand-rolled request cache, which this branch replaced with `memoizeOnRequest`.

#1002 localized `app-cards` destination `meditation`, which no check in the
`appCards` section reads, so the per-locale table in the PR body still holds.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AvMHhCzKemzTFd4e7TjxJS
sydevs-bot pushed a commit that referenced this pull request Oct 21, 2026
main's prettier 3.9.10 sweep (#998) reformatted every markdown table, which
conflicted with this branch's refreshed unit-lane counts in AGENTS.md,
tests/AGENTS.md and tests/PERF.md. Took main's formatting and re-applied this
branch's counts on top: 219 files / 2807 tests, which the merged tree measures
and perf-figures-pinned.spec.ts now asserts against disk. Kept main's new
`pnpm format:check` line in AGENTS.md, and the sixth PERF session row.

docs/rules/access.md needed no hand merge, only prettier 3.9.10 over this
branch's additions.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HjtXFT2ZY2diP2c5vWob69
sydevs-bot pushed a commit that referenced this pull request Oct 21, 2026
#998 reformatted 229 tracked files with the installed prettier 3.9.10 and
added `pnpm format:check` as its own CI step. Every conflict here is that
reformat meeting this branch's content, so each hunk keeps this branch's
text and the formatter then supplies #998's layout.

Resolutions, in the order git reported them:

- `docs/rules/access.md` — the locale table keeps this branch's rows, so
  the `SubmissionReview/urls.ts` row stays deleted. That file is gone.
- `docs/rules/admin-ui.md` — the `WorkflowButtons` declaration keeps the
  `onlyWhen` line; prettier collapses the aligned trailing comments.
- `src/collections/UserSubmissions/lifecycle/review.ts` — keeps `decide`'s
  one-argument signature and its void return. `main` only rewrapped the
  old two-argument call.
- `src/components/admin/SubmissionReview/SubmissionActions.tsx` — deleted.
  `main`'s change to it was a single rewrapped `useFormFields` call.
- `tests/AGENTS.md`, `tests/PERF.md`, `tests/COVERAGE.md` — keep this
  branch's figures and rows. The lane is 218 files / 2801 tests, which the
  gate confirms; `main`'s 2795 predates this branch's six cases.
- `tests/unit/admin-locale-urls.spec.ts` — the `submissionActionUrl`
  describe block stays deleted, with the unit it covered.

Eight files then needed the formatter, six of them this branch's own, and
`pnpm format:check` passes over the tree.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01DsQxCVNVH7SfPf8hssT62p
sydevs-bot pushed a commit that referenced this pull request Oct 21, 2026
main reformatted the tree with prettier 3.9.10 and began gating
`pnpm format:check` (#998), so every markdown table this branch had edited
conflicted on cell padding alone. Each hunk keeps this branch's content and
takes main's formatting:

- `AGENTS.md` — both sides: the 220-file unit count here, the `format:check`
  line from main.
- `docs/rules/access.md`, `tests/COVERAGE.md` — the two transcript-endpoint
  rows this branch adds, reformatted.
- `tests/AGENTS.md`, `tests/PERF.md` — 220 / 2832, the count this branch
  re-pinned. 220 unit spec files are on disk and the lane reports 2832 cases,
  so `perf-figures-pinned.spec.ts` agrees with the tree.

`MeditationTranscript.tsx` and `meditation-transcript-tab.spec.ts` merged
cleanly but predate the reformat, so the new gate failed on them. Reflowed by
prettier, no behaviour touched.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016vTsqoZ79oXmbQUMoCHTD4
sydevs-bot added a commit that referenced this pull request Oct 21, 2026
`pnpm format:check` was red on `aae5b4e`, naming eight files. All eight
are this branch's own, so none of this is a failure inherited from
`main`.

The merge commit that brought #998's reformat in resolved each conflict
by keeping this branch's text, which left the formatter still owing a
pass over the result. Its message says that pass was made and the check
passed; the formatter's output was never actually committed.

Formatter-only. Markdown reflow and table padding in the five docs, a
blank line and two wrapped type expressions in the three source files.
One markdown emphasis marker moves (`*through*` to `_through_`) in
docs/rules/access.md, which is prettier's normalisation and not the
cross-repo `code-comments.md` block #998 kept out of scope.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011tSTTbkBsHEXuYzFtPkDcW
sydevs-bot pushed a commit that referenced this pull request Oct 21, 2026
…ook-selection

Asked for on #1009. Six files conflicted, all of them documentation this
branch rewrites and prettier 3.9.10 reformatted on `main` (#998). Each hunk
keeps both sides:

- `AGENTS.md`, `tests/AGENTS.md`, `scripts/AGENTS.md`: `main`'s reformatted
  tables and its new `pnpm format:check` line, with this branch's figures and
  its four new `scripts/` rows carried into them.
- `docs/rules/testing-reqs.md`: this branch's Tier 1 row, which now names the
  narrowed hook command rather than the whole lane, plus `main`'s addition of
  `format:check` to the Tier 3 row.
- `tests/PERF.md`: both sides added a session row, so the table keeps all six.
  The laptop row is the sixth, not the fourth, and the prose above it counts
  five container sessions.
- `perf-figures-pinned.spec.ts`: this branch's row label, read with `main`'s
  whitespace-tolerant pattern — prettier pads those cells now, and the
  single-space form would stop matching.

Counts are the merged tree's, measured: 222 files, 2843 tests.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FTwAMymw7ohTvrEkV3ocww
sydevs-bot added a commit that referenced this pull request Oct 21, 2026
Clean merge: #997, #998 and #1005 touch none of this branch's seven files.

- #998 reformatted 250 files under prettier 3.9.10. `pnpm format:check`
  passes on this branch's own files unchanged, so none needed reflowing.
- #1005 added `tests/unit/admin-condition-fields.spec.ts`, which fails an
  `admin.condition` reading a field the collection never declares. The five
  readers of `destination` in `destinationFields()` all sit beside it, so
  localizing it declares nothing away — that spec passes.
- Unit lane on the merge: 218 files, 2795 tests, which is what
  `perf-figures-pinned` reads.

No migration landed on `main` since the last merge, so the snapshot parent is
unchanged and `20261021_024228` still regenerates the current one.

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

fix(build): pnpm lint rewrites payload-types.ts after prettier 3.9.10

3 participants