Registry generators crash on a whitespace-only voice_style
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
The crash is in the voice_style_excerpt line of each systems/superintelligence/*/scripts/build_registry.py generator; search those scripts for voice_style to find every copy. Reproduce by building the registry with a temporary persona whose voice_style is only whitespace, and see the IndexError from splitlines()[0]. Done when every generator guards on the stripped text, the build succeeds, and that persona's excerpt is an empty string.
Written by the indexing model from the issue text.
Description
Several systems/superintelligence/*/scripts/build_registry.py generators build voice_style_excerpt like this:
(fm.get("voice_style", "") or "").strip().splitlines()[0][:160] if fm.get("voice_style") else ""
A voice_style that is only whitespace passes the guard and strips to "". Then splitlines() returns [], [0] raises IndexError, and the whole registry build stops.
Fix: guard on the stripped text, for example (lines := (fm.get("voice_style") or "").strip().splitlines()) and lines[0][:160] or "", in every generator that has this line.
Check: a temp persona with voice_style: " " builds, and its excerpt is "".
- Dominant language
- HTML
- Stars
- 347
- Forks
- 12
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 95
Getting set up
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 coco-research/coco
-
bug P2
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
coco-research/coco#539 ·
Maintainers usually reply within 1 day
-
bug P2
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
coco-research/coco#537 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
coco-research/coco#530 ·
Maintainers usually reply within 1 day
-
check-asset-counts: bare 149 tripwire collides with a real active-assets count of 149Possibly taken @aryankalantri claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
coco-research/coco#473 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
coco-research/coco#470 ·
Maintainers usually reply within 1 day
All issues in coco-research/coco
Similar issues
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
microsoft/playwright#44289 ·
Maintainers usually reply within 1 day
-
dependencies
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
JustBeanie/hass-volcano-hybrid#34 ·
Maintainers usually reply within 1 day
-
documentation good first issue trivial
Difficulty 1/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
daniel-ospina/tortoise#14235 ·
Maintainers usually reply within 1 day