Skip to content

chore(translations): drop the retired common.errors.captcha_blocked atlas key - #1280

Merged
Ardnived merged 5 commits into
mainfrom
chore/drop-atlas-captcha-blocked
Nov 26, 2026
Merged

Ardnived merged 5 commits into
mainfrom
chore/drop-atlas-captcha-blocked

Conversation

@Ardnived

@Ardnived Ardnived commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Drops the retired common.errors.captcha_blocked from sy-atlas-translations, so translators stop being asked for copy nothing displays.
  • Sweeps the stored copy out of the database so saving any tab keeps working.
  • Corrects the two places that still described the retired screen replacing the whole atlas: scripts/audit-challenge-parents.ts's header and docs/rules/api-clients.md's challenge-gate note.

Change outline

Schema and corpus

Prose the dropped key made stale

  • scripts/audit-challenge-parents.ts: a refused parent now costs registration and issue reports, not the atlas.
  • docs/rules/api-clients.md: the same correction beside the challenge gate.
  • tests/int/atlas-drop-captcha-blocked.int.spec.ts: drops a citation of a migration squashed away.

Data migration

  • 20261125_230000_atlas_drop_captcha_blocked calls dropEnglishKey on common_errors, in sy_atlas_translations_locales and _sy_atlas_translations_v_locales, every locale and version row.

Contract impact

Generated Payload types lose one field. SahajAtlasWeb re-syncs its snapshot (pnpm sync:translations --write, then delete its RETIRING_KEYS entry) after this merges.

Migration

  • New migration: src/migrations/20261125_230000_atlas_drop_captcha_blocked.ts
  • Impact: data only, no DDL. The key is deleted from the common_errors JSON column in the main and versions tables; the .json is the prior snapshot re-stamped.
  • Reversible: yes, down is a no-op. The old schema declares the key but requires none, so a rolled-back database is accepted. The ten stored values are not restored.

Test results

  • Lean gate (.claude/skills/pr-prep/check.sh), re-run on the merged base: ✓ lint, format, typecheck, 294 unit files / 3924 tests
  • Targeted specs: atlas-translations-schema and translations-no-a11y 69 passed; new atlas-drop-captcha-blocked.int.spec.ts 2 passed (fails with the stale key, passes after up)
  • Build: N/A

Notes for reviewer

origin/main is merged in, so the gate above ran on the merged tree.

Merge only after sydevs/SahajAtlasWeb#490 is merged and deployed: the live widget reads this key until then. The key-count assertions in atlas-translations-schema.spec.ts needed no edit; they passed unchanged.

Closes #1278

🤖 Generated with Claude Code

…tlas key

The widget no longer renders the full-page security-check error
(sydevs/SahajAtlasWeb#490); the registration form's own
registration.form.captcha_blocked (#1272) replaces it. Translators were still
asked to fill the old key in every locale.

Removes it from the schema, the ten seed files and the generated types, and
adds a data migration sweeping the stored copy out of common_errors on the
main and every version row, since the group declares additionalProperties:
false and a leftover would refuse every later save. Uses the shared
dropEnglishKey helper. down restores nothing: the old schema declares the key
but requires none.

Closes #1278

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@railway-app

railway-app Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

🚅 Deployed to the SahajCloud-pr-1280 environment in sahajcloud

Service Status Web Updated
SahajCloud 😴 Sleeping (View Logs) Web Nov 26, 2026 at 12:56 am UTC
1 service not affected by this PR
  • mailpit

@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1280 November 25, 2026 23:49 Destroyed
@sydevs-dispatcher

sydevs-dispatcher Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

🤖 no session running

recent dispatches
  • 00:17Z address-review · attempt 1 · session · done
  • 00:17Z address-review · attempt 1 · session
  • 00:09Z review-pr · attempt 1 · session · done
  • 00:09Z review-pr · attempt 1 · session

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

@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 26, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 26, 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

The diff is the size of the ticket: one key out of the schema, ten seeds, the generated type, a data-only sweep. No layer is added — dropEnglishKey is reused over hand-written SQL, and the .json is re-stamped as src/migrations/AGENTS.md asks. Dropping the ticket's step 3 was right: those counts are floors.

Ordering is the live risk and the body names it: #490 is open, and Fallbacks.tsx:257 on its main still reads this key. ## Contract impact names one of two consumers though: WeMeditateWeb commits the same generated file, and its copy carries the key at types/payload/payload-types.ts:8993.

Findings

  • should-fix — scripts/audit-challenge-parents.ts:5 still says a refused parent makes the widget show error.captcha_blocked "in place of the whole atlas". #490 removes that screen, so the header describes a system now gone. No thread: the file is outside the diff.
  • should-fix — tests/int/atlas-drop-captcha-blocked.int.spec.ts:8 cites a precedent that does not exist.
  • consider — the spec's second case re-pins english-key-backfill.int.spec.ts.

What was checked

Read whole on the branch: the migration, englishKeyBackfill.ts and its spec, the new spec, the common.errors group (additionalProperties: false, 15 keys left), atlas-translations-schema.spec.ts. new-pieces.mjs: NONE — no streamliner ran, and the ladder had no piece or dependency to walk. Snapshot byte-identical to 20261125_191844_merge_snapshot_heal, id included, as 035055/035100 was. Consumers followed: Fallbacks.tsx, use-turnstile-guard.ts, SahajAtlasWeb's RETIRING_KEYS, WeMeditateWeb's types. git grep captcha_blocked: one leftover, above; registration.form.captcha_blocked untouched. Every path the body names exists. No ## Preview owed, nothing under fixture.surfacePaths, no question threads.

🤖 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 26, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Pending in SYDevelopers Technical Roadmap Nov 26, 2026
@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 26, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 26, 2026
`atlas-drop-time-in-place` names nothing in this repo: the migration was
squashed away, and it never had a spec, so it was never prior art for
importing a migration's `up`. The `withSchema` sentence carries the whole
why on its own.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjVGVci3ZHbyqR2fem6
The header described `error.captcha_blocked` replacing the whole atlas.
sydevs/SahajAtlasWeb#490 retires that screen: the atlas renders, and only
registration and issue reports are refused.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjVGVci3ZHbyqR2fem6
The retired screen replaced the whole atlas. sydevs/SahajAtlasWeb#490
leaves the atlas rendering and refuses only registration and issue
reports, so the line beside the challenge gate said more than is true.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjVGVci3ZHbyqR2fem6
@sydevs-bot

Copy link
Copy Markdown
Contributor

Addressed the critic's three findings. origin/main merged in clean, so the gate ran on the merged tree.

Adopted

  • Spec cites a squashed-away migration — 0faa124 cuts the parenthesis.
  • Review body, scripts/audit-challenge-parents.ts:5 — 2792fe7: a refused parent costs registration and issue reports, not the atlas.
  • The same stale claim at docs/rules/api-clients.md:260 — 5a5e7c8. The docs sweep found it.

Rebutted

  • Second case re-pins the backfill spec — that spec drops a different triple, called directly. This case alone pins this migration's arguments, and that up clears the refusal above it.

Gate green, plus atlas-drop-captcha-blocked.int.spec.ts 2 passed.

🤖 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 26, 2026
@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1280 November 26, 2026 00:27 Destroyed
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Pending in SYDevelopers Technical Roadmap Nov 26, 2026

@sydevs-dispatcher sydevs-dispatcher Bot left a comment

Copy link
Copy Markdown

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-dispatcher sydevs-dispatcher Bot moved this from Pending to Awaiting in SYDevelopers Technical Roadmap Nov 26, 2026
@Ardnived
Ardnived added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit bde82ec Nov 26, 2026
19 checks passed
@Ardnived
Ardnived deleted the chore/drop-atlas-captcha-blocked branch November 26, 2026 02:08
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Awaiting to Done in SYDevelopers Technical Roadmap Nov 26, 2026

This branch was successfully deployed

No deployments
sahajcloud / SahajCloud-pr-1280 — 5a5e7c8e Deployed Nov 26, 2026 by railway-app[bot]
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(translations): drop the retired common.errors.captcha_blocked atlas key

3 participants