Engineering
Trail vs library
Why knowledge management keeps failing - and what actually works.
Every engineering team has the same story. Someone leaves, critical knowledge walks out the door, the team scrambles to write documentation. A wiki gets created. For two weeks people contribute. Then it decays. Six months later the wiki is a graveyard of outdated pages nobody trusts.
The problem was never capture. It was retrieval.
There are two fundamentally different approaches to organizational knowledge. One gets worse over time, the other gets better. Most teams are investing in the wrong one.
01The library model
The traditional approach treats knowledge like a library: write it down, organize it, maintain it. Wiki pages. Databases of notes. Architecture decision records. Onboarding guides. "How we do things" documents.
The library model sounds right. It feels responsible. It is also doomed.
The lifecycle of a knowledge base
- Week 0 - someone leaves. Panic. Write docs.
- Week 2 - contributions slow.
- Month 1 - pages go stale.
- Month 3 - nobody trusts it.
- Month 6 - graveyard.
- Year 1 - a new initiative is proposed to fix it.
The library fails because it is a second-order activity. It sits outside the work, is written after the fact and is maintained by discipline that fades. Nobody wakes up excited to update the wiki, and the docs are always one refactor behind reality.
You have seen this before
- The architecture doc describing a system from two versions ago
- The onboarding guide telling new hires to install a tool the team stopped using
- The "API overview" page three people bookmarked and nobody updated
- The runbook that is technically correct and missing the one step that actually matters
The library decays because maintaining it is nobody's real job. And the moment it becomes someone's real job, that person is no longer doing the work that generates the knowledge worth capturing.
02The trail model
The trail model flips it. Instead of building a separate knowledge base, you treat the primary artefacts of the work as the knowledge base.
Commit messages. Pull request descriptions. Code review comments. Chat threads linked to tickets. Design decision threads. Post-mortems in the issue tracker. These are not inputs to a knowledge base. They are the knowledge base.
Library
- Written after the work is done
- Separate from where decisions happen
- Needs ongoing maintenance
- Decays as the code evolves
- Gets worse over time
Trail
- Created during the work itself
- Lives where decisions actually happen
- Zero maintenance cost
- Grows richer with every commit and review
- Gets better over time as retrieval improves
The "why" behind every decision was already being captured - in PR descriptions, commit messages, review threads. The knowledge was always there. The problem was that no human could sift through three years of comments to find the one explaining why the auth middleware works the way it does.
AI can. Instantly.
03What this looks like in practice
Same question, two approaches, very different outcomes.
1Why does billing retry a failed charge three times?
What the library says
The billing service retries failed charges three times.
What the trail says
PR #847 (March 2024) changed retry from 1 to 3. The description says: "Webhook delivery can lag during peak hours. A single retry was causing 12% false churn. Support flagged 23 tickets in February from users whose cards were valid but whose charge failed on the first attempt." Approved with the note: "match this with the grace period change in PR #852."
The library states the what. The trail carries the why, the evidence and the follow-up.
2Why SQLite instead of Postgres for the license service?
What the library says
The license service uses SQLite for storage.
What the trail says
Decision made in commit a3f8c2e (Jan 2025): "SQLite for the license service - single-node deployment, read-heavy workload, no operational database to run." Follow-up in PR #1204: "added WAL mode after noticing occasional lock contention during batch validation."
The trail carries the decision, the reasoning, the constraint and how it evolved.
Nobody had to write a document. They only had to explain their thinking while doing the work.
The work was the documentation. It always was.
04Where the trail breaks
The trail is not perfect. It has one critical weakness: boundary crossings. Inside each phase of work - client conversations, architecture, development, operations - the trail is rich. Knowledge fails at the handoff.
What the customer said
- "We need the export to run nightly because our compliance team reviews it every morning at 8am"
- "We use event sourcing here because the audit trail is a legal requirement and we need to reconstruct state at any point in time"
What the ticket said
- "Add nightly export job"
- "Implement event sourcing for the transaction service"
The "because" did not cross the boundary. Two years later someone asks why, and nobody remembers.
Fixes that cost almost nothing
- Link the ticket to the source conversation - paste the thread or email that triggered the request
- Quote the customer's reasoning in the operations item, not just in the feature request
- Use PR templates that ask "why this change?", not only "what changed?"
- When a decision is made on a call, drop a one-line summary into the ticket before you forget
Each of these takes thirty seconds. None of them is documentation. They are just doing the work slightly more deliberately.
05Why the trail gets better over time
Here is the key asymmetry. The library gets worse over time because it decays. The trail gets better over time because retrieval improves.
A PR description written in 2022 is as accurate today as the day it was written. It described a specific change at a specific time. It cannot become outdated, because it never claimed to describe the present - it described a moment. The code may have changed since; the reasoning is permanent.
Once artefacts are linked - customer email to chat thread to ticket to PR to review comment to commit - they form a graph you can traverse. No curated library is needed to navigate it: the answer is reconstructed from source every time.
The library demands ongoing investment just to stay flat. The trail demands nothing and compounds.
06One person's knowledge versus everyone's trail
A solo operator carries the knowledge of one person: their biases, their blind spots, their experience. When they leave, they take everything.
A team with a rich trail carries the decisions of many - different perspectives, different scars, different judgement applied across years. An AI with access to that trail can reconstruct the collective reasoning of everyone who ever contributed, not just one person's view.
Someone joining no longer needs months to absorb tribal knowledge. They ask a question, the trail surfaces the answer, and in minutes they understand not just what the system does but why it does it that way, who decided and what constraints shaped the choice.
07Stop documenting. Start explaining.
The action items are small. They are free. And they compound forever.
Stop doing
- Writing wiki pages nobody will update
- Maintaining architecture diagrams that are always behind
- Launching "knowledge base" initiatives
- Assigning someone to own documentation
Start doing
- Writing commit messages that explain why, not what
- Adding a "context" section to the PR template
- Pasting the conversation link into the ticket
- Quoting the customer when filing a feature request
None of these feel like documentation. That is the point. The moment you separate knowledge capture from the work, you have created a second-order activity that will eventually be abandoned.
The work is the documentation. Make the work richer and let AI do the retrieval.
Build systems that compound
Every product here shares infrastructure, decisions and patterns. The trail of one product enriches all the others - and the next one starts further ahead.
Essay
AI isn't replacing you - it's revealing your standard
When someone says "AI will replace developers", that is not a prediction. It is a confession about their quality bar.
Framework
Your kids will pay to think
The next literacy divide is not whether you use AI. It is whether you can steer it past the obvious.