Propose a change
This page gives step-by-step instructions to propose a change to a requirement, decision or constraint. The background concept is in Change request. An implementation spec does not go through a change request; see GSpec and implementation spec.
You need at least the contributor role in the project. If a button or command is refused, see Roles and permissions.
Before writing: see what the change will touch
Before editing part of a spec, ask who relies on it:
tmspec impact r12 # the whole spec
tmspec impact r12#AC-3 # one criterion
tmspec impact r12 --summary # a summary per criterion
The result lists the specs that have a strong link to the exact part that will change; those specs will be marked as needing review. On the web, the spec's View in graph button opens the Impact mode for the same question.
On the web
- Open the spec and click File a change request. The button does not show if you lack the right to propose or the spec is retired.
- Edit the content. You see the form for that kind of spec (a requirement has a title, a description and criteria). Parts the form does not show, such as links, are kept as they are.
- Choose an Area if you want to move the spec. Changing only the Area is also a valid change.
- Write a title and the reason for the reviewer.
- Click Save draft to keep a draft, or Submit to send it for review right away.
The form checks the content before sending; errors show right at the wrong field. A double click does not create two change requests.
To retire a spec, use Propose retire on the spec's page and give a reason. A retire cannot be reopened, and the review page says which specs it flags.
After sending, you land on the change request's Review page. From there you can Edit or Withdraw it while it is a draft or open.
With the CLI
One spec, in an editor
tmspec propose r12
The current content opens in $VISUAL or $EDITOR as YAML. Save to create a draft change request; saving an empty file, or one with no change, cancels. If the content does not match the schema, the editor reopens with the errors at the top of the file, so you do not lose what you typed. Needs a terminal.
From a change file
A change file (change/v1) describes the change of one spec, in YAML or JSON, so it suits scripts and agents:
tmspec: change/v1
format: requirement
item: PAY-R-12
base_version: 3
payload:
title: Refunds must be idempotent
statement: Retrying a refund with the same key never pays twice.
acceptance_criteria:
- id: AC-1
text: Retrying with the same Idempotency-Key returns the first result
tmspec propose --file change.yaml --submit
| Field | Meaning |
|---|---|
format | requirement, decision or constraint; required when creating a new spec |
item | The spec to change; leave empty to create a new spec |
base_version | The version you wrote the change on, or head to accept the current version when sending |
payload | The full new content, following the schema of that kind of spec |
area | The Area to put the spec in; alone (with no payload) the file only moves the Area |
retire: true | In place of payload, to retire the spec |
The CLI checks the file before sending and prints every error at once (exit code 7). By default the result is a draft; --submit opens it for review right away. This command never approves anything.
base_version protects you from overwriting a newer change: if the spec already has a new version, the command stops with code 6. Read the spec again (tmspec view r12), redo the change on the new version and propose again.
Many specs at once
tmspec propose --dir folder/ imports a whole folder of change files as one change request to review once. --dry-run only prints the plan (exits with code 10 when there are changes), --split divides it into several change requests when there are more than 100 files.
Safe retry
Commands that create and decide (for example propose, cr submit, cr approve) carry an Idempotency-Key. If the network drops and you do not know whether the command ran, the error prints the key; run exactly the same command with --idempotency-key <key> and the server returns the first run's change request, without creating a second one.
Follow and adjust
tmspec cr list # the project's change requests
tmspec cr list --outdated # the ones that are Out of date
tmspec cr view 45 # state, changes, Overlaps and differences
tmspec cr submit 45 # send a draft for review
tmspec cr withdraw 45 # take it back
tmspec cr edit 45 # replace the content of a draft or open one
When a reviewer asks for changes (with the CLI command tmspec cr request), the change request stays open and waits for you to edit: tmspec cr edit 45. Reply to a comment with tmspec cr reply.
When your change request is Out of date
The spec has a new version since you wrote. You do not need to write again; do an Update:
- On the web, click Update in the warning strip of the Review page. Parts only one side changed are combined automatically (Combined); for parts both changed you Choose, preview the result, then save.
- With the CLI:
tmspec cr update 45. If some parts need a choice, the command writes nothing, prints Before, Latest and Yours of each part and exits with code 6. Choose withtmspec cr update 45 --edit(opens an editor), or send the content you chose with--file, plus--descriptionto record what you kept and why. For a retire or an Area move,--drop <ref>drops that change of yours and takes the newest version.
Do not choose your own version by quietly dropping a change someone else has had approved. See also Change request.