Quality and delivery
Quality and security first: Tsadi derives the tests, Ayin judges the code, Litush polishes it, Katharsis drives the release and Arkhos deploys the microservices.
In use on every repository of the family
Quality and delivery
MLambda builds its own tools for the whole path from a commit to production, because quality and security are not a stage at the end: they are gates every change passes before it may move. Each tool has one job, and each decides by Shin laws, with Max agents choosing when to act.
| Tool | Its one job |
|---|---|
| Tsadi (צ) | Creates the tests |
| Ayin (ע) | Creates the quality report |
| Litush (ליטוש, “polish”) | Fixes the code until Ayin is satisfied |
Katharsis (mh) |
Creates the CI/CD files and drives the release flow |
| Arkhos | Creates the infrastructure’s files and deploys |
| Helios | Keeps what every service reports: traces, logs and metrics |
| Playground | Proves each window against its prototype |
The path of a change
feature/<name> ──► pre-commit ──► local gate ──► PR into dev ──► dev ──► PR into main ──► main ──► tag vX.Y.Z
(Ayin on the (the PR's CI (checks) green (checks) rc packed final packed
staged code, run locally │ │
Litush fixes) in a container) Arkhos deploys Arkhos deploys
(staging) (production)
- Work happens on a feature branch in its own worktree, cut from dev by
mh create feature. dev and main move only by merged pull requests, which Katharsis’s git-flow laws enforce through git’s hooks. - Pre-commit: the staged code is verified (
aleph test --verify --staged), and Litush can fix what Ayin finds in place (litush clean --staged --in-place). The manual hooks (mh hook run tsadi,mh hook run ayin) run before a pull request. - Green here before GitHub:
mh feature pushruns the pull request’s CI locally first, in a container, with the whole family laid out as it will be after the push, and pushes only when it is green. - The release flow: the pull request into dev, dev green, the pull request into main, main green, the tag. A service or app is packed on main (its release candidate) and on the tag (its final), and deployed by Arkhos.
- Done means on main, every workflow green, tagged.
Tsadi: the tests are derived, not guessed
Tsadi reads a system’s model (its laws, its routes, its states) and derives its test obligations from it,
writing them as Dream scenes that aleph test --discover runs. A rule with three branches gets a
scene per branch. A route gets a scene for each refusal it can give. Tsadi’s findings, the arms it could not reach,
feed Ayin’s report. When Tsadi cannot arrange a scene’s world, Tsadi is fixed, never the test.
Ayin: the bar
Ayin measures a package and writes its quality gate’s report. A report is green only with:
- 0 warnings
- security rated A
- reliability rated A
- coverage of at least 95 % of the scenes Tsadi derives, with every scene passing
A “warn” verdict is not done. A real finding is fixed in the code. A false positive is fixed in Ayin. Nothing is baselined away.
Litush: the code is polished until Ayin is satisfied
aleph clean refactors a member’s code until Ayin passes. Six Max agents each make one decision (the Judge
asks Ayin, the Planner derives the alternatives, the Refactorer applies the next, the Guard keeps it,
undoes it or bisects a failed batch, the Handoff asks Tsadi, the Reporter writes the run). Shin laws derive
what each recipe may try on each of Ayin’s codes, what is never written, and when the run stops. Aleph only reads the
code into facts and writes the edits. A finding that remains must carry a comment that says why.
Katharsis and mh: the release flow as a tool
mh, the MLambda hub, replaces gh for the family’s work. It knows where every change is and what comes next, and
whether the CI takes that step (mh waits) or the hub does (mh does it):
mh create feature,mh feature push,mh feature land,mh watch;mh flow nextandmh flow run, which never stop short of the tag;mh ci ensure, which guarantees every repository’s CI is active and written from the family’s hub (.mhub);mh status,mh why(a failure explained by laws),--jsonon every verb for agents.
Every decision is a Shin law (GitFlow.hs, Gate.hs, Ci.hs, Flow.hs, Errors.hs), and the Flow agent acts or
waits. The CI is built per kind: libraries on Linux and Windows, services on Linux, apps and shells with their
windows. Runners are self-hosted, and no GPU job ever runs in CI.
Arkhos: microservices, deployed by their own facts
MLambda’s services and apps are microservices: one Samek gateway, isolated services of stateless actors, repositories on MLambda.Data and policies on the bus, each a small native binary in its own container. Deploying dozens of them per client by hand would be the riskiest step of all, so Arkhos makes it mechanical:
- Samek writes what a system makes (
deploy/artifacts.toml) from the code. - A person writes the infrastructure that exists (
deploy/infra.toml: one table per environment) and each client’s settings (clients/<id>.toml). Every client gets its own deployment and its own kernel. - Arkhos writes each environment’s deployment (
deploy/<env>.toml) and each target’s files (Helm charts for Kubernetes, Compose for Docker), then puts them in place through plugins:arkhos deploy kubernetes prod. - Routes, sites and network policies are written for every path, so a route reaches only the pods it names.
- Hostnames go through a Cloudflare Tunnel;
arkhos seedsets a client up at its OAuth and seeds its data. - Secrets are never values in a file: a deployment names the variable that holds a kubeconfig or a token, and an unset variable is a named fault.
The family’s clusters are configuration in MLambda.Cluster (a folder per deployment, laid out like a Terraform root), and Arkhos builds and deploys them.
Metrics, and integrations by events
Once deployed, every Samek service reports its spans, logs and counts with nothing written for it, and Helios keeps them: one request followed from the client to the database, dashboards, watchers that raise an event when a value crosses a threshold, and objectives with error budgets.
Apps never call each other. Each publishes events, and Make hears them and runs the flows that integrate the apps (MLambda.Bridge holds those integrations as bundles Make imports). An integration is something you can see, replay and change, not a call buried in code.
Security by construction
No switch turns a protection off, and everything fails closed: tokens only from environment variables, never on a command line; signed packages; every client door signed in through OAuth; network policies per route; dependency fetches that drop credentials on cross-origin redirects.