agent-valley 4.9.7 → 4.9.9
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/assets/plugin.json +1 -1
- package/dist/index.js +21 -14
- package/dist/supervisor.js +1 -1
- package/package.json +1 -1
package/dist/assets/plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
3
|
"name": "av",
|
|
4
|
-
"version": "4.9.
|
|
4
|
+
"version": "4.9.9",
|
|
5
5
|
"description": "Delegate repository goals to Agent Valley and inspect mission progress and verification evidence.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Agent Valley"
|
package/dist/index.js
CHANGED
|
@@ -7457,7 +7457,7 @@ var init_mission_state_schema = __esm(() => {
|
|
|
7457
7457
|
taskId: id.optional(),
|
|
7458
7458
|
personaId: id.optional(),
|
|
7459
7459
|
instructions: text.optional(),
|
|
7460
|
-
previousTasks: array(taskStateSchema).max(
|
|
7460
|
+
previousTasks: array(taskStateSchema).max(48).optional(),
|
|
7461
7461
|
evidence: strictObject({ finalReview: reviewSchema.optional(), verification: verificationSchema.optional() }).optional()
|
|
7462
7462
|
}).superRefine((decision, ctx) => {
|
|
7463
7463
|
if (decision.action === "wait" !== (decision.retryAfterSec !== undefined))
|
|
@@ -57384,7 +57384,7 @@ var goalVerificationCheckSchema = discriminatedUnion("kind", [
|
|
|
57384
57384
|
kind: literal("file"),
|
|
57385
57385
|
path: path4,
|
|
57386
57386
|
minBytes: number2().int().min(1).max(4194304).default(1),
|
|
57387
|
-
contains: array(text6).min(1).max(
|
|
57387
|
+
contains: array(text6).min(1).max(20).optional(),
|
|
57388
57388
|
sha256: sha256.optional()
|
|
57389
57389
|
}),
|
|
57390
57390
|
strictObject({
|
|
@@ -57393,26 +57393,32 @@ var goalVerificationCheckSchema = discriminatedUnion("kind", [
|
|
|
57393
57393
|
pointer: string2().max(1024).refine((value) => value === "" || /^(?:\/(?:[^~]|~[01])*)+$/.test(value), {
|
|
57394
57394
|
message: "Use an RFC 6901 JSON pointer such as /engines/node."
|
|
57395
57395
|
}),
|
|
57396
|
-
equals: union([
|
|
57396
|
+
equals: union([
|
|
57397
|
+
string2().max(4000),
|
|
57398
|
+
number2().finite(),
|
|
57399
|
+
boolean2(),
|
|
57400
|
+
_null3(),
|
|
57401
|
+
array(union([string2().max(4000), number2().finite(), boolean2(), _null3()])).max(50)
|
|
57402
|
+
])
|
|
57397
57403
|
}),
|
|
57398
57404
|
strictObject({
|
|
57399
57405
|
kind: literal("command"),
|
|
57400
57406
|
program: _enum(["git", "node", "bun", "cargo"]),
|
|
57401
57407
|
args: array(string2().min(1).max(1024)).min(1).max(30),
|
|
57402
57408
|
timeoutMs: number2().int().min(100).max(3600000).default(120000),
|
|
57403
|
-
stdoutIncludes: array(text6).min(1).max(
|
|
57409
|
+
stdoutIncludes: array(text6).min(1).max(20).optional()
|
|
57404
57410
|
}).refine((check) => safeVerificationCommand(check.program, check.args), {
|
|
57405
57411
|
message: "Use explicit node/bun/Vitest tests, read-only Git, or exactly cargo fmt --all -- --check, cargo clippy --workspace --all-targets -- -D warnings, cargo test --workspace. Other Cargo commands or flags, shells, scripts, installs and publishing are forbidden."
|
|
57406
57412
|
})
|
|
57407
57413
|
]);
|
|
57408
57414
|
var goalVerificationContractSchema = strictObject({
|
|
57409
57415
|
version: literal(1),
|
|
57410
|
-
criteria: array(strictObject({ criterion: text6, checks: array(goalVerificationCheckSchema).min(1).max(
|
|
57416
|
+
criteria: array(strictObject({ criterion: text6, checks: array(goalVerificationCheckSchema).min(1).max(20) })).min(1).max(20)
|
|
57411
57417
|
}).superRefine((contract, ctx) => {
|
|
57412
57418
|
if (new Set(contract.criteria.map((entry) => entry.criterion)).size !== contract.criteria.length)
|
|
57413
57419
|
ctx.addIssue({ code: "custom", message: "Assess each success criterion exactly once." });
|
|
57414
|
-
if (contract.criteria.reduce((sum, entry) => sum + entry.checks.length, 0) >
|
|
57415
|
-
ctx.addIssue({ code: "custom", message: "Keep the verification contract within
|
|
57420
|
+
if (contract.criteria.reduce((sum, entry) => sum + entry.checks.length, 0) > 80)
|
|
57421
|
+
ctx.addIssue({ code: "custom", message: "Keep the verification contract within 80 executable checks." });
|
|
57416
57422
|
});
|
|
57417
57423
|
function validateGoalVerificationContract(input, successCriteria) {
|
|
57418
57424
|
const contract = goalVerificationContractSchema.parse(input);
|
|
@@ -57885,11 +57891,12 @@ async function inspectCheck(check, root, options, budget) {
|
|
|
57885
57891
|
} catch {
|
|
57886
57892
|
return { ...common, passed: false, summary: checkSummary(false, "Observed file is not valid UTF-8 JSON.") };
|
|
57887
57893
|
}
|
|
57888
|
-
const
|
|
57894
|
+
const observed = jsonPointerValue(json, check.pointer);
|
|
57895
|
+
const passed = Array.isArray(check.equals) ? Array.isArray(observed) && observed.length === check.equals.length && check.equals.every((expected, index) => Object.is(observed[index], expected)) : Object.is(observed, check.equals);
|
|
57889
57896
|
return {
|
|
57890
57897
|
...common,
|
|
57891
57898
|
passed,
|
|
57892
|
-
summary: checkSummary(passed, passed ? "Observed JSON pointer equals its required
|
|
57899
|
+
summary: checkSummary(passed, passed ? "Observed JSON pointer equals its required value." : "Observed JSON pointer is missing or has a different value.")
|
|
57893
57900
|
};
|
|
57894
57901
|
}
|
|
57895
57902
|
async function executeGoalVerification(input, workspaceRoot, options) {
|
|
@@ -59892,7 +59899,7 @@ var text8 = string2().trim().min(1).max(32000);
|
|
|
59892
59899
|
var supervisionResponseSchema = discriminatedUnion("action", [
|
|
59893
59900
|
strictObject({ action: literal("repair"), reason: text8, instructions: text8, taskId: id4.optional() }),
|
|
59894
59901
|
strictObject({ action: literal("reassign"), reason: text8, instructions: text8, taskId: id4, personaId: id4 }),
|
|
59895
|
-
strictObject({ action: literal("replan"), reason: text8, tasks: array(actorTaskSchema).min(1).max(
|
|
59902
|
+
strictObject({ action: literal("replan"), reason: text8, tasks: array(actorTaskSchema).min(1).max(48) }),
|
|
59896
59903
|
strictObject({ action: literal("stop"), reason: text8 }),
|
|
59897
59904
|
strictObject({ action: literal("wait"), reason: text8, retryAfterSec: number2().int().min(1).max(86400) })
|
|
59898
59905
|
]);
|
|
@@ -75722,7 +75729,7 @@ var skillDescriptorSchema = strictObject({
|
|
|
75722
75729
|
agents: array(string2().regex(/^[a-z0-9][a-z0-9-]{0,127}$/)).max(100).optional()
|
|
75723
75730
|
});
|
|
75724
75731
|
var planSchema = strictObject({
|
|
75725
|
-
tasks: array(actorTaskSchema).min(1).max(
|
|
75732
|
+
tasks: array(actorTaskSchema).min(1).max(48)
|
|
75726
75733
|
});
|
|
75727
75734
|
var missionSchema = strictObject({
|
|
75728
75735
|
id: id5,
|
|
@@ -75769,7 +75776,7 @@ var missionSchema = strictObject({
|
|
|
75769
75776
|
updatedAt: text9,
|
|
75770
75777
|
oma: boolean2().optional(),
|
|
75771
75778
|
plan: planSchema.optional(),
|
|
75772
|
-
tasks: array(taskStateSchema).max(
|
|
75779
|
+
tasks: array(taskStateSchema).max(48),
|
|
75773
75780
|
gateReviews: array(gateReviewSchema).max(96).optional(),
|
|
75774
75781
|
gateReviewRefreshes: number2().int().min(0).max(11).optional(),
|
|
75775
75782
|
finalReview: reviewSchema.optional(),
|
|
@@ -76256,14 +76263,14 @@ function planPrompt(mission) {
|
|
|
76256
76263
|
"Independent workspace tasks execute concurrently in isolated worktrees, then integrate in plan order before review. Declare dependencies when a task needs another task's delivered changes. Declare effectScope: external for actions that affect external systems (publishing, messages, purchases); these execute sequentially and uncertain effects require reconciliation before repetition. Other tasks use effectScope: workspace.",
|
|
76257
76264
|
taskDecompositionGuidance(mission, "plan"),
|
|
76258
76265
|
"Use recorded organization evidence and explicitly approved standards when relevant; historical outcomes are not approval of current files. Routing quality/cost evidence is measured only where reported, not a claim of universal model superiority. Explicit metric targets require actual recorded measurements and are additional completion gates; advisory ROI text is not measurement.",
|
|
76259
|
-
"Use 1-
|
|
76266
|
+
"Use 1-48 tasks with unique ids, concrete instructions, nonempty acceptance criteria, and acyclic dependencies.",
|
|
76260
76267
|
`Keep the complete JSON response within ${MAX_JSON_RESPONSE_LENGTH} characters; use concise Actors and tasks.`,
|
|
76261
76268
|
"Every Actor must produce or update a material file deliverable, including research reports. Plan intermediate checks.",
|
|
76262
76269
|
...requiresOmaActor(mission) ? [
|
|
76263
76270
|
"OMA is required: every task's Actor must have at least one relevant installed OMA skill. The runtime applies a matching installed OMA agent definition and all its declared skills before native execution. Empty skill assignments or missing agent definitions block dispatch; select a suitable skilled Actor rather than bypassing OMA. Additional native subagent delegation remains available when the assignment needs it."
|
|
76264
76271
|
] : [],
|
|
76265
76272
|
mission.verificationMode === "chief" ? [
|
|
76266
|
-
'Design verificationContract: {"version":1,"criteria":[{"criterion":"exact goalBrief success criterion","checks":[{"kind":"file","path":"report.md","minBytes":200,"contains":["required finding"]}]}]}. Cover every success criterion exactly once. File checks inspect actual relative regular files; JSON checks use {"kind":"json","path":"package.json","pointer":"/engines/node","equals":">=26"}. Behavioral goals need relevant executable tests: {"kind":"command","program":"node","args":["node_modules/vitest/vitest.mjs","run","tests/login.test.ts"]}, or node --test / bun test with explicit test paths.',
|
|
76273
|
+
'Design verificationContract: {"version":1,"criteria":[{"criterion":"exact goalBrief success criterion","checks":[{"kind":"file","path":"report.md","minBytes":200,"contains":["required finding"]}]}]}. Cover every success criterion exactly once. File checks inspect actual relative regular files; JSON checks use {"kind":"json","path":"package.json","pointer":"/engines/node","equals":">=26"}; equals is a string, number, boolean, null or a flat array of those. Each criterion takes at most 20 checks and the contract at most 80. Behavioral goals need relevant executable tests: {"kind":"command","program":"node","args":["node_modules/vitest/vitest.mjs","run","tests/login.test.ts"]}, or node --test / bun test with explicit test paths.',
|
|
76267
76274
|
'For an authorized Rust workspace build/test goal, native Cargo checks are supported exactly as {"kind":"command","program":"cargo","args":["fmt","--all","--","--check"]}, {"kind":"command","program":"cargo","args":["clippy","--workspace","--all-targets","--","-D","warnings"]}, and {"kind":"command","program":"cargo","args":["test","--workspace"]}. Use one or more of these checks for the corresponding Rust criteria; do not replace required Cargo gates with JavaScript wrappers or report claims. Workers prepare the Rust toolchain, dependencies and lockfile during implementation. Cargo verification runs offline and binds workspace manifests, Rust sources and local tool configuration to the evidence.',
|
|
76268
76275
|
"These are the complete command shapes. The supplied schema is sufficient; no harness validator-source discovery is needed. No shell, package scripts, other build/install/publish commands, absolute paths, globs or extra flags. A report claiming success is insufficient for a behavioral criterion. Keep checks immutable during recovery; assign workers the needed test/report deliverables."
|
|
76269
76276
|
].join(`
|
package/dist/supervisor.js
CHANGED
|
@@ -7449,7 +7449,7 @@ var init_mission_state_schema = __esm(() => {
|
|
|
7449
7449
|
taskId: id.optional(),
|
|
7450
7450
|
personaId: id.optional(),
|
|
7451
7451
|
instructions: text.optional(),
|
|
7452
|
-
previousTasks: array(taskStateSchema).max(
|
|
7452
|
+
previousTasks: array(taskStateSchema).max(48).optional(),
|
|
7453
7453
|
evidence: strictObject({ finalReview: reviewSchema.optional(), verification: verificationSchema.optional() }).optional()
|
|
7454
7454
|
}).superRefine((decision, ctx) => {
|
|
7455
7455
|
if (decision.action === "wait" !== (decision.retryAfterSec !== undefined))
|