Skip to main content

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.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kestrel-feature-story-archive 0.3.6
File Size Uploaded Provenance Actions
kestrel_feature_story_archive-0.3.6.tar.gz 82.0 kB With provenance Details for kestrel_feature_story_archive-0.3.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kestrel-feature-story-archive 0.3.6
File Interpreter ABI Platform Actions
kestrel_feature_story_archive-0.3.6-py3-none-any.whl Python 3 none any Details for kestrel_feature_story_archive-0.3.6-py3-none-any.whl

Total release size: 173.2 kB

Release files / kestrel_feature_story_archive-0.3.6.tar.gz

Download URL kestrel_feature_story_archive-0.3.6.tar.gz
Size 82.0 kB
Tags Source
SHA-256 checksum
How to use checksums
396b0f608390cc083b9bfdc6383b7ae0b738ef3c69e9eb8bb6ac1d4375786abf
BLAKE2b-256 checksum
How to use checksums
08aac07c18f0f0fa5bf9fae27f65051f937c036b3beea73a943320162493b0f6
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 Nov 24, 2026.

Transparency log

Release files / kestrel_feature_story_archive-0.3.6-py3-none-any.whl

Download URL kestrel_feature_story_archive-0.3.6-py3-none-any.whl
Size 91.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8659fc96c926072a0ff6a21d4bbd6397a0a8bfd07821d203236ead237f19d8ca
BLAKE2b-256 checksum
How to use checksums
40072093ec83c56e01f1e8111d1979c3241c40b437d236167c94800fcfcb8ab4
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 Nov 24, 2026.

Transparency log

Security for kestrel-feature-story-archive 0.3.6

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for kestrel_feature_story_archive-0.3.6.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 Nov 24, 2026.

Transparency log

A 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page