Skip to main content

Areas, applicable rules and tags

Three different ways to organise specs, for three different purposes.

WayWhat it is forHow it changes
AreaGives each spec one place, and decides who reviewsMove the Area through a change request
Applicable ruleOne decision or constraint governs many specsPart of the rule's content, changed through a change request
TagFind and filter by topicAdded and removed at once, no review

Area​

Each project has an Area tree (up to five levels deep), and each spec, implementation specs included, sits in exactly one Area. For example, Engineering / CLI is the Area CLI inside the Area Engineering. With a single place, everyone knows where to look, and the question "who reviews" has one answer.

  • Two built-in Areas. Every project always has General and Unsorted. A new spec that nobody places goes into Unsorted, so it is never blocked for lack of an Area.
  • Opening an Area shows every spec in it and in its child Areas.
  • The code does not change when the Area moves. Moving a spec to another Area goes through a change request, and the reviewer sees the old and the new Area.
  • Archiving. An Area that still has specs or child Areas cannot be archived yet.
  • Managing the Area tree (create, rename, move, archive, set keepers) needs the project's management right.

Area keepers and who reviews​

An Area can have keepers: the people who review change requests that touch specs in that Area. To know who reviews, tmspec walks from the spec's Area up to the root of the tree and stops at the nearest Area that has keepers; if no Area has any, the project's reviewers review. A change request that touches several Areas needs the signature of each group of keepers; it is applied when the last signature is complete. A keeper must be someone who has the right to review in the project.

In the CLI​

tmspec area ls # the Area tree, by path
tmspec area create "Engineering / CLI" # create an Area (and the parent Areas it needs)
tmspec area owners "Engineering / CLI" # see the keepers
tmspec area move "Engineering / CLI" r12 r13 # move specs to an Area, in one change request
tmspec context --area "Engineering / CLI" --brief --all # the rules and specs of one Area

An Area is always named by its path from the root, not by an id.

Applicable rules​

A decision or constraint can declare that it applies to a scope. Every spec in that scope, including specs created later, is governed by the rule without anyone attaching it by hand to each one:

ScopeCovers
Whole workspaceEvery spec in every project
Whole projectEvery spec of the project that holds the rule
Some AreasEvery spec in those Areas and in their child Areas
A listExactly the specs named, possibly in other projects

A rule can declare exceptions, each with a reason. The scope is part of the rule, so it changes through a change request, and the reviewer sees clearly how the scope widens. When the rule's content changes, every spec in scope needs a second look (see Links and pins).

A spec's page, on the Relations tab, has an applicable rules group listing every rule that covers it and where that rule comes from: the spec's Area, a parent Area, the whole project, the whole workspace, or named directly. When you create a new spec, the form shows the rules the spec must follow. When the Area moves, the rules that apply to the spec change with it, and the reviewer sees which rules are added and which are lost.

Tags​

A tag is a label from the workspace's catalogue (for example payment, security), attached to requirements, decisions, constraints and implementation specs for finding and filtering.

  • Adding and removing a tag takes effect at once, with no change request and no new version. A tag never decides which specs a rule applies to; that is the job of the scope.
  • A tag name is 1 to 50 characters, has no comma, and is case-insensitive. Typing a name that does not exist yet creates a new tag. A spec has at most 50 tags.
  • Filter a list by up to 10 tags at once; a spec must have every selected tag.
  • The workspace owner and admins Rename, merge, Archive and Restore tags on the Tags screen. A tag that has been merged into another cannot be restored.
tmspec tag add payment r12
tmspec tag remove payment r12
tmspec ls --tag payment --all
tmspec tag list