Skip to main content

Links and pins

A spec does not stand alone. A requirement relies on a decision, an implementation spec elaborates a constraint. tmspec records these relations as links, and tells you when what a link points to has changed.

LevelKindHow it is addedWarns when the target changes
Strongdepends_on, replacesPart of the source spec's content: adding, removing or changing the target all go through a change requestYes
Weakrelates_to, mentionrelates_to is added and removed freely; mention is worked out from the approved textNo

The reason for two levels: a strong link is a statement the team agreed on, so it must be approved. A weak link is only a pointer; requiring approval would make nobody want to add one. When a change request adds a strong link to your spec, you, the owner of the target, are notified and can object before it is approved.

A link can point to a whole spec or to a criterion (for example PAY-R-12#AC-3). That point is called the anchor. A cycle of links (A depends on B depends on A) is blocked at approval.

Each strong link remembers what the part it points to looked like when someone last confirmed it. That milestone is the pin. When the target changes, the pin tells you whether the link still matches or needs a second look:

Pin stateMeaning
MatchesThe target part the link points to has not changed, even if the target spec has a new version elsewhere
Needs reviewThe target part the link points to has changed
Target removedThat criterion or part has been removed
Target retiredThe target spec has been retired (for depends_on links)

The important point: a pin looks only at the exact part the link points to. Editing a different criterion of the same spec does not mark a link pointing at this criterion, so the number of flags stays small enough to be taken seriously. A flag also goes only one step: a spec that points directly at the changed part is flagged, a spec further behind it is not.

A flag is a signal, not a verdict. Only a person knows whether a change has an effect.

There are two ways:

  1. No impact: you have read the target's change and see it does not affect your spec. This confirmation only adds a record, creates no new version, and can be taken back (Undo). The credential needs the scope decide:link.
  2. Edit the source spec with a change request, if the target's change really requires you to change too.

An anchor that has been removed or a target that has been retired cannot be confirmed with No impact; those cases are resolved only by a change request that changes or removes the link. Step-by-step instructions are in Review links.

Applicable rules have pins too​

A decision or constraint that applies to many specs (see Areas, applicable rules and tags) also pins each spec in its scope to the version of the rule that was last confirmed. When the rule changes, each spec in scope needs a second look, and these pins are on the Scope pins tab of the Links to review screen.

On a spec's Relations tab you add or remove relates_to links directly, with no review. In the CLI: tmspec link add and tmspec link remove. Weak links raise no flags and create no version; as for mention, you do not add or remove it by hand but by changing the spec's text.