agentcompass routes on the AgentCompass v0.6.0 engine: four capability categories, quota-economy seat ordering and data gates. With no caller profile, a request keeps the model the client asked for. External scoring stays off unless allowExternalScorer and a scorer base URL are both set. The reference ships in the package. This supersedes #791. Run at 52a98632, merged onto main, on WSL (Ubuntu 24.04) with HOME=$(mktemp -d): - npm test in packages/agentcompass: 140 pass, 0 fail - bun scripts/check.mjs agentcompass: ok - Read the diff for new I/O: src/ has no fetch outside the opt-in scorer, and no spawn, env read or disk access. - The docs' scorer example was checked against scorerOptionsOf and resolveClassifier. Not tried: a real Magpie gateway routing live traffic through it. Co-authored-by: akiiwa-games <akiiwa-games@users.noreply.github.com>
38 lines
1.4 KiB
JavaScript
38 lines
1.4 KiB
JavaScript
/**
|
|
* A valid v0.6.0 task profile for tests: the fields the classifier answers, with the per-category demand (`axis_demand`, levels
|
|
* 0..3). `profile({ ...overrides })` overrides any field; `demand({ coding: 3 })` overrides the demand alone. Tests that need a
|
|
* particular shape say so here and nowhere else.
|
|
*/
|
|
export const BASE_PROFILE = Object.freeze({
|
|
work_kind: "general_implementation",
|
|
reasoning_depth: 2,
|
|
code_complexity: 2,
|
|
needs_visual: false,
|
|
needs_gui: false,
|
|
local_only: false,
|
|
wants_fast: false,
|
|
read_only_review: false,
|
|
access: "write",
|
|
interaction_style: "engineering",
|
|
expected_hours: 0.5,
|
|
hours_confidence: "medium",
|
|
urgency: "unknown",
|
|
multi_task: false,
|
|
task_count: "1",
|
|
axis_demand: Object.freeze({ divergence: 0, coding: 2, aesthetics: 0, tool_operation: 0 }),
|
|
});
|
|
|
|
export function demand(overrides = {}) {
|
|
return { ...BASE_PROFILE.axis_demand, ...overrides };
|
|
}
|
|
|
|
export function profile(overrides = {}) {
|
|
const { axis_demand: axis, ...rest } = overrides;
|
|
return { ...BASE_PROFILE, ...rest, axis_demand: demand(axis || {}) };
|
|
}
|
|
|
|
/** A read-only review: no production code written, demand on coding only. */
|
|
export const REVIEW = profile({ code_complexity: 0, access: "read-only", read_only_review: true, axis_demand: { coding: 2 } });
|
|
/** Routine work: nothing to think hard about, a little code. */
|
|
export const ROUTINE = profile({ reasoning_depth: 1, code_complexity: 1, axis_demand: { coding: 1 } });
|