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

@@ -146,6 +146,9 @@ Other callers may attach their own native observer. See the
[native observation contract][observations] and
[ownership decision](../adr/0025-use-consumer-owned-execution-observation.md);
do not add overlapping totals or a durable profile inventory.
Shared callbacks must tolerate overlapping operations and own their mutable
state. Injected clients and observers follow the pinned [PromptKit consumer
contract][consumer] and its linked GoDoc, not stronger local guarantees.
[Native capture](../../internal/framework/capture/native.go) composes
observers/preparation callbacks rather than replacing them. Retain prepared