Record subprocess shutdown ownership decision

This commit is contained in:
2026-12-01 04:10:52 +00:00
parent 4b75e283db
commit 096a2f6745
2 changed files with 32 additions and 33 deletions

View File

@@ -46,15 +46,15 @@ that the roadmap implements the entire finding. Findings close only after their
relevant behavior or code removal is verified. Original audit reports, finding
identities, priorities, and source links remain unchanged.
CAT-02's direction follows the agreed import model; CAT-04's direction follows
the accepted audio-acquisition behavior. Other direction paragraphs retain the
audit's candidate remedies; subsequent agreed choices and roadmap ownership are
identified by the disposition notes.
Directions for CAT-02, CAT-04, and CAT-05 reflect subsequent agreed choices.
Other direction paragraphs retain the audit's candidate remedies; agreed
choices and roadmap ownership are identified by the disposition notes.
Audio generation/size handling is [agreed in topic 4](discussion.md#4-keep-downloaded-audio-and-its-source-identity-together),
and subprocess completion is [agreed in topic 5](discussion.md#5-finish-subprocess-shutdown-before-releasing-its-files),
with implementation pending. Continue the remaining decisions in
[discussion topics 5–7](discussion.md#5-finish-subprocess-shutdown-before-releasing-its-files):
subprocess completion, publication source lifetimes, and audio eligibility.
[discussion topics 6–7](discussion.md#6-open-publication-sources-as-they-are-needed):
publication source lifetimes and audio eligibility.
Topic 1 also retains the smaller choice about waiting versus reporting a busy
workspace. Remote checkpoint timing and failure handling are deferred, not
decisions blocking publication import.
@@ -186,7 +186,9 @@ Related: [CAT-06](#cat-06--p2-stop-known-size-downloads-before-oversized-bodies-
Status: Open
**Disposition / owner.** Independent subprocess remediation — [discussion topic 5](discussion.md#5-finish-subprocess-shutdown-before-releasing-its-files)
remains open. Publication import does not remove downstream process ownership.
selects joining process/output completion after bounded termination escalation,
before releasing resources. Implementation and verification remain pending;
publication import does not remove downstream process ownership.
Original findings: [CN-03](04-concurrency.md#cn-03--p2-the-exceptional-subprocess-reap-timeout-releases-ownership-too-early),
[TE-05](08-testing.md#te-05--p2-subprocess-lifecycle-tests-do-not-exercise-a-delayed-reap-after-escalation).
@@ -197,11 +199,12 @@ caller-owned result-file closure can then overlap a still-active waiter or strea
copier. Current tests exercise ordinary shutdown or pre-populated completion, not
delayed completion beyond escalation.
**Direction.** Keep one supervisor responsible until completion and I/O ownership
are joined; distinguish escalation deadlines from resource completion. Add a
controlled delayed-wait/stream test that observes release ordering and preserved
error causes. Preserve bounded escalation without claiming an absolute kernel-I/O
termination deadline.
**Direction.** Retain bounded graceful-to-forceful escalation, then join process
and output completion before reading process state, flushing/closing diagnostics,
or returning resource ownership to callers. Add a controlled delayed-wait/stream
test for release ordering and preserved error causes. Exceptional I/O delays can
outlast escalation timers; no absolute return-time guarantee or early-return
ownership handoff is required.
### CAT-06 — P2: Stop known-size downloads before oversized bodies exhaust staging space