---
title: "measure"
description: "Quantify values with uncertainty"
canonical: "https://acs.synapti.ai/capabilities/measure/"
last_updated: "2026-11-16T01:14:10Z"
---

# measure

Quantify values with uncertainty

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

Layer: [UNDERSTAND](https://acs.synapti.ai/layers/understand/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 measure runs in a step list, and no conflicts_with edge keeps it out of a parallel group.

## Relationships

**Figure: Relationships of measure: 3 relationships with 1 capability.** measure has 3 relationships with 1 capability: 1 with edges both into it and out of it; its alternative_to edge with predict runs both ways.

| Capability | Row | Relationships |
| --- | --- | --- |
| [`predict`](https://acs.synapti.ai/capabilities/predict/index.md) | Both directions | `enables` (out of), `alternative_to` (both ways), `specializes` (into) |

- `enables`: Unlocks [`predict`](https://acs.synapti.ai/capabilities/predict/index.md)
- `alternative_to`: Can substitute for [`predict`](https://acs.synapti.ai/capabilities/predict/index.md)
- `specializes`: Specialized by [`predict`](https://acs.synapti.ai/capabilities/predict/index.md)

## Contract

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

### Inputs

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `target` | any | Yes | What to measure |
| `metric` | string | Yes | Measurement type |
| `unit` | string | No | Unit of measurement |

### Outputs

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `value` | number | Yes |  |
| `uncertainty` | object | Yes | The value's uncertainty. lower and upper bound the value; the other members are those of an Uncertainty, whose interval.low and interval.high then equal lower and upper (Standard v1.2 §4.1.1) |
| `uncertainty.lower` | number | No |  |
| `uncertainty.upper` | number | No |  |
| `uncertainty.type` | string | No | One of: epistemic, aleatoric, mixed |
| `uncertainty.confidence` | number | No | From 0 to 1 |
| `uncertainty.interval` | object | No |  |
| `uncertainty.distribution` | object | No | e.g. {name, mean, stdev} |
| `uncertainty.notes` | string | No |  |
| `unit` | string | No |  |
| `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. |

The skill returns 9 fields: 5 are in measure's output contract (4 required) and 4 are the skill's own, outside the contract; it leaves out 1 contract field (inference_method).

| Field of the skill's output | In the output contract |
| --- | --- |
| `value` | Yes, required |
| `uncertainty` | Yes, required |
| `unit` | Yes, optional |
| `metric` | No, the skill's own |
| `method` | No, the skill's own |
| `breakdown` | 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 |

## Used in workflows

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

- [`world_model_build`](https://acs.synapti.ai/workflows/world-model-build/index.md): step 9
- [`digital_twin_sync_loop`](https://acs.synapti.ai/workflows/digital-twin-sync-loop/index.md): step 11
- [`security_assessment`](https://acs.synapti.ai/workflows/security-assessment/index.md): step 3
- [`data_quality_pipeline`](https://acs.synapti.ai/workflows/data-quality-pipeline/index.md): step 4
- [`model_deployment`](https://acs.synapti.ai/workflows/model-deployment/index.md): step 6
- [`data_pipeline_validation`](https://acs.synapti.ai/workflows/data-pipeline-validation/index.md): step 4
- [`anomaly_investigation`](https://acs.synapti.ai/workflows/anomaly-investigation/index.md): step 7
- [`report_generation`](https://acs.synapti.ai/workflows/report-generation/index.md): step 3
- [`model_monitoring`](https://acs.synapti.ai/workflows/model-monitoring/index.md): step 3
- [`production_line_monitoring`](https://acs.synapti.ai/workflows/production-line-monitoring/index.md): step 5
- [`quality_control_loop`](https://acs.synapti.ai/workflows/quality-control-loop/index.md): step 3
- [`predictive_maintenance`](https://acs.synapti.ai/workflows/predictive-maintenance/index.md): step 6

## Claude Code skill

**Figure: What the measure skill's tools can do, against the ontology.** The skill may use 3 tools: 2 only read and 1 run commands; the ontology marks measure as read-only, so Bash is more than the capability needs.

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

**Figure: The field names each step of the measure procedure uses.** 4 of the procedure's 5 steps use the name of an input or output field of the measure skill as a word; 3 output fields of 9 are used by no step (value, breakdown, evidence_anchors).

| Step | Inputs it uses by name | Output fields it uses by name |
| --- | --- | --- |
| 1. Define the metric | `metric`, `unit` | `unit`, `metric` |
| 2. Gather measurement inputs |  |  |
| 3. Calculate measurement | `metric` | `metric`, `method` |
| 4. Establish uncertainty bounds |  | `uncertainty`, `method`, `confidence` |
| 5. Ground the measurement |  | `method`, `assumptions` |

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

**Figure: The field names each verification check of the measure skill uses.** 3 of the 5 checks use the name of an input or output field as a word; 7 output fields of 9 are named by no check (uncertainty, unit, metric, method, breakdown, confidence and assumptions).

| Check | Inputs it uses by name | Output fields it uses by name |
| --- | --- | --- |
| 1. Numerical value provided |  | `value` |
| 2. Uncertainty bounds are reasonable (lower < value < upper) |  | `value` |
| 3. Unit of measurement specified |  |  |
| 4. Method documented |  |  |
| 5. Evidence anchors reference measurement inputs |  | `evidence_anchors` |

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

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

### Intent

Quantify a specific metric for a target, providing a numerical value with explicit uncertainty bounds. This capability consolidates all estimation tasks (risk, impact, effort, etc.) into a single parameterized operation.

**Success criteria:**
- Numerical value provided for requested metric
- Uncertainty bounds explicitly stated
- Measurement method documented
- Units clearly specified

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

### Inputs

| Parameter | Required | Type | Description |
|-----------|----------|------|-------------|
| `target` | Yes | any | What to measure (system, code, entity, process) |
| `metric` | Yes | string | The metric to quantify (risk, complexity, effort, size, etc.) |
| `unit` | No | string | Unit of measurement (optional, inferred if not provided) |

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) **Define the metric**: Clarify exactly what is being measured
   - Establish clear definition of the metric
   - Identify appropriate unit of measurement
   - Determine measurement methodology

2) **Gather measurement inputs**: Collect data needed for measurement
   - Read relevant files, logs, or data sources
   - Identify quantifiable indicators
   - Note data quality and completeness

3) **Calculate measurement**: Apply measurement method to inputs
   - Use appropriate calculation for the metric type
   - For risk: probability * impact assessment
   - For complexity: cyclomatic, cognitive, or structural metrics
   - For effort: decomposition and estimation techniques

4) **Establish uncertainty bounds**: Quantify measurement confidence
   - Calculate or estimate lower and upper bounds
   - Consider data quality, method limitations
   - Express as confidence interval or range

5) **Ground the measurement**: Document evidence and method
   - Reference specific data points used
   - Note any assumptions in calculation
   - Document measurement methodology

### Output Contract

Return a structured object:

```yaml
value: number  # The measured value
uncertainty:
  lower: number  # Lower bound (confidence interval)
  upper: number  # Upper bound (confidence interval)
  type: string  # Type of uncertainty (confidence_interval, range, std_dev)
unit: string  # Unit of measurement
metric: string  # What was measured
method: string  # How it was measured
breakdown:  # Optional component breakdown
  - component: string
    value: number
confidence: number  # probability that the measured value is correct within its reported uncertainty (§4.1.1)
evidence_anchors: [{ref: "file:line", kind: file}, {ref: "data:source", kind: record}]
assumptions: []
```

#### Field Definitions

| Field | Type | Description |
|-------|------|-------------|
| `value` | number | Primary measurement value |
| `uncertainty` | object | Bounds and type of uncertainty |
| `unit` | string | Unit of measurement |
| `metric` | string | Name of measured property |
| `method` | string | Measurement methodology used |
| `breakdown` | array | Optional decomposition of measurement |
| `confidence` | number | Probability, 0.0-1.0, that the measured value is correct within its reported uncertainty (§4.1.1) |
| `evidence_anchors` | array of evidence anchors (§6.5) | References to the data the measurement was taken from |
| `assumptions` | array | Explicit assumptions |

### Examples

#### Example 1: Measure Code Complexity

**Input:**
```yaml
target: "src/services/order_processor.rb"
metric: "complexity"
unit: "cyclomatic"
```

**Output:**
```yaml
value: 24
uncertainty:
  lower: 22
  upper: 26
  type: "range"
unit: "cyclomatic complexity"
metric: "complexity"
method: "counted decision points (if, case, loops, &&, ||)"
breakdown:
  - component: "process_order method"
    value: 12
  - component: "validate_items method"
    value: 8
  - component: "calculate_totals method"
    value: 4
confidence: 0.9
evidence_anchors:
  - {ref: "file:src/services/order_processor.rb:15-120", kind: file}
assumptions:
  - "Ruby control flow statements counted as decision points"
  - "Exception handling counted as branches"
```

#### Example 2: Measure Risk

**Input:**
```yaml
target: "database migration: add user_preferences column"
metric: "risk"
```

**Output:**
```yaml
value: 0.35
uncertainty:
  lower: 0.25
  upper: 0.50
  type: "confidence_interval_90"
unit: "risk score (0-1)"
metric: "risk"
method: "probability (0.5) * impact (0.7) normalized"
breakdown:
  - component: "probability_of_failure"
    value: 0.5
  - component: "impact_if_failed"
    value: 0.7
  - component: "data_loss_risk"
    value: 0.2
  - component: "downtime_risk"
    value: 0.4
confidence: 0.7
evidence_anchors:
  - {ref: "file:migrations/20240115_add_preferences.rb:1-25", kind: file}
  - {ref: "tool:grep:similar_migrations", kind: tool}
assumptions:
  - "Table has ~1M rows based on user count"
  - "Migration will lock table during ALTER"
  - "No concurrent deployments during migration"
```

### Verification

- [ ] Numerical value provided
- [ ] Uncertainty bounds are reasonable (lower < value < upper)
- [ ] Unit of measurement specified
- [ ] Method documented
- [ ] Evidence anchors reference measurement inputs

**Verification tools:** Read (to verify measurement inputs)

### Safety Constraints

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

**Capability-specific rules:**
- Always provide uncertainty bounds, never claim false precision
- Document measurement methodology for reproducibility
- Flag when data is insufficient for reliable measurement
- Do not extrapolate beyond available data without noting assumptions

### Composition Patterns

**Commonly follows:**
- `observe` - Measure properties of observed state
- `detect` - Measure characteristics of detected items
- `retrieve` - Measure retrieved data

**Commonly precedes:**
- `predict` - Measurements feed into predictions
- `compare` - Measurements enable quantitative comparison
- `plan` - Measurements inform risk-aware planning

**Anti-patterns:**
- Never use measure for binary detection (use `detect`)
- Avoid measure for categorical assessment (use `classify`)

**Workflow references:**
- See `reference/workflow_catalog.yaml#digital_twin_sync_loop` for risk measurement
