Skip to content

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

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

Ardnived merged 1 commit into
mainfrom
chore/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 and the URL-contract curl exactly as contractSync in claude-workflow's loop-config.json defines them.
  • The automatic run failed: both consumer legs exited with gh: Resource not accessible by personal access token (HTTP 403), right after regenerating the types (run 45054537018 in SahajCloud).
  • main's types were stale by two upstream commits, so the 518 deletions cover both.
  • #1246 accounts for 340: the 13 screen-reader keys and wm-web-translations a11y interfaces.
  • Those 13 keys live in src/config/a11y/ since refactor(i18n): screen-reader strings live in the repo, machine-translated #456, so no copy is lost here.
  • SahajCloud#1217 accounts for the other 178: WeMeditate Web's video tab and its visible copy.
  • Nothing outside the generated file reads WmWebTranslation*. The URL contract is unchanged.

Test results

  • Lean gate: ✓ .claude/skills/pr-prep/check.sh. translations.en.json satisfies WidgetTranslations still holds: the snapshot keeps the 13 keys under RETIRING_KEYS until a translations sync drops them.
  • The contract check in CI compares these files to their sync commands.

🤖 Generated with Claude Code

pnpm run types:cms against SahajCloud main (debf409e, #1246), plus the URL
contract curl, as contractSync defines it. 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 13 retired keys and other upstream removals.

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:21Z address-review · attempt 1 · session · done
  • 19:21Z address-review · attempt 1 · session
  • 19:13Z review-pr · attempt 1 · session · done
  • 19:13Z review-pr · attempt 1 · session

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

@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 Updated (UTC)
✅ Deployment successful!
View logs
sahajatlas-design 15f7b75 Nov 22 2026, 07:10 PM

@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

@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

Verified rather than trusted: the branch's payload-types.ts is byte-identical to SahajCloud main (debf409) run through strip-payload-augmentation.mjs, and response-types.ts and atlas-url-contract.json match their upstream sources exactly. One file, pure deletion — no new piece to justify and nothing to streamline.

The one gap is prose, not code. The diff is two upstream commits: #1246 removed 340 lines, SahajCloud#1217 the other 178 (WeMeditate Web's video tab). The Summary names only #1246. No consumer impact — nothing outside the generated file reads WmWebTranslation*.

Worth knowing: #1246's consumer side is half done. src/config/translations.en.json still carries all 13 retired keys, so the 13 RETIRING_KEYS entries at src/config/translations.test.ts:236 stay live. The snapshot is not in contractSync.paths, so no event re-fires for it, and pnpm sync:translations --write reads production with ATLAS_API_KEY. Out of this PR's reach — but waiting on a person, not on the loop.

Findings

  • should-fix — the Summary attributes all 518 deletions to #1246; 178 are #1217. Thread on src/types/payload/payload-types.ts:5606.

What was checked

  • Reproduced pnpm types:cms at debf409 and diffed all three sync targets: zero difference.
  • new-pieces.mjs: NONE (generated file skipped) — no streamliner run, no ladder walk.
  • Consumer side: src/types/translations.ts (SyAtlasTranslation → WidgetTranslations) and the satisfies at src/types/i18next.d.ts:33.
  • All 13 retired keys resolve in src/config/a11y/en.json, and the two live call sites are screen-reader-only (LoadMore.tsx:139 live region, SettingsMenu.tsx:113 aria-label), so the ownership split holds.
  • All four required checks green on 15f7b75. No question threads, so no second opinions.

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


Generated by Claude Code

Comment thread src/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

Addressed the one open thread. Nothing was pushed: the fix was prose, so 15f7b75 still stands.

Adopted — the Summary attributed all 518 deletions to #1246. The body now splits them: 340 from #1246, 178 from SahajCloud#1217's video tab. It also records that no consumer reads WmWebTranslation*. Confirmed upstream, not assumed — git show --stat -- src/payload-types.ts gives 340 on debf409 and 178 on 9c95ed9.

The branch already contains origin/main, so no merge was needed.

One part of #1246 stays open and needs a person. src/config/translations.en.json still carries the 13 retired keys, so the RETIRING_KEYS pins in src/config/translations.test.ts stay live. Regenerating that snapshot means pnpm sync:translations --write, which reads production with ATLAS_API_KEY. No routine holds that key, so the loop cannot finish this leg.

🤖 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 b6d27ed Nov 22, 2026
62 checks passed
@Ardnived
Ardnived deleted the chore/sync-contracts-1246 branch November 22, 2026 20:23
@sydevs-bot sydevs-bot moved this from Awaiting to Done in SYDevelopers Technical Roadmap Nov 22, 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.

2 participants