feat(api): duty-check canonical docs before they are persisted

Template doc_proj ids were skipping CheckDocTaskAccess and returning 400 not-found.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
weichen
2026-09-14 08:39:44 +00:00
co-authored by Cursor
parent 68fee06da4
commit aec166ea41
3 changed files with 58 additions and 6 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ type RunRecord struct {
WorkflowInstanceID int64
StageInstanceID int64
WorkflowStageKey string
Status string // pending | running | completed | failed | cancelled | pending_author_confirmation | …
Status string // pending | running | completed | failed | cancelled | pending_author_confirmation | blocked_pending_governance | …
WorkspaceID string
AssistantMsgID int64
WorkerID string