Answers the site will not invent: a question the documents do not answer, and a draft that waits
Two things a Node is built not to do, tried on a three-Node practice site. It does not make up an answer
when its documents hold nothing near the question: the retrieval gate says incomplete, no model is
asked, and the answer says there is not enough information. And it does not settle a draft its own model
wrote: the draft waits as a pending record until a person decides it, and the decision is recorded
against the id of the token that made it.
Every value on this page is invented. The documents are the shipped sample set of an invented company, the order and the draft's subject are invented, and the words a model writes are written about made-up data. Nothing here is a real document, and nothing says how a real site's questions would score.
This is test tooling, not part of the public API. The site script and its commands may change in any release, and the stability policy (public-api-stability.md) does not cover them. The retrieval gate and the review routes the commands use are documented in retrieval-quality-gate.md, playbook-answer-synthesis.md and management-api.md.
What you need
- A running practice site, as in A Node stopped and started. The
order does not have to be blocked for the first part. The second part needs a draft to exist, which
the MES makes by itself about half a minute after
upreturns (see Part 2). - An embedding endpoint beside the chat model, for Part 1.
uptakes--embedding-model(defaultnomic-embed-text) and--embedding-endpoint(default: the chat endpoint). Loading the documents embeds them, and every question is embedded. An incomplete answer needs no chat model; a question the documents do answer does. - The retrieval gate's bars were measured on one embedding model,
nomic-embed-textat 768 dimensions, on a small set of documents. A different model scores on a different scale, and the bars may then refuse an answerable question or let through one the documents do not answer (how to measure them again). The command used here prints the bars and says so every time.
Run the commands from the repository root, in one shell, after this once:
SITE="${KINDRED_PRACTICE_DIR:-$HOME/.kindred-practice-site}"
export KINDRED_PRACTICE_DIR="$SITE"
PS=deployment/practice_site.sh
mes_reviewer() { # the MES's Management API, with the token a person reviews drafts with
KINDRED_MANAGEMENT_URL=http://127.0.0.1:18470 \
KINDRED_MANAGEMENT_TOKEN_FILE="$SITE/mes-reviewer.token" \
deployment/kindred_management.sh "$@"
}
pending() { # the drafts that wait for a person: id, type, who drafted it, when
mes_reviewer signoffs status=pending |
python3 -c 'import json, sys; [print(r["id"], r["record_type"], r["status"], r["submitted_by"], r["submitted_at"]) for r in json.load(sys.stdin)["records"]]'
}
Part 1: a question the documents do not answer
Practice only: two commands stand in for what the site does not have. The site has no route that asks a
Node a question over documents, and the MES's config has no document intake, so documents cannot reach it
through the Management API's document routes as up leaves it. load-sample-documents and
ask-documents run the MES's own code in a second process, built from the MES's config and database. The
first gives the shipped invented document set (examples/sample-documents, described in
sample-document-set.md) to the loader that page describes, with the site's
embedding endpoint, into the MES's own store. The second builds the MES's point-of-use answerer the way the
Node builds it, over the same store, and asks it one question. Neither is a route, and neither adds one.
Step 1: ask before anything is loaded. An empty store reads as incomplete too, which is why the
command says how many documents the store holds:
$PS ask-documents "What torque do I use on the cover bolts of the KX-200 pump housing?"
Practice-only ask: the MES's own point-of-use answerer, run in a second process built from the
MES's config and database. The running MES Node was not asked; its Activity Log gets the entry
it would leave for a question asked of it.
store: 0 documents (run load-sample-documents first)
question: What torque do I use on the cover bolts of the KX-200 pump housing?
retrieval: incomplete (2 pass(es)); best score 0.000
bars: strong 0.75, weak 0.65; below 0.60 nothing is an answer. They were measured on nomic-embed-text at 768 dimensions, one model; this endpoint serves nomic-embed-text at 768, and another model scores on another scale.
answer (no model was asked: nothing was retrieved to answer from):
I don't have enough information in the Playbook to answer that question.
Step 2: load the sample documents.
$PS load-sample-documents
Practice-only load: the sample documents go into the MES's own store, in its database,
embedded with the site's embedding endpoint. The running MES Node was not asked.
These are sample documents: every one is invented, and the set says nothing about what a real site's documents look like.
loaded sop-0412
loaded sop-0188
...
loaded memo-handover-12-jan
note: dn-0451 revision B: no effective range was given, so it is treated as applying from 2026-11-21, the day it was loaded
refused, as the manifest says it should be: documents/empty.md: ['text: value_error']
18 of 19 documents loaded, 1 refused as expected. These are sample documents: every one is invented, and the set says nothing about what a real site's documents look like.
The lines between the first two loaded documents and the last are left out here. The loader refuses a store
that holds documents it did not load (exit 4), so it cannot put the set into a real site's store by
accident, and a second run replaces what the first loaded and does not duplicate it.
Step 3: ask a question the documents answer.
$PS ask-documents "What torque do I use on the cover bolts of the KX-200 pump housing?"
store: 18 documents
question: What torque do I use on the cover bolts of the KX-200 pump housing?
retrieval: strong (1 pass(es)); best score 0.835
bars: strong 0.75, weak 0.65; below 0.60 nothing is an answer. They were measured on nomic-embed-text at 768 dimensions, one model; this endpoint serves nomic-embed-text at 768, and another model scores on another scale.
sources: sop-0412 (0.835), wi-0071 (0.768)
answer (written by the model from the sources above; a draft, not a determination):
The six cover bolts of the KX-200 pump housing must be torqued to 40 Nm (sop-0412). This should be performed in a star pattern using two passes: first to 20 Nm, and then to 40 Nm (sop-0412). The process should start from the bolt nearest the drain port and finish at the bolt opposite it (sop-0412).
The first three lines of the command's output, the practice-only notice, are left out of this and the next blocks. The retrieval line, the score, the sources and the figures in them come from the gate and the store. The answer is one run's output, written by a model from the sources, and labelled a draft.
Step 4: ask a question they do not.
$PS ask-documents "What time does the canteen open on a Friday?"
store: 18 documents
question: What time does the canteen open on a Friday?
retrieval: incomplete (2 pass(es)); best score 0.523
bars: strong 0.75, weak 0.65; below 0.60 nothing is an answer. They were measured on nomic-embed-text at 768 dimensions, one model; this endpoint serves nomic-embed-text at 768, and another model scores on another scale.
answer (no model was asked: nothing was retrieved to answer from):
I don't have enough information in the Playbook to answer that question.
The gate looked twice (the second time with a wider net and a lower bar), found nothing at or above 0.60,
and said incomplete. No model was asked: the answer is the fixed sentence, written by code, and no
text was made up to fill the gap. The Node left one entry in the MES's Activity Log for each question
(trigger point_of_use_question, task type retrieval support); for this one the outcome is
not_enough_information and it names no document. Read them:
KINDRED_MANAGEMENT_URL=http://127.0.0.1:18470 KINDRED_MANAGEMENT_TOKEN_FILE="$SITE/asking-node.token" \
deployment/kindred_management.sh activity-log limit=200 |
python3 -c 'import json, sys; [print(e["trigger"], e["task_type"], e["outcome"], e["reference_ids"]) for e in json.load(sys.stdin)["entries"] if e["task_type"] == "retrieval support"]'
point_of_use_question retrieval support not_enough_information {}
point_of_use_question retrieval support grounded {'wi-0071:0': 'wi-0071', 'sop-0412:0': 'sop-0412', 'sop-0412:1': 'sop-0412', 'sop-0412:2': 'sop-0412', 'sop-0412:3': 'sop-0412', 'prompt_name': 'point_of_use_sop_lookup', 'prompt_version': '0.1.0'}
point_of_use_question retrieval support not_enough_information {}
Three entries, one for each question so far, oldest first. The first (the empty store) and the last (the
canteen) are not_enough_information and name no document. The second, the torque question, is grounded:
it names the chunks the answer was built from and the prompt that wrote it.
An unrelated question scored lower (a football result scored 0.461 on the same run), and both are well below the bar.
Step 5: ask one that only touches the subject. The gate's bars were set so that a question that touches what the documents are about is treated as answerable, and a question about something else entirely is not:
$PS ask-documents "How are pump housings painted before shipping?"
store: 18 documents
question: How are pump housings painted before shipping?
retrieval: broadened (2 pass(es)); best score 0.660
bars: strong 0.75, weak 0.65; below 0.60 nothing is an answer. They were measured on nomic-embed-text at 768 dimensions, one model; this endpoint serves nomic-embed-text at 768, and another model scores on another scale.
sources: sop-0151 (0.635), sop-0412 (0.660), wi-0071 (0.651)
answer (written by the model from the sources above; a draft, not a determination):
The provided documents do not contain information regarding how pump housings are painted before shipping.
The gate does not say incomplete here: three documents about pump housings scored between 0.635 and
0.660, above the 0.60 bar, so it broadened and went on. The model, given the excerpts, said they do not
answer the question. That is the second line of defence, and it is a model's: the gate did not stop this
one. A question that touches the subject is passed on by design, and whether the model then says so is
not something the gate guarantees. A second such question on the same run ("What is the procedure for
calibrating a torque wrench?", best score 0.695) was answered the same way.
Part 2: a draft that waits for a person
The site's Nodes ask the model by themselves. The weld reading under the limit makes the MES triage it
(Activity Log trigger deviation), and the MES drafts a case summary of it, which it submits for sign-off.
A draft is a record in the MES's own database with the status pending. Nothing the Node runs changes
that status: only a person's decision does, and the route that takes it records the token that made it.
up made the MES's Management API a second token for this, practice-mes-reviewer, with the scopes read
and signoff. It is a second token and not the asking token with another scope, because the narrative route
is held to the asking token's file and needs the scope correlation. A site made before that token existed
has none.
Step 1: read what waits. The draft appears about half a minute after up returns, when the MES has
read the weld reading and its model has answered:
pending
17b66b42-2bb0-4d13-8fa6-34e1e5d1028a case_summary pending ai-draft 2026-11-21T00:59:51.782395Z
One record, type case_summary, submitted by ai-draft: the model's draft, not a person's. Its content
(mes_reviewer signoffs status=pending, in full) is a summary, the name and version of the prompt that
wrote it, and "drafted_by": "model". The summary is one run's output, and a draft. The id and the time
are different on every run.
Step 2: restart the MES, wait, and read it again.
$PS stop mes
$PS start mes
sleep 40
pending
17b66b42-2bb0-4d13-8fa6-34e1e5d1028a case_summary pending ai-draft 2026-11-21T00:59:51.782395Z
It is the same record with the same id and the same status, after a restart of the Node and after more than a minute. A draft left alone stays a draft: it is not approved by time, by a restart, or by the model that wrote it.
Step 3: decide it. Deciding is not one of the management tool's commands, which only read. Use curl
with the same token, which goes to curl through a pipe so it is never on a command line, or the review
page at http://127.0.0.1:18470/ui, where the token is entered by hand. This page did not run the review
page in a browser.
ID=$(pending | head -1 | cut -d' ' -f1)
curl -sS --fail-with-body \
--config <(printf 'header = "Authorization: Bearer %s"\n' "$(cat "$SITE/mes-reviewer.token")") \
-X POST "http://127.0.0.1:18470/v1/signoffs/$ID/resolve" \
-H 'Content-Type: application/json' \
-d "{\"decision\":\"approved\",\"action_id\":\"$(cat /proc/sys/kernel/random/uuid)\"}" |
python3 -c 'import json, sys; d = json.load(sys.stdin); print({k: d[k] for k in ("status", "resolved_by", "submitted_by")})'
pending
echo "pending left: $(pending | wc -l)"
{'status': 'approved', 'resolved_by': 'practice-mes-reviewer', 'submitted_by': 'ai-draft'}
pending left: 0
resolved_by is the id of the token that authenticated the request and is never taken from the body: a
body that names a reviewer is refused. The decision is also an entry in the MES's Activity Log, with the
token's id, the action_id you sent and the record:
KINDRED_MANAGEMENT_URL=http://127.0.0.1:18470 KINDRED_MANAGEMENT_TOKEN_FILE="$SITE/asking-node.token" \
deployment/kindred_management.sh activity-log limit=200 |
python3 -c 'import json, sys; [print(e["task_type"], e["outcome"], e["reference_ids"]) for e in json.load(sys.stdin)["entries"] if e["task_type"] == "signoff_resolution"]'
signoff_resolution approved {'token_id': 'practice-mes-reviewer', 'action_id': '0ce4a89f-8d12-43aa-91cf-605933105bc1', 'record_id': '17b66b42-2bb0-4d13-8fa6-34e1e5d1028a', 'record_type': 'case_summary'}
Approving a draft does not put it in the Node's documents. A drafted case summary reaches retrieval only
when a person also submits it as a document, with the disposition they write; that route needs the
documents scope as well as signoff, which this token does not have, so nothing on this page does it.
Rejecting a draft is a decision too, and was not run by hand.
What this does not show
- A Node that detects a bad peer's content. The retrieval gate decides whether the store holds anything near a question. It does not decide whether what it holds is true, and nothing here checks a document.
- How a real embedding model scores a real site's documents. The figures above are one model on an invented set. The sample set's own page records which of its scenarios retrieved their documents.
- That the model never answers from nothing. The gate stops a question nothing is near. A question the documents touch is passed on, and the model's answer to it is a draft (Step 5).
- A narrative being approved. Nothing approves an order narrative: it is an Activity Log entry that records who asked, and not a sign-off record. The draft decided in Part 2 is the case summary the MES's scheduled check submits.
- The review page in a browser. The decision was made with
curland the same token. - A second reviewer, a person editing and resubmitting a draft, or a draft that expires.
- A revoked reviewer's token. The revocation cascade is not run by hand on this site.
Limits
- The two commands are a second process, not the running Node. They use the Node's own code, config and database, and leave the entries the Node would leave, but the MES Node does not know they happened.
- The bars are one model's. Any other embedding model needs them measured again, and the command prints its warning each time.
- The gate passes a question that touches the subject.
incompletemeans nothing scored at 0.60 or above, not that the documents do not answer. - A question cannot start with a hyphen, or hold a line break, and is at most 500 characters.
- A draft is a model's words. The record names the prompt that wrote it so a person can see which.
What the test checks
tests/test_break_it_pages.py runs this page's setup and the recipes above that ask and load, against a
bare site directory, a throwaway database with the vector extension, an embeddings endpoint that answers by
shared topic and a stub chat endpoint, and pins:
- An incomplete answer asks no model. A question nothing is near gets
retrieval: incomplete, the fixed sentence, no request to the chat endpoint, and the entrynot_enough_informationwith no reference. - A question the documents answer asks the model once, is labelled a draft, and names its sources.
- An empty store says so.
- A pending draft stays pending across a new reader of the same database, and only a decision changes it, recorded
against the token's id and not a name in the body
(
tests/test_management_signoff_resolve.pypins the route).
tests/test_practice_site_documents.py pins the two commands themselves, and the gate's bars are pinned in
tests/test_retrieval_gate.py. The stand-in embeddings endpoint says nothing about how a real model scores:
the figures on this page are one real run's.
Release: v0.11.0