All work

Product engineering · July 2026 — Present

Achyrix — an offline-first restaurant operating system with a 42-agent decision layer

A local-first restaurant OS that unifies POS, kitchen, inventory, labour, delivery and payments — then runs 42 deterministic decision agents over that single context to tell an owner the next best action, with human approval on every move.

Role
Trying to build · founding engineer, architecture and AI systems
Period
July 2026 — Present
Focus
Agentic Decision Intelligence · Offline-first · Multi-tenant architecture
42
Specialist decision agents implemented
596
Automated tests passing green
4
Product surfaces: POS · storefront · owner dashboard · edge API
0
LLM tokens on core deterministic decision paths
01Overview

What it is.

Achyrix is an attempt to build the operating brain of a restaurant, not another dashboard. The tools already exist — POS, inventory, rota, delivery, CRM — but they disagree with each other and none of them decide anything. The owner ends up being the integration layer, reconciling by hand during the exact rush when there is no time to think.

So the product is two layers that only work because they are built together: one local-first OS that makes every operational surface write into a single outlet-scoped model, and an Agentic Decision Intelligence layer on top that continuously asks what this restaurant should do next, why, and what it is worth in rupees or dollars.

The company runs two verticals. Restaurant OS is the flagship product. Execution Pods is a services business that deploys senior engineering and operations teams — it funds the product and keeps the build independent of outside capital.

The system is roughly 60% production-ready: a real codebase with 596 automated tests green, 42 agents implemented, and the core operating loop — orders, payments, refunds, stock deduction, offline sync — working end to end.

02Verticals

Two businesses, one company.

Achyrix Restaurant OS

The flagship product — one local-first operating system for a venue

A single system covering front of house, back of house and the intelligence layer, instead of the six to ten disconnected apps a typical restaurant runs today. It is offline-capable by default: every register and kitchen screen works on its own encrypted local database and reconciles when the link returns.

  • Front of house: cloud and desktop POS, QR ordering, kiosks and a commission-free direct storefront on one transactional layer.
  • Back of house: kitchen display with station routing and SLA colouring, inventory, procurement and labour built into the core rather than bolted on.
  • Delivery and payments: automatic dispatch to delivery partners as prep finishes, multi-gateway payments with idempotent refunds and no processing mark-up.
  • Intelligence: Agentic Decision Intelligence reading the unified stream and proposing the next best action with the money attached.

Execution Pods (services)

Senior engineering and operations pods, deployed in days

The services vertical that funds and de-risks the product. Small, pre-vetted pods of one to five senior specialists embed into a client organisation and are measured on shipped software rather than hours — the 30/80 model: roughly 30% less management overhead, materially higher delivery velocity.

  • Software execution pods: senior engineers, tech leads and QA shipping production code from sprint zero.
  • Digital growth squads: growth engineering, conversion work and analytics run as an extension of the client team.
  • Automation and AI systems: custom pipelines, LLM integrations and workflow automation for teams drowning in manual process.
  • Founder-led oversight, with HR, compliance and payroll handled so the client only sees outcomes.
03Problem

Why it's hard.

  • A typical independent restaurant runs six to ten disconnected apps. None of them share a definition of a sale, an item or a shift, so the truth has to be stitched together manually every day.
  • Legacy POS and BI tools report the past. They show what happened and never say what to do next, so an insight dies as a chart nobody acted on before the margin was already gone.
  • Margin bleeds quietly: food waste, phantom stock, over-staffing, missed prep, suspicious refunds and delivery-channel losses accumulate invisibly — often several percent of revenue, noticed only at month end.
  • Most 'AI features' in this category are a language model guessing over a prompt. In a system that moves money and stock, a plausible-sounding guess is worse than no answer at all.

Constraints

  • The venue must keep selling with the internet fully down, then reconcile cleanly — no 'offline mode' with reduced capability.
  • Order and payment data cannot be lost or duplicated across a reconnect, a crash or a concurrent edit from a second terminal.
  • Tenant data must be isolated by construction, not by remembering to add a filter to every query.
  • Every agent recommendation must carry its evidence and be reversible; nothing may silently move money or stock.
  • Inference cost has to be insulated from cloud API price inflation, which means the option to run models locally on cheap hardware.
04Ownership

What I built.

  • Bootstrapping and building the product from the ground up, with the goal of a scalable software company rather than a single deployment.
  • Architected the whole system: tenancy model, data flow, offline sync semantics, desktop process boundaries and the agentic control plane.
  • Designed the Agentic Decision Intelligence layer — the unified outlet snapshot, the 42 specialist agents, conflict arbitration and the Decision Card contract that carries action, evidence, confidence and expected impact.
  • Built the React front ends (POS terminal, kitchen display, owner command centre, storefront) and the Fastify services behind them, packaged as an Electron client over local SQLite.
  • Implemented the synchronisation engine: a persisted mutation queue with deterministic conflict resolution and replay signatures.
  • Built the failure-path test harness — 596 automated tests that break the system on purpose and assert the ledger still reconciles.
  • Designed the edge-compute strategy: routing between frontier models and locally fine-tuned open models on refurbished enterprise hardware.
  • Wrote the investor narrative and the architecture story that goes with it, and run the services vertical that funds the build.
05Architecture

How it fits together.

  1. 01

    Electron client

    React renderer for POS, KDS and command centre — no privileged APIs

  2. 02

    IPC contextBridge

    Narrow, explicitly allowlisted surface between UI and system

  3. 03

    Local SQLite (WAL, encrypted)

    Source of truth during service; every terminal is autonomous

  4. 04

    Sync engine

    Queued mutation intents, deterministic conflict resolution, replay signatures

  5. 05

    Fastify edge API

    Tenant-scoped domain services: ordering, menu, stock, labour, payments

  6. 06

    Unified outlet snapshot

    One semantic KPI model combining sales, stock, labour, delivery and guests

  7. 07

    ADI decision core

    42 specialist agents reading the shared snapshot, arbitrated into one queue

  8. 08

    Decision Card contract

    Action + evidence + confidence + expected impact, audited and reversible

  9. 09

    Approval & policy gate

    Human taps approve, or an earned-trust policy auto-executes within limits

  10. 10

    Workflow executor

    Applies approved actions through the same validated domain operations a human uses

  11. 11

    Model router

    Frontier models or locally fine-tuned open models on edge hardware

06Intelligence

The AI layer, in depth.

The AI is the point of the product, so it is engineered like a control system rather than a chat feature. The core decision paths are deterministic logic over real restaurant data; language models assist at the edges — summarising, drafting, explaining — and never on their own move money or stock.

Signals are combined once into a unified outlet snapshot instead of being queried one brittle API at a time. Forty-two specialist agents read that shared context, each an expert lens on one part of the business, and emit Decision Cards: the action, the evidence behind it, a confidence value and the expected rupee or dollar impact.

Conflicts are resolved before anything reaches a human. If the pricing agent wants a promotion and the COGS agent says the item is loss-making today, arbitration happens inside the decision core, so the owner sees one coherent next action rather than six competing alerts.

Design principles

  1. Deterministic-first, LLM at the edges

    Zero LLM tokens sit on the core decision paths. Detection, thresholds, forecasts and arbitration are explicit logic that can be replayed and audited; models are used where language, not correctness, is the deliverable.

  2. Evidence-bound output

    An agent cannot emit a recommendation without the rows that justify it. Every card renders its own evidence — the counts, the covers, the invoices — so an owner is approving a fact, not a vibe.

  3. Approval-gated execution

    100% of operational actions pass through human approval or an explicit policy the owner has set. Actions execute through the same validated domain operations a manager would trigger by hand, and each one is logged and reversible.

  4. Earned trust, not blanket autonomy

    Agents start advisory. Once a class of action has a track record of being approved with the predicted impact, the owner can promote it to auto-execute inside bounded limits — autonomy is earned per action type, not granted up front.

  5. Runs at the edge

    Because the OS is local-first, the intelligence has to work with the cloud gone. Locally fine-tuned open models on refurbished enterprise hardware keep inference available and insulate margins from cloud API price inflation.

Decision loop

  1. 01

    Operate

    Every transaction, ticket, stock count and shift flows into one outlet-scoped model — a single trusted, real-time picture of the venue, built offline and reconciled on sync.

  2. 02

    Detect

    Agents watch that snapshot continuously. Example: the weather and demand agents predict a slow evening for a hyper-local area.

  3. 03

    Decide

    The decision core arbitrates the competing agent proposals and emits one Decision Card — reduce chicken prep by 15 lb — with the forecast, the historical waste and the expected saving attached.

  4. 04

    Approve

    The manager reads the evidence in a plain-language brief and taps approve, adjusts the parameters, or lets a standing policy handle it automatically.

  5. 05

    Execute

    The workflow executor updates the prep plan, alerts the kitchen display and adjusts the draft procurement order — through validated domain operations, fully audited and reversible.

  6. 06

    Learn

    Realised impact is measured against the prediction. Overrides and outcomes tune thresholds and decide which action classes earn more autonomy.

The agent matrix

Revenue & profit

  • Pricing
  • Profit
  • Menu
  • Marketing
  • Weather
  • FOH upsell
  • COGS defender

Operations

  • Kitchen
  • Operations
  • Delivery
  • Voice
  • Maintenance
  • Peak throttler
  • Auto-routing

Supply & inventory

  • Inventory
  • Procurement
  • Sustainability
  • Phantom stock
  • Negotiator
  • Waste reduction
  • Supplier audit

Labour & workforce

  • Payroll
  • Workforce
  • Tips & service
  • Compliance
  • Staff burnout
  • Hiring
  • Shift bidding

Guest & retention

  • Reservation
  • Retention
  • Guest sentiment
  • AI advertising
  • Table turns
  • Hyper-local VIP
  • Menu recommendations

Executive & risk

  • Financial
  • Regulatory
  • Fraud
  • Competitive
  • Payments
  • Shadow-AI leak
  • Cash flow
07Decisions

Engineering choices.

  1. Local-first, not cache-first

    The local SQLite database is the authority during service, not a cache of the server. Writes land locally and are queued for replay, so the interface never blocks on the network and there is no degraded 'offline mode' branch in the UI.

  2. One semantic context, computed once

    Agents read a unified outlet snapshot rather than each querying its own endpoints. That removes the disagreement between modules that makes restaurant data untrustworthy — and means adding an agent is cheap.

  3. Deterministic decision core, language models at the edges

    Anything that can move money or stock is explicit logic that can be replayed. The moment a recommendation depends on a model's guess, it stops being auditable — and unauditable automation is not deployable in a kitchen.

  4. The Decision Card as the only interface to automation

    Every agent output has the same shape: action, evidence, confidence, expected impact. One contract means one approval UI, one audit trail, one reversal path, no matter how many agents exist.

  5. Tenancy enforced below the handlers

    Tenant scoping lives in the data access layer, not in individual route handlers, so a new endpoint cannot accidentally read across restaurants.

  6. Renderer process holds no privileges

    All privileged work crosses an explicit IPC contextBridge with a hand-written allowlist, so UI code cannot reach the filesystem, the database or a model provider directly.

  7. Model optionality as an architectural decision

    Inference sits behind a router, so the same decision path can run on a frontier model or a locally fine-tuned open model on owned hardware. It keeps the product working offline and keeps unit economics under our control rather than a vendor's price list.

08Implementation

Building it.

  • React front ends for the POS terminal, kitchen display, owner command centre and storefront, packaged with Electron for the on-premise client.
  • Fastify services expose tenant-scoped endpoints for ordering, menu, stock, labour and payment domains, with idempotency keys across the transaction and refund loop.
  • Stock deducts on sale against recipe definitions, which is what makes phantom-stock and waste detection possible downstream.
  • A persisted mutation queue records intent against a known base state, replays in order on reconnect and resolves conflicts deterministically instead of last-write-wins by accident.
  • The ADI layer builds the outlet snapshot on a schedule and on significant events, fans it out to agents, arbitrates proposals and writes Decision Cards into an approval inbox.
  • Zero-trust posture around the agent layer: secure-by-default RBAC, full audit logging, and no agent capability that isn't an existing validated domain operation.
  • 596 automated tests, weighted towards failure paths — connection loss mid-transaction, process kill during payment, concurrent terminals editing one open order.
09Challenges

What fought back.

  1. Reconciling concurrent terminals

    Two terminals editing the same open order while offline is the hard case. Mutations are modelled as intents against a known base state so replay can detect divergence instead of silently overwriting a colleague's work.

  2. Proving data loss cannot happen

    Confidence had to come from tests, not careful reading. The breakage matrix kills the connection and the process at deliberately inconvenient points, then asserts the ledger still reconciles to the rupee.

  3. Forty-two agents that don't shout over each other

    Independently sensible agents produce contradictory advice. Arbitration — ranking by confidence and expected impact, suppressing dominated proposals, collapsing duplicates — turned out to be harder and more valuable than any individual agent.

  4. Keeping a language model inside the rules

    An agent that can call arbitrary operations is a liability in a system that moves money. Constraining it to validated domain operations, with approval gates and reversal, was a design problem long before it was a prompt problem.

  5. Making intelligence affordable at the edge

    Cloud inference per outlet per day does not survive a $250/month price point. Fine-tuning smaller open models to run on depreciated enterprise hardware was the only way the economics and the offline promise both hold.

  6. Trust before autonomy

    Owners do not hand a machine the keys on day one. Designing a graduated path — advisory, then policy-bounded, then auto-executing per action class — was as much product psychology as engineering.

10Outcome

Where it stands.

  • The platform is pre-launch, so I would rather show the engineering than invent customer metrics.
  • What exists: the operating core done end to end — POS, orders, payments and refunds with idempotency, multi-gateway processing and stock deduction on sale.
  • Local-first sync with deterministic conflict resolution and replay signatures, so a venue keeps trading through a full outage.
  • A zero-trust ADI engine with 42 agents implemented, approval-gated actions, secure-by-default RBAC and audit logging.
  • 596 automated tests green across four product surfaces; roughly 60% of the way to production, with the remaining work being field-hardening, hardware bundling and pilot tuning rather than unknown R&D.

What I took from it

  • Offline-first is an architectural decision made once, at the beginning. Retrofitting it into a connected app means rewriting the data layer.
  • Deterministic domain logic is what makes AI safe to add. Without it, an agent is an unbounded source of side effects.
  • A shared semantic context is the real unlock in agentic systems — most of the difficulty in 'many agents' is data agreement and arbitration, not the agents.
  • Automation adoption is a trust curve, not a switch. Evidence, reversibility and graduated autonomy are features, not polish.
  • Testing failure paths is worth more than testing features when correctness under pressure is the product.
11Roadmap

Where it's going.

  1. Now · Q3 2026

    Prove value

    Pilot the inventory and labour agents with design-partner restaurants and measure adoption, override rates and realised savings against predicted impact.

  2. Next · Q4 2026

    Scale trust

    Ship the hardware bundle, the onboarding playbook and outcome tracking, and run the first paid multi-outlet rollouts.

  3. Then · Q1 2027

    Close the loop

    Policy-controlled automations, cross-outlet benchmarking, and installs scaling towards the target.

  4. Goal · Mar 2027

    A restaurant-intelligence network

    1,000 live restaurants and a compounding proprietary decision dataset that makes every subsequent install smarter.

12Stack

Tools and technology.

Client

  • React
  • TypeScript
  • Electron
  • Tailwind

Backend

  • Node.js
  • Fastify
  • REST APIs
  • Multi-gateway payments

Data

  • SQLite (WAL, encrypted)
  • Mutation queue / sync engine
  • Recipe-level stock model

AI & agents

  • Agentic Decision Intelligence
  • 42-agent matrix
  • Deterministic decision core
  • Decision Cards
  • Human-in-the-loop approval
  • Fine-tuned open models
  • Edge inference

Security

  • Zero-trust agent layer
  • RBAC
  • Audit logging
  • IPC allowlist

Quality

  • 596 automated tests
  • Playwright end-to-end
  • Failure-path matrix

Next case study

Decentralized Voting System

On-chain vote recording for tamper resistance, paired with off-chain identity verification so one verified person maps to exactly one ballot.

Want the short version?

Let's build something that matters.

Email me