Skip to content

chore(contracts): re-sync copied contracts from SahajCloud - #329

Merged
Ardnived merged 1 commit into
mainfrom
claude/sync-contracts-1246
Nov 22, 2026
Merged

Ardnived merged 1 commit into
mainfrom
claude/sync-contracts-1246

Conversation

@Ardnived

@Ardnived Ardnived commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Re-runs the contract sync for refactor(translations): no global declares a screen-reader-only string SahajCloud#1246 (debf409e), using pnpm run types:cms exactly as contractSync in claude-workflow's loop-config.json defines it.
  • The automatic run failed: both consumer legs of the dispatcher exited with gh: Resource not accessible by personal access token (HTTP 403), right after regenerating the types (run 45054537018 in SahajCloud).
  • types/payload/payload-types.ts loses the ten WmWebTranslations*A11YStrings interfaces. They now live in lib/i18n/a11y/ (refactor(i18n): screen-reader strings live in the repo, machine-translated #328). It also loses the video tab's interfaces, removed upstream by SahajCloud#1217 and never synced until now.
  • The diff changes the other site's global too. debf409e dropped a11y keys from both globals, so 52 of the 525 lines are 13 keys across eight SyAtlasTranslations* interfaces: Calendar.next, .pick_date, .previous, CommonChrome.explore, .loading, CommonSettings.title, EventActions.pause_slideshow, .view_photo, FiltersChrome.remove, SearchNearbyPrompt.dismiss, SearchResults.showing, Share.copy_link, .share_on. SyAtlasTranslations has no reference in this repo outside the generated file.
  • The hand-typed blocks.general.wisdom_sidetext entry goes too, and cannot be kept here. fix(textbox): the OrnateTextBox header fails AA over the warm band #269 typed it in under a shortcut: comment saying to re-type it until feat(translations): declare a key's English in the schema, reconciled on boot SahajCloud#1218 lands. #1218 is still open, so the key is not in the generator's output — and the contract check runs the sync command and refuses any difference, so re-typing the entry would fail CI. Nothing reads the key: OrnateTextBox takes sidetext as a prop, lib/i18n/translations.en.json already carries no entry, and the component's own comment still holds the #1218 breadcrumb. The sync that fires when #1218 merges writes the entry back.

Test results

  • Lean gate: ✓ .claude/skills/pr-prep/check.sh. Nothing reads any removed shape: WebTranslations mounts its own a11y type, and WmWebTranslationsVideo*, WmWebTranslations*A11YStrings and SyAtlasTranslations* have zero references outside the generated file.
  • The contract check in CI compares this file to pnpm run types:cms, so a green run proves the copy.

🤖 Generated with Claude Code

pnpm run types:cms against SahajCloud main (debf409e, #1246). The automatic
sync for that merge failed on a 403 from the bot's token, so this is the
same command run by hand. It drops the ten a11y interfaces and the video
tab's stale ones.

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

sydevs-bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

🤖 no session running

recent dispatches
  • 19:20Z address-review · attempt 1 · session · done
  • 19:20Z address-review · attempt 1 · session
  • 19:10Z review-pr · attempt 1 · session · done
  • 19:10Z review-pr · attempt 1 · session

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 22, 2026
@sydevs-bot sydevs-bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 22, 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 19104af Commit Preview URL

Branch Preview URL
Nov 22 2026, 07:09 PM

@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-design 19104af Commit Preview URL

Branch Preview URL
Nov 22 2026, 07:09 PM

@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 smallest thing that does this job: one file, pure deletion, inside prAllowlistGlobs, no product code. I reproduced pnpm types:cms offline and the branch's types/payload/payload-types.ts is byte-identical to its output, so the copy is exact rather than plausible. The 525 lines are SahajCloud#1246's a11y groups plus #1217's video tab, which this repo never synced. Nothing reads either shape.

One thing this PR cannot fix: both consumer legs of run 45054537018 died the same way, so SahajAtlasWeb's copy is still 340 lines behind and needs the same hand re-sync. The 403 is the dispatcher's own, not this change's — filed separately in claude-workflow.

Findings

  • should-fix — the body's account of what the file loses covers WeMeditate's half of debf409e only; 52 lines of SyAtlasTranslations* keys go too. types/payload/payload-types.ts:8879.

What was checked

  • The copy, proven not assumed. git show origin/main:src/payload-types.ts from the SahajCloud checkout, through the same regex scripts/strip-payload-augmentation.mjs applies, diffed against origin/claude/sync-contracts-1246: identical. 11491 → 10966 lines.
  • Nothing reads the removed shapes. WmWebTranslations*A11YStrings and WmWebTranslationsVideo* → 0 references outside the generated file. WEB_TRANSLATIONS_SELECT names no video and no a11y, and it is satisfies WmWebTranslationsSelect<true>, so a stale key would fail typecheck. lib/i18n/translations.en.json already carries neither.
  • The body's CI claim holds. Contract check (SahajCloud types) is a step inside the green gate job, not a check of its own.
  • New pieces: new-pieces.mjs → NONE, the file skipped as generated, so no streamliner ran.
  • No question threads to settle, and no fixture block to check.

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


Generated by Claude Code

Comment thread types/payload/payload-types.ts Resolved
@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 22, 2026
@sydevs-bot

Copy link
Copy Markdown
Contributor

No commit: the one finding asked for a body fix.

  • Adopted — the SyAtlasTranslations* omission. The Summary now names 52 of the 525 lines as 13 keys across eight SyAtlasTranslations* interfaces, each listed. Checked two ways: interface-scoped line counts go 1513 → 1461, and the name has no reference outside the generated file. Thread resolved.

Found while checking, now its own bullet: the diff also drops the hand-typed blocks.general.wisdom_sidetext entry #269 added under a shortcut: comment. sydevs/SahajCloud#1218 has not merged, so the generator emits no such key — and the contract check runs pnpm run types:cms and refuses any difference, so re-typing it would fail CI. Nothing reads the key, and the sync that #1218's merge fires writes the entry back. No ticket owed.

Base is current: the branch is 0 commits behind main at c7ec294, so no merge was made. Nothing pushed, so CI stands at 19104af9.

🤖 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 22, 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 Working to Pending in SYDevelopers Technical Roadmap Nov 22, 2026
@sydevs-bot sydevs-bot moved this from Pending to Awaiting in SYDevelopers Technical Roadmap Nov 22, 2026
@Ardnived
Ardnived added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit 6ffa178 Nov 22, 2026
62 checks passed
@Ardnived
Ardnived deleted the claude/sync-contracts-1246 branch November 22, 2026 20:21
@sydevs-bot sydevs-bot moved this from Awaiting to Done in SYDevelopers Technical Roadmap Nov 22, 2026
sydevs-bot pushed a commit that referenced this pull request Nov 22, 2026
main's #329 re-ran `pnpm types:cms` against SahajCloud main (#1246), which
dropped the ten a11y interfaces and the video tab. This branch's hand copy
of the contract still carried them, so every one of those groups conflicted.

Resolved to main's generated output plus only the shapes this branch's code
needs from the unmerged sydevs/SahajCloud#1232: `blocks.live_session`,
`blocks.general.days`, `SplashBlock.event` and `ClassDirectoryBlock`. The
a11y groups stay dropped — #328 moved those strings into lib/i18n/a11y/,
so nothing here reads them from the CMS. `wisdom_sidetext` is re-typed
because its own `shortcut:` marker says a contract sync drops it until
sydevs/SahajCloud#1218 lands.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjVeQVCd9NZbNZ37XVL
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