Defer aggregate memory controls in HTTP maintenance mode

This commit is contained in:
2026-11-25 16:57:31 +00:00
parent ad00c12591
commit 95771ac794

View File

@@ -1,6 +1,6 @@
# Audit Remediation Discussion
Created 2026-11-24; updated 2026-11-25. Status: topics 1–4 accepted; remaining
Created 2026-11-24; updated 2026-11-25. Status: topics 1–5 accepted; remaining
topics pending discussion. No remediation implementation is recorded yet.
This document gives maintainers an ordered agenda for working through the
@@ -41,7 +41,7 @@ are proposals, not authorization to introduce new behavior.
| 2. Strengthen existing behavioral protection | 4, 7, 9–13 | Accepted 2026-11-25: strengthen tests at application boundaries, consolidate redundant scenarios, and remove incidental assertions without new runtime requirements. |
| 3. Improve startup diagnostics at the owning boundary | 8 | Accepted 2026-11-25: native explanations for listener failures, upstream-owned capture diagnostics, and independent delivery of the two improvements. |
| 4. Select HTTP connection-lifetime policy | 5 | Accepted 2026-11-25: retain existing transport behavior for trusted hosts on a trusted network; defer new timeout controls and impose no gateway requirement. |
| 5. Establish whether additional memory controls are needed | 6 | Pending |
| 5. Establish whether additional memory controls are needed | 6 | Accepted 2026-11-25: retain existing limits and document the known aggregate-memory limitation; additional controls are deferred. |
| 6. Select proportionate local cleanup | 14, 15, 17 | Pending |
| 7. Decide whether to move HTTP report ownership | 16 | Pending |
@@ -144,25 +144,19 @@ change.
## 5. Establish Whether Additional Memory Controls Are Needed
[Catalog entry 6](catalog.md#6-per-file-limits-do-not-establish-an-aggregate-memory-budget)
demonstrates a distinction between per-file and aggregate limits, not a measured
production exhaustion problem or a need for new orchestration.
**Decision — accepted 2026-11-25:** Treat
[catalog entry 6](catalog.md#6-per-file-limits-do-not-establish-an-aggregate-memory-budget)
as a known limitation with additional controls deferred, consistent with HTTP
maintenance mode. Retain existing request, per-file, response, and backend
capacity controls.
**Open questions:**
1. Is the objective capacity planning, an aggregate input cap, or a stronger
memory guarantee?
2. Which representative workloads and deployment sizes justify additional
controls beyond existing file and backend limits?
3. If acquisition limits are warranted, what belongs in PromptKit rather than
Scriptorium?
**Recommendation:** Start with representative workloads and the full resource
envelope: inputs, rendering expansion, admitted runs, output, and delivery
buffers. An aggregate input cap alone would not bound process memory. A gateway
cannot infer referenced-file bytes from request size. Prefer upstream support
for library-owned acquisition controls, and do not add a parallel admission
system or arbitrary rejection rules without an agreed requirement.
Briefly document that those controls do not establish an aggregate memory
budget; operators size trusted workloads accordingly. The finding does not
demonstrate a broken per-file limit, incorrect backend admission, or production
exhaustion incident. Add no aggregate-input setting, request-admission layer,
or new memory guarantee. No new benchmark project or upstream feature request
is warranted at this stage. Reconsider only if actual workloads expose a problem
or HTTP's operating model expands.
## 6. Select Proportionate Local Cleanup