Beyond Vibe Coding: How I Built an Offline-First Queue Management Platform with Kiro
DEV Community

Beyond Vibe Coding: How I Built an Offline-First Queue Management Platform with Kiro

What happens when an internet connection suddenly disappears at a busy hospital, government service centre, bank or registration facility?

For many digital queue management systems, connectivity is a fundamental dependency. When that connection disappears, staff may struggle to determine who should be served next, visitors lose visibility into their progress, and facilities can fall back to fragmented manual processes.

This was the problem I wanted to address when I started building QueueBridge as part of the Kiroween 2026 Hackathon. QueueBridge is a resilient, accessible and accountable queue-coordination platform designed to help service facilities maintain operational continuity during connectivity interruptions.

However, this article is not just about what QueueBridge does. It is about how using Kiro changed my approach to building a technically complex application.

1. Starting with the problem instead of the code

One of the easiest mistakes to make when developing with AI coding tools is to begin generating code before establishing what the system must guarantee. For QueueBridge, generating a functional interface was not the hardest part. The real challenge was maintaining consistent queue behaviour when different devices could temporarily lose their connection to the server.

I needed to answer several architectural questions before implementation:

  • What happens when two disconnected workstations attempt to advance the same queue?
  • How should locally captured operations be distinguished from server-confirmed operations?
  • What happens when a device reconnects and submits an operation more than once?
  • How can visitors recover their tickets without exposing private credentials?
  • How can supervisors explain priority decisions?
  • How can an auditor verify the integrity of operational history?

These questions made it clear that QueueBridge required more than a conventional CRUD application.

Instead of asking Kiro to immediately generate an entire queue management system, I began by defining the product requirements, architectural constraints and expected system behaviour. This became the foundation for the rest of the project.

2. My journey from Kiro CLI to Kiro IDE

I started developing QueueBridge using Kiro CLI. The initial development phase established the monorepo, application foundations, database schema, shared packages, architectural decisions and persistent engineering guidance. Kiro helped organize the project into distinct responsibilities instead of placing every feature inside a single application.

As development progressed, I transitioned to Kiro IDE. The CLI had been effective for scaffolding and early implementation, but repeatedly approving operations through the terminal interrupted my development workflow. Within Kiro IDE, I configured the approval settings to reduce those interruptions, allowing me to focus more on implementation requirements, architectural decisions and reviewing the resulting work.

Kiro IDE became my primary environment for continued feature development. Together, Kiro CLI and Kiro IDE were responsible for the vast majority of QueueBridge's functional implementation.

3. Spec-driven development: the biggest difference

My favourite aspect of Kiro is its spec-driven development approach. Instead of relying entirely on conversational instructions, I could organize development around three persistent documents:

  • requirements.md - what the system must accomplish.
  • design.md - how the system should accomplish it.
  • tasks.md - the implementation sequence and acceptance criteria.

For QueueBridge, these documents are located in:

.kiro/specs/queuebridge/

This structure helped establish a clear relationship between product requirements, architectural decisions and implementation tasks.

For example, the requirement to continue operating during connectivity interruptions was not treated as a single instruction to "make the application work offline." It became a collection of explicit engineering responsibilities:

  • Persist permitted operations locally.
  • Distinguish provisional operations from confirmed operations.
  • Establish offline coordination authority.
  • Reconcile operations after connectivity returns.
  • Prevent duplicate processing.
  • Detect stale authority.
  • Preserve an auditable operational history.
  • Surface conflicts requiring authorized review.

Breaking the problem into these responsibilities made implementation easier to reason about and gave me specific behaviours to verify.

The distinction is important. An application can appear to work offline without actually guaranteeing the integrity of the operations it captures. Kiro's specification structure helped keep that distinction visible throughout development.

4. Persistent steering documents

Another important part of my workflow was using Kiro's steering documents. QueueBridge contains four persistent steering files:

  • product.md
  • architecture.md
  • security.md
  • testing.md

Each document addresses a different aspect of the project. The product document defines the intended capabilities, user roles and boundaries. The architecture document establishes package responsibilities, system invariants, queue state transitions and failure-handling expectations. The security document defines requirements around authentication, tenant isolation, authorization, private credentials and sensitive operations. The testing document establishes the behaviours that must be verified and the invariants that implementation changes must preserve.

These files became a persistent reference across development sessions. Without this structure, important constraints could become buried in long AI conversations. With steering, the project retained an explicit engineering reference that could survive individual sessions and later development phases.

5. QueueBridge's system architecture

QueueBridge is organized as a TypeScript monorepo with independently defined application and package boundaries. The core technology stack consists of React, Vite, Fastify, PostgreSQL and pnpm.

The architecture includes:

  • apps/
    • web/
    • api/
    • worker/
  • packages/
    • contracts/
    • domain/
    • continuity/
    • channels/
    • ui/

The web application provides visitor, staff, supervisor, auditor and administrative interfaces. The API handles authentication, tenant authorization, queue operations and synchronization. The background worker handles asynchronous responsibilities such as notifications and audit checkpoint processing.

Shared packages separate application contracts, domain rules, continuity logic, communication adapters and accessible UI components. This separation is particularly important for the Continuity Engine because queue rules and offline reconciliation require consistent behaviour across application boundaries.

6. Building the Continuity Engine

The Continuity Engine is one of the most technically important components of QueueBridge. A conventional approach to offline functionality might involve storing failed requests locally and resending them when the network returns. That approach alone is insufficient for a queue management system.

Consider two workstations that become disconnected while serving the same queue. If both independently decide who should be served next, they can create competing operational histories.

QueueBridge addresses this through a designated offline coordinator model. A single authorized device holds the authority to perform permitted offline queue advancement for a queue session. Other devices can capture permitted provisional registrations without claiming globally confirmed queue advancement.

The system also distinguishes local provisional operations from authoritative server-confirmed operations. Conceptually, the recovery process looks like this:

Connectivity interruption
  v
Permitted local operation
  v
Durable provisional record
  v
Connectivity restoration
  v
Server-side validation
  v
Confirmed or review-required outcome

This allows QueueBridge to preserve useful work during an outage without pretending that disconnected devices have perfect knowledge of the global queue state.

The reconciliation process accounts for operation identity, device authority, queue state and previously processed operations. These architectural decisions are documented in the Kiro specifications, steering documents and architecture decision records.

7. Making queue decisions explainable

Operational continuity is only one part of QueueBridge. A queue management system must also help users understand why decisions were made. QueueBridge supports configurable queue policies, priority handling, service-capable counters and supervisor explanations.

Instead of treating routing as an unexplained automated decision, QueueBridge records information that allows authorized users to inspect the decision afterward.

This matters because fairness is not always equivalent to strict first-come, first-served ordering. Some service facilities must account for approved priority categories, service requirements and counter capabilities. The system therefore needs both operational flexibility and accountability.

Kiro helped translate these requirements into implementation milestones covering fairness, routing, supervisor actions and operational history.

8. Building tamper-evident operational history

An important design decision was to make the operational history independently checkable for integrity. QueueBridge uses linked event hashes and signed audit checkpoints. Authorized auditors can inspect operational events and run integrity verification against the recorded history.

During the recorded QueueBridge demonstration, the audit interface showed:

  • 54 events checked.
  • Two valid signed checkpoints.
  • Twelve routing decisions matching their recorded policies.
  • Nineteen recent events awaiting signed-checkpoint coverage.

The final figure is particularly important. A trustworthy system should distinguish evidence that has already received signed-checkpoint coverage from recent events that have not. Showing these limitations explicitly is better than presenting an unconditional claim that every event has received the same level of verification.

You can see the actual verification process in the published demonstration:

9. What implementation review taught me

Using an AI development tool does not eliminate the need for engineering review. Throughout QueueBridge's development, I reviewed implementation reports, evaluated architectural decisions and checked whether the resulting behaviour matched the approved requirements.

One example involved the synchronization process and the selection of offline authority tokens. An implementation review identified that the system needed to select the authority tokens actually referenced by each synchronization batch rather than relying on an arbitrary collection of stored tokens. The correction was accompanied by regression tests covering multiple batches and their associated authority tokens.

This reinforced an important lesson: a feature is not complete simply because its normal execution path works. It must also preserve its guarantees under retries, stale state, repeated operations and unusual execution conditions. The combination of specifications, implementation reviews and regression evidence helped keep QueueBridge grounded in its original requirements.

10. From Kiro-led implementation to final release

By the end of milestone M7.2, QueueBridge already contained its core functional capabilities, including:

  • Offline-first queue operations.
  • Multi-tenant organization and facility management.
  • Online and assisted visitor registration.
  • Ticket recovery.
  • Fairness and adaptive routing.
  • Explainable waiting-time estimates.
  • Accessibility controls.
  • Connectivity monitoring.
  • Tamper-evident audit history.
  • Smart Turn Alerts.
  • Ask Que role-aware assistance.
  • SMS and USSD simulation adapters.
  • Responsive application interfaces.

Kiro was the primary implementation tool behind this functional product. As I approached my Kiro credit limit, I transitioned to Codex for the final hardening and release preparation phase beginning at M7.3. Codex had also assisted with earlier code reviews.

The transition did not involve rebuilding QueueBridge from scratch. The existing Kiro specifications, steering documents, engineering constraints and implemented architecture remained the foundation for subsequent work. That continuity demonstrated another benefit of spec-driven development: the project knowledge was not locked inside a particular AI conversation or development interface.

11. Demonstrating actual operational continuity

I wanted the final demonstration to show genuine application behaviour rather than only explain what the system was designed to accomplish. The published QueueBridge documentary, Continuity in Action, uses actual desktop and mobile application recordings with fictional demonstration records.

The demonstration shows a staff workstation losing connectivity, registering three visitors provisionally, restoring connectivity, reconciling pending operations and issuing confirmed tickets. It also shows mobile connectivity recovery, service completion and audit integrity verification. This provides visible evidence of the system's behaviour during an actual connectivity interruption.

QueueBridge is currently a deployed, functional application. Its SMS and USSD integrations remain in internal simulation, and broader real-world facility adoption is a future objective.

12. How Kiro changed my approach to software development

Before this project, it was easy to think about AI-assisted development primarily in terms of implementation speed. QueueBridge reinforced a different perspective.

The value of AI-assisted software development is not simply how quickly code can be generated. It is also how effectively the developer can communicate intent, maintain architectural consistency and verify that implementation decisions satisfy real requirements.

Read on DEV Community ↗ ← Back to News

Comments

No comments yet. Start the discussion.