# Skill deep dive: Walk the Chain and Shared Substrate

*When complete safety arguments share the same weakness.*

Two safety measures can each trace cleanly from hazard to test and still fail together. Traceability is a property of one argument. Independence is a property of a pair. This article follows both [safety engineering skills](/skills/) through one documented case to show why one doesn't imply the other.

---

## 1. What each skill does

**[Walk the Chain](/skills/#walk-the-chain)** builds the causal chain before any hazard is written. The agent writes the four PSPP links (process, structure, property, performance), states a `CONSTRAINT` at each link, and classifies every concept with a PSPP dimension and an OPB IRI looked up through `list_opb_terms`. Only then does it write hazards against the constraints they violate. It finishes with three queries and reports every link without a hazard, every constraint without a hazard and every concept without an OPB term.

**[Shared Substrate](/skills/#shared-substrate)** starts where Walk the Chain stops. It finds the pairs of channels the graph claims are independent, collects the concepts each channel rests on, and groups them by OPB IRI. An IRI present on both sides is a common-cause candidate. A human then classifies it as **common cause** (same physical instance), **acceptable** (same instance, with a stated reason it cannot defeat both channels) or **not shared** (two instances of the same kind).

The [query engine](/knowledge-base/full-feature-list/#traceability-query-engine) does the traversal. It does not compare channels or group by IRI; the agent does that with the sets the queries return.

| Query | Skill | Direction | What it returns |
|---|---|---|---|
| `PSPP_TRAVERSAL` | Walk the Chain | Undirected | The anchor's connected component, each node annotated with its PSPP dimension and OPB term |
| `ORPHANED_NODES` | Walk the Chain | Graph-wide | Concepts with no relations |
| `MISSING_VERIFICATION` | Walk the Chain | Graph-wide, one hop | Requirements of six requirement types with no `TEST_CASE`, `TEST_RESULT`, `PROOF_TEST`, `VERIFICATION_REPORT` or `VALIDATION_REPORT` neighbour |
| `REQUIREMENT_DECOMPOSITION` | Shared Substrate | Undirected | Requirements reachable through requirement-typed concepts only |
| `SINGLE_POINT_OF_FAILURE` | Shared Substrate | Undirected | Concepts with three or more relations: a degree heuristic, not a failure analysis |
| `FAN_IN_OUT` | Shared Substrate | Undirected | Neighbours, then concepts with two or more incoming or outgoing relations |
| `UPSTREAM_TRACEABILITY` | Shared Substrate | Incoming relations only | Everything that points, directly or transitively, at the anchor |
| `CONNECTED_COMPONENT` | Shared Substrate | Undirected | The anchor's whole connected component |

---

## 2. Worked example: the hidden turn count

*This is a documented investigation, not an illustration.* In [lerobot#5324](https://github.com/huggingface/lerobot/issues/5324), a Feetech STS3215 servo keeps a hidden one-turn offset in its RAM turn count after calibration. At the first goal, the joint drives toward its hard stop. On 2026-11-14 WCGW modelled the problem as a 25-concept graph, ran both skills, and [posted the resulting tests on the fix PR](https://github.com/huggingface/lerobot/pull/5332#issuecomment-6882264298). Nothing was measured on hardware by WCGW.

### The claims

- **`SWR-CLEAR`**: the fix in PR #5332. A position → velocity → position mode round-trip in `write_calibration()` clears the count. Evidence: the reporter's runs on one motor at firmware 3.10, and unit tests that mock the bus.
- **`SWR-PRE`**: a proposed pre-torque check. Before torque is enabled, read `Present_Position` with Phase bit 4 set and refuse torque on a mismatch. No implementation yet.

One clears the fault and the other detects it, so they read as two independent measures.

### Walking the chain

The PSPP chain ran: calibration (process) → RAM turn count (structure) → reference offset (property) → uncommanded motion (performance) → the two candidate hazards: motion at torque enable (H1) and a stall at the hard stop (H2). The checks reported:

- Graph completeness **0.67**, with hazard-mitigation coverage **1/2**: H2 had no mitigation until `SWR-PRE` was added.
- `SWR-GOAL-CLAMP`, a planned goal clamp, had **no verification**.
- **Seven concepts without an OPB term**, among them Phase bit 4, an observability constraint and two assumptions. They are information or logic, not physics.

Both measures now trace to the hazards, and both have a test-case neighbour, so `MISSING_VERIFICATION` passes them. That is all the query checks: that a verification concept is one relation away. It doesn't read what the test shows. Here the test evidence comes from one servo, and the PR's unit tests check that the round-trip is called, not that it clears the count.

### Looking for a shared substrate

Simplified from the investigation graph:

| From | Relation | To |
|---|---|---|
| `SWR-CLEAR` | `DEPENDS_ON` | `S-TURNCOUNT` (firmware turn-count model) |
| `SWR-PRE` | `DEPENDS_ON` | `S-TURNCOUNT` |
| `TC-1` (wrap-cross calibration test) | `VALIDATES` | `SWR-CLEAR` |
| `TC-1` | `VALIDATES` | `SWR-PRE` |

Both channels resolve to the same OPB IRI, `OPB_01445`. That only says they concern the same kind of physical quantity. The instance call came from the relations: both measures depend on one concept, `S-TURNCOUNT`, a model of the firmware built from one motor plus a clean-room reimplementation. Classification: **common cause, same instance**. If another firmware version doesn't expose the count through bit 4, or the round-trip doesn't reset it, both measures fail together. They also share their only test.

Direction matters here. WCGW relations read left to right, so `SWR-CLEAR DEPENDS_ON S-TURNCOUNT` points away from the requirement. `UPSTREAM_TRACEABILITY` from `SWR-CLEAR` follows incoming relations: it reaches `TC-1`, but not `S-TURNCOUNT`. `CONNECTED_COMPONENT` reaches `S-TURNCOUNT`, but in a connected work item it returns the same set from both anchors. The queries collect the material. Telling the two channels apart is the agent's and the engineer's reasoning.

### What it would take to judge the dependency

The skill created a constraint, `C-INDEP-FW-MODEL`: verify bit-4 exposure and the clearing behaviour separately, for each firmware version shipped in kits. It is a proposal, not an implemented measure. To decide whether the common cause matters, the investigation asks for:

- `TC-1` repeated on at least two arms and two firmware versions.
- Separate evidence for detection and for clearing, so one result can't stand in for both.
- Two 15-minute tests for paths the fix may not reach: reconnecting after a joint is moved by hand, and powering on with a joint parked past raw zero.

If both behaviours hold on every shipped version, the dependency is real but cannot defeat both measures. If either fails, the pre-torque check needs a basis other than the model it is meant to back up. That design change is our reading; the investigation did not propose one.

---

## 3. Topology is not semantics

A shared node is not automatically a common cause. Two channels can each carry "temperature" without sharing one. The skill treats a shared IRI as a candidate and leaves the instance call to a human. `SINGLE_POINT_OF_FAILURE` counts relations; it does not know what fails.

Two distinct nodes don't prove independence either. The seven unclassified concepts in this graph are unchecked, not clear. The skill's own rule is that the strongest honest result is "no shared substrate found among classified concepts", never "independent".

---

## 4. Why neither question contains the other

Walk the Chain checks each argument on its own: is every link grounded, connected, classified and verified? It never compares two chains. `SWR-CLEAR` and `SWR-PRE` would both pass it with the shared model in place.

Shared Substrate checks pairs. It assumes the chains already exist and does not ask whether the evidence supports either claim. Two unverified claims on disjoint substrates pass it.

A complete argument can still share its weakness with the one next to it. The way to find out is to run both skills.

---

## Research lineage

- **Traceability:** Gotel and Finkelstein's analysis of the requirements traceability problem ([1994](https://discovery.ucl.ac.uk/id/eprint/749/)); Kelly's Goal Structuring Notation for linking claims to evidence ([1998](https://impact.ref.ac.uk/casestudies/CaseStudy.aspx?Id=43445)).
- **PSPP:** Olson's process–structure–property–performance chain from materials design ([1997](https://doi.org/10.1126/science.277.5330.1237)). See also [OPBPSPPCDD](/knowledge-base/opbpsppcdd/).
- **Physical vocabulary:** Cook, Neal, Bookstein and Gennari's Ontology of Physics for Biology ([2013](https://pmc.ncbi.nlm.nih.gov/articles/PMC3904761/)).
- **Common cause:** the Reactor Safety Study's treatment of common-mode failures ([1975](https://www.nrc.gov/regulations-legislation/nureg-series-publications/publications-prepared-by-nrc-staff/reactor-safety-study-an-assessment-of-accident-risks-in-us-commercial-nuclear-power-plants-nureg)); Feiler's fault propagation through shared resources with the AADL Error Annex ([2012](https://avicps.github.io/website/2012/AVICPS2012FeilerAnalyticalArchitectureFaultModels.pdf)).

Both skills are available through [WCGW MCP](/knowledge-base/connect-mcp/). They support investigation and review. They do not replace a dependent failure analysis or an independent assessment.
