Pulse: /api/life/work silently drops any PROJECTS.md row that contains the word "Project"
Version
LifeOS 7.40.4 / Pulse
What is broken
/api/life/work drops any PROJECTS.md table row that contains the capitalised word "Project" anywhere in the row, for example in a notes cell. The handler skips the header row with a substring test, so a data row that mentions the word is skipped too. The Work card on /life (which counts work.projects) then shows fewer projects than the Live Apps tab on /work, which reads the same table through parseProjects(). Nothing is logged. A row with --- in any cell is dropped the same way.
Where (file:line)
LIFEOS/PULSE/Observability/observability.ts:3002: .filter(l => l.startsWith("|") && !l.includes("---") && !l.includes("Project"))
Same test: skills/Daemon/Tools/DaemonAggregator.ts:265: if (line.includes("Project")) continue;
The reader that gets it right: LIFEOS/PULSE/modules/projects.ts:143-183 (parseProjects).
Repro on a clean tree
cd ~/.claude
bun -e '
import { parseProjects } from "./LIFEOS/PULSE/modules/projects.ts";
const md = require("fs").readFileSync("skills/LifeOS/install/USER/PROJECTS.md", "utf8")
.replace("| TS, React |", "| TS, React |\n| **Demo** | `~/code/demo` | — | — | Project notes live in the repo. |");
// the filter of handleLifeWork, copied from observability.ts:3001-3002
const lifeWork = md.split("\n").filter(l => l.startsWith("|") && !l.includes("---") && !l.includes("Project"));
console.log("handleLifeWork rows:", lifeWork.length, "| parseProjects rows:", parseProjects(md).length);
'
The script takes the shipped scaffold table, adds one row whose last cell contains the word, and runs both readers on it.
Live form of the same check: add that row to LIFEOS/USER/PROJECTS.md, then compare curl -s localhost:31337/api/life/work | jq '.projects | length' with curl -s localhost:31337/api/projects | jq '.groups[] | select(.key=="live") | .count'.
Negative control
On unpatched 7.40.4, run against the shipped payload files:
handleLifeWork rows: 1 | parseProjects rows: 2
The Demo row is in the table and parseProjects returns it. The handleLifeWork filter does not.
Suggested fix
Untested. Let handleLifeWork reuse parseProjects() from LIFEOS/PULSE/modules/projects.ts, which already finds the header row and skips separators with isSeparator(). Or skip the header and the separator by position (the first two table lines) instead of by content. The same change applies to readPublicProjects in DaemonAggregator.ts.
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: handleLifeWork dropped any PROJECTS.md row that contained the word "Project" or a --- in any cell.
Fixed in source. A new helper, projectTableRows(), decides which rows to skip by their shape instead of their content. It skips separator rows and the header row directly above a separator, and keeps everything else. Tests keep a row whose notes say "Project notes", a row with --- in a cell, and a "Project Gamma" row. With two tables, each loses only its own header. On a real install, /api/life/work went from dropping every project with "Project" in a cell to listing all of them.
This ships in the next release.