Skip to content

bug: pnpm clean can delete an authored .wesley manifest #753

Description

@flyingrobots

Problem

The native manifest discovery path accepts .wesley/config.json, but scripts/clean.mjs recursively removes .wesley. Running pnpm clean can therefore delete a supported authored project manifest, especially when the file is untracked or ignored.

Evidence

  • crates/wesley-cli/src/main.rs: discover_manifest_path includes .wesley/config.json.
  • scripts/clean.mjs: the exact cleanup directory list includes .wesley and removes it recursively with force.
  • docs/topics/artifacts-and-cache.md: slice docs(5/10): consolidate extension and target contracts #747 now discloses the hazard and protects the cross-source fact with an xtask regression.

Acceptance

  • pnpm clean preserves an authored .wesley/config.json, or fails closed with an actionable diagnostic before deletion.
  • A deterministic regression covers both the manifest candidate and cleanup behavior.
  • Artifact and manifest topics describe the resolved behavior.
  • pnpm run preflight passes.

Refs #747.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglegend:PLATFORMPlatform/infrastructure worklegend:SPECSpecification/design workv0.3.0Scheduled work for the v0.3.0 release.work:integrityRemoves lies, drift, flake, or trust debt

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions