feat(boss): Chief of Staff Boss + spun-crow registry with cap (#42)
This commit is contained in:
1 parent
ccb0e503c5
commit
663c8a19d8
10 files changed
+329
-20
No files matched your search
@@ -18,6 +18,7 @@ type Guardrails struct {
|
||||
MaxRequestsPerMin int // requester rate cap
|
||||
BaseCooldown time.Duration // first offense cooldown; doubles per strike
|
||||
MaxCooldown time.Duration
|
||||
MaxSpunCrows int // crow registry cap: crows the Boss may spin up
|
||||
}
|
||||
|
||||
func DefaultGuardrails() Guardrails {
|
||||
@@ -34,5 +35,6 @@ func DefaultGuardrails() Guardrails {
|
||||
MaxRequestsPerMin: 5,
|
||||
BaseCooldown: 30 * time.Second,
|
||||
MaxCooldown: time.Hour,
|
||||
MaxSpunCrows: 8,
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user