Repository navigation
Commit 7e4ef8d
feat(governance): audit pipeline — manager, console + traces sinks
Adds the audit pipeline that records governance evaluations: an
AuditManager that fans out per-evaluation records to registered sinks
(console + traces), with per-instance lifecycle (one ThreadPoolExecutor
+ atexit hook keyed via a WeakSet of live managers — same shape the
later GuardrailCompensator slice reuses).
Sinks
-----
- Console sink for local development and CLI runs.
- Traces sink that emits an OTel span per evaluation; severity is
mapped from the matched rule's enforcement mode (audit / enforce /
guardrail_fallback) so downstream traces UIs can filter by it.
Companion changes pulled in via the main-merge on this branch
-------------------------------------------------------------
This branch was kept in sync with main during review; the diff
therefore includes the following work that originated in other PRs and
will already be merged by the time this lands:
- Workspace hydration primitives (hydration, hydrator, registry_store,
workspace; from PR #131).
- ``execution_source`` derived field on the runtime context (from
PR #132).
Co-Authored-By: Aditi Kumari <aditi.kumari@uipath.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 13cd366 commit 7e4ef8d
9 files changed
Lines changed: 1847 additions & 3 deletions
File tree
- src/uipath/runtime/governance
- _audit
- native
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments