Page 7 of 8~112 min topic

Eval gates in code

Set release boundaries for the CI eval release gate

Page 7 defines what the release eval gate in CI must refuse before release—security here is not a pasted happy path.

~14 min this pageSafety and operations

1Learn the idea

Read

Threats for this artifact only

Operational risks for the release eval gate in CI center on editing golden expected answers to greenwash a bad candidate, plus the earlier failure mode (flaky eval that flips without seed control, or soft-fail that never blocks merge). Safety lives in executable gates, allowlists, redaction, and a named owner—not in a warning paragraph under an unsafe function.

Read

Run the release gate

Read

refuse editing goldens to greenwash

gold_hash='sha256:fixture' assert gold_hash.startswith('sha256:') print({'gold_mutable_in_ci':False,'gold_hash':gold_hash})


Expected evidence: **gold immutable**. A failed assertion means stop, investigate, and do not publish the CI eval release gate.

Read

Owner, retention, rollback

Name who can disable the feature, what data is retained, and how to roll back to the last known good artifact. Pin the reviewed configuration (versions, thresholds, allowlists) so “what shipped” is reconstructable for eval-in-code.

Read

Lab notebook: release blocker

Write the release blocker as a predicate, not a feeling: “Do not ship the CI eval release gate if editing golden expected answers to greenwash a bad candidate.” Pair it with a passing control that shows the reviewed configuration still works for golden JSONL + threshold.yaml. Name an owner and a rollback handle (git tag, docs_version, previous image).

Security pages must not paste the happy-path demo. If your gate code looks like the implementation page, replace it with a deny/allow check aimed at editing golden expected answers to greenwash a bad candidate.

Read

Worked judgment

State the data retention rule in one line (what is stored, for how long, who can read it). Then state the kill switch (env flag, config pin, or feature owner). The CI eval release gate is not shippable without both, even when pass/fail exit code; metric deltas vs baseline; seed recorded looks healthy.

Read

Why this stage matters for the CI eval release gate

At the safety and operations stage for eval-in-code, the job is narrower than finishing a product demo. You are creating one progressive evidence piece about golden JSONL + threshold.yaml that later pages inherit without redefining success. Keep that fixture small enough to inspect by hand, keep outputs copy-pasteable as text, and refuse to narrate this baseline as if it were a production SLA: last known good release metrics.

For this page specifically, success looks like an executable deny gate for the lab-specific threat while still centering the user decision to fail a candidate release when golden-task metrics regress past a pinned threshold. If you cannot point to a file, command, or assertion that proves that for the CI eval release gate, stay on this page instead of advancing.

How-to: ship agent with eval gate · Glossary: eval set

Previous · Next

Go deeper

Before you start

Why this matters

Write an attack or unsafe misuse specific to this lab: editing golden expected answers to greenwash a bad candidate. Predict whether your current code blocks it. Then run the gate below and compare.

In the wild

See how this idea shows up as a product and a company — then come back to the lesson. Skills transfer across vendors.

Check your understanding

Page assessment

Answer from memory. Completion is saved from this evidence, not from opening the next page.

1. Is there a concrete release blocker for: editing golden expected answers to greenwash a bad candidate?
2. Are retention and rollback rules explicit?
3. Can the reviewed version be identified after release?
4. Did this page use a security-specific check—not the happy-path demo?

All responses are required.