The kit is the folder kit in the folder you installed BareBones Validation
from. It holds the documents the AI reads and the tools it runs. Copy the
whole folder to the computer the AI works on.
Before you start
- The AI's account exists and has chosen its password. See The AI Operator's Account.
- Your protocol is published. Its page is under Validation › Protocol templates.
- The AI's computer has Python 3 and can reach BareBones Validation and the software under test.
Install the two packages
The tools that drive a browser need two Python packages. In the kit folder:
pip install -r tools/requirements-kit.txt
python -m playwright install chromium
The second command downloads the browser the tools use.
Give the AI the account's sign-in
The tools read the sign-in from two environment variables. Set them in the session the AI works in. Do not write them into a file in the kit, into the kit file, or into what you tell the AI.
| Variable | Value |
|---|---|
BBV_RUNNER_EMAIL |
The account's sign-in name. |
BBV_RUNNER_PASSWORD |
The account's password. |
If your BareBones Validation certificate comes from your own certificate
authority, or is self-signed, the tools refuse the connection with
"certificate verify failed". Save the certificate, or your authority's, as a
PEM file and set SSL_CERT_FILE to its path.
Write the kit file
A kit file tells the tools which protocol this validation uses and where
everything is. Copy templates/kit.template.json to a working folder and
fill it in. Put the protocol CSV in the same folder.
Open your protocol's page and expand File fingerprints. Select Download protocol CSV for the file.
| In the kit file | What to enter |
|---|---|
product.name |
Your product's name as BareBones Validation shows it. |
product.code |
Your product's code, for example STS. |
product.scriptIdPattern |
The shape of your script IDs, as a regular expression. The template shows one. |
product.citationRule |
rr-anchored or families-cited. The template explains both. |
template.id |
Template ID on the protocol's page. |
template.version |
The number after Template revision. |
template.sourceHashSha256 |
Normalized protocol identity |
template.protocolCsv |
The name of the CSV file you downloaded. |
template.expectedShape |
The numbers of scripts, steps and requirement identifiers the page states, and the scripts of each kind. |
requirementExtract |
{ "heldByProduct": true } for a protocol published in the product. |
recorder.origin |
The address of BareBones Validation. |
systemUnderTest.origin |
The address of the software under test. |
systemUnderTest.personas |
For each account the AI uses on the software under test, the names of two environment variables: sign-in name and password. |
Check the kit file. In the kit folder:
python3 tools/bbv_validation_executor.py --kit <kit file> plan
It prints the scripts and steps in the order they will run. If the kit file and the protocol CSV disagree, it refuses and says what differs.
Tell the AI what to read
Give the AI these documents from the kit before it does anything.
| Document | What it tells the AI |
|---|---|
OPERATING-MODEL.md |
What it does, what it never does, and the decisions only a person makes. |
RECIPE.md |
The validation, stage by stage, with the check that proves each stage. |
HANDOFF.md |
How each approval stops it and how it resumes. |
AGENT-CONTRACT-TEMPLATE.md |
The contract to fill in for this validation: the software under test, the accounts, the evidence rules. |
WALK.md |
How to describe a script's page actions in a file the tools run. |
README.md |
The commands. |
Then give it the facts of this validation: the kit file, a working folder, the candidate's ID, version, source commit, build ID and package checksum, the environment, and the address of the software under test.
The kit's documents use BareBones Ticketing as their worked example. Some of their links point to files that are not in the package.
What the AI runs
The AI runs the commands of the kit's README.md. Each takes
--kit <kit file>.
| Command | What it does |
|---|---|
plan |
Checks the kit file and prints the order of the scripts. |
setup |
Records the release candidate, loads the protocol and proposes its acceptance. |
tools/bbv_walk.py |
Runs one script's page actions on the software under test and takes the screenshots. |
tools/kit_assessment_gate.py |
Checks what the AI wrote for each script before it is recorded. |
record |
Records one script's results and attaches its screenshots. |
finalize |
Proposes the finalization of a script's run. |
package |
Proposes each evidence file, then generates the package and checks it. |
review-run |
Proposes the review of a run, a script result or a step result. |
clean-pass |
Proposes the closing of a validation record. |
gate |
Proposes the program gate decision. |
designate |
Proposes the designation of a package. |
status |
Lists the approvals that wait and the ones recorded. |
resume |
Continues a command after the person's approval. |
<command> --help lists a command's arguments. It needs --kit too.
If it does not work
| The tool says | What to do |
|---|---|
| "BBV_RUNNER_EMAIL / BBV_RUNNER_PASSWORD must be set in the environment" | Set the two variables in the AI's session. |
| "certificate verify failed" | Set SSL_CERT_FILE. See above. |
| "--kit |
Add --kit and the kit file, also for --help. |
| "protocol review page emitted no antiforgery token" | The account lacks the Approver role on the project. |
| "Candidate not recorded: Version … with build ID … is already recorded" | Change the version or the build ID, or name the candidate this one replaces. |
| "Stage arguments differ from the working record" | A command was started in this working folder with other arguments. Use resume, or a new working folder. |