weichen and Cursor
9f6401847d
fix(docgov): release human lease after PATCH request
...
Request-scoped defer release after authorized acquire so success/409/projection failure cannot leave a 15m residual that blocks squad runs.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-13 18:42:44 +00:00
weichen and Cursor
7b48ca2ecc
fix(docgov): assert edit duty before lease; project via SaveDocumentContent
...
Unauthorized actors no longer grab leases; controlled PATCH projects through
DocGov so author_last_edited and audit survive, with idempotent retry on failure.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-13 09:32:08 +00:00
weichen and Cursor
75ec8785f3
fix(api): assert edit rights before ledger, then project body
...
Prevent fact-source writes ahead of ledger commit; projection failures return
DOCUMENT_PROJECTION_FAILED while keeping the ledger authoritative.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-13 09:27:07 +00:00