Accept native preflight checks and simplify readiness semantics
This commit is contained in:
@@ -5,8 +5,9 @@
|
|||||||
This document records the accepted direction and open decisions for
|
This document records the accepted direction and open decisions for
|
||||||
[Narratio's feature request](narratio-feature-request.md). The request owns the
|
[Narratio's feature request](narratio-feature-request.md). The request owns the
|
||||||
consumer's requested behavior; this discussion owns Notarius design decisions
|
consumer's requested behavior; this discussion owns Notarius design decisions
|
||||||
before a formal roadmap and implementation plan. No new preflight command is
|
before a formal roadmap and implementation plan. Accepted decisions here refine
|
||||||
implemented by this document.
|
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
|
The overall direction below is accepted. Numbered decision sets remain proposals
|
||||||
until explicitly accepted; their details are not implied implementation approval.
|
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
|
## 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. |
|
| 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. |
|
| 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. |
|
| Generated dependencies | Valid producer/consumer wiring and compatibility. |
|
||||||
| Provider targets | Positive applicable native observations establishing access and required inference capabilities for statically determinable selected work. |
|
| 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. |
|
| Output and requested debug | Practical access checks for destinations required by the invocation. |
|
||||||
|
|
||||||
Recommend unsuccessful readiness for a failed required check or inability to
|
A failed required check or inability to complete it, including cancellation,
|
||||||
complete one, including cancellation. Distinguish these from known inapplicability
|
produces unsuccessful readiness. Native diagnostic observations still require
|
||||||
and inherently execution-dependent coverage limits. Do not add a third successful
|
interpretation: a diagnostic finishing without a Go error does not necessarily
|
||||||
"unknown" outcome that callers must interpret as readiness themselves.
|
mean its check passed.
|
||||||
|
|
||||||
An unsupported optional authentication probe need not fail readiness when successful
|
An unavailable backend diagnostic capability is neither a failure nor an omission.
|
||||||
applicable inference establishes access. Reachability alone is insufficient for
|
For example, absence of a native authentication check needs no compensating proof,
|
||||||
inference readiness. A native structured-output smoke test demonstrates a tested
|
warning, or coverage disclaimer. Run the applicable checks PromptKit provides;
|
||||||
capability, not compatibility with every application schema or future request.
|
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,
|
Cache access problems warn rather than fail preflight, consistent with execution's
|
||||||
data-dependent operations, and future transcript compatibility as limits. A target
|
best-effort cache policy; bypass requires no cache access. Output and requested
|
||||||
that cannot be determined for required selected model work is different: recommend
|
debug destination failures remain failures.
|
||||||
an incomplete required check rather than silently accepting an unprobed target.
|
|
||||||
Review actual dynamic selection cases before fixing the target-discovery contract.
|
|
||||||
|
|
||||||
Cache I/O is best effort during execution. Recommend cache access problems warn
|
Producer strict/permissive mode does not change the smoke-check verdict or turn
|
||||||
rather than fail preflight; bypass requires no cache access. Strict/permissive
|
failed checks into success through fallback. Preflight performs its own defined
|
||||||
producer mode should not turn failed required provider checks into readiness via
|
checks; producer fallback belongs to substantive pipeline execution.
|
||||||
fallback: preflight establishes readiness for intended model work.
|
|
||||||
|
|
||||||
Alternatives: a shallow configuration/connectivity-only command would not satisfy
|
**Decision:** All three recommendations accepted with the clarified rationale:
|
||||||
the requested inference readiness; rejecting every unavailable optional observation
|
required checks must complete successfully, cache problems remain warnings, and
|
||||||
would overstate what providers must support. A configurable check-policy framework
|
producer fallback mode does not alter readiness. Unavailable native diagnostic
|
||||||
is not proposed absent a demonstrated need.
|
capabilities need no failure, omission, or caveat reporting. Target selection
|
||||||
|
mechanics remain for Item 2; report details remain for Item 4.
|
||||||
**Decision:** Pending. Confirm the required categories, failure/coverage distinction,
|
|
||||||
cache warning treatment, and independence from producer fallback mode.
|
|
||||||
|
|
||||||
## 2. Effective Target Discovery And Probe Coverage
|
## 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.
|
identities in reports. Do not maintain a second native resolution algorithm.
|
||||||
|
|
||||||
Inspect the available native inspection/requirements/smoke APIs and current module
|
Inspect the available native inspection/requirements/smoke APIs and current module
|
||||||
selection contracts. Decide how to represent statically discoverable requirements,
|
selection contracts. Decide how to discover the implicated targets, including
|
||||||
dynamic selections, and incomplete coverage without preparing fabricated domain
|
dynamic selections, without preparing fabricated domain artifacts or rebuilding
|
||||||
artifacts or rebuilding module execution. Escalate concrete upstream API gaps.
|
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
|
**Decision:** Pending: resolution boundary, equivalence for probe reuse, necessary
|
||||||
probe set, and treatment of dynamic selections under Item 1's readiness policy.
|
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.
|
**Status:** Open; depends on readiness semantics.
|
||||||
|
|
||||||
Recommend one small native report with pipeline, overall readiness, scoped check
|
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
|
finding codes and identify relevant input/binding/target without requiring prose
|
||||||
parsing or provider-specific interpretation by Narratio.
|
parsing or provider-specific interpretation by Narratio.
|
||||||
|
|
||||||
Preserve failed, unsupported, inapplicable, and unknown observation distinctions.
|
Interpret native observations faithfully without treating an unavailable capability
|
||||||
Provide useful assessment output on failed checks when possible, together with an
|
as a failed or omitted check. No coverage-limit inventory or general execution
|
||||||
unsuccessful process outcome. Native invalid-configuration, cancellation, credential
|
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
|
omission, and report-delivery semantics remain intact. Quiet/format behavior stays
|
||||||
native. Do not add a universal error envelope or mandatory persisted report.
|
native. Do not add a universal error envelope or mandatory persisted report.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user