# LiveKeys

> Data that knows when it needs to be renewed.

Status: Research. We are studying the problem, prior art and risks. Nothing is built.
Roadmap phase 2: Living data and reusable tools. Phases follow dependencies, not dates.

A key with a contract attached: its type, how long a value stays fresh, who may produce it, what evidence it needs and what it depends on.

## Why it matters

A stored value says nothing about whether it is still true. Today the reader has to guess, or check the source again every time. A value that reports its own freshness removes the guess.

## What changes

Readers see the last validated value together with its state: fresh, stale, pending, failed or missing. Owners decide what counts as fresh and who may refresh it.

## How it might work

- Keep retention and freshness apart: a key may live for months and still need checking every hour.
- A plain GET stays a safe read. A separate, explicit refresh operation may start work, and only within the owner's authorization and budget.
- Refresh by hand, on a schedule, when a dependency changes, or on demand. Equal pending requests are merged.
- Report one of: fresh, stale, unresolved, pending, failed, invalidated, expired, with a reason, times, a revision and advice on retrying.
- When no eligible producer is connected, say so. Never imply that work will finish.

## What must be solved

- A contract format small enough to write by hand.
- Limits on deadlines, dependency depth and fan-out, and cycle detection.
- How a consumer learns of a change without constant polling.
- Keeping today's keys exactly as they are for everyone who does not opt in.

## Illustration

- A game studio publishes a release-readiness key built from the build revision, test results, a GPU benchmark and an independent review. A new build marks the dependent results stale. An authorized refresh queues the missing checks, and readers see the last validated value with its state until they finish.

## Built on what exists today

- [Versions and conditional updates](https://setget.net/docs#etag)
- [Expiry](https://setget.net/docs#ttl)
- [Queues](https://setget.net/docs#objects-queues)
- [Leases](https://setget.net/docs#objects-leases)
- [Schedules](https://setget.net/docs#objects-schedules)

## Needs first

- [Core](https://setget.net/frontier/core)

## Related

- [Outcome Keys](https://setget.net/frontier/outcome-keys)
- [Recall](https://setget.net/frontier/recall)
- [Live Dashboards](https://setget.net/frontier/live-dashboards)

Propose a change: https://setget.net/feedback?type=suggestion&vision=livekeys
