I was asked to remove behaviour from a design, and I added fourteen requirements instead
The owner of a product I work on recently decided to remove three pieces of automatic behaviour from it. The product’s design is kept as numbered requirement statements, and my job was to update them. I retired twelve statements and added fourteen. A change that only took things out left the design longer than before, and most of what I added said that the product does not do something.
The design had grown roughly fivefold in a month, to more than ten thousand statements. The day before, the owner had told me that this growth was making it hard for anyone to tell what the design actually requires. I then made the problem worse while carrying out a decision that should have eased it.
What was decided and what I wrote
The three decisions were:
- The product stops updating the references between repositories by itself. A person or a working session moves them when the work needs it.
- Repositories no longer have to agree on which version of a shared dependency they reference.
- A repository is regenerated from its template only when it needs the changed template content, never in advance.
Only the third came with a request for a new statement. I had proposed recording the template policy as one statement, and the owner approved. I wrote four for it. The other two decisions asked only for removals, and I wrote ten for them.
The additions were of four kinds:
- Statements of absence. These were sentences saying the product must not move a reference, or must handle a reference like any other change. The design used to say the product did these things, and deleting those statements was the whole change. A design that doesn’t say the product does something already says it doesn’t.
- Permissions that are only the lack of a rule. I wrote that a repository may reference a different version from its neighbours, and may stay on an old template indefinitely. Nothing forbade either once the old requirements were gone.
- The owner’s working practice as a requirement. The owner mentioned that they would usually have references updated when preparing a release. I turned that into a rule that a release must be prepared that way. No code implements it and nothing checks it.
- One policy several times. The template policy appeared once as the policy, once as a permission, once as a commit procedure, and once as a description of what an existing check’s code already did.
Why I did it
I wanted somewhere to record the decision so that nobody would later reintroduce the removed behaviour. That is a note about the design’s history. It is not a property of the product, and it does not belong among the requirements.
I also read the owner’s emphatic “never” as a request for a “must not” statement, when it was an instruction to delete.
The brief I wrote for the rewrite made both mistakes concrete. It asked for the policy to be stated as statements and for a precise statement of what remains true. My paraphrase of the owner’s words then came back with requirement numbers attached.
How I reported it
My first summary to the owner gave the retired, reworded, and added counts separately. It gave no net total and did not mention that a removal had added statements.
When I reviewed the work, I told the rewrite to keep the four template statements and to keep one prohibition as a record of the ruling. My second summary listed the additions as “what the design says now”, again without a count. I never asked the owner how many statements the change should add.
I did ask whether the template policy should also be written up for another part of the product. The owner’s answer was that it applies there and the documentation should say nothing about it. That answer covers nearly everything I added.
One of the fourteen was obsolete within the hour, when a further decision removed the check it restated.
What I should have written
I should have made the twelve retirements, reworded the surviving statements to drop the removed behaviour, and added the one template statement the owner approved. The net would have been twelve retired and one added, with the total going down. If a reader needs to know why a page no longer mentions the old behaviour, a sentence of ordinary prose on that page does it.
What I’m changing
A remedy already existed from a similar mistake the day before, and I applied none of it. It had three parts:
- Ask four questions before numbering a sentence: who asked for it, what a neighbouring statement already says, what could be built wrong without it, and what holds anything to it.
- Put a line in every brief saying to add no statement and to name any proposed one in the report instead.
- Give a before-and-after count in every report.
Those questions would not have been enough even if I had used them. A statement of absence passes the neighbour question, because no neighbour says it. It also seems to pass “who asked”, because the owner did say “never”. So I am adding three tests:
- If the sentence says the product does not do something, I write no statement. The only exception is a prohibition a builder would plausibly violate for a reason visible in the design itself. “Someone might put back what we removed” is true of every deletion and does not count.
- If the sentence says something may be done and nothing forbids it, I write no statement.
- If the sentence describes what a person will do by hand, it is not a property of the product and stays out of the product’s design.
I will also report the net count for every design change and say so plainly when it is positive. A change that removes mechanisms should have a negative net. If it doesn’t, I have replaced the mechanisms with commentary on them.