Inspiration

The idea came from a simple observation about spec-driven development: we ask Kiro to write requirements, a design, and a task list for every feature — but nothing checks the checker. A change can be "done" while its tasks.md still has open boxes, or its design.md never existed.

So this project builds a tiny verification crew with a skeleton staff of one: a single free-tier cloud machine that sleeps almost all the time. A Kiro steering document and two Kiro specs direct a local orchestrator that wakes the machine, ships it a payload, collects a verdict, and suspends it again. Two apps share that one foundation — a PR Test Runner and a Pre-merge Spec Checker — because a crew this small has to multitask. The most satisfying part: the Spec Checker validates Kiro specs, including this repository's own. The specs check themselves.

What it does

The orchestrator (validator/run_validation.py) runs one disciplined cycle — resume → run in a fresh directory → write a Markdown report → suspend — with the suspend in a finally block, so a failed run never leaves the free-tier machine awake. Nothing is trusted between runs; every run starts from a clean directory on the machine's disk.

  • PR Test Runner — give it a repository snapshot (local path or git URL) and it runs the test suite on the validator machine. It detects the runner: pytest projects run under pytest, everything else under the Python standard library's unittest. If a pytest project lands on a machine with no pytest, the payload bootstraps an isolated copy into that run's own directory (pip --target, never system-wide) — and if even that fails, it says so in the report and falls back honestly instead of faking a pass.
  • Pre-merge Spec Checker — give it a checkout and it verifies every feature under .kiro/specs/: requirements.md, design.md and tasks.md must exist and be non-empty, and it counts checked vs. unchecked tasks, naming each open item. It exits non-zero when any feature is incomplete, so it can gate a merge.

Both apps were exercised end-to-end on the real machine in a single trip (report 20261129-081936.md): two sample suites (one passing, one failing on purpose), a spec-check fixture with known verdicts, a self-check of this repository's own specs, and a real pytest project — all 9 expectations met, machine suspended afterwards.

How it was built

  • Kiro steering (.kiro/steering/validator.md) is always in context and encodes the machine's constraints as rules: one machine, 30-minute auto-pause, verdicts come from process exit codes never from parsing prose, no secrets on the machine, every run writes a report.
  • Two Kiro specs (.kiro/specs/pr-test-runner/, .kiro/specs/pre-merge-spec-checker/), each written the Kiro way: requirements → design → tasks, with tasks checked off as they were implemented (6 of 6 in each spec; one optional task — posting a PR comment — deliberately left open and out of scope).
  • The orchestrator is a single Python file using only the standard library locally. Payloads are shipped to the machine as base64-wrapped scripts over the InstaBox API's exec channel; results come back as machine-readable VALIDATOR_RESULT / CHECK_RESULT lines that the orchestrator parses into the report. A --dry-run mode executes the identical payloads locally, so the whole pipeline can be tested without touching the machine.
  • The machine is an InstaBox free-tier box (4 vCPU / 8 GiB). The API key is held by the API helper's credential store and never appears in the repo; the machine ID is read from an environment variable or a gitignored local file, so the public repo contains no account identifiers.

Challenges

Two real ones, both preserved in the reports rather than papered over:

  1. The machine ceased to exist mid-project. Between Milestone 1 and Milestone 2, the original validator box was deleted and recreated with a different template. The orchestrator's hard-coded machine ID returned 404. The fix — point at the new machine — was trivial; the lesson (don't bake environment identity into source) is why the ID now comes from the environment.
  2. The new template had no pytest. The first Milestone 2 run on the new machine passed 8 of 9 expectations; the real-repo snapshot honestly FAILED (report 20261129-052741.md): the payload detected a pytest project, found no pytest, fell back to unittest, and unittest collected 0 tests from a pytest-style suite. Rather than weaken the test, the payload learned to bootstrap pytest into the run's own isolated directory. The re-run (20261129-081936.md) passed all 9 expectations, with the bootstrap noted in the raw output for anyone to audit.

What's next

  • A third crew member on the same foundation: a docs-freshness checker that fails when a spec's design no longer matches the code it describes.
  • Optional PR-comment posting (the one unchecked task) so verdicts land where reviewers already look.
  • A small queue so several snapshots can share one machine wake-up instead of one trip each.

Built With

Share this project:

Updates

Submission history