Conformance
Run the corpus against your implementation#
Fetch the index, fetch each fixture it names, and run each one: load the fixture's rules, apply the input, and compare against expected. An implementation claiming conformance passes every fixture, and reports the ones it skipped. A skipped fixture is not a passed fixture.
curl https://openagentrules.org/spec/1.0/conformance/manifest.json
The runner algorithm#
The requirements below define the evaluation algorithm end to end. Each step is separately identified so a conformance fixture can cite it.
- [OAR-CONF-1] Load each rule document and validate it against the published OAR schema. An engine MUST reject a document that fails validation, naming the failing field.
- [OAR-CONF-2] An engine MUST apply the version gate of
[OAR-DOC-3]before any other processing of a document. - [OAR-CONF-3] An engine MUST resolve
on: a core anchor identifier through the anchor profile map, any other value as a host-native anchor identifier. - [OAR-CONF-4] An engine MUST reject a rule whose
requires_factsare not all provided by the host. - [OAR-CONF-5] An engine MUST type-check
whenagainst the declared fact environment and MUST reject the rule on an unknown identifier or a type error. - [OAR-CONF-6] At an anchor occurrence, an engine MUST select the rules whose resolved
onmatches and whose selector clauses all match. - [OAR-CONF-7] An engine MUST assemble the facts the selected rules reference. A fact provider failure MUST be handled per the rule's
on_error. - [OAR-CONF-8] An engine MUST evaluate
when. A rule with neitherwhennorflowfires whenever it is selected. - [OAR-CONF-9] An engine MUST record but not act on a rule whose
enforcementismonitor: no effect, no side-effect, no short-circuit. - [OAR-CONF-10] An engine MUST order evaluation by
kindthenid, and the first enforced rule firing withblockMUST short-circuit the occurrence. - [OAR-CONF-11] An engine MUST apply decision precedence:
block, thennudge, thenwarn, otherwise allow. - [OAR-CONF-12] An engine MUST apply the
on_fireactions of every rule that fired and was enforced.
Fixtures (132)#
| Fixture | Covers | What it proves |
|---|---|---|
copy-does-not-affect-decision | OAR-COPY-6 | A copy-carrying rule does not displace the rule that wins |
copy-double-canonical | OAR-COPY-9 | A double renders as the shortest round-tripping decimal |
copy-host-fact-reached-through-requires-facts | OAR-COPY-5, OAR-FACT-19, OAR-FACT-15 | A host fact declared in requires_facts renders in copy |
copy-malformed-construct-rejected | OAR-COPY-3 | A copy construct outside the grammar is rejected by name |
copy-non-core-fact-unreached-rejected | OAR-COPY-5 | Copy naming a host fact the rule does not require is rejected at load |
copy-non-interpolatable-type-rejected | OAR-COPY-4 | Copy binding a map fact is rejected at load |
copy-renders-in-decision | OAR-COPY-1, OAR-COPY-7 | The winning rule's copy renders against the occurrence facts |
copy-unknown-binding-rejected | OAR-COPY-2 | Copy binding an undeclared fact is rejected at load |
copy-whitespace-insignificant | OAR-COPY-8 | Whitespace inside a binding is permitted and insignificant |
copy-zero-value-renders | OAR-FACT-25, OAR-COPY-4, OAR-FACT-24 | A fact at its zero value renders, it does not vanish |
detector-threshold-in-when | OAR-OPS-10, OAR-FACT-9, OAR-CONF-18, OAR-FACT-6 | A detector supplies a score and the rule owns the threshold |
detector-threshold-not-crossed | OAR-OPS-10 | The same detector score below the rule's threshold produces no decision |
doc-copy-fields-do-not-affect-decision | OAR-DOC-18 | Presentation copy describes the finding and changes nothing about the decision |
doc-detector-ref-required-for-detector-kind | OAR-DOC-17 | A detector-kind document without a detector reference is rejected at load |
doc-effect-outside-vocabulary-rejected | OAR-DOC-8 | An effect outside the four this version defines is rejected at load |
doc-extension-field-ignored | OAR-DOC-19 | An x- extension field is ignored rather than rejected |
doc-invalid-id-rejected | OAR-DOC-4 | An id that does not match the identifier pattern is rejected at load |
doc-missing-required-field-rejected | OAR-DOC-2 | A document missing a required field is rejected at load |
doc-namespace-identity | OAR-DOC-20, OAR-DOC-21, OAR-EVAL-7 | Two publishers may ship the same id under different namespaces; the decision still carries the bare id |
doc-non-core-reference-must-be-listed | OAR-DOC-22, OAR-PROF-5 | A rule referencing a standard-profile fact it does not list is rejected at load |
doc-profile-field-is-informational | OAR-DOC-23 | The profile field records intent and derives no behaviour |
doc-references-do-not-affect-decision | OAR-DOC-16 | Interoperability taxonomy tags are telemetry and change nothing |
doc-rule-set-duplicate-identity-rejected | OAR-DOC-28, OAR-DOC-27 | A rule set holding two rules with one identity is rejected at load |
doc-title-does-not-affect-decision | OAR-DOC-5 | A title is a label: it changes nothing about the decision |
doc-unknown-field-rejected | OAR-DOC-19, OAR-CONF-1 | A field the specification does not define is rejected, naming the key |
doc-unknown-kind-rejected | OAR-DOC-6 | A kind outside the closed set is rejected at load |
doc-unknown-on-fire-action-rejected | OAR-FIRE-1 | A side-effect outside the closed on_fire vocabulary is rejected at load |
doc-unsupported-major-rejected | OAR-DOC-3, OAR-CONF-2 | A document whose spec_version major is unsupported is rejected at load |
doc-unsupported-minor-rejected | OAR-DOC-1, OAR-DOC-3 | A spec_version the engine does not support is rejected, not coerced |
doc-version-leading-zero-rejected | OAR-DOC-3, OAR-CONF-2 | A spec_version with a leading zero is not a version |
eval-allow-does-not-override | OAR-EVAL-5 | An explicit allow contributes no decision and does not override a warn |
eval-block-short-circuits | OAR-EVAL-3, OAR-CONF-10 | The first rule that fires with block stops the anchor occurrence |
eval-first-of-winning-effect-decides | OAR-EVAL-10 | When several rules fire with the winning effect, the first in order decides |
eval-kind-order | OAR-EVAL-1, OAR-EVAL-2, OAR-CONF-10 | Rules evaluate schema before policy before invariant, then by id |
eval-namespace-breaks-identifier-ties | OAR-EVAL-1, OAR-DOC-21 | Rules of one kind and id order by namespace |
eval-precedence-block-wins | OAR-EVAL-4, OAR-EVAL-6, OAR-CONF-11 | A block outranks a nudge that fired earlier in the order |
eval-precedence-nudge-over-warn | OAR-EVAL-4, OAR-CONF-11 | A nudge outranks a warn when no rule blocked |
expr-arithmetic-faults-raise | OAR-EXPR-14 | Division by zero, integer overflow and non-finite doubles raise |
expr-builtins-evaluate | OAR-EXPR-17 | The four built-ins evaluate as specified |
expr-call-arguments-are-expressions | OAR-EXPR-16 | A call argument may be any condition of the declared type |
expr-call-signature-mismatch-rejected | OAR-EXPR-16 | A call whose arguments do not match its signature is rejected at load |
expr-chained-relation-rejected | OAR-EXPR-4 | A relation holding two relational operators is rejected at load |
expr-comment-rejected | OAR-EXPR-6 | A comment is not part of the language |
expr-double-literal-not-finite-rejected | OAR-EXPR-15 | A double literal with no finite value is rejected at load |
expr-double-modulo-rejected | OAR-EXPR-9 | Modulo on doubles is rejected at load |
expr-empty-list-rejected | OAR-EXPR-7 | An empty list literal is rejected at load |
expr-equality-of-aggregates-rejected | OAR-EXPR-11 | Equality between lists or maps is rejected at load |
expr-equality-of-unrelated-types-rejected | OAR-EXPR-11 | Equality between unrelated types is rejected at load |
expr-grammar-derives-every-form | OAR-EXPR-1, OAR-EXPR-8 | Every form the grammar derives is accepted and evaluated |
expr-host-map-member-selected | OAR-EXPR-2, OAR-EXPR-13 | A reference selects a member of a host-tier map fact |
expr-in-tests-membership-and-keys | OAR-EXPR-12 | in tests list membership and map key presence |
expr-in-with-non-string-rejected | OAR-EXPR-12 | in with a non-string left operand is rejected at load |
expr-index-rejected | OAR-EXPR-1 | An index expression is outside the grammar and is rejected at load |
expr-int-against-double-rejected | OAR-EXPR-10 | Ordering an int against a double is rejected at load |
expr-int-literal-out-of-range-rejected | OAR-EXPR-15 | An int literal beyond 64 bits is rejected at load |
expr-integer-division-truncates | OAR-EXPR-9 | Integer division and modulo truncate toward zero |
expr-least-int-literal | OAR-EXPR-15 | The least int is written as unary minus over 9223372036854775808 |
expr-map-member-selected | OAR-EXPR-2, OAR-EXPR-13 | A dotted reference selects a member of a map fact |
expr-mixed-arithmetic-rejected | OAR-EXPR-9 | Arithmetic mixing int and double is rejected at load |
expr-names-lex-greedily | OAR-EXPR-6 | A name beginning with a reserved word is one name |
expr-node-floor-accepted | OAR-EXPR-19 | A condition of 256 nodes is accepted |
expr-non-string-list-rejected | OAR-EXPR-7 | A list literal of non-strings is rejected at load |
expr-non-string-member-raises | OAR-EXPR-13 | A present member that is not a string raises |
expr-null-is-unknown | OAR-EXPR-7 | null is an unknown identifier |
expr-precedence-and-associativity | OAR-EXPR-4 | Operators group by the specified precedence |
expr-selection-from-non-map-rejected | OAR-EXPR-2 | Selecting a member of a fact that is not a map is rejected at load |
expr-short-circuit-skips-raising-operand | OAR-EXPR-5 | A decided && or || does not evaluate its right operand |
expr-string-builtins-use-code-points | OAR-EXPR-18 | String built-ins count and compare code points without folding case |
expr-string-escapes | OAR-EXPR-3 | The six string escapes decode as specified |
expr-strings-order-by-code-point | OAR-EXPR-10 | Strings order by Unicode code point, not UTF-16 code unit |
expr-ternary-branches-agree | OAR-EXPR-8 | A ternary whose branches differ in type is rejected at load |
expr-undeclared-function-rejected | OAR-EXPR-17 | A call to a function that is neither built-in nor declared is rejected at load |
expr-unknown-escape-rejected | OAR-EXPR-3 | An escape outside the six is rejected at load |
fact-core-observation-composed | OAR-FACT-1, OAR-FACT-5 | A rule composes core observations rather than reading a verdict |
fact-dyn-member-comparison-rejected | OAR-FACT-22 | A condition comparing a selected dyn member is rejected at load |
fact-int-out-of-range-fails-provider | OAR-FACT-17, OAR-OPS-2 | An int fact outside 64 bits routes the rule through on_error |
fact-mcp-accessor-wrong-type-errors | OAR-FACT-23 | A typed mcp accessor reading a member of another type is a fact-provider failure |
fact-mcp-result-members-read-by-type | OAR-FACT-13 | The mcp profile reads result members by selection and typed accessors |
fact-non-boolean-condition-rejected | OAR-FACT-3 | A condition that does not evaluate to a boolean is rejected at load |
fact-observation-function-composed | OAR-FACT-7 | A parameterized observation function is composed like any other observation |
fact-type-outside-vocabulary-rejected | OAR-FACT-16 | A host fact declared under a type outside the closed vocabulary is rejected |
fact-unknown-identifier-rejected | OAR-FACT-2, OAR-CONF-5 | A condition referencing an undeclared fact is rejected at load, naming it |
fact-value-type-violation-errored | OAR-FACT-18 | A fact value that violates its declared type is a provider failure, not a coercion |
fire-counter-increment | OAR-FIRE-2, OAR-FIRE-4, OAR-CONF-12 | A rule that fires applies its declared on_fire increment |
fire-counter-of-unknown-rule-rejected | OAR-FIRE-6 | Reading the counters of a rule outside the rule set is rejected at load |
fire-counter-read-before-increment | OAR-FIRE-5 | A condition reads the counter value from before this occurrence's own increment |
fire-counter-threshold-crossing | OAR-FIRE-3, OAR-FIRE-4, OAR-FIRE-6 | A rule reads another rule's counter on a later occurrence |
fire-counters-keyed-by-identity | OAR-FIRE-4, OAR-DOC-21 | Rules sharing an id under different namespaces keep separate counters |
fire-counting-rule-feeds-escalation | OAR-FIRE-6, OAR-FIRE-5 | An allow rule that counts feeds a rule that escalates on the count |
fire-fire-count-reads-increment-counter | OAR-FIRE-6 | fire_count reads the counter increment_counter maintains |
fire-on-fire-survives-lost-precedence | OAR-EVAL-9 | A rule that fired and was enforced applies on_fire even when its effect loses precedence |
fire-publish-event-changes-nothing | OAR-FIRE-7 | publish_event does not affect the decision, trace, or counters |
fire-same-call-run-breaks-on-different-arguments | OAR-FIRE-9 | A call with different arguments ends the run of the same call |
fire-same-call-run-ignores-member-order | OAR-FIRE-9, OAR-FACT-20, OAR-FIRE-10 | same_call_run compares arguments as JSON values, ignoring member order |
fire-same-code-reject-run-counts-blocks | OAR-FIRE-8, OAR-FIRE-10 | same_code_reject_run counts the latest blocks carrying one identifier |
fire-same-code-reject-run-resets | OAR-FIRE-8 | A decision other than a block ends the run of blocks |
flow-sequence-does-not-match | OAR-FACT-10 | A flow whose steps appear out of order does not match |
flow-sequence-matches | OAR-FACT-10, OAR-DOC-10 | A flow matches an ordered, not necessarily contiguous, subsequence |
hint-copy-must-be-static | OAR-HINT-3 | Hint copy carrying a binding is rejected at load |
hint-duplicate-code-rejected | OAR-HINT-2 | Two hints with one code are rejected at load, whatever their namespace |
hint-evaluation-field-rejected | OAR-HINT-1 | A hint that carries a condition is rejected at load |
hint-loads-and-does-not-perturb | OAR-HINT-1, OAR-HINT-6 | A hint document loads beside rules and leaves every decision alone |
hint-without-copy-rejected | OAR-HINT-2 | A hint that publishes no copy is not a hint |
host-fact-absent-reads-zero-value | OAR-FACT-24, OAR-FACT-25, OAR-COPY-3 | A declared host fact absent from the occurrence reads as its zero value |
host-int-fact-compares-as-int | OAR-FACT-19, OAR-COPY-4 | An int host fact reached through a dotted select compares as an int |
on-error-copy-omitted | OAR-COPY-10, OAR-FACT-23 | An on_error block whose copy cannot render stands without copy |
ops-applied-trace-records-passes | OAR-OPS-7 | The applied-rules trace records selected rules that did not fire |
ops-detector-ref-unresolvable-rejected | OAR-OPS-11 | A detector-kind rule whose reference cannot be resolved is rejected at load |
ops-mandatory-monitor-rejected | OAR-OPS-9 | A mandatory rule cannot be monitored |
ops-mandatory-not-disableable | OAR-DOC-11, OAR-OPS-5 | A mandatory rule is evaluated and fires like any other |
ops-monitor-does-not-short-circuit | OAR-EVAL-8 | A monitored rule that would have blocked does not stop later rules |
ops-monitor-error-produces-no-decision | OAR-OPS-8 | A monitored rule that cannot be evaluated produces no decision |
ops-monitor-suppresses-effect | OAR-OPS-1, OAR-CONF-9 | A rule in monitor mode is recorded but produces no effect |
ops-monitor-suppresses-on-fire | OAR-OPS-1, OAR-FIRE-2 | A rule in monitor mode applies no side-effect |
ops-on-error-fail-closed | OAR-DOC-13, OAR-OPS-2, OAR-CONF-7, OAR-CONF-18 | A rule that cannot be evaluated blocks under the default on_error, fail_closed |
ops-on-error-fail-open | OAR-OPS-3, OAR-CONF-18 | A rule that cannot be evaluated contributes nothing under fail_open |
ops-on-error-substitute-code | OAR-OPS-4, OAR-CONF-18 | A named on_error substitutes the decision identifier, not the effect |
ops-on-error-unknown-substitute-rejected | OAR-OPS-4 | An on_error naming no rule of the rule set is rejected at load |
ops-severity-does-not-affect-decision | OAR-DOC-7 | Severity is telemetry only: an info-severity rule still produces its declared effect |
prof-core-anchor-resolved | OAR-PROF-1, OAR-PROF-3, OAR-CONF-3 | A rule on a core anchor is resolved through the host profile map and fires |
prof-core-anchor-unsupported-rejected | OAR-PROF-3, OAR-CONF-19, OAR-PROF-2 | A rule on a core anchor the host declares unsupported is rejected at load |
prof-profile-map-names-every-anchor | OAR-PROF-2 | An anchor profile map that omits a core anchor is rejected |
prof-requires-facts-met-loads | OAR-PROF-6 | A rule requiring facts the host provides loads and fires normally |
prof-requires-facts-unmet-rejected | OAR-DOC-22, OAR-PROF-6, OAR-CONF-4 | A rule requiring a fact the host does not provide is rejected at load, naming both |
sel-absent-when-fires | OAR-CONF-8 | A rule with neither when nor flow fires whenever it is selected |
sel-clauses-and | OAR-SEL-2, OAR-SEL-4, OAR-CONF-6 | A selector clause that does not match deselects the rule |
sel-empty-matches-all | OAR-SEL-3, OAR-SEL-4, OAR-DOC-12, OAR-DOC-14 | An empty selector matches every occurrence of the anchor |
sel-unknown-anchor-rejected | OAR-SEL-1 | A document naming an anchor the host cannot resolve is rejected, naming the value |
sel-unknown-clause-rejected | OAR-SEL-7 | A selector clause the vocabulary does not define is rejected at load |
sel-unmodelled-clause-does-not-match | OAR-SEL-6 | A tools clause does not match at an anchor where no tool is invoked |
stream-chunk-unsupported-rejected | OAR-OPS-6 | An engine that does not implement chunked evaluation rejects the document |
substitute-carries-copy | OAR-OPS-4, OAR-COPY-7 | A substitute on_error block carries the substitute rule's rendered copy |