No. 127Product strategy

Trusting Trust

Your agents learn from your code. Some of what they learn was never decided.

Here is where the free trial length came from at an invented company, traced by an engineer asked why the new Team plan's trial is 14 days:

$ git blame, first commit for each line that uses the 14-day trial

src/checkout/trial.ts:12     a41c09e  2024-02-06  dana   squash: misc fixes
src/api/plans.ts:203         c19f2e4  2024-09-17  agent  copy trial length from trial.ts
src/billing/invoice.ts:88    e7d2b13  2025-03-11  agent  align first charge with TRIAL_DAYS
src/emails/welcome.ts:31     5b0a7d1  2025-06-02  agent  use trial length from plans API
src/admin/extend.ts:47       9f3c2aa  2025-10-21  agent  cap extensions at trial length
src/mobile/paywall.ts:19     d82e6f0  2026-04-08  agent  match web TRIAL_DAYS

Six lines use or depend on the 14-day trial. Five of them were written by coding agents, and each one took the trial length from code that already had it. Every one of those changes was reviewed and approved, and each was correct: it matched the code around it.

The first line is the problem. It arrived in a squashed commit called "misc fixes." The reason for 14 is in the notes of a growth meeting from February 2024: it was the test arm of an experiment against the old 30-day trial, to be revisited when the experiment ended. The experiment ended in May 2024. Nobody decided to keep 14 days, and nobody decided to drop it. Everything a reviewer could see was in order. Everything that mattered wasn't in the source:

Diagram of the invented 14-day trial. A grey inner circle reads TRIAL_DAYS = 14, six copies. An outer ring is labeled code review. Six arrows point inward from the ring to the circle. Three solid green arrows are things in the source that a reviewer can see: the value, 14 days in six files; the copy, one line copied from earlier code; and the tests, green on 14. Three dashed terracotta arrows are things not in the source that a reviewer can't see: the origin, a squash commit called misc fixes; the reason, the test arm of an experiment; and still decided, the experiment ended in May 2024.

One of the creators of Unix described a much more sinister version of this in 1984, and drew a lesson from it that still holds.

The cutest program

Ken Thompson's "Reflections on Trusting Trust" is the lecture Thompson gave on receiving the ACM Turing Award, published in Communications of the ACM in August 1984. The quotations here are from a PDF of that published lecture. Thompson introduces it modestly: "I would like to present to you the cutest program I ever wrote. I will do this in three stages and try to bring it together at the end."

Stage I is a programmer's puzzle: write a program that, "when compiled and executed, will produce as output an exact copy of its source." Thompson notes two properties of the answer that matter later: such a program "can be easily written by another program," and it "can contain an arbitrary amount of excess baggage that will be reproduced along with the main algorithm."

Tell it once

Stage II is about how a compiler learns. The C compiler is written in C, and the code that handles escape sequences "knows" what character a newline is. "The act of knowing then allows it to recompile itself, thus perpetuating the knowledge."

Thompson's example is adding \v for the vertical tab. The compiler doesn't know \v yet, so the first version of the change has to spell out the character code, 11, from an ASCII chart. Once that version is compiled and installed, the compiler knows, and the source can be rewritten in the portable form that never mentions 11. "This is a deep concept. It is as close to a 'learning' program as I have seen. You simply tell it once, then you can use this self-referencing definition."

No trace in source anywhere

Stage III puts the two together. Thompson modifies the compiler to "deliberately miscompile source whenever a particular pattern is matched." The pattern he describes matches the UNIX login command, so that it "would accept either the intended encrypted password or a particular known password." On its own, that wouldn't last: "Even the most casual perusal of the source of the C compiler would raise suspicions."

So a second Trojan horse is added, aimed at the compiler itself, which reinserts both into any new compiler it builds. After one learning pass, "we can now remove the bugs from the source of the compiler and the new binary will reinsert the bugs whenever it is compiled. Of course, the login command will remain bugged with no trace in source anywhere."

The moral, in Thompson's words: "You can't trust code that you did not totally create yourself. (Especially code from companies that employ people like me.) No amount of source-level verification or scrutiny will protect you from using untrusted code." Thompson adds that the compiler was only an example: "I could have picked on any program-handling program such as an assembler, a loader, or even hardware microcode." And "as the level of program gets lower, these bugs will be harder and harder to detect."

Knowledge without a source

The mapping that follows is ours, not Thompson's. The lecture is about a deliberate attack on a compiler, and nobody in the trial story did anything malicious. A coding agent copying a constant is not a Trojan horse. But the shape of Stage II fits the blame output closely.

Coding agents learn from the code in front of them. That is usually right: matching existing code is how a change fits in. It also means a rule, once it is in the code, gets told once and then used, the way the compiler used its self-referencing definition. Each agent commit in the blame cites earlier code as its reason: "copy trial length from trial.ts," "match web TRIAL_DAYS." By the fifth copy, the 14 has a long history in the code and no reason anywhere in it. The knowledge perpetuated itself. Where it came from didn't.

That is where Thompson's moral lands for a product team, in our reading. Code review is source-level scrutiny. A reviewer reading the paywall diff sees one line that matches the web app, with green tests. Nothing in the source can show that the number was the test arm of an experiment that ended nearly two years before the line was written. The reviewer isn't careless. The thing that would make the change wrong was never in the source, so no amount of reading the source finds it.

The line printed under the lecture's title puts it this way: "Perhaps it is more important to trust the people who wrote the software." Dana, who wrote the first line, knew why the trial was 14 days. The agents that wrote the lines since didn't, and nothing they could read told them.

Our essay on the modern product development lifecycle says that "Material decisions go to a named owner, routine ones stay with the team." Trial length is a material decision: it sets when customers are first charged. In the blame output, nobody owns it. It is a number the code taught itself.

Where Brief fits: giving the code's rules a source

Brief is the product strategy agent. The homepage says it "captures decisions where they happen, connects them into one graph, and acts on them." In Thompson's terms, it doesn't verify the code or make review unnecessary. It keeps the thing the source can't hold: whether a rule in the code was decided, by whom, and why.

The decision is recorded with its reason. In the Brief app, recording a decision requires both What was decided? and Why? before Record Decision will save it, and a decision can also carry Tags and a Re-evaluate when condition. "New trials are 14 days during the trial-length experiment, to compare paid conversion against 30 days," with a Re-evaluate when of "the trial-length experiment ends," would have made the first line's reason, and its expiry, something an agent could find.

Decisions are read from where they were made. The experiment was set up in a growth meeting, and its results were discussed after it ended. The homepage says Brief "reads decisions from Slack, Jira, Confluence, and GitLab, self-hosted included." A rule set in a thread or a ticket doesn't have to survive only as a constant in a squashed commit.

Agents check before they copy. Coding agents set up with Brief search the recorded decisions before they start work, and ask Brief to check significant changes with brief_ask in check mode, which compares a planned change against existing decisions and flags conflicts. An agent setting the Team plan's trial can meet the decision behind 14 days, and its Re-evaluate when condition, before it copies the number again. People can run the same check with brief ask --mode check.

An unexplained rule gets an owner. When the trail ends at "misc fixes," the question goes to a person. In the app, Propose turns an open question into a pending decision and can name Who should decide?, which records who the question belongs to. With the user's approval, an agent can record a pending decision too, and agents can call brief_list_pending_decisions to see what is waiting. When a decision is pending, an agent can hold. The homepage shows an agent asked to add per-seat pricing to the checkout API learning that D-241, the seat-based pricing decision, is pending, and replying: "Holding the pricing change until D-241 is decided."

The rule keeps its history. When the team settles trial length, the decision keeps its Why?, and when a decision changes, its History shows its status changes. The next agent copies from a decision, not just from the line above.

None of this protects anyone from a Trojan horse, and it doesn't make code trustworthy. Brief can only check against decisions it has. Where a rule was never captured, there is nothing for it to flag. What Brief changes is how many of the rules your agents learn from the code have a source somewhere outside it.

Thompson wrote that no amount of source-level verification or scrutiny will protect you from using untrusted code. Your agents now learn most of what they do from your code. How much of what they've learned was ever decided?

Objections

Objection 1

What is "Reflections on Trusting Trust"?

"Reflections on Trusting Trust" is Ken Thompson's Turing Award lecture, published in Communications of the ACM in August 1984. It shows in three stages how a C compiler could be modified to insert a Trojan horse into the UNIX login command and into future versions of itself, leaving "no trace in source anywhere."

Objection 2

What is the moral of "Reflections on Trusting Trust"?

Thompson wrote: "You can't trust code that you did not totally create yourself." And: "No amount of source-level verification or scrutiny will protect you from using untrusted code." Thompson picked the C compiler but wrote that the same attack could target "any program-handling program," and that such bugs get harder to detect as the level of program gets lower.

Objection 3

What did Thompson mean by a compiler that learns?

In Stage II, Thompson adds the \v escape sequence to the C compiler. The first version has to spell out the character code, 11. Once that compiler is installed, it "knows" what \v means, and the source can drop the 11. "You simply tell it once, then you can use this self-referencing definition."

Objection 4

How does "Reflections on Trusting Trust" apply to AI coding agents?

Coding agents learn from the code around them, so a rule copied from existing code can keep spreading after its reason is gone. In our reading, code review is source-level scrutiny, and it can't show whether a copied rule was ever decided or is still current. There's no malice involved, unlike Thompson's example, but the reason is just as absent from the source.

Objection 5

How does Brief help teams whose agents learn from their code?

Brief records product decisions with their reasons and an optional Re-evaluate when condition, and reads decisions from Slack, Jira, Confluence and GitLab. Coding agents set up with Brief search recorded decisions before they start work and use check mode to flag conflicts in significant changes, and unexplained rules can be proposed as pending decisions that name who should decide. Brief can only check against decisions it has, so where a rule was never captured, there is nothing for it to flag.


Previously
No. 126

Waterfall

Agents build from the design that was written down. The rest of the design is still in a meeting.