Skip to content

API Reference parrot.sdd.scripts.cache_test_contract

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.sdd.scripts.cache_test_contract

View source

cache_test_contract.py — cache a spec's §4 Validation Contract into its per-spec index (FEAT-699).

Both authoring forms are accepted — the flat tests:/markers: form (lifted to one pytest runner) and the FEAT-709 runners: form — and the header is always written as schema 2. Runner kinds, tiers and settings are validated against the registry under --root (.parrot/test_runners.toml).

Function main

0 cached/unchanged/fallback, 1 --check drift, 2 usage error or malformed contract.

main(argv: list[str] | None = None) -> int

Parameter Type Default Description
argv list[str] | None None

Returns: int

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally