CyberStrikeAI/docs/en-US
Sycun 470eb5ead1
feat: add runtime storage cleanup with per-category retention (#310) (#313)
Runtime artifacts (agent workspaces, tool-output spill, C2 payloads, chat
uploads, workflow checkpoints, diagnostic logs) previously accumulated
without bound: most were only removed when a conversation or project was
deleted, and tmp/c2 plus workflow checkpoints were never removed at all.

Add a storage cleaner with named per-category tasks (Gitea-style), a
settings page tab, and a background sweep that is off by default so
upgrading never deletes existing data.

Safety properties, since mis-deleting live task data costs far more than
the disk saved:
- dry-run is the default; a real cleanup requires dry_run=false together
  with confirm=true at the API layer, not just a frontend dialog
- sessions active within active_grace_hours are always skipped, and a
  failed activity lookup skips conservatively (fail closed)
- directories whose conversation/project no longer exists are reclaimed
  as orphans after orphan_grace_days
- scanners never follow symlinks and every candidate path is confined to
  its category root; deletion renames to a .tmp-for-deletion marker first
  so a crash leaves recoverable residue instead of a half-deleted dir
- storage:* permissions are admin-only; without the grantSystemRolePermissions
  skip the default branch would have given operators an irreversible
  file-deletion right

Also fix two confirmed leaks: DeleteConversation left chat_uploads files
on disk (their rows already vanished via ON DELETE CASCADE), and workflow
checkpoints had no deletion path at all.

Co-authored-by: Parallels <parallels@kali-linux-2025-2.localdomain>
2026-09-25 14:46:23 +08:00
..
MULTI_AGENT_EINO.md Add files via upload 2026-07-07 14:04:18 +08:00
README.md Add files via upload 2026-07-21 21:04:53 +08:00
VISION.md Add files via upload 2026-07-23 19:14:09 +08:00
agent-and-role-guide.md Add files via upload 2026-07-07 14:04:18 +08:00
api-recipes.md Add files via upload 2026-07-17 17:17:10 +08:00
api-reference.md Add files via upload 2026-07-23 20:17:17 +08:00
architecture.md Add files via upload 2026-07-07 14:04:18 +08:00
asset-management.md Add files via upload 2026-07-20 16:54:50 +08:00
audit-and-monitoring.md Add files via upload 2026-07-07 14:04:18 +08:00
c2.md Add files via upload 2026-07-07 14:04:18 +08:00
configuration-profiles.md Add files via upload 2026-07-11 11:30:50 +08:00
configuration.md feat: add runtime storage cleanup with per-category retention (#310) (#313) 2026-09-25 14:46:23 +08:00
contributing-guide.md feat: manage task process lifetimes and preserve turn history 2026-09-16 17:52:58 +08:00
deployment.md Add files via upload 2026-08-18 20:41:19 +08:00
developer-guide.md Add files via upload 2026-07-07 14:04:18 +08:00
frontend-i18n.md Add files via upload 2026-07-07 14:04:18 +08:00
hitl-best-practices.md feat: add TypeSafe Jev as HITL audit backend 2026-09-22 21:15:53 +08:00
knowledge-base.md Add files via upload 2026-07-07 14:04:18 +08:00
mcp-federation.md Add files via upload 2026-07-07 14:04:18 +08:00
plugin-development.md Add files via upload 2026-07-08 14:21:10 +08:00
rbac.md Remove conversation grouping feature 2026-08-26 15:00:09 +08:00
release-process.md Add files via upload 2026-07-07 14:04:18 +08:00
robot.md Add files via upload 2026-07-10 21:35:49 +08:00
runbooks.md Add files via upload 2026-07-11 11:30:50 +08:00
security-hardening.md Add files via upload 2026-07-11 11:30:50 +08:00
security-model.md Add files via upload 2026-07-07 14:04:18 +08:00
skills-guide.md Add files via upload 2026-07-07 14:04:18 +08:00
testing.md Add files via upload 2026-07-07 14:04:18 +08:00
tool-call-guard.md feat: add configurable tool call blocking and monitoring 2026-09-08 09:44:32 +08:00
tool-execution-governance.md feat: manage task process lifetimes and preserve turn history 2026-09-16 17:52:58 +08:00
troubleshooting.md Add files via upload 2026-07-24 16:43:01 +08:00
webshell.md Add files via upload 2026-07-07 14:04:18 +08:00
workflow-graph.md Add files via upload 2026-07-31 21:06:22 +08:00