Skip to content

Protect recently modified Dev Artifacts from cleanup - #59

Open
huntharo wants to merge 17 commits into
fix/artifact-classification-evidencefrom
feat/artifact-modification-protection
Open

huntharo wants to merge 17 commits into
fix/artifact-classification-evidencefrom
feat/artifact-modification-protection

Conversation

@huntharo

Copy link
Copy Markdown
Owner

Dev Artifacts can now exclude folders containing files modified in the last 24 hours, 48 hours, or week. Protection defaults off and starts at 48 hours when enabled. Unknown timestamps stay protected, including legacy sidecars and folder-tree fallback reports. The UI explicitly describes cached scan/refresh data, which can become stale, and directs users to Rescan trees.

Both native and JS scanners aggregate the maximum descendant file modification time (Unix milliseconds), including nested artifacts and hardlinks, into the existing sidecar. Rescan trees recalculates the maximum and marks incomplete walks unknown. Toggling only filters cached roots: no filesystem traversal or index reads. Selections clear when protection changes; every delete request and Delete all are restricted to visible eligible roots.

Stacked on #56 (fix/artifact-classification-evidence, 9b36d47), preserving its expanded classifier rules and mixed-language fixture.

Validation:

  • Typecheck and full Vitest suite: 710 passed, 3 skipped.
  • Native Rust suite: 86 passed.
  • Built Electron Dev Artifacts suite: 5 passed; focused protection test rerun after final deletion-state guard.
  • N/8N operation-count coverage for cached filtering and native aggregation; zero-read/zero-write toggle budget at 2,500 roots.
  • Integration coverage for unknown fallback data, timestamp boundaries, broad cache roots, nested hardlinks, refresh after newest-file deletion, and filtered deletion confirmation.

@huntharo
huntharo added this pull request to stack #60 September 27, 2026 17:50
@huntharo
huntharo force-pushed the feat/artifact-modification-protection branch from 97eca48 to 65160c0 Compare September 28, 2026 23:12
@huntharo
huntharo force-pushed the feat/artifact-modification-protection branch from ba7115c to 4809db0 Compare September 29, 2026 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant