Skip to content
Stirrup

Data contracts that warn or block

Declare the rules your data must meet and Stirrup checks them on schedule, holding bad rows back before they spread.

  1. acme
  2. Contracts
  3. orders-feed
WarnBlock
Attached to crm-postgres / ordersChecks on every sync and */30 * * * *v7
Contract rules and their latest result
order_idstring, required, regex("^ORD-[0-9]{6}$")pass
amountnumber, required, min(0)pass
currencyoneof(USD, EUR, GBP)pass
statusoneof(active, paused, churned)38 rows
emailstring, nullable, regex(".+@.+")pass
updated_atdate, requiredpass
freshnessmaxAgeHours: 61 h ago
VIO-0412OpenOpened 29 Oct 2026, 14:00:12 CDT
Rule
status oneof(active, paused, churned)
Sample rows
ORD-104233 "archived"ORD-104237 "archived"ORD-104241 "Archived"
Block
38 rows quarantined, each with a reason
Paused
Dashboard Q3 revenue review, endpoint /api/run/acme/orders/summary
Fixed by
Not yet acknowledged
AcknowledgeReview quarantined rows

Write the rule once, then let it watch

Contracts are declarative, versioned and readable by anyone on the team.

  1. Write the contract

    Declare types, required and nullable fields, regex patterns, allowed values, ranges and a freshness window.

  2. Attach it to data

    Any sheet, connection import or script output can carry a contract. One format covers all three.

  3. Check on a schedule

    Checks run on demand, on a schedule, or from a trigger such as a finished sync.

  4. Warn or block

    Warn records the violation and notifies. Block also quarantines failing rows and pauses what depends on them.

Rules, enforcement and automation

The rules, what happens when they fail, the record they leave and the work they can start.

Contract rule types with example syntax
Rule typeExampleWhat it catches
Type and requiredamount: number, requiredMissing columns, text in a number field
Nullableemail: string, nullableEmpty values where a value is mandatory
Regexorder_id: regex("^ORD-[0-9]{6}$")Malformed IDs, codes and emails
Allowed valuesstatus: oneof(active, paused, churned)Values nobody agreed on
Rangediscount: min(0), max(0.4)Negative amounts, out-of-range rates
FreshnessmaxAgeHours: 6A feed that stopped updating

Specs and limits

What a contract can check and which plan each part starts on.

Contracts and triggers specifications and plan limits
Rule types
Type and required, nullable, regex, allowed values (oneof, min, max), freshness (maxAgeHours)
Attach to
Sheets, connection imports, script outputs
Violation record
Rule, sample rows, time, who fixed it
Status is open, acknowledged or resolved; the log exports for audits
Rule management
Versioned and diffable
With coverage-gap analysis
Trigger events
Cron tick, Interval, Contract violation, Freshness breach, File uploaded, Endpoint hit, Inbound webhook
Trigger actions
Run a contract check, Run Juno unattended, Enqueue a job, Fire an outbound hook
Contracts in warn mode
Team and up
Freshness rules
Team and up
Block mode
Business and up
Event and cron triggers
Starter and up
Unattended Juno runs
Team and up
  • Connections & Files

    Validate every import at the door, before it reaches a sheet or a dashboard.

  • Scripts & APIs

    Check script output before an endpoint serves it, and enqueue jobs from triggers.

  • Investigate

    Open an investigation from a violation and get a causal answer with evidence.

Questions

Warn logs the violation and notifies whoever you choose; nothing stops. Block also quarantines the failing rows, with a reason for each, and pauses downstream dashboards and endpoints until the check clears.

Catch bad data before it reaches a decision

Start a contract in warn mode on the import you trust least. Contracts are on Team and up.