Skip to content

docs: point the conformance guide at the sandbox signing harness (#608) - #669

Open
precious-hub19 wants to merge 1 commit into
Refract-Protocol:mainfrom
precious-hub19:feature/point-conformance-at-the-sandbox-signing-harness
Open

precious-hub19 wants to merge 1 commit into
Refract-Protocol:mainfrom
precious-hub19:feature/point-conformance-at-the-sandbox-signing-harness

Conversation

@precious-hub19

@precious-hub19 precious-hub19 commented Nov 25, 2026 •

Copy link
Copy Markdown

Closes #608
Closes #606
Closes #607
Closes #609

One of the four was real. The other three describe drift that is not there — evidence below, checked line by line against the code.

#608 — the conformance guide now points at the signing harness

The guide requires submissions that verify under the provider's own key, and lists "Signatures verify under the key you supplied" among the things a passing report proves — but never said how to produce one. A provider following it had to reimplement the message format by hand, and that is the easy part to get wrong: base64 over the UTF-8 bytes of a specific message, with a domain line that binds a signature to one deployment.

scripts/sandbox-sign-reading.ts already does this and is documented in oracle-provider-sandbox.md. The guide now carries the two commands it supports and a link to the message formats, so the signing step can be followed rather than guessed.

No conformance rule, check or report field changed.

Not solved — the drift is not there

#606 — the runbook names the alerts the monitor raises

OracleFeedMonitor has exactly two alert titles (src/oracle/oracle-feed.monitor.ts:91):

const title = kind === "stale" ? "Oracle feed stale" : "Oracle feed divergent";

backed by type BreachKind = "stale" | "divergent" at line 12. docs/oracle-alert-runbook.md documents exactly those two, as ### Oracle feed stale and ### Oracle feed divergent, and names the real knob ORACLE_ALERT_CONSECUTIVE_BREACHES. There is no third alert in the service and no alert in the doc that the service does not raise.

#607 — the adapter implements the documented retry and timeout

Every behaviour the doc describes is in src/oracle/httpClient.ts:

doc code
"each bounded by timeoutMs (5s)" timeoutMs: 5000 (lines 61, 70, 79)
"Total attempts = maxRetries + 1 (default 3)" maxRetries: 2 (line 62)
"Backoff: full jitter, baseBackoffMs * 2^n" capped at maxBackoffMs baseBackoffMs / maxBackoffMs (lines 45–46, 63–64)
error kinds including rate_limited, budget_exceeded the same literals at lines 13–14

The options type even carries the doc's own wording: "Retries after the first attempt (total attempts = maxRetries + 1)".

#609 — the staking limits match

docs/staking-policy.md against src/services/staking.ts:

limit doc code
STAKING_MIN_BOND_TIER1 50,000 units 50_000n * STROOPS_PER_UNIT (line 51)
STAKING_MIN_BOND_TIER2 25,000 units 25_000n * STROOPS_PER_UNIT (line 52)
STAKING_MIN_BOND_TIER3 10,000 units 10_000n * STROOPS_PER_UNIT (line 53)
STAKING_MIN_BOND_AGE_SECONDS 7 days 7 * DAY_SECONDS (line 49)
STAKING_SLASH_BPS_OUTSIDE_TOLERANCE 5% / 500 500 (line 56)

There is also no migration under src/db/migrations/ touching staking policy limits, so there is no "policy migration" for the doc to have fallen behind.

A note on the batch

main was last committed on 24 October and these issues were drafted on 21 November, so the three above describe drift against code that had not changed.

Not run here: written without a build environment. This change is documentation only.

The conformance doc requires submissions that verify under the provider's own
key, and lists "signatures verify under the key you supplied" as one of the
things a passing report proves — but never said how to produce one. A
provider following it had to reimplement the message format by hand, and the
format is the easy part to get wrong: base64 over the UTF-8 bytes of a
specific message, with a domain line that binds the signature to one
deployment.

`scripts/sandbox-sign-reading.ts` already does this and is documented in
oracle-provider-sandbox.md. The conformance guide now points at it, with the
two commands it supports and a link to the message formats, so the signing
step can be followed rather than guessed.

No conformance rule, check or report field changed.

Closes Refract-Protocol#608
@drips-wave

drips-wave Bot commented Nov 25, 2026

Copy link
Copy Markdown

@precious-hub19 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant