Health Was Evidence, Approval Was Authority
Engineering journal · 5 August 2026

I wanted the control plane to accept useful provider health measurements. A routing decision still depends on more than health. It needs an approved evaluation, a human decision where required, and a baseline that was admitted for the requested use. Those facts belong to the authority that owns routing policy.
For the implementation background, see Pydantic model validation.
Across the three requests, the boundary moved in the same direction
At the start of this slice, the public models let operational inputs sit beside fields that looked like settled governance decisions. The consequence differed by endpoint. A health report could claim approval for routing to a baseline. A cohort request could claim a provider was admitted. A consultation request could claim that both a detector and a consultant were admitted. Testing one route in isolation would miss that the error was in whose statement the interface expected.
I kept the caller’s evidence where it belonged. The service still needs measurements to explain a degraded provider and enough scope information to consider a cohort or consultation request. The internal decision also needs an admission record. At this point the trusted resolver for those approval records was unavailable. The three changes removed the equivalent public claims, constructed the internal form under a conservative default and returned an explicit result for the absent authority. The cohort can remain unassigned. A consultation receipt can explain its hold. A health report can remain useful without authorizing a route.
| Role in prose | Exact path, commit, or symbol | Notes |
|---|---|---|
| Control-plane API | packages/agent-control-plane/src/agent_control_plane/api.py | Public request models and internal defaults |
| Provider-health commit | 875a94fad1c8 | Defaults approval and baseline admission to False (lines 756–758) |
| Cohort commit | 77d8cff936f5 | Constructs internal eligibility with provider_admitted=False (lines 716–724) |
| Internal eligibility model | CohortEligibility | Server-side admission record |
Historical source excerpt. packages/agent-control-plane/src/agent_control_plane/api.py at 875a94fad1c8, lines 756–758.
eval_card_approved=False,
human_approved=False,
baseline_admitted=False,
Explain this code line by line
- The server cannot confirm approval of a current evaluation card at this stage.
- The server cannot confirm the human approval decision from trusted evidence.
- The server cannot confirm that the routing baseline was admitted.
Historical source excerpt. packages/agent-control-plane/src/agent_control_plane/api.py at 77d8cff936f5, lines 716–724.
eligibility = CohortEligibility(
task_id=body.task_id,
low_risk=body.low_risk,
new_task=body.new_task,
protected=body.protected,
# Provider admission must be derived from an authoritative Eval Card
# and provider-health projection. An HTTP caller cannot assert it.
provider_admitted=False,
)
Explain this code line by line
- Create the server-side cohort eligibility object.
- Carry the caller's task identity.
- Carry declared risk context.
- Carry whether the request concerns new work.
- Carry whether the task is protected.
- Name the authoritative evaluation source.
- Explain that the caller does not own the decision.
- Set provider admission false under absent authority.
- Complete the internal request.
Two distinct regressions belong in the review
The public contract regression asks whether an input can even claim the decision from the wrong side. The positive operating case then asks whether a well-formed report with valid degradation data gets an appropriate hold when the authority is absent. A schema test by itself says nothing about a handler later inferring permission. A policy test by itself can miss an exposed request field when the fixture happens to omit it. Both are important if the boundary is meant to survive a new client.
| Request | Record produced under the missing-authority case | Later evidence needed |
|---|---|---|
| Consultation | Hold and explicit lack of the admission records | Reviewed detector and consultant admission for the right scope |
| Cohort | No assignment | Proven provider admission and the matching evaluation/health context |
| Health | Measurements can be considered while routing holds | Trusted baseline admission and bound approval evidence |
The source reports record focused passes in all three slices and separate merge pipeline evidence. The 5 August provider-health report also independently observed the previous live image. That means one can explain exactly what the source promises while leaving live behavior tied to the later promotion.
A conservative decision still needs a usable interface
It would be tempting to fail every health request if the admission service cannot deliver a record. That would discard diagnostics at the exact moment a provider is degrading. The health endpoint is useful precisely when decision evidence is incomplete. It can accept a valid operating observation and describe a hold as a separate outcome. The cohort endpoint can return a lack of assignment. The consultation endpoint can persist a receipt explaining which admission records are unavailable. A stable decision record lets the human operator distinguish an expected hold from a broken API transport.
Now consider how these interfaces evolve. A client could be built against an earlier schema. Updating it to remove governance fields is necessary, but it is not enough to secure the service boundary. The server is the place where the request is admitted and the internal form is created. If a trusted resolver is added later, it should read bound records itself and preserve the result, including their scope and version. Coding the schema and defaults together keeps future callers from depending on a field that the governance layer never promised to honour.
The August reports establish one issue at a time. The cohort and consultation changes narrowed their own request boundaries. The provider-health change removed three public approval fields, retained operational measurements and applied an internal false default. The safety property that carries across all three is ownership of the admission evidence. The report for one endpoint is not proof every other endpoint was already using its updated contract. The source excerpts deliberately name which one they show.
There is also a test-design lesson. A clean authenticated request with good metrics should exercise the hold path. A contract fixture containing an authority field should fail public schema validation. A live request rejected before authentication cannot supply the second proof because it did not get as far as parsing that authenticated shape. Keeping live health, source test and positive permission evidence in different rows makes the later rollout report more defensible.
Why removing the form fields was only half the fix
The three source changes operated on different public request models. The consultation request had booleans for detector and consultant admission. The cohort request could carry provider admission alongside task context and budget inputs. The provider-health request could carry approved evaluation, approved human decision and admitted baseline flags beside operational measurements. A caller could give a syntactically valid value. The issue was which party had the standing to assert it.

A measurement can be taken and reported while the decision to depart remains with a separate authority.
The response needed to remain useful after the request model narrowed. Consultation produced a hold and an explicit absence of the two admission records. Cohort evaluation could still consider the task’s scope and budget inputs, while provider admission remained false in the server-side eligibility value. Provider health kept operating evidence available and persisted a hold for the missing-authority case. In each slice the server derived a conservative internal decision, even when the remaining input was perfectly valid.
An illustrative provider evaluation makes the binding concrete. Imagine an approved evaluation for one model revision and one harness. A new health sample from a different revision can be genuine. The old approval does not carry over automatically. A future decision has to resolve the immutable evaluation and human decision for the actual provider, model, harness and eligible baseline. Adding back a client-supplied checkbox would give the route a value without binding any of that evidence. The original reports describe this as remaining work, not an August rollout.
Make the positive test carry clean evidence
There are two useful test shapes. The contract test uses the old public field shape and expects validation to reject it after the change. The operating test gives the service the observations it can legitimately accept, then checks the conservative receipt because authoritative evidence is absent. The first protects the request boundary. The second protects the internal policy outcome.
The stored-decision source fixture makes the second test concrete. It sends a degradation signal with 120 samples, a 0.10 delta, 0.99 confidence, three observed periods and zero safety violations. The evidence would otherwise qualify for the baseline route. The fixture expects HTTP 201 with a hold, then HTTP 200 with that same hold on readback. The case uses a PostgreSQL test container. The 301-pass non-Docker result cannot serve as its execution receipt. The retained report records successful pipelines, with no result for this individual case separately preserved.
An API that refuses every authenticated report would satisfy a superficial denial test while losing the ability to report degraded service.
The 5 August reports record these in separate source deliveries. Consultation recorded 33 focused passes and two deselections. Cohort recorded 25 passes. Provider health recorded 26 passes and a broader non-Docker run of 301 passed, two skipped and 50 deselected. Those counts belong to their respective snapshots. Summing them would count many of the same checks more than once. They establish verified source and CI behavior at each boundary, rather than a single live routing test.
The health closeout observed an unchanged live image and GitOps revision. A successful candidate or main pipeline cannot establish that the new request model was already serving production traffic. That distinction matters here because the practical outcome concerns who is able to make an operational decision. It takes both the admitted source behavior and an actual deployed version to say what the running service enforces.
The following chapter asks how to prove which version reached production and which client routes were actually being checked.
Glossary and primary references
Admission
A governance decision that a particular provider or baseline may be used.
Eval Card
A reviewed record defining evaluation evidence and promotion criteria.
Default deny
Withhold authority when required evidence is missing.