Skip to content

[EPIC] Safety layer (S1-S14) #7

@kirich1409

Description

@kirich1409

Context

Implements safety invariants S1-S14. Centralises all destructive operations in Remover, enforces GlobalDenyList, TOCTOU atomicity, input-validation grammars, output sanitisation. XL scope — decomposed into 8 child tasks.

Goals

  • Remover actor — single destructive path (S1).
  • TrashService through FileManager.trashItem in DevsweepCorePrivate.
  • GlobalDenyList static and comprehensive (S2).
  • TOCTOU re-validation via openat O_NOFOLLOW + unlinkat (S4).
  • displaySafe sanitisation (S9).
  • Input-validation grammars (S14).
  • --allow-danger argv-only + non-TTY abort (S12).
  • SymlinkPolicy enforcement (S3).

Child tasks

Will be added as sub-issues after task batch.

Exit criteria

  • All AC covering S1-S14 pass.

Related documents

  • Research report §Safety engineering S1-S14

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:safetySafety invariants (S1-S14)safety:destructiveTouches destructive code pathstype:epicContainer issue grouping related tasks

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions