# Post-Implementation Review Findings Reviewed 2026-11-25 at `a949f23a87dc581e6beff400f440e09afcb23969`, against the nine stages in [implementation.md](implementation.md) and the accepted [remediation target](audit-remediation.md). Changes reviewed begin after `6beddde`. The review itself implemented no fixes; subsequent remediation is recorded by the completion markers below. ## 1. Non-Generation HTTP Errors Still Pin Noncontractual Sentences (P3) **Status: complete.** Removed complete-sentence expectations from the HTTP error mapping table while retaining status/code/precedence, usable-message, and private-cause checks. Normal and race-enabled full suites, vet, build, formatting, and whitespace checks passed. The harmless artifact-error rewording overlay now passes the full mapping table. Runtime messages are unchanged. **Type:** incomplete stage 5 test cleanup; unnecessary test-level contract. **Location:** `TestHandlerPublicErrorMapping` in [handler_test.go](../../internal/adapter/http/handler_test.go). The revised table exempts only `llm_failed` from exact message comparison. Artifact, profile, prompt, capacity, and other rows still require complete sentences even though the [HTTP contract](../api.md#error-responses) defines status/code meanings and concise cause-safe messages, not those exact sentences. Stage 5 explicitly selects semantic assertions rather than noncontractual prose; its completion summary currently overstates that cleanup. **Evidence:** a temporary Go compiler overlay changed only the `artifact_read_failed` message in `mapRunError` from “failed to read input artifact” to “could not read the requested input artifact.” The artifact row failed at line 1748 despite unchanged status, machine code, error precedence, and private-cause exclusion. The overlay did not change repository files. **Required remediation:** remove the remaining complete-sentence expectations where wording is not expressly contractual. Retain status/code/precedence, nonempty usable messages, and cause-privacy assertions; use a minimal semantic fragment only where it protects a selected distinction. Do not change runtime messages or make their current wording a public guarantee to satisfy the tests. ## 2. The Feature Roadmap Still Claims Implementation Has Not Started (P3) **Status: complete.** Removed the stale preparation-time implementation status and made the baseline explicitly historical. `implementation.md` remains the owner of current stage status. Pending capture-diagnostic adoption and conditional HTTP deferrals are unchanged. Documentation links and whitespace checks passed. **Type:** stage 9 documentation consistency gap. **Location:** the opening status in [audit-remediation.md](audit-remediation.md), line 3. The roadmap still says “Status: planned; implementation has not started,” while the committed implementation plan records completed local work and the code contains that work. The baseline discussion also uses present-tense language about unchanged application sources, making the current-versus-historical distinction unnecessarily ambiguous. **Required remediation:** remove or clearly historicize the preparation-time status and describe the baseline explicitly as pre-implementation evidence. Keep actual stage status in `implementation.md`, which the roadmap already identifies as its owner. Preserve the pending capture-diagnostic adoption and conditional HTTP deferrals; neither is delivered by the completed local sprint. ## Stage-By-Stage Review | Stage | Assessment | | --- | --- | | 1: provider numbers | `UseNumber` preserves nested provider values through the real engine. Removing it in an overlay makes the regression test fail. Strict decoding and typed overrides remain intact; optional model cleanup was correctly left deferred. | | 2: file identity/hashes | Request-path trimming is removed independently of configured-root normalization. Distinct filenames and fixed independent digests protect identity and metadata. | | 3: acquisition | Context reaches file/body reads; regular-file checks precede and follow opening; acquisition-time byte limits remain. Controlled cancellation, HTTP cancellation, and non-regular tests cover the selected behavior. Removing regular-file checks makes the FIFO test fail and its cleanup releases the blocked reader. | | 4: shared admission | The real configured server owns its engine. An overlay constructing a new engine per request makes the server-composition test fail with a second provider dispatch, and cleanup completes. Distinct retry/wait scenarios remain. | | 5: test blind spots | Startup capture fails before listening with retained causes; removed-flag invocations include complete run inputs and identify the rejected flag. Prose relaxation remains incomplete as described in finding 1. | | 6: HTTP reports | Projection and focused tests moved into the HTTP adapter; the old package is gone. The move preserves runtime behavior, and a cache-field swap overlay is detected by the strengthened assertions. | | 7: diagnostics | Listener explanations select address/category without dumping causes. Shared application diagnostic adaptation and flattened failure selection preserve native ownership and precedence. | | 8: upstream request | The local request is present and accurately records deferred adoption. Missing-file and malformed-template reproductions each yield successful config validation and status-1 capture failures for run, serve, and native listing. No upstream implementation/submission is claimed. | | 9: documentation/validation | Canonical API, operations, architecture, and internal documents reflect the changes and selected limits; future work remains conditional. The roadmap status needs the correction in finding 2. | ## Architecture And Scope The application retains a single ConfigKit resolution handoff to PromptKit; native CommandKit integrations own standard operator workflows. The HTTP server shares one engine and its backend admission state across requests. Restricted artifact access and terminal-report projection now both live in the HTTP adapter. The separate `internal/report` package is removed; CLI reports remain native upstream results. ReleaseKit continues to own release mechanics. Dependency versions are unchanged. No production correctness defect or unintended runtime restriction/guarantee was identified in the reviewed changes. Regular-file acquisition, trusted-network maintenance scope, and deferred transport/memory controls match the accepted decisions. Finding 1 concerns incidental wording still frozen by tests, not a new public API promise. Immediate filesystem interruption, symlink sandboxing, aggregate-memory limits, broader HTTP exposure, and new reporting fields remain outside this work. ## Validation - Uncached normal and race-enabled full test suites passed. - `go vet ./...`, a build to a temporary output path, Go formatting checks, and whitespace checks passed. The existing ignored root binary was not replaced. - Targeted compiler overlays demonstrated the four regression detections in the stage table and the harmless prose failure in finding 1. These were temporary review diagnostics, not a new required test platform. - The request's eight synthetic CLI invocations were exercised without a provider or credentials. Only this findings document was added to the repository. These checks support the reviewed scope; they are not an exhaustive audit of upstream libraries or a new release certification.