iCog-Labs-Dev/cordial-f1r3node ? reverse-engineered prompt
Reverse engineered prompt
Build me a Rust workspace for the Cordial Miners consensus protocol that can plug into the F1R3FLY node stack. I want the core consensus logic kept separate from the node integration pieces, so the protocol itself can be used on its own, but the repo also needs adapters for f1r3node and RSpace so it can actually run inside the node.
The core should handle the blocklace DAG, validation, fork choice, finality, execution abstractions, and the basic consensus traits. The adapter layer should translate blocks, wire up consensus mode selection, and bridge to the existing Casper style interface. Please make sure the code is split cleanly so node specific imports do not leak into the core.
Set it up so the core tests can run without a f1r3node checkout, but the full workspace can be tested when that repo is present. If you need to look up current docs or integration details online, do that too.
Are you gonna build this?
make sure you review the code using coderabbit