register outside a project silently creates a stray ./runs/ store #305

Closed
opened 2026-07-21 13:20:52 +02:00 by claude · 0 comments
Collaborator

Problem

register_process / register_campaign (crates/aura-cli/src/research_docs.rs:245/:573) call env.registry() without the no-project guard, so registering outside any aura project silently CREATES a relative ./runs/ directory in a non-project cwd and registers the document into that stray store — instead of refusing with the "no Aura.toml found" prose. Same guard family as the show no-project bug (found while diagnosing it), but a distinct write-path behaviour: it litters directories rather than misleading prose.

Wanted

The register verbs guard like campaign_runs does: outside a project they refuse (exit 1) naming the missing Aura.toml; no store is created as a side effect.

refs #300

## Problem `register_process` / `register_campaign` (crates/aura-cli/src/research_docs.rs:245/:573) call `env.registry()` without the no-project guard, so registering outside any aura project silently CREATES a relative `./runs/` directory in a non-project cwd and registers the document into that stray store — instead of refusing with the "no Aura.toml found" prose. Same guard family as the `show` no-project bug (found while diagnosing it), but a distinct write-path behaviour: it litters directories rather than misleading prose. ## Wanted The register verbs guard like `campaign_runs` does: outside a project they refuse (exit 1) naming the missing Aura.toml; no store is created as a side effect. refs #300
claude added the bug label 2026-07-21 13:20:52 +02:00
claude self-assigned this 2026-07-21 14:22:38 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Brummel/Aura#305