Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 | 2x | import type { DocContent } from "../docsTypes";
export const guidesGovernance: Record<string, DocContent> = {
// ─── Rules ────────────────────────────────────────────────────────────────
"/docs/guides/rules": {
title: "Rules & Governance",
description:
"Versioned rules in four layers — whether a request may run, what the model reads, where it may look things up, what people receive — enforced as a request happens and recorded as evidence.",
sections: [
{
heading: "The Governance page",
appPath: ["Governance"],
paragraphs: [
"Governance is the control plane's own surface, third in the navigation after Inference and Knowledge. It has two tabs, one for each kind of standard your fleet is held to: **Rules**, the policies you have written and enforced on every invocation, and **Evaluation**, the tests a model or agent passes before and between changes. Two pages open from the top of the Rules tab: **Activity**, the log of what every rule did to every invocation, and **Reviews**, the queue Output rules (and regressed evaluation runs) fill for a person to work through. This guide covers rules; the next covers Activity and Reviews.",
"Rules used to live on the resource pages they governed. There is one list now, and a rule's **scope** says what it covers — so a rule reads as a policy over your whole account, not a property of whichever page you happened to be on.",
],
},
{
heading: "Anatomy of a rule",
paragraphs: [
"A rule has a **layer**, a **scope**, a list of **conditions** and a list of **actions**. The layer is where in a request the rule acts, and requests meet the layers in order: every Access rule before any Input rule, every Input rule before any Tools rule, all before the model is called, and Output rules after it answers. Priority orders the rules within a layer. Conditions are ANDed: if they all hold, every action runs. Rules are versioned like any other resource, and every event a rule produces records the version that was in force.",
],
table: {
headers: ["Layer", "Asks", "Typical use"],
plainFirstColumn: true,
rows: [
[
"Access",
"May the request run at all?",
"Budgets and rate limits, requiring an agent to have passed its evaluations",
],
[
"Input",
"What may the model read?",
"Block a topic or a credential, redact personal data from prompts",
],
[
"Tools",
"Where may it look things up?",
"Sources to search first, or only; sources never to use",
],
[
"Output",
"What may people receive?",
"Redact personal data from answers, send answers to review, withhold an answer",
],
],
},
},
{
heading: "Where a rule runs in a turn",
diagram: {
kind: "stack",
bands: [
{ node: { label: "Access rules", sub: "may it run? — budgets, rate limits, the evaluation gate" } },
{ node: { label: "Input rules", sub: "what may the model read? — block, redact personal data" } },
{ node: { label: "Tools rules", sub: "where may it look things up? — trusted and blocked web sources" } },
{ node: { label: "The model runs", sub: "with the agent's knowledge, skills and tools" } },
{ node: { label: "Output rules", sub: "what may people receive? — redact personal data, send to review, withhold" } },
{ node: { label: "Recorded", sub: "one activity row per rule evaluated, with its version and outcome" } },
],
},
diagramCaption:
"Rules are evaluated centrally, so they apply the same way whether a request came from a chat, a skill's test bench, an evaluation run or a dashboard tile. Inside a skill graph, the Input and Output rules are enforced again around each node, and every web search, page read and document image holds to the Tools rules, however the agent reached it.",
},
{
heading: "Scope: what a rule governs",
paragraphs: [
"A rule's scope is one of seven kinds, and they nest. A rule can cover **everything**, every resource of one kind, or exactly one resource — pinned by name from a picker that only offers things you can actually reach. A pin that resolves to nothing is refused when you save, rather than becoming a rule that looks active and never matches.",
],
diagram: {
kind: "stack",
arrows: false,
bands: [
{ node: { label: "Global", sub: "every invocation you make" } },
{ node: { label: "Organisation", sub: "everything owned by an organisation" } },
{ node: { label: "Project", sub: "everything owned by a project" } },
{ node: { label: "Model", sub: "every turn that resolves to this model, even through an agent" } },
{ node: { label: "Agent", sub: "one agent's turns" } },
{ node: { label: "Skill", sub: "one skill, wherever it runs" } },
{ node: { label: "Worker", sub: "one worker, in any skill" } },
],
},
diagramCaption:
"An invocation declares the whole chain of resources it touches — the agent, the model it resolved to, the skill and worker inside it, and the project and organisation that own it — and a rule applies when it targets any link. Rules are ordered by priority, then narrowest first.",
},
{
heading: "Conditions",
paragraphs: [
"A condition asks a question about the invocation and compares the answer to a value. The fields you can ask about are grouped, and the builder only offers a field where it can be answered — an Access or Input rule cannot condition on the response, because there is no response yet.",
],
table: {
headers: ["Group", "Fields", "Phase"],
plainFirstColumn: true,
rows: [
["General", "**always** — matches every invocation", "Both"],
["Content", "**prompt**, **response**", "Prompt / response"],
["Classifier", "**PII detected**, **PII types found** — the platform's PII detectors over the text", "Both"],
["Invocation", "**execution type**, **user**, **agent**, **agent name**, **tags**", "Both"],
["Model", "**model name**, **provider**", "Both"],
["Cost", "**prompt tokens**, **response tokens**, **total tokens**, **estimated cost**, **latency**", "Response (except prompt tokens)"],
],
},
},
{
paragraphs: [
"Seventeen operators cover equality, text affixes and containment, regular expressions, ordering and set membership. Text comparisons ignore case; numeric comparisons compare as numbers; regular expressions are bounded in length so a rule can never hang the platform. The full list is in the **Rule Vocabulary** reference.",
],
},
{
heading: "Actions",
table: {
headers: ["Layer", "Action", "What it does"],
plainFirstColumn: true,
rows: [
["Access", "**Limit the rate**", "Refuses once the scope has made more than a number of invocations in a trailing window (default an hour)."],
["Access", "**Cap the spend**", "Refuses once the scope's estimated spend exceeds an amount in a trailing window (default a day) or a calendar period."],
["Access", "**Require passing evaluations**", "Refuses an agent whose version in force has not passed its evaluation, naming the dataset and score it fell short on."],
["Input", "**Block the request**", "Refuses the invocation before any model is called, with a message you write."],
["Input", "**Redact personal data**", "Replaces personal data — names, contact details, dates of birth, card numbers and IBANs, UK and EU identity numbers, each identifier's checksum verified — with placeholders in the prompt, the conversation history and attached documents before any model sees them. Choose the kinds, or keep the default set."],
["Tools", "**Prefer trusted sources**", "Puts the sites you name first whenever the agent searches the web — or, with **Use only these**, lets it search and read nothing else. A site covers its subdomains; paste links or type names."],
["Tools", "**Never use these sources**", "Leaves the sites you name out of every search, and refuses to read their pages or fetch their images."],
["Output", "**Redact personal data**", "Replaces personal data with placeholders in the answer — as it streams, in its trace and in what is stored."],
["Output", "**Send to review**", "Puts the turn in the Reviews queue, optionally with a retention period after which the flag is deleted."],
["Output", "**Withhold the answer**", "Shows people a message you write instead of the answer — once every other Output rule has run on it — and sends the answer to review, the one place it is kept. While a rule like this covers an agent, its answers appear once checked, not as they are written."],
],
},
},
{
heading: "Quotas: rate limits and cost caps",
paragraphs: [
"Quotas count over the platform's **usage ledger** — one append-only row per governed invocation with its tokens, estimated cost and latency, written in the same transaction as the turn. They are evaluated **before** the model is called, so a cap never notices after the money is spent.",
"Counting is scoped the way the **rule** is: a global cap counts everything, a project cap counts that project's invocations, an agent cap counts that agent's. Several caps can apply to one turn and each counts its own population. Only invocations that completed count towards an allowance — a provider outage never consumes your quota.",
],
callout: {
tone: "info",
title: "Quotas fail open",
text: "If a quota cannot be evaluated — the action has no limit set, or the ledger could not be read — the rule stands aside and the error is logged. Refusing your request on a number the engine never obtained would be the worse failure. The same applies to every rule: an unrecognised field, operator or action never matches and never fires.",
},
},
{
heading: "Writing a rule",
appPath: ["Governance", "Rules", "New Rule"],
steps: [
{
title: "Pick the layer",
description:
"Access, Input, Tools or Output. The layer decides which fields and actions the builder offers, because each runs at a different moment in the turn.",
},
{
title: "Set the scope",
description:
"Everything, or one kind of resource, or one resource picked by name. Choose the narrowest scope that fits the policy — broader rules still apply alongside it.",
},
{
title: "Add conditions",
description:
"Each condition is a field, an operator and a value. Quick-add buttons offer the most common fields. Leave conditions empty (or use **always**) for a rule that applies to every invocation in scope.",
},
{
title: "Add actions",
description:
"Each action's parameters — a block message, a limit and window, a retention period — are rendered from the engine's own description of the action.",
},
{
title: "Name it and set a priority",
description:
"Higher priority rules are evaluated first. Save, and the rule is live on the next invocation in scope.",
},
],
},
{
callout: {
tone: "tip",
title: "The builder can only offer what the engine can enforce",
text: "Scopes, fields, operators and actions all come from the rule engine's own catalogue, served to the builder when it opens. A rule you can save is a rule that will be evaluated exactly as written.",
},
},
{
heading: "Generating rules",
paragraphs: [
"From the Rules tab, **describe what you want governed** — \"stop anyone pasting credentials or customer PII into a prompt, and record it when they try\" — and the platform proposes rules written against that same catalogue. Each proposed rule is shown with its type, scope, conditions and actions for you to accept or discard. A rule whose field, operator, action or scope the engine cannot honour is **dropped whole with the reason shown**, never repaired, because every repair available would make the rule match more than the one proposed. See **Generative Setup & Provenance**.",
],
},
{
heading: "Reading the rules list",
paragraphs: [
"Rules are listed a section per layer, in the order a request meets them, under a strip that counts each layer's rules and filters to one. Each card says what the rule does in words (\"Caps spend at $100 a month\"), when it applies and what it covers (\"Support Agent\", not an id); built-in templates sit in their layer, ready to use. A rule's page shows the same, the resources it is pinned to, and its full version history, and opens it in the builder to edit.",
],
},
],
},
// ─── Governance activity & reviews ────────────────────────────────────────
"/docs/guides/governance-activity": {
title: "Governance Activity & Reviews",
description:
"The log of what every rule did to every invocation, and the queue of things rules asked a person to look at.",
sections: [
{
heading: "Why the log exists",
appPath: ["Governance", "Rules", "Activity"],
paragraphs: [
"The first question an audit asks is \"was this invocation governed, and by what?\". A log that only recorded blocks could not answer it: a redaction rule over a clean prompt is **working**, and it looks exactly like a rule that was never evaluated unless someone writes that down. So the Activity log records **every rule evaluated against every invocation**, with one of four outcomes.",
],
table: {
headers: ["Outcome", "Meaning"],
plainFirstColumn: true,
rows: [
["Blocked", "The rule refused the invocation."],
["Applied", "It matched and its actions changed something — a redaction, a flag, a log entry."],
["No change", "It matched, its actions ran, and there was nothing to do. A clean prompt under a redaction rule."],
["Not matched", "Its conditions did not hold, so no action ran."],
],
},
},
{
paragraphs: [
"Three of the four are a rule working correctly, and the badges say so: **no change** is shown as a success, because a clean prompt is the reassuring answer, not an absent one.",
],
},
{
heading: "Reading the log",
paragraphs: [
"The log is read **a message at a time**. One turn is routinely governed by half a dozen rules across both phases, so events are grouped by invocation: each card is one turn, headed by the agent it ran and its per-outcome counts, listing the rules that ran on the prompt and on the response. Filter by outcome, rule, agent or phase, and page through turns rather than rows.",
"Each card has an **Open message** link that opens the conversation on that exact turn, scrolled to and highlighted. A turn that was blocked before it could be saved has no message to open, and the card says so rather than linking to the wrong place.",
],
},
{
heading: "What is recorded, and what is not",
list: [
"**Recorded:** the rule and its version, the phase, the outcome, the action that acted, the figures a quota was judged against, the message a block returned, and redactions as **kinds and counts** — two emails, one card number.",
"**Never recorded:** the matched text. A log quoting what a redaction removed would be a durable copy of exactly the thing the rule exists to destroy.",
"**Who resolved it:** the agent's current name while it exists, and \"Deleted agent\" once it is gone — the event outlives the agent by design.",
],
},
{
heading: "The reviewer queue",
appPath: ["Governance", "Rules", "Reviews"],
paragraphs: [
"An Output rule with the **send to review** action puts the turn in the Reviews queue. Each flag shows the rule and version that raised it, the agent, an excerpt of the exchange — taken after redaction rules have run, so the queue never becomes the one place unredacted text survives — and a link to open the message.",
],
diagram: {
kind: "flow",
nodes: [
{ label: "Output rule matches", sub: "send to review" },
{ label: "Pending", sub: "in the queue, newest first" },
[
{ label: "Reviewed", sub: "looked at, judged acceptable" },
{ label: "Dismissed", sub: "looked at, judged unwarranted" },
],
{ label: "On record", sub: "who decided, when, and any note" },
],
},
diagramCaption:
"Resolution is terminal: a decision is a record, not a setting, so a resolved flag cannot be reopened or re-decided. A rule that has since been renamed or deleted is still named on the flag.",
},
{
heading: "Retention",
paragraphs: [
"The flag action takes an optional **retention period** in days. Leaving it empty keeps the flag indefinitely — destroying audit evidence has to be a decision stated on the rule, not a default. Expired flags are removed by an hourly background job across every owner; a period is \"deleted no earlier than\", never \"deleted exactly at\".",
],
},
{
heading: "On dashboards and in Stats",
paragraphs: [
"Blocks, block rate, the four outcomes, values redacted by kind, and the review queue's depth by status are all available as dashboard tiles, and a **Governance** board template seeds them in one click. The Stats page's **Policy & Audit** tab shows rule hits over time. See **Dashboards**.",
],
},
{
callout: {
tone: "info",
title: "What the log does not yet cover",
text: "Only the platform's own evaluations are logged: every applicable rule against the prompt and against the final response. Rules re-enforced inside a skill graph run reach the turn's execution trace but not this log, because recording both would show one rule twice for one turn.",
},
},
],
},
// ─── Evaluating Agents ────────────────────────────────────────────────────
"/docs/guides/evaluations": {
title: "Evaluating Agents",
description:
"Datasets hold the questions, the experiments on each dataset decide how answers are graded and who answers, runs produce the results, and reports read them across experiments.",
sections: [
{
heading: "Four words, one job each",
appPath: ["Governance", "Evaluation"],
paragraphs: [
"The Evaluation tab is built on four ideas that never overlap. Keeping them apart is what makes two runs comparable, and what lets one dataset carry many experiments without anyone wondering which grading applied. An experiment belongs to one dataset: you open the dataset to see its experiments and start new ones.",
],
table: {
headers: ["Word", "What it is", "What it owns"],
plainFirstColumn: true,
rows: [
[
"Dataset",
"A set of cases: what to ask and what a correct answer looks like.",
"The questions. Never a scorer, never a model, never a run.",
],
[
"Experiment",
"A recipe on one dataset: one scoring mechanism, one or more variants.",
"How answers are graded, and who is under test.",
],
[
"Run",
"One execution of an experiment.",
"The leaderboard, the per-case results and the verdict against the previous run.",
],
[
"Report",
"Runs read across every evaluation.",
"Totals and filters — by dataset, scorer, score and time.",
],
],
},
},
{
diagram: {
kind: "flow",
nodes: [
{ label: "Dataset", sub: "cases" },
{ label: "Experiment", sub: "scorer + variants" },
{ label: "Run", sub: "variants × cases" },
{ label: "Report", sub: "across experiments" },
],
},
diagramCaption:
"Each experiment on a dataset asks all of its cases; each run of the experiment scores every variant on every case; reports read runs across experiments.",
},
{
heading: "Datasets: the questions",
appPath: ["Governance", "Evaluation", "Datasets"],
paragraphs: [
"A dataset is a list of **cases**, and each case has two halves. **The question**: an input — usually a prompt — and optionally the conversation turns it arrives after, values to substitute into it as `{{name}}`, **data**: figures shown to the agent after the prompt, where a value left empty reads as \"not provided\", and **scripted tools**: a tool whose answer the case fixes — a share price at a moment — so a question about live data has the same right answer every run. **What a good answer is**: the **expected behaviour** — answer, ask for clarification, or decline, because for an ambiguous question asking back is the right answer — **criteria** in words, a **reference answer**, **graded examples** — answers you have scored in advance, each with why — and **checks** (a required format, text the answer must or must not contain, a pattern it must match).",
"The dataset itself can carry **criteria for every case** — \"cite the policy section relied on\", \"never promise a date\" — written once instead of on every case; each case adds its own.",
"A dataset knows nothing about which model or agent will see it, and nothing about how strictly answers will be judged. What it does own is what counts as correct, so every experiment on it grades against the same idea of right. That is deliberate: a set of web-search prompts, a refund-tone set or a regression set is written once, by whoever owns the questions, and every experiment on it asks exactly the same thing.",
"Build a dataset by adding cases one at a time, or paste a CSV, JSONL or JSON array to import them in one step. A dataset's page is also home to its **experiments** — each with its latest score — and every run over it, and **New experiment** starts one on it.",
],
},
{
callout: {
tone: "tip",
title: "Criteria, examples and checks",
text: "Criteria say in words what a good answer does, and are what an LLM judge grades against. Graded examples show it the scale: an answer you scored 0.3, with why, tells the judge what a 0.3 looks like for this question better than any adjective. Checks are mechanical — JSON, must mention 'FTSE 100', must not promise a refund — and are what Text checks enforces. The reference answer is the one exact match and JSON fields compare against.",
},
},
{
heading: "Experiments: how answers are graded, and who answers",
appPath: ["Governance", "Evaluation", "Datasets"],
paragraphs: [
"An experiment names one dataset and one **scorer** — how every answer is graded — with its own settings and pass mark. Every cell of every run is graded the same way, which is what makes the leaderboard fair and the verdict meaningful. The next section covers the scorers in full.",
"Then you add **variants**: the things under test. A variant is a model or an agent, the system prompt it runs with, and what it may reach — its knowledge repositories and tools. Two variants of the same agent, one with the compliance repository and one without, is one experiment rather than two agents kept in sync by hand.",
"A case is a question and a variant is a candidate answering it. A run scores every variant on every case: two variants over twenty cases is forty graded answers.",
"**An experiment asks its dataset for life, and its scoring is fixed once it has been run.** They are what it measures; its runs are the time series and its variants are what varies. Until the first run the scoring is freely editable — after it, it is shown but not editable. To grade another way, start another experiment on the dataset. See *What cannot change after a run* below.",
],
steps: [
{
title: "Create the experiment",
description:
"Open the dataset and press New experiment. Name it and choose the scorer.",
},
{
title: "Add variants",
description:
"One per model, agent or prompt you want to compare. Give each the prompt and the knowledge and tools it should answer with — **use the agent's own**, **none**, or **choose**, so a with/without comparison is expressible.",
},
{
title: "Run",
description:
"Every variant answers every case, governed by your rules and recorded on the usage ledger like any other call. Progress shows while it runs, and a run can be cancelled.",
},
{
title: "Read the results",
description:
"The leaderboard ranks variants; the matrix shows every answer and the grader's reasoning; the verdict says whether this run is better, worse or unchanged against the last.",
},
{
title: "Promote the winner",
description:
"Adopt a winning prompt onto its agent. The gate refuses a variant that scored worse than the prompt already live, unless you override it and record why. Promotion writes a new version of the agent.",
},
],
},
{
heading: "Scorers",
appPath: ["Governance", "Evaluation", "Datasets"],
paragraphs: [
"A scorer turns an answer into a number between 0 and 1 and a pass or fail. There are four, plus the option not to grade automatically at all — the picker shows them grouped by **who does the grading**, because that is the first thing to decide: a model, a rule, or you.",
"Pick the cheapest thing that actually measures what you care about. A rule is free, instant and gives the same verdict every time, so prefer one wherever the answer has a right shape. Reach for the judge when the answer is open-ended and no fixed string is right — it costs a model call per answer, counted against your usage like any other call.",
],
table: {
headers: ["Scorer", "Use it when", "How it scores"],
plainFirstColumn: true,
rows: [
[
"LLM judge",
"The answer is open-ended — tone, completeness, whether it actually addressed the question.",
"A grading model — the platform default, or one you choose — sees the input, the answer, the dataset's and the case's criteria, the reference answer and any graded examples, and marks every criterion met or not with a reason. The case's facts — figures and names the answer must state — are checked by code beside them. The score is the share met, and a failed must-pass criterion or fact scores 0. Every verdict is recorded against the cell, so you can see which criterion failed. Passes at or above your pass mark. Turn on 'Grade the answer as a whole' for one judged score instead.",
],
[
"Text checks",
"The answer must mention something, must never mention something, or must match a format.",
"Each line of required text is one check, and the pattern (if you set one) is another; the score is the fraction of those the answer passes. Forbidden text is a gate, not a check: any hit scores 0 and fails the case outright.",
],
[
"Exact match",
"The answer is short and closed — a classification label, a country, a yes or no.",
"All or nothing: 1 when the answer equals the case's expected output, 0 otherwise. Capitalisation and spacing are ignored unless you say otherwise.",
],
[
"JSON fields",
"The prompt is supposed to emit structured output.",
"The answer is parsed as JSON — a code fence around it is fine — and compared field by field against the expected output. The score is the fraction of expected fields whose value matches, so three of four right scores 0.75. Not-JSON scores 0.",
],
[
"Manual",
"You are still working out what good looks like.",
"Nothing is scored. Every answer is recorded with its latency and cost for you to read, and the run finishes without a leaderboard.",
],
],
},
},
{
callout: {
tone: "tip",
title: "Partial credit is the point",
text: "Text checks and JSON fields score the fraction of checks an answer passes rather than failing it outright, so a change that fixed two of three problems shows as a move from 0.33 to 0.67 rather than fail-to-fail. The **pass mark** is where that fraction becomes a pass — 0.7 by default. Exact match and Manual have no pass mark, because there is no fraction to set one on.",
},
},
{
heading: "Choosing the grading model",
paragraphs: [
"An LLM-judged experiment names the model that grades it. Leave it on **Platform default** and the platform's default chat model judges; pick one and that model judges instead. Only chat models that are currently available are offered, because a judge that cannot be called is a run that fails.",
"Two models do not agree on a score, so **the grading model is part of what a run measured**. Changing it is a change to the measurement, not a setting: scores before and after are not comparable, and a regression verdict across that change is comparing two different rulers. Change it when you have a reason to, and expect the next run to be the new baseline.",
"You choose *which* model grades, never how randomly it grades. Judging always runs at temperature 0, whichever model does it — a judge that scored the same answer differently on a re-run would turn ordinary provider variation into a reported regression. Judge calls are attributed to you, count towards your cost caps and rate limits, and appear on Activity as `evaluation_judge` alongside the answers they graded.",
],
callout: {
tone: "tip",
title: "A stronger judge is not always the right one",
text: "A capable model grades more consistently, but it also costs more per answer and every case is graded — a 50-case experiment over 4 variants is 200 judge calls. Criteria that say exactly what a good answer must do, and a few graded examples, move scores more than a bigger judge does.",
},
},
{
heading: "What a scorer needs from the dataset",
paragraphs: [
"Exact match and JSON fields read the case's **expected output**, and cannot grade a case that has none — the picker says how many cases in the chosen dataset are missing one, before you spend a run finding out. The LLM judge works without one, but grades against the dataset's and each case's criteria, and more steadily with a reference and graded examples to check against.",
"Text checks enforces each case's own checks, and a case with no required text is checked for its reference answer. A scorer's settings never say what is correct — only how strictly to judge, such as the pass mark or whether capitalisation matters. The experiment says how to judge, the dataset says what is correct, so one dataset of cases, each with its own required phrases, is graded by one experiment that configures nothing.",
],
callout: {
tone: "info",
title: "Scorers you may still see on older experiments",
text: "**Does not contain** and **Regular expression** were separate scorers before Text checks absorbed both. Experiments that chose one keep grading exactly as they did, so their runs stay comparable, and the picker still names it — but neither is offered for a new experiment, because Text checks does each of them and lets you combine them.",
},
},
{
heading: "Quick try",
appPath: ["Governance", "Evaluation", "Datasets", "Try a prompt"],
paragraphs: [
"Quick try is an experiment you have not saved yet: one prompt against up to six models or agents, side by side, with latency, tokens, and an optional expected answer and grade. A comparison is kept for a day. **Save as experiment** turns it into a one-case dataset with an experiment on it, the results you just read as the first run — so nothing you saw is lost, and the dataset can be extended with more cases and the experiment re-run.",
],
},
{
heading: "What cannot change after a run",
appPath: ["Governance", "Evaluation", "Datasets"],
paragraphs: [
"An experiment is *these questions, graded this way*. It never moves to another dataset, and once a run has completed its scorer, the scorer's settings and the grading model are fixed too — changing them would quietly turn it into a different experiment, whose leaderboard, report rows and regression verdicts mix runs that measured different things.",
"A new experiment is the way on: another experiment on the same dataset, graded the new way, starts a fresh baseline. \"The same variants against a harder dataset\" is an experiment on that dataset, read beside the first in Reports, rather than one experiment with a discontinuity in the middle of it.",
"Everything else stays editable: the name, the description, the status, and the variants — which are the thing an experiment exists to compare. A run in progress locks the same fields for as long as it runs, since changing what is being measured half way through would leave the run's own cells disagreeing.",
],
callout: {
tone: "info",
title: "Runs already record what they measured",
text: "Every run stores the dataset it asked and the revisions of that dataset and of the experiment that were in force, so an old result always resolves to the configuration that produced it — the lock protects what comes next, not what is already on record.",
},
},
{
heading: "Runs and regression",
paragraphs: [
"Every run records which dataset it asked and which revision of the dataset and of the experiment was in force, so a result always resolves to the exact configuration that produced it.",
"When a run finishes it is compared with the experiment's previous comparable run — **same dataset version, same scorer**, actually completed — and stamped **improved**, **regressed** or **unchanged**. Editing a case or the dataset's criteria makes a new version of the dataset, and the first run on it has no baseline: its questions are not the ones the earlier runs answered. A dataset always runs at its latest version; pick an older one on the dataset's page to see what it asked and the runs that asked it. A case that passed before and fails now is a regression on its own, even when the pass rate held still. Latency and token spend are reported but never decide the verdict: they move with provider load, not with the change under test.",
"Comparable is strict on purpose. An LLM judge's 0.8 and an exact-match 0.8 are not the same measurement, and neither is 0.8 on the refund set and 0.8 on the compliance set — those are different questions. A run with nothing comparable behind it is stamped **incomparable** rather than given a verdict it cannot support.",
],
},
{
heading: "Prompt optimiser",
paragraphs: [
"An experiment can ask a model to propose rewrites of a variant's prompt, score each candidate against the same dataset with the same scorer, and keep the candidates as ordinary variants — so the search is inspectable and any candidate can be promoted through the same gate.",
],
},
{
heading: "Reports",
appPath: ["Governance", "Evaluation", "Reports"],
paragraphs: [
"Reports lists every completed run across every experiment, with totals over the window and filters by dataset, scorer and score. Because a run names both its experiment and its dataset, \"how do all my agents do on the web-search set\" is one filter rather than a tour of every evaluation.",
],
},
{
callout: {
tone: "info",
title: "Every run is on record",
text: "Runs appear on the Activity page as events, and every model call a run makes is attributed to you, labelled as an experiment call and linked back to the experiment, so testing spend counts towards the same cost caps and rate limits as production traffic. Governance rules cannot be switched off for an experiment: an experiment that could would measure a system nobody runs.",
},
},
],
},
// ─── Dashboards ───────────────────────────────────────────────────────────
"/docs/guides/dashboards": {
title: "Dashboards",
description:
"Boards of widgets over your usage, cost, governance and live feeds, each tile marked by where its content came from.",
sections: [
{
heading: "Boards",
appPath: ["Dashboards"],
paragraphs: [
"A dashboard is a board of tiles you compose. You can have many; one is your **home board**, shown on the Overview page. Create a board blank, seed it from a **template**, or **describe** what you want to watch and review the board the platform proposes. Boards have a name, an icon and colour, and an edit history like everything else.",
],
table: {
headers: ["Template", "What it seeds"],
plainFirstColumn: true,
rows: [
["Blank board", "Nothing — add exactly what you want."],
["Daily briefing", "A news digest that refreshes every morning, the weather, a scratch note, quick links and a saved-answers list."],
["Media landscape", "A weekly model-scored comparison of news outlets on political alignment and factual reliability."],
["Platform health", "Spend, tokens and errors at a glance, with your most recent agents."],
["Governance", "Blocks and block rate, the outcome split, values redacted by kind, the busiest rules and the review queue, with links into Governance."],
],
},
},
{
paragraphs: [
"A template whose tiles invoke a model needs a **target** — one of your agents, or a chat model — and the platform picks one of yours before seeding. A template with no model in it, such as Governance, needs none: every tile reads the platform's own records.",
],
},
{
heading: "Every tile says where it came from",
paragraphs: [
"A board mixes exact data with model inference, and the difference matters: a forecast is a fact from a named source; a comparison is a model's judgement that can be wrong. Every tile carries a **provenance marker** in the same place, so the distinction is never something you infer from the tile's shape.",
],
cards: [
{
title: "Stored",
tag: "no marker",
text: "Content you wrote or saved: a note, shortcuts, a pinned message, a saved-answers list.",
},
{
title: "Your data",
tag: "platform",
text: "Exact figures from the platform's own records: usage, cost, governance outcomes, reviews, your recent resources.",
},
{
title: "Live source",
tag: "feed",
text: "Fetched from a named external source with no model in between: weather, an RSS feed, market quotes.",
},
{
title: "AI generated",
tag: "generated",
text: "A model's output — a digest, an analysis, a comparison. Labelled as such, with the target that produced it.",
},
],
},
{
heading: "Adding a tile",
appPath: ["Dashboards", "a board", "Edit"],
steps: [
{
title: "Pick a widget",
description:
"The picker lists every widget type the platform serves, with a description and its provenance class. The full list is in the **Widget Catalogue** reference.",
},
{
title: "Configure it",
description:
"The editor renders the widget's own fields — a metric and period for a stat, a location for weather, a prompt and target for an automation. Anything the platform cannot honour is refused when you save, not silently widened when the tile refreshes.",
},
{
title: "Set a refresh interval",
description:
"Dynamic tiles — feeds and generated content — refresh on a schedule you choose, from the platform's background scheduler, and also when you open the board if they are stale.",
},
{
title: "Place and size it",
description:
"Drag and resize tiles on the grid. Layout is saved with the board.",
},
],
},
{
heading: "Breakdown tiles",
paragraphs: [
"The **breakdown** widget answers \"what has *this agent* spent?\" and the same question of a model, a project, an organisation, a rule or a reviewer: one **metric**, over one **period**, sliced by one **dimension**, drawn as a ranked bar chart, a list, or a single figure. Metrics span usage (invocations, tokens, cost, latency, errors), governance (evaluations, blocks, the four outcomes, block rate), redactions (values and events by kind) and reviews (flags by status). Filters narrow a tile to one project or agent.",
"The tail past the tile's limit is folded into one **Other** slice rather than dropped, so a cost chart still adds up to the total above it, and a figure that could not be measured — cost on a model with no published price — shows as unmeasured rather than as zero.",
],
},
{
heading: "Describing a board",
appPath: ["Dashboards", "Describe a dashboard"],
paragraphs: [
"Write what you want to watch — \"track how my agents are performing: spend, errors, latency, and a weekly comparison of which models give the best results\" — and the platform proposes a board. The review shows every proposed tile with the same provenance badge the finished board will carry, and anything that failed validation with the reason. Accept, and the board is created and marked as generated. See **Generative Setup & Provenance**.",
],
diagram: {
kind: "flow",
nodes: [
{ label: "Describe", sub: "what to watch" },
{ label: "Proposal", sub: "tiles with provenance and a target" },
{ label: "Review", sub: "drop or keep each tile" },
{ label: "Board", sub: "created, marked as generated" },
],
},
diagramCaption:
"A proposed tile is validated by the same code that validates a hand-built one. A metric the query cannot honour, or a pairing the platform does not record, is refused rather than saved.",
},
{
heading: "Saving answers from chat",
paragraphs: [
"Any answer in a chat can be saved to a board: as a **pinned message** tile of its own, or into a **saved messages** list. Both keep a link back to the conversation and the message.",
],
},
{
callout: {
tone: "info",
title: "Not yet: alerts and time series",
text: "A breakdown slices one window by a dimension, not by day, so \"spend per day this month\" is the account-wide chart widget for now. Thresholds that notify rather than wait to be looked at are planned; the scheduler that would drive them exists, and the missing piece is a notification channel.",
},
},
],
},
// ─── Activity, Overview & Stats ───────────────────────────────────────────
"/docs/guides/activity-stats": {
title: "Activity, Overview & Stats",
description:
"The Activity feed and its run panel, the Overview home page, and the Stats page.",
sections: [
{
heading: "Overview",
appPath: ["Overview"],
paragraphs: [
"Overview is the home page. It shows your **home board**, then a panel per area with counts and shortcuts: Inference (models, agents, skillsets, skills, evaluations, datasets), Knowledge (repositories and sources, flagging any source in no repository), Governance (rules, the outcomes of recent turns, pending reviews), Workspace (projects and organisations) and **Operations** — the background scheduler's jobs and their last outcome. Quick actions create a new agent, skillset, repository, knowledge source or project.",
],
},
{
heading: "Activity",
appPath: ["Activity"],
paragraphs: [
"Activity is the feed of everything that happened in your account, newest first. Filter it by **area** — inference, knowledge, governance, evaluation, workspace — and by **kind**:",
],
table: {
headers: ["Kind", "What appears"],
plainFirstColumn: true,
rows: [
["Inference", "Agent runs, model chats, skill and worker runs, and every LLM call — including the calls evaluations make, labelled as such. Narrow to agents, models, LLM calls or evaluations."],
["Resources", "Every create, update and delete of a resource, with a link to the version it produced."],
["Generative", "Every generation run — proposed, applied or failed — whether or not anything was created from it."],
],
},
},
{
heading: "The run panel",
paragraphs: [
"Opening a run shows the exchange, the **agent version** that produced it as a badge linking to that version's diff, the rules that ran on it, its tokens and cost, and the full **trace** grouped by stage: input gate, reconnaissance, planning, each retrieval, every skill node with its inputs and outputs, synthesis, the quality evaluator, memory, and the rules run on the request and on the answer. Grounding sources it used are listed with their citations. **Open in chat** takes you to the exact message.",
],
diagram: {
kind: "flow",
nodes: [
{ label: "Event", sub: "a run, a change, a generation" },
{ label: "Panel", sub: "trace, rules, version, cost" },
{ label: "Open in chat", sub: "the exact message" },
{ label: "Version diff", sub: "what the agent said at the time" },
],
},
diagramCaption:
"A result is never an orphan: a turn links to its message, the message to the agent version that produced it, and the version to the diff that explains it.",
},
{
heading: "Stats",
appPath: ["Stats"],
paragraphs: [
"Stats charts your usage over a chosen time range. Six tabs:",
],
table: {
headers: ["Tab", "What it charts"],
plainFirstColumn: true,
rows: [
["Overview", "Conversations, tokens and cost over time, by provider and by model."],
["Token usage", "Input and output tokens by agent and by model."],
["Tool usage", "Which built-in tools your agents called, and how often."],
["Policy & Audit", "Rule hits over time, pivoted by rule."],
["Context", "The web domains your agents read, by region."],
["Performance", "Latency by model and invocation outcomes over time."],
],
},
},
{
callout: {
tone: "tip",
title: "Account-wide versus per-resource",
text: "Stats draws the account-wide figures; a dashboard breakdown tile draws the same metrics sliced by agent, model, project, organisation or rule. Use Stats for the shape of your usage and a board for the question \"which one?\".",
},
},
],
},
// ─── Generative setup ─────────────────────────────────────────────────────
"/docs/guides/generative-setup": {
title: "Generative Setup & Provenance",
description:
"Every generative flow follows one pattern — describe, generate, review, create — and every result is marked and traceable to the invocation that produced it.",
sections: [
{
heading: "Where you can generate",
appPath: ["Inference", "Agents", "New Agent", "Describe the problem"],
paragraphs: [
"Most resources can be **generated** from a description instead of hand-built. The flows differ in what they produce; the pattern is the same.",
],
table: {
headers: ["Flow", "Where", "What it proposes"],
plainFirstColumn: true,
rows: [
["Agent", "Inference → Agents → New Agent → Describe", "The agent, plus the skills, workers, knowledge stubs, repository, skillsets and rules it needs."],
["Skillset", "Inference → Skillsets → Generate", "A cohesive set of skills."],
["Knowledge", "Knowledge → Repositories or Sources → Generate", "Named, typed source stubs, and a repository to group them from the Repositories tab."],
["Rules", "Governance → Rules → Generate", "Rules written against the rule vocabulary; unenforceable ones dropped whole with the reason."],
["Dashboard", "Dashboards → Describe a dashboard", "A board of validated tiles with provenance and a target."],
],
},
},
{
heading: "The pattern",
diagram: {
kind: "flow",
nodes: [
{ label: "Describe", sub: "in your own words, with examples to start from" },
{ label: "Generate", sub: "a run is recorded the moment you ask" },
{ label: "Review", sub: "every part shown, editable, droppable" },
{ label: "Create", sub: "in one transaction, marked as generated" },
],
},
diagramCaption:
"Nothing is created until you accept, and everything accepted is created together — a failure part-way leaves nothing behind.",
},
{
heading: "Never trust model output at a boundary",
paragraphs: [
"Anything a model proposes is re-validated by the same code that validates hand-written input before it is stored. Ids it invents are dropped, graphs and rule blocks are re-checked against the engine, widget configurations are checked against the same registries the tiles read, and the server never takes an id from the model. Where a value must be true — a URL, a connection string, an endpoint — the model is not allowed to supply one at all: knowledge sources arrive as empty stubs for you to complete.",
],
},
{
heading: "How generated resources are marked",
list: [
"**A sparkle on the icon** in every list and card, and an **AI generated** pill on events.",
"**A provenance banner** at the top of the resource's detail page, with a **View invocation** disclosure.",
"**Filters** on every list page — AI generated or hand-built — so you can find everything a flow produced.",
"**The parent agent**, for anything made alongside one: a skill, worker, knowledge base, repository, skillset or rule remembers which agent it was generated for, even after that agent is deleted.",
],
},
{
heading: "Every invocation is on record",
paragraphs: [
"Each time a generative flow is invoked, a **generation run** is recorded before you accept anything: the flow, who asked, the request arguments with any secrets redacted, the model that answered, any warnings, and — once you accept — everything it produced. A rejected proposal and a failed run are both on record, and they appear in the Activity feed under Generative as proposed, applied or failed.",
"**View invocation** on a generated resource opens that run, so a reader is told not just that the resource was generated but *why*, from what, and what else came of the same request. Individual edits carry the same link: a version created by a generative flow resolves to the run behind it.",
],
},
{
callout: {
tone: "tip",
title: "Write the description the way you would brief a colleague",
text: "Say who the audience is, what data it should rely on, the tone, and the constraints. Every flow offers example descriptions to start from. A vague description produces a plausible-looking proposal that needs more editing than writing it by hand would have.",
},
},
],
},
// ─── History ──────────────────────────────────────────────────────────────
"/docs/guides/history": {
title: "Version History & Traceability",
description:
"Every resource you create keeps an append-only edit history you can diff, and every result records the version that produced it.",
sections: [
{
heading: "Every resource has a history",
paragraphs: [
"Creating, updating or deleting any user-created resource writes an append-only **version**: a full snapshot of the resource after the change, the list of fields that changed, who made it and when, and — for a generated change — the generation run behind it. Agents, skills, skillsets, knowledge sources, repositories, rules, datasets, evaluations, dashboards, projects and organisations all keep one. Fields that may hold credentials are excluded from the snapshot.",
],
},
{
heading: "Reading it",
appPath: ["any resource", "Edit history"],
paragraphs: [
"The bottom of every detail page lists the resource's versions. Pick any two to see a **diff** of what changed between them. A resource's history survives its deletion — a deleted resource's history is exactly when it matters most — and is also reachable from the **Resources** kind on the Activity page.",
],
diagram: {
kind: "flow",
nodes: [
{ label: "v1 created", sub: "snapshot + who + when" },
{ label: "v2 edited", sub: "changed fields listed" },
{ label: "v3 promoted", sub: "from an evaluation, gate recorded" },
{ label: "Deleted", sub: "history remains readable" },
],
},
diagramCaption:
"A version is a record, never a setting: nothing edits a version after it is written.",
},
{
heading: "From a result back to its configuration",
paragraphs: [
"A history on its own only tells you what a resource said at each point in time. Traceability is the link **from a result** back to it:",
],
list: [
"**Every agent turn** records the agent version that produced it — captured when the configuration is read, so an edit landing mid-turn cannot claim a revision that never ran that prompt. Blocked and errored turns are stamped too. The Activity page shows it as a badge that opens the agent's history on that exact version.",
"**Every rule event and review flag** records the rule version that fired, so a block from months ago resolves to what the rule said then, not what it says now.",
"**Every evaluation run** records the versions of the dataset and evaluation in force, so a score resolves to the exact cases and grading that produced it.",
"**Every promotion** writes a new agent version and records the gate's verdict and any override, so a prompt change made against the evidence is distinguishable from a clean one.",
],
},
{
heading: "What has no history, and why",
paragraphs: [
"**Models** are the platform's records rather than yours, so they carry no version trail; a direct model chat has no version stamp. **Usage ledger rows** and **governance events** are never edited, so they need no history: they are the evidence. **Review decisions** are terminal, so one decision stands in for a trail.",
],
},
{
callout: {
tone: "info",
title: "Why this matters for an audit",
text: "Policies change. Without version stamps an audit trail only tells you what your rules say today, which is not the question an auditor asks. With them you can show not only that something was blocked, but which rule blocked it, exactly what that rule said at the time, and which revision of the agent it was protecting.",
},
},
],
},
};
|