feat: genesis ceremony task handlers and deterministic task IDs#41
Merged
feat: genesis ceremony task handlers and deterministic task IDs#41
Conversation
Implement the four sidecar task handlers needed for genesis ceremony: - generate-identity: runs seid init to create validator keys - generate-gentx: keys add + add-genesis-account + gentx pipeline - upload-genesis-artifacts: uploads gentx and identity manifest to S3 - assemble-and-upload-genesis: downloads all gentxs, collect-gentxs, uploads final genesis Also adds deterministic caller-provided task IDs with deduplication: - Engine validates IDs as UUIDs (ErrInvalidTaskID sentinel) - Idempotent submission when an ID already exists - TaskMeta embedded in all 16 client task structs for ID propagation - OpenAPI spec updated with optional id field on TaskRequest Includes typed Submit* convenience methods on SidecarClient for all four new task types, CommandRunner abstraction for testable seid invocations, and comprehensive test coverage across engine, server, and task handler layers.
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.
Summary
generate-identity— runsseid initto create validator keys and node identitygenerate-gentx— three-step pipeline:keys add→add-genesis-account→gentxupload-genesis-artifacts— uploads gentx and identity manifest to S3 per-nodeassemble-and-upload-genesis— downloads all node gentxs from S3, runscollect-gentxs, uploads assembled genesis.jsonErrInvalidTaskIDsentinel for non-UUID IDs.TaskMetastruct embedded in all 16 client task types for ID propagation.Submit*Taskconvenience methods onSidecarClientfor all four new genesis tasks.CommandRunnerabstraction for testableseidCLI invocations.Test plan
generate-identity: seid init args, idempotency via marker, missing params, seid failuregenerate-gentx: full 3-step flow, idempotency, missing params, keys add failureupload-genesis-artifacts: gentx + identity upload, idempotency, missing params, no gentx fileassemble-and-upload-genesis: full flow with S3 mock, idempotency, missing params, S3 download failure, collect-gentxs failureErrInvalidTaskID), dedup active/completed/scheduledgo test ./...)