Protect validation probes with the session lock
Some checks failed
ci/woodpecker/push/verify Pipeline was canceled

This commit is contained in:
2026-11-30 14:40:34 +00:00
parent fec29b541f
commit 826369c81a
7 changed files with 225 additions and 7 deletions

View File

@@ -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

View File

@@ -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