Wait for subprocess output before releasing resources

This commit is contained in:
2026-12-01 20:20:41 +00:00
parent eb100e54f2
commit da4de023ad
6 changed files with 120 additions and 12 deletions

View File

@@ -29,7 +29,8 @@ Each `pipeline.audita.credentials` value is an exact ConfigKit secret reference.
Narratio forwards selected names and captured values in the child environment
and registers them for captured-stream redaction. It does not discover backend
credentials or scrub files created by Audita. The configured timeout and parent
cancellation bound subprocess execution.
cancellation initiate subprocess shutdown; completion can take longer while
process output finishes.
The corrected transcript is the only canonical polish output. It must be valid
JSON with a top-level `segments` array within Narratio's 64 MiB limit. Exit zero

View File

@@ -12,7 +12,8 @@ Narratio invokes Seriatim as a subprocess in these modes:
- `seriatim trim`
- `seriatim render`
The configured timeout and parent cancellation bound each invocation. Internal
The configured timeout and parent cancellation initiate subprocess shutdown;
completion can take longer while process output finishes. Internal
runner composition is documented in
[the adapter implementation guide](../internal/adapters.md).

View File

@@ -99,7 +99,9 @@ in-memory backend without changing package state.
for remaining group members and uses bounded graceful then forceful termination.
Cancellation, deadlines, and
diagnostic limits use the same terminal disposal path without losing their
original result classification. Child environments contain only the execution
original result classification. Escalation is bounded, but the command waiter
and output copying are joined before logs are flushed or ownership returns;
blocked I/O may prolong shutdown and workspace lock ownership. Child environments contain only the execution
baseline and adapter-specified values; configured credentials are resolved
once by ConfigKit and passed explicitly as sensitive values. Adapters do not
re-read their named environment references. Diagnostic-only stdout and stderr

View File

@@ -202,6 +202,9 @@ power-loss/partial-write guarantee is introduced.
## Stage 5: Join subprocess completion before releasing resource ownership
**Complete:** Escalation now joins the command waiter before output and diagnostics
are released. Delayed-wait and blocked-output regressions and subprocess checks pass.
Read:
- `audit/04-concurrency.md`, lines 162–222 (CN-03).