agent-afk 5.286.1 → 5.286.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -134,6 +134,7 @@ export declare const SubagentStartedPayloadSchema: z.ZodObject<{
134
134
  promptHead: z.ZodOptional<z.ZodString>;
135
135
  agentType: z.ZodOptional<z.ZodString>;
136
136
  resolvedAgentType: z.ZodOptional<z.ZodString>;
137
+ maxToolUseIterations: z.ZodOptional<z.ZodNumber>;
137
138
  }, z.core.$strip>;
138
139
  export declare const SubagentSucceededPayloadSchema: z.ZodObject<{
139
140
  transition: z.ZodLiteral<"succeeded">;
@@ -182,6 +183,7 @@ export declare const SubagentLifecyclePayloadSchema: z.ZodDiscriminatedUnion<[z.
182
183
  promptHead: z.ZodOptional<z.ZodString>;
183
184
  agentType: z.ZodOptional<z.ZodString>;
184
185
  resolvedAgentType: z.ZodOptional<z.ZodString>;
186
+ maxToolUseIterations: z.ZodOptional<z.ZodNumber>;
185
187
  }, z.core.$strip>, z.ZodObject<{
186
188
  transition: z.ZodLiteral<"succeeded">;
187
189
  subagentId: z.ZodString;
@@ -473,6 +475,7 @@ export declare const TraceEventInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject
473
475
  promptHead: z.ZodOptional<z.ZodString>;
474
476
  agentType: z.ZodOptional<z.ZodString>;
475
477
  resolvedAgentType: z.ZodOptional<z.ZodString>;
478
+ maxToolUseIterations: z.ZodOptional<z.ZodNumber>;
476
479
  }, z.core.$strip>, z.ZodObject<{
477
480
  transition: z.ZodLiteral<"succeeded">;
478
481
  subagentId: z.ZodString;
@@ -830,6 +833,7 @@ export declare const TraceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
830
833
  promptHead: z.ZodOptional<z.ZodString>;
831
834
  agentType: z.ZodOptional<z.ZodString>;
832
835
  resolvedAgentType: z.ZodOptional<z.ZodString>;
836
+ maxToolUseIterations: z.ZodOptional<z.ZodNumber>;
833
837
  }, z.core.$strip>, z.ZodObject<{
834
838
  transition: z.ZodLiteral<"succeeded">;
835
839
  subagentId: z.ZodString;
@@ -52,6 +52,7 @@ export interface SubagentStartedPayload {
52
52
  promptHead?: string;
53
53
  agentType?: string;
54
54
  resolvedAgentType?: string;
55
+ maxToolUseIterations?: number;
55
56
  }
56
57
  export interface SubagentSucceededPayload {
57
58
  transition: 'succeeded';
@@ -77,6 +77,8 @@ When `reviewed_ref` is `unknown` (patch-file input), skip pre-fetch entirely and
77
77
  - **security · api-compat** — contracts, auth, injection, breaking changes, secret exposure. Set `id_prefix: "security & api-compat"` on this Agent dispatch.
78
78
  - **correctness · spec-compliance · test-coverage · perf-observability** — logic bugs, regressions, whether the change satisfies its **stated intent** (unmet requirement or unrequested scope creep), missing tests, hot-path perf, logging gaps. Set `id_prefix: "correctness & coverage"` on this Agent dispatch.
79
79
 
80
+ **Budget: set `max_tool_use_iterations: 80` on both Wave 1 dispatches** (or `max_tool_rounds: 80` per node if you dispatch them as `compose` nodes). The `research-agent` default of 50 is too tight for this wave. Each agent covers several dimensions of a diff over 300 lines, and measured Wave 1 workers on the default exhausted their budget 25–36% of the time, which ends in a tools-stripped wind-down built on partial evidence. Raising the round ceiling does not change the concurrency floor above (still 2 concurrent, 3 total).
81
+
80
82
  Each agent receives: full diff + file tree + triage header + **reviewed ref (SHA)** + the **stated intent** (what the change is meant to accomplish, or `(none supplied)`), the **`prior-reviewer-feedback`** block (when available), the severity rubric, **the `blocking` default table plus its overrides and assignment-order invariant**, and the finding schema. The blocking rules are not optional context: the finding schema mandates a `blocking` value per finding, so an agent that receives the schema without the table is being told to emit a field whose assignment rules it was never given.
81
83
 
82
84
  **Citation requirement (enforced per agent).** Wave 1 agents cite from the diff and from the **`prefetched-files` block injected by the orchestrator**. They do **not** call `read_file` for ref-anchored verification (the working tree may be on a different branch) and do **not** run git. Centralized verification runs in Wave 1.5, which checks every `blocking`/`critical`/`high` citation **and every `file-state` citation at any severity** against the same pre-fetched content, then drops fabricated ones. Each agent must: