---
title: Golden records and holdouts
description: Two ways to keep a play honest. Golden records pin how specific companies must come out under a client standard, and every plan must map them. Holdouts are labeled data only the independent verifier can read.
---

**Verification:** verified on the twin, including the failure case (details at the bottom).

An agent can write a plan that reads well and a workflow that runs green on three test rows, and still send a customer into an outbound sequence. Greenware's answer is to make the expected outcome a fact the engine checks, not a judgment an agent makes. Two tools do that:

| | Golden records | Holdouts (gold) |
|---|---|---|
| What | A specific record and what a play must do with it: "company 2077 → excluded as customer" | Labeled data: last quarter's wins, known-bad accounts, routed leads with outcomes |
| Attached to | A client standard (`gw client standard … --golden`) | The client (`gw client gold`) |
| Who sees it | Every stage (it's in `standards.md`) | **Only Verify.** Build never sees it, and stage context snapshots never include it |
| Enforced by | The Plan validator (deterministic code) and Verify | The contract's holdout assertions, scored by Verify |
| Catches | The one account everyone forgets: the acquired brand, the reseller, the parent with a different domain | A play that works on paper but doesn't find what you actually win |

## Golden records: standards with teeth

A standard is an always-on rule for a client: what "customer" means, who's off-limits, the default persona. `gw client status` lists five core keys it expects: `customer.definition`, `reach.company.exclude`, `reach.person.exclude`, `persona.default` and `icp.company.default`.

Add golden records to the standards where a mistake is expensive. Each one is an Audiences record id and the outcome a verifier can check:

```bash
gw client standard acme customer.definition \
  --rule "Active, paused and in-trial accounts are customers; churned over 12 months ago are not" \
  --impl "Account.Type in (Customer, Paused, Trial)" \
  --golden "companies:1042=excluded as customer;companies:2077=excluded as customer (acquired sub-brand)"
# acme: customer.definition v1 set. Every plan must map it; Verify runs its 2 golden record(s).
```

Separate several records with `;`. Each looks like `companies:<id>=<expected>` or `people:<id>=<expected>`. Pick the records that broke a past play, or would: the acquired brand whose own flag is missing (field lesson 12), the customer whose LinkedIn URL resolves to a company it bought (lesson 11).

Standards are versioned. Setting the same key again bumps the version and keeps the history in `standards-history.jsonl`. Only a person changes a standard.

### What every plan must then contain

From the moment a client has standards, every plan for that client needs a `## Standards` table with one row per standard, by its backticked key, naming the node that implements it, or `n/a` and why:

```markdown
## Standards
| Standard | Where |
|---|---|
| `customer.definition` | node 4, suppression_check (golden records in A5) |
| `persona.default` | n/a: account-level play, it finds no people |
```

And for every standard the plan applies that has golden records, `contract.json` needs an assertion tagged `std:<key>`:

```json
{ "id": "A5", "statement": "std:customer.definition: companies 1042 and 2077 come out excluded as customers", "kind": "deterministic", "status": "pending" }
```

Verify runs those records through the draft. A golden record that comes out wrong fails the assertion, however good the rest looks.

### The failure case, on the twin

The twin's scripted planner predates standards, so its plan has no `## Standards` section. Set one standard and start a play:

```text
$ gw idea acme "lookalikes off last 45 days of closed-won, routed to AEs" --id lal-std
$ gw answer acme/lal-std --defaults
acme/lal-std  Plan · manual · Plan failed validation 2 times: plan.md is missing the heading "## Standards" (the client has standards every plan must map)
```

That is the check working. The validator is code, not an LLM's opinion. An invalid plan makes the stage `flawed`, the agent gets one retry with the validation errors in front of it, and a second failure stops the play for you (`manual`). There's no fallback that lets a plan through without mapping your rules. A real planner reads the error and adds the table. Other messages you may see:

- ``plan.md "## Standards" leaves out `reach.company.exclude`: map it to a node, or write "n/a" and why``
- `contract.json needs an assertion tagged std:customer.definition that runs its golden records (companies 1042, companies 2077)`

After fixing the cause (a standard you didn't mean to set, say), `gw retry acme/lal-std` runs Plan again with fresh budgets.

## Holdouts: data only the verifier sees

A holdout is labeled data. "Our 400 accounts" is a population, not labels. "These 40 closed in the last 45 days, these 30 were disqualified for fit, this lead went to this rep and became an SQL" are labels. Say in the play what the label is.

From a saved audience (free, read-only):

```bash
gw clay audiences create --entity-type companies --name "[GREENWARE] Closed-won: last 12 months" --filter won.json
gw client gold acme closed_won_12m --audience <audience-id> --limit 500
```

From a CRM export, when the plan has no Audiences:

```bash
gw client gold acme closed_won --csv examples/csv/gold-closed-won.csv
gw client gold acme known_bad  --csv examples/csv/gold-known-bad.csv
```

Both write `clients/<id>/gold/<name>.jsonl` and a `<name>.source.json` that records where it came from. Email and phone fields, and any value that looks like an email, are removed unless you pass `--keep-contact`. Keep them out: a holdout rarely needs to reach anyone. `gold/` is gitignored.

### Holdout assertions worth stealing

| Play | Holdout | Assertion |
|---|---|---|
| Lookalikes | `closed_won` with close dates | Temporal backtest: seed from wins 46–135 days ago, and at least 60% of the last 45 days' wins rank in the top 20% |
| Lookalikes, inbound | `known_bad` | Leak test: zero rows in the output |
| Stacked signals | Wins with opp-created dates, plus a random ICP control | At least 50% of wins cross the threshold in the 90 days before the opp; at most 10% of the control crosses per month |
| Inbound routing | Historical leads with routed-to and outcome | 100% match on existing-owner cases, at least 95% overall |
| Scoring | 60 accounts an AE labeled | At least 80% agreement on tier |

The pattern is the same each time: find a question the play's own output can't answer for itself. "Does the output look like good accounts?" is the builder grading its own work. "Would this have found the deals we actually won?" isn't.

### When Verify can't score it

On the twin, the lookalikes contract's backtest (A2) comes back `unverified` because the factory has no closed-won holdout, and Gate B says so: `Gate B: approve publishing … · 1 assertion unverified`. Unverified is not passed. If that assertion is why you're building the play, add the holdout and send it back:

```bash
gw client gold acme closed_won --csv examples/csv/gold-closed-won.csv
gw reject acme/lookalikes-01 --gate B --comment "closed_won holdout added; run the A2 backtest"
```

## The commands, in order

```bash
gw client standards acme                                   # what's set
gw client standard acme customer.definition --rule "…" --golden "companies:1042=excluded as customer"
gw client status acme                                      # core standards, golden records, holdouts
gw client gold acme closed_won --csv examples/csv/gold-closed-won.csv
gw client gold acme known_bad --csv examples/csv/gold-known-bad.csv
gw idea acme "<the play>"
gw show <client>/<play>                                    # Gate A: plan.md ## Standards, std: assertions
```

## Failure modes

| What you see | What it means | What to do |
|---|---|---|
| `golden record "…" must look like companies:123=excluded as customer` | Wrong format, or a domain instead of a record id | Use the Audiences record id |
| `gold name … must be lowercase letters, digits, - or _` | The name becomes a file name | `closed_won_12m`, not `Closed Won` |
| Plan keeps failing on one standard | The planner can't place it, often because the rule is vague or wrong for this client | Read the error in `gw logs <play>`; fix the rule with `gw client standard`, then `gw retry <play>` |
| A holdout assertion is always `unverified` | The spec names a holdout the client doesn't have | Add it with `gw client gold`, or reject at Gate A and ask for one it has |
| A backtest that leaks | Fit scored on data from after the opp (engagement, say) | Score as of before the opp date; say so in the assertion |

## Verification

**Verified on the twin** (isolated factory): `gw client standard … --golden` with two records set `customer.definition v1`; `gw client standards` and `gw client status` showed it and the missing core keys; with that standard set, a new play stopped at `Plan · manual · Plan failed validation 2 times: plan.md is missing the heading "## Standards"`. `gw client gold --csv` imported both sample files with contact fields removed, and the lookalikes play reached Gate B with "1 assertion unverified" when no holdout existed. The other validator messages are quoted from `src/core/standards.ts`.

**Not run:** `gw client gold --audience` and `gw clay audiences create` (live Audiences), a real planner adding the `## Standards` table, and Verify scoring a real holdout.
