Repository navigation
docs: point the conformance guide at the sandbox signing harness (#608) - #669
Open
precious-hub19 wants to merge 1 commit into
Conversation
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
|
@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! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.tsalready does this and is documented inoracle-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
OracleFeedMonitorhas exactly two alert titles (src/oracle/oracle-feed.monitor.ts:91):backed by
type BreachKind = "stale" | "divergent"at line 12.docs/oracle-alert-runbook.mddocuments exactly those two, as### Oracle feed staleand### Oracle feed divergent, and names the real knobORACLE_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:timeoutMs(5s)"timeoutMs: 5000(lines 61, 70, 79)maxRetries + 1(default 3)"maxRetries: 2(line 62)baseBackoffMs * 2^n" capped atmaxBackoffMsbaseBackoffMs/maxBackoffMs(lines 45–46, 63–64)rate_limited,budget_exceededThe 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.mdagainstsrc/services/staking.ts:STAKING_MIN_BOND_TIER150_000n * STROOPS_PER_UNIT(line 51)STAKING_MIN_BOND_TIER225_000n * STROOPS_PER_UNIT(line 52)STAKING_MIN_BOND_TIER310_000n * STROOPS_PER_UNIT(line 53)STAKING_MIN_BOND_AGE_SECONDS7 * DAY_SECONDS(line 49)STAKING_SLASH_BPS_OUTSIDE_TOLERANCE500(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
mainwas 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.