Skip to content

Commit 9c4253c

Browse files
committed
style(agent-warden): strip redundant commentary from extracted package
1 parent 29796eb commit 9c4253c

6 files changed

Lines changed: 4 additions & 29 deletions

File tree

‎agents/warden/src/agent.ts‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
1-
// Warden assembled agent — ready unit + package defineAgent wrapper.
2-
// Calls `@intx/agent`'s `defineAgent` directly (no Corbits bridge/helper layer).
3-
// Tool mounting is consumer/app-side: `tools` here is [] (the allowlist surface
4-
// is exported from `./toolset.js` and wired by the app harness).
5-
61
import {
72
defineAgent as coreDefineAgent,
83
type AgentDefinition,
94
} from "@intx/agent";
105

116
import { systemPrompt } from "./prompt.js";
127

13-
/** The assembled warden agent — ready to hand to `runLocal` / `runWorkflow`. */
148
export const agent: AgentDefinition = defineAgent();
159

16-
/** Package convenience wrapper → `AgentDefinition` for `runLocal` authoring. */
1710
export function defineAgent(): AgentDefinition {
1811
return coreDefineAgent({
1912
id: "warden",

‎agents/warden/src/config.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// Warden config — uniform `{ spawn, tier, modelRole }` shape (§5).
2-
// warden is a leaf trust-review worker: maySpawn false, no allowlist.
1+
// Warden is a leaf trust-review worker: maySpawn false, no allowlist.
32
export const config = {
43
spawn: {
54
maySpawn: false,

‎agents/warden/src/director.ts‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
// Warden director card — the `DirectorPackage` data, extracted byte-for-byte
2-
// from the in-tree `src/agent/directors/warden/package.ts` (now deleted).
3-
// Structurally satisfies the app's `DirectorPackage` (asserted in-tree by
4-
// `src/agent/directors/warden/package.test.ts`); it imports @intx/* only.
5-
61
import { tools } from "./toolset.js";
72
import { systemPrompt } from "./prompt.js";
83
import { config } from "./config.js";
94

10-
/** The assembled warden director card. */
115
export const director = {
126
id: "warden",
137
primaryIntent:

‎agents/warden/src/index.ts‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Public surface — re-exports only (no logic). Exports exactly
2-
// `agent, defineAgent, director, tools, systemPrompt, config`. No `workflow`
3-
// export. No Corbits shared package is re-exported; the package's `director`
4-
// structurally satisfies the app's `DirectorPackage` (app-side drift-guard).
51
export { agent, defineAgent } from "./agent.js";
62
export { director } from "./director.js";
73
export { tools } from "./toolset.js";

‎agents/warden/src/prompt.ts‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// Warden card — the single prompt authority, extracted byte-for-byte from the
2-
// in-tree `src/agent/directors/warden/package.ts` (now deleted). `build()` is
3-
// pure and byte-stable: it returns an identical string on every call.
1+
// Warden card — the single prompt authority. `build()` is byte-stable.
42
const CARD = `You are WardenDirector (Warden), a specialist in Corbits Code.
53
64
PRIMARY INTENT: trust review of permission, provider-auth, and plugin-loader diffs. Find trust defects with evidence; never fix product code. Cite path, line or symbol, what breaks, and the concrete input or sequence that triggers it.
@@ -27,10 +25,9 @@ OUT OF LANE → refuse or reclassify under Blockers:
2725
- general code review outside trust paths (route to reviewer)
2826
- feature requirements or planning (route to planner)`;
2927

30-
/** Stable identifier of the package's voice. */
3128
export const theme = "warden";
3229

33-
/** Byte-stable builder: returns the raw warden card, identical every call. */
30+
// Byte-stable (see prompt authority test).
3431
export const systemPrompt = {
3532
theme,
3633
build: (): string => CARD,

‎agents/warden/src/toolset.ts‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
// Warden trust-review: review surface (read + product writes) — REVIEW_TOOLS.
2-
// Literal expansion of the `REVIEW_TOOLS` constant in
3-
// `src/agent/directors/tool-sets.ts` (the single tool authority). Drift is
4-
// enforced by the in-tree `src/agent/directors/warden/package.test.ts`.
1+
// REVIEW_TOOLS literal; drift-guarded against src/agent/directors/tool-sets.ts.
52
const REVIEW_TOOLS = [
63
"read_file",
74
"grep",
@@ -18,5 +15,4 @@ const REVIEW_TOOLS = [
1815
"delete_file",
1916
] as const;
2017

21-
/** The warden tool allowlist — literal equal to the in-tree `REVIEW_TOOLS`. */
2218
export const tools: readonly string[] = [...REVIEW_TOOLS];

0 commit comments

Comments
 (0)