Document extension concurrency and ownership

This commit is contained in:
2026-11-26 03:09:32 +00:00
parent fed376351f
commit 753cd2081c
11 changed files with 54 additions and 2 deletions

View File

@@ -156,6 +156,11 @@ detached details cheaply; ordinary boundaries write prepared contracts, native
results, raw response text, and full readable exchanges. Events are written
incrementally. Scope includes operation/step/lane/chunk/validator identity to
avoid concurrent evidence collisions.
The built-in [recorder](../../internal/framework/debug/recorder.go) serializes
its writes. An explicit writer selected by the runner is shared directly and
must support overlapping calls from concurrent operations; separate native
capture instances do not add a common lock around that writer. The caller owns
its lifetime through completion of dispatched work.
When capture is enabled, the CLI attaches its own native execution group to
the inherited invocation context after allocation. Its finish path writes one