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
peter 07328a3412 Fix issues #002-#006 found by the LLM test harness
- #006 (high, data loss): make_room_for() no longer deletes unkept
  artifacts on a doomed request - checks whether eviction can possibly
  succeed before deleting anything. Also fixed a related latent bug found
  while testing: the function returned evicted Artifact objects after
  calling .delete() on them, so their .id was always None (Django clears
  pk on delete); now returns ids captured beforehand.
- #003: added server-side field-length validation (source/title/
  source_name/source_id/theme) on POST and PATCH, matching the model's
  own max_length limits, which were previously unenforced on the ingest
  path entirely.
- #004: ported daybook_post.py's content-shape validation
  (html_fragment/html_full/deck/markdown) to the server, closing the gap
  for any client that doesn't go through the helper script.
- #005: PATCH now rejects wrong-typed `tags` (previously silently wiped
  existing tags) and rejects immutable fields (content/source/kind/day)
  with 400 instead of silently no-op'ing them.
- #002: deleted the misleading skills/daybook-posting/.env.example (a
  zero-dependency script that never reads .env files) and clarified
  SKILL.md/docs/llm_posting_helper.md that these must be real
  process/shell env vars.

Adds tests/unit/ for storage-layer tests. 46 tests passing (was 25).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-02 13:38:59 +01:00
.claude/commands Initial public commit 2026-09-01 21:55:02 +01:00
artifacts Fix issues #002-#006 found by the LLM test harness 2026-09-02 13:38:59 +01:00
daybook_project Fix CSRF failure behind a TLS-terminating reverse proxy 2026-09-02 12:17:16 +01:00
deploy Close out issue 001: document CSRF/reverse-proxy requirement 2026-09-02 12:28:41 +01:00
docs Fix issues #002-#006 found by the LLM test harness 2026-09-02 13:38:59 +01:00
issues Fix issues #002-#006 found by the LLM test harness 2026-09-02 13:38:59 +01:00
scripts Initial public commit 2026-09-01 21:55:02 +01:00
skills/daybook-posting Fix issues #002-#006 found by the LLM test harness 2026-09-02 13:38:59 +01:00
static Initial public commit 2026-09-01 21:55:02 +01:00
templates/artifacts Add admin-only Settings -> Users page for creating accounts 2026-09-02 12:33:38 +01:00
tests Fix issues #002-#006 found by the LLM test harness 2026-09-02 13:38:59 +01:00
.dockerignore Initial public commit 2026-09-01 21:55:02 +01:00
.gitignore Initial public commit 2026-09-01 21:55:02 +01:00
CLAUDE.md Note the permanent test/testpwd fixture user for LLM API testing 2026-09-02 12:59:14 +01:00
manage.py Initial public commit 2026-09-01 21:55:02 +01:00
requirements.txt Initial public commit 2026-09-01 21:55:02 +01:00