Parent epic: #4
Summary
Implement the Prompt SDK provenance and observability records required to trace how a prompt execution was produced without logging secrets or unnecessary sensitive/private content.
Scope
- Record prompt ID/version and Prompt Specification version.
- Record hashes/identifiers for rendered prompt and relevant context package inputs as policy permits.
- Record provider/model/adapter identity and normalized generation parameters.
- Record execution timestamps, duration, usage metadata, result identifiers, and status.
- Record validation/lint and structured-output validation outcomes.
- Support correlation/execution IDs for downstream manifest/build orchestration.
- Define redaction and safe-logging rules.
- Keep observability sinks pluggable rather than requiring a specific telemetry vendor.
Deliverables
- Execution provenance schema/model.
- SDK instrumentation hooks.
- Redaction/safe-logging policy.
- Default local/test observer implementation.
- Tests and examples.
Acceptance Criteria
Parent epic: #4
Summary
Implement the Prompt SDK provenance and observability records required to trace how a prompt execution was produced without logging secrets or unnecessary sensitive/private content.
Scope
Deliverables
Acceptance Criteria