Skip to content

[FEATURE] Simplify coordination by reducing stage count to 1 per round #46

@cleanunicorn

Description

@cleanunicorn

Problem Statement

The current swarm coordination system uses a 3-stage round structure that introduces unnecessary complexity for our simplified coordination use case. The multi-stage approach creates coordination overhead, delays round progression, and complicates the reward submission process for participants who need rapid feedback cycles.

Proposed Solution

Hardcode the stageCount constant to 1 instead of the current value of 3, effectively creating a single-stage round system where each round completes immediately after one stage.

Technical Details

  • New functions/methods needed: N/A
  • State variables required: Modify existing _stageCount constant from 3 to 1
  • Events to emit: N/A (existing events will continue to work)
  • Access control considerations: N/A

[Optional] Example Implementation

// Change this line in SwarmCoordinator.sol
uint256 constant _stageCount = 1; // Previously was 3

[Optional] Alternatives Considered

  1. Dynamic stage count configuration: Would add unnecessary complexity for a parameter that should remain constant for network consistency
  2. Parameterized constructor: Adds deployment complexity without clear benefit
  3. Multi-stage support with single-stage mode: Over-engineering for the simplified use case

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions