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
Preflight: a missing ON_DEMAND module shows as '(no load-bearing rules)' instead of unreadable #461
When the manifest resolves an ON_DEMAND module whose file is missing on disk, the preflight answer (#447) behaves differently on each path:
adf context --files without --bundle:readBindingRules skips the missing file (packages/cli/src/commands/adf-preflight.ts, around line 144), and Binds prints the module as (no load-bearing rules). That reads as "this module governs the file but has nothing load-bearing". In fact the module couldn't be read at all.
With --bundle, and over MCP getProjectContext:bundleModules throws Module not found (packages/adf/src/bundler.ts, around line 54), so the command exits 2 or the MCP call returns isError.
An agent can't tell a missing module from an empty one, and the CLI and MCP disagree for the same input. Found in the adversarial review of #458.
Expected
Without --bundle, a missing module is reported under unreadable[] with reason not found, and the text line reads <module> (unreadable: not found), the same as a parse error. Exit code stays 0.
--bundle and MCP keep failing as today. Alternatively they report it the same way, but whichever behaviour is chosen must be the same for the CLI and MCP and stated in docs/cli-reference.md.
Acceptance
A fixture manifest with an ON_DEMAND entry pointing at a missing file, triggered by --files, reports the module under unreadable (non-bundle JSON) and never as (no load-bearing rules).
A test pins the --bundle / MCP behaviour for the same fixture.
Activity