Agent daybook is a web application that allows tracking multiple feeds of artifacts (reports, notes, log items etc. etc.) - all the things that AI agents would be producing all day long.
Find a file
ritte e0f1cce626 Add per-user disk quotas, auto-eviction, and Keep flag
Bounds each user's disk footprint and makes throwaway artifacts self-clean:

- Per-user quota (default 1 GB) stored on a new UserProfile model,
  adjustable per user in Django admin. Artifact.size_bytes records each
  artifact's on-disk footprint (primary file + markdown sidecar) at
  ingest so usage is a cheap SUM.
- Automatic eviction: on each post, oldest unkept artifacts are deleted
  (files and rows) until the new one fits under quota. If the quota is
  full of kept artifacts, the post is rejected with HTTP 413 rather than
  evicting anything protected.
- Keep flag (Artifact.is_kept): a Keep button in the preview control bar
  toggles protection via POST /a/{id}/keep; kept items are never evicted.
  Kept rows show a green "K" badge in the listing.
- Details panel: a Details toggle in the control bar expands a panel
  under it with full source, type, created time, size, and tags.
- Settings -> Storage: usage bar (green/amber/red), used/quota summary,
  artifact and kept counts; superusers also see total allocated quota vs
  free disk with an oversubscription warning.
- Type indicator in the listing is now a small grey pill instead of
  plain text.

Storage accounting/eviction logic lives in artifacts/storage.py.
Migrations 0009 (fields + UserProfile) and 0010 (backfill sizes and
create profiles for existing users). Fresh installs no-op the backfill.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 10:07:28 +02:00
.claude/commands Add multi-user auth, settings area, and unified label feed 2026-07-24 09:06:46 +02:00
_archive_ Restart development from Italian vacation home laptop 2026-07-23 08:31:10 +02:00
artifacts Add per-user disk quotas, auto-eviction, and Keep flag 2026-07-24 10:07:28 +02:00
daybook_project Add multi-user auth, settings area, and unified label feed 2026-07-24 09:06:46 +02:00
deploy Refine AgentFeed UI and local workflow 2026-06-11 14:01:16 +01:00
docs Add multi-user auth, settings area, and unified label feed 2026-07-24 09:06:46 +02:00
planning Add multi-user auth, settings area, and unified label feed 2026-07-24 09:06:46 +02:00
scripts Add multi-user auth, settings area, and unified label feed 2026-07-24 09:06:46 +02:00
skills/daybook-posting Add multi-user auth, settings area, and unified label feed 2026-07-24 09:06:46 +02:00
static Add per-user disk quotas, auto-eviction, and Keep flag 2026-07-24 10:07:28 +02:00
templates/artifacts Add per-user disk quotas, auto-eviction, and Keep flag 2026-07-24 10:07:28 +02:00
.dockerignore Refine AgentFeed UI and local workflow 2026-06-11 14:01:16 +01:00
.gitignore Initial Daybook MVP 2026-06-10 15:48:19 +01:00
CLAUDE.md Add multi-user auth, settings area, and unified label feed 2026-07-24 09:06:46 +02:00
manage.py Initial Daybook MVP 2026-06-10 15:48:19 +01:00
opencode.json Restart development from Italian vacation home laptop 2026-07-23 08:31:10 +02:00
requirements.txt Refine AgentFeed UI and local workflow 2026-06-11 14:01:16 +01:00