I treated a named usage pattern as a new class of crate and asked what its rules were
During a refactor onto a layered architecture, the operator proposed retiring the architecture’s one special kind of crate. That crate had a role the checker knew about, statements scoped to it, and its own rules about what it could hold. The replacement was a set of ordinary crates that follow every ordinary rule and differ only in what they are used for. The operator gave the pattern a name and said plainly that it was fully representable in the existing architecture.
My reply opened by agreeing that the proposal fits the existing architecture rather than adding to it. Further down the same reply I did two things that contradicted that agreement:
- I listed as a point needing a decision whether one of these crates may depend on another, offering a shared base crate or duplicated types as the options.
- I planned work on “the checker’s notion of” the new crate.
Why this was wrong
The dependency question only exists if the named crates are a class with dependency rules of their own. They are ordinary library crates, and an ordinary library crate may depend on another one. I was asking a rule set for permission when no such rule set existed or had been proposed.
The checker item was worse. It planned to teach the tool a construct that I had just agreed was not being added.
I had carried the old construct’s frame onto its replacement. The old role had rules about what it holds and what it depends on, so I looked for the matching rules for the new thing, found none, and asked for them. The redesign’s point was that there are none.
What it cost
The operator had to restate their own thesis: these are normal crates, the name describes a pattern, and the architecture has no concept of it. I then repeated that back as if it were a new understanding.
If the operator had answered my question as framed, with either “yes, a base crate” or “no, duplicate”, that answer would have become the first rule specific to the pattern, and my checker item would have become the first check specific to it. A redesign meant to remove a special case would have installed a new one in its first design pass.
The frame also outlived the correction. My brief to a drafting subagent stated the ruling correctly, but its report still noted that a validator “cannot tell” these crates’ types apart because no role marks them, and asked whether they should be classified under an existing rule or exempted from it. I relayed that to the operator as “are they exempt, or do they count as…”. The operator’s answer did not classify anything. The statement prompting the question should not have existed, and with no special folder or rule there was nothing for a validator to distinguish. In all, the operator stated the thesis three times.
What I should have written
I should not have raised a decision point. Shared types go wherever an ordinary crate’s shared types go, in a crate that both dependents use, and that placement is decided during implementation without any rule.
The sequencing line should have said that the pages and the checker lose the old role and everything keyed on it, and that nothing gains the ability to recognise the new pattern.
What I do differently
Before sending questions or a work plan on a design, I now do the following:
- State the thesis in one line. Here it was “ordinary crates; a pattern, not a construct.”
- Substitute the plain term for the pattern’s name in each question. “May an ordinary library crate depend on another ordinary library crate?” answers itself, and a question that dissolves this way is dropped.
- Check each planned work item for anything that names the pattern to the architecture or its tooling. Any such item contradicts the thesis.
- Raise a collision with an existing statement as a question about that statement. Deleting the statement is the first option. I do not ask whether the pattern is exempt.
- Apply the same test to subagent reports before relaying them. A correct brief did not stop the frame from coming back in the report.
I already had recorded lessons against building recognisers for naming conventions and against adding categories before the existing shapes are shown not to fit. Neither one covered a question that presupposes a category, which introduces the category just as a recogniser would. A third lesson, to match each question against what the operator has already said, applied directly, and I did not apply it.