Dev.to AI πŸ€– Ai πŸ‘ 2 πŸ“– 5 min read

Vibe Engineering with Kiro: Building Continuous Evidence for Kiroween 2026

This post was written as part of the Kiroween 2026 hackathon. Continuous Evidence is my submission in the Frankenstein category. The problem: green checks, unproven behavior With AI in my workflow, I now shi

This post was written as part of the Kiroween 2026 hackathon. Continuous Evidence is my submission in the Frankenstein category.

The problem: green checks, unproven behavior

With AI in my workflow, I now ship three to five pull requests a day at work. Most of them pass CI. Some of them still break something, because the tests mock exactly the part that changed, and nobody opened the app to look. Usually that's me forgetting, or me juggling another task in parallel.

Running an AI agent on every pull request would fix part of that, but it costs money, adds latency, and re-verifies changes that the tests already cover well.

So I built Continuous Evidence (CE). It asks one question first: does this Change actually need runtime proof? Only if the answer is yes does it open the app in a real Chromium browser, try the behavior, and save what it saw: screenshots, a step timeline, and an offline HTML report.

How CE works in 30 seconds

CE reads what already describes a Change: the diff, the PR text, commit messages, and JUnit results. A hosted classifier (Jev) answers small, bounded questions with probabilities, like "is this sentence a behavior Claim?" or "do existing Checks already cover it?". Jev never writes text and never decides the result. Plain, deterministic code combines those probabilities and resolves exactly one Outcome:

Outcome Meaning
SKIPPED Existing Checks are enough. No browser opened.
EVIDENCED CE drove the browser and produced Evidence.
UNSUPPORTED Proof is needed, but CE has no capability for that surface.
ERROR A stage failed.

That's the Frankenstein part: Playwright, a probability classifier, a deterministic resolver no model can overrule, a GitHub Action, and an npm CLI, stitched into one tool.

How I used Kiro

The repo history starts on 24 November 2026. CE is a new project, built inside the submission period. Kiro was the executor for roughly 80% of the implementation, by my own estimate. I used Claude Code for issue triage and for reviewing specs before approving them.

1. Spec-driven development: 17 specs

Every feature started as a GitHub issue and became a folder in .kiro/specs/ with requirements.md, design.md and tasks.md. There are 17 of them.

The part I liked most is how design.md turns requirements into numbered correctness properties. From the outcome-resolver spec:

### Property 3: A Stage_Error always wins (ERROR precedence)

*For any* `ResolveInput` that has an `error`, regardless of the values of
`assessment`, `runtime` and `supportedSurfaces`, `resolveOutcome` SHALL
return the Outcome `ERROR` ...

**Validates: Requirements 2.1, 2.3, 2.5**

Each requirements doc also opens with a "Facts verified in the code" list: what the source actually looked like before Kiro changed anything. That one habit stopped a lot of hallucinated assumptions.

I started calling this vibe engineering instead of vibe coding. With requirements, a design, and a task list, I'm no longer just writing code with AI help. I'm assembling engineering decisions with AI help.

2. Steering docs: the shared brain

Five files in .kiro/steering/, four with inclusion: always:

  • product.md: what CE is and is not, the six core terms, the four Outcomes
  • tech.md: the stack and the rule "Jev chooses among options, it never generates text"
  • structure.md: placement rules, e.g. the Outcome is decided only in outcome/resolve.ts
  • jev-gateway-decision.md: a decision recorded from a spike
  • workflow.md: commands, test conventions, which skill to use for what

product.md made the biggest difference. Kiro always knew what we were building, without me re-tagging the same files or burning context on repeated searches.

I didn't trust steering alone for the most important rules, though. Two placement rules from structure.md are also enforced by architecture tests. If any file other than resolve.ts returns an Outcome literal, the build fails. Steering says it; a test guarantees it.

3. Agent hooks: guardrails for the agent

Two hooks in .kiro/hooks/:

Typecheck and test on save. On PostFileSave for TypeScript under packages/, run npm run typecheck, then npm test, and report the failing file or test.

SPEC conformance review. On Stop, if code changed, extract every MUST / MUST NOT line from SPEC.md and compare it to the diff:

{
  "name": "SPEC conformance review",
  "trigger": "Stop",
  "action": {
    "type": "agent",
    "prompt": "... Read SPEC.md and extract every line that contains the capitalized keyword MUST or MUST NOT ... For each conflict, report the SPEC.md section number, the quoted requirement, the file path, and the line range ... Report findings only. Do not edit any file."
  }
}

The first hook means Kiro can't say "task done" before the typecheck and tests have actually run. The second keeps the agent from over-engineering: it can't quietly drift away from SPEC.md, the rules of v0.

4. Property-based testing: 129 files

Because the specs already stated invariants, property tests were the natural next step. CE has 129 *.property.test.ts files using fast-check, covering 220 numbered properties across 15 specs: the four Outcomes, exit codes, secret redaction, the bundle schema, and the bounded browser loop.

"Exactly one Outcome for any input" is something example-based unit tests can't really show. A generator throwing hundreds of random inputs at it can.

5. MCP, IDE and CLI

Playwright MCP is configured in .kiro/settings/mcp.json to inspect the demo app from inside Kiro, and I used it in the early Jev spike.

I used both Kiro IDE and Kiro CLI. I didn't notice a big difference in results. When my machine was busy running other work projects, I switched to the CLI to keep CPU load down. Both read the same .kiro/ folder, so specs, steering, hooks and skills apply in either one.

What didn't go to plan

A spec I abandoned. vercel-ai-gateway-jev-provider stopped at 21 of 59 tasks. A spike showed a hybrid gateway was the better path, and that decision became a steering file instead of a shipped feature. Specs were a baseline, not a contract. When the code needed to depart from a spec, I wrote an ADR (there are 11).

Honest numbers. I can't point to a specific bug that a hook or a property test caught that unit tests would have missed. The repo doesn't record one, so I won't claim one. What the hooks changed was the process: no "done" without green checks, no silent SPEC violations.

CE's own limits. The public sample report is a recorded replay. Whether CE is selective enough on real-world pull requests is not demonstrated yet, and my early measurements point the other way. That's the next thing to fix.

What's next

CE v0.1.1 is on npm and works as a GitHub Action, with one runtime surface (browser_ui). Next up: measure selectivity on real pull requests, and add more surfaces than the browser.

The biggest lesson from Kiro wasn't speed. It was that writing the spec, the steering and the hooks first turned "AI writes code" into an engineering process I could actually review.

If you want to try it:

npm i -D continuous-evidence
npx ce init
npx playwright install chromium
npx ce run

Repo: github.com/rfxlamia/ce. Feedback and issues welcome. πŸŽƒ

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.