"Security risk", "4 broken features" and "Deploy issue" are the TEXT of project
attributes someone — a person or an agent — typed. They reached the list
undated and unattributed, so a note written this morning and one typed in June
looked identical, and both hoisted their project above everything else equally.
THE DATA WAS NEVER MISSING. fetchAttributesByEntityIds does `select()` — it
pulls updatedAt, source and valid_until on every row — and then dropped all
three in its grouping loop, keeping only key → value. Showing them costs no
extra query; the meta variant returns the value too, so getProjects makes the
same single call it always did.
Badges now read "Security risk · 23d", with the exact date and what wrote it in
the tooltip alongside the note itself. Terse where it is scanned, spelled out
where it is read.
VALID_UNTIL IS THE SHARPER ONE. That column has existed on the attributes table
the whole time and NOTHING read it — an author writing "this expires on the
14th" was writing into a field with no consumer. It is honoured now.
That is deliberately NOT auto-decay, which stays George's call: a flag with no
valid_until still stands forever, however old. Inventing a deadline for someone
else's security note would be worse than showing a stale one. And a malformed
valid_until never clears a flag — a typo must not silently resolve a security
issue.
One predicate, three surfaces: the badge, the attention sort and the "Site
issues" chip all call signalHasExpired. It lives in lib/, not beside the badge,
because two of those callers are not React — and because a flag hidden on the
row while still counted by the sort would hoist a project to the top of the
page with nothing on it explaining why.
Guarded by scripts/test/flags-carry-their-age.ts (8 checks), which pins the
policy line as hard as the behaviour: "no expiry means it stands forever" is a
test, so a future change cannot quietly introduce decay. Mutation-tested:
ignoring valid_until fails 2.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>