Accept native preflight checks and simplify readiness semantics

This commit is contained in:
2026-11-28 03:24:23 +00:00
parent 7f79955912
commit 68fb35cd72

View File

@@ -5,8 +5,9 @@
This document records the accepted direction and open decisions for
[Narratio's feature request](narratio-feature-request.md). The request owns the
consumer's requested behavior; this discussion owns Notarius design decisions
before a formal roadmap and implementation plan. No new preflight command is
implemented by this document.
before a formal roadmap and implementation plan. Accepted decisions here refine
the original request, including its proposed coverage disclosures. No new preflight
command is implemented by this document.
The overall direction below is accepted. Numbered decision sets remain proposals
until explicitly accepted; their details are not implied implementation approval.
@@ -38,46 +39,47 @@ Current behavior belongs in [CLI Reference](../cli.md),
## 1. Required Checks And The Meaning Of Ready
**Status:** Open. Settle before target discovery and report details.
**Status:** Accepted; implementation pending.
Recommended baseline:
Preflight validates that the selected pipeline is coherent and satisfied by the
supplied inputs, then runs the available, applicable native PromptKit smoke checks
against the backends/profiles implicated by that pipeline. This affirmative
contract is sufficient for user documentation; no catalogue of substantive
execution behavior outside preflight is needed.
| Area | Required readiness evidence |
| Area | Required check |
| --- | --- |
| Configuration and selected work | Valid effective selection, module options, lane selection, static prompt/profile dependencies, and binding compatibility. |
| Supplied input and external references | Readable input accepted by its input adapter; required external references accepted by their domain owners after run-equivalent binding/unbinding. |
| Generated dependencies | Valid producer/consumer wiring and compatibility, without requiring future artifact contents. |
| Provider targets | Positive applicable native observations establishing access and required inference capabilities for statically determinable selected work. |
| Generated dependencies | Valid producer/consumer wiring and compatibility. |
| Provider targets | Available, applicable native PromptKit smoke checks against the selected backends/profiles. |
| Output and requested debug | Practical access checks for destinations required by the invocation. |
Recommend unsuccessful readiness for a failed required check or inability to
complete one, including cancellation. Distinguish these from known inapplicability
and inherently execution-dependent coverage limits. Do not add a third successful
"unknown" outcome that callers must interpret as readiness themselves.
A failed required check or inability to complete it, including cancellation,
produces unsuccessful readiness. Native diagnostic observations still require
interpretation: a diagnostic finishing without a Go error does not necessarily
mean its check passed.
An unsupported optional authentication probe need not fail readiness when successful
applicable inference establishes access. Reachability alone is insufficient for
inference readiness. A native structured-output smoke test demonstrates a tested
capability, not compatibility with every application schema or future request.
An unavailable backend diagnostic capability is neither a failure nor an omission.
For example, absence of a native authentication check needs no compensating proof,
warning, or coverage disclaimer. Run the applicable checks PromptKit provides;
do not introduce a Notarius capability checklist that a backend must satisfy
beyond those native diagnostics. This supersedes the earlier proposal to disclose
unavailable checks and general execution coverage limits.
Disclose future generated content, semantic acceptance, continued availability,
data-dependent operations, and future transcript compatibility as limits. A target
that cannot be determined for required selected model work is different: recommend
an incomplete required check rather than silently accepting an unprobed target.
Review actual dynamic selection cases before fixing the target-discovery contract.
Cache access problems warn rather than fail preflight, consistent with execution's
best-effort cache policy; bypass requires no cache access. Output and requested
debug destination failures remain failures.
Cache I/O is best effort during execution. Recommend cache access problems warn
rather than fail preflight; bypass requires no cache access. Strict/permissive
producer mode should not turn failed required provider checks into readiness via
fallback: preflight establishes readiness for intended model work.
Producer strict/permissive mode does not change the smoke-check verdict or turn
failed checks into success through fallback. Preflight performs its own defined
checks; producer fallback belongs to substantive pipeline execution.
Alternatives: a shallow configuration/connectivity-only command would not satisfy
the requested inference readiness; rejecting every unavailable optional observation
would overstate what providers must support. A configurable check-policy framework
is not proposed absent a demonstrated need.
**Decision:** Pending. Confirm the required categories, failure/coverage distinction,
cache warning treatment, and independence from producer fallback mode.
**Decision:** All three recommendations accepted with the clarified rationale:
required checks must complete successfully, cache problems remain warnings, and
producer fallback mode does not alter readiness. Unavailable native diagnostic
capabilities need no failure, omission, or caveat reporting. Target selection
mechanics remain for Item 2; report details remain for Item 4.
## 2. Effective Target Discovery And Probe Coverage
@@ -94,9 +96,10 @@ insufficient when models or effective selections differ. Avoid secret-bearing
identities in reports. Do not maintain a second native resolution algorithm.
Inspect the available native inspection/requirements/smoke APIs and current module
selection contracts. Decide how to represent statically discoverable requirements,
dynamic selections, and incomplete coverage without preparing fabricated domain
artifacts or rebuilding module execution. Escalate concrete upstream API gaps.
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.
**Decision:** Pending: resolution boundary, equivalence for probe reuse, necessary
probe set, and treatment of dynamic selections under Item 1's readiness policy.
@@ -128,13 +131,14 @@ flag effect mapping, and requested-debug lifecycle.
**Status:** Open; depends on readiness semantics.
Recommend one small native report with pipeline, overall readiness, scoped check
results, failures, warnings, and coverage limitations. Use stable machine-readable
results, failures, and actionable warnings. Use stable machine-readable
finding codes and identify relevant input/binding/target without requiring prose
parsing or provider-specific interpretation by Narratio.
Preserve failed, unsupported, inapplicable, and unknown observation distinctions.
Provide useful assessment output on failed checks when possible, together with an
unsuccessful process outcome. Native invalid-configuration, cancellation, credential
Interpret native observations faithfully without treating an unavailable capability
as a failed or omitted check. No coverage-limit inventory or general execution
disclaimer is required. Provide useful assessment output on failed checks when
possible, together with an unsuccessful process outcome. Native invalid-configuration, cancellation, credential
omission, and report-delivery semantics remain intact. Quiet/format behavior stays
native. Do not add a universal error envelope or mandatory persisted report.