Repository navigation
Description
Summary
The loop links SahajCloud previews but cannot tell whether they show the change. It has no credentials to open them, and preview-auth.mjs reports seedsPreviews: false, so a "Data: not seeded" line passes finalize-pr and review-pr. That happened on 13 of the last 40 PRs. Once sydevs/SahajCloud#1168 ships, every preview loads a committed fixture with pinned ids. This ticket makes the loop work entirely offline against that fixture: cite or add fixture records, build links from their ids, and drop the sign-in, seed, wait and disclosure machinery.
Goal context
Second half of sydevs/SahajCloud#1078: this child takes the loop off the preview and makes "the preview shows the change" a property of the diff that review-pr can check.
Approach
A. A generic fixture block in a repo's .claude/workflow.json
"fixture": {
"path": "src/fixture/", // one file per collection, entries with an explicit `id`
"link": "https://pr-{pr}.cloud-preview.sydevelopers.com/admin/collections/{collection}/{id}",
"surfacePaths": ["src/collections/", "src/components/admin/", "src/app/(payload)/", "src/plugins/", "src/fixture/"]
}- Config-keyed, never repo-named. A repo without the block keeps today's plain Preview links and gets no data rule.
- Document it in
finalize-pr/SKILL.md:37(the configuration table) andREADME.md:206.
B. finalize-pr
- Rewrite Every link opens on data (
workflow/skills/finalize-pr/SKILL.md:276-313) for a repo withfixture:- List the surfaces the diff changes.
- For each one, cite the fixture entries (
<collection>+id) that show it on this branch, or add entries underfixture.pathin this PR. - Build each link from
fixture.link. Never open the preview. - Say on each link's line what that record shows.
- A diff touching no
surfacePathsmay writeNo preview surfaceinstead of links. A diff touching any of them may not. - Delete the seed and sign-in steps, the
Data: not seeded yetand Cannot seed branches, and theseedsPreviewsbullet (:281-313). - Delete step 7b (
:335-350) and every reference to it (:384,:411, the hard rule at:405-406). Removepreview.deployWaitMinutes/pollSecondsfromloop-config.json:313-315unless another path still reads them. Check the Cloudflare-discovered previews (:243-262) first; they write "preview pending" without waiting. pr-template.md:33: link wording follows the above.
C. review-pr — workflow/skills/review-pr/SKILL.md:88-105
- With a
fixtureblock: check that each Preview link's id exists underfixture.pathon the branch, and that the entry shows what the link's line claims. A diff touchingsurfacePathswith no cited id, or withNo preview surface, is ashould-fix. - Stop opening preview links: no Access headers and no sign-in. Keep the off-host finding: a link not built from
fixture.linkorpreviewUrl.patternis ashould-fix.
D. implement-ticket and format-ticket
format-ticket/SKILL.md(implementation template's## Verification checklist, and the guidance at:382): where the repo declaresfixture, the checklist names the fixture records or states the change needs (e.g. "a Service with the Atlas role and two install milestones").implement-ticket/SKILL.md:110-117: the fixture pre-mortem covers those entries before code is written. Step 10's review aids point at fixture ids, not seeding.write-ticketwrites that checklist line when it creates a ticket in such a repo.
E. Delete the credential path
workflow/lib/preview-auth.mjs+.test.mjs: removeaccessPlan,authPlan,seedsPreviewsandseed. Keep the credential-freepreviewHost/onHost/--on-hostonly if C still uses them, renaming the file if its name then misleads.workflow/lib/budget.test.mjs:5imports itsVERDICTS.loop-config.json:289-293previewAccessblock.docs/routine-setup.md:451-500: thePREVIEW_ACCESS_*variables, the preview Access token section, and thepreviewUrl.authparagraph. Add one line: theclaude-loopAccess token is retired and is switched off by a person.fix-cikeeps its Railway log reads (workflow/lib/railway.mjs), which need no preview credential.
F. docs/why.md
Rewrite, replacing rather than appending:
## A preview link must open on data(:352)## A red seed check outranks a line in the body(:375) — the red check is now the app's own load, gated by/api/health.## A preview link is whatever its poster wrote(:390) — no token is attached any more, but the off-host finding stays.- the 7b exception (
:933-937).
Add one section on why the loop works offline against a committed fixture: no key, no wait, and data reviewed in the diff. Link sydevs/SahajCloud#1078.
G. Version
Bump workflow/.claude-plugin/plugin.json (now 5.6.0). Merging is the deploy.
Interfaces
Consumes from sydevs/SahajCloud#1168: the fixture layout (src/fixture/<collection-slug>.ts, explicit id ≥ 1,000,000), the admin link shape, and the surface paths. Use those exact values as the documented example. Provides the fixture block's meaning. A person adds the block to SahajCloud's .claude/workflow.json after this merges, and points previewUrl.pattern at the fixed address.
Acceptance criteria
-
finalize-pron a repo withfixturewrites Preview links built from fixture ids, cites or adds entries for every surface in the diff, and never contacts the preview. -
finalize-prwritesNo preview surfaceonly when the diff touches nosurfacePaths. - No skill, doc or config mentions
Data: not seeded,previewUrl.seed,previewUrl.auth,seedsPreviews,PREVIEW_ACCESS_*orpreviewAccess, except one routine-setup line on retiring the token. -
review-prflags, asshould-fix, a surface diff with no cited fixture id, a cited id absent from the branch, and an off-host link. It sends no request to a preview. - Step 7b and its wait are gone, or reduced to a non-data purpose another path proves it needs.
- Tickets in a
fixturerepo carry a Verification checklist line naming the fixture data the change needs. - A repo without
fixturebehaves as today: plain links and no data rule. -
why.mdexplains the offline design, and no section still describes the disclosure line or the loop's preview key as current. -
plugin.jsonis bumped andnode --testpasses.
Verification checklist
-
node --test workflow/lib/ dispatcher/test/passes. -
git grep -nE "not seeded|previewUrl\.(seed|auth)|seedsPreviews|PREVIEW_ACCESS|previewAccess"returns only the routine-setup retirement line. - Read
finalize-pr/SKILL.mdEvery link opens on data cold. Each step names a file-level action, not a network call. - Dry-run against SahajCloud#1155's diff by hand: the rule would require fixture ids for Imports, Clients (Install tab), Events (Registrations and Verification tabs) and User Submissions, and builds
https://pr-1155.cloud-preview.sydevelopers.com/admin/collections/events/<id>links. -
jq .version workflow/.claude-plugin/plugin.jsonis higher than5.6.0.
Notes
- Decisions are binding and live on Reviewers open every content-system preview with test data, as any role, behind a sydevs login SahajCloud#1078 (2026-11-15 entries).
.claude/workflow.jsonin SahajCloud is a protected path, so adding thefixtureblock is a person's step, not a criterion here. The PR body gives the exact block to paste.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Hold Until
Projects
- StatusShow more project fieldsDone
Activity
sydevs-bot commentedon Nov 16, 2026
🤖 no session running
Written by the sydevs dispatcher. Sessions never edit this comment.
Ardnived commentedon Nov 16, 2026
@sydevs-bot hold until 2026-11-30
Building this in an attended local session instead. The set build timed out at 22:39Z with nothing pushed.
sydevs-bot commentedon Nov 16, 2026
Held until 2026-11-30. It comes back to you then. The approval is withdrawn: say
@sydevs-bot implementwhen it should start.🤖 sydevs dispatcher
feat(preview): load a typed fixture at boot that covers every surface (…