Skip to content

Delete redesign, step 1: profile lock, identity and trash building blocks #826

In review

Description

@harenome

Priority

P3

Components

app/nullius/paths.py, app/nullius/ondisk.py, a new trash module under app/nullius/

Today

There is no profile-wide lock, no identity value for a workspace or a run generation, and no trash format.

Wanted

Building blocks only; nothing calls them yet and nothing is deleted:

  • paths.profile_lock() in the user data directory; recording and checking which profile owns a workspaces folder; an optional time limit for ondisk.locked shared across several locks.
  • A workspace identity value (UID, folder device and inode; created for workspaces without a UID) and a run generation comparison.
  • The trash path <root>/.trash/<kind>/<name>.<token>/, a check that keeps the configured roots' trash out of discovery, validation of an entry's intent.json, and one collector per kind at a time.

Acceptance

  • The lock, identity, trash path, intent validation and collector lock exist with tests (two processes included)
  • No existing behaviour changes

Dependencies and related

Part of #825.

Activity

  1. added
    enhancement
    P3
    on Dec 3, 2026
  2. added theissue type on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions