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
[Bug]: an empty, unparseable or missing --policy file answers "Operation failed" without naming it #847
In the proof this happened for real: a test wrote urlcode permissions stdout to the policy file, permissions had failed (a sandboxed route imported node:sqlite transitively), so the file was empty and the next validate said only "Operation failed".
Relevant output
{"event":"error","message":"Operation failed; check project files, module dependencies and command options"}
{"event":"error","message":"Operation failed; check project files, module dependencies and command options"}
{"event":"error","message":"Required file or directory not found"}
Expected: name the --policy file and say it is empty, not JSON, or missing, as the schema-level refusal already does ({"version":1,"projectSha256":"abc","routes":{}} answers "Policy requires version 1 and projectSha256"). Same class as #581/#714, but on the operator policy path. Not checked for serve/test/audit, which take the same flag.
Fixed in #849: an empty, unparseable or missing policy file now names the file (policy-missing / policy-invalid). Tested in test/validation-context.test.ts.
Fixed in #849. On current main (after #899), an empty, unparseable or missing --policy file each gets a named, specific message (policy-invalid / policy-missing): "… is empty", "… is not valid JSON", "… does not exist", plus how to fix it. I re-checked all three cases today.
Activity
jimhoyd commentedon Sep 28, 2026
Fixed in #849: an empty, unparseable or missing policy file now names the file (
policy-missing/policy-invalid). Tested intest/validation-context.test.ts.Pass the operator's reviewed policy to inspection commands and the au…
Run the authoring MCP server on the official MCP SDK (#846, stdio) (#850
jimhoyd commentedon Sep 29, 2026
Fixed in #849. On current main (after #899), an empty, unparseable or missing
--policyfile each gets a named, specific message (policy-invalid/policy-missing): "… is empty", "… is not valid JSON", "… does not exist", plus how to fix it. I re-checked all three cases today.