avdm
The Audiovisual Scene Data Model (AVDM-001), revision 0.3: one canonical document for one shot, and the serializers that render it into the text a video model reads.
media ──observe──▶ SceneDocument ──render──▶ caption / prompt ──generate──▶ media
(observed) to_h3, to_prose
SceneDocument (planned) ──render──┘
The same serializer writes a training caption from an observed document and an inference prompt from a planned one, so the two registers match by construction.
What is in 0.3
| Part | File |
|---|---|
| JSON Schema, the source of truth | src/avdm/schema/avdm-0.3.schema.json |
| Entity kinds and attribute vocabulary, one table | src/avdm/vocabulary.py |
| The form an observer model fills in | src/avdm/observe.py |
| Typed models (pydantic v2), mirrored by hand | src/avdm/model.py |
Evidence rules: assess, assemble, validate |
src/avdm/evidence.py |
Serializers: to_h3, to_prose, to_ste |
src/avdm/render.py |
| Token budget warning | src/avdm/budget.py |
The subset is a single observed or planned shot: Asset, Shot with camera moves,
Entity, Event, AudioCue, Observation, exact rational TimeRanges, and per-aspect
coverage. 0.2 adds attribute claims on entities and on the shot, from a controlled
vocabulary, where unclear is always an answer and never a default. When a claim is
specified, the serializers write the picture from the claims, not from free prose. 0.3 gives
each entity a kind (person, character, animal, vehicle, structure, object or group), a
depiction (live, on screen, printed, drawn or animated, or sculpted) and, for most kinds, a
class. The kind decides which claims the entity can have. Intent,
constraints, baselines, bindings and edits come later.
0.3.2 adds two things (issues avdm#3 and avdm#4):
- The style of the picture.
styleis a closed shot claim (photograph,home video,film,animation,illustration,painting,render), andstyle_detailis free words ("watercolour", "1980s").unclearstays the only none-value. The caller's style is explicit (a human method); the observer's is observed. When both are present and differ,assemble()keeps the explicit claim and the superseded observation records the difference. - Known entities. The caller names each subject: a
KnownEntityholds a kind (one of the seven kinds), a name, a class word and a short description, with an optionaltrigger.frame_claims_form(known_entities=)asks the observer which known name each listed entity is, from a closed list, orunclear.apply_frame_claims(..., known_entities=)binds the answer toEntity.known_name; the name stays apart from the class the observer sees, and a difference between the caller's class and the observed one is recorded as two claims. The renderers takename_mode:"name"writes "Bob, a man, is at left. Bob wears a red robe.","trigger"writes the trigger in the name's place (a trigger is written exactly as given, so the name and the trigger versions of one caption differ in one place, which is the LoRA pair for differential output preservation), and"class"renders as a document with no names.validate()rejects an unknown name, a kind mismatch and two known entities with one name.
If you render the observer form for a model, take 0.3.3 before you take these
terms: 0.3.2 made the two style fields required in the form, which failed every
answer from a form without them (found by curu-vision), so 0.3.2 is yanked on
PyPI and 0.3.3 makes them optional, like gaze and facial_hair. A field left
out makes no claim, and answers from the 0.3.1 and 0.3.2 forms both validate.
Bump your form version when you first show the style fields to a model.
Use
import avdm
doc = avdm.assemble(avdm.SceneDocument.model_validate_json(raw)) # apply evidence rules
assert not avdm.validate(doc)
caption = avdm.to_h3(doc, trigger="ohwx")
Develop
uv sync
uv run pytest
uv run ruff check . && uv run ruff format --check . && uv run ty check
To adopt AVDM in another repository, point that repository's agent at AGENTS.md.
Metadata
Release files for avdm 0.3.3
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 | Actions |
|---|---|---|---|---|
| avdm-0.3.3.tar.gz | 88.8 kB | With provenance | Details for avdm-0.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| avdm-0.3.3-py3-none-any.whl | Python 3 | none | any | Details for avdm-0.3.3-py3-none-any.whl |
Total release size: 124.9 kB
Release files / avdm-0.3.3.tar.gz
| Download URL | avdm-0.3.3.tar.gz |
|---|---|
| Size | 88.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e96c1be32dbcdc7aa4706c20ccc75f2ebf27957df26f0b67b1424c4f0fda0ad6
|
|
BLAKE2b-256 checksum How to use checksums |
921a767dcfb603609ba2b79dd57afb83b36efbd520439f06cff777ce78b14b27
|
| 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 12, 2026.
Transparency logRelease files / avdm-0.3.3-py3-none-any.whl
| Download URL | avdm-0.3.3-py3-none-any.whl |
|---|---|
| Size | 36.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a29c9b6de5c8b0a1b77b1c44e5d803af4543fc6b067b8ad350c4bd4e0fb232db
|
|
BLAKE2b-256 checksum How to use checksums |
18040259d7d9c8b53403f70e42c0c769bb2be7c9c03bca1508d03ce5545cba63
|
| 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 12, 2026.
Transparency logSecurity for avdm 0.3.3
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.
Attestation for avdm-0.3.3.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 12, 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.