From fad1567e54ac83ba5fa1e49a0345ae917647e8c7 Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Sun, 6 Dec 2026 02:01:19 +0000 Subject: [PATCH] Record additional integration audit findings --- docs/roadmap/remediation.md | 103 +++++++++++++++++++++++++++++++++--- 1 file changed, 97 insertions(+), 6 deletions(-) diff --git a/docs/roadmap/remediation.md b/docs/roadmap/remediation.md index c360ec2..47da2ff 100644 --- a/docs/roadmap/remediation.md +++ b/docs/roadmap/remediation.md @@ -20,24 +20,33 @@ substantiate findings 1–5, 7, and 8. Their expected-behavior assertions fail against the reviewed implementation. The overlays changed no repository files; production code and permanent tests remain unchanged by this review. +A follow-up integration audit reviewed Stages 1–15 in order at `67c8363`. +Production code remains identical to `dd9e177`, so the successful baseline +checks above still apply. Additional temporary-overlay probes reproduced +findings 10 and 11 using candidate checking, tagged CI dispatch, and a real +native build. A separate local selector-map probe also reproduced finding 10. +Existing focused CLI tests for calendar delivery, diagnostic delivery, build +readiness, and selector mapping pass. These probes used no external services; +their expected-behavior assertions fail on the identified integration gaps. + ### Stage coverage | Stage | Evidence reviewed | Related findings | | --- | --- | --- | | 1 | Profile selection, null/omitted defaults, physical directory resolution, facade-owned source types | 1 | -| 2 | Version grammars, module-major rules, source tag prefixes, diagnostic identity generation | 3 | +| 2 | Version grammars, module-major rules, source tag prefixes, diagnostic identity generation | 3, 10 | | 3 | Committed candidate capture, Go capability selection, scoped file inputs and callbacks, exact source publication | 1 | -| 4 | Working and committed build/delivery identities, managed/prebuilt verification, tagged preparation | 6 | +| 4 | Working and committed build/delivery identities, managed/prebuilt verification, tagged preparation | 6, 10 | | 5 | Publication record versions and exact bytes, receipt schema 2, explicit recovery and durable entry points | — | | 6 | Local file and CI variable selection, migration errors, operation-specific credential loading | 1 | -| 7 | Readiness defaults, narrowing, offline scope, input readers and error aggregation | 1, 2, 3 | +| 7 | Readiness defaults, narrowing, offline scope, input readers and error aggregation | 1, 2, 3, 11 | | 8 | Source-only pin, host installer, local/CI selection and recovery fixtures | — | | 9 | Committed profiles, tag manifests, identity binding, private record lifecycle | 4, 6 | | 10 | Woodpecker API pagination/correlation and diagnostic Git/forge effects | 4, 5, 6, 8 | -| 11 | Shared builds/uploads, in-job read-back, framed verification evidence | 6, 7 | -| 12 | Start, dispatch reconciliation, observation and partial results | 2, 3, 4, 7, 8 | +| 11 | Shared builds/uploads, in-job read-back, framed verification evidence | 6, 7, 10 | +| 12 | Start, dispatch reconciliation, observation and partial results | 2, 3, 4, 7, 8, 11 | | 13 | Quiescence, ownership checks, partial deletion, resume and cleanup | 4, 5, 7 | -| 14 | CLI/configuration mapping, reporting, exit classes and maintained workflow dispatch | 1, 6, 7 | +| 14 | CLI/configuration mapping, reporting, exit classes and maintained workflow dispatch | 1, 6, 7, 10 | | 15 | Assembled fixtures, canonical references and migration guidance | 9; regression gaps identified below | Pending cleanup while CI remains active or unobservable is selected behavior. @@ -347,3 +356,85 @@ ReleaseKit itself unchanged. **Verification:** compare the revised references with existing source-only, calendar, and diagnostic fixtures; review local links and prose whitespace. + +## 10. Diagnostic dispatch intercepts valid production tag prefixes + +**Priority:** P2. **Stages:** 2, 4, 11, 14. + +**Relevant code:** `runCIDelivery` in the +[CLI dispatcher](../../cmd/releasekit/main.go), `runDiagnosticDelivery` in +[diagnostic delivery](../../cmd/releasekit/diagnostic.go), and the diagnostic +branches in the [maintained selector](../../examples/multi-module/select-module.sh) +and [single-product workflow](../../examples/woodpecker/tag-delivery.yml). + +Production identity permits valid physical source directories and product tag +prefixes beneath `releasekit-test`. For example, a source profile with +`source.tag_prefix: "releasekit-test/product"` and date versions resolves the +production tag `releasekit-test/product/2026-12-01`. Candidate checking accepts +that selection and its ordinary release note. A second probe reproduced the +same dispatch failure for a legacy nested Go module producing +`releasekit-test/product/v1.2.3`. + +The new CI dispatcher classifies every tag starting with `releasekit-test/` as +diagnostic, before loading its production selection. An annotated production +tag from the example therefore fails with `diagnostic annotation has an invalid +marker` instead of reaching ordinary delivery. The maintained selector makes +the same prefix-only choice and rejects the tag as an invalid diagnostic +attempt, even when a production mapping row matches it. This introduces a +restriction that the production resolver and configuration contract do not +establish. Single-product workflow guards also classify this entire prefix as +diagnostic and can reject a production prefix as an unknown selector before +bootstrap. + +**Recommended remediation:** distinguish diagnostic refs by their complete +selected spelling, including the selector and 32-character lowercase hexadecimal +attempt component, and apply consistent classification in CLI and bootstrap +dispatch. Production identifiers contain version separators and can be +distinguished from diagnostic attempt IDs. Route production refs through their +production selection; retain full manifest/profile verification before +diagnostic effects. This can preserve existing production prefixes without +introducing a reserved-prefix prohibition. + +**Regression coverage:** a source-only calendar production tag with this +prefix, a legacy nested module production tag, and their normal selector/CI +delivery paths. Retain valid diagnostic dispatch and malformed/foreign manifest +rejection. Assert that production identity and CI routing agree. + +## 11. Readiness treats supported Go package patterns as literal directories + +**Priority:** P2. **Stages:** 7, 12. + +**Relevant code:** `inspectBuild` and `localMainPackage` in +[working readiness](../../internal/readiness/readiness.go), +`inspectCommittedBuild` in +[committed readiness](../../internal/readiness/committed.go), and the existing +[builder](../../internal/build/build.go), which passes `MainPackage` to Go. +[`Start`](../../internal/rehearsal/coordinator.go) runs committed readiness +before recording or dispatching a rehearsal. + +The builder accepts Go package patterns when Go resolves them to one main +package. A local fixture with `build.main_package: "./..."`, one root main +package, and a native target built and passed its version smoke check through +the existing CLI. Offline build readiness then failed the same configuration +with `stat /...: no such file or directory` and status 2. + +Readiness recognizes the leading `./` as a local package directory and treats +the pattern literally. Module-qualified patterns take the same path after +conversion to a relative spelling. Committed readiness likewise resolves the +pattern as a literal destination, so the mandatory rehearsal preflight prevents +these otherwise buildable profiles from reaching their existing CI build path. + +**Recommended remediation:** distinguish literal package-directory inputs from +package patterns before filesystem or committed-tree inspection. Preserve the +builder's existing accepted inputs. For patterns that require Go resolution, +report that resolution/build execution remains unchecked, consistently with +other inputs requiring execution, or resolve them through a shared offline +inspection path. Keep readily inspectable literal-directory checks and the +selected boundary against builds or dependency downloads during readiness. + +**Regression coverage:** successful working and committed readiness for a +single-main `./...` fixture and a module-qualified equivalent, plus rehearsal +preflight reaching dispatch with that profile. Pair at least one case with an +actual shared-builder success. Retain failures for missing literal directories +and keep pattern-resolution limits explicit rather than certifying a future +build.