mesh §3.2: the fidelity floor was checked against the route table, not the serve #183
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/mesh-fidelity-provenance"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A Mesh request carries two bounds, and only one of them was held to a standard
of honesty.
Energy has a provenance model whose coupling §3.3 requires be enforced before
sealing — in the spec's own words, "the rule that keeps 'measured' honest".
Fidelity had none.
The hole
servecomputedfidelity_metat step 2, fromroute.chosen_fidelity—which is
ServingEngine::fidelity, documented as "the fidelity level thisengine is rated to deliver". The engine ran at step 3. The receipt was built
at step 4 from the step-2 value. Nothing the engine returned could change it.
So a backend admitted at
F3that degraded at serve time sealedfidelity_met: 1against anF3floor, and the receipt looked ordinary.The engine could not have been asked, either:
ServeOutcomeis counters only —tokens in/out/accepted, cache hits, speculative proposals — with no fidelity
signal and no degradation signal. The figure could not have been anything but a
table lookup.
Two figures, two different claims
ServeOutcomegainsdelivered_fidelity: Option<Fidelity>, andfidelity_metis derived from it when present.
ServingEngine::fidelityServeOutcome.delivered_fidelityBoth are sealed, as a pair, so a divergence between promise and delivery is
attributable to a named backend rather than merely surfacing as a failed floor.
Enforced, not just recorded
A backend reporting above its rating is refused
(
MeshError::FidelityAboveRating), not clamped. It would be claiming a basis theroute decision never rested on, and clamping would hide a misconfigured or
dishonest engine behind a plausible receipt — the exact failure the field exists
to expose.
What this does not claim
Stated in the spec rather than implied: a delivered figure is still the backend's
own account. It is better grounded than a table entry written before the
work, and it is not an independent assessment of the output — Mesh does not score
responses. What the pair buys is that the divergence becomes visible.
An engine that reports nothing stays conformant and
fidelity_metrests on theadvertisement. That is the older, weaker basis and the receipt says so by
carrying neither field, so a consumer requiring the stronger basis MUST check for
fidelity_deliveredrather than readingfidelity_metalone.Additive — and the drift check proved it twice
mesh/1stays byte-stable. The two fields travel together or not at all:carrying neither is exactly what a pre-existing receipt means, so the published
pack is unchanged.
The conformance drift check caught two earlier drafts of this change that were
not additive — first the reference engine reporting unconditionally, then
fidelity_advertisedemitted on its own.ReferenceEnginetherefore keeps thehistorical shape by default, with
reporting_delivered_fidelity()to exercisethe field; a real engine that can degrade needs no switch.
Spec
New §3.2.1 Advertised and delivered: the two figures, four MUSTs (derive from
delivered where present; never report above the rating; refuse rather than clamp;
carry the pair together or not at all), and the explicit limit on what a
delivered figure is worth. §5's
ServeOutcomesketch and §6.1's wire tableupdated.
Verification
mesh-rsworkspace 57 passed, clippy clean.fidelity_metback to the route tablea_backend_that_degrades_at_serve_time_does_not_meet_the_floora_backend_may_not_claim_a_level_above_the_one_it_was_admitted_ona_reported_delivery_changes_the_signed_core_and_a_silent_one_does_not🤖 Generated with Claude Code
ca3190cd9706a2017da8paths:matches the push delta #19106a2017da8ce8a8b20a0