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 through one documented case to show why one doesn't imply the other.


1. What each skill does

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 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 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, 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. Nothing was measured on hardware by WCGW.

The claims

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:

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:

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

Both skills are available through WCGW MCP. They support investigation and review. They do not replace a dependent failure analysis or an independent assessment.