fix(config): carry max_retries into the worker TaskConfig snapshot
The remediate round cap runs inside archie-agent and reads TaskContext.Cfg.MaxRetries, but TaskConfig did not carry the global Config.MaxRetries: ForTask and ToConfig both dropped it, so a default configuration reached the cap as 0 and a remediation never parked. Carry the value (a repo-level override still wins via EffectiveMaxRetries) and pin it with a red-first cap test traced through ForTask/ToConfig. Refs: archie-core-ad3p
This commit is contained in:
1 parent
b6aed040a7
commit
4785ec1fc6
6 files changed
+61
-20
No files matched your search
@@ -2098,7 +2098,7 @@ func TestDispatchCapturesTheAttemptsEffectiveConfig(t *testing.T) {
|
||||
// repositories, identities or lock state.
|
||||
wantKeys := []string{
|
||||
"bot_email", "bot_user", "budgets", "diff_cap_lines", "dispatch",
|
||||
"forge", "model_limits", "models", "notify", "review", "tool_policy",
|
||||
"forge", "max_retries", "model_limits", "models", "notify", "review", "tool_policy",
|
||||
}
|
||||
gotKeys := make([]string, 0, len(doc))
|
||||
for key := range doc {
|
||||
|
||||
Reference in new issue
Block a user