Implement and validate
Run the conformance vector, then follow a complete exchange between two implementations.
Run the vector
Build from the repository root with stable Rust and the workspace lockfile.
cargo build --locked --manifest-path crates/production-runtime/Cargo.toml -p producer-production-cli
export PRODUCER_CORE="$PWD/crates/production-runtime/target/debug/producer-core"
python3 protocol/v1/snapshot.py verify protocol/v1/field-notes --trust protocol/v1/conformance/fixture-signers
"$PRODUCER_CORE" bundle-sheet protocol/v1/field-notes reveal
Use bundle-run DIR DEVICE_JSON SEQUENCE EVENTS_JSON to evaluate a verified package with its local media plan. bundle-edit DIR EXPECTED_REVISION COMMAND_JSON applies a native typed edit and emits a replacement production document for a draft. A stale revision fails before editing. Use bundle-check DIR for structural validation and integrity. Use snapshot.py verify for signer verification and --parent DIR to check the direct ancestor. Use checkout SOURCE DRAFT --trust FILE to create a writable child and freeze DRAFT NEW --parent SOURCE --key KEY --trust FILE to sign it into a fresh directory. Supply at least one trusted principal for each signer in a collaboration. Anyone with the trusted public keys can verify archived snapshots offline.
For a full gate, install Node, Google Chrome, OpenSSH, Python 3.9+ and the test-only Playwright Core driver. Set CHROME_BIN to the Chrome executable. Use a temporary dependency directory or an existing Playwright installation.
npm install --prefix "$TMPDIR/producer-peer" --no-save playwright-core@1.65.1
export NODE_PATH="$TMPDIR/producer-peer/node_modules"
python3 protocol/v1/conformance/check.py
The gate verifies the published fixture signature, copies it to an independent JavaScript reader, decodes the original and proxy, draws landscape and vertical layouts with the packaged font, mixes six seconds of audio, and slips the source of the three-second cut. A distinct signer freezes the returned cut, and the Rust timeline evaluates both the main sequence and a nested excerpt. It also exercises work with no footage, completion, outdated approvals, altered documents, media and signatures, unsupported capabilities and broken creative references. --evidence NEW_DIRECTORY retains the signed results, public keys, reference sheet and rendered frames. The browser peer exercises the fixture's feature subset. Desktop import UI, network discovery, hosted generation and store-and-forward transport are independent integration points.
The full cross-implementation check uses Python 3, OpenSSH, Node 24, Playwright Core 1.65.1 and an H.264-capable Chrome. In a shell with node on PATH, set CHROME_BIN to the Chrome executable and NODE_PATH to the directory containing the installed playwright-core package. From the repository root run:
python3 protocol/v1/conformance/check.py --core "$PRODUCER_CORE"
The fork CI workflow runs the same check on changes to the protocol or production runtime.
Implement a round trip
Field Notes is a signed six-second episode. Download the round-trip evidence to inspect both signed directories, the public test signer pins, decoded frame samples and the resolved shot sheet. These are outputs of the independent browser peer and Rust verifier.
| Incoming production | Returned production | |
|---|---|---|
| Placement | main / sponsor-cut | main / sponsor-cut |
| Timeline interval | [2 s, 5 s) | [2 s, 5 s) |
| Media source at 2 s | 2 s | 1 s |
| Cue boundaries | 2 s in, 5 s out | 2 s in, 5 s out |
| Credit | North Signal | North Signal |
- Receive and verify. Stage the incoming directory. Check its signature against a separately trusted issuer, then validate both schemas, document hash, blob digests and semantic references. For this published vector the incoming manifest digest is
88500a66fc9b82f1c8eacc9b4ee5cbeb181bb3bac7ba94d82bc1e45abe15e290. - Plan locally. The peer decodes a 320-pixel-wide original on its larger device profile and a 160-pixel-wide proxy on constrained profiles. It draws both orientations and mixes 288,000 program audio samples over six seconds. Device choices stay outside the saved edit.
- Slip the footage. Find placement
sponsor-cutby ID insequences.main.placements. Change onlysourceIn.ticksfrom"0"to"1", retaining rate 1. Keep its timeline range, picture cue IDs, route and placement credit. Below is the complete returned placement.
{
"id": "sponsor-cut",
"source": "picture",
"range": {
"start": {
"ticks": "2",
"rate": 1
},
"duration": {
"ticks": "3",
"rate": 1
}
},
"sourceIn": {
"ticks": "1",
"rate": 1
}
}
- Freeze and return. Rehash the changed production document. Bind its hash into the manifest, set the original revision as parent, record the fork author and authored time, then sign the exact new manifest bytes. The example child revision is
35373c06eac47a2e2dd0120daf08ded084f90c8c39d55a5c90329871be109cb4. A new run creates a fresh test signing key. - Reopen on the origin. At 2 s the sponsor source reads from 1 s. At exactly 5 s the outro owns the frame. Check both cues, verify the edited source time inside the nested teaser, and compare the two signatures and parent link. Reject edits submitted against a stale revision.
From the repository root, after building PRODUCER_CORE as described in Run the vector, set EVIDENCE to the extracted archive directory. These commands check the supplied pair offline. For a real collaboration, obtain the signer pins through your own trust channel.
python3 protocol/v1/snapshot.py --core "$PRODUCER_CORE" verify "$EVIDENCE/base" --trust "$EVIDENCE/allowed_signers"
python3 protocol/v1/snapshot.py --core "$PRODUCER_CORE" compare "$EVIDENCE/returned" --parent "$EVIDENCE/base" --trust "$EVIDENCE/allowed_signers"
Read the independent peer, browser renderer and origin-side assertions to implement the exchange in another language.