Contributing Reference
This page holds the facts behind Contributing: Regression Suites. Read it to look one fact up. To find the suite for the file you changed, start on Which suite guards your file.
Which suite guards what
All commands run from the repository root. The automated suites are free: they are offline, deterministic and call no model.
| Suite | Guards | Run command |
|---|---|---|
|
The delegation contract ( |
|
|
The same ten requirements as a source-level audit, plus four more lines: token economy ( |
|
|
The source-level cost model of |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The |
|
|
The |
|
|
|
|
|
|
|
|
The seam between the shipped hooks and the installer |
|
|
|
|
|
The document builder of the |
|
|
The scripts of the |
|
|
The scripts of the |
|
|
The scripts of the |
|
|
The scripts of the |
|
|
The scripts of the |
|
The three runtime suites guard the benchmark tooling.
Run them when you edit deploy/scripts/runtime-*.py.
skills/autoreview/scripts/test-review-harness.py is not one of these suites.
It needs an external review engine and exits 1 when the engine is not installed.
Hook self-tests
These hooks and commands carry their own offline self-test.
Each self-test builds temporary files and never touches ~/.claude or the real vault.
| Hook | Run command |
|---|---|
|
|
|
|
No suite or self-test covers these 9 hooks in deploy/templates/hooks/: context-guard.py, design-gate.py, durability-gate.py, graph-search-augment.py, phase-gate.py, reuse-gate.py, rules-loader.py, user-visible-gate.py and verify-gate.py.
Manual re-check documents
Some agents cannot be tested without a model. For those, a document lists canned scenarios. You launch the agent once for each scenario as a sub-agent dry run and compare the outcome with the expected one. Record the date, the scenario ids and pass or fail in the pull request or commit notes.
| Document | Re-check before you merge an edit to | What you compare |
|---|---|---|
|
|
The verdict and the required payload fields. The verifier is shared by both pipelines. |
|
|
The verdict and the per-check reporting. The agent must not edit production code. |
|
|
The outcome classification and the required behavior: a proven safety net and no silent behavior change. |
|
The documentation step of the bugfix pipeline: |
The routing verdict (EXTEND, REVISE, NEW, NO-OP). It never checks the prose, because documentation text is not reproducible. |
Any edit to agents/verifier.md or agents/ft-test-adversary.md must pass the scenarios in deploy/evals/verifier-regression.md and deploy/evals/test-adversary-regression.md.
The verifier and the test adversary are shared by both quality pipelines.
An edit that suits one pipeline can degrade the other without any visible error, and npm run build cannot catch an incompatible change.
The pipelines are described in Quality Pipelines.
Codex installer regression
deploy/evals/codex-install-regression.sh tests install-codex.sh against a temporary CODEX_HOME. The script does this:
-
Creates a fake
.codexwith a sentinelconfig.tomlthat holds an unrelated role. -
Installs twice and compares the
config.tomlhash. The second run must leave the hash unchanged. -
Checks that the unrelated role survives.
-
Counts installed skills and agent files.
-
Runs the doctor.
It also checks the readonly-role-guard hook: one guard group inside the owned markers, the matcher, the sha256 of the installed guard, and a deny for verifier through the installed command. It checks that user hook groups keep their index and trust state, and that the doctor prints a note and never ok for trust. It checks that the installer prints a re-trust line when the guard, matcher or timeout changes (cells I1 to I12, I14 to I17, I3a to I3d, I3d3 to I3d6, I3e to I3g and I7b). Cells I-a to I-e check that the installed matcher equals the matcher of the guard, the deny of mcpxy and read_mcp_resource for verifier, the single re-trust line after the matcher change, and the shape gate. The cells also cover the hook block layout (the hook has its own owned block after the last user group), the [features.multi_agent_v2] tool_namespace matcher, and the doctor missing: and note: lines.
The script expects 24 skills and 15 agent files, the counts of the installer lists, and reads both counts from install-codex.sh.
When you change the lists in install-codex.sh, change the counts on the docs pages and in README.md in the same commit. deploy/evals/harness-hooks-regression.py (class InventoryCounts) fails until they match.
For the user commands of the Codex install, see Codex.
Hard rules for contributors
| Rule | What it means |
|---|---|
English only |
Skills, agent instructions and documentation are written in English. |
Standards stay consistent |
The Java, Angular and Python standards are authoritative for their stack. Edits must agree with the locked-decisions table in |
Scripts come in pairs |
Every script in |
|
The drift gate regenerates the map on Linux CI and compares it with the committed file. The |
Skill naming |
Never name a skill like a bundled one. See Skills policy. |
Least privilege in |
Declare an agent’s privilege once, in its |
Never modify |
Build and stage everything inside the repository. Change |
Rule |
A |
Skills policy
Claude Code starts a skill when the description of the skill matches the work.
The toolkit therefore keeps skill descriptions narrow and the skill set small.
How skills fire
| Fact | Consequence |
|---|---|
The model starts a skill from its |
Keep descriptions narrow and action-first, under about 150 characters. Broad descriptions fire too often. |
Claude Code has no tie-break between skills and is not concurrency-safe. |
Avoid overlapping triggers across skills. |
|
Never name a skill |
|
Use it for a side-effect skill, for example |
Hooks register only through |
Remove a stray |
Skills the toolkit does not install
The toolkit ships none of the skills below in skills/.
Two of them can still reach a machine: install.sh and install.ps1 offer the superpowers plugin, and that plugin carries brainstorming and requesting-code-review.
| Skill | Reason |
|---|---|
|
They duplicate the bundled |
|
Its name collides with the bundled |
|
Its hard rule "no code until a spec is approved" conflicts with plan mode and with the autonomous |
|
|
|
Broken. |
|
Written for Svelte. |
|
Needs |
|
Covers JavaScript and TypeScript only. |
Keep the two installers in lockstep
install.ps1 mirrors assets with robocopy and installs jdtls with Scoop (scoop install jdtls).
install.sh uses rsync and Homebrew (brew install jdtls).
An edit to one installer applies to the other.
The scripts-in-pairs rule in Hard rules for contributors lists the other scripts that come in pairs.
The doctor of install.sh is --doctor, or DOCTOR=1.
The doctor of install.ps1 is -Doctor, or $env:DOCTOR=1.
The doctor verifies and installs nothing. It offers fixes when it runs in an interactive terminal.
Documentation build output
The build reports 3 known cross-component errors in glossary.adoc (docs-portal:: and ft-acs:: links).
They resolve only inside the full portal.
Without the Kroki server, the asciidoctor-kroki extension prints Skipping plantuml block for a diagram it cannot fetch.
Audit file lines
The audit file holds these lines:
| Line | Content |
|---|---|
|
The absolute path of the module root. |
|
The absolute path of the repository. |
|
Pages and lines with text that tries to instruct the agent, or |
One row for each flagged page |
|
|
The number of flagged pages that the agent did not read. The agent reads at most the top 20 flagged pages. |
|
The number of pages without a flag. The agent does not read these pages and gives no verdict. Do not read an unlisted page as a passed page. |
The skill reworks the REWORK and SPLIT rows only. The final report lists the KEEP and TRIM pages.
Page audit output
page-audit.py prints a legend, one row for each page and a skipped: footer.
A row holds the size, tables, diagrams, headings, layout, inbound links and flags of the page.
A flag fires when the value is above its limit.
| Flag | Fires when |
|---|---|
|
The page has more than 2500 words. |
|
The page has more than 5 tables. |
|
The tables have more than 60 rows. |
|
The page has more than 1200 words and no diagram. |
|
The page has more than 600 words and fewer than 3 headings. |
|
No other page links to the page. |
The flag --zone <root> prints the facts the /ft-docs chain gates on and exits with code 0:
| Line | Content |
|---|---|
|
The absolute path of the repository. |
|
The absolute real path of the root. |
|
The commit at |
|
The number of |
|
The hash of the changes under the root. |
|
The hash of the changes outside the root. |
Ignored files are out of the hash. A git failure or a root outside a git repository exits with code 2 and prints nothing on standard output.
Plug in as a sub-portal
The FT Docs Portal (ft-docs-portal) builds and hosts every Antora component on Cloudflare Pages, with PlantUML through its own Kroki server.
Nothing is built here. Register this repository in ft-docs-portal/antora-playbook.yml:
content:
sources:
# … existing product sources (ft-acs, ft-device-network-service, oneiot-ui, …) …
- url: ./sources/ft-ai-toolkit
branches: main
start_path: docs # this repo's Antora component root (docs/antora.yml)
The component name is ft-ai-toolkit. Link it from the portal navigation with xref:ft-ai-toolkit::index.adoc[FT AI Toolkit].
Product repositories mount at start_path: docs/src. This repository uses docs. Match what docs/antora.yml says.