Skip to content

chore(urls): record the Link relativize decision in comment and docs - #210

Merged
sydevs-bot merged 1 commit into
mainfrom
claude/chore-124-link-relativize-decision
Oct 28, 2026
Merged

sydevs-bot merged 1 commit into
mainfrom
claude/chore-124-link-relativize-decision

Conversation

@sydevs-bot

@sydevs-bot sydevs-bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Both comments that recorded "should Link relativize a same-origin absolute href?" as open now state the answer: no, by design.
  • AGENTS.md:131 joined the ticket — the same stale pointer from the same decision.

Preview

No preview can show this change: the diff alters no executable line, so every route renders byte-identically. Branch alias not published yet — preview pending.

Test results

  • Lean gate: ✓ .claude/skills/pr-prep/check.sh — eslint 0 errors, tsc --noEmit clean, vitest run 88 files / 907 tests passed
  • Targeted specs: N/A — no behaviour changed
  • Build: N/A — no build, server or Wrangler change

Manual verification

  1. Read atlasHref's JSDoc (pages/map/_components/AtlasContent.tsx:32-52) and confirm it reads as settled rather than pending, and still explains why atlasHref resolves the canonical itself.
  2. Read the closing line of the URL-spelling rule (AGENTS.md:131) and confirm the same.

Notes for reviewer

  • One verification-checklist line cannot hold as written, and this is the judgement call to check. The ticket expects grep -rn '#124' to return two rewritten lines, but its own Approach §1 directs the JSDoc to cite Switch wemeditate.com over to the new site #160 question 1 — the deciding issue. So the JSDoc carries #160, AGENTS.md carries #124, and the grep returns one line. Every acceptance criterion still holds, including "no #124 reference reads as pending work".
  • Both prose claims were checked against source rather than assumed: sitePathFromUrl has exactly one production caller (AtlasContent.tsx:55), and Link → localeHref returns an absolute URL untouched because isSitePath requires a leading single /.
  • Filed on the way: fix(map): an off-origin atlas canonical renders as an internal link #209 — the two <Link>s fed by atlasHref omit external, so an off-origin atlas canonical renders as an internal link. It is not folded in here because this ticket's criteria require a comments-and-Markdown-only diff, which a behaviour change would make false.
  • /code-review high reported no findings. /simplify was not run: with an identical codeHash there is no executable surface for it to act on.
Detail

comment-fingerprint.mjs --base origin/main, all three outputs read, as the ticket's checklist requires:

1 files · 1 codeHash identical · 0 problems
protected: FROZEN  F1 0 to 0 · F2 0 to 0 · F3 0 to 0 · F4 0 to 0 · F5 0 to 0
           KEEP    K1 1 to 1 · K2 1 to 1 · K3 1 to 1 · K4 1 to 1 · K5 0 to 0

Comments changed. Code did not. No comment moved.

comment-lint.mjs --base origin/main: 1 changed file(s). No banned comment added.

git diff --stat origin/main: exactly AGENTS.md and pages/map/_components/AtlasContent.tsx.

The retired paragraph's four sentences were dropped as the ticket directs — the TODO verb, "Moving it rewrites every editor-pasted href", the external collision, and "Do not copy this shape" — while the one why the paragraphs above it do not carry survives: atlasHref resolves the canonical itself because Link declines to. comment-protect.json K2/K3 are KEEP, not FROZEN, so rewording is the sanctioned way to preserve the breadcrumb; the protected census is unchanged.

Security review skipped: no changed path matches securityReview.triggerPattern (AGENTS.md, pages/map/… — the pattern wants ^pages/preview/, ^server/, and friends).

Docs sync: the only other surface describing this behaviour is AGENTS.md:128, the line directly above, which documents sitePathFromUrl's unchanged contract and is still accurate.

Closes #124

Two comments described the same open question — whether `Link` should
relativize a same-origin absolute href. #160 question 1
answered it: it should not, and #194 repoints the
content links naming `wemeditate.com` instead. Both pointers now state the
answer, so a future reader is not sent to a closed question.

`atlasHref`'s JSDoc keeps the why the retired paragraph carried — it
resolves the canonical itself because `Link` declines to — and keeps an
in-org breadcrumb, which `comment-protect.json` K2 and K3 require. No
executable line changes: comment-fingerprint reports an identical codeHash,
an unchanged protected census and no displaced comment.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjY5UgBAPSeTP9a8of5
@sydevs-bot

sydevs-bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running

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

@sydevs-bot
sydevs-bot marked this pull request as ready for review October 28, 2026 16:29
@sydevs-bot
sydevs-bot requested a review from Ardnived October 28, 2026 16:29
@sydevs-bot
sydevs-bot enabled auto-merge October 28, 2026 16:29
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Adversarial review skipped: 2 file(s), 9 changed line(s), under review.skipWhen. Say @sydevs-bot review to force one.

🤖 sydevs dispatcher

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

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 Preview URL Updated (UTC)
✅ Deployment successful!
View logs
wemeditate-web 77e9288 Commit Preview URL

Branch Preview URL
Oct 28 2026, 04:28 PM

@sydevs-bot sydevs-bot moved this from Awaiting to Pending in SYDevelopers Technical Roadmap Oct 28, 2026
@sydevs-bot
sydevs-bot added this pull request to the merge queue Oct 28, 2026
Merged via the queue into main with commit 0f3cbd8 Oct 28, 2026
23 checks passed
@sydevs-bot
sydevs-bot deleted the claude/chore-124-link-relativize-decision branch October 28, 2026 17:38
@sydevs-bot sydevs-bot moved this from Pending to Done in SYDevelopers Technical Roadmap Oct 28, 2026
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.

chore(urls): record the Link relativize decision in comment and docs

3 participants