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.

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

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.3
File Size Uploaded
kestrel_feature_story_archive-0.3.3.tar.gz 82.2 kB Details

Built distribution (wheel)

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

Total release size: 173.3 kB

Release files / kestrel_feature_story_archive-0.3.3.tar.gz

Download URL kestrel_feature_story_archive-0.3.3.tar.gz
Size 82.2 kB
Tags Source
SHA-256 checksum
How to use checksums
701a2e92e513a31f39623a2cfd25cd5baf0ca362640e2faafe75b19dee7bae8f
BLAKE2b-256 checksum
How to use checksums
0a3ca69964ff4373ebd8f79c6ec184d861c2bf7fd371e97e1472130d53d9cdee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 22, 2026.

Transparency log

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

Download URL kestrel_feature_story_archive-0.3.3-py3-none-any.whl
Size 91.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac41c296241d6d7bc78d227cdb38b2587bc09ad1bba155bc9b764ddff002ad57
BLAKE2b-256 checksum
How to use checksums
51275db41a78598fea1103b542952013e58d2ceed240719bd9a3ad511b31fbbb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 22, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.4

2 release files

This release

0.3.3 This release

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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