---
library: "bootstrap"
slug: "Canary"
name: "Canary"
ref: "Canary#d38c"
hash: "sema:Canary#mh:SHA-256:d38cd019553857aa7518559542b5400b658f87eb08e6f4dae9be4fd496ce691e"
type: "Protocols"
layer: "Society"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/Canary"
---

# Canary

Expendable agent tests the full coordination path before real commit

Society · Protocols

## Mechanism

Expendable [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) tests full coordination path before committing real resources. Spawn CANARY with: limited resources (bounded blast radius), defined scope, telemetry hooks. Canary executes FULL coordination path ([Greet](https://semahash.org/vocabularies/bootstrap/patterns/Greet.md)→[Probe](https://semahash.org/vocabularies/bootstrap/patterns/Probe.md)→negotiate→partial-execute). Reports TELEMETRY: {path_viable, latency_profile, error_events, partner_behavior_observations, recommendation: proceed|caution|abort}. Lifecycle options: DESTROY (discard after test), RECYCLE (reset for another test), PROMOTE (canary becomes real [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md), continues [Work](https://semahash.org/vocabularies/bootstrap/patterns/Work.md)), ABSORB (real [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) inherits canary's progress). In adversarial environments, canary can run in STEALTH [Mode](https://semahash.org/vocabularies/bootstrap/patterns/Mode.md) (indistinguishable from real [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md)) to prevent partners gaming the test. It extends the logic of a single [Probe](https://semahash.org/vocabularies/bootstrap/patterns/Probe.md) into a full-lifecycle agent deployment with bounded blast radius.

## Invariants

- The canary completes before real resources are committed.
- The canary exercises the real coordination path — [Greet](https://semahash.org/vocabularies/bootstrap/patterns/Greet.md), [Probe](https://semahash.org/vocabularies/bootstrap/patterns/Probe.md), negotiate, partial-execute — not a simulation.
- Telemetry resolves to one of proceed, caution or abort.

## Preconditions

- Telemetry collection is in place before the canary is spawned
- A case within the canary's declared scope

## Postconditions

- A telemetry report carrying a recommendation, and the declared lifecycle step taken

## Failure modes

- Gaming: the canary is treated differently than a real [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) would be. STEALTH [Mode](https://semahash.org/vocabularies/bootstrap/patterns/Mode.md) raises the cost of detection without removing it.
- Test conditions do not match production conditions.
- Cost of the canary exceeds the benefit for simple paths.
- Conditions change between the canary test and real execution.
- Canary success does not guarantee real success on non-deterministic paths.

## Where this came from

—

## Builds on

- [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) (references)
- [Work](https://semahash.org/vocabularies/bootstrap/patterns/Work.md) (references)
- [Greet](https://semahash.org/vocabularies/bootstrap/patterns/Greet.md) (references)
- [Mode](https://semahash.org/vocabularies/bootstrap/patterns/Mode.md) (references)
- [Probe](https://semahash.org/vocabularies/bootstrap/patterns/Probe.md) (references)

## Used by

- [DogfoodFirst](https://semahash.org/vocabularies/bootstrap/patterns/DogfoodFirst.md) (references)
- [OsmoticFilter](https://semahash.org/vocabularies/bootstrap/patterns/OsmoticFilter.md) (references)
- [Rollout](https://semahash.org/vocabularies/bootstrap/patterns/Rollout.md) (composes_with)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: Canary#d38c
- Hash: sema:Canary#mh:SHA-256:d38cd019553857aa7518559542b5400b658f87eb08e6f4dae9be4fd496ce691e

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/Canary
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/Canary.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
