feat: add post-generation document validation (fixes #41) #138

Closed
agent-bot wants to merge 1 commit from agent-bot/feat/document-validation-41 into main AGit
Collaborator

Validates AI-generated documents before database storage: checks for non-empty
content, minimum length, required section headers per document type, and raw
prompt/template leakage. Returns 502 with actionable error on failure and logs
redacted content for debugging.

Closes #41

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

Validates AI-generated documents before database storage: checks for non-empty content, minimum length, required section headers per document type, and raw prompt/template leakage. Returns 502 with actionable error on failure and logs redacted content for debugging. Closes #41 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Validates AI-generated documents before database storage: checks for non-empty
content, minimum length, required section headers per document type, and raw
prompt/template leakage. Returns 502 with actionable error on failure and logs
redacted content for debugging.

Closes #41

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Owner

Closed 2026-04-10 during pipeline triage.

Merge conflicts with current main were blocking the CEO agent's backlog view. The compliancebot repo had ~60 open PRs and 141 open agent-task issues. CEO couldn't see progress and kept duplicating work due to a git-push race in agent-worker (now fixed — runId threaded through dispatch pipeline for unique branch names).

Reopen / resubmit against current main if the work is still relevant. Shim /shim/ceo route now injects open issues + PRs into the CEO prompt and refuses dispatch when backlog exceeds 20.

Closed 2026-04-10 during pipeline triage. Merge conflicts with current main were blocking the CEO agent's backlog view. The compliancebot repo had ~60 open PRs and 141 open agent-task issues. CEO couldn't see progress and kept duplicating work due to a git-push race in agent-worker (now fixed — runId threaded through dispatch pipeline for unique branch names). Reopen / resubmit against current main if the work is still relevant. Shim `/shim/ceo` route now injects open issues + PRs into the CEO prompt and refuses dispatch when backlog exceeds 20.
pook closed this pull request 2026-04-10 15:08:16 -04:00

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pook/compliancebot!138
No description provided.