Skip to content

docs(comments): sync-atlas-contract names the wrong consumer repos #226

Closed

Description

@sydevs-bot

Summary

scripts/sync-atlas-contract.mjs:10-11 names the wrong set of repos as holding
atlas-url-contract.json. The same wrong sentence sits in two more places in this checkout, and
one of them is not ours to edit. The contract data itself has not drifted — only the prose that
tells a maintainer where to sync it.

Approach

The three copies of the claim, in this repo

Where What it says Ours to fix
scripts/sync-atlas-contract.mjs:10-11 "byte-identical in SahajCloud, SahajAtlasWeb, and WeMeditateWeb" yes
src/lib/shape/atlas-url-contract.test.ts:10 the same sentence, in the spec's header JSDoc yes
src/lib/shape/atlas-url-contract.json:2 ($comment) "SahajAtlasWeb and WeMeditateWeb parse them back … All three assert against this file" no

The original ticket named only the first. The spec header carries the identical error and must
change in the same PR, or the repo keeps contradicting itself.

⚠ Never edit the $comment in src/lib/shape/atlas-url-contract.json

That file is synced byte-for-byte from SahajCloud. scripts/sync-atlas-contract.mjs compares whole
bytes against raw.githubusercontent.com/sydevs/SahajCloud/main/src/lib/atlas/atlas-url-contract.json
and exits 1 on any difference, and --write overwrites our copy with theirs. So editing our
$comment would turn a green drift check permanently red and be reverted by the next --write.
SahajCloud owns that string. See Downstream impact.

Steps

  1. Confirm the holder set first — the open question below. Do not write repo names that have not
    been read.
  2. Fix the enumeration at scripts/sync-atlas-contract.mjs:10-11, naming each copy with its repo
    and path rather than a bare list of repo names. A path is checkable; a name rots.
  3. Fix the same sentence at src/lib/shape/atlas-url-contract.test.ts:10, matching the wording.
  4. Add one line to the script's header: this repo runs no automated drift check.
    sync:atlas-contract is in package.json:27 and in no file under .github/workflows/
    (verified by grep). pnpm sync:atlas-contract is a manual command.

Keep the ⚠ block at scripts/sync-atlas-contract.mjs:24-29 intact — docs/rules/code-comments.md
marks both a ⚠ line and a cross-repo sync pointer as load-bearing.

Acceptance criteria

  • scripts/sync-atlas-contract.mjs names the confirmed holder set, and does not name a repo
    that holds no copy
  • src/lib/shape/atlas-url-contract.test.ts:10 carries the same corrected wording
  • Each named copy is given as <repo> plus the path the file sits at
  • The script's header says this repo runs no automated drift check
  • src/lib/shape/atlas-url-contract.json is unchanged
  • No behaviour change to the script itself

Verification checklist

  • grep -rn 'WeMeditateWeb' scripts/sync-atlas-contract.mjs src/lib/shape/ returns nothing
    outside atlas-url-contract.json
  • git diff --name-only does not list src/lib/shape/atlas-url-contract.json
  • node scripts/sync-atlas-contract.mjs exits 0 — it printed
    ✓ atlas-url-contract.json is byte-identical to SahajCloud on 2026-09-24
  • pnpm test:run passes — the spec file's header changed
  • pnpm lint passes

Open questions

  • Which repos hold a copy? The survey reported SahajCloud, SahajAtlasWeb and
    SahajAtlasWordpress (tests/atlas-url-contract.json), with WeMeditateWeb holding none. This
    run could not re-verify it: the cloud environment checks out only SahajAtlasWeb, SahajCloud
    and claude-workflow, and GitHub access is scoped to those same three. Confirmed here: the
    SahajCloud and SahajAtlasWeb copies are byte-identical (md5 5ce0e717049ac34b1b4b74dc1a1716aa).
    Resolve by running find . -name atlas-url-contract.json -not -path '*/node_modules/*' across
    all five checkouts on a machine that has them, or by a reviewer confirming the set.
  • Is SahajAtlasWordpress's CI job really the only automated gate? The survey reported
    .github/workflows/ci.yml:48 and tests/contract.php:5 there. Unread for the same reason.
    Verified on this side: no workflow in this repo runs sync:atlas-contract.

An implement run that cannot answer the first question should stop rather than guess — writing a
second wrong enumeration is the failure this ticket exists to undo.

Downstream impact

SahajCloud holds the upstream original of the same error, in two files:

  • src/lib/atlas/atlas-url-contract.json:2 — the $comment every consumer copies verbatim. This
    is the root: our wrong $comment is a faithful copy of theirs.
  • src/lib/atlas/canonicalUrl.ts:17-18 — "the fixture SahajCloud, SahajAtlasWeb and WeMeditateWeb
    all assert against".

Neither is fixable from this repo, and this ticket does not block on them: the two in-repo comments
can land alone. A companion ticket on SahajCloud is needed and has not been filed — see the run
comment.

Notes

Found by the Thursday contracts survey, checking claim 5 (the shared code-comments rule) and the
shared URL contract beside it. Every repo's docs/rules/code-comments.md marks a cross-repo sync
pointer as load-bearing, on the grounds that nothing but prose enforces the couplings between these
five repos. This is one of those pointers, pointing at the wrong repo — in four places across two
repos, three of them copies of one sentence.

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

Activity

  1. added theissue type on Sep 24, 2026
  2. added
    proposal
    bot:working
    and removed on Sep 24, 2026
  3. sydevs-bot commented on Sep 24, 2026

    @sydevs-bot
    ContributorAuthor

    🤖 no session running

    recent dispatches
    • 14:54Z implement · attempt 1 · session · done
    • 14:54Z implement · attempt 1 · session
    • 08:17Z revise · attempt 1 · session · done
    • 08:17Z revise · attempt 1 · session

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

  4. sydevs-bot commented on Sep 24, 2026

    @sydevs-bot
    ContributorAuthor

    Revised from the code. Three changes of substance.

    Scope grew by one file. src/lib/shape/atlas-url-contract.test.ts:10 carries the identical
    wrong sentence. Fixing only the script leaves the repo contradicting itself.

    One copy is not ours. src/lib/shape/atlas-url-contract.json:2 holds the same claim, synced
    byte-for-byte from SahajCloud. Editing it turns the drift check permanently red, and --write
    reverts it. SahajCloud owns the root, there and in src/lib/atlas/canonicalUrl.ts:17-18. A
    companion ticket there is needed. I did not file it: SahajCloud's AGENTS.md requires asking a
    human before creating an issue.

    The holder set is unverified. I could not read SahajAtlasWordpress or WeMeditateWeb — this
    environment reaches three repos. The survey's claim is now an open question, and the old find ..
    checklist step is gone. It cannot pass here.

    Priority Low and Effort Easy stand. Title unchanged.

    @sydevs-bot implement starts the work.

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


    Generated by Claude Code

  5. added and removed
    bot:working
    on Sep 24, 2026
  6. moved this from Proposed to Revising in SYDevelopers Technical Roadmapon Sep 24, 2026
  7. Ardnived commented on Sep 24, 2026

    @Ardnived
    Contributor

    @sydevs-bot implement

  8. removed
    proposal
    on Sep 24, 2026
  9. moved this from Revising to Approved in SYDevelopers Technical Roadmapon Sep 24, 2026
  10. added
    bot:working
    on Sep 24, 2026
  11. sydevs-bot commented on Sep 24, 2026

    @sydevs-bot
    ContributorAuthor

    Stopped. The blocking open question is still open, and this environment cannot close it.

    I can read three of the five repos. GitHub access is scoped to SahajAtlasWeb, SahajCloud and claude-workflow. WeMeditateWeb and SahajAtlasWordpress are unreachable, so the holder set stays unread.

    Still unread: whether WeMeditateWeb holds no copy, and whether SahajAtlasWordpress holds one at tests/atlas-url-contract.json.

    Naming an unread repo writes a second wrong enumeration. Dropping SahajAtlasWordpress hides a copy that needs syncing. Both are the failure this ticket exists to undo, so I wrote neither.

    The ticket's other four criteria are ready to write. Only the holder set blocks them.

    To unblock, paste the output of this across all five checkouts:

    find . -name atlas-url-contract.json -not -path '*/node_modules/*'
    

    Then comment @sydevs-bot implement again.

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


    Generated by Claude Code

  12. added and removed
    bot:working
    on Sep 24, 2026
  13. moved this from Approved to Revising in SYDevelopers Technical Roadmapon Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Priority

    Low

    Hold Until

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions