Skip to content

chore(contracts): drop the retired time_in_place translation key - #360

Merged
sydevs-bot merged 1 commit into
mainfrom
claude/chore-354-drop-time-in-place-key
Nov 2, 2026
Merged

sydevs-bot merged 1 commit into
mainfrom
claude/chore-354-drop-time-in-place-key

Conversation

@sydevs-bot

Copy link
Copy Markdown
Contributor

Summary

  • event.display.time_in_place leaves translations.en.json, regenerated wholesale from production.
  • RETIRING_KEYS goes empty in the same commit: the pin reddens on either half alone.

Preview

Test results

  • Lean gate: ✓ .claude/skills/pr-prep/check.sh (lint + typecheck + test:run) — 157 files, 1898 tests passed
  • Targeted specs: 10 passed (src/config/translations.test.ts)
  • Build: N/A — CI runs build + size
  • pnpm sync:translations (read-only, after the write): translations.en.json matches production.

Manual verification

  1. Nothing visual. If this PR sits unmerged for a while, re-run pnpm sync:translations (read-only) to confirm the snapshot still matches what production serves.

Notes for reviewer

  • Both halves were watched failing, separately, against this tree. The entry alone, with the key already gone from the snapshot, reddens names a retiring key only while it is unwired and still published on !resolves(key). The key alone, with no entry covering it, reddens is referenced somewhere in the source as copy nothing renders. That is why this is one commit and not two.
  • RETIRING_KEYS stays, empty. It is a standing registry — the mirror of PENDING_KEYS — and its docblock carries the ⚠ that explains the window. Empty is its resting state, not dead code.
  • One stale mention survives, deliberately: src/types/payload/payload-types.ts:9764 still declares time_in_place?: string. That file is generated, excluded from the spec's walk by includeGeneratedTypes: false, and owned by the contractSync PR that follows a SahajCloud merge. The field is optional, so snapshot satisfies WidgetTranslations is unaffected; a re-wire would now fail typecheck, because the key is no longer in the snapshot's ParseKeys.
  • Security review: skipped — neither securityReview.triggerPattern nor contentPattern matches this diff.
  • /simplify's four angles were answered by inspection rather than by four agents: the diff adds one line, const RETIRING_KEYS: Record<string, string> = {}. The only candidate it raises — delete the now-empty registry — is rejected above.
Detail

The snapshot is never hand-edited. scripts/sync-translations.mjs reads the sy-atlas-translations global from https://cloud.sydevelopers.com and rewrites the file whole, so a sync for one ticket can carry any key SahajCloud shipped since the last one. The regenerated diff here is one deletion and nothing else, which answers the ticket's third criterion: no other key moved, so no other PENDING_KEYS or RETIRING_KEYS entry is settled by this sync.

Upstream, sydevs/SahajCloud#1057 (landed as #1059) removes the key from the translations schema and the ten seeds, and adds a migration sweeping it out of the event_display and version_event_display JSONB columns — so production had already stopped serving it when this snapshot was taken.

comment-lint.mjs --base origin/main: no banned comment added. Docs swept for time_in_place and RETIRING_KEYS across docs/, AGENTS.md and every nested guide — nothing stale. No CHANGELOG.md entry: the file records what a host can observe, and CHANGELOG.md:323-326 already describes the bare host clock rather than the retired "%{time} in %{city}" wording.

Closes #354


Generated by Claude Code

sydevs/SahajCloud#1057 removed `event.display.time_in_place` from
`sy-atlas-translations`, so the live global no longer declares it. The
snapshot is regenerated from production by `pnpm sync:translations
--write`, and the regenerated diff is that one key and nothing else — no
other key has moved since the last sync.

`RETIRING_KEYS` goes empty with it, in the same commit, because the two
are coupled in both directions and each half was watched failing:

- the entry alone, with the key already gone from the snapshot, reddens
  `names a retiring key only while it is unwired and still published` on
  `!resolves(key)`;
- the key alone, with no entry covering it, reddens `is referenced
  somewhere in the source` as copy nothing renders.

The window the registry exists to cover is closed, so the exemption now
covers nothing. Nobody else owned this: the `contractSync` PR that
follows a SahajCloud merge regenerates `src/types/payload/` only.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZQf763JfgjCkPrpYc
@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 4b9f179 Nov 02 2026, 02:18 AM

@sydevs-bot

Copy link
Copy Markdown
Contributor Author

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

🤖 sydevs dispatcher

@sydevs-bot sydevs-bot moved this from Pending to Awaiting in SYDevelopers Technical Roadmap Nov 2, 2026
@sydevs-bot

sydevs-bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running

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

@sydevs-bot sydevs-bot moved this from Awaiting to Pending in SYDevelopers Technical Roadmap Nov 2, 2026
@sydevs-bot
sydevs-bot added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit 25db4a3 Nov 2, 2026
23 checks passed
@sydevs-bot
sydevs-bot deleted the claude/chore-354-drop-time-in-place-key branch November 2, 2026 21:04
@sydevs-bot sydevs-bot moved this from Pending to Done in SYDevelopers Technical Roadmap Nov 2, 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.

chore(contracts): drop the retired time_in_place translation key

3 participants