Interface Reflection

A high-level insight derived from multiple compressed observations. Reflections are the highest tier in the observation hierarchy: raw notes → compressed observations → reflections.

interface Reflection {
    id: string;
    insight: string;
    patternType: ReflectionPatternType;
    confidence: number;
    sourceIds: string[];
    temporal: {
        reflectedAt: number;
        spanStart: number;
        spanEnd: number;
        relativeLabel: string;
    };
}

Properties

id: string

Unique identifier for this reflection.

insight: string

High-level insight text (1-3 sentences).

Pattern type classifier.

confidence: number

Confidence in this reflection (0-1).

sourceIds: string[]

IDs of the source compressed observations.

temporal: {
    reflectedAt: number;
    spanStart: number;
    spanEnd: number;
    relativeLabel: string;
}

Temporal span covered by this reflection.

Type declaration

  • reflectedAt: number

    When this reflection was produced (Unix ms).

  • spanStart: number

    Earliest source timestamp in the compressed observations (Unix ms).

  • spanEnd: number

    Latest source timestamp in the compressed observations (Unix ms).

  • relativeLabel: string

    Human-friendly label for the temporal span.