DEV Community

Ghost Line: bringing back the 1980s green screen for IT outages, built spec-first with Kiro

This post is written as part of the Kiroween 2026 hackathon (Resurrection category).

The problem: when the cloud goes dark

I have spent years running IT operations for multi-site venues and offices: one manager, many engineers on rotating shifts, and a ticketing system in the cloud.

The worst moment in an outage is when the internet uplink goes down and takes the ticketing tool and team chat with it. Local Wi-Fi usually still works. But nobody can see who owns what. People shout across the room, two engineers fix the same switch, a task gets forgotten, and at shift change nobody is sure what is still open.

In the 1980s, a dial-up bulletin board on a green screen solved this kind of coordination with almost nothing. So for Kiroween's Resurrection category I brought it back for one job: keeping an incident board alive when the cloud goes dark.

What Ghost Line does

One laptop runs Ghost Line on the local network. Everyone else opens it in a browser: no internet, no install, no login.

  • POST updates to a shared timeline that appears live on every screen (Server-Sent Events).
  • Mark any update as a TASK. Anyone can CLAIM an open task, and the task then has exactly one owner. If two people claim at the same moment, the first one wins and the other sees already claimed by <owner>.
  • Only the owner can RESOLVE a task, with a closing note.
  • At shift change, one Manager (set when the server starts) can ASSIGN any open task, or reassign a claimed one, to the next engineer.
  • A summary line, 2 total Β· 0 OPEN Β· 1 CLAIMED Β· 1 RESOLVED, with unfinished work sorted to the top, tells the Manager at a glance that no task is left OPEN.
  • Every update goes to an append-only log file. A restart replays it, and a half-written last line after a crash or power cut is skipped instead of blocking startup.

Like the ticketing tools it stands in for, nothing is ever erased: corrections are new posts, and after recovery the log can go into the real incident ticket.

How I built it: spec first, in Kiro

I built Ghost Line entirely in the Kiro IDE, and the spec workflow changed how I worked.

  1. Requirements before code

    In Spec mode, Kiro wrote 28 requirements in EARS style ("WHEN a claim is accepted, THE server SHALL…") with acceptance criteria, before any code existed. I reviewed each phase before approving it, and pushed back where it mattered.

    For example, the first draft made the server refuse to start if the data file had a damaged line. In a real outage that would take the board down exactly when it is needed. Kiro changed the rule: skip only a torn last line with a warning, and fail only if damage is earlier in the file.

  2. A design that makes the rules easy to prove

    Kiro's design routes every action (post, claim, resolve, assign) through one append queue. Sequence numbers can't collide, a rejected action leaves no trace, and task state is always derived from the timeline instead of being stored separately.

  3. Small tasks with checkpoints

    The design became 140 small tasks with checkpoints. At each checkpoint I tested by hand: two browsers on the LAN, then three browsers playing Manager, day shift and night shift.

  4. Changing the spec, not just the code

    Halfway through, I realized the real scenario needed a Manager who reassigns open work at shift change. Instead of hacking it in, I asked Kiro to update the spec. It added Milestone 3, marked every earlier criterion it changed as "Amended in Milestone 3", then generated new tasks. The existing property tests immediately exercised every interaction between ASSIGN and CLAIM/RESOLVE.

Property-based tests that earned their keep

Kiro wrote fast-check properties traced back to the requirements, 100 to 150 generated cases each. They prove the rules that matter at 3 a.m.:

  • a task never has two owners, even with simultaneous claims and reassignments;
  • only the Manager can assign;
  • after an ASSIGN, the assignee owns the task;
  • a rejected action changes nothing, down to the bytes of the data file;
  • restarts and torn writes lose nothing.

They found real edge cases, such as a log file cut inside a multibyte character. And the one time I skipped an optional rendering property, a real bug slipped through. Adding that property caught it, and it stays in the suite.

The project ends with 51 passing tests.

Steering and hooks: the project's memory

The strangest bug: one client file came out with every ${...} placeholder stripped, so owners' names vanished from the screen. The cause was a source file written through a PowerShell double-quoted string, which expands $ and backtick escapes.

After fixing it, I added a rule to Kiro's steering file tech.md: never write source files through shell strings; always use the file-edit tool. Every later session followed it.

I also added an agent hook that runs npm test whenever a test file is saved and reports failures without touching code. One lesson: during a big build every save started another agent run and queued up my main request, so I now switch the hook off during large builds and back on afterwards.

Try it

What I learned

Writing the spec first felt slower for the first hour and much faster for every hour after that, especially when requirements changed. Property-based tests found bugs I would never have written tests for. And a steering file is the cheapest bug fix there is: write the lesson down once, and every future session follows it.

The green screen is back. It just needed a spec.

Built for Kiroween 2026 with Kiro.

Read on DEV Community ↗ ← Back to News

Comments

No comments yet. Start the discussion.