gap-fill: a typed slot is written by its alias, losing the type
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- localization, tooling
Research direction
Start with tools/translate_locale.py at the per-option slot assertion, then inspect ovos_spec_tools.expand using the provided Python reproduction. Trace how typed slots are rendered and retained when locale lines are written. Done means typed reference spellings are preserved, unmatched slots are refused, and locale_gate.py slot_survival passes across the affected drafted locales.
Written by the indexing model from the issue text.
Description
Auto-generated by Claude Opus 5 for the localize lane, from task T-6290.
Observed
A locale the gap-fill route drafts writes a typed slot by its alias alone, so
the type is lost.
OpenVoiceOS/ovos-skill-alerts locale/en-US/intent/create_timer.intent line
1 declares {duration:duration}. The fa-IR file the route drafted carries
{duration}. The same loss on two more spellings of the same skill:
{date:time} became {time}, and {number:priority} became {priority}.
locale_gate.py slot_survival reads the result as "uses slot(s) en-US does not
declare", in 6 files of that one skill.
Measured on ovos-skill-alerts fa-IR, 184 files: 161 slots in 5 files written
untyped. Restored by hand in OpenVoiceOS/ovos-skill-alerts#376, keyed on the
alias, after which slot_survival passes.
Expected
The written line carries the reference spelling {name:alias}. A line whose
slot matches no reference declaration is refused, as a line that loses a slot
already is.
Reproduce
python3 -c "from ovos_spec_tools import expand; print(expand('(set|start) a timer for {duration:duration}'))"
The expansion renders the slot as {duration}. tools/translate_locale.py
then reads the slots of the EXPANDED option, keeps them verbatim through the
translator, and asserts the same set back. The assertion holds, because the
type was gone before the translator saw the line. Nothing in the route compares
the written line against the reference spelling.
Where
tools/translate_locale.py, the slot assertion around the per-option
translation, and ovos_spec_tools.expand which renders the alias.
Every locale the route has drafted from a reference with a typed slot carries
this, so the repair is a sweep, not one skill.
🤖 Generated with Claude Code
- Dominant language
- Python
- Stars
- 8
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenVoiceOS/ovos-localize
-
Difficulty 1/5 Under an hour Newbie friendliness 76/100
OpenVoiceOS/ovos-localize#690 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
OpenVoiceOS/ovos-localize#657 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
OpenVoiceOS/ovos-localize#635 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
OpenVoiceOS/ovos-localize#593 · 2 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
OpenVoiceOS/ovos-localize#579 · 1 comment ·
All issues in OpenVoiceOS/ovos-localize
Similar issues
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gke-labs/kube-agents#7441 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
bug confirmed issue
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
open-webui/open-webui#35142 · 1 comment ·
Maintainers usually reply within 1 day