mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-04 12:50:37 +01:00
Address review findings on PR #23621: - Enforce quarantine redaction (body, title, changeSummary) on non-Muse list_document_revisions (including historical low-trust revisions), get_task_context acceptedPlan/sourcePlanApproval, and document titles on list_documents/read_document. - Introduce isPositivelyLowTrustReaderForIssue so unknown or agent-mismatched reader runs fail closed (redact) instead of failing open as low-trust readers. - Normalize createdByRunId in documentService.upsertIssueDocument before resolving sourceTrust so stale run IDs on standard-trust writes do not falsely quarantine. - Resolve and persist sourceTrust in documentService.restoreIssueDocumentRevision when an agent restores a revision (including restoring a low-trust historical revision). - Add regression tests in server/src/__tests__/source-trust.test.ts.