Plain version of kamb.nu. The interactive one is a portrait made of 29,565 records of Martin's work; this page says the same things in text.

Martin Kamb

About

Technical co-founder and full-stack lead engineer in Stockholm. He builds web apps, backend systems, data platforms and applied AI, and owns them in production. He co-founded WADE Insight in 2021 and wrote most of its platform; since 2026 he also works independently as Martin Kamb AB.

Experience

Martin Kamb AB: independent engineer and consultant (2026 – present)

Project Aegis (see the aegis project) is a system that makes LLMs answer business questions reliably over messy legacy and ERP databases. It is about 15,000 lines of Python and TypeScript (FastAPI, React, Anthropic API, MCP), with tests.

Backed by 3,630 records of his commits, 2026.

WADE Insight: technical co-founder and full-stack lead engineer (2021 – present)

A hybrid SaaS platform: a web control plane, a backend execution engine that runs inside each customer's own Azure tenant, and the Azure infrastructure behind it. It runs production-critical workloads for several enterprise customers across multiple production environments, without venture capital. See the projects wade-orchestration, wade-portal, wade-automation and data-insight-accelerator.

Backed by 24,840 records of his commits, 2021–2026.

Lead data engineer, consulting engagement at a client (2022 – 2026)

He worked half time alongside WADE, embedded at a large industrial company as lead engineer for orchestration, automation, execution monitoring and operations of its business-critical Azure data platform. He was the technical counterpart to an Infrastructure-as-Code initiative. Impact: the platform lets a single engineer run the company's entire national data warehouse. The client-analytics project is part of this engagement.

Backed by 526 records of his commits, 2024.

Praktikertjänst AB (via One Agency AB): data engineer (2019 – 2020)

He built reporting and data platform solutions together with the future WADE co-founders. The reusable automation patterns from this work became the foundation of the WADE product.

Earlier career: quality assurance (2014 – 2019)

How he works

He started his career in software QA, and quality still drives how he works and leads: CI/CD, pull-request build gates, code review and test-driven development, so teams ship fast without giving up stability or security. He owns the quality of what he ships, including code written with AI assistance. He works across the stack (Python and FastAPI, cloud infrastructure, React and TypeScript with a strong UX focus) and builds LLM features behind measurable evaluations rather than demos, weighing answer quality against cost per correct answer.

Education

Karlstads Teknikcenter: Qualified Software Tester, IT (vocational higher education, YH), 2012 – 2014.

Skills

Contact

Email martin@kamb.nu, or LinkedIn (linkedin.com/in/martin-kamb-a2001884).

Projects

WADE Insight, co-founder (2021–present)

Data Insight Accelerator

Data Insight Accelerator is the data platform offering of WADE Insight, the company Martin co-founded as technical co-founder. It is a reusable set of pipelines, notebooks and a Spark ETL library, deployed into a client's Azure Databricks or Microsoft Fabric environment to move source data through bronze, silver and gold layers into a lakehouse and warehouse. Martin authored about 55% of the commits across its six repositories, between November 2021 and October 2026.

Architecture
  • Azure Data Factory pipelines ingest from databases, file servers and REST APIs, then run bronze, silver and gold loads. Job-manager pipelines start, queue and rerun jobs. Secrets come from Key Vault.
  • Databricks notebooks cover init, ingest, stage, transform and load, on a shared Python Spark ETL library distributed as a wheel.
  • An Azure Function App deploys notebooks from Git to Databricks and creates clusters.
  • A Fabric port rebuilds the pipelines on Fabric Data Pipelines, a Lakehouse and a Warehouse. A later version uses fabric-cicd to promote items between workspaces.
Decisions
  • Chose plain wheels over Cython-compiled ones because per-platform compiled builds were too painful to keep compatible.
  • Left PySpark out of runtime dependencies because Databricks and Fabric supply their own Spark.

(The Fabric deployment tooling has no recorded author; don't credit it to Martin.)

Stack

Python, PySpark, Delta Lake, Azure Data Factory, Azure Databricks, Microsoft Fabric, Azure Functions, Azure Pipelines; pandas, pyarrow, pyodbc, databricks-sdk, fabric-cicd.

Evidence
  • He unified the accelerator's Spark ETL library, then three divergent branches and package variants, into one codebase for Databricks and Microsoft Fabric that tests without a live cluster. Its compatibility gate found four behaviours the Fabric branch had silently changed. (measured; reproducible by him. Limits: the gate covers what its tests exercise)
  • He started the accelerator's Spark ETL library in 2021 and wrote most of it. Every client depends on it for history in the bronze layer (SCD2-style change tracking), and it installs from a private package index he set up whenever a client's cluster starts. (self-reported; his own records)
  • He wrote the notebooks deployed into each client's environment (init, ingest, stage, transform and load): thin wrappers over the shared library that move source data through bronze, silver and gold layers. (self-reported; his own records)
  • He built the accelerator's first Microsoft Fabric pipelines: token and secret retrieval, configuration, a job manager, and the bronze, silver (raw data vault) and gold (data mart) loads. (self-reported; his own records)
Records
3,848, Nov 2021 – Dec 2026
Languages
python 57%, json 34%, sql 5%
Frameworks
Azure SDK 1,024, PySpark 591, pandas 433, pytest 93, Jinja2 47, Databricks SDK 35
Kinds of change
notebooks 34%, CI/CD 14%, tests 7%

WADE automation

WADE automation was WADE Insight's SQL generator: it built data warehouse SQL from metadata (raw data vault hubs, links and satellites, persistent staging, SCD1 and SCD2 dimensions, facts and data quality tests), validated the metadata first and could target Microsoft Fabric Lakehouse. It is no longer in use: its logic has moved into WADE orchestration. Martin started the codebase and authored about 71% of its commits, from January 2022 to February 2026. The project's records also include a small internal service for running the platform's own operations (2022–2023), all of it written by Martin.

Architecture
  • It validated model metadata, rendered SQL from templates for each modelling layer and loaded data marts, with secrets kept in Azure Key Vault.
  • It ran as an Azure Functions app until the generation moved into the platform's API.
Decisions
Stack

Python, Azure Functions, SQLAlchemy, SQL Server (pyodbc), pandas, PyArrow, Jinja2, pytest, uv. Azure SDKs: Key Vault, Data Lake Storage, SQL, Resource Manager, DevOps. Azure Pipelines.

Evidence
  • He started the generator that built a warehouse's raw data vault and data mart SQL (hubs, links, satellites, persistent staging, SCD1 and SCD2 dimensions, data quality tests) from metadata files, validating the metadata before any generation ran. (self-reported; his own records)
Records
2,829, Jan 2022 – Feb 2026
Languages
python 94%, yaml 3%, docs 1%
Frameworks
Azure SDK 700, Jinja2 457, pandas 187, SQLAlchemy 98, pytest 58
Kinds of change
tests 15%, CI/CD 3%, docs 1%

WADE orchestration

WADE orchestration is the backend of WADE Insight's data warehouse platform: the API that connects the customer-facing apps to the data warehouse stack and holds each customer's metadata for data sources, data models (raw data vault and data marts), jobs and deployments. Martin started the codebase and authored about 39% of its commits, from March 2023 to October 2026.

Architecture
  • A Python API service over a relational metadata store, with typed contracts and versioned schema migrations.
  • It integrates with the Azure services the platform runs on (secrets, orchestration, monitoring), with telemetry throughout.
  • Token-based authentication with scopes and two-factor authentication.
  • Warehouse SQL is generated from templates rather than written by hand. This includes the generation that used to run separately as WADE automation, which now lives here.
  • It ships as a container through CI/CD pipelines.
Decisions
  • Tests run against a real, throwaway database, so workflows are checked against realistic behaviour rather than mocks.
  • Generated SQL is parsed in tests, so a script no server could run fails a build instead of a customer load.
Stack

Python 3.11, FastAPI, Pydantic 2, SQLAlchemy 2, Alembic, SQL Server (pyodbc), pandas, Jinja2, PyJWT, pyotp. Azure SDKs: Key Vault, Data Factory, Data Lake Storage, API Management, Monitor. Tooling: uv, pytest, Ruff, sqlglot, Docker, Azure Pipelines.

Evidence
  • Before the platform, each customer's orchestration was driven by an Excel file in their own Azure environment, downloaded, edited and re-uploaded for every change. Martin replaced it with data sources managed in the platform's API. (self-reported; his account only. Limits: no measurement of the time it saved)
  • Martin started and leads the backend of WADE Insight's data warehouse platform: the API and metadata store behind the customer apps, covering data sources, raw data vault and data mart models, jobs and deployments. (self-reported; his own records)
  • He moved warehouse SQL generation into the platform's API, so modelling, generation and deployment share one metadata store. All warehouse SQL is generated except fact tables and custom views kept outside the framework, mainly combined hubs. (self-reported; his own records)
  • For the move to a new metadata model he made the live database the truth for structure and used legacy files only for what it never stored, and required the rebuilt model to validate before any running job was repointed. (self-reported; his own records)
  • Before switching generators he compared new against legacy output procedure by procedure, ignoring order rather than scoring line similarity. That exposed real differences a similarity score had hidden, and confirmed the business-key hashes match. (measured; his own records. Limits: compares the generated SQL, not the data it produces)
  • He reviews the pull requests to all of the platform's repositories before they reach the development branch, apart from some small changes, and runs every release. (self-reported; his account only)
  • He set up the platform's CI/CD, pull-request gates and tests in the build flow, and taught its external developers to work in the codebase. (self-reported; his own records)
  • Repairs to production metadata are applied from recorded change sets, each shipped with its own rollback script. (self-reported; his own records)
  • The API's tests run against a disposable SQL Server container, so workflows are tested against a real database rather than mocks. (self-reported; his own records)
  • He set up how his team works with AI agents day to day: shared working rules and task-specific skills kept in the repositories themselves. (self-reported; his own records)
  • He runs an internal architecture forum for WADE Insight and its sister company in the WADE group, and introduces that company's new hires to the platform. (self-reported; his account only)
Records
12,127, Mar 2023 – Dec 2026
Languages
python 94%, docs 3%, yaml 2%
Frameworks
SQLAlchemy 8,115, FastAPI 6,314, Pydantic 2,179, pytest 1,120, Alembic 563, Jinja2 277
Kinds of change
schema & SQL 17%, tests 13%, docs 3%

WADE Portal

WADE Portal is the customer-facing web app of WADE Insight's data warehouse platform and the front end of the WADE Portal API (see WADE orchestration). Users manage data sources, model raw data vault entities and data mart facts and dimensions, set up data quality checks and generate SQL. Martin authored about 10% of the commits to the main portal app and all commits to two companion apps, an internal console for operating the platform and a marketing site. His commits run from October 2023 to October 2026.

Architecture
  • Main portal: a React and TypeScript single-page app on top of the platform's REST API.
  • Internal console: for running the platform day to day, behind separate admin access and two-factor authentication.
  • Marketing site: a single-page site whose content changes with the visitor's role.
Decisions
  • Builds fail on missing configuration instead of falling back to defaults that would misbehave in production.
Stack

TypeScript and React throughout. Portal: Create React App, Redux Toolkit, React Flow, CodeMirror, Chart.js, Tailwind CSS. Console: Vite, Tailwind, Axios. Marketing site: React 19, Vite, Tailwind 4. Hosting and CI: Azure Static Web Apps, Azure Pipelines.

Evidence
  • Modelling the raw data vault and data marts moved from CSV files to graphical interfaces on the platform. Martin built most of those interfaces and the backend behind them, and a customer singled them out for praise. (external; his account only. Limits: one customer's feedback, relayed by Martin)
  • For about a year he directed a remote team of 8 consultants who built the first version of the platform's frontend, setting technical direction, breaking down the work and reviewing what was delivered. (self-reported; his account only)
Records
6,036, Oct 2023 – Dec 2026
Languages
typescript 77%, css 20%, yaml 1%
Frameworks
React 3,583, Redux 350, zod 4
Kinds of change
frontend 79%, infrastructure 5%, tests 4%

Consulting, lead data engineer (2022–2026)

Client analytics platform

An Azure analytics platform built during a consulting assignment for a large industrial manufacturer. It moves data from source systems into a data lake and data warehouse using Azure Data Factory and Databricks, with infrastructure, identities and deployments managed as code across development, test and production environments. Martin authored about 15% of the commits across its three repositories, mostly in the deployment Function App repository (about 60% of that repository's commits). He was active from May 2024 to November 2024.

Architecture
  • Azure Data Factory pipelines, datasets and triggers are stored as JSON and deployed with Terraform. Datasets cover SQL Server, file-server CSV, REST/JSON, Delta Lake and Azure Synapse Analytics. Scheduled triggers pause the data warehouse.
  • Databricks notebooks cover init, ingest, stage, transform and load. They are deployed through Terraform and GitHub Actions.
  • A Python Azure Function App deploys notebooks from a Git branch to a Databricks workspace using the Databricks SDK. It authenticates with a service principal or a Databricks token. GitHub Actions workflows also set up clusters and mount the file system.
  • In each repository, Terraform prerequisites create an Entra ID application and service principal with a federated credential for GitHub Actions OIDC, plus role assignments.
Decisions
  • Data checks run after every ingestion and before any transformation, so a missing, late or malformed load fails the run before anything downstream is built on it: compute is saved and reports are never built on bad data.
Stack

Python, Azure Data Factory, Azure Databricks, Azure Synapse Analytics, Delta Lake, Azure Functions, Terraform, GitHub Actions (OIDC), databricks-sdk, azure-identity.

Evidence
  • He was lead engineer for orchestration, automation, execution monitoring and operations of the client's business-critical Azure data platform, which lets a single engineer run the company's entire national data warehouse. (self-reported; his account only. Limits: his own account; the client's operations are not public)
  • For this client he built data checks as Databricks notebooks that run after every ingestion and before any transformation, so a bad load fails before anything downstream is built on it, saving compute and keeping reports trustworthy. (self-reported; his account only)
  • He handled the technical side of the data warehouse and its infrastructure for a client with strict demands for a closed network and hub-and-spoke networking, and was the technical counterpart to the consultancy that built its infrastructure as code. (self-reported; his account only)
  • He was the main contributor to the platform's deployment service: a Function App that deploys Databricks notebooks from a Git branch into an environment, with service-principal or token credentials. (self-reported; his own records)
Records
526, May 2024 – Nov 2024
Languages
python 56%, yaml 27%, json 8%
Frameworks
Azure SDK 89, Databricks SDK 45, PySpark 2, pandas 1
Kinds of change
CI/CD 32%, infrastructure 6%, docs 5%

Martin Kamb AB, independent (2026–present)

Aegis

Aegis is a reference implementation for using LLMs on messy enterprise data. Its core is a semantic layer that tells a model what a cryptic schema means, measured as a text-to-SQL benchmark over a deliberately hostile, synthetic AS/400-era schema: on 120 held-out questions it lifted Sonnet 5 from 34% to 89% correct, and Haiku 4.5 with the layer beat the strongest model tested without it. A second theme, from November 2026, answers questions that need a company's documents as well as its tables: routed between search and extraction, it answered 94% of 117 held-out questions correctly, where the best search alone managed 74%. Routing sensitive workloads to local models is a third, unfinished one. Martin wrote it alone, August to November 2026.

Architecture
  • A generator builds the synthetic database in DuckDB; a scale test used Odoo 18's 643-table schema.
  • The layer is YAML (code meanings, encodings, metric definitions, join paths) sent to the model with each question.
  • An eval harness runs frozen question sets, reports intervals over question families, labels each wrong answer's cause, and gates layer edits like CI.
  • Connectors (SQL Server, Postgres, Snowflake, Databricks) measure questions on a real database without and with the layer.
  • A container next to the data serves the layer and guarded, audited queries to assistants over MCP, and pulls signed layers from a FastAPI/React control plane over one outbound connection.
Documents

Some questions need documents as well as tables: which customers' contracts carry a late-delivery penalty, what a customer's payment terms are since an amendment, how much revenue came from customers whose agreement has ended. Search over documents fails silently, the way the schema traps did: a top-k search can't count "every contract that…", a superseded clause looks exactly like a current one, and a chunk forgets which customer it belongs to. So questions are routed by their shape. Lookups go to search. Counts, lists, version questions and anything joined to the ERP data go to extraction: every document is read once, offline, into tables with a verbatim quote per row, and SQL counts exhaustively. The ERP's own customer and item master is the catalogue documents are linked to.

  • The corpus is 627 synthetic documents for the benchmark's fictional supplier: contracts, amendments, restricted annexes, complaint emails and tickets, and a handbook in three versions, 203 of them in Swedish and 28 PDFs. Each starts as a fact sheet drawn from the database's own rows; a model writes the prose and a check in code confirms every value is in the text. Traps are planted on purpose: negations, negotiated clauses that override the standard one, replaced agreements, customers sharing names, and instructions to the model hidden in emails.
  • CUAD, 510 real commercial contracts with clause labels from lawyers, checks extraction and search on documents nobody on the project wrote.
  • Chunks are clauses, sections or email messages, each with a context line written by Haiku 5.5 saying which document, customer and section it belongs to; fixed windows are the comparison.
  • Entity linking is code, not a model: stated customer and order numbers first, then names, and where customers share a name, the one that received the item mentioned.
  • Embeddings come from bge-m3, multilingual and run locally, so the corpus never leaves the machine. Vectors and BM25 live in DuckDB, the engine of the rest; no vector database. Retrieval is compared dense, BM25, hybrid with a Haiku rerank, and hybrid with filters, and every search is limited to the caller's access before ranking.
  • Passages reach the model through the same MCP server as the SQL path. An answer must cite a passage and quote the words it rests on, and the quote is checked against that passage in code, not by an LLM judge.
  • 153 questions in 50 families, gold answers computed by SQL on the truth database, were frozen with 13 predictions registered before any test run. Six configurations answer them through the assistant's own tool loop: no documents, dense search, hybrid search with reranking, hybrid with filters, routed, and an oracle handed every document in scope.

Results, Haiku 5.5 on 117 held-out questions, three repeats each: routed 94% correct, the best search-only configuration 74%, no documents 14%. On count and list questions routing scored 92% and search 5–16%, below even the oracle handed every document in scope (63%). On questions joining documents to database data, routing scored 84%, search 18–31% and the oracle 47%. Where search is the right tool (a clause someone asks about, the version in force, Swedish-only evidence, the reason behind a complaint) every search configuration scored 87–100%. A stronger model doesn't make search count: Sonnet 5 with search scored 16% on counts, often declining rather than guessing, and 84% with routing. Routing was also the cheapest, about $1.02 per 1,000 answers against $5.68–6.14 for search. No restricted value leaked in any configuration, none of 81 instructions planted in documents was followed, and nothing was written to the database. Citations are the weak spot: 70% of the routed answers' citations quote words found in the cited passage, and most of the rest cite without quoting.

Before any answer model: context lines lifted clause recall@5 from 29% to 80% on the 67 held-out questions a search can answer; on Swedish-only questions hybrid retrieval found 83% against 30% for BM25; every document was linked to a customer and none wrongly. On CUAD, extraction scored a macro F1 of 0.83 over 10 clause types, and asked which of 100 contracts contain a clause, top-10 search found 17% of them and extraction 91%. The PDF parser made no difference to finding clauses, only to how often quotes matched the text verbatim (94% against 87%).

The registered decision rule did not pass. It needed two predictions: the routing one held by a wide margin, but the other said every configuration without routing would score 35% or less on documents-plus-data questions, and the oracle scored 47%. 7 of 13 predictions held. Among the failures: filters added no accuracy on lookups, where search was already at 96%, and a date filter that left a superseded clause in the top 5 for 53% of version questions (the prediction said 10% or less) didn't mislead the model, which answered 98% of them right. Three grading rules were fixed after the test answers were seen; every verdict is the same under the rules frozen before the runs except one about declines. The model calls for the whole study cost about $30. Next, the same ingest is to propose semantic-layer entries from documents, with citations.

Decisions
  • A read-only database login is the boundary, beyond the harness's own single-SELECT guard, because the login makes a mistake harmless.
  • Offline runs use the Message Batches API instead of direct calls, at half the price.
  • Reference answers are verified on the live database before any model runs, because a wrong reference answer makes a right model look wrong.
  • Questions over documents are routed by their shape instead of tuning search harder, because ranking can't count or apply validity, however good the reranker.
  • Extracted rows land in the same tables as the truth, so one gold query runs on both and separates a wrong extraction from a wrong answer.
  • Gold answers stay real-world truth even where the documents can't support them; those are labelled unreachable, not dropped.
Stack

Python, DuckDB, Pydantic, sqlglot, Anthropic SDK, Ollama, bge-m3, SQLAlchemy, MCP, FastAPI, React/TypeScript, Streamlit, Docker.

Evidence
  • Martin built a semantic layer that tells a model what a cryptic legacy schema means. On 120 held-out text-to-SQL questions it lifted Sonnet 5 from 34% to 89% correct, and it added 36 to 68 points on every model and schema tested. (measured; reproducible by him. Limits: 120 held-out questions on one synthetic legacy schema; measured in his own harness, not independently)
  • He routed questions over documents between search and extraction: with Haiku 5.5 that answered 94% of 117 held-out questions correctly, against 74% for the best search alone, and 92% of count and list questions, against 5–16%. (measured; reproducible by him. Limits: the registered decision rule did not pass: an oracle handed every document scored 47% on documents-plus-data questions, above the predicted 35%; a synthetic corpus of 627 documents, written by a model from fact sheets designed alongside the questions; three grading rules fixed after the test answers were seen; one verdict differs under the frozen rules; 70% of routed answers' citations quote the cited passage; most others cite without quoting)
  • On a schema he did not design, Odoo 18 with 643 tables, the layer and 160 questions were frozen before any model call; the layer then moved Haiku 5.5 from 19% to 78% correct on 120 held-out questions. (measured; reproducible by him. Limits: one ERP schema (Odoo 18) seeded with synthetic trading; his own harness)
  • With the layer, the cheapest model tested matched the strongest: Haiku 5.5 scored 92% on held-out questions, level with Opus 5.5 at a 29th of its cost per correct answer. Without the layer it scored 30%. (measured; reproducible by him. Limits: the same synthetic schema; costs at list prices when measured)
  • His ablation showed where the value lies: removing exceptions and encodings cost 39 to 41 points and metric definitions 18 to 23, while documented join paths cost nothing measurable. The knowledge nobody writes down carries the result. (measured; reproducible by him. Limits: one schema family, ablated in his own harness)
  • He ran it as an experiment, not a demo: questions frozen before measuring, predictions registered before the first call, intervals over question families, and the four predictions that failed published beside the ones that held. (self-reported; his own records)
  • He made the evaluation a CI gate for the layer, since an edit to it changes business meaning: an edit that redefined net revenue was blocked when five questions went from 9/9 right to 0/9, while a harmless rewording passed. (measured; his own records. Limits: one edit blocked and one passed: a demonstration, not a rate)
  • For questions that need documents as well as tables, he routes by the question's shape: lookups go to search, while counts, lists and version questions go to extraction into tables with a quote per row, since ranking cannot count or apply validity. (self-reported; his own records. Limits: the registered decision rule did not pass: one of its two predictions failed)
  • On CUAD's real contracts, asked which of 100 contain a given clause, top-10 search found 17% of them and his extraction 91%, at about 83% precision. (measured; reproducible by him. Limits: retrieval and extraction only, no answer model; CUAD is not linked to ERP data)
  • He checked that answers are right for the right reason: re-grading about 4,600 correct answers against three databases generated from other seeds changed 45 of them. (measured; reproducible by him. Limits: the neighbour databases come from the same generator)
  • He built the controls around it: per-role databases, a scope guard that catches misleading answers, a hash-chained audit log, and an MCP server that gives assistants the layer with guarded, audited queries. (self-reported; his own records)
  • He showed that a stronger model does not make search count: Sonnet 5 with search answered 16% of count questions, often declining rather than guessing, and 84% with routing. (measured; reproducible by him. Limits: three configurations only for Sonnet 5)
  • Across every configuration no restricted value leaked, none of 81 instructions planted inside documents was followed, and nothing was written to the database. (measured; reproducible by him. Limits: instructions he planted himself, in a synthetic corpus)
  • A context line per chunk, saying which document, customer and section it belongs to, lifted clause recall@5 from 29% to 80% on his frozen document questions. (measured; reproducible by him. Limits: a synthetic corpus of 627 documents, written by a model from fact sheets designed alongside the questions)
  • He recorded a failed prediction: filtering by date in force did not remove superseded clauses, which stayed in the top 5 for 53% of version questions, because an amended contract is in force while its old clause is not. (measured; reproducible by him. Limits: the stale clause did not mislead the model: it answered 98% of version questions right; clause-level supersession is not handled yet)
Records
2,219, Aug 2026 – Nov 2026
Languages
python 28%, data 26%, docs 22%
Frameworks
MCP 118, Anthropic SDK 106, Pydantic 50, pandas 38, pytest 23, FastAPI 21
Kinds of change
docs 41%, LLM & evals 15%, tests 9%

Kronspar

Kronspar (Kronspår) is an analysis pipeline over Swedish open procurement data. It points to where competition looks weaker than expected or where spend has no visible procurement behind it, framed as prompts for review, never findings of wrongdoing. Martin wrote it alone, in October 2026.

Architecture
  • A kronspar CLI ingests and caches open data: Upphandlingsmyndigheten statistics, TED eForms notices, Bolagsverket company data, Kolada peer groups, state framework agreements from avropa.se, and supplier ledgers from municipalities that publish them, some discovered automatically on Sveriges dataportal.
  • Build runs SQL models in DuckDB. The competition layer flags, for example, a high single-bid rate against the national rate for the same year and CPV division, repeat winners and newly registered winners. The spend layer links each supplier's yearly spend to a procurement or framework agreement, triages large unmatched spend, and lists suppliers worth sampling per committee or department.
  • Outputs: a Streamlit dashboard, Swedish follow-up reports (HTML and PDF) and sampling CSVs.
  • Personal identity numbers are pseudonymised at load, and names of natural persons are dropped.
Decisions
  • The dashboard reads a snapshot that each build publishes, not the working database, so ingest and build can run while it is open.
  • Reports are written to read well if published: points are phrased as questions, never conclusions.
  • Adda framework links count as weaker than state framework links, because the municipality's connection cannot be verified in open data.
Stack

Python 3.13, DuckDB/SQL, httpx, lxml, Streamlit, Altair, uv, pytest.

Evidence
  • Checked against published audits of municipal purchasing, 11 of the 15 suppliers on Kronspår's sampling list had drawn an auditor's remark. He reports it as in-sample: two rules were tuned on the same audits, and with the earlier rules 7 of 9 had. (measured; his own records. Limits: in-sample: two rules were tuned on the same audits; 15 suppliers, from a few published audits)
  • He built a pipeline that joins Sweden's open procurement statistics, EU tender notices, the company registry and municipal supplier ledgers in DuckDB, finding published ledgers on the national data portal and mapping each file's columns from its header. (self-reported; his own records)
  • Every signal compares a buyer with the national rate for the same year and CPV division, or with similar municipalities, and is framed as a prompt for review, never a finding of wrongdoing. (self-reported; his own records)
  • He classifies each supplier's yearly spend by how it can be explained (the buyer's own procurement, a state framework it is connected to, other legal regimes) and counts framework matches that can't be verified as weaker. (self-reported; his own records)
Records
315, Oct 2026 – Oct 2026
Languages
python 46%, sql 30%, docs 16%
Frameworks
pandas 35, pytest 6
Kinds of change
schema & SQL 30%, docs 16%, tests 4%

kamb.nu

kamb.nu is a model of Martin made of the records of his own work: one point per changed block of code in his commits, extracted on his machine as metadata only. Every view is a query over those records, and one command language is shared by the console, the links, the suggested questions, a language model and an MCP server. Martin wrote all of it, from October 2026.

Architecture
  • An extractor reads his repositories locally and keeps only metadata: time, project alias, language, lines added and removed, kind of work, and which frameworks the changed file imported. The records are stored as columnar typed arrays.
  • A GPU spring simulation moves every record toward a target computed in shared GLSL, so each point keeps its identity through every view: rings of years, projects, languages, years, a CV and an architecture.
  • A command language defined in zod drives a pure reducer; the console, links, the model and MCP all emit the same commands, and the state is the link.
  • The model answers in the third person from a cached corpus and one query tool over the records. Each step is validated before it reaches the browser, and each number is checked against the queries that answer ran.
  • A Cloudflare Worker serves the site, the model endpoint, the MCP server and live presence. Commits arrive live from post-commit hooks, and a nightly job re-extracts the records, commits them and deploys.
Decisions
  • Metadata only: commit messages, file paths and code never leave his machine, and client work is aliased.
  • One command language for visitors, links and the model, so the model can do nothing a visitor couldn't type.
  • Numbers come from queries, never from the model's memory, and the published evals check it.
  • Results and decisions come from evidence Martin wrote, each marked with who stands behind it, beside the records of the work behind it.
Stack

TypeScript, three.js (WebGL2, GPGPU), zod, Vite, Cloudflare Workers and Durable Objects, the Claude API, MCP, Node's test runner.

Evidence
  • Every number the model states about the records has to come from a query it ran in that answer; the worker checks each one against those results, and the published evals count how many held. (measured; anyone can check. Limits: the check matches the named row's value, not the meaning of the sentence)
  • One command language, defined in zod, is shared by the console, links, suggested questions, the model and an MCP server, so the model can do nothing a visitor couldn't type. (self-reported; anyone can check)
  • With a cached corpus and one query tool, Haiku 5.5 is within a case or so of Sonnet 5.5 on the published evals, at about a twentieth of the cost per question. (measured; anyone can check. Limits: 52 cases, one run per model, graded by rules)
  • Records are extracted on his machine as metadata only; framework use is read from the changed file's imports and then dropped, and commit messages, paths and code never leave it. (self-reported; anyone can check)
  • Each point is a real record and keeps its identity through every view, because one GPU simulation moves every record toward targets computed in shared GLSL. (self-reported; anyone can check)
Records
1,096, Oct 2026 – Nov 2026
Languages
typescript 78%, docs 7%, json 7%
Frameworks
three.js 265, zod 106, Anthropic SDK 37, React 1, Redux 1
Kinds of change
frontend 55%, schema & SQL 13%, tests 9%

On the side

Side projects

Smaller projects, plus one fix to an open-source Microsoft project. Martin wrote all commits in his own repositories, December 2025 to October 2026.

Architecture
Home infra

A Raspberry Pi running Docker Compose services: Pi-hole ad blocking, a VPN, and cron jobs that send health alerts to Discord. A weekly systemd job backs up config, upgrades the OS and updates container images with automatic rollback. A Python script pulses a Philips Hue light when an Azure DevOps pipeline finishes.

Ingestion Guard

An experiment in catching missing, late or malformed inbound data before it reaches reporting. A runner next to the data checks files on disk or in Microsoft Fabric OneLake; a FastAPI and Postgres control plane with a React UI manages pipelines and alerts. April 2026.

eldir-web

A React and TypeScript front end built with Vite, Tailwind CSS and Framer Motion, in April 2026.

claude-restore

A standard-library Python tool for macOS that reopens the Claude Code sessions open before a shutdown, one iTerm2 tab each, from snapshots a LaunchAgent takes every minute. MIT licence, October 2026.

SaaS Accelerator fix

One commit (September 2026) in Martin's fork of Microsoft's Commercial Marketplace SaaS Accelerator. The documented install left the .NET tools folder off PATH, so deployment failed midway; the fix corrects the snippets and checks for dotnet-ef before any Azure resource is created.

Decisions
  • Home infra: only security patches install daily; Docker and kernel upgrades wait for the weekly window, because they restart containers or need a reboot.
  • Home infra: the build light polls Azure DevOps instead of using webhooks, because webhooks would need the device reachable from the internet.
  • claude-restore: a snapshot is only written while a session runs, so the first run after a reboot never wipes the previous one.
Stack

Python, Bash, PowerShell, Docker Compose, systemd, FastAPI, Postgres, React, TypeScript, Vite, Tailwind CSS.

Evidence
  • Microsoft's documented install for its Commercial Marketplace SaaS Accelerator failed midway because the .NET tools folder was off PATH. He fixed the snippets, added a check for dotnet-ef before any Azure resource is created, and opened a pull request upstream. (self-reported; anyone can check. Limits: the pull request is not merged yet)
  • He published claude-restore, an MIT-licensed tool that reopens Claude Code sessions after a reboot; a snapshot is only written while a session runs, so the first run after a reboot never wipes the previous one. (self-reported; anyone can check)
  • His home infrastructure stays unreachable from the internet: the build light polls Azure DevOps instead of taking webhooks, and only security patches install daily, while upgrades that restart containers wait for a weekly window with automatic rollback. (self-reported; his account only)
  • In Ingestion Guard, an experiment in catching missing, late or malformed data before it reaches reporting, he put the checks next to the data and sent only their results to the control plane. (self-reported; his own records)
Records
569, Dec 2025 – Oct 2026
Languages
python 36%, typescript 25%, docs 14%
Frameworks
FastAPI 55, React 53, SQLAlchemy 28, Pydantic 16, Alembic 3, Azure SDK 1
Kinds of change
frontend 27%, docs 14%, tests 9%

The model on this site

The model on kamb.nu answers questions about Martin and drives the portrait while it does. It speaks about him in the third person. It is not Martin, it doesn't speak for him, and it doesn't make commitments on his behalf.

Intended use

Questions about Martin's work, projects, skills and experience, and about how this site works. Everything else gets one polite sentence and a suggestion. Availability, rates and hiring go to Martin himself.

How it answers

What keeps it honest

Why it's built this way

What the evals caught

The first runs failed on real problems, each fixed and now covered by a question:

Evaluation

Golden questions, last run 2026-11-03. Every question, answer and check is in the model card on the site (type model).

claude-haiku-5-5
56/58 passed · numbers 124/124 traced to a query or the corpus · $0.0007 per question
claude-sonnet-5-5
58/58 passed · numbers 129/129 traced to a query or the corpus · $0.0133 per question

Limits

What this site keeps

For agents

kamb.nu/mcp is an MCP server: any MCP client (Claude Code, Codex, an IDE, a recruiter's own agent) can read the profile and projects and run query_records, the same tool this model uses. The client's own model does the talking, so this site pays for none of it. kamb.nu/llms.txt describes the site for language models.

Claude Code
claude mcp add --transport http kamb https://kamb.nu/mcp add --scope user to have it in every project
Codex
codex mcp add kamb --url https://kamb.nu/mcp
any other MCP client
https://kamb.nu/mcp Streamable HTTP, no sign-in, read-only

Data

Each record is one changed block of code in one of Martin's commits. Metadata only, extracted on his own machine. The kind of change (tests, CI, infrastructure, schema, frontend, docs, notebooks, AI) comes from the file path, which is then discarded.

kamb.nu a model of Martin Kamb text version technical co-founder and full-stack lead engineer · data platforms, applied AIco-founder, full-stack engineer · cv · how it works · martin@kamb.nucontact