Skip to content

fix(pulse): point the business freshness pill at WORK/YOUR_COMPANIES - #2104

Open
pai-scaffolde wants to merge 1 commit into
danielmiessler:mainfrom
pai-scaffolde:fix/c-business-freshness-path
Open

fix(pulse): point the business freshness pill at WORK/YOUR_COMPANIES#2104
pai-scaffolde wants to merge 1 commit into
danielmiessler:mainfrom
pai-scaffolde:fix/c-business-freshness-path

Conversation

@pai-scaffolde

Copy link
Copy Markdown

Reproduced on a fresh LifeOS 7.40.4 install (macOS, Claude Code in the Claude desktop app); the fix was applied to that install and run there before filing.

Observed

Pulse business tab freshness pill: "no sources on disk" / tier unknown, forever, while USER/WORK/YOUR_COMPANIES/ (README.md, AOS.md, SAMPLE_COMPANY/) is present and observability.ts reads it fine.

Root cause

LIFEOS/PULSE/modules/tab-freshness.ts:76 registers the business tab's only source as USER/BUSINESS. The shipped USER scaffold has no BUSINESS/; business data lives at USER/WORK/YOUR_COMPANIES — the path observability.ts uses (BUSINESS_DIR = join(USER_DIR, "WORK", "YOUR_COMPANIES")) and the layout #1720 made canonical. The two Pulse readers disagreed and the pill read the one that never exists.

Fix

Register WORK/YOUR_COMPANIES/ (expand: direct .md children, as the other entries). Other stale USER/BUSINESS mentions in docs (CurationCoverage.md, SecurityClassification.md) are documentation and left alone here.

How tested

Probe: HOME pointed at a temp dir holding a copy of the shipped install/USER scaffold, GET /api/tab-freshness?tab=business through the module's handleRequest:

unpatched: {"label":"no sources on disk","tier":"unknown","perFile":["BUSINESS/:unknown"]}
patched:   {"label":"2 of 2 sources dated","tier":"fresh","perFile":["WORK/YOUR_COMPANIES/AOS.md:mtime","WORK/YOUR_COMPANIES/README.md:mtime"]}

Transpiles (bun build --target=bun --no-bundle). On the live install the pill now reports the dated sources after a Pulse restart.

🤖 Generated with Claude Code

tab-freshness.ts registered the business tab's only source as
USER/BUSINESS. The shipped USER scaffold has no such directory: business
data lives at USER/WORK/YOUR_COMPANIES (the installer layout, canonical
per issue danielmiessler#1720), which is also what observability.ts reads (BUSINESS_DIR).
So on every install the pill reported "no sources on disk" / unknown.

Register the directory that exists.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant