agent-afk 5.286.0 → 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.
- package/dist/agent/memory/memory-store.access.d.ts +0 -1
- package/dist/agent/trace/events.d.ts +4 -0
- package/dist/agent/trace/types.d.ts +1 -0
- package/dist/bundled-plugins/awa-bundled/skills/review/SKILL.md +2 -0
- package/dist/cli.mjs +316 -313
- package/dist/index.mjs +134 -131
- package/dist/telegram.mjs +155 -152
- package/dist/utils/atomic-write.d.ts +1 -0
- package/dist/whatif/index.d.ts +2 -0
- package/dist/whatif/run.report.d.ts +2 -0
- package/dist/whatif/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type BetterSqlite3 from 'better-sqlite3';
|
|
2
2
|
import type { AccessStats, Fact } from './types.js';
|
|
3
|
-
export type { AccessStats };
|
|
4
3
|
export declare function queryUnaccessed(db: BetterSqlite3.Database, minAgeDays?: number): Fact[];
|
|
5
4
|
export declare function queryAccessStats(db: BetterSqlite3.Database): AccessStats;
|
|
@@ -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;
|
|
@@ -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:
|