feat(config): pipeline + watchdog thresholds driven by agents.json #453
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks#453
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
User story
As an operator, I want pipeline stall thresholds, review round caps, watchdog intervals, WIP soft limits, and dead-letter thresholds in
agents.json, so that I can tune SLAs per-deployment without recompiling.Why: these defaults live as
consts inwebhook-config.ts:1345-1452,review-loop.ts:49,container-watchdog.ts:106,tail-pr-rebase-watchdog.ts:62,dispatch/watchdog.ts:49. A faster (or slower) machine needs different defaults; today the only knob is editing source.Acceptance criteria
Schema
agents.json::pipelineblock:stall_threshold_ms: number(default 600_000)ci_threshold_ms: number(default 600_000)review_threshold_ms: number(default 900_000)implement_threshold_ms: number(default 1_800_000)default_threshold_ms: number(default 1_800_000)max_review_rounds: number(default 3)agents.json::watchdogsblock:container_interval_sec: number(default 60)tail_pr_rebase_interval_ms: number(default 60_000)dead_letter_threshold: number(default 3)janitor_interval_ms: number(default 600_000)agents.json::types.<TYPE>.wip_soft_limit: number(default 4)agents.json::types.<TYPE>.max_escalations_per_day: number(default 10)Code
consts replaced with reads from resolved configMAX_ROUNDS = 3inreview-loop.ts:49removed (use pipeline config)Tests
stall_threshold_msin mock config changes stall detection cutoffOut of scope
References
webhook-config.ts:1345-1452domain/workflow/review-loop.ts:49infrastructure/container/container-watchdog.ts:106background/tail-pr-rebase-watchdog.ts:62domain/dispatch/watchdog.ts:49