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
|
### Preflight integration
|
||||||
|
|
||||||
Use existing effective artifact definitions and planners to derive inspection
|
Add `internal/preflight` to coordinate prompt requirements checks. Automatic
|
||||||
targets and bindings. Avoid a second artifact graph, prompt parser, configuration
|
preflight and `session validate` use the same checking paths and consume the same
|
||||||
loader, or persistent discovery cache. A per-invocation inspection result is
|
findings and errors. Their target selection follows the inspection policies
|
||||||
sufficient; inspect different variable contexts independently where needed.
|
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
|
Add contextual operator findings for definite missing bindings and discovery
|
||||||
limitations. Keep invocation failures distinct from successful partial reports.
|
limitations. Preserve unsuccessful inspection as an error in both entry points;
|
||||||
Apply the inspection policies without altering unrelated stage selection,
|
successful partial discovery remains distinct from invocation or report-decoding
|
||||||
manifest transitions, or ordinary configuration inspection.
|
failure. Apply the inspection policies without altering unrelated stage
|
||||||
|
selection, manifest transitions, or ordinary configuration inspection.
|
||||||
|
|
||||||
### Deployment and documentation
|
### 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.
|
Narratio does not acquire ownership of Scriptorium's backend or prompt settings.
|
||||||
|
|
||||||
When implementation lands, update the integration contract and focused adapter,
|
When implementation lands, update the integration contract and focused adapter,
|
||||||
trim, and analyze internal documentation. Update CLI, configuration, operations,
|
preflight, trim, and analyze internal documentation. Update CLI, configuration,
|
||||||
and troubleshooting documentation where preflight affects operator behavior.
|
operations, and troubleshooting documentation where preflight affects operator behavior.
|
||||||
Link upstream for native command and configuration details; document Narratio's
|
Link upstream for native command and configuration details; document Narratio's
|
||||||
binding decisions, execution boundary, and failure context locally.
|
binding decisions, execution boundary, and failure context locally.
|
||||||
|
|
||||||
@@ -216,7 +227,7 @@ implementable.
|
|||||||
|
|
||||||
## Verification and Completion
|
## 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:
|
boundaries. Cover the consequential migration risks:
|
||||||
|
|
||||||
- File bindings use native file flags; positional prompt selection and preview
|
- 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.
|
prerequisites, while skipping work the planner establishes will be reused.
|
||||||
- Preflight failures precede stage attempts and preserve completed outputs;
|
- Preflight failures precede stage attempts and preserve completed outputs;
|
||||||
`session plan` remains subprocess-free and inspection makes no model calls.
|
`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
|
Default tests use subprocess doubles and temporary filesystems. They remain
|
||||||
independent of sibling checkouts, installed downstream tools, real credentials,
|
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`.
|
include requirements findings in `session validate`.
|
||||||
Keep ordinary `session plan` independent of subprocess inspection for this scope.
|
Keep ordinary `session plan` independent of subprocess inspection for this scope.
|
||||||
An unsuccessful inspection or definite missing requirement stops the affected
|
An unsuccessful inspection or definite missing requirement stops the affected
|
||||||
execution or validation with ordinary contextual error reporting. Early preflight
|
execution or validation with ordinary contextual error reporting. Warnings and
|
||||||
failure does not invalidate
|
informational findings alone do not stop automatic execution. Early preflight
|
||||||
previously completed outputs. Unrelated stage-only invocations remain unaffected.
|
failure does not invalidate previously completed outputs. Unrelated stage-only
|
||||||
|
invocations remain unaffected.
|
||||||
|
|
||||||
Scriptorium must consequently be available earlier for an invocation whose
|
Scriptorium must consequently be available earlier for an invocation whose
|
||||||
projected work needs it. Validation inspects enabled trim and analysis definitions
|
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
|
### Incomplete or conditional discovery
|
||||||
|
|
||||||
Fail for definite missing required bindings or required variables. Display
|
Fail for definite missing required bindings or required variables. Display
|
||||||
incomplete-discovery issues and unresolved conditional
|
incomplete-discovery issues and unresolved conditional requirements as warnings
|
||||||
requirements as warnings while allowing execution to proceed when no definite
|
while allowing execution to proceed when no definite missing requirement is
|
||||||
missing requirement is established. This uses native findings without making
|
established. This uses native findings without making
|
||||||
static analyzability a new validity requirement for prompts. Later preparation
|
static analyzability a new validity requirement for prompts. Later preparation
|
||||||
and generation remain authoritative for actual requests.
|
and generation remain authoritative for actual requests.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user