From f343b026bdd5f708efe2f74b1462f4e9155d3125 Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Wed, 25 Nov 2026 14:41:16 +0000 Subject: [PATCH] Record accepted startup diagnostic direction --- docs/roadmap/audit/discussion.md | 37 +++++++++++++++++--------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/docs/roadmap/audit/discussion.md b/docs/roadmap/audit/discussion.md index 09f7073..f74644f 100644 --- a/docs/roadmap/audit/discussion.md +++ b/docs/roadmap/audit/discussion.md @@ -1,6 +1,6 @@ # Audit Remediation Discussion -Created 2026-11-24; updated 2026-11-25. Status: topics 1–2 accepted; remaining +Created 2026-11-24; updated 2026-11-25. Status: topics 1–3 accepted; remaining topics pending discussion. No remediation implementation is recorded yet. This document gives maintainers an ordered agenda for working through the @@ -35,7 +35,7 @@ are proposals, not authorization to introduce new behavior. | --- | --- | --- | | 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 | 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 | Pending | +| 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 | Pending | | 5. Establish whether additional memory controls are needed | 6 | Pending | | 6. Select proportionate local cleanup | 14, 15, 17 | Pending | @@ -90,29 +90,32 @@ than broadly expanding the test inventory. Preserve distinct privacy and retry checks when consolidating capacity tests. Retain exact wording assertions only where wording is expressly contractual; -constructor-failure coverage must not prescribe the pending diagnostic design. +constructor-failure coverage must not prescribe new diagnostic wording. The numeric representation assertion belongs with the precision correction in topic 1. Avoid coverage quotas, exhaustive upstream test matrices, new runtime limits, and tests that silently establish resource or disclosure guarantees. ## 3. Improve Startup Diagnostics At The Owning Boundary -**Recommendation:** Split [catalog entry 8](catalog.md#8-cli-startup-failures-hide-actionable-resource-context) -into two responsibilities rather than designing one universal error renderer. +**Decision — accepted 2026-11-25:** Address +[catalog entry 8](catalog.md#8-cli-startup-failures-hide-actionable-resource-context) +through the component that owns each failure. -- Application-owned listener failures: provide deliberate, safe address and - failure-category context through native CommandKit explanations. -- PromptKit capture failures: establish a supported structured diagnostic path - through PromptKit and ckprompt, requesting upstream support if needed. Native - PromptKit commands should benefit alongside application commands. +- Application-owned listener failures: identify the selected address and a + useful failure category through native CommandKit explanations, using typed + error information where available. Deliver this improvement independently + of framework diagnostic support. +- PromptKit capture failures: seek upstream-provided resource identity or + configuration location and a useful explanation. PromptKit owns the supported + diagnostic representation and safe content; ckprompt supplies native + presentation. Native PromptKit commands should benefit alongside application + commands. -**Open questions:** - -1. Which resource identifiers and failure categories should operators receive? -2. Can the selected public APIs supply and render that information safely, or - is an upstream extension needed? -3. Should the local listener improvement proceed independently while framework - support is investigated? Recommendation: yes. +**Upstream follow-up:** Verify whether the selected public APIs can supply the +structured capture information and ckprompt can present it. If support is +missing, prepare an upstream feature request and defer that portion until +supported. The exact upstream API remains to be determined; do not build a +Scriptorium-owned framework-error interpreter. Retain typed causes and current statuses. Do not parse error prose, print arbitrary causes, or move resource capture into configuration inspection.