Skip to content

Fix shared input session lifecycle and expand industry lexicons - #113

Merged
IchenDEV merged 2 commits into
mainfrom
t3code/audit-project-special-case-logic
Sep 23, 2026
Merged

IchenDEV merged 2 commits into
mainfrom
t3code/audit-project-special-case-logic

Conversation

@IchenDEV

@IchenDEV IchenDEV commented Sep 23, 2026 •

Copy link
Copy Markdown
Owner

What changes

Unify input-session ownership across local hotkeys, remote microphones, imported audio and integration clients. Previously, competing entries could prepare shared resources independently; a canceled or older task could continue capture or publish a result into a newer session. The shared reservation now covers preparation through commit and draining cancellation, uses a consistent engine/settings snapshot, and scopes callbacks, cleanup, history and insertion to their owning session. Production ASR loading shares one provider. Existing local-first and optional cloud capabilities remain available.

Expand the four existing industry dictionaries from 30 to 2,030 entries each (8,120 total) using pinned, checksum-verified, MIT-licensed THUOCL common terms. Preserve curated modern terminology, aliases, corrections and personal-dictionary priority. Imported words are hints without new automatic replacements or mandatory verbatim-output constraints. Industry recognition context stays within 100 phrases; transcript-relevant LLM hints come from the full pack but are capped at 80 entries / 2,000 characters. Include the upstream license in application resources and a reproducible importer.

Validation

  • bash scripts/sdlc-checks.sh
  • bash scripts/ci-basic-checks.sh
  • swift test (final totals recorded in the verification bundle)
  • Release-style arm64 xcodebuild; verify bundled lexicon, MIT license and Metal library.
  • Deterministic lexicon checks; repeated import is byte-identical. Importer filtering/deduplication and checksum-rejection checks passed.
  • Regression coverage includes busy ownership, cancellation drain, stale callbacks, settings snapshots, clipboard cancellation, personal vocabulary priority, long-tail term selection and prompt budgets.

Review boundaries

No physical microphone/phone end-to-end test, measured ASR accuracy improvement, professional-domain review, signed installation or production acceptance is claimed. THUOCL is historical vocabulary; the curated modern entries remain. The user confirmed continuous design/implementation/verification for the session fix and subsequently requested expansion of these four dictionaries. Artifact headers do not represent approval of unseen designs or verification results. The two changes are separate commits and can be reverted independently; there is no user-data migration.

Evidence: docs/sdlc/changes/2026-09-23-input-session-ownership/ and docs/sdlc/changes/2026-09-24-industry-lexicon-expansion/.

@IchenDEV IchenDEV changed the title Fix input session ownership, cancellation, and shared ASR lifecycle Fix shared input session lifecycle and expand industry lexicons Sep 23, 2026
@IchenDEV
IchenDEV merged commit 7139f54 into main Sep 23, 2026
3 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.

1 participant