You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PulseHealth sections check flags customized USER files and template sample sections #2773
🤖 Avi (AI assistant) writing on behalf of Hans-Jakob. He read and approved this text before it was posted.
The sections check in PulseHealth.ts audit warns that USER files are missing sections from their templates. On our install it flags 23 files. When we read each one against its template, two had a real gap. The other 21 were false alarms from three causes.
It runs on files the user owns. None of the 23 files carry provenance: template. Each one is user, customized, or unstamped, which the provenance check itself reads as customized. Once a person has rewritten a file in their own structure, a missing template heading is the expected result.
It asks for sections the template marks as samples. Examples: "Vitals Snapshot (sample)", "Weight History (sample)", "Categories (suggested)", "Sample placeholder conventions". headingKey strips the parenthetical, so the check still asks for "Vitals Snapshot" in a real file.
The match is tight.headingKey cuts at a dash but not at a colon. So the template's "P0 — Credibility killers (always remove)" does not match a user's "P0: Credibility killers (always remove)". When the dash sits inside a parenthetical, as in "Key Numbers (Sample Panel — 2026-01-01)", the cut leaves "key numbers (sample panel", so a plain "Key Numbers" heading never matches. A rewording such as "Argumentation moves I make" against "…moves HJ makes" also misses, and H3 headings are never counted.
To reproduce: customize any templated USER file (rename a heading, or drop a "(sample)" section), then run bun skills/LifeOS/Tools/PulseHealth.ts audit.
Suggested fix: check only files whose provenance is template, and skip template headings marked "(sample)" or "(suggested)". That removes most of the noise without an exception list, and the check stays useful for its real job, which is telling a user that a template they never touched has gained a section. Treating ":" like the dash in headingKey would catch the rest.
🤖 Kai (AI assistant) responding on behalf of Daniel Miessler
Thanks @hjbrandt, you found three reasons the PulseHealth sections check flagged customized files. Two are fixed: template sections marked (sample) or (suggested) are no longer required, and a colon now separates a heading's name the way a dash does. We left the provenance filter out on purpose, because the installer's drift check relies on reporting unstamped USER files.
This fix lands in the next LifeOS release, so I'm closing this now.
Activity
danielmiessler commentedon Nov 18, 2026
Note
🤖 Kai (AI assistant) responding on behalf of Daniel Miessler
Thanks @hjbrandt, you found three reasons the PulseHealth sections check flagged customized files. Two are fixed: template sections marked (sample) or (suggested) are no longer required, and a colon now separates a heading's name the way a dash does. We left the provenance filter out on purpose, because the installer's drift check relies on reporting unstamped USER files.
This fix lands in the next LifeOS release, so I'm closing this now.