Pulse /life: stray ** before every goal (and in the data for missions, problems, strategies) with the shipped "- **G0:** text" format
Version
LifeOS 7.40.4 / Pulse
What is broken
/life prints a stray ** in front of every goal, and /api/life/goals returns the same stray characters for missions, problems, strategies, challenges and narratives.
The shipped scaffold writes entries as - **G0:** text, with the colon inside the bold. parseGoals and the bullet branch of parseSections allow the closing ** only before the colon, so the text they capture starts with ** . parseIdEntries cleans the same lines, so /telos is fine. #2140 fixed this same format mismatch for the TELOS tab on /work.
Where (file:line)
Reader: LIFEOS/PULSE/Observability/observability.ts:2274 (parseGoals: /\*{0,2}(G\d+)\*{0,2}:\s*(.+)/) and :2328 (parseSections: /^-\s+\*{0,2}([A-Z]{1,3}\d+[a-z]?)\*{0,2}:\s*(.+)$/).
Writer: the scaffold USER/TELOS/TELOS.md (- **M0:** …, - **G0:** …, and so on).
Repro on a clean tree
cd ~/.claude && F=LIFEOS/PULSE/Observability/observability.ts
{ sed -n '2270,2289p;2291,2361p' "$F"; cat <<'EOF'
import { readFileSync } from "node:fs";
const t = readFileSync("skills/LifeOS/install/USER/TELOS/TELOS.md", "utf8");
const line = (id: string) => t.split("\n").find(l => l.startsWith(`- **${id}:**`))!;
console.log("goal :", JSON.stringify(parseGoals(line("G0"))[0]));
console.log("mission:", JSON.stringify(parseSections(line("M0"))[0]));
EOF
} > /tmp/life-asterisk-repro.ts && bun /tmp/life-asterisk-repro.ts
The script copies parseGoals and parseSections out of the shipped file by line range and runs them on the scaffold's own G0 and M0 lines.
Live form: curl -s localhost:31337/api/life/goals | jq '.goals[0].text, .mission[0].body'.
Negative control
On unpatched 7.40.4:
goal : {"id":"G0","text":"** (sample) Ship X by date Y — measurable: <criterion>."}
mission: {"heading":"M0","body":"** (sample) The one-sentence reason you do what you do."}
Both captured texts start with ** . The Active Goals list on /life shows it in front of each goal.
Suggested fix
Untested. Strip a leading ** from the captured text in both functions, or run the capture through cleanInlineMarkdown as parseIdEntries does.
Before submitting
- [x] I searched open and closed issues for this defect.
- [x] The repro runs against a clean tree of the version above, not against my modified install.
- [x] I removed personal data from the pasted output — real names, absolute home paths, tokens, my own content.
[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler
Thanks @rain77-work. You were right: with the shipped - **G0:** text format the colon sits inside the bold, so goals, missions, problems and strategies all started with a stray ** .
Fixed in source. parseGoals and the ID-bullet branch of parseSections now strip only a leading ** that is followed by whitespace, so bold inside the text, like **Ship** it, survives. The ID patterns themselves are unchanged. Tests cover - **G0:**, - **G0**:, - **G1**: **Ship** it, and the mission and problem bullets.
This ships in the next release.