Measuring What You Claim¶
Learning objectives
- Why a retrieval system that ranks by relevance alone will confidently serve material that stopped being true
- How to weight results by how much a document should be trusted without letting that weighting run wild
- Why the clock you measure age with is easy to get wrong, and what it costs
- How to read your own evaluation honestly, including when it barely moves
The failure that has no error message¶
A search system returns the most relevant passage. It has no opinion about whether that passage is still true.
So an architecture document that was replaced a year ago keeps answering questions, because it is still an excellent semantic match for the topic it describes. Nothing crashes. Nobody gets an error. The answer is fluent, well-sourced, and wrong — and the only signal that anything happened is a person eventually noticing that the system is quoting something that was retired.
This is the failure mode worth designing against, because it is the one your monitoring cannot see.
Not all documents age the same way¶
The observation that makes this tractable: different kinds of document lose truth at wildly different rates.
A specification is true until something explicitly supersedes it. A project plan written a year ago is roughly half as useful as a fresh one. A log line from three weeks ago is almost never the answer to today's question — but occasionally it is exactly the answer.
That suggests three epistemic classes, each with its own half-life:
| class | what it is | ages |
|---|---|---|
| Authoritative | specifications, signed policy, contracts | not at all — it gets superseded, not weathered |
| Working | plans, reports, notes | slowly, at the speed the subject moves |
| Observational | logs, telemetry, exports | fast — a record of one moment |
A half-life rather than a decay rate, because a half-life is arguable. "This is worth half as much in a year" is a claim a colleague can disagree with. "Decay 0.0019" is not.
The rule that makes it trustworthy¶
Nothing may infer the authoritative class.
It is tempting to detect it — a file called SPECIFICATION.md is probably a
specification. Do not. The moment a filename can confer authority, authority can
be manufactured by naming a file well, and the class stops meaning anything.
Authority is asserted by a person, with a reason, recorded in an audit trail. That is the entire point of the class, and it is the one rule worth being inflexible about.
We learned how load-bearing that rule is by breaking it in the other direction. The first document a human promoted to authoritative lost a live query — it had been automatically flagged as superseded by a similarly-named file before anyone asserted its authority, and the automatic judgement silently halved the human one made later. The detection logic already knew to leave asserted documents alone. The scoring logic did not, and the two disagreed in the direction that discards the person's input.
Weight, do not re-rank¶
The scoring rule matters as much as the classes:
final score = relevance · class weight · decay(age) · supersession penalty
Multiplied, deliberately. The search engine already produced a defensible ordering, and the truth model has no opinion about whether a passage answers the question. Multiplying keeps relevance primary and lets trust move things within it.
A weighting free to reorder arbitrarily is worse than none — it will eventually promote a fresh irrelevant document over a slightly older exact answer, and then nobody will trust the ranking at all.
And nothing reaches zero. A demotion inferred from a filename or a timestamp is a judgement, and judgements are sometimes wrong. A wrong judgement that only reweights is recoverable; a wrong judgement that hides a document is not. Demote, never delete.
The clock is the part everyone gets wrong¶
Here is the mistake worth the price of admission.
The obvious implementation measures age as time since the document entered the system. It is the timestamp you already have, and it is wrong.
A two-year-old specification loaded this morning has a system-age of zero. It scores as though it were written today. Worse: re-loading your corpus resets every document's age and erases the entire signal.
We measured this. The first evaluation of the whole mechanism returned exactly zero improvement — not because the ranking was broken, but because everything had been loaded the same week, so every age was the same and the decay term was identical across every candidate. The mechanism was being asked a question the data could not answer.
"Authored when" has no single answer¶
Fixing it means deciding what age you actually mean, and the candidates disagree:
- File modification time — when the bytes were last written. Copying a file resets it. So does checking it out of version control.
- Version-control history — when it was last committed. But appending one paragraph to an old document creates a new commit without making the content newer.
- The date inside the document — what the author claims about currency. Usually the most honest, and frequently missing.
We found a document whose file timestamp and commit date both said August, while the document's own header said July — the August dates came from a small addition made that day. An edit is not authorship, and any clock based on file activity will keep insisting otherwise.
So: prefer the document's own claim, fall back through metadata and history, and when nothing says anything, record unknown — explicitly.
Unknown is not the same as fresh¶
This is the subtle half. If a document with no date signal is scored as age zero, an undated document outranks a dated current one, and you have rebuilt the original bug inside the fix.
Unknown should carry an assumed middling age: penalise the ignorance, do not bury the document.
And one signal turned out to be a liar¶
A signal that is absent costs nothing — you record unknown and move on. A signal that is wrong is far more dangerous.
We watched a batch of documents with genuine months-old file timestamps all arrive claiming they were written that instant — every one wrong, and all in the same direction: newer. The fix was not to trust it more carefully but to refuse it: a modification time indistinguishable from right now is not reporting authorship, it is reporting the read.
Converting a confident lie into an honest "unknown" is a strict improvement, because the system already knows what to do with unknown.
Reading your own evaluation honestly¶
Once the corpus had real ages, we re-ran the same ten questions:
top-1 accuracy, relevance only: 2/10
top-1 accuracy, with truth weighting: 3/10
rankings changed by weighting: 2
of those: improved 1 degraded 0 neutral 1
One question. That is the whole delta.
Three things worth saying about it, and the order matters:
It is not significant. Ten questions, one question of difference. Describing that as "50% better" would be arithmetically true and rhetorically dishonest.
The baseline is low in both arms. Twenty percent says something about retrieval over a corpus of closely-related documents, and that is a separate problem from whether weighting helps.
"Degraded 0" is the real result. The principal risk of a trust model is that it reorders confidently and wrongly, breaking answers that plain relevance already got right. Across every question where the weighting changed the top result, it never made one worse.
That is the number to lead with, and it is the least exciting one. A technique that helps a little and harms nothing is a technique you can deploy. A technique that helps a lot on average while occasionally destroying a correct answer is not.
The takeaway
Ranking by relevance alone means confidently serving material that stopped being true — a failure with no error message.
Weighting by epistemic class and age fixes it, but only if you get three things right: never infer authority, multiply rather than re-rank, and measure age from when the content was authored rather than when your system happened to receive it.
Then measure it, and report what you find. An honest small result is worth more than a confident claim nobody checked — especially for a system whose entire purpose is preventing confident claims nobody checked.