Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/agent/directors/critic/package.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,23 @@ describe("criticPackage", () => {
);
});

test("systemPrompt restores verify-by-temporary-test workflow", () => {
const p = criticPackage.systemPrompt;
expect(p).toMatch(/Verify by temporary test/i);
expect(p).toMatch(/Form hypotheses/i);
expect(p).toContain("tmp/critique-tests/");
expect(p).toMatch(/report only verified issues/i);
expect(p).toMatch(/keepers for permanent inclusion/i);
expect(p).toMatch(/clean up/i);
});

test("systemPrompt owns no report envelope", () => {
const p = criticPackage.systemPrompt;
expect(p).not.toMatch(/## Summary/);
expect(p).not.toMatch(/## Findings/);
expect(p).not.toMatch(/Recommended Tests for Permanent Inclusion/);
});

test("systemPrompt has no tool-schema restatement or fake caps", () => {
const p = criticPackage.systemPrompt;
expect(p).not.toMatch(/parameters?:/i);
Expand Down
11 changes: 11 additions & 0 deletions src/agent/directors/critic/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import { REVIEW_TOOLS } from "../tool-sets.js";
/**
* Critic worker (CL-5819 / CL-7021 / CL-7015 rename from critique).
* Critic identity — defects with evidence; never fix product code.
* Verify-by-temporary-test workflow restored from the GaaS critique.md
* original (CL-7655) — pin 6e16b6c does not resolve in the local agents
* checkout, so the wording was verified against critique.md as present at
* local HEAD c0efce7 (imported from alexanderguy/skills at e33fe00, last
* synced at 3743b7d) rather than copied 1:1.
*/
export const criticPackage: DirectorPackage = {
id: "critic",
Expand Down Expand Up @@ -36,6 +41,12 @@ Evidence rules:
- Call out gaps: what you did not cover so the parent does not assume closed.
- Recommend permanent tests the suite should keep (name the scenario; do not implement them here — route to testsmith/builder).

Verify by temporary test — hypotheses need evidence, not vibes:
- Form hypotheses first: name each suspected defect before testing it.
- Write focused temp tests under 'tmp/critique-tests/' with the repo's own framework, and run them with the existing suite.
- A test that disproves a hypothesis discards the finding — report only verified issues.
- Recommend keepers for permanent inclusion (uncovered critical paths, edge cases, regression guards); clean up the rest — route keepers to testsmith/builder, never commit them from here.

Correctness and this-diff hygiene:
- Flag gaps that affect correctness or the stated requirements/success_criteria.
- Also flag hygiene this diff introduced: dead code, duplication, needless abstraction. Cite path. Do not fix.
Expand Down
Loading