Skip to content

fix(config): sync SahajAtlasWeb's copy of the atlas URL contract - #269

Merged
Ardnived merged 2 commits into
mainfrom
claude/atlas-contract-sync
Nov 17, 2026
Merged

Ardnived merged 2 commits into
mainfrom
claude/atlas-contract-sync

Conversation

@Ardnived

@Ardnived Ardnived commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

What

Adds src/lib/atlas/atlas-url-contract.json to SahajAtlasWeb's contractSync entry in loop-config.json: the source, its copy at src/lib/shape/atlas-url-contract.json, and a curl fetch of the raw file appended to the consumer's command, the same fetch SahajAtlasWordpress's entry uses. (pnpm sync:atlas-contract --write exits 1 after writing a drifted copy, so a sync session would read success as failure.)

Failure it prevents

SahajAtlasWeb parses canonical atlas URLs with its own copy of the contract. contractSync listed the file only for SahajAtlasWordpress, so a SahajCloud change to the URL shape re-synced the plugin's copy and left the widget's stale. audit-contracts runs the same per-consumer commands, so the alternate-Monday sweep missed it too. Until someone ran the sync by hand, the widget would parse new canonical URLs with old rules.

Why config, not a workflow

This replaces sydevs/SahajAtlasWeb#417, which proposed a separate daily drift-check workflow in that repo. Keeping the loop as the one sync mechanism means one place to look and a fix PR instead of an issue.

Not covered, on purpose: src/config/translations.en.json is CMS content, not a SahajCloud code contract, so it stays on its existing manual pnpm sync:translations check.

Follow-up outside this repo: the header of SahajAtlasWeb's scripts/sync-atlas-contract.mjs says nothing syncs that copy automatically, which is no longer true once this merges.

Tests

Config-only change. loop-config.json parses. node --test dispatcher/test/*.test.mjs workflow/lib/*.test.mjs: 501 pass, 0 fail. No skill changed, so no plugin version bump.

🤖 Generated with Claude Code

SahajAtlasWeb commits a byte-identical copy of SahajCloud's
src/lib/atlas/atlas-url-contract.json at src/lib/shape/, and parses
canonical atlas URLs with it. contractSync listed that file only for
SahajAtlasWordpress, so a SahajCloud change to the URL shape re-synced the
plugin's copy but left the widget's stale until someone ran
`pnpm sync:atlas-contract --write` by hand. audit-contracts runs each
consumer's command too, so the alternate-Monday sweep had the same blind
spot.

The consumer keeps one command: types:cms and the contract sync are both
idempotent fetches, so running both when either source changes writes
nothing extra.

This replaces SahajAtlasWeb#417, which proposed a separate daily drift
workflow in that repo: one sync mechanism, not two.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…y does

`pnpm sync:atlas-contract --write` exits 1 after writing a drifted copy,
so a sync session would read a successful sync as a failed command. The
WordPress entry already fetches the same file by raw URL with curl, which
exits 0 on success and non-zero only when the fetch fails.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sydevs-bot

Copy link
Copy Markdown
Contributor

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

🤖 sydevs dispatcher

@Ardnived
Ardnived merged commit 212df0e into main Nov 17, 2026
7 checks passed
@Ardnived
Ardnived deleted the claude/atlas-contract-sync branch November 17, 2026 18:05
@sydevs-bot sydevs-bot moved this from Awaiting to Done in SYDevelopers Technical Roadmap Nov 17, 2026
Ardnived added a commit to sydevs/SahajAtlasWeb that referenced this pull request Nov 17, 2026
The sync-atlas-contract header claimed nothing runs a sync automatically.
Since sydevs/claude-workflow#269 the review loop's contractSync and its
audit-contracts sweep re-fetch the upstream file and open a sync PR.

Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

2 participants