Skip to main content

Lifecycle event observability feature for Kestrel Sovereign — hook-driven logging with shared Prometheus registry

Project description

kestrel-feature-observability

Lifecycle event observability for Kestrel Sovereign agents. Attaches an ObservabilityHook to the agent's hook system; every lifecycle event is logged to the agent's observability_store. Prometheus metrics emit through the SDK's shared registry, so a single /metrics scrape stays coherent across the framework + every feature package.

Installation

uv pip install kestrel-feature-observability

For real Prometheus output:

uv pip install 'kestrel-feature-observability[metrics]'

The feature is auto-discovered by Kestrel Sovereign via the kestrel_sovereign.features entry point — install it alongside kestrel-sovereign and ObservabilityFeature registers itself at startup.

Tools

Tool Category Description
observability_summary DATA_ACCESS Recent metric and error counts
observability_query DATA_ACCESS Query lifecycle events by type and time window
observability_session DATA_ACCESS Per-session event timeline

Privacy

The hook is observational — it never blocks, denies, or modifies. User-message content is not logged (only length); tool errors are truncated to 200 chars; exceptions in the hook are swallowed so they cannot affect agent operation.

Dependencies

  • kestrel-sovereign-sdk>=0.14.1,<1 — base Feature, tool, ToolCategory, Hook, and shared metrics module
  • Optional [metrics] extra → kestrel-sovereign-sdk[metrics]prometheus-client

No runtime dependency on kestrel-sovereign itself; the feature accesses agent.observability_store via duck typing, so it works against any host that provides one.

Development

uv pip install -e '.[test]'
uv run pytest

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kestrel_feature_observability-0.2.1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kestrel_feature_observability-0.2.1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file kestrel_feature_observability-0.2.1.tar.gz.

File metadata

File hashes

Hashes for kestrel_feature_observability-0.2.1.tar.gz
Algorithm Hash digest
SHA256 ac728efa1ca082a8eeef4be683f77c80ce33842456a2da40d3e8f47c22093586
MD5 002b9d28864db07ed284f989de51b20a
BLAKE2b-256 c0b3dff36df2766210ec32be87291f103fb09c811bfad4b88f25d67a7fdb9d2d

See more details on using hashes here.

Provenance

The following attestation bundles were made for kestrel_feature_observability-0.2.1.tar.gz:

Publisher: publish.yml on KestrelSovereignAI/kestrel-feature-observability

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kestrel_feature_observability-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for kestrel_feature_observability-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b56edc770f7fab3af28df378f3a86625518a47aa0da1dc2158429835362920c4
MD5 e9f5ed83861c10dd94f67e9774c089b1
BLAKE2b-256 09745a86d89b0eb8c3f1ea930c870b6d85fef1210d7039fa8b50b236b013d01a

See more details on using hashes here.

Provenance

The following attestation bundles were made for kestrel_feature_observability-0.2.1-py3-none-any.whl:

Publisher: publish.yml on KestrelSovereignAI/kestrel-feature-observability

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page