Repository navigation
fix(config): sync SahajAtlasWeb's copy of the atlas URL contract - #269
Merged
Merged
Conversation
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]>
Contributor
|
Adversarial review skipped: 1 file(s), 8 changed line(s), under 🤖 sydevs dispatcher |
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]>
This was referenced Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
src/lib/atlas/atlas-url-contract.jsonto SahajAtlasWeb'scontractSyncentry inloop-config.json: the source, its copy atsrc/lib/shape/atlas-url-contract.json, and acurlfetch of the raw file appended to the consumer's command, the same fetch SahajAtlasWordpress's entry uses. (pnpm sync:atlas-contract --writeexits 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.
contractSynclisted 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-contractsruns 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.jsonis CMS content, not a SahajCloud code contract, so it stays on its existing manualpnpm sync:translationscheck.Follow-up outside this repo: the header of SahajAtlasWeb's
scripts/sync-atlas-contract.mjssays nothing syncs that copy automatically, which is no longer true once this merges.Tests
Config-only change.
loop-config.jsonparses.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