Repository navigation
docs(deps): write the live-preview pin rule into the root guide - #253
Merged
Merged
Conversation
The exact pin on @payloadcms/live-preview-react tracks SahajCloud's own payload version, because the package merges a postMessage SahajCloud mints. That rule was written down only in sydevs/SahajAtlasWeb, so #222 read the pin here as unexplained and replaced it with a caret — the one shape the rule forbids. The sibling PR sydevs/SahajAtlasWeb#361 made the same change and the review there caught it, because that repo carries the rule. It goes in the root guide rather than docs/rules/, which loads only through a .claude/rules/ symlink. .claude/ is a Claude Code protected path, so an unattended run cannot create one and stalls waiting for a prompt it has nobody to answer. The dependency half of #223 is already on main: #248 restored all four exact pins at 3.93.0, the version SahajCloud main's payload now carries, and pnpm-lock.yaml holds one @payloadcms/live-preview copy. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjW8GJ3UwHHhxGvqeyR
sydevs-bot
marked this pull request as ready for review
November 17, 2026 23:39
sydevs-bot
enabled auto-merge
November 17, 2026 23:39
Contributor
Author
|
Adversarial review skipped: 1 file(s), 9 changed line(s), under 🤖 sydevs dispatcher |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
wemeditate-web | b34c685 | Commit Preview URL Branch Preview URL |
Nov 17 2026, 11:35 PM |
Ardnived
approved these changes
Nov 18, 2026
Contributor
Author
|
🤖 no session running Written by the sydevs dispatcher. Sessions never edit this comment. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mainby chore(deps): bump Payload packages to 3.93.0 #248. Verified against source, so this diff is docs only.Change outline
The doc is the contract here, so the one view that matters is what the rule now obliges. Paraphrased one rule per line, under
## Repo-wide conventions.Contract — the pin rule, new in
AGENTS.mdPreview
The diff changes no rendered surface — one Markdown rule, no route, component or build input — so there is nothing a preview would show.
Test results
tsc --noEmit,vitest run— 956 tests in 96 fileslib/live-preview/document.test.tsx,server/live-preview.test.tspnpm buildSecurity review skipped: the diff matches no path in
securityReview.triggerPattern.Manual verification
docs/rules/data-layer.md:16-20. The ticket asked for a mirror, not a paraphrase, and the opening sentence is near-verbatim — confirm that is the register you want in the root guide.Notes for reviewer
Scope shifted, so the title names the diff rather than the ticket. #248 restored all four exact pins at 3.93.0 on 2026-11-16, which is the dependency half of #223. I verified that rather than trusting it, so only the docs criterion was left to build. The ticket's version table is stale as a result: it was read on 2026-11-15, when the producer sat at 3.90.2.
SahajAtlasWeb has drifted the other way, and now breaks the rule it owns. Its
maincarries@payloadcms/live-previewandlive-preview-reactat3.92.1while the producer is at3.93.0, and@payloadcms/sdkat^3.92.1— a caret on a package its own rule says moves in the same bump. The ticket predicted the follow-up; this is the measurement. Journalled rather than filed, since the credential is missing.The review pass returned no findings and no evidence, which
finalize-prsays to treat as not yet reviewed. I verified each factual claim in the rule myself instead — sources in Detail.Detail
Every claim in the rule, checked against a primary source
payloadversionpackage.json:31=3.93.0;SahajCloudorigin/main:package.json:68payload=3.93.0postMessageSahajCloud mintslib/live-preview/document.tsxdocblock —useLivePreviewowns the listener, thepayload-live-previewtag, the origin check and the handshakegit log -p -- package.json:12e6c373.91.0→^3.92.1;3b1f4a6^3.92.1→3.93.0live-preview-react@<v>needs exactlylive-preview@<v>node_modules/@payloadcms/live-preview-react/package.json→"@payloadcms/live-preview": "3.93.0", an exact rangesydevs/SahajAtlasWebdocs/rules/data-layer.md:16-20, read from a cloneAcceptance criteria, as verified on this branch
node -echeck exits 0 —live-preview-react = 3.93.0.live-preview,live-preview-react,richtext-lexical,sdkall3.93.0.grep -c "'@payloadcms/live-preview@" pnpm-lock.yaml= 2, both3.93.0, matchinglive-preview-react. A cleanpnpm installleft the lockfile untouched, which is the stronger check..claude/file added or edited. The branch diff isAGENTS.mdalone.Why the root guide and not
docs/rules/A rule under
docs/rules/loads only through a.claude/rules/symlink, and.claude/is a Claude Code protected path. An unattended run cannot create one — it stalls on a prompt nobody is there to answer. The root guide is freely writable and loads in every session, including the dependency run that would otherwise widen the pin again. This is the ticket's own reasoning, and it holds.Docs sweep
Nothing else in the repo describes the pin. The other
pinnedhits indocs/cloudflare-previews-ci.mdanddocs/rules/design-system.mdare unrelated senses of the word.lib/live-preview/document.tsxalready explains the transport coupling in its docblock; a pointer there would duplicate a rule that already loads in every session, and the failure mode was apackage.jsonedit, not adocument.tsxone.Closes #223
Generated by Claude Code