Vlaander
← All engines

AGT · Commerce Infrastructure — Agent-Operated Sales Desk

VLA-Agent — Telegram Sales Chatbot

Source code for a Telegram sales chatbot: an AI agent that sells digital products, designed so the language model is an untrusted clerk and prices, inventory, signatures and money are meant to sit where the model cannot write. Pre-production. The four high-severity findings from Vlaander's internal review were fixed on 10 October 2026; the remaining gaps are listed below.

Maturity. Pre-production. Vlaander's internal review on 7 October 2026 confirmed four high-severity findings; Vlaander fixed all four on 10 October 2026 and then ran the full test suite (830 TypeScript and 134 Rust tests passed, PostgreSQL 16, GitHub Codespace). The shipped docker-compose.yml now runs each service as its own PostgreSQL role with no default password; no service connects as the superuser. The compose deployment itself has not been run end to end against Telegram. The unattended close (on-chain payment watching and automated delivery) is not part of the shipped deployment, and the counsel-approved contract templates, screening vendor, custodian provisioning and key ceremony are still outstanding.

Overview

VLA-Agent is the system Vlaander built to sell its own source-code assets through a chat agent. A buyer talks to the agent on Telegram, and the model (Anthropic's API) can act only through a gateway of seven tools: five that read and two that insert rows (opening a deal and joining a waiting list). The repository's design goal is that an attacker who owned the model host could not change a price, double-sell a lot, apply a signature, release source or move funds. As shipped, the host's database role cannot write prices, inventory, screening decisions, operator records or signatures, and no payment instruction is given before the delegated signature and the lot's reservation. One gap remains: because the host reads Telegram, an attacker who owned it could pose as an existing desk operator and record that a payment or delivery happened. That record moves no money and releases no source.

The source has twelve services. TypeScript: a price book and inventory ledger, a decision engine for screening and use-code rules, a hash-chained append-only record store with a kill switch and incident register, a treasury, contract compilation from approved templates, the agent host, go-live tooling, an origination perimeter and an end-to-end test package. Rust: a delivery-versus-payment worker and a second signing identity.

The code requires two identities for the delegated signature: a TypeScript service and a separate Rust binary that re-reads the deal with different SQL under its own database role and must compute the same digest. The compose file gives each service its own database role. The Rust binary is not part of the compose deployment; it now needs its own database credential and refuses to run under any other role (medium finding F8, fixed 10 October 2026).

The problem

Selling software through an AI agent carries a risk: a model can be talked into a discount, a second sale of an exclusive asset, a changed payout address or an early release of the source. VLA-Agent's approach is to give the model only enquiry tools and to put prices, inventory, signing and payment in a control plane the model has no tool to write. A buyer should read this as a design with working code behind much of it, not as a hardened deployment.

What it does

  • Versioned price book with a database CHECK requiring two different approvers; price entries have no UPDATE grant, and the gateway refuses to serve when its deploy pin no longer matches the current Price Book.
  • Inventory ledger where exclusivity is a partial unique index allowing one blocking lot per SKU; a lot is reserved by one conditional insert, idempotent on the deal.
  • Decision engine: screening results with mandatory list versions, policy rules as data with clause citations, a closed use-code gate, sender re-screening and a review queue. No screening vendor is wired in.
  • Append-only, hash-chained record store with a seven-year retention floor enforced by a CHECK constraint, a per-deal reconstruction command, a kill switch and an incident register with sixteen incident kinds.
  • Treasury: a sweep allowlist limited by CHECK to three destination kinds (payoff, refund reserve, quarantine), reserve maths and inbound-payment classification. The shipped flow uses one published receiving address for every deal, not a wallet per deal.
  • Delivery versus payment in Rust: chain watcher, a nine-predicate tick, a transactional outbox and pre-encrypted delivery. It needs a chain source and a delivery service, so it is not in the shipped compose file.
  • Contract compilation from approved templates only, with single-pass substitution. The only template shipped is a draft, so the contract rail can sign nothing until counsel approves one.

Performance

Measured 2026-10-12
MetricFigureBasis
Time AGT adds to a buyer turn with no tool call (model excluded)3.4–3.5 ms median, 4.3–4.5 ms p95Measured by Vlaander
Time AGT adds to a turn with one tool call (get_sku or get_quote)6.2–6.6 ms median, 7.5–8.9 ms p95Measured by Vlaander
Time AGT adds to a turn with three tool calls (product, price and availability)11.7–11.9 ms median, 13.8–14.2 ms p95, 17.3–18.0 ms p99Measured by Vlaander
Date
2026-10-12
Hardware
AMD EPYC 7763, GitHub Codespace (shared Azure VM), 4 vCPU (2 cores), 15 GiB
Toolchain
Node 24.21.0, pnpm 10.34.7 (locked dependencies from the archive), PostgreSQL 16; Node limited to 2 CPUs and PostgreSQL to 1
Source archive SHA-256
3a027b6735c4ec5c4734d43f8a5815280d345369f23501094802f89391fdb4a7
Method
The delivered archive, unpacked, with its locked dependencies; the shipped agent-host tests pass in this setup (9 of 9). A harness written by Vlaander, not included in the archive, repeats the shipped host test's setup (migrations, price book, policy, product card, deploy pin, the decision worker) and times Session.say() for whole buyer turns in a fresh deal-room conversation each. The language model is the shipped ScriptedModel, which answers at once, so what is timed is AGT itself: the host, the gateway's tool calls into PostgreSQL, the recitation check, the outbound claim filter and the transcript records. 20 warm-up turns, then 300 turns of each kind; three runs; the ranges are across runs.
  • Measured on the archive above. The archive delivered since 21 October 2026 (SHA-256 36e52135898959faeb0f6f060aed42fc9471373407fc0c4e4212569777bb60aa) was rebuilt from it with only its LICENSE file rewritten for licensing; the code, tests and benchmark tools are byte-identical. The archive delivered since 19 November 2026 (SHA-256 ff8ba74c4190c1087f8f711520ab2ed6063749015effece2a18b7a4e917c0843) changes five files: the backup tools now refuse a PostgreSQL client/server major-version mismatch with a clear message (a new optional VLA_PG_BIN setting; DEPLOY.md now states that PostgreSQL 16 client tools are required), the Telegram alert route no longer lets a one-shot run exit before an alert times out, and the CI workflow installs PostgreSQL 16 client tools. In GitHub Actions on 19 November 2026 (Node 22, PostgreSQL 16), 835 TypeScript and 130 Rust tests passed.
  • These figures exclude the language model entirely. The reply time a buyer sees is dominated by the language model provider's response, typically seconds, which AGT does not control, plus Telegram's delivery; Vlaander measured neither. The figures are only what AGT adds around the model.
  • Not measured: opening a deal (create_deal) and the steps after it, which change state and allow one deal per room.
  • The machine is a shared cloud VM with PostgreSQL on the same host (1-minute load average 1.6–1.9). One turn in the second run took 258 ms; every other turn finished in under 32 ms.

Measured figures were produced by Vlaander on the hardware above from the source archive you would receive. The benchmark tools ship with that source, so you can rerun them after delivery; nothing can be run before purchase. Any performance data is illustrative only and not a guarantee of your results. No refund is available after delivery, except where a remedy cannot lawfully be excluded.

Value in your own metrics

Forbidden-tool build check
The build fails if any of 21 forbidden tools, such as setting a price, marking a deal paid or releasing source, is defined in service source. Vlaander ran the check on 8 October 2026 on the delivered archive (Node 24, Codespace): 106 source files scanned, 0 definitions.
Double sale of an exclusive lot
Refused by the database: a partial unique index allows one blocking lot per SKU. A payment instruction is given only after the delegated signature and only to the deal holding the lot's reservation, so two buyers cannot both be told to pay for one lot.
Payout destinations
Sweeps can go only to the three destination kinds allowed by a CHECK constraint. Nothing in the code can send funds; custody is watch-only.
Record retention
Each record must be kept at least seven years from when it was recorded, enforced by a CHECK constraint, and a command rebuilds the record of one deal.

Assurance and build

Languages
TypeScript (Node 22 or later; the Docker image uses Node 24) and Rust (2021 edition), on PostgreSQL 16
Size
12 services; about 27,000 lines of source, SQL migrations and scripts, and about 18,700 lines in 102 test files; counted by Vlaander in the delivered archive, 8 October 2026, before the 10 October fixes
Internal review
Vlaander quality review, 7 October 2026: 0 critical and 4 high findings, all confirmed in the code, and all four fixed on 10 October 2026 with regression tests that fail on the earlier code. A fifth issue found during the fix (database functions with owner rights callable by any role) was also fixed. (1) The shipped docker-compose.yml runs every service as the PostgreSQL superuser with default password "vla". (2) The output filter catches only 0x addresses, so the bot can be made to post a false payment destination. (3) A payment address and amount are given on a GREEN screening, before signature or reservation, contrary to the system card and README. (4) The gateway's database role can insert GREEN decisions and operator records. Five medium and nine low findings were reported but not confirmed by the reviewer; Vlaander fixed mediums F6 to F9 on 10 October 2026 (a tool-call and tool-loop cap per turn, one deal per room, a /new rate limit, fencing of buyer turns and tool results, a dedicated credential for the second signing identity, desk commands in direct messages only), and F5 remains open. The review found every SQL query parameterised.
Internal audits
Two control audits written during development and shipped with the source: VLA-AUD-001 (sixteen findings) and VLA-AUD-002 (three critical, nine high and two medium findings; nine closed, two accepted and three partly fixed by its own account). The gateway's ability to forge a GREEN decision is one of the open items. No external penetration test.
Test suite
Run by Vlaander on 10–11 October 2026: 830 TypeScript and 134 Rust tests passed, on the source and on the delivered archive (PostgreSQL 16.15, Node 24, Rust 1.99, GitHub Codespace)
Test coverage
Not measured
Repository
Vlaander-LTD/VLA-Agent, branch delivered (fix/review-highs commit d54ceac, built on vla-agent-control-plane 6c94151, plus the 19 November 2026 fixes from commit eda43e3)
Source archive SHA-256
ff8ba74c4190c1087f8f711520ab2ed6063749015effece2a18b7a4e917c0843

Releases are not yet cryptographically signed, and no release manifests or external audit summaries are published. Check the source tarball you receive against its SHA-256 in Schedule 1 of your Licence Agreement, which you see before you sign.

Scope and maturity

What is real today, what is deliberately excluded, and what is pending — published unprompted.

Included today

  • The twelve services as source, with their tests, SQL migrations, Dockerfile, docker-compose.yml, CI workflow and deployment scripts.
  • The scope of work, architecture record, deployment and go-live runbooks, drafting briefs for counsel and both internal control audits, plus a handover note listing the Vlaander identifiers that were replaced with placeholders.

Explicitly scoped out

  • Vlaander's own operation of the desk.
  • Vendors it is designed to plug into but has not contracted: screening, e-signature, custodian provisioning, a chain source and an FX source.

Pending

  • An out-of-band confirmation for desk operators' payment and delivery confirmations, and payment destinations rendered outside the model's text; medium finding F5 (payments are matched by amount to one shared receiving address, and /paid is recorded by a single operator with no on-chain check).
  • Counsel-approved sale and assignment templates; until then the contract rail runs and can sign nothing.
  • A chain source and delivery service for the Rust closing loop, an external red team and penetration test, and the witnessed key ceremony.

Who it's for

  • Software and IP vendors that want to sell through a chat agent without giving the model authority over price, inventory or money.
  • Digital-asset and stablecoin businesses interested in delivery-versus-payment release of a digital good against an on-chain payment.
  • Agent-platform companies looking for a worked example of keeping an LLM out of the control path, with its gaps documented.

Before you buy

  1. Plan to run the full test suite yourself after delivery (PostgreSQL 16, Node 22 or later and Rust required); Vlaander ran it on 10 October 2026, and the source is released only after payment.
  2. Check the four high-severity fixes and their regression tests (docker-compose.yml, scripts/db-roles.sh, services/vla-gateway/src/tools.ts, services/vla-host/src/claims.ts, services/vla-engine/src/decide-deal.ts and the gateway migrations 490 and 495).
  3. Read both internal audits and the go-live runbook; `pnpm readiness` lists what still blocks go-live.
  4. Budget for replacing Vlaander's catalogue, price book, policies and Board constants with your own; the desk ships configured for Vlaander's assets.
  5. No refund is available after delivery, except where a remedy cannot lawfully be excluded.

What you get

  • The asset's source, licensedSubject to the Licence Agreement, Vlaander grants the verified Buyer a perpetual, worldwide, non-exclusive, non-transferable licence to use, copy and modify the Asset, build it into the Buyer’s own products, and run, host and distribute those products to the Buyer’s customers in non-source form. The licence is for one company: it doesn’t cover affiliates. The source code stays confidential to the Buyer’s own staff and contractors, and may not be passed on, published or resold. Vlaander keeps ownership and licenses the same Asset to other businesses.
  • Its testsThe test suite the published assurance claims rest on, as delivered in the source archive.
  • Its audit artefactsSpecifications, model-checking output, reviews and the software bill of materials, where the asset has them.
  • Not includedThird-party and open-source materials are not sold, assigned or licensed by Vlaander. They remain under their own licences, listed in each asset’s software bill of materials (SBOM.md in the archive), and the Buyer is responsible for complying with those licences.

Licence

Before you buy. Pre-production: not run end to end against Telegram. The open findings, the missing counsel-approved contract templates and the vendors still outstanding are listed under Scope and maturity; read them before buying.

$1,900 paid once · or ₦2,565,000

Included

  • The engine's source archive, with its tests and audit artefacts, matching the SHA-256 in Schedule 1
  • A perpetual, non-exclusive licence for one company under the Licence Agreement

Not included

  • No updates
  • No support
Buy a licence

One price per engine, in US dollars, paid once. The source is what you get: Vlaander does not sell updates, support or bundles. The Licence Agreement you sign is the binding text.

First described in: Vlaander, 5 October 2026 (added after the VLA-GEN catalogue). Revised by Vlaander against the delivered source; every figure is labelled with its basis.

From test to source

  1. 01

    Check

    Read the engine's page: what Vlaander measured and on which hardware, what it has not measured, and the open review findings. Nothing runs before purchase.

  2. 02

    Buy

    Verified businesses only. Choose an engine, give your company's details, have your authorised signatory sign the Licence Agreement, then pay the invoice in naira by bank transfer, or in USDC on Polygon. Once the payment is verified, your account shows Paid.

  3. 03

    Receive

    We confirm the funds and release the source tarball to you. Delivering, then Download ready. Check it against the SHA-256 in Schedule 1, then rerun the tests and benchmarks yourself.