---
title: "attribute"
description: "Establish cause-effect relationships"
canonical: "https://acs.synapti.ai/capabilities/attribute/"
last_updated: "2026-11-16T01:14:10Z"
---

# attribute

Establish cause-effect relationships

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

Layer: [MODEL](https://acs.synapti.ai/layers/model/index.md)

## Safety

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

**Figure: Ordering rules for attribute in a workflow.** In a workflow, detect, where the workflow has it, must come first (V102); and it is a recommended step before ground.

| Where | Capability | Rule | Enforcement | Diagnostic |
| --- | --- | --- | --- | --- |
| Before attribute | [`detect`](https://acs.synapti.ai/capabilities/detect/index.md) | `precedes` | MUST | V102 |
| After attribute | [`ground`](https://acs.synapti.ai/capabilities/ground/index.md) | `soft_requires` | SHOULD | W601 |

## Relationships

**Figure: Relationships of attribute: 7 relationships with 6 capabilities.** attribute has 7 relationships with 6 capabilities: 3 with edges into it and 3 with edges out of it.

| Capability | Row | Relationships |
| --- | --- | --- |
| [`observe`](https://acs.synapti.ai/capabilities/observe/index.md) | Edges into attribute | `enables` (into) |
| [`detect`](https://acs.synapti.ai/capabilities/detect/index.md) | Edges into attribute | `enables` (into), `precedes` (into) |
| [`discover`](https://acs.synapti.ai/capabilities/discover/index.md) | Edges into attribute | `enables` (into) |
| [`plan`](https://acs.synapti.ai/capabilities/plan/index.md) | Edges out of attribute | `enables` (out of) |
| [`explain`](https://acs.synapti.ai/capabilities/explain/index.md) | Edges out of attribute | `enables` (out of) |
| [`ground`](https://acs.synapti.ai/capabilities/ground/index.md) | Edges out of attribute | `soft_requires` (out of) |

- `soft_requires`: Recommended before [`ground`](https://acs.synapti.ai/capabilities/ground/index.md)
- `enables`: Unlocks [`explain`](https://acs.synapti.ai/capabilities/explain/index.md), [`plan`](https://acs.synapti.ai/capabilities/plan/index.md)
- `enables`: Unlocked by [`detect`](https://acs.synapti.ai/capabilities/detect/index.md), [`observe`](https://acs.synapti.ai/capabilities/observe/index.md), [`discover`](https://acs.synapti.ai/capabilities/discover/index.md)
- `precedes`: Comes after, when both are present [`detect`](https://acs.synapti.ai/capabilities/detect/index.md)

## Contract

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

### Inputs

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `effect` | any | Yes | Observed effect |
| `candidates` | array | No | Potential causes |
| `context` | object | No | Situational context |

### Outputs

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `causes` | array | Yes | Identified causes |
| `strengths` | object | No | Causal strengths |
| `mechanism` | string | No | Causal mechanism |
| `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 attribute'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 |
| --- | --- |
| `causes` | Yes, required |
| `mechanism` | Yes, optional |
| `strengths` | Yes, optional |
| `causal_chain` | No, the skill's own |
| `alternatives_ruled_out` | 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: attribute in workflows.** 8 workflows use attribute, in 8 steps in all; its steps are the squares in an ink ring, and the key under the strips names the other squares.

- [`debug_code_change`](https://acs.synapti.ai/workflows/debug-code-change/index.md): step 3
- [`world_model_build`](https://acs.synapti.ai/workflows/world-model-build/index.md): step 8
- [`capability_gap_analysis`](https://acs.synapti.ai/workflows/capability-gap-analysis/index.md): step 2
- [`security_assessment`](https://acs.synapti.ai/workflows/security-assessment/index.md): step 4
- [`anomaly_investigation`](https://acs.synapti.ai/workflows/anomaly-investigation/index.md): step 4
- [`report_generation`](https://acs.synapti.ai/workflows/report-generation/index.md): step 6
- [`model_monitoring`](https://acs.synapti.ai/workflows/model-monitoring/index.md): step 9
- [`predictive_maintenance`](https://acs.synapti.ai/workflows/predictive-maintenance/index.md): step 4

## Claude Code skill

**Figure: What the attribute skill's tools can do, against the ontology.** The skill may use 2 tools: 2 only read; the ontology marks attribute 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 attribute procedure uses.** 6 of the procedure's 6 steps use the name of an input or output field of the attribute skill as a word; 4 output fields of 8 are used by no step (strengths, alternatives_ruled_out, evidence_anchors, assumptions).

| Step | Inputs it uses by name | Output fields it uses by name |
| --- | --- | --- |
| 1. Characterize the effect | `effect` |  |
| 2. Identify candidate causes | `candidates`, `context` | `causes` |
| 3. Evaluate causal strength | `effect` | `mechanism` |
| 4. Trace causal chain | `effect` | `mechanism`, `causal_chain` |
| 5. Rule out alternatives |  | `causes` |
| 6. Quantify confidence |  | `confidence` |

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

**Figure: The field names each verification check of the attribute skill uses.** 3 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 (mechanism, strengths, causal_chain, alternatives_ruled_out, confidence, evidence_anchors and assumptions).

| Check | Inputs it uses by name | Output fields it uses by name |
| --- | --- | --- |
| 1. At least one cause identified with strength > 0.3 |  |  |
| 2. Mechanism explains how cause produces effect | `effect` |  |
| 3. Temporal precedence verified (cause before effect) | `effect` |  |
| 4. Alternative causes considered |  | `causes` |
| 5. Evidence supports attribution |  |  |

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

| Listed as | Capability | Ontology edge | Next to it in a workflow |
| --- | --- | --- | --- |
| commonly follows | [`detect`](https://acs.synapti.ai/capabilities/detect/index.md) | `enables`, `precedes` | 3 times |
| commonly follows | [`observe`](https://acs.synapti.ai/capabilities/observe/index.md) | `enables` | 1 times |
| commonly follows | [`measure`](https://acs.synapti.ai/capabilities/measure/index.md) | none | 1 times |
| commonly precedes | [`plan`](https://acs.synapti.ai/capabilities/plan/index.md) | `enables` (into it) | never |
| commonly precedes | [`explain`](https://acs.synapti.ai/capabilities/explain/index.md) | `enables` (into it) | never |
| commonly precedes | [`critique`](https://acs.synapti.ai/capabilities/critique/index.md) | none | 1 times |

### Intent

Establish causal relationships between observed effects and potential causes. This capability supports root cause analysis, dependency mapping, and causal reasoning for planning and debugging.

**Success criteria:**
- Causes identified for observed effects
- Causal strength estimated for each relationship
- Causal mechanism explained
- Alternative causes considered and ruled out

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

### Inputs

| Parameter | Required | Type | Description |
|-----------|----------|------|-------------|
| `effect` | Yes | any | The observed effect to attribute |
| `candidates` | No | array | Potential causes to evaluate |
| `context` | No | object | Situational context for attribution |

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) **Characterize the effect**: Understand what needs to be explained
   - Document the observed effect precisely
   - Note timing and circumstances
   - Identify what changed

2) **Identify candidate causes**: Generate list of potential causes
   - Use provided candidates if available
   - Generate additional candidates from context
   - Consider proximate and distal causes

3) **Evaluate causal strength**: Assess each candidate
   - Check temporal precedence (cause before effect)
   - Verify mechanism plausibility
   - Look for correlation evidence
   - Consider counterfactual (would effect occur without cause?)

4) **Trace causal chain**: Map the path from cause to effect
   - Identify intermediate steps
   - Note amplifying or dampening factors
   - Document the causal mechanism

5) **Rule out alternatives**: Eliminate unlikely causes
   - Document why alternatives are less likely
   - Note any confounding factors
   - Flag when multiple causes may contribute

6) **Quantify confidence**: Assess attribution certainty
   - Rate strength of causal evidence
   - Note missing evidence
   - Identify what would confirm/refute attribution

### Output Contract

Return a structured object:

```yaml
causes:
  - cause: string  # Identified cause
    strength: number  # 0.0-1.0 causal strength
    mechanism: string  # How cause produces effect
    evidence: array[string]  # Supporting evidence
    type: string  # direct, contributing, enabling
mechanism: string  # Overall causal mechanism: how the primary cause produces the effect
strengths:  # Comparative strengths
  cause_1: number
  cause_2: number
causal_chain:
  - step: string  # Intermediate step
    from: string  # Prior state/event
    to: string  # Resulting state/event
alternatives_ruled_out:
  - cause: string
    reason: string  # Why ruled out
confidence: number  # probability that the attributed cause is right (§4.1.1)
evidence_anchors: [{ref: "file:line", kind: file}, {ref: "log:entry", kind: log}]
assumptions: []
```

#### Field Definitions

| Field | Type | Description |
|-------|------|-------------|
| `causes` | array | Identified causes with strength and mechanism |
| `causes[].strength` | number | Causal strength (0-1) |
| `causes[].mechanism` | string | Explanation of causal pathway |
| `causes[].type` | string | Direct, contributing, or enabling cause |
| `mechanism` | string | Overall causal mechanism linking the primary cause to the effect |
| `causal_chain` | array | Steps from cause to effect |
| `alternatives_ruled_out` | array | Rejected alternatives with reasons |
| `strengths` | object | Causal strength per cause, for comparison |
| `confidence` | number | Probability, 0.0-1.0, that the attributed cause is right (§4.1.1) |
| `evidence_anchors` | array of evidence anchors (§6.5) | References to logs, code, or data supporting each cause |
| `assumptions` | array | Assumptions the attribution depends on |

### Examples

#### Example 1: Attribute Performance Degradation

**Input:**
```yaml
effect: "API response time increased from 200ms to 2000ms"
candidates:
  - "recent deployment"
  - "database load increase"
  - "memory leak"
context:
  timing: "started 2024-01-15 14:30"
  affected: "/api/users endpoint"
```

**Output:**
```yaml
causes:
  - cause: "N+1 query introduced in recent deployment"
    strength: 0.85
    mechanism: "New eager loading removed; each user now triggers 3 additional queries"
    evidence:
      - "Deployment at 14:25, issue started 14:30"
      - "Query count per request increased from 2 to 50+"
      - "Database CPU correlates with API latency"
    type: "direct"
  - cause: "Database connection pool saturation"
    strength: 0.40
    mechanism: "Increased queries exhaust connection pool, causing wait times"
    evidence:
      - "Pool utilization at 95%"
      - "Connection wait time increased"
    type: "contributing"
mechanism: "The deployment removed eager loading, multiplying queries per request (2 to 50+); the database overloads and responses slow from 200ms to 2000ms"
strengths:
  n_plus_1_query: 0.85
  connection_pool: 0.40
  memory_leak: 0.05
causal_chain:
  - step: "Code deployed"
    from: "eager_load(:profile)"
    to: "no eager loading"
  - step: "Query multiplication"
    from: "2 queries/request"
    to: "50+ queries/request"
  - step: "Database overload"
    from: "normal CPU"
    to: "90% CPU"
  - step: "Response delay"
    from: "200ms"
    to: "2000ms"
alternatives_ruled_out:
  - cause: "memory leak"
    reason: "Memory usage stable, no growth pattern"
  - cause: "external service latency"
    reason: "No external calls in affected endpoint"
confidence: 0.85
evidence_anchors:
  - {ref: "command:git log --since='2024-01-15 14:00'", kind: tool}
  - {ref: "file:app/models/user.rb:45 (diff)", kind: file}
  - {ref: "monitoring:query_count", kind: log}
  - {ref: "monitoring:db_cpu", kind: log}
assumptions:
  - "Monitoring data is accurate"
  - "No other deployments in window"
```

#### Example 2: Attribute Test Failure

**Input:**
```yaml
effect: "UserService#create test failing with 'Email already taken'"
candidates:
  - "test data pollution"
  - "code change"
  - "database state"
```

**Output:**
```yaml
causes:
  - cause: "Missing database cleanup between tests"
    strength: 0.90
    mechanism: "Test creates user, doesn't clean up, subsequent test finds duplicate"
    evidence:
      - "Test passes in isolation"
      - "Test fails when run after create_user_test"
      - "No database_cleaner configuration"
    type: "direct"
mechanism: "A user created by an earlier test is never cleaned up, so a later create of the same email fails the uniqueness validation"
strengths:
  test_pollution: 0.90
  code_change: 0.05
  fixture_issue: 0.05
causal_chain:
  - step: "First test runs"
    from: "empty database"
    to: "user 'test@example.com' exists"
  - step: "Second test attempts create"
    from: "user exists"
    to: "uniqueness validation fails"
alternatives_ruled_out:
  - cause: "code change"
    reason: "No recent changes to UserService"
  - cause: "fixture issue"
    reason: "Test doesn't use fixtures"
confidence: 0.90
evidence_anchors:
  - {ref: "file:spec/services/user_service_spec.rb:45", kind: file}
  - {ref: "file:spec/rails_helper.rb (no database_cleaner)", kind: file}
  - {ref: "command:rspec spec/services/user_service_spec.rb:45 --order defined", kind: tool}
assumptions:
  - "Test failure is deterministic with this order"
  - "No parallel test execution"
```

### Verification

- [ ] At least one cause identified with strength > 0.3
- [ ] Mechanism explains how cause produces effect
- [ ] Temporal precedence verified (cause before effect)
- [ ] Alternative causes considered
- [ ] Evidence supports attribution

**Verification tools:** Read, Grep (to verify evidence)

### Safety Constraints

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

**Capability-specific rules:**
- Distinguish correlation from causation
- Consider multiple causes (multi-causality)
- Note when attribution is uncertain
- Do not assume causation without mechanism

### Composition Patterns

**Commonly follows:**
- `detect` - Detect anomalies then attribute causes
- `observe` - Observations reveal effects to attribute
- `measure` - Measurements quantify effects

**Commonly precedes:**
- `plan` - Causal understanding informs remediation
- `explain` - Attribution enables explanation
- `critique` - Causal model enables critique

**Anti-patterns:**
- Never use attribute for prediction (use `predict`)
- Avoid attribution without sufficient evidence

**Workflow references:**
- See `reference/workflow_catalog.yaml#debug_code_change` for attribution in debugging
- See `reference/workflow_catalog.yaml#world_model_build` for causal modeling
