kestrel-feature-story-archive
Schema-rich agent life-story archive for Kestrel Sovereign.
An agent maintains a queryable, semantic archive of its life-story:
interactions, observations, and reflections, organized as a timeline
with vector search and contradiction detection. This is a reusable
framework capability — a sibling package alongside
kestrel-feature-healthcare / -visual / -reflection / -observability
— not a host-product feature. Any Kestrel host can consume it.
Status
Bootstrap skeleton (FEAT-1). Business logic lands in FEAT-2..5:
- FEAT-2 — entity models (Story, StoryChunk, StoryEvent) + Alembic migrations
- FEAT-3 — TimelineBuilder (session → Story/StoryEvent/StoryChunk extractor)
- FEAT-4 — VectorSearch integration for semantic story retrieval
- FEAT-5 — sharing, replay, export, contradiction detection services
This package migrates the 8,240-LOC Story Archive stack from Frinz into
a reusable feature package so other consumers (RemoteCares/RPM Azure
pilot) can leverage it. Records are scoped to agent_did (the canonical
owner identity per the Agent Identity Contract).
Installation
uv pip install kestrel-feature-story-archive
The package registers StoryFeature through the
kestrel_sovereign.features entry-point group and registers its entity
models via the kestrel_entities.models entry-point for Alembic
autogen.
Story Archive consumes the SDK's feature/tool contracts and vector-search protocol. It does not import the retired draft A2A models. Its SDK requirement admits the native Core SDK line; Core remains responsible for choosing a compatible SDK and protocol stack. The feature's historical SDK floor is unchanged because its own required interfaces are unchanged.
Development
uv sync --extra test
uv run --extra test pytest
Architecture
Records are agent_did-scoped and persisted via kestrel-feature-entities
ORM layer. The feature consumes the DatabaseBackend from the host and
leverages the Timeline and VectorSearch protocols (kestrel-sovereign-sdk
v0.16.0+).
No product-specific terminology anywhere in this package — vocabulary is
agent / agent_did / owner throughout. This is a framework capability.
Metadata
Release files for kestrel-feature-story-archive 0.3.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| kestrel_feature_story_archive-0.3.5.tar.gz | 82.1 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kestrel_feature_story_archive-0.3.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 173.4 kB
Release files / kestrel_feature_story_archive-0.3.5.tar.gz
| Download URL | kestrel_feature_story_archive-0.3.5.tar.gz |
|---|---|
| Size | 82.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d98a67adbd28e7bcfdf70821b84f81fb1141f57c4cb0cd0798a0fa70a96e877f
|
|
BLAKE2b-256 checksum How to use checksums |
a7373a971b1f9f9efd1bf0cd1edd3a0cef81ac1066b89c3850c4321fc7e6f411
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / kestrel_feature_story_archive-0.3.5-py3-none-any.whl
| Download URL | kestrel_feature_story_archive-0.3.5-py3-none-any.whl |
|---|---|
| Size | 91.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef2c76b01546acc3eeebd4abb53ae85db9ca3be269019c2a3505a1213089f1c8
|
|
BLAKE2b-256 checksum How to use checksums |
df42d9e6ae8d48f9a45e9bad5236192ab388e5cf52206b389bb46d050ed24471
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logSecurity for kestrel-feature-story-archive 0.3.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for kestrel_feature_story_archive-0.3.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.