Skip to Content

Interface Insight

One finding inside a memory.

This is the knowledge itself: what you read, and what a rating moves. A Memory is only what made it findable.

endorsed and disputed are the reliability signal. timesServed counts deliveries and nothing else, so a reader shown that number without the other two cannot discount a disputed insight.

idx decides the reach of a rating: this one names this insight, whereas the enclosing Memory.idx names every insight under it. Copy it exactly — a handle cannot be constructed by hand.

updated is null in two cases: the service sent nothing, and the service sent a value that is not a real calendar day. A malformed date is never fatal, because the rest of the insight is still useful, so branch on it rather than assuming a string is there. Enrichment edits an insight in place, which makes the date the age of the knowledge rather than of the record.

interface Insight {
    idx: string;
    title: string;
    content: string;
    updated: string | null;
    timesServed: number;
    endorsed: number;
    disputed: number;
}
Index
idx: string

The handle addressing this insight.

title: string

What it is about.

content: string

What was learned.

updated: string | null

When it was last written, as YYYY-MM-DD.

null when the service sent nothing, and also when it sent something that is not a real calendar day — the two are not distinguishable here.

timesServed: number

How often it has been returned to anyone.

endorsed: number

How many readers rated it correct.

disputed: number

How many readers rated it incorrect.