Re-run it yourself: a practice site, from a clone to a first trail
This page says what it takes to make the practice site on your own host and read the first order trail from it: what the host needs, the six commands, how long they take, what a run costs in model calls, and what none of it shows. Every figure comes from a run on one disposable host, and the page says which steps were not run.
Every value on this page is invented. The order, the lot, the quantities and the target systems the practice site makes are made up for the practice. Nothing here is a real order, and nothing says a real site would read this way.
This is test tooling, not part of the public API. The site script and the commands it runs may change in any release, and the stability policy (public-api-stability.md) does not cover them.
What you need
Five things. deployment/practice_site.sh prerequisites prints them, one line each, and changes nothing.
The list below is the script's own:
deployment/practice_site.sh prerequisites
- Operating system: Ubuntu 24.04 LTS (the one supported platform)
- PostgreSQL 16 with pgvector: a running server whose superuser you can reach, plus its server programs initdb and pg_ctl
- Python 3.12, with the engine installed (poetry install in the checkout)
- Poetry
- One inference endpoint (Ollama by default) serving a chat model you name with --model and an embedding model (nomic-embed-text by default)
"A superuser you can reach" means the PostgreSQL superuser. The up command (deployment/practice_site.sh up,
which builds the site and is described in the next section) runs psql as that user through
sudo -n -u postgres, unless you say otherwise in KINDRED_PRACTICE_PSQL_ADMIN. Nothing is downloaded for
you: pull the models onto your endpoint first. A real up (not the dry run) also needs these ports free:
18420 to 18422, 18470, 18471, 18480, 18090, 18091 and 18432.
The six commands
From a host that already has PostgreSQL 16 with pgvector, Poetry and a model endpoint, it is six
commands to the first trail: the clone, poetry install, a dry run, up, status and the trail call.
Changing into the clone is not counted.
git clone https://gitlab.com/kindred.pm6/kindred.git
cd kindred
poetry install
deployment/practice_site.sh up --dry-run --model NAME
deployment/practice_site.sh up --model NAME
deployment/practice_site.sh status
KINDRED_MANAGEMENT_URL=http://127.0.0.1:18470 \
KINDRED_MANAGEMENT_TOKEN_FILE="$HOME/.kindred-practice-site/asking-node.token" \
deployment/kindred_management.sh trail MD-2027-0301
NAME is the chat model your endpoint serves. A real up refuses a run with no --model, because a
model's name is a fact about your endpoint and the site cannot know it. --inference-endpoint URL names
an endpoint other than the default, http://127.0.0.1:11434.
- The dry run checks which tools the host lacks, prints the plan and changes nothing. Run it first.
upbuilds the site in~/.kindred-practice-site: a certificate authority and a certificate for each of three Nodes (MES, ERP and Production Scheduling), a database for each, the invented target systems, two Management APIs and their tokens, and then it plays one invented order into the MES's target database. It refuses a directory that already exists.statusasks each Node over mutual TLS whether it is up, and shows each Node-to-Node link as that Node sees it. It exits1if any Node is down.- The trail call asks the MES's Management API for the order's trail. It returns the order's entries,
"complete": truewhen every Node the MES asked answered, and"contributing_node_types"for the Nodes that filed something under the order. On a fresh site that holds the MES alone: ERP and Production Scheduling file nothing under this order until something asks them. One late order across a site says what asks them.upreturns when the last row is played, not when the MES has read it, so the order can readin-progressfor a few seconds, and a trail call made at once can hold fewer entries. The order's status is in the answer, atrecord.attributes.status: if it is notblocked, run the trail call again until it is (what you need there says why).
From a bare host
The count above is not a count for a bare host, and the page gives none. A host that lacks PostgreSQL 16 with pgvector, Poetry or a model endpoint adds steps first:
deployment/install_postgres_pgvector.shinstalls PostgreSQL 16 and pgvector from Ubuntu's own packages.deployment/install_python_venv_poetry.shinstalls Poetry, with the Python tools it needs.- The operating system's own packages for anything else the host lacks.
- A model endpoint, and the two models pulled onto it.
None of these was run for this page. The run behind the count was on a host that already had them.
How long it takes
| What | How long |
|---|---|
up --dry-run |
at once |
up |
about 16 to 18 seconds (28 seconds on a host with its four CPUs held by eight busy loops) |
the order reading blocked |
about 18 seconds after up started |
reset |
about 21 to 23 seconds |
down |
about 14 seconds |
| an ask of a model (status or shortage) | 1.6 to 4.6 seconds with a warm model |
| the order narrative | 2.7 to 3.6 seconds with a warm model |
| the fixed fact listing, with the model off | about 0.12 seconds |
| the first model call after the model has been idle | about 17 seconds, after 16 idle minutes |
These are one model, on one host, with one trail size. The chat model was one reasoning model with
reasoning_effort set to none, the embedding model was nomic-embed-text, and the figures for how much a
model writes come from a trail of 19 entries. Another model, another host or a longer trail will give other
numbers.
What one run costs in model calls
The site asks a model by itself, and the pages ask it when you run an ask.
- By itself, in the first minute. Two asks: the MES's triage of the weld reading under its limit (the
Activity Log trigger
deviation) and one scheduled check of its cases (case_triage_scheduled_check). Each is a short answer with reasoning off. The scheduled check repeats on a schedule, and that rate was not measured, so this page cannot say how many asks a site left up makes in an hour.resetplays the order again, so it brings the first two with it. - One late order across a site. Three calls: the status ask, the shortage ask and the narrative. Measured on one model with the 19-entry trail, the answers needed about 25, 90 and 190 tokens, against an output cap of 400 each. That is a few hundred tokens at most for any one of them.
- A Node stopped and started. Eight, each a narrative, asked in one loop.
- Answers the site will not invent. Two chat asks, one the documents answer and one that only touches their subject. Loading the 18 sample documents sends them to the embedding model once (about 2 seconds on a warm embedding model), and each question goes to it too. A question that retrieves nothing asks no chat model and takes about 1 to 3 seconds.
- Two Nodes that disagree, tampering with the Activity Log, and a certificate that fails. None.
Only a local inference endpoint was tried, and a hosted one is untried.
Limits
- The data is invented. The order, the lot and every target system are made up for the practice. The site says nothing about how a real site's systems would read.
- The tooling is test tooling. The site script, its practice-only commands and the stand-ins are outside the stability policy (public-api-stability.md) and may change in any release.
- Nothing was run on a bare host. The commands were run on a host that already had PostgreSQL 16 with pgvector, Poetry and a model endpoint.
- The services do not survive a reboot. The Nodes, the stand-ins and the target database server are
processes the script started, not services the operating system starts again. After a reboot
start NODEbrings a Node back with what it needs andresetbrings back the whole site. That was run as a simulated reboot, with the target database server and both stand-ins stopped by hand; a real reboot was not run. - A certificate replacement is not for a site you mean to keep. The last case of
A certificate that fails
replaces the site's authority, and it ends with
down: afterwards the MES cannot verify its target system's database server,resetfails, and onlydownand thenupmakes a site again. Run that case on a site you are ready to throw away, and last.
What this does not show
- A clone from the public address. The run behind the count cloned a copy of the work tree carried to the host, which took two commands more, and printed the prerequisites with one more: nine in all. The clone in the block above is the same command with the public address, and was not run as written.
- A site left running. Nothing here was kept up for a day or a week, or given more than the invented data.
- A browser. The order trail page and the review pages were not opened in one for this page.
- Another model. The figures are one model's. A model that does not accept
reasoning_effortwas not tried, and a model name the endpoint does not serve was not tried either. - A real site. The practice site is a rehearsal on one host. It does not install the Node's service, and it says nothing about how a Node is provisioned, hardened or backed up (integrator-walkthrough.md covers installing a Node).
Where next
Each of these runs on the site you made, one question to a page:
- One late order across a site: the trail, two asks and a drafted narrative, and what each does with the model switched off.
- A Node stopped and started: a trail that names who is missing and completes by itself.
- Two Nodes that disagree: a disagreement the trail reports and does not settle, and a record that waits for a person.
- A certificate that fails: a certificate renewed, refused, lost and replaced. Its last case ends the site.
- Answers the site will not invent: a question the documents do not answer, and a draft that stays a draft until a person decides it.
- Tampering with the Activity Log: an edit made by someone who turned the guard off, and what the check reports.
What the test checks
tests/test_re_run_it_yourself_page.py holds this page to what it names. It pins:
- The prerequisites. The five above are the five in the script's
PREREQUISITESlist, word for word, and the page's list is whatprerequisitesprints. - The count. The block has six commands, not counting the change of directory, each of which is one the script or the management tool has, with only flags the script has.
- No bare-host claim. The page gives no count for a bare host, says the steps a bare host adds were not run, and names only scripts that exist.
- The endpoint. The page says in one line that only a local endpoint was tried and a hosted one is untried, and claims no hosted endpoint works.
- The limits and what is not shown. Each is present, and the page offers no certificate replacement
for a site you mean to keep and says that one ends with
down. - The links. All six pages it links exist, are listed in the documentation index, and every heading it links to exists. The integrator page links this page and the six.
It does not build a site or run a model.
Release: v0.11.0