From bb15edc05730fcf004dce8cd82fd66ed5d7e8d26 Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Mon, 23 Nov 2026 16:33:48 +0000 Subject: [PATCH] Record configured startup review finding --- docs/roadmap/remediation.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 docs/roadmap/remediation.md diff --git a/docs/roadmap/remediation.md b/docs/roadmap/remediation.md new file mode 100644 index 0000000..42fcd41 --- /dev/null +++ b/docs/roadmap/remediation.md @@ -0,0 +1,36 @@ +# Configured startup review remediation + +Reviewed all ten implementation stages against committed baseline +`f04b6097b879bfa96cf188858988141c81933c77` and the agreed feature roadmap. + +## 1. Make the pure-loader regression test detect accidental bootstrap + +Status: pending. Priority: P2. Implementation stages: 2 and 6. + +Location: [pipeline_discovery_test.go](../../internal/config/pipeline_discovery_test.go#L99), +`TestPipelineSourceRetainsPreparedMainAndPureLoading`. + +The test sets its credential variable to an empty string before calling the +ordinary library loader. ConfigKit's default bootstrap preserves existing +variables, including empty ones. Consequently, the environment assertion still +passes if bootstrap is accidentally introduced into `LoadPipelineWithOptions`. +This is the only configuration-package test declaring a secrets directory, so +the intended guard against library-owned environment mutation is ineffective. + +Confirmed with a temporary Go build overlay that inserted an actual +`LoadSecretsIntoEnvironmentFromConfig` call into `LoadPipelineWithOptions`: +the named regression test still passed. Repository source files were unchanged +by that diagnostic check. The production loader currently has the correct +pure-loading implementation; this finding concerns its regression coverage. + +Required change: restore the test variable's original state during cleanup, +start the pure-loading assertion with the variable genuinely unset, and check +that it remains unset after loading. Keep the subsequent prepared-source +handoff check; an explicit native bootstrap can serve as a positive control that +the fixture would actually populate the variable. No production bootstrap or +loader behavior change is needed. + +Validation: the focused test passes against current production code and fails +when an accidental bootstrap call is temporarily inserted via a scratch overlay. +Keep this as a small behavioral test rather than adding a permanent mutation-test +framework or retesting ConfigKit's complete secrets policy.