11# Disputes STF Test Vectors
22
3- We offer two types of test vectors:
4-
5- - Tiny: These are designed for quick adjustments and prototyping, with reduced validators (6)
6- and a shorter epoch duration (12).
7- - Full: These vectors use production validators count (1023) and epoch duration (600).
8-
93Both JSON and SCALE formats conform to the JAM ASN.1 [ schema] ( ../jam-types-asn/jam-types.asn )
104and this subsystem STF specific [ schema] ( ./disputes.asn ) .
115
12- ## STF Output
13-
14- Technically, the STF execution process does not inherently produce auxiliary
15- outputs beyond the success or failure result. In this context, we propose
16- an extension to include additional information that may be beneficial for
17- implementors or useful for executing other subsystems reliant on values
18- generated post-STF execution.
19-
20- When the error or success values are not pertinent to your test vector
21- processing procedures, you may disregard them as necessary.
22-
23- A mapping of error code semantics is provided within the ASN.1 schema for this
24- subsystem.
25-
266## Availability Assignments
277
288Most tests use * null* entries for state availability assignments (* rho* ).
@@ -33,79 +13,54 @@ tests that verify the invalidation of assignments following a verdict.
3313
3414- [ progress_with_no_verdicts-1] ( tiny/progress_with_no_verdicts.json ) 🟢
3515 - No verdicts, nothing special happens
36-
3716- [ progress_with_verdicts-1] ( tiny/progress_with_verdicts-1.json ) 🔴
3817 - Not sorted work reports within a verdict
39-
4018- [ progress_with_verdicts-2] ( tiny/progress_with_verdicts-2.json ) 🔴
4119 - Not unique votes within a verdict
42-
4320- [ progress_with_verdicts-3] ( tiny/progress_with_verdicts-3.json ) 🔴
4421 - Not sorted, valid verdicts
45-
4622- [ progress_with_verdicts-4] ( tiny/progress_with_verdicts-4.json ) 🟢
4723 - Sorted, valid verdicts
48-
4924- [ progress_with_verdicts-5] ( tiny/progress_with_verdicts-5.json ) 🔴
5025 - Not homogeneous judgements, but positive votes count is not correct
51-
5226- [ progress_with_verdicts-6] ( tiny/progress_with_verdicts-6.json ) 🟢
5327 - Not homogeneous judgements, results in wonky verdict
54-
5528- [ progress_with_culprits-1] ( tiny/progress_with_culprits-1.json ) 🔴
5629 - Missing culprits for bad verdict
57-
5830- [ progress_with_culprits-2] ( tiny/progress_with_culprits-2.json ) 🔴
5931 - Single culprit for bad verdict
60-
6132- [ progress_with_culprits-3] ( tiny/progress_with_culprits-3.json ) 🔴
6233 - Two culprits for bad verdict, not sorted
63-
6434- [ progress_with_culprits-4] ( tiny/progress_with_culprits-4.json ) 🟢
6535 - Two culprits for bad verdict, sorted
66-
6736- [ progress_with_culprits-5] ( tiny/progress_with_culprits-5.json ) 🔴
6837 - Report an already recorded verdict, with culprits
69-
7038- [ progress_with_culprits-6] ( tiny/progress_with_culprits-6.json ) 🔴
7139 - Culprit offender already in the offenders list
72-
7340- [ progress_with_culprits-7] ( tiny/progress_with_culprits-7.json ) 🔴
7441 - Offender relative to a not present verdict
75-
7642- [ progress_with_faults-1] ( tiny/progress_with_faults-1.json ) 🔴
7743 - Missing faults for good verdict
78-
7944- [ progress_with_faults-2] ( tiny/progress_with_faults-2.json ) 🟢
8045 - One fault offender for good verdict
81-
8246- [ progress_with_faults-3] ( tiny/progress_with_faults-3.json ) 🔴
8347 - Two fault offenders for a good verdict, not sorted
84-
8548- [ progress_with_faults-4] ( tiny/progress_with_faults-4.json ) 🟢
8649 - Two fault offenders for a good verdict, sorted
87-
8850- [ progress_with_faults-5] ( tiny/progress_with_faults-5.json ) 🔴
8951 - Report an already recorded verdict, with faults
90-
9152- [ progress_with_faults-6] ( tiny/progress_with_faults-6.json ) 🔴
9253 - Fault offender already in the offenders list
93-
9454- [ progress_with_faults-7] ( tiny/progress_with_faults-7.json ) 🔴
9555 - Auditor marked as offender, but vote matches the verdict.
96-
9756- [ progress_invalidates_avail_assignments-1] ( tiny/progress_invalidates_avail_assignments-1.json ) 🟢
9857 - Invalidation of availability assignments
99-
10058- [ progress_with_bad_signatures-1] ( tiny/progress_with_bad_signatures-1.json ) 🔴
10159 - Bad signature within the verdict judgements
102-
10360- [ progress_with_bad_signatures-2] ( tiny/progress_with_bad_signatures-2.json ) 🔴
10461 - Bad signature within the culprits sequence
105-
10662- [ progress_with_verdict_signatures_from_previous_set-1] ( tiny/progress_with_verdict_signatures_from_previous_set-1.json ) 🟢
10763 - Use previous epoch validators set for verdict signatures verification
108-
10964- [ progress_with_verdict_signatures_from_previous_set-2] ( tiny/progress_with_verdict_signatures_from_previous_set-2.json ) 🔴
11065 - Age too old for verdicts judgements
11166
0 commit comments