diff --git a/docs/roadmap/preflight-discussion.md b/docs/roadmap/preflight-discussion.md index bf63ef1f..dd4ff07e 100644 --- a/docs/roadmap/preflight-discussion.md +++ b/docs/roadmap/preflight-discussion.md @@ -83,26 +83,46 @@ mechanics remain for Item 2; report details remain for Item 4. ## 2. Effective Target Discovery And Probe Coverage -**Status:** Open; depends on Item 1. +**Status:** Accepted approach; implementation pending. -Cover applicable model-backed chunking, extraction, normalization, correction, -validators, and other selected model roles. Apply invocation overrides and native -prompt defaults; profile names alone do not establish effective target identity. -Continuation inheritance must follow native execution semantics. +Use the effective invocation to identify profiles implicated by selected work, +including model-backed chunking, extraction, normalization, validators, and any +other selected model roles. Build a deduplicated profile list and a deduplicated +list of their associated backends. Exclude unused configuration profiles and +unselected lanes; cached acceptance does not remove a selected profile from testing. -Recommend sharing a probe only for equivalent effective targets and capability -requirements, retaining the affected bindings in findings. A backend ID alone is -insufficient when models or effective selections differ. Avoid secret-bearing -identities in reports. Do not maintain a second native resolution algorithm. +Run native reachability and available authentication checks once per backend, +then one native structured-generation test per distinct profile. Do not add a +separate text-generation test or run the full smoke suite per operation. Multiple +operations sharing a profile share its generation test; profiles sharing a backend +share backend access checks. Retain associations to the relevant pipeline bindings +for reporting. Unavailable checks follow Item 1's accepted semantics. -Inspect the available native inspection/requirements/smoke APIs and current module -selection contracts. Decide how to discover the implicated targets, including -dynamic selections, without preparing fabricated domain artifacts or rebuilding -module execution. Select checks using native availability/applicability under -Item 1; escalate concrete target-resolution API gaps upstream. +Use native PromptKit resolution and smoke APIs. Correction normally inherits its +originating execution target and adds no separate profile test; still validate its +prompt dependency. Any supported custom target change must be represented through +its actual selection. Endpoint-only profiles remain supported by native +profile-targeted diagnostics. Account for profile-level target settings through +native resolution rather than assuming all settings come from the named backend. +Avoid a general target-equivalence/fingerprint subsystem or credential comparisons. -**Decision:** Pending: resolution boundary, equivalence for probe reuse, necessary -probe set, and treatment of dynamic selections under Item 1's readiness policy. +Share the configuration result and invocation selections used by run. In the +current architecture, ConfigKit resolves configuration sources and configuration +assignments; ckprompt execution flags such as `--llm-model` and `--llm-endpoint` +remain request-scoped overrides, not mutations of that configuration. Forward +those same supplied overrides to native smoke requests so tests exercise the +intended invocation. Exact flag mapping belongs with Item 3. + +Verify existing module declarations and selections during implementation. Reuse +existing information wherever sufficient; expose a small side-effect-free shared +target-selection operation only for concrete callers needing it. Do not fabricate +generated artifacts or execute substantive stages to discover targets. Escalate +concrete native target-resolution gaps upstream rather than duplicate resolution. + +**Decision:** Accepted: deduplicate profiles and backends, perform backend access +checks once per backend, and one structured-generation test per profile, preserving +native resolution and effective invocation overrides. Exact inventory and API +mechanics remain implementation choices within this approach. ## 3. Shared Preparation, Input Validation, And Side Effects