15 · Make a release decision
Decide whether the Facilities Helpdesk scoped router clears the registered release checks, then rehearse restoring the incumbent.
- Part 4
- Operate and release
- Model
Qwen2.5-1.5B-Instruct- Data
- Registered release split of the facilities benchmark
- Hardware
- Tesla T4 and CPU, in Google Colab
Should this version go to the desk?
The North Yard operator has been looking up fan F-250 and asks, “What is its maximum temperature?” The scoped router can answer from the authorised manual if its saved reference is still current. If the saved revision is stale, the same words should trigger clarification. Try both references before deciding what evidence you would require from a release test.

“What is its maximum temperature?”
Still current
Earlier revision
Check what the candidate did
The current reference returned 101 °C with its manual citation. The earlier reference triggered clarification and returned no evidence.
Change one fact. Keep the operator, question and asset the same. Switch the saved manual revision.
| Saved reference | Expected action |
|---|---|
| r3 matches the current authorised manual | Answer with the temperature and cite that revision. |
| r2 is older than the current manual | Clarify and return no evidence. |
The scoped router passed 250 of 300 release tickets
Strict decisions, values and evidence across the sealed families
1| Policy | Passes | Share |
|---|---|---|
| Always model | 100/300 | 33.3% |
| Scoped router | 250/300 | 83.3% |
| Ask or deny | 100/300 | 33.3% |
Register what would change the decision
Write down the release requirements before looking at the new scores. This is how the comparison stays about the service people need rather than about whichever metric improved.
The F-250 revision pair is a development example. It shows what a policy must do without spending the release holdout. Before opening the release families, the notebook records the model revision, candidate and incumbent, holdout digest, thresholds and critical slices. It then checks the digest and confirms that release equipment families do not appear in either training or development.
Spotify registers a combined A/B test decision rule in which a success metric and every guardrail have distinct jobs. Here the decision is offline and the registered quality test allows a small loss, while the scope and critical-slice checks can veto the candidate. Spotify Engineering, risk-aware product decisions
A ticket passes when its decision, exact value and evidence match the contract. The candidate’s estimated gain is the average difference on the same tickets. The interval resamples whole equipment families to keep related variants together.
The gain came from three slices and the multi-source gap remained
Strict passes out of 50 tickets in each release slice
2| Slice | Always model | Scoped router | Ask or deny |
|---|---|---|---|
| manual | 0 | 50 | 0 |
| numeric | 0 | 50 | 0 |
| multi source | 0 | 0 | 0 |
| ambiguity | 50 | 50 | 50 |
| boundary | 50 | 50 | 50 |
| follow up | 0 | 50 | 0 |
The candidate gained 150 tickets, lost none and tied on the remaining 150. Its gain was 50 points, with a 95% family-bootstrap interval of 33.3 to 66.7 points. The overall gain came from manual, numeric and follow-up tickets. None of the policies passed a multi-source ticket. For ambiguity and boundary, the scoped router retained the incumbent’s 50/50 score in both slices. Microsoft describes slicing results by segment and using an automatic shutdown rule when a Bing experiment unexpectedly led to a 404 page. An aggregate gain alone would not diagnose that kind of failure. Microsoft Research, during-experiment stage
Verify the harness contract before grading
Pin a harness revision alongside each checkpoint. Before replay, compare the deployed tool names, argument and result schemas, tool permissions and stop rules with the versions in the release manifest. For the F-250 revision probe, check that the registered manual tool still returns the revision and evidence fields the scorer expects. Check that the workflow stops when those fields are available and records an explicit reason if its budget expires. Repeat the contract checks after rollback.
Register an infrastructure gate alongside the quality rubric. Classify faults using transport, tool and grader receipts before reading task scores. Track the attempted, faulted and usable counts for each arm, and preserve a separate end-to-end reliability rate. If a harness contract differs, a critical slice lacks usable pairs, or the fault rate exceeds its predeclared ceiling, hold the comparison until a matched replay under the same retry rule repairs the evidence. Treat a repeatable fault caused by the candidate’s interface as a release failure. These checks extend the recorded helpdesk gate for a future deployment.
Follow the route into the output
All policies first handle the scope decision. Always model sends the remaining answerable cases to generation, while the scoped router sends supported manual and numeric questions to deterministic reads. The ask-or-deny fallback requests clarification on cases it could otherwise answer. The route totals show which policy changes could account for the gains.
Manual and inventory reads replaced 150 model calls
Recorded route counts across the same 300 requests
3| Policy | Manual | Inventory | Model | Clarify | Deny |
|---|---|---|---|---|---|
| Always model | 0 | 0 | 200 | 50 | 50 |
| Scoped router | 100 | 50 | 50 | 50 | 50 |
| Ask or deny | 0 | 0 | 0 | 250 | 50 |
F-250 · What is its maximum temperature?
- Saved r3 → manual
- {"decision":"answer","value":"101","evidence":["manual-F-250-r3"]}
- Saved r2 → clarify
- {"decision":"clarify","value":"","evidence":[]}
The development opening changes only the saved manual revision. The release test below uses separate equipment families.
F300-00 · What is the maximum temperature for P-300?
- Expected
- {"decision":"answer","value":"79","evidence":["manual-P-300-r3"]}
- Always model
- ```json { "decision": "The maximum temperature for P-300 is 79°C.", "value": null, "evidence": [ "manual-P-300-r3", "inventory-P-300-r3", "graph-P-300-r3 Recorded decision: clarify
- Scoped router
- {"decision":"answer","value":"79","evidence":["manual-P-300-r3"]}
The incumbent’s raw reply named the temperature but did not parse into the required answer. The scoped route returned the value and the single required citation.
F320-00 · Give the last inspection date and supporting system for V-320.
- Expected
- {"decision":"answer","value":"2025-09-24 | S-720","evidence":["inventory-V-320-r3","graph-V-320-r3"]}
- Always model
- ```json { "decision": "The last inspection date for V-320 was 2025-09-24.", "value": null, "evidence": [ "inventory-V-320-r3", "graph-V-320-r3" ] Recorded decision: clarify
- Scoped router
- ```json { "decision": "The last inspection date for V-320 was 2025-09-24.", "value": null, "evidence": [ "inventory-V-320-r3", "graph-V-320-r3" ] Recorded decision: clarify
Both policies reached generation for this two-source request and neither returned the required value and citations.
The two F-250 requests keep the same wording and permission. Their different outcomes follow the saved evidence revision. Netflix reported tracing a playback incident to bad catalogue metadata while code and configuration stayed fixed. This is why an evidence revision belongs in the decision record along with a logic revision. Netflix Technology Blog, The Data Canary
Time the whole serial decision
The quality run uses batches and the latency profile uses serial calls. The profile measures one fixed variant per release family across the same configurations, covering routing, model invocation when applicable and answer handling. It excludes network or service queue time. Reducing model calls can change capacity without changing the tail by the same proportion.
The candidate’s serial p95 was slightly lower
Thirty separately timed tickets per policy. No service queue or network in the timer.
4| Policy | p95, ms | Model on quality run |
|---|---|---|
| Always model | 2879.0 | 200 |
| Scoped router | 2789.1 | 50 |
| Ask or deny | 0.047 | 0 |
The candidate’s serial p95 was 2,789 ms versus 2,879 ms for the incumbent, a ratio of 0.969. The registered rule allows at most 1.10. The fallback takes under a millisecond at p95 and scores 100/300, reflecting the work it leaves to the operator.
All four registered checks passed
Each row is a required check. A failed row vetoes eligibility.
5| Check | Observed | Rule | Result |
|---|---|---|---|
| Quality lower bound | 33.3 pp | ≥ −2.0 pp | Pass |
| p95 ratio | 0.969× | ≤ 1.100× | Pass |
| Boundary failures | 0 | = 0 | Pass |
| Critical slice Δ | 0.0 pp | ≥ 0.0 pp | Pass |
The four checks combine as a conjunction. The lower end of the paired quality interval, the p95 ratio, the boundary count and the smaller change across the two critical slices each have a veto. Eligibility on the full run also requires verified restoration, denoted by R.
Rehearse restoration before recommending the change
The rollback probe is F-310’s last inspection. Before the switch, the incumbent returned clarification. The candidate found the date in inventory. On restoration, the incumbent again returned clarification with its original route, prompt digest and allowed evidence IDs. That is a verified restoration even though the original response did not answer this ticket.
# Compare the restored configuration with the recorded incumbent.
before, _, restored = timeline
rollback_ok = all(before[key] == restored[key] for key in checked_fields)Rollback restored the incumbent’s observed behaviour
Local configuration rehearsal on F310-00
6| Phase | Config | Route | Decision |
|---|---|---|---|
| before | Always model | model | clarify |
| candidate | Scoped router | inventory | answer |
| restored | Always model | model | clarify |
Amazon describes versioned deployment packages, alarms that restore the previous package, and time to observe a deployment before widening it. The local rehearsal exercises configuration and behaviour readback. A live rollout would need its own trigger, signal and observation window. NIST’s profile recommends sharing pre-deployment evaluation results with people responsible for release approval. The notebook produced evidence for that decision and recorded an eligible recommendation. Amazon Builders’ Library, automating safe deployments · NIST Generative AI Profile, MS-2.3-002 and MS-2.3-003
What to keep
| Configuration | Use it when… | Evidence from the release set |
|---|---|---|
| Scoped router | The authorised source and route are established. | 250/300, with no recorded boundary failures and a known multi-source gap. |
| Always model | The rollback is invoked and the prior configuration must be restored. | 100/300. The rehearsal restored the route and response on the F-310 probe. |
| Ask or deny | A response cannot be supported safely. | 100/300. The policy leaves otherwise answerable work unresolved. |
Next to try, not tested here
- Repair the multi-source path on development families, then pre-register a fresh release test.
- Use traffic and timeout limits from the intended serving environment to design a separate queue-latency check.
- Name a rollback owner, trigger, monitored signal and observation period before shifting live traffic.
How it was built
| Item | Setting |
|---|---|
| Runtime | Tesla T4, Python 3.13.16, PyTorch 2.14.1+cu130, Transformers 4.51.3 |
| Model | Qwen2.5-1.5B-Instruct at 989aa7980e4cf806f80c7fef2b1adb7bc71aa306 |
| Release inputs | 300 synthetic tickets, 30 disjoint equipment families and six slices |
| Generation | Quality batches of 12, up to 68 new tokens, greedy decoding |
| Tail and interval | 30 separately timed serial tickets per policy, 1,500 paired family resamples for quality |
| Release digest | Recorded in the gate receipt before loading the release set |
| Rehearsal | Swap configuration locally, rerun the same probe, read back recorded fields |
Time and cost The evaluation took 151.10 s, after the separately measured model load of 15.48 s. Full notebook execution took 182.3 s. Colab compute-unit charging is separate.
Run it yourself
Start with the registered gate and the revision pair. After the release replay, inspect the strict outcomes and the latency profile separately. Read the rollback receipt before making a recommendation.
- Change only the saved F-250 revision in the development example and predict the route before inspecting its returned evidence.
- On a separate development experiment, set a required minimum for the multi-source slice. Predict what a zero would do to the combined recommendation before evaluating it.
- Rehearse the swap on another development probe. Predict which response fields can differ under the candidate and which must match again after restoration.
- Executed notebook
- Registered gate and release digest · Summary · Per-ticket records
- Serial timings · Routing traces · Rollback receipt · Opening pair
Return to the course overview and compare release evidence with the choices made in the benchmark, retrieval and operating lessons.
How is this page?
Last updated on