From 5da4942b30783a45ec9dc24448d22ced66012d43 Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Wed, 25 Nov 2026 14:36:54 +0000 Subject: [PATCH] Record accepted production defect remediation decisions --- docs/roadmap/audit/discussion.md | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/docs/roadmap/audit/discussion.md b/docs/roadmap/audit/discussion.md index 6f8c698..61fedc4 100644 --- a/docs/roadmap/audit/discussion.md +++ b/docs/roadmap/audit/discussion.md @@ -1,7 +1,7 @@ # Audit Remediation Discussion -Created 2026-11-24. Status: recommendations for discussion; no remediation -decisions or implementation completion are recorded yet. +Created 2026-11-24; updated 2026-11-25. Status: topic 1 accepted; remaining +topics pending discussion. No remediation implementation is recorded yet. This document gives maintainers an ordered agenda for working through the [audit catalog](catalog.md). The catalog and its source reports own the findings @@ -33,7 +33,7 @@ are proposals, not authorization to introduce new behavior. | Topic | Catalog entries | Decision | | --- | --- | --- | -| 1. Correct the production defects | 1–3 | Pending | +| 1. Correct the production defects | 1–3 | Accepted 2026-11-25: lossless numbers, pathname identity, regular-file acquisition with cooperative cancellation; upstream reader reuse is separate follow-up. | | 2. Strengthen existing behavioral protection | 4, 7, 9–13 | Pending | | 3. Improve startup diagnostics at the owning boundary | 8 | Pending | | 4. Select HTTP connection-lifetime policy | 5 | Pending | @@ -43,7 +43,7 @@ are proposals, not authorization to introduce new behavior. ## 1. Correct The Production Defects -**Recommendation:** Proceed with narrow fixes and associated regression +**Decision — accepted 2026-11-25:** Make narrow fixes with focused regression coverage for [catalog entries 1–3](catalog.md#1-restricted-file-acquisition-can-ignore-cancellation-and-stall). - Preserve large and nested provider numbers through the existing decoder's @@ -56,19 +56,22 @@ coverage for [catalog entries 1–3](catalog.md#1-restricted-file-acquisition-ca existing FIFO cannot block opening. Context checks after `os.Open` alone do not resolve that case. -**Technical question before implementing the reader fix:** Confirm that ordinary -regular-file acquisition is the intended scope. Recommendation: follow upstream -and do not add streaming/non-regular input support. Keep cooperative cancellation, -lexical containment, and byte limits; do not introduce abandoned-read goroutines, -a symlink sandbox, or an immediate-interruption guarantee. +**Reader scope:** Adopt upstream's ordinary regular-file acquisition and +cooperative cancellation semantics. Reject unsupported non-regular inputs +before opening; streaming input support is outside this remediation. Retain +lexical containment and enforce byte limits during acquisition. The existing +symlink policy remains unchanged: the OS may follow symlinks to regular files. +Do not introduce abandoned-read goroutines, a symlink sandbox, or an +immediate-interruption guarantee. -**Separate upstream opportunity:** The restricted reader mixes legitimate HTTP +**Separate upstream follow-up:** The restricted reader mixes legitimate HTTP access policy with ordinary reading and metadata mechanics. The inspected PromptKit implementation already handles relevant cancellation behavior, but -that reader implementation is internal. Consider whether a supported reusable +that reader implementation is internal. Investigate whether a supported reusable reader would reduce duplication. Any proposal must retain Scriptorium's access -and byte-limit policy; do not import or copy upstream internals, and do not make -this investigation a prerequisite for correcting the local defect. +policy and enforce byte limits during acquisition, not only after reading. +Do not import or copy upstream internals. This investigation and any upstream +release are not prerequisites for correcting the local defect. ## 2. Strengthen Existing Behavioral Protection