package vip.mate.wiki.hotcache; import lombok.Builder; import lombok.Data; import java.time.Instant; import java.util.List; /** * In-memory value object for one hot cache snapshot — four sections plus * an "updated" timestamp that ride together into the agent system prompt. * *
Wire shape on disk is the rendered markdown produced by * {@link #toMarkdown()}; the structured form is preserved here so the * updater LLM can return JSON-shaped sections that are validated, scored, * and rendered uniformly across versions. * *
Example rendering: *
* --- * type: meta * updated: 2026-05-02T08:30:00Z * --- * * ## Last Updated * 2026-05-02 — Ingested 3 papers on RedLock; flagged contradiction with paxos-comparison page * * ## Key Recent Facts * - RedLock has known safety issues under network partition (Kleppmann 2016) * - Internal Redis 7.4 release notes confirm scheduled deprecation in 8.0 * * ## Recent Changes * - Created: [[redlock-safety-analysis]] * - Updated: [[distributed-locks]], [[paxos-comparison]] * * ## Active Threads * - Open question: should we recommend ZooKeeper for new services? **/ @Data @Builder public class HotCacheContent { private Instant updatedAt; /** Single-paragraph "what happened most recently" headline. */ private String lastUpdatedSummary; @Builder.Default private List