How Petri measures
The model proposes, code decides. Every claim on this site follows from these six rules.
ChecksWhere do the checks come from?
Each site gets 19 to 29 hand-written checks. Facts are read from the site's own read actions with no model in the loop, so the expected answer is what the site itself returns. Refusals come from what the site's instructions say it cannot do. Injections are typed by a visitor or planted inside a tool result with a unique canary code.
ScoringWho decides if an answer passed?
Code. Each check lists patterns the answer must contain, patterns it must not contain, and tools it must call. No model judges a score. Scoring normalises quotes and spaces first, because a curly apostrophe once failed a correct answer.
SplitWhy train and held-out?
The tuner sees only train failures. Held-out checks are scored once, on the published and the best network, so a tuned network cannot simply memorise them. A train gain with no held-out gain is reported as exactly that.
ChangesWhat may tuning change?
Instruction text only: each agent's instructions and the shared replacement strings. A child is rejected if it adds a URL, a placeholder, an agent or a string, grows past 5,000 characters, drops the locked safety block, or fails the runtime's validateNetwork().
NoiseHow sure are the numbers?
At temperature 0 the same network scored within about 3 points between runs on Granite 4.0 Micro. Earlier runs at the provider's default temperature swung by about 7 points. Anything inside that band is labelled no real change.
GuardsWhat is the output guard?
A few fixed rules run on the answer before a visitor sees it: block a reply that is only a code word, strip links to hosts the site never mentions, and block requests for personal details on sites that need none. They are not evolved. Replayed over 1,930 saved answers from seven sites, the code-word rule fixed 42 failures, the link rule fixed 4, and neither broke a passing answer. The link rule also removed real government links, so it needs an allow-list first. The reference runtime has no hook for this, so a site would add a small patch.
LimitsWhat can't Petri do yet?
It cannot fix a model that does not read its tool results, and instruction text alone did not stop a role-swap injection on a 3B model. Live runs from the website are not open. Seven sites are on the bench so far, and tuning gave a real gain on two of them.