Skip to content

fix(auto-local): skip the quality gate for a winner outside the Latin script - #78

Merged
stephen-masters merged 1 commit into
mainfrom
fix/auto-local-non-latin-gate
Oct 24, 2026
Merged

stephen-masters merged 1 commit into
mainfrom
fix/auto-local-non-latin-gate

Conversation

@stephen-masters

Copy link
Copy Markdown
Contributor

Closes #24.

auto-local applied its English-only quality gate to every winning transcript, so a well-read Armenian page scored near zero and was triaged on every run, while batch --quality-gate already skipped the gate for a transcript outside the Latin script.

  • auto_local.ocr_image now runs the same scores_english_text guard on its winner. A non-Latin winner is returned with the gate skipped and a message on stderr, exactly as --quality-gate does; a poor Latin winner is still triaged.
  • last_choice gains a quality_gate verdict (passed or skipped, with quality set to None when skipped, since the score means nothing there). The batch manifest reads it, so the row says skipped instead of claiming the gate passed.
  • The command-line guide, which implied the skip already applied to auto-local, now says both gates apply it.

Tests: three new cases on auto_local (non-Latin winner returned and recorded as skipped, poor Latin winner still raises, good Latin winner recorded as passed) and one on the manifest. Fast suite: 423 passed; ruff clean.

Not changed, as the issue notes: auto-local still has no Armenian-aware engine in its pool, so the transcript it returns for Armenian may be poor. The gate just no longer judges it on an English score.

🤖 Generated with Claude Code

… script

The gate scores English dictionary coverage and GPT-2 perplexity, so a
well-read Armenian page scored near zero and went to triage on every
auto-local run. `batch --quality-gate` already skips the gate, with a
message, for a transcript that is not in the Latin script; auto-local's
own gate now applies the same guard to its winner, returns the
transcript, and records the skip in `last_choice` so the manifest says
`skipped` rather than `passed`. The guide no longer implies the skip
already applied to auto-local.

Closes #24

Co-authored-by: Yvette Mankerian <yvettekm@gmail.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Deploying tetrak with  Cloudflare Pages  Cloudflare Pages

Latest commit: fac673a
Status: ✅  Deploy successful!
Preview URL: https://f02eb12f.tetrak.pages.dev
Branch Preview URL: https://fix-auto-local-non-latin-gat.tetrak.pages.dev

View logs

@stephen-masters
stephen-masters merged commit 6abf028 into main Oct 24, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

auto-local triages every non-Latin transcript

1 participant