Files
PaperClipAI/server/src/services/native-runtime
Dotta 2facb5ea59 fix(trust): enforce quarantine on revision/plan reads, restore, and reader verification
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.
2026-12-03 09:16:38 -06:00
..
…