Decide when a reviewed revision can go live
A scheduled revision can reach its start time while a second approval is still missing. Track both conditions against the same clock. At tick 12 two distinct reviewers have approved the revision. A duplicate approval cannot replace the second reviewer.
Run the framework with your own input
Install Blyx 0.2.1 and a Rust toolchain with a host linker, then run the versioned project. Each positional argument is a number or a comma-separated numerical vector. The CLI accepts up to 16 entries per vector. The imported module accepts longer inputs.
git clone --depth 1 --branch v0.1.0 https://github.com/Rahulchaube1/blyx-oriole.git
cd blyx-oriole
blyxc native-run project.blyx -- 12 10 20 "4,4,8" 2API and return values
Returns [publish now, lifecycle phase, approvals missing, ticks to next transition]. The caller supplies the clock and persists the revision. Invalid input returns an empty vector.
| Argument | Accepted input |
|---|---|
| now | exact signed integer |
| opens | exact signed integer |
| closes | exact signed integer |
| reviewers | Vector of: nonnegative exact integer |
| required | positive exact integer |
Use the libraries independently
The framework vendors the same library source published in these two repositories. Each module has its own package page, input contract and regression suite.
Try the program
Expected output
1 1 0 8
Practice
Change reviewers = [4, 4]. Predict the result, then run the program.
Hint
Returns [publish now, lifecycle phase, approvals missing, ticks to next transition]. The caller supplies the clock and persists the revision.
Worked solution
The result vector is [0, 1, 1, 8]. Compare its fields with the return layout in the API section.
Find
let reviewers = [4, 4, 8];Replace with
let reviewers = [4, 4];Output after the change
0 1 1 8
