Skip to content

Commit 82c14a9

Browse files
committed
feat(prober): ship prober as a workspace agent package
1 parent 4f3aaa6 commit 82c14a9

7 files changed

Lines changed: 90 additions & 6 deletions

File tree

‎agents/prober/package.json‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "@corbits/agent-prober",
3+
"version": "0.1.0",
4+
"private": true,
5+
"type": "module",
6+
"license": "SEE LICENSE IN LICENSE.md",
7+
"exports": {
8+
".": {
9+
"types": "./src/index.ts",
10+
"default": "./src/index.ts"
11+
}
12+
}
13+
}
Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,49 @@
1-
import type { DirectorPackage } from "../types.js";
2-
import { REVIEW_TOOLS } from "../tool-sets.js";
3-
41
/**
52
* Prober worker (CL-7656).
63
* Measure-only latency/behavior prober — report distributions per
74
* family/model; never ship product code, never tune prompts or policy.
5+
*
6+
* Ships as the @corbits/agent-prober workspace package: the tool allowlist
7+
* lives here so the package stays importable without the app. Drift against
8+
* the app build surface fails src/agent/directors/prober/package.test.ts.
89
*/
9-
export const proberPackage: DirectorPackage = {
10+
export type AgentPackage = {
11+
readonly id: "prober";
12+
readonly primaryIntent: string;
13+
readonly outOfLane: readonly string[];
14+
readonly description: string;
15+
readonly systemPrompt: string;
16+
/** Unset — prober never attaches skill bodies at spawn. */
17+
readonly attachedSkills?: readonly string[];
18+
/** Unset — prober declares no skill scope. */
19+
readonly optionalSkills?: readonly string[];
20+
readonly tools: {
21+
readonly allow: readonly string[];
22+
};
23+
readonly spawn: {
24+
readonly maySpawn: false;
25+
};
26+
readonly modelRole: "test";
27+
readonly tier: "leaf";
28+
};
29+
30+
const PROBER_TOOLS = [
31+
"read_file",
32+
"grep",
33+
"search_files",
34+
"list_dir",
35+
"lsp",
36+
"run_shell",
37+
"web_fetch",
38+
"web_search",
39+
"skill_search",
40+
"use_skill",
41+
"write_file",
42+
"edit_file",
43+
"delete_file",
44+
] as const;
45+
46+
export const proberPackage: AgentPackage = {
1047
id: "prober",
1148
primaryIntent:
1249
"Measure latency and behavior distributions per family/model; never ship product code, never tune prompts or policy",
@@ -68,7 +105,7 @@ retunes, or orchestration.
68105
OUT OF LANE: shipping product code, tuning prompts or model-family
69106
policy (route to follow-up tickets), building a new harness, fleet
70107
orchestration, architecture essays without measurements.`,
71-
tools: { allow: REVIEW_TOOLS },
108+
tools: { allow: [...PROBER_TOOLS] },
72109
spawn: { maySpawn: false },
73110
tier: "leaf",
74111
modelRole: "test",

‎bun.lock‎

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
"tar": "^7.5.1"
8787
},
8888
"dependencies": {
89+
"@corbits/agent-prober": "workspace:*",
8990
"@corbits/codex-provider": "0.1.1",
9091
"@corbits/oauth-core": "0.2.0",
9192
"@corbits/openai-responses": "0.2.1",
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { describe, expect, test } from "bun:test";
2+
3+
import { proberPackage } from "@corbits/agent-prober";
4+
import { REVIEW_TOOLS } from "../tool-sets.js";
5+
import { DIRECTOR_REGISTRY } from "../registry.js";
6+
import type { DirectorPackage } from "../types.js";
7+
8+
describe("proberPackage", () => {
9+
test("workspace package satisfies the director contract and feeds the registry", () => {
10+
const asDirector: DirectorPackage = proberPackage;
11+
expect(asDirector.id).toBe("prober");
12+
expect(DIRECTOR_REGISTRY.prober).toBe(proberPackage);
13+
expect([...proberPackage.tools.allow]).toEqual([...REVIEW_TOOLS]);
14+
});
15+
16+
test("extracted copy stays measure-only and non-spawning", () => {
17+
expect(proberPackage.tools.allow).toContain("read_file");
18+
expect(proberPackage.tools.allow).toContain("grep");
19+
expect(proberPackage.tools.allow).not.toContain("spawn_agent");
20+
expect(proberPackage.tools.allow).not.toContain("ask_operator");
21+
expect(proberPackage.spawn.maySpawn).toBe(false);
22+
expect(proberPackage.tier).toBe("leaf");
23+
expect(proberPackage.modelRole).toBe("test");
24+
});
25+
});

‎src/agent/directors/registry.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
import { proberPackage } from "@corbits/agent-prober";
12
import type { AgentProfile, CapabilityFilter } from "../profile-types.js";
23
import { artistPackage } from "./artist/package.js";
34
import { coderPackage } from "./coder/package.js";
45
import { designerPackage } from "./designer/package.js";
56
import { dispatchPackage } from "./dispatch/package.js";
67
import { explorerPackage } from "./explorer/package.js";
78
import { plannerPackage } from "./planner/package.js";
8-
import { proberPackage } from "./prober/package.js";
99
import { qaLeadPackage } from "./qa-lead/package.js";
1010
import { reviewerPackage } from "./reviewer/package.js";
1111
import { shakespearePackage } from "./shakespeare/package.js";

‎tsconfig.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"composite": false,
66
"baseUrl": ".",
77
"paths": {
8+
"@corbits/agent-prober": ["./agents/prober/src/index.ts"],
89
"@corbits/provider-opencode-go": ["./packages/opencode-go/src/index.ts"],
910
"@corbits/first-class-providers": [
1011
"./packages/first-class-providers/src/index.ts"

0 commit comments

Comments
 (0)