Inspiration
It started with one question: what aired on TV the day you were born? Mine is June 26, 1996.
Retro-TV sites let you surf the vibe of an era — nothing brings back the exact day, with evidence. Meanwhile AI made recreating the past cheap, and fluent lying the default. So I inverted it: a time machine where the AI is on a leash. It may restyle history; it may never invent it.
Television was the medium because you don't read TV — you live inside it. The CRT glow, the tuning static, the anchor's cadence. For Kiroween, that's resurrection: a dead medium brought back, with its ghosts honestly labeled.
What it does
THE TIME SET is a historical television simulator. Spin the TIME DIAL to any date between 1940 and 2025, power on a CRT, and watch that day's recreated broadcast.
- Cold open, news stories with source chyrons, weather desk, anniversaries framed "through the annals of {date}", sign-off
- Coverage gate: ≥4 year-matched events → full news; fewer → an honest quiet day; pre-1940 → no weather (ERA5 starts 1940); future dates refused
- Live or curated: four pre-validated seed dates render instantly; every other date generates live (~10–20 s, presented as TUNING static)
- Traceability everywhere: GROUNDED % badge, validation report, SOURCES panel with evidence text, URLs, and license notes (Wikipedia CC BY-SA 4.0; weather = ERA5/ERA5-Land reanalysis, always labeled)
- Refusal is a feature: unsupported details never air — they appear as editorial notes: "We don't have sufficient evidence to report that detail."
How we built it
Built with Kiro on the free tier (~50 credits, three specs):
- Spec 001 — Data Foundation (native spec mode,
.kiro/specs/001-*): deterministic fact-card pipeline — Wikipedia On-This-Day + Open-Meteo ERA5 weather, coverage gating, committed seed fixtures. No LLM in this layer. - Spec 002 — Script Engine + Grounding Validator (chat mode, documented retroactively and labeled as such): Groq client (
openai/gpt-oss-20b), prompt contract, and a deterministic validator — it extracts numbers, dates, proper nouns, and quotes from every line and requires each token to appear in the evidence of the referenced fact cards. Casualty figures, invented quotes, and reaction phrasing are rejected outright. Rejected lines get one regeneration with the validator's feedback, then a refusal substitution. A negative-test fixture proves it rejects a fabricated "50,000 casualties" line. - Spec 003 — CRT Interface (chat mode): wooden cabinet, scanlines, phosphor glow, power-on sequence, TUNING static, ticker, chyrons, editorial-note cards, time-dial home, SIGNAL LOST states — all pure CSS/SVG, zero assets, zero UI dependencies.
- Agent hook:
.kiro/hooks/grounding-validator.json— a PostFileSave hook auditing every saved script against its fact cards, read-only. - Steering docs: the grounding policy, anchor tone, and CRT design system live in
.kiro/steering/so every session builds inside one contract. - Spec-driven vs vibe coding: the validator exists because it was specced first. As a vibe it would have been "an LLM checking another LLM" — which the policy forbids. Specs also made debugging surgical (see Challenges).
- Testing: deterministic validator + negative fixture + live end-to-end proof (
/api/script/2001-05-04→ 7/7 lines supported,support_rate: 1.0,_source: "live") + a full deployed-URL scenario sweep. - Stack: Next.js 15.1.9 · React 19 · TypeScript · Tailwind · Groq · Vercel. Supabase was scoped (schema in
supabase/migrations/) and deliberately deferred. - Disclosure: two fail-soft cache guards for Vercel's read-only filesystem were authored outside Kiro after credits ran out (labeled in-file and in commits). Every functional component — pipeline, engine, validator, APIs, hook, UI — is Kiro's.
Challenges we ran into
- The wall of refusals. First live run: 4 of 5 lines were honest refusals. Root cause from raw JSON: the validator treated the broadcast date itself (weekday, month, year) as an unverifiable historical claim. Fixed with a UTC-safe target-date token whitelist. The safety net needed calibration — not removal.
- The floor moved mid-hackathon. Groq shut down
llama-3.3-70b-versatile(Aug 2026) — migrated toopenai/gpt-oss-20bvia env config, no code churn. - A CVSS 10.0 blocked my deploy. Vercel flagged Next.js 15.1.3 for CVE-2025-66478 (React2Shell). Bumped to 15.1.9 per the advisory — the platform's security scanner caught what I didn't know I had.
- Serverless filesystems are read-only. Cache-directory creation crashed live-date requests on Vercel → fail-soft guards (disclosed above).
- Anniversary feeds span years. A 1998 birth on a 1997 broadcast would be fake news — permanent framing rule: "through the annals of {Month Day} through history."
- 50 credits, one evening. Every prompt had to be surgical — which taught spec-driven development better than any tutorial.
Accomplishments that we're proud of
- A truly deterministic validator — no LLM judging an LLM — with a negative-test fixture that proves it rejects a fabricated casualty figure.
- Live end-to-end proof: any arbitrary date → 7/7 lines supported,
support_rate: 1.0,_source: "live". - Refusal designed as a feature: amber editorial notes and a GROUNDED % badge, always on screen.
- Zero fabricated content reached air in every test we ran.
- A complete CRT experience in pure CSS/SVG — no images, no fonts, no UI dependencies.
- Shipped under real constraints: a deprecated model, a security block, and a 50-credit budget — and it's live on the internet.
What we learned
- Spec-first beats vibe-coding when correctness is the product. The grounding contract held because it was written down — requirements, design, tasks — not because a prompt was clever.
- Deterministic checks beat AI self-review for trust-critical claims.
- Agentic development means iterating under constraints: model deprecations, platform security blocks, credit budgets. The commit history tells the truth — and that's fine.
- Honesty photographs well. Showing the refusal was more convincing than hiding it. "Grounded Fiction. Honestly Labeled." applies to the submission itself.
What's next for THE TIME SET
- Supabase persistence — schema is ready in the repo: stored broadcasts, share short-codes (
/w/{code}), fact-check logs. - The living room + audio — the CRT inside a rendered room, with Web Audio-synthesized jingles (zero copyrighted assets).
- Shareable broadcast cards — the birthday hook: "here's what aired the day you were born."
- Tier-A sources — Library of Congress, NARA, Wikidata for deeper provenance.
- More cities, more eras — Surat first; period-authentic commercial breaks with fictional brands only.
- Future specs end-to-end in Kiro's spec mode, with agent hooks extended to the fact-card layer.
Built With
- api
- css
- groq
- kiro
- next.js
- open-meteo
- react
- talwind
- typescript
- vercel
- wikipedia