Interview.md doesn't point at TELOS.md as canonical; onboarding-state check is stricter than GenerateTelosSummary, so Pulse keeps showing the template banner after a real interview
What happened
Ran a fresh install (bootstrap + /LifeOS setup + /LifeOS interview) via an AI agent following the shipped Workflows/Setup.md / Workflows/Interview.md literally. Interview step 3/4 just says "Write to TELOS/" (no specific file named), so the agent wrote real content into the split per-dimension files — TELOS/MISSION.md, GOALS.md, STRATEGIES.md, CHALLENGES.md — replacing every (sample) entry.
TELOS/PRINCIPAL_TELOS.md (generated by GenerateTelosSummary.ts) then correctly showed the real mission/goals/strategies/challenges. But the Pulse dashboard kept showing the "You're looking at template content" onboarding banner, and GET /api/onboarding/state kept returning templateMode: true — because TELOS/TELOS.md (the actual file that file's own header calls "the single source of truth... the split files ... are legacy samples") was never touched.
Root cause (two issues)
-
Docs gap —
Workflows/Interview.mdsequence steps 3/4 say "Write to TELOS/" without namingTELOS.mdspecifically, even thoughTELOS/TELOS.md's own bootstrap-template header says it's canonical and the split files are legacy. An agent following the workflow doc alone has no signal to preferTELOS.md. -
Inconsistent fallback between two readers of "the same" data —
PULSE/Observability/observability.ts,telosPersonalized()/ itssectionOrFile()helper (around thehandleOnboardingState()function,/api/onboarding/state):const sectionOrFile = (key: string, legacyFile: string): string => sections[key] || readMd(join(TELOS_DIR, legacyFile));sections[key]comes from parsingTELOS.md. If that section exists but is still sample/template text (a truthy non-empty string), the||never falls through to the populated legacy file — sorealEntries()finds 0 non-sample entries in the sample text,templateModestaystrueforever, and the DA name lookup has the same class of bug (was readingUSER/DA_IDENTITY.mdat the wrong path before, now reads the right path but a**Name:**line with any trailing parenthetical gets captured whole by the naive regex).Whatever
GenerateTelosSummary.tsdoes to produce a correctPRINCIPAL_TELOS.mdin this exact scenario evidently does fall back past sampleTELOS.mdsections to the real split files — so the two "is this personalized" checks disagree with each other on identical on-disk state.
Suggested fix
Interview.md: nameTELOS/TELOS.mdexplicitly as the file to write (or state the precedence) rather than the generic "TELOS/".sectionOrFile()/telosPersonalized(): apply the same sample-detection (SAMPLE_ENTRY_RE) toTELOS.md's own section text before trusting it, so a still-templateTELOS.mdsection correctly falls through to a populated legacy file — matching whateverGenerateTelosSummary.tsalready does.
Happy to share the exact diff of what I filled in if useful. Found via an AI-agent-driven install, reported here per the project's own convention of tracking these as public issues.
Fixed: one hasRealContent predicate now serves both Pulse readers and the summary generator, and Interview.md names TELOS.md as canonical. Next release carries it. Thanks, @NAmorim.