Context
--isolate-app currently fails open: when --app module (no variable) or no --app is given, the CLI only warns (or is silent) and falls back to the global registry while still returning rc==0. A user who explicitly asked for isolation gets a non-isolated spec with a success exit code — a silent correctness/security footgun. See cli.py handle_generate (isolate at L205, fallback L220-244).
Proposed semantics
--isolate-app + (no --app | --app module without variable) -> exit 1 with a clear error.
--app module:variable -> isolate as today.
- No
--isolate-app flag -> unchanged behavior.
Acceptance Checklist
References
Context
--isolate-appcurrently fails open: when--app module(no variable) or no--appis given, the CLI only warns (or is silent) and falls back to the global registry while still returningrc==0. A user who explicitly asked for isolation gets a non-isolated spec with a success exit code — a silent correctness/security footgun. Seecli.pyhandle_generate(isolate at L205, fallback L220-244).Proposed semantics
--isolate-app+ (no--app|--app modulewithout variable) -> exit 1 with a clear error.--app module:variable-> isolate as today.--isolate-appflag -> unchanged behavior.Acceptance Checklist
--isolate-appwithout a resolvable app variable exits non-zerorc==0for the module-only fallback are updatedReferences