Rookery
Modular supply-chain attestation toolkit for Go. Build SLSA / in-toto evidence at every step of your SDLC — local dev, CI, release, deploy — and verify it with policy.
Rookery is the upstream for cilock (witness-compatible attestation CLI), the attestation library, 50+ attestor plugins (see docs/attestor-catalog.md), a pluggable signer set (see docs/signers.md), and a builder that emits custom binaries with only the plugins you want.

A real, unscripted Claude Code session: cilock wraps a Trivy scan under eBPF kernel-side tracing and signs the result as an in-toto attestation — nothing faked.
Working with an AI agent on this repo? Point it at AGENTS.md — it has the layout, commands, and conventions you'd otherwise have to discover by reading source.
What you actually get
| You want to… | Use |
|---|
| Wrap a build step and produce signed evidence | cilock run |
| Record attestations without wrapping a command | cilock attest |
| Verify a chain of attestations against policy | cilock verify |
| Package evidence into a portable bundle | cilock bundle |
| Inspect per-file inclusion proofs (inline in v0.3 product attestations) | cilock verify with the attestation's inline leaves |
| Manage and validate Witness policies | cilock policy |
| Embed attestation in your own Go program | attestation library |
| Ship a slimmer CLI with only the attestors you need | builder |
| Drop into a GitHub Actions workflow | aflock-ai/cilock-action |
Run cilock --help for the full command list (attest, bundle, policy, plan, tools, sign, login, whoami, …).
Quick start
# Install cilock (witness-compatible CLI, all plugins)
go install github.com/aflock-ai/rookery/cilock/cmd/cilock@latest
# Wrap a build step — produces an in-toto/DSSE attestation
# (product + material are always recorded; pass --platform-url "" to sign fully offline)
cilock run \
--step build \
--attestations command-run,environment,git \
--signer-file-key-path cosign.key \
--outfile build.attestation.json \
--platform-url "" \
-- go build ./...
# List every attestor compiled into this binary
cilock attestors list
For configuring signing backends and the hosted platform, see docs/configuration.md
and docs/signers.md; for canonical attestor names and predicate types, see the
attestor catalog. cilock run --help and cilock verify --help document
the full set of signing, tracing, and Archivista flags.
Layout
rookery/
├── attestation/ # Core library: AttestationContext, Attestor interface, DSSE envelope
├── cilock/ # Batteries-included CLI (witness-compatible)
├── plugins/
│ ├── attestors/ # 50+ attestors, each its own Go module
│ └── signers/ # signer plugins — canonical list in docs/signers.md
├── presets/ # Curated plugin sets (minimal, cicd, all) — blank-import these
├── builder/ # Generate custom cilock binaries with a chosen plugin set
├── compat/ # Import shims for the legacy witness.dev module paths
└── docs/
└── attestor-catalog.md # Canonical attestor names + predicate types
Module path convention: github.com/aflock-ai/rookery/...
Each plugin is its own go.mod so you can depend on, e.g., just plugins/attestors/git without dragging in the whole tree.
Three ways to consume
1. Use the prebuilt cilock CLI
The default binary ships every attestor and a sensible signer set. Best for getting started, CI, and dogfooding.
2. Build a custom CLI with builder
Pick only the plugins you ship — smaller binary, smaller transitive dep tree.
cd builder
go run ./cmd/builder/ --preset minimal --local --output /tmp/cilock-min
/tmp/cilock-min attestors list
Presets: minimal (commandrun + environment + git + material + product, with the file signer),
cicd (minimal + github, gitlab, slsa), all (every attestor + every signer). Run
go run ./cmd/builder/ --help for manifest format and the --with, --fips, and --manifest flags.