feat(observability): add structured lifecycle receipts - #23
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This is the shared-contract part of the video observability work. Hermes core now distinguishes tool failures from failed operations; this PR gives plugins a common local event format; Sirens can then emit comparable Daphne and DJ Doot generation lifecycles without inventing its own logging contract.
Plugins can correlate multi-stage work through
ObservabilityEventandlog_observability_event. The v1 schema carries request, persona, provider, credential-identity, stage, retry, error, timing, and artifact metadata while omitting null fields.The logger has no exporter or outbound telemetry. It bounds payloads, recursively redacts secret-looking attributes, scrubs common inline credentials, escapes control characters, and offers a domain-separated credential identity hash so operators can compare wiring without exposing keys.
Validation
make test— 111 passed, 10 expected Hermes contract skipsmake build— source distribution and wheel built; the wheel includesobservability.pyuv run python -m compileall -q hermes_plugin_kit testsgit diff --checkRelated
The Sirens consumer PR is being developed in parallel and will pin this package to an immutable merge commit before deployment.