AlphaAvatar Core
avatar-core provides transport-independent media, event and lifecycle contracts.
It does not depend on Agents, concrete plugins, model SDKs or LiveKit.
📦 Package structure
alphaavatar/core/
├── cleanup.py # Cancellation-safe waiting for owned cleanup.
├── lifecycle.py # Components, phases and ordered lifecycle groups.
├── log/ # Diagnostic records, producers and error formatting.
├── env/ # Input observations, annotations and output envelopes.
├── media/ # AlphaAvatar-owned audio, image, video and text payloads.
├── perception/ # Source lineage, event streams, windows and timelines.
├── turn/ # Committed input snapshots and independent consumers.
└── output/ # Delivery, canonical records, control and playback facts.
├── enums/
├── schemas/
├── runtime.py
├── stream.py
├── journal.py
└── timeline.py
Runtime contracts
| Runtime | Responsibility |
|---|---|
PerceptionRuntime |
Normalized input evidence, source generations, annotations and time-aligned snapshots. |
TurnRuntime |
Committed input snapshots captured against a perception cutoff, with independent consumer cursors. |
OutputRuntime |
Validated output admission, exact interruption, completion and independent record/execution streams. |
Adapters normalize external data into EnvObservation. Producers submit EnvOutput to
OutputRuntime; the resulting OutputEvent adds runtime publication identity and timing.
Inputs and outputs are distinct contracts. Text output preserves whitespace; media reuses
validated frames rather than encoding them again for each consumer.
Identity belongs to typed scope/source fields. Context, Turn, Run, output and chunk IDs are not interchangeable. Metadata is a bounded immutable extension, not a place for SDK clients, tensors, media bytes or conflicting identity fields.
Delivery and completion
Realtime stream subscriptions carry media and presentation. records admits canonical
batches for independent consumers such as Memory. execution carries bounded execution
observations for Status and diagnostics. Record admission is not database persistence,
client delivery or proof that a tool succeeded.
TEXT_COMPLETE seals source text; AUDIO_COMPLETE seals synthesis and alignment;
COMPLETE ends source production; PLAYBACK reports the transport's measured progress.
Interrupts resolve exact output identities when admitted and bypass ordinary queue
backpressure. Late callbacks cannot reinterpret an interrupt against a newer Run.
IMMEDIATE text does not require audio. AUDIO_SYNCED text is synthesized by Router and
released as captions according to playback progress. MIRROR is observational, not a
second user-visible response. Estimated timing is distinguished from measured duration;
finalization does not retract an already emitted caption prefix or change audio speed.
Lifecycle and diagnostics
LifecycleComponent defines asynchronous on_start() / on_stop(). LifecycleGroup
starts phases in order and stops them in reverse; components within a phase run concurrently.
Cleanup owns partial initialization too. Cancellation does not silently abandon already
admitted work, and failed cleanup remains visible.
Core logging installs no handlers at import time. Modules use standard logging; Host
owns collection, formatting and file rotation. Optional Core event diagnostics are sampled,
may be dropped, and do not replace canonical records or execution outcomes. See
Host settings and the user-facing
workspace guide for saved logs and backups.
Metadata
Release files for alpha-avatar-core 0.6.8
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 | |
|---|---|---|---|---|
| alpha_avatar_core-0.6.8.tar.gz | 65.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| alpha_avatar_core-0.6.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 181.7 kB
Release files / alpha_avatar_core-0.6.8.tar.gz
| Download URL | alpha_avatar_core-0.6.8.tar.gz |
|---|---|
| Size | 65.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c8f6705332a1ecea4aa7caed6cc40177e083b1a079bf8a1c0f8bd3eb9c30e74
|
|
BLAKE2b-256 checksum How to use checksums |
2424459482e7462a3aac34a683d2998a771b386e1c0ebc814cbcb51d3d5dd78c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / alpha_avatar_core-0.6.8-py3-none-any.whl
| Download URL | alpha_avatar_core-0.6.8-py3-none-any.whl |
|---|---|
| Size | 116.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca4d01651033fe239eff2046529d12bc1d290417d7d075d0c79edacf4a59b5cc
|
|
BLAKE2b-256 checksum How to use checksums |
b9c7f8203963a5c54f84b77c276293bedd8a808da1389b02b4f8fd949380d383
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for alpha-avatar-core 0.6.8
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.