Phase 4: POST /api/v1/facts #6

Merged
k.renner merged 1 commits from feat/facts into main 2026-09-24 14:51:05 +00:00
Member

Agents deposit a verified fact and the service writes it as raw/<date>-<slug>.md with provenance frontmatter through the store's create operation (DepositFactUseCase, already in Application). The endpoint is behind the API-key policy; captured_by is the key's name. kind must be fact, content at least 40 characters; anything else is 422. Host test covers 401, both 422 cases and a stored file. 110 tests green.

Needs the write-capable Gitea token (homelab #948). Notes side: bin/wiki_fact.py posts a fact through the machine door; the wiki-ingest agent uses it for short facts.

🤖 Generated with Claude Code

Agents deposit a verified fact and the service writes it as `raw/<date>-<slug>.md` with provenance frontmatter through the store's create operation (`DepositFactUseCase`, already in Application). The endpoint is behind the API-key policy; `captured_by` is the key's name. `kind` must be `fact`, content at least 40 characters; anything else is 422. Host test covers 401, both 422 cases and a stored file. 110 tests green. Needs the write-capable Gitea token (homelab #948). Notes side: `bin/wiki_fact.py` posts a fact through the machine door; the wiki-ingest agent uses it for short facts. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
claude-bot added 1 commit 2026-09-24 14:29:54 +00:00
facts: POST /api/v1/facts deposits a raw source through the store, attributed to the API key
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
35887a9cbf
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
k.renner merged commit 49e4c9893f into main 2026-09-24 14:51:04 +00:00
k.renner deleted branch feat/facts 2026-09-24 14:51:05 +00:00
Sign in to join this conversation.