Repository navigation
count a delivery proof the chain can never confirm as missing, not as a reason to stop every evaluation - #47
Open
anuraggdubey wants to merge 1 commit into
Conversation
… a reason to stop every evaluation A transaction with another hash or signer, or one the RPC can't parse, makes its slot missing at once. A transaction the chain does not know stops the run, and its slot is missing once it stays unknown for RETRY_MS. Only a proof that can still confirm (not yet final, or the RPC unavailable) keeps stopping the run. Fixes MultiAgency#46.
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.
Fixes #46.
readDeliverableslabelled every RPC error and every hash or signer mismatch asunverified, andrunEvaluationstops the whole run onunverified. A proof that can never confirm, such as adelivery_txthe chain has never seen, therefore stopped every evaluation of the objective, and no review was ever produced.Changes
fastdata.ts: a final transaction with another hash or signer ismissing, and so is a proof the RPC can't parse (REQUEST_VALIDATION_ERROR). Only the proof's hash and signer vary in that request.UNKNOWN_TRANSACTIONgets a new kind,unknown. Transport errors, other RPC errors and a transaction not yetFINALstayunverified.precheck.ts:unknownProofRuletimes anunknowntransaction the wayretryRuletimes an unreachable host. The first sighting is recorded and stops the run. WithinRETRY_MS, it still stops the run. After that, only that slot counts as missing, and the review isfailed, neverachieved. A slot whose proof settles either way forgets the sighting. Every slot is settled before the run stops, so each unknown transaction is timed from its own first sighting. Keys are<objective>:delivery:<contributor>in the existingunreachableSincemap. A criterion id has no colon, so the two kinds of key never meet.skill.md:56anddocs/app.md§Delivery proof describe which proofs count as missing and which stop the run.Tests
provenance.test.ts: classification of an unknown transaction (unknown); another hash, another signer and an unparsable hash (missing); not yet final, an RPC timeout and an RPC 503 (unverified).precheck.test.ts, using the issue's reproduction: one slot failsnumeric_matchand the other's transaction is unknown. The run stops at 10:00 ("Recorded"), still stops at 10:05 ("Still within the 10-minute retry window"), and at 10:11 returns afailedreview withmissing: [second]. Also covered: a mismatch is missing at once, anunverifiedproof keeps stopping the run however long it lasts, and a transaction the chain comes to know forgets its sighting.pnpm typecheckpasses.Not included
e2e/outlayer-evaluatorreads proofs its caller passes in and refuses on any RPC error. It is not this app's evaluation path.