Skip to content

Commit a019ade

Browse files
aditik0303claude
andcommitted
feat(governance): in-runtime policy evaluator + native package exports
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 8812695 commit a019ade

6 files changed

Lines changed: 2699 additions & 0 deletions

File tree

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
"""Native UiPath governance policy evaluator.
2+
3+
YAML-defined rules evaluated in-process at each agent lifecycle hook.
4+
Reads policies from the UiPath governance backend
5+
(``GET /api/v1/policy``) at startup and runs the deterministic
6+
detectors backing ISO 42001 controls.
7+
8+
This subpackage owns:
9+
10+
- :class:`GovernanceEvaluator` – the evaluator implementation.
11+
- The native policy model: :class:`Rule`, :class:`Check`,
12+
:class:`Condition`, :class:`PolicyIndex`.
13+
- Policy fetch + YAML compilation plumbing.
14+
15+
Shared output types (``Action``, ``AuditRecord``, …) live in
16+
:mod:`uipath.core.governance`.
17+
"""
18+
19+
from .evaluator import GovernanceEvaluator
20+
from .loader import (
21+
get_policy_index,
22+
load_policy_index,
23+
prefetch_policy_index,
24+
reset_policy_index,
25+
)
26+
from .models import (
27+
Check,
28+
CheckContext,
29+
Condition,
30+
PolicyIndex,
31+
PolicyPack,
32+
Rule,
33+
Severity,
34+
)
35+
36+
__all__ = [
37+
"GovernanceEvaluator",
38+
# Loader
39+
"get_policy_index",
40+
"load_policy_index",
41+
"prefetch_policy_index",
42+
"reset_policy_index",
43+
# Native policy model
44+
"Check",
45+
"CheckContext",
46+
"Condition",
47+
"PolicyIndex",
48+
"PolicyPack",
49+
"Rule",
50+
"Severity",
51+
]

0 commit comments

Comments
 (0)