REQ-VALID-001: Layered validation gating with cheap-path skips

← Requirements

What it requires

  1. Given a tier in skip_tiers, When validate runs, Then the verdict is skipped; a per-identity override set to true beats skip_tiers, and a non-listed tier is validated.
  2. Given the global gate toggled off at runtime, When validate runs, Then the verdict is skipped.
  3. Given content that is empty or a pure tool call, When validate runs, Then the verdict is skipped and no critique generation occurs.
  4. Given a disabled validator, When validate runs, Then the inference interface is not called.
tier
NOT_RUN

Where it lives

  • src/core8
  • src/facade3

See it on the map

How it is met

implemented byresults (129 tests)entropic_validation_last_resultentropic_validation_set_enabledentropic_validation_set_identityhandle_hookis_pure_tool_callset_global_enabledset_identity_validationset_marker_resolvershould_validatestrip_reasoningvalidate129 absent129 tests, a summary by result: every test is in the tests table below

Show on the map

Implemented by

Tests (129)

Reached through calls

129 tests: 129 absent

testresultlinked byimplementers exercisedcalls away
Compliant output returns unchangedabsentinferred5 of 111
Constitutional validation catches violationsabsentinferred5 of 111
Constitutional validation passes clean contentabsentinferred5 of 111
Constitutional validator detects violations and revisesabsentinferred5 of 111
Critique generation failure returns originalabsentinferred5 of 111
Critique params include grammar_key and enable_thinkingabsentinferred5 of 111
Critique prompt prioritizes validation_rules over constitutionabsentinferred5 of 111
Critique start/end callbacks fire around the generate call absentinferred5 of 111
Critique-only mode (max_revisions: 0)absentinferred5 of 111
Disabled validator does not call inferenceabsentinferred5 of 111
Last result is populated after validationabsentinferred5 of 111
Lead tier skipped by default skip_tiersabsentinferred5 of 111
Length safety valve marks verdict rejected_reverted_lengthabsentinferred5 of 111
Malformed critique JSON defaults to compliantabsentinferred5 of 111
Max revisions exhausted returns last outputabsentinferred5 of 111
Non-compliant output triggers revision via Path Aabsentinferred5 of 111
Non-lead tiers are validated with default skip_tiersabsentinferred5 of 111
Passed verdict set on clean critiqueabsentinferred5 of 111
Per-identity rules appended to critique promptabsentinferred5 of 111
Revised verdict set when revision applied cleanlyabsentinferred5 of 111
Revision safety valve rejects gutted outputabsentinferred5 of 111
Validation falls back to constitution when no tier_rulesabsentinferred5 of 111
Validation skips pure tool-call outputabsentinferred5 of 111
accept_last() finalizes paused attempt as consumer-overrideabsentinferred5 of 111
attempt_boundary_cb fires per revisionabsentinferred5 of 111
critique_tier config flows into params JSONabsentinferred5 of 111
resume_retry() runs the revision loop and convergesabsentinferred5 of 111
set_auto_retry(false) pauses validation on rejectionabsentinferred5 of 111
Global enable toggle at runtimeabsentinferred3 of 11: set_global_enabled, set_identity_validation, should_validate1
Identity opt-out skips validation in hookabsentinferred2 of 11: handle_hook, set_identity_validation1
Per-identity opt-outabsentinferred2 of 11: set_identity_validation, should_validate1
Per-identity override at runtimeabsentinferred2 of 11: set_identity_validation, should_validate1
Per-identity override beats skip_tiersabsentinferred2 of 11: set_identity_validation, should_validate1
entropic_validation_set_enabled on configured handle without validatorabsentinferred2 of 11: entropic_validation_set_enabled, set_global_enabled1
entropic_validation_set_enabled rejects NULL handleabsentinferred2 of 11: entropic_validation_set_enabled, set_global_enabled1
entropic_validation_set_enabled without validator returns INVALID_STATEabsentinferred2 of 11: entropic_validation_set_enabled, set_global_enabled1
entropic_validation_set_identity rejects NULL handleabsentinferred2 of 11: entropic_validation_set_identity, set_identity_validation1
entropic_validation_set_identity without validator returns INVALID_STATEabsentinferred2 of 11: entropic_validation_set_identity, set_identity_validation1
Validation last_result on fresh engineabsentinferred1 of 11: entropic_validation_last_result1
entropic_validation_last_result on configured handle without validatorabsentinferred1 of 11: entropic_validation_last_result1
entropic_validation_last_result returns NULL on NULL handleabsentinferred1 of 11: entropic_validation_last_result1
entropic_validation_last_result returns NULL on unconfigured handleabsentinferred1 of 11: entropic_validation_last_result1
entropic_validation_set_identity with NULL identity returns INVALID_ARGUMENTabsentinferred1 of 11: entropic_validation_set_identity1
skip_tiers config excludes listed tiers from validationabsentinferred1 of 11: should_validate1
handle_hook surfaces tool_evidence into critique prompt (#5)absentinferred1 of 11: handle_hook2
handle_hook with empty tool_evidence falls back to manifest only absentinferred1 of 11: handle_hook2
Attach with null hook interface returns errorabsentinferred1 of 11: handle_hook3
Critique failure in hook returns originalabsentinferred1 of 11: handle_hook3
Detach removes hookabsentinferred1 of 11: handle_hook3
Hook passes through when compliantabsentinferred1 of 11: handle_hook3
Hook registered at correct priorityabsentinferred1 of 11: handle_hook3
Hook transforms content when violations foundabsentinferred1 of 11: handle_hook3
Last result populated after hook validationabsentinferred1 of 11: handle_hook3
build_critique_prompt includes tool context when presentabsentinferred1 of 11: handle_hook3
gh#105: constitutional validator's toolless render must NOT clobber absentinferred1 of 11: handle_hook3
Configure with null JSON returns errorabsentinferred2 of 11: handle_hook, set_marker_resolver6
Double-configure on one handle is refusedabsentinferred2 of 11: handle_hook, set_marker_resolver6
Nemotron3-Nano-4B Q8 first inference does not crash (gh#66)absentinferred2 of 11: handle_hook, set_marker_resolver6
Three handles can coexistabsentinferred2 of 11: handle_hook, set_marker_resolver6
Two GPU-resident handles can coexist (v2.2.8 target)absentinferred2 of 11: handle_hook, set_marker_resolver6
Two handles configure independentlyabsentinferred2 of 11: handle_hook, set_marker_resolver6
entropic_configure called twice on the same handle returns ALREADY_CONFIGUREDabsentinferred2 of 11: handle_hook, set_marker_resolver6
entropic_configure rejects NULL config_jsonabsentinferred2 of 11: handle_hook, set_marker_resolver6
entropic_configure rejects NULL handleabsentinferred2 of 11: handle_hook, set_marker_resolver6
entropic_configure_dir on /dev/null subpath returns an error, not an exceptionabsentinferred2 of 11: handle_hook, set_marker_resolver6
entropic_configure_dir on a tmp dir runs the loader pathabsentinferred2 of 11: handle_hook, set_marker_resolver6
entropic_configure_dir rejects NULL handleabsentinferred2 of 11: handle_hook, set_marker_resolver6
entropic_configure_dir with empty string path returns an error code, not an exceptionabsentinferred2 of 11: handle_hook, set_marker_resolver6
entropic_configure_from_file rejects NULL handleabsentinferred2 of 11: handle_hook, set_marker_resolver6
entropic_configure_from_file rejects NULL pathabsentinferred2 of 11: handle_hook, set_marker_resolver6
entropic_configure_from_file rejects missing fileabsentinferred2 of 11: handle_hook, set_marker_resolver6
entropic_last_error reflects most-recent operation failureabsentinferred2 of 11: handle_hook, set_marker_resolver6
entropic_last_error returns per-handle state (v2.2.6)absentinferred2 of 11: handle_hook, set_marker_resolver6
entropic_register_mcp_server on a configured handle absentinferred2 of 11: handle_hook, set_marker_resolver6
entropic_run_messages with console logging disabled still absentinferred2 of 11: handle_hook, set_marker_resolver6
entropic_seconds_since_last_activity returns 0 before any run absentinferred2 of 11: handle_hook, set_marker_resolver6
gh#110: MTP engages through the real agent loop (entropic_run)absentinferred2 of 11: handle_hook, set_marker_resolver6
gh#121 regression: configure populates engine's allowed_tools from identity frontmatterabsentinferred2 of 11: handle_hook, set_marker_resolver6
gh#144: concurrent bridge clients queue instead of racingabsentinferred2 of 11: handle_hook, set_marker_resolver6
gh#154 a tier grammar stem that cannot resolve YET still absentinferred2 of 11: handle_hook, set_marker_resolver6
gh#154 a tier grammar stem that resolves still configuresabsentinferred2 of 11: handle_hook, set_marker_resolver6
gh#154 a tier with no grammar is unaffectedabsentinferred2 of 11: handle_hook, set_marker_resolver6
gh#154 entropic_metrics_json carries a generations arrayabsentinferred2 of 11: handle_hook, set_marker_resolver6
gh#156 a frontmatter-less app_context fails configure absentinferred2 of 11: handle_hook, set_marker_resolver6
gh#156 a frontmatter-less constitution fails configure tooabsentinferred2 of 11: handle_hook, set_marker_resolver6
gh#156 a missing app_context path fails configureabsentinferred2 of 11: handle_hook, set_marker_resolver6
gh#156 a well-formed app_context file still configuresabsentinferred2 of 11: handle_hook, set_marker_resolver6
gh#156 app_context false still configuresabsentinferred2 of 11: handle_hook, set_marker_resolver6
gh#156 inline app_context content still configuresabsentinferred2 of 11: handle_hook, set_marker_resolver6
gh#158 entropic_interrupt_session targets exactly one runabsentinferred2 of 11: handle_hook, set_marker_resolver6
gh#163 entropic_configure carries app_context into ParsedConfigabsentinferred2 of 11: handle_hook, set_marker_resolver6
gh#163 entropic_configure_dir carries app_contextabsentinferred2 of 11: handle_hook, set_marker_resolver6
gh#163 entropic_configure_from_file carries app_contextabsentinferred2 of 11: handle_hook, set_marker_resolver6
gh#163 the object and false spellings survive configure_dir tooabsentinferred2 of 11: handle_hook, set_marker_resolver6
gh#164 entropic_release_model names an unknown tierabsentinferred2 of 11: handle_hook, set_marker_resolver6
gh#164 entropic_release_model refuses to unload mid-turnabsentinferred2 of 11: handle_hook, set_marker_resolver6
gh#165 entropic_session_context_set guards its preconditionsabsentinferred2 of 11: handle_hook, set_marker_resolver6
gh#165 entropic_session_context_set refuses the running sessionabsentinferred2 of 11: handle_hook, set_marker_resolver6
gh#165 entropic_session_context_set round-trips through the C ABIabsentinferred2 of 11: handle_hook, set_marker_resolver6
gh#175: a non-positive mcp.server_timeout_seconds is refused at configureabsentinferred2 of 11: handle_hook, set_marker_resolver6
gh#203: followup returns delegation_id and summary from real storageabsentinferred2 of 11: handle_hook, set_marker_resolver6
gh#204: an unservable http_port fails configure loudlyabsentinferred2 of 11: handle_hook, set_marker_resolver6
gh#95: identity grammar: field constrains that tier's outputabsentinferred2 of 11: handle_hook, set_marker_resolver6
h1.run() after h2.configure() does not segfault (v2.2.6)absentinferred2 of 11: handle_hook, set_marker_resolver6
gh#158: interrupting one session leaves the other runningabsentinferred2 of 11: handle_hook, set_marker_resolver7
gh#158: metrics and context reads are safe during live runsabsentinferred2 of 11: handle_hook, set_marker_resolver7
gh#158: two concurrent sessions do not bleed into each otherabsentinferred2 of 11: handle_hook, set_marker_resolver7
gh#164: entropic_release_model frees VRAM through the C ABIabsentinferred2 of 11: handle_hook, set_marker_resolver7
gh#165 + gh#164: release the weights, keep the conversationabsentinferred2 of 11: handle_hook, set_marker_resolver7
gh#165: a dropped session restored from JSON keeps answeringabsentinferred2 of 11: handle_hook, set_marker_resolver7
gh#166: two workspaces on one handle do not read each other's absentinferred2 of 11: handle_hook, set_marker_resolver7
gh#169: an iteration-capped delegate hands its parent the audit it absentinferred2 of 11: handle_hook, set_marker_resolver7
gh#179: each workspace's sessions answer from its own app_context, absentinferred2 of 11: handle_hook, set_marker_resolver7
gh#181: a delegate hard-cut by the thinking budget hands its absentinferred2 of 11: handle_hook, set_marker_resolver7
gh#194: a plain generation publishes the prefill it performedabsentinferred2 of 11: handle_hook, set_marker_resolver7
gh#198: a deferred handle holds no GPU memory until it runsabsentinferred2 of 11: handle_hook, set_marker_resolver7
gh#204/gh#205: two HTTP clients, different session, workspace and absentinferred2 of 11: handle_hook, set_marker_resolver7
gh#214: a prompt that does not fit fails the turn, typedabsentinferred2 of 11: handle_hook, set_marker_resolver7
gh#216: multi-byte text at the history cut does not poison later turnsabsentinferred2 of 11: handle_hook, set_marker_resolver7
gh#217: release is refused while another session is decodingabsentinferred2 of 11: handle_hook, set_marker_resolver7
gh#93: autoparser family parses a multi-parameter tool callabsentinferred2 of 11: handle_hook, set_marker_resolver7
gh#93: entropic_interrupt stops a long run early (cancel-bridge)absentinferred2 of 11: handle_hook, set_marker_resolver7
gh#94: enable_thinking:false suppresses think blocks (facade)absentinferred2 of 11: handle_hook, set_marker_resolver7
gh#99: run_as emits each tier's grammar on a shared modelabsentinferred2 of 11: handle_hook, set_marker_resolver7
outside-root optional: a real model's reads outside its root absentinferred2 of 11: handle_hook, set_marker_resolver7
v2.14.1: a declared server serves each workspace from its own repositoryabsentinferred2 of 11: handle_hook, set_marker_resolver7
v2.14.3: release frees the model over MCP and the conversation survivesabsentinferred2 of 11: handle_hook, set_marker_resolver7
v2.14.4: a model's commit message with shell syntax is text, not a commandabsentinferred2 of 11: handle_hook, set_marker_resolver7
v2.14.5: a failed turn is an error carrying only its own textabsentinferred2 of 11: handle_hook, set_marker_resolver7