feat: HN ledger stores submission date (hn-date) #108
No reviewers
Labels
No labels
Agent
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
joshtronic/igor!108
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/hn-submission-date"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Third annotation on HN's ledger: hn-date YYYY-MM-DD, derived
from Algolia's created_at_i (HN submission time). Immutable --
set on first append, never updated.
Algolia's per-hit JSON already includes created_at_i so this is
a free add -- one more field in the jq projection, one more
column in the rank|points|date|url pipe-format, one optional
suffix on the annotation string.
epoch_to_date helper tries GNU
date -d @Nfirst (Debian, whereIgor actually runs) then BSD
date -r N(local dev portability).Falls back to empty if neither works; the annotation just gets
omitted in that case rather than breaking the read.
What it buys today: metadata when eyeballing the ledger. "Is this
URL from yesterday or from 2024?" answerable at a glance.
What it leaves room for tomorrow: optional decay-by-age in the
picker. Current sort stays
points DESC, rank ASC-- if welater want to fold age into the score (recent bangers above
ancient bangers when peaks match), the data's already there.
Brain surgery commit (back-fill hn-date on existing entries via
Algolia URL lookup) goes separately into the brain repo.
Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com