Repository navigation
docs(guides): keep intent and gotchas, point at code for the rest - #323
Conversation
Applies claude-workflow's docs rule (docs/documentation.md) to the root and server guides: constant values, call-site lists and symbol inventories go; every warning, breadcrumb kept with its statement, and inbound reference stays. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
🤖 no session running recent dispatchesWritten by the sydevs dispatcher. Sessions never edit this comment. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
wemeditate-web | 24b9800 | Commit Preview URL Branch Preview URL |
Nov 20 2026, 10:33 PM |
|
The session for review-pr did not finish after 3 attempts. I have stopped retrying. A mention ( 🤖 sydevs dispatcher |
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
The shape is right: docs-only, two files, net −20, applying a rule that lives in one place. The "never delete" list holds — every ⚠ survives, #124/#222/#248 survive, commands untouched — and both condensations the body calls least sure check out. server/CACHING.md:12 already owns "The 600s TTL is the guarantee", and each isSafe* gate's JSDoc (lib/urls.ts:71-139) does name which destination it takes, so the dropped gate table has a real home. server/AGENTS.md:50 still holds the select/populate/locale rule the root guide's bullet used to restate.
Three condensations lost a fact, not a mechanism: two leave the pointer the rule asks for wrong or missing, and the third leaves a "because" with nothing behind it. Each is a one-line fix where it sits.
The pass generalises: what is left untouched in both guides is contracts and gotchas — the 400 on a missing select, the atlas 403 role gate, port 9222 — not inventories.
Findings
- should-fix —
server/AGENTS.md:86: nameswarnOnceas the per-isolate bound, wheregetWebConfiguses its ownreportedConfigGaps. - should-fix —
server/AGENTS.md:27: drops the base context set while line 36 still refers to "the base keys". - consider —
server/AGENTS.md:138: the50[0-9]fallback was the reason the 52x gotcha exists.
What was checked
Read whole on the branch: both guides, lib/urls.ts, server/error-utils.ts, server/CACHING.md. Grepped reportedConfigGaps (sahajcloud-client.ts:667,732-736), warnOnce callers and error-utils.test.ts:348-389, base context (lib/submissions.ts:8,112), SERVER_PHRASE_PATTERN (error-utils.ts:92). .claude/workflow.json on main has no fixture and no previewUrl, so "No preview surface" needed no data check and no link was opened. No contract surface in the diff.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
# Conflicts: # AGENTS.md
Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjUuamucQssXhrjgwev
Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjUuamucQssXhrjgwev
Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjUuamucQssXhrjgwev
|
Merged
Merge Lean gate not run — after the merge the diff against 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
sydevs-bot
left a comment
There was a problem hiding this comment.
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
AGENTS.md conflicted on the URL-spelling rule. main (#323) condensed the gate prose to point at each gate's own header; this branch had added the `Location` header as a third destination. Took main's condensed wording and kept the new destination as one line, because `isSitePath` is not an `isSafe*` gate and its header says nothing about a redirect target. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjXN8FfQA4e1MdjMn3K
Two prose conflicts with the guide rewrite in #323, both resolved to main's generalized wording plus this branch's new rules: - AGENTS.md: main stopped naming the three content templates. Keeps that, and keeps this branch's code-route exception for `/meditations`, which advertises `availableLocales` whole because nothing publishes it per locale. - server/AGENTS.md: main dropped the enumerated read counts and tightened the status-classification sentence. Keeps both, and keeps this branch's rule that a warning on one of these reads reports through the Worker SDK. The duplicate status sentence inside that block goes, since main's now states it. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYYzt9mPo4hrADUkDz
This branch replaced `getWebConfig`'s inline memo with `createWarnOnce`, so two references now name a symbol that no longer exists. The merge of #323 kept main's wording for both, which is where they surfaced. - The hot-path bullet named `warnOnce` in error-utils.ts as the bound for a new warning. A server read takes `createWarnOnce` instead, because error-utils is browser-reachable and reports through `@sentry/react`. - `api-routes.ts` cited `reportedConfigGaps` in sahajcloud-client.ts, which this branch removed. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYYzt9mPo4hrADUkDz
Both conflicts are prose in AGENTS.md and server/AGENTS.md, against #323, which trimmed both guides to intent and gotchas and pointed at code for the rest. AGENTS.md takes main. This branch's only edit there added `LiveSession` to the call-site register and the `isSafeHttpUrl` list, and #323 deleted both lists in favour of "the destination picks the gate; each one's header says which". Re-adding either would undo #323; the gate at the join action is unchanged. server/AGENTS.md keeps this branch's facts in main's register. #323's "`getWebConfig` holds its own memo" is false here: this branch moves it onto `reportOnce`. The two memos and the rule for picking between them stay; the per-caller enumeration goes, which is what #323 asked for. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVyk5XQSGi98NR33qt
Summary
server/guides lose copied values, call-site lists and symbol inventories; every gotcha stays.Change outline
The rule (
claude-workflow/docs/documentation.md)AGENTS.md(−8 net)server/CACHING.mdowns the figuresisSafe*takes which destination, what each admitslib/urls.tsSplash,AtlasContent,ErrorFallback) andisSafeHttpUrl's casessitePathFromUrlinternals, "atlasHrefis its only caller"#124kept with the statement that stayspaths:frontmatter, now named as the scopeserver/server/AGENTS.md's rules → now a pointerserver/AGENTS.md(−9 net)submissionDatabase keys listrelationId()NavPage,EmbeddedForm)sahajcloud-types.ts"reportedConfigGaps, per-source memohttpBodies: [],PII_KEY_SNIPPETSreachbeforeSendTransactiongotcha and the credential-header checksahajCloudFetchduty listfetch: "15 s" / "30 s"sahajcloud-fetch.ts(its test pins them)sahajCloudFetch"50[0-9]message fallbackmaxAttempts: 1, "3-attempt"Merged
main(658df03)main's new SEO head architecture (#282) rewrote the two bullets this branch had condensed, soAGENTS.mdconflicted. Resolved by takingmain's text and re-applying the same two condensations to it — the three template names become "the content templates", and theisSafe*condition list becomes a pointer at each gate's own header.main's two new bullets, site-wide document routes and embed-player geometry, are kept verbatim.Review round
warnOncenamed as the bound wheregetWebConfigholds its ownreportedConfigGaps4641f2a— per-isolate rule first, thenwarnOncefor a new warning andgetWebConfig's own memo, kept apartede188c— "the base context set thatlib/submissions.tsnames"50[0-9]clause was the whole reason the 52x gotcha exists24b9800— "its message fallback recognises only 50x phrasing", no pattern copiedcomponents/AGENTS.mdandpages/AGENTS.mdare unchanged. The no-JavaScript table is read bydocs/accessibility-walkthrough.mdas its source, and the rest is gotchas.Preview
No preview surface — guides only.
Test results
mainmerge,git diff --numstat origin/mainis two.mdfiles and nothing else, so every file the gate reads is byte-identical tomain. No spec reads guide text (grepof.ts/.tsx/.js/.json/.sh/.ymlfinds only comments citing them).^server/trigger matchedserver/AGENTS.md. Run, no findings — the diff carries no code.main's guides failprettier --checktoo). Edited paragraphs are wrapped at 100.Notes for reviewer
#124,#123,#128,#108,#222/#248andSahajCloud#808/#718all stay.useT(), the[PayloadCMS]log, the Chrome rule, the warning bound,select,#808) still finds its statement.AGENTS.md, which re-condenses prosemainwrote an hour ago.🤖 Generated with Claude Code