---
title: "critique"
description: "Identify weaknesses and issues"
canonical: "https://acs.synapti.ai/capabilities/critique/"
last_updated: "2026-11-16T01:14:10Z"
---

# critique

Identify weaknesses and issues

Generated from [schemas/capability_ontology.yaml](https://github.com/synaptiai/agent-capability-standard/blob/main/schemas/capability_ontology.yaml), [skills/critique/SKILL.md](https://github.com/synaptiai/agent-capability-standard/blob/main/skills/critique/SKILL.md) at commit 18c38b74ac21. Ontology version 2.2.0.

Layer: [REASON](https://acs.synapti.ai/layers/reason/index.md)

## Safety

| Property | Value |
| --- | --- |
| Risk | Low |
| Changes state | No |
| Needs checkpoint | No |
| Needs approval | No |
| Overridable | No |
| Blocked from autonomy | No |

No ordering edge and no approval or checkpoint flag constrains where critique runs in a step list, and no conflicts_with edge keeps it out of a parallel group.

## Relationships

**Figure: Relationships of critique: 4 relationships with 4 capabilities.** critique has 4 relationships with 4 capabilities: 1 with edges into it and 3 with edges out of it.

| Capability | Row | Relationships |
| --- | --- | --- |
| [`plan`](https://acs.synapti.ai/capabilities/plan/index.md) | Edges into critique | `enables` (into) |
| [`explain`](https://acs.synapti.ai/capabilities/explain/index.md) | Edges out of critique | `enables` (out of) |
| [`verify`](https://acs.synapti.ai/capabilities/verify/index.md) | Edges out of critique | `specializes` (out of) |
| [`inquire`](https://acs.synapti.ai/capabilities/inquire/index.md) | Edges out of critique | `enables` (out of) |

- `enables`: Unlocks [`inquire`](https://acs.synapti.ai/capabilities/inquire/index.md), [`explain`](https://acs.synapti.ai/capabilities/explain/index.md)
- `enables`: Unlocked by [`plan`](https://acs.synapti.ai/capabilities/plan/index.md)
- `specializes`: Specializes [`verify`](https://acs.synapti.ai/capabilities/verify/index.md)

## Contract

**Figure: Contract of critique: 4 inputs (1 required), 7 outputs.** critique takes 4 inputs, 1 required (filled pin) and 3 optional (hollow pin), and returns 7 outputs. The tables below list every field.

### Inputs

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `target` | any | Yes | What to critique |
| `criteria` | array | No | Evaluation criteria |
| `severity_threshold` | string | No | Minimum severity to report |
| `context` | any | No | Background the critique must take into account |

### Outputs

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `issues` | array | Yes | Found weaknesses |
| `severity` | object | No | Issue severities |
| `suggestions` | array | No | Improvement suggestions |
| `evidence_anchors` | array of Anchor (or deprecated string or object) | Yes | What the output is based on, as evidence anchors (Standard v1.2 §6.5). An empty list grounds nothing, and the output is then marked inferred (§3.1). |
| `confidence` | number | Yes | The producer's probability that the output's claim is correct, self-reported unless the host documents a calibration (Standard v1.2 §4.1.1) From 0 to 1 |
| `inference_method` | string | No | How the output was reached when it is not grounded in evidence; with confidence it marks the output inferred (Standard v1.2 §3.1, §4.1.1). A producer should use model_knowledge, deduction, induction, abduction, analogy, statistical, simulation, assumption or an x- vendor value; a grounding policy (§5.20) requires one of them. |
| `uncertainty` | Uncertainty | No | The uncertainty of the output's principal value; its confidence equals the output's confidence (Standard v1.2 §4.1.1) |

The skill returns 8 fields: 5 are in critique's output contract (3 required) and 3 are the skill's own, outside the contract; it leaves out 2 contract fields (inference_method, uncertainty).

| Field of the skill's output | In the output contract |
| --- | --- |
| `issues` | Yes, required |
| `severity` | Yes, optional |
| `risk_summary` | No, the skill's own |
| `suggestions` | Yes, optional |
| `patterns_identified` | No, the skill's own |
| `confidence` | Yes, required |
| `evidence_anchors` | Yes, required |
| `assumptions` | No, the skill's own |
| `inference_method` | Yes, but the skill leaves it out |
| `uncertainty` | Yes, but the skill leaves it out |

## Used in workflows

**Figure: critique in workflows.** 7 workflows use critique, in 8 steps in all; its steps are the squares in an ink ring, and the key under the strips names the other squares.

- [`monitor_and_replan`](https://acs.synapti.ai/workflows/monitor-and-replan/index.md): step 5
- [`clarify_intent`](https://acs.synapti.ai/workflows/clarify-intent/index.md): step 1
- [`debug_code_change`](https://acs.synapti.ai/workflows/debug-code-change/index.md): step 5
- [`security_assessment`](https://acs.synapti.ai/workflows/security-assessment/index.md): step 5
- [`care_plan_review`](https://acs.synapti.ai/workflows/care-plan-review/index.md): step 9
- [`schedule_management`](https://acs.synapti.ai/workflows/schedule-management/index.md): step 2
- [`communication_drafting`](https://acs.synapti.ai/workflows/communication-drafting/index.md): steps 1 and 7

## Claude Code skill

**Figure: What the critique skill's tools can do, against the ontology.** The skill may use 2 tools: 2 only read; the ontology marks critique as read-only, and every tool only reads.

| What they can do | Tools |
| --- | --- |
| Only read | `Read`, `Grep` |
| Run commands, which can change state | none |
| Change files | none |

**Figure: The field names each step of the critique procedure uses.** 5 of the procedure's 7 steps use the name of an input or output field of the critique skill as a word; 4 output fields of 8 are used by no step (risk_summary, patterns_identified, confidence, evidence_anchors).

| Step | Inputs it uses by name | Output fields it uses by name |
| --- | --- | --- |
| 1. Understand the target | `target`, `criteria` | `assumptions` |
| 2. Identify failure modes | `target` | `assumptions` |
| 3. Enumerate edge cases |  |  |
| 4. Detect ambiguities |  | `assumptions` |
| 5. Assess exploit paths |  |  |
| 6. Rate severity | `severity_threshold` | `issues`, `severity` |
| 7. Recommend mitigations |  | `suggestions` |

Both examples of the skill write out every one of its 8 output fields.

**Figure: The field names each verification check of the critique skill uses.** 2 of the 5 checks use the name of an input or output field as a word; 7 output fields of 8 are named by no check (severity, risk_summary, suggestions, patterns_identified, confidence, evidence_anchors and assumptions).

| Check | Inputs it uses by name | Output fields it uses by name |
| --- | --- | --- |
| 1. All criteria were examined | `criteria` |  |
| 2. Severity ratings are justified |  |  |
| 3. Each issue has a suggestion |  |  |
| 4. Critical issues are highlighted |  | `issues` |
| 5. Patterns are identified for systemic fixes |  |  |

**Figure: The neighbours the skill lists for critique, checked against the ontology and the catalogs.** The skill lists 7 capabilities as common neighbours of critique; 3 of them have an edge with it in the ontology, and 2 run next to it, in that order, in a catalog workflow (plan most often, 2 times). Under each tile, an edge reads from its source to its target, with critique's symbol in its place: "requires Cr" is a requires edge from the tile's capability to critique, so the tile's capability must run before critique; "Cr precedes" is a precedes edge from critique to the tile's capability.

| Listed as | Capability | Ontology edge | Next to it in a workflow |
| --- | --- | --- | --- |
| commonly follows | [`plan`](https://acs.synapti.ai/capabilities/plan/index.md) | `enables` | never |
| commonly follows | [`observe`](https://acs.synapti.ai/capabilities/observe/index.md) | none | never |
| commonly follows | [`retrieve`](https://acs.synapti.ai/capabilities/retrieve/index.md) | none | 1 times |
| commonly precedes | [`plan`](https://acs.synapti.ai/capabilities/plan/index.md) | `enables` | 2 times |
| commonly precedes | [`constrain`](https://acs.synapti.ai/capabilities/constrain/index.md) | none | never |
| commonly precedes | [`verify`](https://acs.synapti.ai/capabilities/verify/index.md) | `specializes` (into it) | never |
| commonly precedes | [`audit`](https://acs.synapti.ai/capabilities/audit/index.md) | none | never |

### Intent

Systematically analyze a target (plan, code, design, document) to identify failure modes, edge cases, ambiguities, and potential exploits. Produce actionable findings with severity ratings and mitigation recommendations.

**Success criteria:**
- All major failure modes identified
- Edge cases documented with reproduction scenarios
- Ambiguities flagged with clarification requests
- Security/exploit risks rated appropriately
- Each issue has an actionable suggestion

**Compatible schemas:**
- `schemas/output_schema.yaml`

### Inputs

| Parameter | Required | Type | Description |
|-----------|----------|------|-------------|
| `target` | Yes | any | Plan, code, design, or document to critique |
| `criteria` | No | array | Evaluation criteria |
| `severity_threshold` | No | string | Minimum severity to report: low, medium, high, critical |
| `context` | No | any | Additional context about the target |

Inputs not listed here are outside the capability's contract: a workflow step that binds them gets W604 (STANDARD v1.1 §5.5).

### Procedure

1) **Understand the target**: Analyze what is being critiqued
   - Read and comprehend the target fully
   - Identify the purpose and intended behavior
   - Note stated assumptions and constraints
   - Understand success criteria

2) **Identify failure modes**: Find ways the target could fail
   - What happens under unexpected inputs?
   - What if dependencies are unavailable?
   - What if timing assumptions are wrong?
   - What if scale exceeds expectations?

3) **Enumerate edge cases**: Find boundary conditions
   - Empty inputs, null values, missing fields
   - Maximum/minimum values
   - Concurrent access scenarios
   - Unicode, special characters, injection patterns

4) **Detect ambiguities**: Find unclear specifications
   - Terms with multiple interpretations
   - Missing definitions
   - Implicit assumptions
   - Contradictory requirements

5) **Assess exploit paths**: Identify security vulnerabilities
   - Input validation gaps
   - Authentication/authorization bypasses
   - Data exposure risks
   - Privilege escalation opportunities

6) **Rate severity**: Classify each issue (recorded per issue and in the `severity` map)
   - CRITICAL: System compromise or data loss
   - HIGH: Significant functionality or security impact
   - MEDIUM: Moderate impact, workarounds exist
   - LOW: Minor issues, cosmetic or edge-case
   - Report in `issues` only those at or above `severity_threshold`

7) **Recommend mitigations**: Provide actionable fixes as `suggestions`
   - Specific changes to address each finding
   - Priority ordering for fixes
   - Estimated effort for each mitigation

### Output Contract

Return a structured object:

```yaml
issues:
  - id: string  # Unique finding identifier
    type: failure_mode | edge_case | ambiguity | exploit | gap
    description: string  # Clear description of the issue
    severity: low | medium | high | critical
    location: string  # Where in target (file:line, section, etc.)
    evidence: string  # Supporting evidence
    reproduction: string | null  # How to reproduce
    recommendation: string  # Suggested fix
severity:  # Issue severities, keyed by issue id
  <issue_id>: low | medium | high | critical
risk_summary:
  overall_risk: low | medium | high | critical
  mitigations_possible: boolean
  urgent_issues: array[string]  # Issue IDs requiring immediate attention
  risk_distribution:
    critical: integer
    high: integer
    medium: integer
    low: integer
suggestions:
  - issue_ref: string  # Issue ID
    suggestion: string  # Detailed fix suggestion
    effort: low | medium | high
    priority: integer  # 1 = highest priority
patterns_identified:
  - pattern: string  # Recurring issue pattern
    affected_issues: array[string]
    systemic_fix: string  # How to address pattern
confidence: number  # probability that the findings are right (§4.1.1)
evidence_anchors: [{ref: "file:line", kind: file}, {ref: "section:name", kind: record}]
assumptions: []
```

#### Field Definitions

| Field | Type | Description |
|-------|------|-------------|
| `issues` | array | Weaknesses found at or above `severity_threshold` (empty when none; workflows gate on `${<step>.issues} == []`) |
| `severity` | object | Issue severities, keyed by issue id |
| `risk_summary` | object | Overall risk assessment |
| `suggestions` | array\<object\> | Prioritized improvement suggestions, each referencing an issue |
| `patterns_identified` | array | Recurring issues with systemic fixes |
| `confidence` | number | Probability, 0.0-1.0, that the findings are right (§4.1.1) |
| `evidence_anchors` | array of evidence anchors (§6.5) | References to target locations |
| `assumptions` | array | Assumptions made during analysis |

### Examples

#### Example 1: Plan Critique

**Input:**
```yaml
target:
  id: "deploy-plan-001"
  goal: "Deploy new authentication service"
  steps:
    - id: "step-1"
      action: "Stop old auth service"
    - id: "step-2"
      action: "Deploy new auth service"
    - id: "step-3"
      action: "Run smoke tests"
criteria: ["availability", "rollback", "security"]
```

**Output:**
```yaml
issues:
  - id: "CRT-001"
    type: failure_mode
    description: "Zero-downtime deployment not guaranteed. Stopping old service before new is verified creates outage window."
    severity: high
    location: "step-1 to step-2 transition"
    evidence: "step-1 stops service, step-2 starts new - gap exists"
    reproduction: "Execute plan; observe 503 errors between steps"
    recommendation: "Use blue-green deployment: start new service, verify health, then route traffic"
  - id: "CRT-002"
    type: gap
    description: "No rollback step defined. If step-3 smoke tests fail, no recovery procedure."
    severity: critical
    location: "plan.steps - missing rollback"
    evidence: "No rollback_action in any step"
    reproduction: "Smoke tests fail; manual intervention required"
    recommendation: "Add rollback step: 'If step-3 fails, restart old auth service'"
  - id: "CRT-003"
    type: ambiguity
    description: "'Smoke tests' not defined. Unclear what is being tested or pass criteria."
    severity: medium
    location: "step-3"
    evidence: "No verification_criteria specified"
    reproduction: null
    recommendation: "Define specific test cases: auth flow, token validation, error handling"
  - id: "CRT-004"
    type: exploit
    description: "No security verification step. New service could have misconfigured permissions."
    severity: high
    location: "plan - missing security check"
    evidence: "No step validates auth service security posture"
    reproduction: "Deploy service with open admin endpoint; not caught by smoke tests"
    recommendation: "Add security scan step before traffic routing"
severity:
  CRT-001: high
  CRT-002: critical
  CRT-003: medium
  CRT-004: high
risk_summary:
  overall_risk: critical
  mitigations_possible: true
  urgent_issues: ["CRT-002", "CRT-001"]
  risk_distribution:
    critical: 1
    high: 2
    medium: 1
    low: 0
suggestions:
  - issue_ref: "CRT-002"
    suggestion: "Add rollback step with automatic trigger on smoke test failure"
    effort: low
    priority: 1
  - issue_ref: "CRT-001"
    suggestion: "Rewrite as blue-green deployment with health check before cutover"
    effort: medium
    priority: 2
  - issue_ref: "CRT-004"
    suggestion: "Add security scan after deployment, before enabling traffic"
    effort: medium
    priority: 3
  - issue_ref: "CRT-003"
    suggestion: "Define smoke test checklist with pass/fail criteria"
    effort: low
    priority: 4
patterns_identified:
  - pattern: "Missing safety gates"
    affected_issues: ["CRT-001", "CRT-002", "CRT-004"]
    systemic_fix: "Adopt CAVR pattern: checkpoint before each mutation, verify after each step"
confidence: 0.9
evidence_anchors:
  - {ref: "plan:step-1:stops-service", kind: record}
  - {ref: "plan:steps:no-rollback", kind: record}
assumptions:
  - "Auth service is critical for all user operations"
  - "Downtime of auth service blocks all authenticated requests"
```

**Evidence pattern:** Each issue references specific plan location; suggestions are actionable.

---

#### Example 2: Code Critique (Security Focus)

**Input:**
```yaml
target:
  file: "src/api/auth.py"
  code: |
    def login(username, password):
        user = db.query(f"SELECT * FROM users WHERE username='{username}'")
        if user and user.password == password:
            return create_token(user.id)
        return None
criteria: ["security"]
```

Review adversarially: probe the code as an attacker would.

**Output:**
```yaml
issues:
  - id: "CRT-001"
    type: exploit
    description: "SQL injection vulnerability. Username is interpolated directly into query string."
    severity: critical
    location: "auth.py:2"
    evidence: "f-string query with unescaped username input"
    reproduction: "username=\"admin'--\", password=\"anything\" bypasses auth"
    recommendation: "Use parameterized query: db.query('SELECT * FROM users WHERE username=?', (username,))"
  - id: "CRT-002"
    type: exploit
    description: "Plain-text password comparison. Passwords stored in cleartext or compared unsafely."
    severity: critical
    location: "auth.py:3"
    evidence: "Direct comparison: user.password == password"
    reproduction: "Database compromise exposes all passwords"
    recommendation: "Use bcrypt or argon2: bcrypt.checkpw(password, user.password_hash)"
  - id: "CRT-003"
    type: failure_mode
    description: "No rate limiting. Brute force attacks possible."
    severity: high
    location: "auth.py:login function"
    evidence: "No attempt tracking or delay mechanism"
    reproduction: "Script 1000 login attempts per second"
    recommendation: "Add rate limiting: max 5 attempts per minute per IP/username"
  - id: "CRT-004"
    type: edge_case
    description: "Empty username/password not handled. Could cause unexpected behavior."
    severity: low
    location: "auth.py:1"
    evidence: "No input validation at function entry"
    reproduction: "login('', '') - behavior undefined"
    recommendation: "Add input validation: if not username or not password: return None"
severity:
  CRT-001: critical
  CRT-002: critical
  CRT-003: high
  CRT-004: low
risk_summary:
  overall_risk: critical
  mitigations_possible: true
  urgent_issues: ["CRT-001", "CRT-002"]
  risk_distribution:
    critical: 2
    high: 1
    medium: 0
    low: 1
suggestions:
  - issue_ref: "CRT-001"
    suggestion: "IMMEDIATE: Replace f-string query with parameterized query"
    effort: low
    priority: 1
  - issue_ref: "CRT-002"
    suggestion: "IMMEDIATE: Migrate to bcrypt password hashing"
    effort: medium
    priority: 2
  - issue_ref: "CRT-003"
    suggestion: "Add rate limiting middleware before login endpoint"
    effort: medium
    priority: 3
  - issue_ref: "CRT-004"
    suggestion: "Add input validation decorator"
    effort: low
    priority: 4
patterns_identified:
  - pattern: "OWASP Top 10 violations"
    affected_issues: ["CRT-001", "CRT-002"]
    systemic_fix: "Security code review and SAST integration in CI"
confidence: 0.95
evidence_anchors:
  - {ref: "file:auth.py:2:sql-injection", kind: file}
  - {ref: "file:auth.py:3:plaintext-password", kind: file}
assumptions:
  - "This code handles real user authentication"
  - "Database contains actual user credentials"
```

### Verification

- [ ] All criteria were examined
- [ ] Severity ratings are justified
- [ ] Each issue has a suggestion
- [ ] Critical issues are highlighted
- [ ] Patterns are identified for systemic fixes

**Verification tools:** Read (for code/doc analysis), Grep (for pattern search)

### Safety Constraints

- `mutation`: false
- `requires_checkpoint`: false
- `requires_approval`: false
- `risk`: low

**Capability-specific rules:**
- Never test exploits on production systems
- Report all critical findings immediately
- Do not disclose security findings to unauthorized parties
- If finding reveals active exploit, escalate immediately
- Be thorough but avoid false positives

### Composition Patterns

**Commonly follows:**
- `plan` - Critique plans before execution
- `observe` - Understand target before critique
- `retrieve` - Gather context for critique

**Commonly precedes:**
- `plan` - Revise plan based on critique issues and suggestions
- `constrain` - Apply limits that address identified risks
- `verify` - Validate fixes for findings
- `audit` - Record critique and responses

**Anti-patterns:**
- Never skip critique for high-risk plans
- Never proceed with critical issues unaddressed
- Avoid superficial critique of security-sensitive targets

**Workflow references:**
- See `reference/composition_patterns.md#debug-code-change` for critique in debugging
- See `reference/composition_patterns.md#capability-gap-analysis` for planning context
