Skip to content

docs(guides): keep intent and gotchas, point at code for the rest - #453

Merged
Ardnived merged 5 commits into
mainfrom
claude/docs-intent
Nov 20, 2026
Merged

Ardnived merged 5 commits into
mainfrom
claude/docs-intent

Conversation

@Ardnived

@Ardnived Ardnived commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Change outline

The rule, in three lines

  1. Would a behaviour-preserving refactor change the sentence? → mechanism: delete it, or point at the code.
  2. Would a bug fix or new edge case change it? → a list of conditions: point at the code or test that holds it.
  3. Only a change of purpose? → keep: intent, invariants, contracts, gotchas, commands.

Per guide

Guide Removed / moved Test failed Kept
AGENTS.md Hand-kept list of nested guides and docs/rules/ files (the find / ls commands stay) 1 — listing ⚠ paths: gotcha, protected-paths reason
Schedule-X's pinned version → pointer to the patch register 1 — copied value ⚠ isResponsive gotcha (#331)
pnpm test:a11y's checks retold → pointer to scripts/AGENTS.md; "Five" gates → "These" 1 — restatement, count #99, #432
Navigation: resolveStack/atlasPushState/depth mechanics → invariants plus pointer to docs/rules/i18n-and-state.md, which holds the same mechanism 1 — restatement no drawer-stack store; never pops host history
The hook's 12-second budget → pointer to docs/testing.md 1 — copied value
scripts/AGENTS.md The 390×844 viewport and document.elementFromPoint → "a phone viewport", "hit test"; "five CI gates" → "the CI gates" 1 — copied value, count Everything else: the size budget's reasoning is all why
src/AGENTS.md Tailwind's exact version; an inventory of three zustand store names 1 — copied value, inventory Every px/rem, var() and import gotcha
src/components/AGENTS.md Atom inventory (Input/Textarea/Menu/ recipe); sheet.ts's plugin internals; provider-stack list; SLOT_GAIN's value; "six expressions touch the boundary" 1 — inventory, copied value, count Drawer vs Modal, Combobox vs Select, the shared isInvalid/highlight interface
"Why the check walks left" → pointer to isSelectorScoped's docblock, which already holds the full argument 1 — restatement its two consequences for an author
The #169 "premises retired" bullets, each restated later in the file → one line pointing below 1 — restatement the ⚠ "do not restore that claim" line
The third "found in a browser" bullet (margin retired surfaceCoversPage), stated twice more below → merged into the "Nothing detects this at runtime" paragraph 1 — restatement the ⚠ surfaceCoversPage line
The pnpm test:a11y paragraph's retold checks and fix-loop flag → pointer to scripts/AGENTS.md 1 — restatement ⚠ hit-test gotcha, the 43px sm Button
Corrected: "the Drawer forwards container … the same element it portals into" is false. Drawer.tsx takes a separate measureAgainst prop, and its docblock says conflating the two inverts the sheet. Now points there. wrong claim

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.

Where Change
AGENTS.md "the first three did, silently, before" counted the docs/rules/ list this diff deleted. The count is gone: "several here once did, silently". Which three files hit an invalid paths: is history, not a current condition.
src/components/AGENTS.md The vaul sentence said the measureAgainst prop is forwarded "inside the expanded dialog". DrawerStack hands it frameElement(), which since #169 is also a contained map's MapFrame. Now "inside a frame", which the guide's own [data-sy-frame] paragraph above it already covered.
Drawer.tsx, Drawer.snap.test.tsx Comments only. The prop's own docblock and the snap spec carried the same narrow claim, disagreeing with the rootProps note 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.md symlink is untouched.

Preview

No preview surface — guide prose only.

Test results

  • prettier --check on the six files: clean for every edited line, review edits included. ⚠ AGENTS.md and src/components/AGENTS.md are not Prettier-clean on main either (table padding, emphasis style) — verified against origin/main itself. I left that pre-existing drift alone so this diff stays to the edits.
  • Specs that cite the guides: responsive.test.ts, select-unit-specs.test.ts, brand.test.ts, shadow-patches.test.ts — 54 passed. None reads guide text.
  • Lean gate: green — lint, typecheck, 2158 unit tests in 180 files.
  • comment-fingerprint.mjs --base origin/main on the two .tsx files: 2 codeHash identical, protected census unchanged, no comment displaced. Comments changed, code did not.

Notes for reviewer

  • Breadcrumbs removed: none. Every #NNN and every ⚠ line survives.
  • Inbound links checked. Thirteen source files cite src/components/AGENTS.md for the responsive table, the reduced-motion seams, clip-never-hidden, contain: layout on the frame, the compact card and the patch search. All of those sections stay, and none of their wording changed.
  • The judgement calls I'm least sure of:
    1. Cutting the atom inventory down to Drawer/Modal and Combobox/Select.
    2. Merging the navigation mechanics into docs/rules/i18n-and-state.md. That rule is path-scoped, so an agent not touching state now reads only the invariants.
    3. Leaving the 14-row responsive table whole. Each row is a condition, but code comments point at the table as the home of the reasons.
  • The responsive table, the patch register and the measured container-type table all stay. Each is the only record of a measurement or a rejected alternative.
  • The two .tsx files 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

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]>
@sydevs-bot

sydevs-bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

🤖 no session running

recent dispatches
  • 22:33Z resolve-conflicts · attempt 1 · session · done
  • 22:33Z resolve-conflicts · attempt 1 · session
  • 22:24Z address-review · attempt 1 · session · done
  • 22:24Z address-review · attempt 1 · session
  • 22:18Z review-pr · attempt 2 · session · done

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

@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 20, 2026
@sydevs-bot sydevs-bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 20, 2026
@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 20, 2026
@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 Nov 20, 2026
@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 Nov 20, 2026
@sydevs-bot

Copy link
Copy Markdown
Contributor

The session for review-pr did not finish after 3 attempts. I have stopped retrying. A mention (@sydevs-bot) or a push from you starts me again.

🤖 sydevs dispatcher

@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 20, 2026
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 20, 2026
@sydevs-bot sydevs-bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 20, 2026
@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 Nov 20, 2026

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧐 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.md symlink 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-top and vaul's measurement box are each still stated there.
  • Breadcrumbs: the #NNN set is identical in all four files, and no ⚠ line was removed.
  • .claude/workflow.json on main: previewUrl and fixture are both null, so "No preview surface" needs no data check.

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


Generated by Claude Code

Comment thread AGENTS.md Resolved
Comment thread src/components/AGENTS.md Resolved
@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 20, 2026
@sydevs-bot sydevs-bot moved this from Working to Pending in SYDevelopers Technical Roadmap Nov 20, 2026
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 20, 2026
@sydevs-bot sydevs-bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 20, 2026
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
@sydevs-bot

Copy link
Copy Markdown
Contributor

Both critic findings adopted, pushed as 7c5b527.

  • should-fix — AGENTS.md → 98a2583. The count went, not the list: which three rules once carried an invalid paths: is history, and the gotcha holds for any of them.
  • consider — src/components/AGENTS.md → eca410c. Now "inside a frame", since DrawerStack passes frameElement().
  • Joined, comment-only → 7c5b527. measureAgainst's own docblock and Drawer.snap.test.tsx carried the narrow claim the guide copied, disagreeing with the rootProps note nine lines below. Fixing the prose alone leaves the guide pointing at a contradictory docblock. comment-fingerprint.mjs: 2 codeHash identical, census unchanged, no comment displaced.

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

@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 Nov 20, 2026
#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
@sydevs-bot

Copy link
Copy Markdown
Contributor

Merged main in. One conflict: AGENTS.md's Calendar row, which #450 rewrote and this branch had trimmed.

  • From main: the Temporal sentence and the ⚠ temporal-polyfill/global gotcha.
  • From this branch: the copied version numbers are gone.
  • The branch's pointer to src/components/AGENTS.md § Patch register now sits only in main's new ⚠ line, which already carried that address in the same row. Two copies of one pointer in one table cell read as a mistake.

src/components/AGENTS.md auto-merged — #450 added to the patch register, this branch cut elsewhere in the file.

Lean gate green: lint, typecheck, 2164 unit tests in 181 files. The diff against main is still this branch's six files, +57 / −93.

🤖 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 Nov 20, 2026
@sydevs-bot sydevs-bot moved this from Working to Pending in SYDevelopers Technical Roadmap Nov 20, 2026

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

@sydevs-bot sydevs-bot moved this from Pending to Awaiting in SYDevelopers Technical Roadmap Nov 20, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
sahajatlas-design 7c5b527 Nov 20 2026, 10:30 PM

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.

3 participants