Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

[bug] Transcription hardcodes language en; MigrateScan mislabels other scripts

Open IvanLeontev-stack opened this issue 1 week ago • 2 comments

What happened

8.761.0: the transcription tools hardcode language en, and MigrateScan reports non-English prose as having no clear home

Summary

In 8.761.0, two more places assume English input. Neither is a request for a localization layer (#2230, #1706).

Environment: clean checkout of tag v8.761.0, bun 1.4.4, macOS. Commands run from the repo root.

1. Transcription tools declare every recording as English

Where:

  • LifeOS/install/LIFEOS/TOOLS/ExtractTranscript.ts:179
  • LifeOS/install/LIFEOS/TOOLS/SplitAndTranscribe.ts:142

Both pass this to openai.audio.transcriptions.create:

      language: "en",

Neither tool has an option to change it.

Repro: transcribe a short non-English recording:

bun LifeOS/install/LIFEOS/TOOLS/ExtractTranscript.ts clip.m4a
  • Expected: text in the spoken language.
  • Not run here: it is a paid API call. The API documents language as the language of the input audio, so the tools hand Whisper a wrong hint for every non-English file.

On 8.761.0 both tools first fail to import openai, which is not declared for LIFEOS/TOOLS. That is a separate packaging problem and not part of this report.

Minimal fix: drop language so Whisper detects it. Alternatively, add a --language <iso-639-1> option that is passed through, with no default.

2. MigrateScan routes non-English prose to UNCLEAR with "no patterns matched"

Where:

  • Rules at LifeOS/install/LIFEOS/TOOLS/MigrateScan.ts:107-148. They are mostly English keywords with \b; a few match symbols such as currency.
  • Fallback at line 232:
    return { target: "UNCLEAR" as Target, confidence: 0, reasons: ["no patterns matched"], alternatives: [] };

Repro (--dry-run writes nothing):

printf '## Цели\n\nМоя цель на этот год: выучить испанский и прочитать двадцать книг.\n\n## Убеждения\n\nЯ верю, что привычки важнее мотивации.\n\n## Здоровье\n\nСон 8 часов, прогулка каждый день, тренировки два раза в неделю.\n' | bun LifeOS/install/LIFEOS/TOOLS/MigrateScan.ts --stdin --dry-run
printf '## Goals\n\nMy goal for this year: learn Spanish and read twenty books.\n\n## Beliefs\n\nI believe habits matter more than motivation.\n\n## Health\n\nSleep 8 hours, a walk every day, exercise twice a week.\n' | bun LifeOS/install/LIFEOS/TOOLS/MigrateScan.ts --stdin --dry-run
  • Expected: comparable routing for both.
  • Actual: the Russian text gives 2 chunks, both UNCLEAR, with Avg confidence: 0%. The English text gives 3 chunks routed to TELOS/GOALS.md, TELOS/BELIEFS.md and TELOS/IDEAL_STATE/HEALTH.md, with Avg confidence: 28%.

The fallback is safe, since UNCLEAR goes to the principal. The problem is that "no patterns matched" reads as "this content has no clear home", when in fact no keyword rule can match text in this language.

Minimal fix (no translated keyword lists, given #2230):

  • When most letters in a chunk fall outside ASCII, give a reason such as "keyword rules cover English only". The walk-through in skills/Migrate/SKILL.md:90 can then classify by reading. This does not change routing, and it does not cover non-English text written in ASCII letters; it only makes the fallback honest for other scripts.

Checked and left out

  • IsaAlign.ts:123 CLEAN_YES is English only. Already fixed via #2595 / #2679 for the next release.

Details

  • Kind: bug
  • LifeOS version: 8.761.0

Filed with the LifeOS /feedback command. The reporter approved this exact text before it was sent; paths, secrets and personal details were stripped locally.

IvanLeontev-stack avatar Nov 26 '26 09:11 IvanLeontev-stack

[bug] Relay voice notes also hardcode --language en

What happened

Relay voice.ts hardcodes --language en for voice-note transcription

Summary

One more site of the same hardcoded language: LIFEOS/RELAY/bridge/voice.ts:82 passes --language en to mlx_whisper for every voice note that comes in through Relay. A voice note in another language is transcribed as if it were English.

The same fix as the two sites above applies: no --language flag (Whisper detects the language), or a configured language when one is set.

Details

  • Kind: bug
  • LifeOS version: 8.761.0

Filed with the LifeOS /feedback command. The reporter approved this exact text before it was sent; paths, secrets and personal details were stripped locally.

IvanLeontev-stack avatar Nov 28 '26 16:11 IvanLeontev-stack

[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler

Thanks for this. Feature requests and larger changes now live in Discussions under Ideas, so the issue list only tracks defects we're fixing now. I moved this one there with your full write-up: https://github.com/danielmiessler/LifeOS/discussions/3111. Nothing is lost, and that's where we'll pick it up. Closing here.

danielmiessler avatar Dec 01 '26 18:12 danielmiessler