Protect validation probes with the session lock
Some checks failed
ci/woodpecker/push/verify Pipeline was canceled
Some checks failed
ci/woodpecker/push/verify Pipeline was canceled
This commit is contained in:
@@ -26,6 +26,12 @@ Audita probe under `runs/.validation` can create or probe directories and contac
|
||||
providers; it does not update the session manifest. Discovery and provider
|
||||
checks do not establish real-transcript feasibility or editorial quality.
|
||||
|
||||
Standalone validation acquires the context-aware session lock before reading
|
||||
prepared evidence for Audita or Notarius probes. It holds the lock through probe
|
||||
execution, report consumption and reference verification, serializing these
|
||||
files with runner cleanup and restore. Missing preparation is reported without
|
||||
creating a workspace. Automatic preflight uses the runner's existing lock.
|
||||
|
||||
Scriptorium input-map keys remain binding names distinct from Narratio source
|
||||
IDs. Missing required bindings or variables and inspection failures are errors;
|
||||
optional sources for required inputs, conditional requirements, incomplete
|
||||
|
||||
@@ -51,6 +51,9 @@ operating-system lock held on `.lock` (`ErrLockConflict` on contention). The
|
||||
file retains owner metadata after release or process death; its existence is
|
||||
not evidence that a lock is active. Command and restore flows wait for this
|
||||
lock only while their context remains active, and report a release failure.
|
||||
Standalone validation uses the same lock for its prepared-state reads and
|
||||
session-local readiness probes, keeping active probe files outside concurrent
|
||||
cleanup. Validation leaves stage progress unchanged.
|
||||
|
||||
The runner assigns every invocation a run-workspace identity but creates the
|
||||
physical run directory and its `runs/` parent only when an executing stage
|
||||
|
||||
@@ -130,6 +130,10 @@ prepared glossary records. It does not prepare inputs. Its Audita probe uses a
|
||||
may contact configured providers. The synthetic check establishes readiness for
|
||||
that probe, not feasibility for a real transcript or editorial quality. See
|
||||
[Audita](integrations/audita.md) and [Scriptorium](integrations/scriptorium.md).
|
||||
Session-local Audita and Notarius probes share the session lock with pipeline
|
||||
runs and restore. Validation waits while that lock is held, honors cancellation,
|
||||
and leaves stage progress unchanged. Cleanup can remove finished probe files
|
||||
after validation releases the lock.
|
||||
|
||||
## Stage Execution and Continuation Behavior
|
||||
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
Review baseline: `afd04e49d79afa775649e8f9dcc928b1db8cac05`.
|
||||
|
||||
The integration review followed all seven stages of
|
||||
[the implementation plan](implementation.md). One actionable issue remains.
|
||||
[the implementation plan](implementation.md). The one identified issue is complete.
|
||||
The existing single-invocation cleanup, canonical-product reuse, publication,
|
||||
restore, and managed-view behavior otherwise match the selected design.
|
||||
|
||||
## 1. Serialize Standalone Readiness Probes With Session Cleanup
|
||||
|
||||
Status: Pending.
|
||||
Status: Complete.
|
||||
|
||||
Priority: P2.
|
||||
|
||||
@@ -97,3 +97,19 @@ subsequently removes the completed probe directory. Also cover cancellation
|
||||
while waiting for the lock and reuse the existing no-prepared-state and
|
||||
manifest-unchanged validation tests. Exercise both Audita and Notarius through
|
||||
their shared locking boundary without duplicating native subprocess tests.
|
||||
|
||||
### Completion
|
||||
|
||||
Standalone validation now uses the existing context-aware session lock before
|
||||
loading prepared probe evidence and holds it through probe I/O and reference
|
||||
verification. Lock-acquisition and release failures remain command errors, and
|
||||
cancellation while waiting prevents probe construction. Missing manifests report
|
||||
missing preparation without creating a workspace. Automatic runner preflight and
|
||||
cleanup retention are unchanged.
|
||||
|
||||
Channel-controlled Audita and Notarius regressions verify lock exclusion during
|
||||
active probe I/O and successful cleanup afterward. Additional coverage checks
|
||||
cancelled lock waits, absent preparation, and unchanged manifest bytes. The new
|
||||
regressions failed before the fix and pass afterward, including five repeated
|
||||
race-enabled runs. Full tests, the full race suite, vet, build, documentation
|
||||
checks, and whitespace checks passed.
|
||||
|
||||
Reference in New Issue
Block a user