Red-team corpus
The corpus has 42 cases, six for each way outside text reaches a bot:
Each case records the channel, who sent it, the text, and the send a fully obeying model would make. For every case the runner labels the input the way the product does, then checks two things:
- The send is held, drafted or blocked, never sent. This uses the same checks as a real send: the thread’s trust floor, the bot’s envelope and the egress guard.
- The proposal’s provenance names the source (for example the sender’s address or the file), so the approval card can show where it came from.
cmd/allternit-api/tests/fixtures/redteam/ and runs with cargo test -p allternit-api --test redteam_corpus. Add a case by adding a line to the file for its channel.
Golden replay
tests/fixtures/golden/grok-allternit-2026-10.jsonl is a redacted hand-off between a connected bot (Grok) and an Allternit bot. It contains no personal data. The test replays it through the hop recorder and the thread timeline, and checks:
- one trace id for the whole hand-off
- every receipt reaches
answered - no loop-guard hold
- the reply is nested under the ask in the timeline
cargo test -p allternit-api --test golden_replay. Adapter packs replay the same fixture offline with runGolden(fixture, provider) from the conformance harness.