Repository navigation
Description
Follow-up from review of #1367 (G-GOV-03). The journey's negatives cover the window and the probe-signature checks; these are the cheap ones it leaves on the table, all buildable from evidence the journey already holds.
Missing on-chain negatives
- Replay →
EvidenceAlreadyUsed. Resubmit the exact real phantom pair under a fresh salt. This is the one dedup guard that lives inSlashJudgerather thanCapacityBond(per its own comment), and it is what stops a griefer ratchetinglifetimeOffenseCountoff a single captured refusal. Highest value of the three. InvalidStreamSignature. Only the probe leg is forged today (forge_probe_signature); the stream leg's rejection path is untested against real evidence.NotPhantom/NodeIdMismatch. Both are covered bySlashJudge.t.solwith synthetic evidence, so lower value — butNotPhantomfrom a realok == trueresponse is a different proposition than a synthetic one.
Missing unit cases in client-pull
- Nothing pins
response: Nonefor mid-stream frames. The four production sites hard-codeNoneand that is correct today —ClientMessage::StreamErrorcarries no signature field and the server writes it viawrite_rejectwith nosign_responsecall. But nothing guards against someone "helpfully" synthesising aStreamResponsethere later, which would hand an observer an unsigned artifact that the field's docs promise always recovers to the delivering node. - The unit test never asserts
preserved.error == refused.error.refusal()clonesresponse.errorintoUpstreamRefused::errorand keeps the whole response; the same value lives in two places with nothing pinning that they agree. A future edit that reclassifies one leg would desync the wire code the reputation layer reads from the code inside the evidence. (Subsumed if client-pull: express UpstreamRefused's evidence invariants in the type #1377 lands.)
Also worth a test
NodeFixture::set_rate_per_mb does parse → mutate → toml::to_string → write with no round-trip test. It is correct today — I verified against the vendored toml 1.1.3 serializer that the ValueAfterTable hazard in [cache] (origin sorts before pull_through_require_authorized_origin) is handled, because each table gets its own buffer — but that is exactly the kind of thing a dependency bump breaks silently. render_config_emits_parseable_toml in the same file is the precedent: it exists so template regressions surface in a plain cargo nextest run -p decdn-e2e with no chain.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
fix(e2e,client-pull): correct two false doc claims, reuse typed rever…
test(e2e,ci): symmetric capture assert, document two deliberate choices
feat(e2e,client-pull): real daemon responses as on-chain slash eviden…