Record cancellation-aware workspace lock waiting

This commit is contained in:
2026-12-01 19:02:23 +00:00
parent 3d24fc4130
commit 074fe64e12
2 changed files with 19 additions and 19 deletions

View File

@@ -48,7 +48,7 @@ that the roadmap implements the entire finding. Findings close only after their
relevant behavior or code removal is verified. Original audit reports, finding relevant behavior or code removal is verified. Original audit reports, finding
identities, priorities, and source links remain unchanged. identities, priorities, and source links remain unchanged.
Directions for CAT-02, CAT-04, CAT-05, and CAT-09 reflect subsequent agreed choices. Directions for CAT-01, CAT-02, CAT-04, CAT-05, and CAT-09 reflect subsequent agreed choices.
CAT-12 also reflects the approved audio selection and naming decisions. CAT-12 also reflects the approved audio selection and naming decisions.
Other direction paragraphs retain the audit's candidate remedies; agreed Other direction paragraphs retain the audit's candidate remedies; agreed
choices and roadmap ownership are identified by the disposition notes. choices and roadmap ownership are identified by the disposition notes.
@@ -57,8 +57,8 @@ Decisions on [audio generation/size handling](discussion.md#4-keep-downloaded-au
[subprocess completion](discussion.md#5-finish-subprocess-shutdown-before-releasing-its-files), [subprocess completion](discussion.md#5-finish-subprocess-shutdown-before-releasing-its-files),
[publication source lifetimes](discussion.md#6-open-publication-sources-as-they-are-needed), [publication source lifetimes](discussion.md#6-open-publication-sources-as-they-are-needed),
and [audio selection and naming](discussion.md#7-give-preparation-and-inspection-the-same-audio-selection-rules) and [audio selection and naming](discussion.md#7-give-preparation-and-inspection-the-same-audio-selection-rules)
are agreed, with implementation pending. Topic 1 retains the smaller choice are agreed, with implementation pending. Topic 1 also records approved
about waiting versus reporting a busy workspace. Remote checkpoint timing and cancellation-aware waiting for the workspace lock. Remote checkpoint timing and
failure handling are deferred, not decisions blocking publication import. failure handling are deferred, not decisions blocking publication import.
## Consolidation Decisions ## Consolidation Decisions
@@ -97,8 +97,8 @@ Status: Open
**Disposition / owner.** Independent locking remediation — the [agreed direction](discussion.md#1-coordinate-destructive-cleanup-with-other-work) **Disposition / owner.** Independent locking remediation — the [agreed direction](discussion.md#1-coordinate-destructive-cleanup-with-other-work)
permits one workspace-wide lock. Restore will use that coordination, but the permits one workspace-wide lock. Restore will use that coordination, but the
[restore roadmap](../session-restore.md) does not own this fix. Wait-versus-busy [restore roadmap](../session-restore.md) does not own this fix. Cancellation-aware
behavior remains to confirm. waiting is agreed; implementation and verification remain pending.
Original findings: [CN-01](04-concurrency.md#cn-01--p1-whole-session-cleaning-bypasses-and-can-dismantle-session-exclusion), Original findings: [CN-01](04-concurrency.md#cn-01--p1-whole-session-cleaning-bypasses-and-can-dismantle-session-exclusion),
[TE-04](08-testing.md#te-04--p2-whole-session-cleanup-tests-never-contend-with-an-active-invocation). [TE-04](08-testing.md#te-04--p2-whole-session-cleanup-tests-never-contend-with-an-active-invocation).
@@ -110,10 +110,10 @@ original writer. Existing cleanup tests never combine manual deletion with an
active invocation. active invocation.
**Direction.** Use a stable coordination identity or admission gate that survives **Direction.** Use a stable coordination identity or admission gate that survives
deletion, including admission of new sessions during `--all`. Select deletion, including admission of new sessions during `--all`. Use
wait-versus-busy behavior explicitly. Add real-lock, controlled-interleaving cancellation-aware waiting and identify the lock being waited on. Add real-lock,
coverage for deletion and a second contender. The already-locked final cleanup controlled-interleaving coverage for deletion, a second contender, and cancellation
stage is a different operation. while waiting. The already-locked final cleanup stage is a different operation.
Related: [CAT-39](#cat-39--p3-simplify-manual-clean-to-its-live-directory-only-contract). Related: [CAT-39](#cat-39--p3-simplify-manual-clean-to-its-live-directory-only-contract).

View File

@@ -1,6 +1,6 @@
# Audit Remediation Discussion # Audit Remediation Discussion
Status: Main directions agreed; lock contention choice remains Status: Operator-facing decisions agreed; implementation pending
## Purpose ## Purpose
@@ -13,15 +13,15 @@ own the detailed evidence. This document records decisions, explains consequence
and distinguishes recommendations from approved scope. No remediation has been and distinguishes recommendations from approved scope. No remediation has been
implemented by this document. implemented by this document.
The operator has settled the main direction for all seven topics. Topic 1 retains The operator has settled the direction for all seven topics, including
the smaller choice about waiting versus reporting a busy workspace. The cancellation-aware waiting for lock contention. The
[session-restore](../session-restore.md) and [audio-inputs](../audio-inputs.md) [session-restore](../session-restore.md) and [audio-inputs](../audio-inputs.md)
roadmaps own their respective target behavior. Implementation details can be roadmaps own their respective target behavior. Implementation details can be
settled during planning against those roadmaps and the remaining catalog entries. settled during planning against those roadmaps and the remaining catalog entries.
## 1. Coordinate destructive cleanup with other work ## 1. Coordinate destructive cleanup with other work
Status: Simplified locking direction agreed; contention behavior proposed Status: Locking and contention decisions agreed; implementation pending
Finding: [CAT-01](catalog.md#cat-01--p1-coordinate-whole-session-deletion-with-active-invocations). Finding: [CAT-01](catalog.md#cat-01--p1-coordinate-whole-session-deletion-with-active-invocations).
@@ -48,19 +48,19 @@ participating operations must use the same identity, including whole-workspace
session cleanup and creation of a new session's working state. This is local session cleanup and creation of a new session's working state. This is local
process coordination for a workspace, not a distributed lock across machines. process coordination for a workspace, not a distributed lock across machines.
### Remaining recommendation ### Agreed contention behavior
Use cancellation-aware waiting, consistent with existing invocation locking, Use cancellation-aware waiting, consistent with existing invocation locking,
and identify the lock being waited on. An immediate busy error is a viable and identify the lock being waited on. A contending invocation waits for the
alternative if the operator prefers to retry manually. Waiting is a recommendation, workspace lock and can be cancelled while waiting.
not an already approved behavior.
The roadmap should identify the mutating command participants explicitly. Pure The roadmap should identify the mutating command participants explicitly. Pure
inspection and unrelated workspaces need no new serialization requirement. inspection and unrelated workspaces need no new serialization requirement.
Operator response: Operator response:
_Optional: confirm waiting or prefer an immediate busy error._ _Approved: use cancellation-aware waiting for the workspace lock. CAT-01 remains
open pending implementation and verification._
## 2. Import published artifacts and retain local resume ## 2. Import published artifacts and retain local resume
@@ -474,6 +474,6 @@ and verification._
Prepare remediation plans against the catalog, using the two feature roadmaps Prepare remediation plans against the catalog, using the two feature roadmaps
for their assigned work. Distinguish agreed behavior changes from internal for their assigned work. Distinguish agreed behavior changes from internal
refactoring, retain the audit evidence links, and include focused regression refactoring, retain the audit evidence links, and include focused regression
coverage. Confirm topic 1's contention behavior when planning the lock fix. coverage. Apply topic 1's approved cancellation-aware waiting when planning the lock fix.
Recording an approved direction does not close its findings or change current Recording an approved direction does not close its findings or change current
policy; implementation and verification remain outstanding. policy; implementation and verification remain outstanding.