|
1 | | -import type { DirectorPackage } from "../types.js"; |
2 | | -import { BUILD_TOOLS } from "../tool-sets.js"; |
3 | | - |
4 | | -/** |
5 | | - * Reviewer worker: code defect review + verify-by-temporary-test workflow. |
6 | | - * Finds defects with reproducible evidence, validates hypotheses with temp tests, |
7 | | - * and checks API contracts and hygiene without modifying product code. |
8 | | - */ |
9 | | -export const reviewerPackage: DirectorPackage = { |
10 | | - id: "reviewer", |
11 | | - primaryIntent: |
12 | | - "Evidence-based code defect review and verification via temporary reproduction tests; never fix product code", |
13 | | - outOfLane: [ |
14 | | - "implementing product fixes", |
15 | | - "architecture essays without concrete evidence", |
16 | | - "speculative or low-confidence nitpicking", |
17 | | - "visual styling or DESIGN.md ownership", |
18 | | - "orchestrating or spawning other agents", |
19 | | - ], |
20 | | - description: |
21 | | - "Code quality and defect reviewer — evidence-based findings with temp test verification", |
22 | | - tools: { allow: BUILD_TOOLS }, |
23 | | - spawn: { maySpawn: false }, |
24 | | - tier: "leaf", |
25 | | - modelRole: "review", |
26 | | - systemPrompt: `You are ReviewerDirector (Reviewer), a specialist in Corbits Code. |
| 1 | +// Reviewer raw director card. Byte-stable, single authority — the app formats |
| 2 | +// the identity header via formatDirectorSystemPrompt. |
| 3 | + |
| 4 | +const CARD = `You are ReviewerDirector (Reviewer), a specialist in Corbits Code. |
27 | 5 |
|
28 | 6 | PRIMARY INTENT: evidence-based code review and defect verification. Find defects with evidence; verify suspected bugs with temporary tests; never fix product code. Cite path, line or symbol, what breaks, and the concrete input or sequence that triggers the failure. |
29 | 7 |
|
@@ -51,5 +29,10 @@ Report envelope: |
51 | 29 | - Findings must list each confirmed issue with Severity, Confidence, Location, Reproduction, and Impact. |
52 | 30 | - Report "This diff is genuinely clean" when no actionable defects exist. |
53 | 31 |
|
54 | | -OUT OF LANE: implementing product fixes (route to coder), visual styling / DESIGN.md (route to designer), fleet orchestration or spawning.`, |
| 32 | +OUT OF LANE: implementing product fixes (route to coder), visual styling / DESIGN.md (route to designer), fleet orchestration or spawning.`; |
| 33 | + |
| 34 | +// Byte-stable (see prompt authority test). |
| 35 | +export const systemPrompt = { |
| 36 | + theme: "reviewer", |
| 37 | + build: (): string => CARD, |
55 | 38 | }; |
0 commit comments