Skip to content

add cycle_interval_minutes CLI args#266

Merged
Thykof merged 2 commits into
mainfrom
config-scoring-intervals
May 26, 2026
Merged

add cycle_interval_minutes CLI args#266
Thykof merged 2 commits into
mainfrom
config-scoring-intervals

Conversation

@Thykof
Copy link
Copy Markdown
Collaborator

@Thykof Thykof commented May 26, 2026

Summary

  • Expose --cycle_interval_minutes.low / --cycle_interval_minutes.high and apply them to LOW_FREQUENCY / HIGH_FREQUENCY in Validator.__init__, matching the existing softmax/sma/retention override pattern.

Test plan

  • Run validator with defaults — cycle intervals stay at 5 / 2 minutes.
  • Run validator with --cycle_interval_minutes.low 10 --cycle_interval_minutes.high 3 — overrides take effect.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

Expose --cycle_interval_minutes.low / --cycle_interval_minutes.high
following the existing softmax/sma/retention override pattern, so the
two cycle intervals can be tuned without editing prompt_config.py.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Exposes CLI flags for configuring the validator’s low/high prompt cycle intervals and wires those values into the runtime PromptConfig objects used by the validator scheduler.

Changes:

  • Added --cycle_interval_minutes.low and --cycle_interval_minutes.high validator CLI arguments (defaults 5 and 2).
  • Applied the configured cycle intervals to LOW_FREQUENCY / HIGH_FREQUENCY in Validator.__init__ (matching existing softmax/SMA/retention override behavior).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
synth/utils/config.py Adds CLI args for low/high cycle interval minutes with defaults.
neurons/validator.py Applies CLI-provided cycle interval overrides to the prompt configs at validator startup.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread neurons/validator.py
Comment on lines +86 to +91
LOW_FREQUENCY.cycle_interval_minutes = (
self.config.cycle_interval_minutes.low
)
HIGH_FREQUENCY.cycle_interval_minutes = (
self.config.cycle_interval_minutes.high
)
@Thykof Thykof merged commit b4918ec into main May 26, 2026
1 check passed
@Thykof Thykof deleted the config-scoring-intervals branch May 26, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants