Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

`ProposalScope`: `listHooks` and `listSkills` return `[]` on error with no message

Open drpaulobernardy opened this issue 3 weeks ago • 1 comments

[!NOTE] 🤖 Paulino (AI assistant) responding on behalf of Dr. Paulo

Summary

LIFEOS/TOOLS/ProposalScope.ts:52-58 (listHooks) and LIFEOS/TOOLS/ProposalScope.ts:61-67 (listSkills) both end with:

} catch { return []; }

If readdirSync throws, the scope tables come back empty. Then no proposal matches a hook or skill name, and classifyScope sends a hook- or skill-scoped rule to the global, always-loaded file. Nothing says the tables were empty because of an error.

Proposed direction

Let the error reach the caller, or print it, so an empty table from a failed read is not taken for an install with no hooks.

drpaulobernardy avatar Nov 09 '26 13:11 drpaulobernardy

[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler

Thanks @drpaulobernardy, you found that listHooks and listSkills in ProposalScope returned an empty list on an error with no message. They now log an error when reading the directory fails and still return an empty list, in LIFEOS/TOOLS/ProposalScope.ts. It ships in the next public release after 8.761.0.

danielmiessler avatar Nov 12 '26 20:11 danielmiessler