Repository navigation
docs(guides): keep intent and gotchas, point at code for the rest - #453
Conversation
Applies claude-workflow's documentation rule to the four guides: delete mechanism and copied values, replace restatements with a pointer to the code or doc that owns them, and fix one claim the Drawer atom contradicts (vaul's measured box is not its portal target). Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
🤖 no session running recent dispatchesWritten by the sydevs dispatcher. Sessions never edit this comment. |
|
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 diff is the size of its own problem: four guides, −88/+52, every removal named in the body's table with the rule test it failed. I checked the pointers it leans on rather than the prose it cut, and they hold — navigation mechanics in docs/rules/i18n-and-state.md, the hook's 12-second budget in docs/testing.md, the a11y checks and the --origin fix loop in scripts/AGENTS.md, the atom inventory and menuChrome/fieldChrome in DESIGN_SYSTEM.md. isSelectorScoped's docblock carries the whole swiper-12 argument, including the sibling-combinator refusal the prose dropped. The vaul correction is right and its pointer resolves. Two things: one deleted list left a dangling count behind it, and the corrected sentence is narrower than the code it now cites.
Findings
- should-fix —
AGENTS.md:33: "the first three" counts a list this diff deleted. - consider —
src/components/AGENTS.md:467: "inside the expanded dialog" omits the contained-map frame #169 is about.
What was checked
- Diff from the checkout: four files, no
CLAUDE.mdsymlink touched. - Every pointer the diff adds, resolved on the branch:
docs/rules/i18n-and-state.md(resolveStack,atlasDepth,dismissDepth,useAtlasNavigate),docs/testing.md:654,scripts/AGENTS.md:1-18,DESIGN_SYSTEM.md:69-241,scripts/postcss-scope-widget.mjs:240-280,Drawer/Drawer.tsx:216-276, and the@schedule-x/[email protected]row of the patch register. - The three #169 premises against the text below the patch register:
--sy-frame-h,--sy-sheet-topand vaul's measurement box are each still stated there. - Breadcrumbs: the
#NNNset is identical in all four files, and no⚠line was removed. .claude/workflow.jsononmain:previewUrlandfixtureare both null, so "No preview surface" needs no data check.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
The `docs/rules/` enumeration this branch deleted was what "the first three" pointed at, so a reader could no longer tell which rules once loaded unconditionally. The gotcha is that an invalid `paths:` loads everywhere; which three files hit it is history, not a current condition, so the count goes rather than the list coming back. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjY1S5dXmquNBFBEh8K
`DrawerStack` hands `measureAgainst` whatever `frameElement()` returns, which since #169 is a contained map's `MapFrame` as well as the compact card's expanded dialog. Line 462 already says both carry `[data-sy-frame]`, so naming only the dialog read as the narrower of two cases. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjY1S5dXmquNBFBEh8K
…e note `measureAgainst`'s docblock and the snap spec beside it named the expanded dialog alone, while the `rootProps` note nine lines below names `frameElement()` — the dialog or a contained map's `MapFrame` (#169). A reader of the prop learned the narrower rule, and the guide copied it from there. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjY1S5dXmquNBFBEh8K
|
Both critic findings adopted, pushed as 7c5b527.
Branch was already on the current base, so no merge. Lean gate green: lint, typecheck, 2158 tests. Body carries an After review table and the corrected net of +57/−93 across 6 files. 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
#450 rewrote the Calendar row this branch had trimmed. The merged row keeps main's Temporal sentence and its `temporal-polyfill/global` gotcha, and keeps this branch's removal of the copied version numbers. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYDSPiLMRgvZD3Jsx5
|
Merged
Lean gate green: lint, typecheck, 2164 unit tests in 181 files. 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
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
sahajatlas-design | 7c5b527 | Nov 20 2026, 10:30 PM |
Summary
AGENTS.mdguides, after the SahajCloud pilot (docs(guides): keep intent and gotchas, point at code for the rest SahajCloud#1235).Change outline
The rule, in three lines
Per guide
AGENTS.mddocs/rules/files (thefind/lscommands stay)⚠ paths:gotcha, protected-paths reason⚠ isResponsivegotcha (#331)pnpm test:a11y's checks retold → pointer toscripts/AGENTS.md; "Five" gates → "These"resolveStack/atlasPushState/depthmechanics → invariants plus pointer todocs/rules/i18n-and-state.md, which holds the same mechanismdocs/testing.mdscripts/AGENTS.mddocument.elementFromPoint→ "a phone viewport", "hit test"; "five CI gates" → "the CI gates"src/AGENTS.mdrem,var()and import gotchasrc/components/AGENTS.mdMenu/recipe);sheet.ts's plugin internals; provider-stack list;SLOT_GAIN's value; "six expressions touch the boundary"ComboboxvsSelect, the sharedisInvalid/highlightinterfaceisSelectorScoped's docblock, which already holds the full argument⚠"do not restore that claim" linesurfaceCoversPage), stated twice more below → merged into the "Nothing detects this at runtime" paragraph⚠ surfaceCoversPagelinepnpm test:a11yparagraph's retold checks and fix-loop flag → pointer toscripts/AGENTS.md⚠hit-test gotcha, the 43pxsmButtoncontainer… the same element it portals into" is false.Drawer.tsxtakes a separatemeasureAgainstprop, and its docblock says conflating the two inverts the sheet. Now points there.src/views/AGENTS.md(5 lines) stays. It is only a pointer, but it is what makes the components guide load when an agent reads a view.After review
Three edits, each from the adversarial review, and the last two are one claim stated in three places.
AGENTS.mddocs/rules/list this diff deleted. The count is gone: "several here once did, silently". Which three files hit an invalidpaths:is history, not a current condition.src/components/AGENTS.mdmeasureAgainstprop is forwarded "inside the expanded dialog".DrawerStackhands itframeElement(), which since #169 is also a contained map'sMapFrame. Now "inside a frame", which the guide's own[data-sy-frame]paragraph above it already covered.Drawer.tsx,Drawer.snap.test.tsxrootPropsnote nine lines below — and the guide had copied it from there. Both now say "outside a frame".Net: +57 / −93 lines across 6 files. Every
CLAUDE.mdsymlink is untouched.Preview
No preview surface — guide prose only.
Test results
prettier --checkon the six files: clean for every edited line, review edits included. ⚠AGENTS.mdandsrc/components/AGENTS.mdare not Prettier-clean onmaineither (table padding, emphasis style) — verified againstorigin/mainitself. I left that pre-existing drift alone so this diff stays to the edits.responsive.test.ts,select-unit-specs.test.ts,brand.test.ts,shadow-patches.test.ts— 54 passed. None reads guide text.comment-fingerprint.mjs --base origin/mainon the two.tsxfiles:2 codeHash identical, protected census unchanged, no comment displaced. Comments changed, code did not.Notes for reviewer
#NNNand every⚠line survives.src/components/AGENTS.mdfor the responsive table, the reduced-motion seams, clip-never-hidden,contain: layouton the frame, the compact card and the patch search. All of those sections stay, and none of their wording changed.Combobox/Select.docs/rules/i18n-and-state.md. That rule is path-scoped, so an agent not touching state now reads only the invariants.container-typetable all stay. Each is the only record of a measurement or a rejected alternative..tsxfiles are comment-only, and the guide is why they are here. A guide that points at a docblock inherits that docblock's errors, so the fix had to land at the source rather than only in the prose quoting it.🤖 Generated with Claude Code