Plan shared preflight checks and retain inspection failures
This commit is contained in:
@@ -181,15 +181,26 @@ selection decisions belong in the application layer.
|
||||
|
||||
### Preflight integration
|
||||
|
||||
Use existing effective artifact definitions and planners to derive inspection
|
||||
targets and bindings. Avoid a second artifact graph, prompt parser, configuration
|
||||
loader, or persistent discovery cache. A per-invocation inspection result is
|
||||
sufficient; inspect different variable contexts independently where needed.
|
||||
Add `internal/preflight` to coordinate prompt requirements checks. Automatic
|
||||
preflight and `session validate` use the same checking paths and consume the same
|
||||
findings and errors. Their target selection follows the inspection policies
|
||||
below; command handlers own presentation, with validation able to show fuller
|
||||
warning and informational detail without changing finding severity.
|
||||
|
||||
Reuse existing production machinery for effective artifact definitions, planning,
|
||||
request-context construction, and adapter execution. Share or extract existing
|
||||
helpers where needed rather than copying them into preflight. Keep code specific
|
||||
to preflight limited to coordinating inspection and assessing intended bindings
|
||||
against native findings. Avoid a second artifact graph, prompt parser,
|
||||
configuration loader, or persistent discovery cache. A per-invocation inspection
|
||||
result is sufficient; inspect different variable contexts independently where
|
||||
needed.
|
||||
|
||||
Add contextual operator findings for definite missing bindings and discovery
|
||||
limitations. Keep invocation failures distinct from successful partial reports.
|
||||
Apply the inspection policies without altering unrelated stage selection,
|
||||
manifest transitions, or ordinary configuration inspection.
|
||||
limitations. Preserve unsuccessful inspection as an error in both entry points;
|
||||
successful partial discovery remains distinct from invocation or report-decoding
|
||||
failure. Apply the inspection policies without altering unrelated stage
|
||||
selection, manifest transitions, or ordinary configuration inspection.
|
||||
|
||||
### Deployment and documentation
|
||||
|
||||
@@ -204,8 +215,8 @@ and automatic downstream configuration conversion are outside this scope.
|
||||
Narratio does not acquire ownership of Scriptorium's backend or prompt settings.
|
||||
|
||||
When implementation lands, update the integration contract and focused adapter,
|
||||
trim, and analyze internal documentation. Update CLI, configuration, operations,
|
||||
and troubleshooting documentation where preflight affects operator behavior.
|
||||
preflight, trim, and analyze internal documentation. Update CLI, configuration,
|
||||
operations, and troubleshooting documentation where preflight affects operator behavior.
|
||||
Link upstream for native command and configuration details; document Narratio's
|
||||
binding decisions, execution boundary, and failure context locally.
|
||||
|
||||
@@ -216,7 +227,7 @@ implementable.
|
||||
|
||||
## Verification and Completion
|
||||
|
||||
Use focused offline tests at the subprocess, adapter, and orchestration
|
||||
Use focused offline tests at the subprocess, adapter, preflight, and orchestration
|
||||
boundaries. Cover the consequential migration risks:
|
||||
|
||||
- File bindings use native file flags; positional prompt selection and preview
|
||||
@@ -234,6 +245,9 @@ boundaries. Cover the consequential migration risks:
|
||||
prerequisites, while skipping work the planner establishes will be reused.
|
||||
- Preflight failures precede stage attempts and preserve completed outputs;
|
||||
`session plan` remains subprocess-free and inspection makes no model calls.
|
||||
- Automatic preflight and `session validate` agree on findings for the same
|
||||
targets and context. Both stop on unsuccessful inspection or definite missing
|
||||
requirements; discovery incompleteness and warnings alone do not fail.
|
||||
|
||||
Default tests use subprocess doubles and temporary filesystems. They remain
|
||||
independent of sibling checkouts, installed downstream tools, real credentials,
|
||||
@@ -252,9 +266,10 @@ Inspect applicable projected Scriptorium work before stage attempts begin, and
|
||||
include requirements findings in `session validate`.
|
||||
Keep ordinary `session plan` independent of subprocess inspection for this scope.
|
||||
An unsuccessful inspection or definite missing requirement stops the affected
|
||||
execution or validation with ordinary contextual error reporting. Early preflight
|
||||
failure does not invalidate
|
||||
previously completed outputs. Unrelated stage-only invocations remain unaffected.
|
||||
execution or validation with ordinary contextual error reporting. Warnings and
|
||||
informational findings alone do not stop automatic execution. Early preflight
|
||||
failure does not invalidate previously completed outputs. Unrelated stage-only
|
||||
invocations remain unaffected.
|
||||
|
||||
Scriptorium must consequently be available earlier for an invocation whose
|
||||
projected work needs it. Validation inspects enabled trim and analysis definitions
|
||||
@@ -264,9 +279,9 @@ uses its selected projected work and prerequisite closure as described above.
|
||||
### Incomplete or conditional discovery
|
||||
|
||||
Fail for definite missing required bindings or required variables. Display
|
||||
incomplete-discovery issues and unresolved conditional
|
||||
requirements as warnings while allowing execution to proceed when no definite
|
||||
missing requirement is established. This uses native findings without making
|
||||
incomplete-discovery issues and unresolved conditional requirements as warnings
|
||||
while allowing execution to proceed when no definite missing requirement is
|
||||
established. This uses native findings without making
|
||||
static analyzability a new validity requirement for prompts. Later preparation
|
||||
and generation remain authoritative for actual requests.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user