feat(guardrails): AGENT_INPUT field source for pre-execution rules [AL-410]#1604
Open
valentinabojan wants to merge 1 commit intomainfrom
Open
feat(guardrails): AGENT_INPUT field source for pre-execution rules [AL-410]#1604valentinabojan wants to merge 1 commit intomainfrom
valentinabojan wants to merge 1 commit intomainfrom
Conversation
Lets deterministic guardrail rules reference the agent's validated input parameters via FieldSource.AGENT_INPUT (e.g. caller-context gating: role/tier/region/dry-run). Pre-execution only — agent_input is not threaded into post evaluation; a config validator rejects guardrails that mix AGENT_INPUT with output-dependent rules. AL-410 / AL-405 (Phase A).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
FieldSource.AGENT_INPUTso deterministic guardrail rules can reference the agent's validated input parameters (caller-context gating: role/tier/region/dry-run, etc.).agent_inputdict throughevaluate_pre_deterministic_guardrailonly — agent_input rules are pre-execution by design.DeterministicGuardrailconfigs to reject mixingAGENT_INPUTwith output-dependent rules (such guardrails would be classified as post-execution and silently no-op).Phase A of AL-405. This PR ships the SDK data-model + evaluator. Sibling PRs in uipath-langchain-python and uipath-agents-python thread agent_input from graph state and surface it in observability.
Tracked: AL-410.
Test plan
uv run pytest tests/guardrails/— 48 passed (40 existing + 8 new)uv run mypy src/uipath/core/guardrails/— cleanuv run ruff check . && ruff format --check .— clean🤖 Generated with Claude Code