Dynamic Form Engine

working

A schema-driven engine extracted from a 1,300-line hardcoded form. Fields, groups, add/remove lists, editable tables — plus visibility, readonly, conditional required and row locking — all described by JSON delivered from the backend; the frontend contains zero lines of business-specific code.

44 pure-logic unit tests · 4 node kinds · 9 built-in widgets · 0 UI-library dependencies

Design decisions

  • Conditions are serializable: visibility, readonly and conditional required are all { field, op, value } expressions the backend can deliver directly; the expressive ceiling is deliberately low
  • "Validated ⇔ submitted" is an invariant pinned by tests; the only exceptions are readonly fields and locked cells
  • The pure-logic layer has zero dependencies: path / schema / controller import no React and touch no DOM — all 44 tests run in plain node
  • Widget registry: swapping antd or a custom library means changing exactly one file

WebPilot

working

You type one plain sentence — "open the todo page, add 3 todos, assert the count is 3". The rest it does itself: split into steps, launch Playwright, click, fill, assert, reflect and retry on failure, then produce a report with step counts and token costs. The frontend lays out every thought, tool call and screenshot along the way — nothing hidden.

What works today

  • A hand-written ReAct loop (decide → call tool → observe → decide again); no agent framework — every function-calling step is visible
  • 9 browser tools: navigate / snapshot / accessibility tree / click / type / select / key / text assertion / count assertion; assertions poll with a wait budget, so lazily-rendered elements are judged correctly
  • The accessibility tree gives the model an 'element → suggested CSS selector' mapping — cheaper in tokens and more stable than feeding it the whole DOM
  • Reflexion: on failed assertions or tool errors the model must analyze the cause and change strategy — repeating the same call verbatim is blocked
  • Task memory (RAG): local multilingual embeddings + vector retrieval; task experience is deterministically summarized and reused — a repeated task hits the memory and finishes in fewer steps
  • MCP both ways: exposes its 9 tools as an MCP Server, and acts as an MCP Host mounting external servers
  • Reproducible eval: 8 fixed cases (todo / insurance claim / portal) via npm run verify with step counts and token costs — 8/8 passing; plus 10+ scenarios on real sites (TodoMVC, SauceDemo, the-internet), which surfaced and fixed a real assertion-without-waiting bug
  • Guardrails: domain allowlist, max steps, overall timeout; deployed mode adds an access token and a persisted daily usage quota (SQLite), with Dockerfile and compose included

Current state: runs locally with npm run dev; the repo ships a Dockerfile and compose, deployable on any container platform. Deliberately no public live demo — every run burns LLM tokens, so the deployed mode ships with an access token and a daily usage quota first; the link and the token go out together. Known limits, stated as-is: dialogs, drag-and-drop, iframes and file upload/download have no tools yet.

LLM Q&A BFF

live

The backend fetches the data, validates it, and holds the boundaries; the model does exactly one thing — say what was found in plain language. The two sides meet through structured output and SSE. The data model, the container image and the eval set are all hand-written; it runs on the public internet, open it and ask.

What it does

  • The business domain is a generic expense claim: one master table (with status and amount) plus one detail table. NestJS layering + DTO validation + Prisma / PostgreSQL — no company-specific table or field names, not tied to any industry
  • Structured output: POST /assistant/ask always returns { conclusion, evidence[], insufficient }. Malformed claim numbers and overlong questions are stopped by the DTO before they reach the model; an unknown claim number returns 404 — the model never invents one
  • SSE streaming: POST /assistant/askStream delivers token by token to a plain-JS page served statically by Nest — open it and ask; a dropped client connection cancels the model request instead of burning tokens for nobody
  • Rate limiting is on by default: a global guard at 30 req/min/IP with an explicit exemption only for /health — defaults are what catch "added an endpoint, forgot to rate-limit it"
  • 23 eval cases hit both the streaming and non-streaming endpoints, checking that streamed deltas assemble into exactly the final answer, and counting hallucinations as "fields in the evidence that are not in the data"
  • Hand-written Dockerfile + compose, deployed on Render — live link below

Current state: deployed and working (free Render instance — it sleeps when idle, so the first load may take ten-odd seconds). Known weaknesses are written into the eval table as-is: when asked about fields not in the data, the model's "insufficient data" reply is not firm enough — such cases are recorded as known issues, not deleted.