show outside a project blames the id instead of the missing Aura.toml
#304
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Outside any aura project (no Aura.toml up-tree),
aura campaign show <id>/aura process show <id>refuse withaura: campaign|process <id> not found in the project store(exit 1) — asserting a project store the environment does not have and blaming the id.campaign validatein the same spot degrades honestly ("referential checks skipped (no Aura.toml found up from )"). Found by the #300 fieldtest (fieldtests/cycle-300-document-first/df_4_show_refusals.md).Cause (diagnosed)
show_process(crates/aura-cli/src/research_docs.rs:265) andshow_campaign(:586) callenv.registry()without theenv.provenance().is_none()guard their siblingscampaign_runs(:413) andvalidate_campaign_file(:564) use; the no-project fallback store returnsOk(None), indistinguishable from an unregistered id.Wanted
Both show fns guard first and refuse with the sibling prose ("… needs a project … (no Aura.toml found up from {cwd})"); the refusal exit 1 stays. RED test exists (
show_outside_a_project_names_the_missing_aura_toml_not_the_id).refs #300