Document consumer-owned execution observation and its architecture decision
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
# ADR-0024: Publish artifacts with native reports and debug evidence
|
||||
|
||||
**Status:** Accepted
|
||||
**Status:** Accepted; the requirement for one native invocation ExecutionGroup is
|
||||
partially superseded by [ADR-0025](0025-use-consumer-owned-execution-observation.md).
|
||||
All other decisions remain accepted.
|
||||
**Date:** 2026-11-22
|
||||
|
||||
## Context
|
||||
|
||||
49
docs/adr/0025-use-consumer-owned-execution-observation.md
Normal file
49
docs/adr/0025-use-consumer-owned-execution-observation.md
Normal file
@@ -0,0 +1,49 @@
|
||||
# ADR-0025: Use consumer-owned execution observation
|
||||
|
||||
**Status:** Accepted
|
||||
**Date:** 2026-11-22
|
||||
|
||||
## Context
|
||||
|
||||
Native contextual observation now reaches initial, prepared, coordinated, nested,
|
||||
and concurrent execution without application request-option forwarding.
|
||||
ckprompt supplies optional invocation reporting; requested debug capture needs
|
||||
its own native snapshot. The runner is not a consumer of invocation accounting.
|
||||
|
||||
## Decision
|
||||
|
||||
Each interested consumer attaches native observation through its execution
|
||||
context. ckprompt owns optional reporting. The CLI owns a debug group only when
|
||||
capture is enabled, writes its snapshot before capture finalization after joined
|
||||
work, and preserves publication-aware capture failures. Other callers own their
|
||||
observers and inspect them when their work finishes.
|
||||
|
||||
The runner propagates the supplied context without a group input, unconditional
|
||||
group allocation, or general observer forwarding through execution options.
|
||||
Per-request capture observers and preparation hooks retain operation evidence
|
||||
independently of invocation accounting.
|
||||
|
||||
Independent native groups may observe the same work. Do not add their overlapping
|
||||
totals or introduce shared-group discovery or an application accounting service.
|
||||
Preserve native IDs, terminal coverage, and unknown-versus-zero facts; cache hits
|
||||
contribute no historical executions or usage.
|
||||
|
||||
This supersedes only [ADR-0024](0024-publish-artifacts-with-native-reports-and-debug-evidence.md)'s
|
||||
requirement for one invocation ExecutionGroup. Its artifact, report, capture,
|
||||
failure, sensitive-data, and remaining native-accounting decisions remain in force.
|
||||
There is no required count of consumers or groups.
|
||||
|
||||
## Alternatives considered
|
||||
|
||||
- Keep runner-owned accounting and forward observers through requests. Native
|
||||
context already supplies the mechanism; the runner does not use the totals.
|
||||
- Discover and share one group between consumers. This adds ownership machinery
|
||||
without a demonstrated need; independent native groups are sufficient.
|
||||
|
||||
## Consequences
|
||||
|
||||
Optional reporting and requested debug evidence coexist without a second
|
||||
application ledger. No-flag execution needs no application accounting group.
|
||||
CLI publication/finalization and primary causes remain application-owned.
|
||||
No configuration version, prompt/model choice, artifact, cache, assessment,
|
||||
worker/admission, budget, or completion-report contract changes.
|
||||
Reference in New Issue
Block a user