Energy management and firing discipline #87

Closed
opened 2026-08-25 19:12:23 +02:00 by SirStone · 0 comments
Owner

Parent

#80

What to build

Confidence-based firing gate that decides whether to fire and at what power, using the active gun's hit rate from Virtual Guns, modulated by own and enemy energy levels.

Firing gate: base threshold 0.15; if own energy < 30 raise by 0.10; if enemy energy < 30 lower by 0.10. Don't fire if active gun hit rate < threshold.

Power scaling: power = formula_power × clamp(hit_rate / 0.3, 0.3, 1.0).

Cold start: on true first encounter (no saved weights), gun is silent until GA produces first champion. On rematch, loaded weights fire from tick 1 (they enter as active gun via Virtual Guns).

All threshold values are calibration knobs — defined as constants.

Acceptance criteria

  • Bot does not fire when active gun hit rate is below energy-adjusted threshold
  • Power scaled down when confidence is low
  • Own energy < 30 raises firing threshold (more conservative)
  • Enemy energy < 30 lowers firing threshold (more aggressive)
  • Cold start: no firing until first champion on true first encounter
  • Rematch: loaded gun fires from tick 1
  • All thresholds defined as named constants (calibration knobs)

Blocked by

## Parent https://git.fossellini.top/SirStone/SirRoboGarage/issues/80 ## What to build Confidence-based firing gate that decides whether to fire and at what power, using the active gun's hit rate from Virtual Guns, modulated by own and enemy energy levels. Firing gate: base threshold 0.15; if own energy < 30 raise by 0.10; if enemy energy < 30 lower by 0.10. Don't fire if active gun hit rate < threshold. Power scaling: `power = formula_power × clamp(hit_rate / 0.3, 0.3, 1.0)`. Cold start: on true first encounter (no saved weights), gun is silent until GA produces first champion. On rematch, loaded weights fire from tick 1 (they enter as active gun via Virtual Guns). All threshold values are calibration knobs — defined as constants. ## Acceptance criteria - [ ] Bot does not fire when active gun hit rate is below energy-adjusted threshold - [ ] Power scaled down when confidence is low - [ ] Own energy < 30 raises firing threshold (more conservative) - [ ] Enemy energy < 30 lowers firing threshold (more aggressive) - [ ] Cold start: no firing until first champion on true first encounter - [ ] Rematch: loaded gun fires from tick 1 - [ ] All thresholds defined as named constants (calibration knobs) ## Blocked by - https://git.fossellini.top/SirStone/SirRoboGarage/issues/85 - https://git.fossellini.top/SirStone/SirRoboGarage/issues/86
SirStone added the ready-for-agent label 2026-08-25 19:12:23 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SirStone/SirRoboGarage#87