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

@@ -1,6 +1,6 @@
# Audit Remediation Discussion
Status: Main directions agreed; lock contention choice remains
Status: Operator-facing decisions agreed; implementation pending
## 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
implemented by this document.
The operator has settled the main direction for all seven topics. Topic 1 retains
the smaller choice about waiting versus reporting a busy workspace. The
The operator has settled the direction for all seven topics, including
cancellation-aware waiting for lock contention. The
[session-restore](../session-restore.md) and [audio-inputs](../audio-inputs.md)
roadmaps own their respective target behavior. Implementation details can be
settled during planning against those roadmaps and the remaining catalog entries.
## 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).
@@ -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
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,
and identify the lock being waited on. An immediate busy error is a viable
alternative if the operator prefers to retry manually. Waiting is a recommendation,
not an already approved behavior.
and identify the lock being waited on. A contending invocation waits for the
workspace lock and can be cancelled while waiting.
The roadmap should identify the mutating command participants explicitly. Pure
inspection and unrelated workspaces need no new serialization requirement.
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
@@ -474,6 +474,6 @@ and verification._
Prepare remediation plans against the catalog, using the two feature roadmaps
for their assigned work. Distinguish agreed behavior changes from internal
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
policy; implementation and verification remain outstanding.