Skip to content

feat(governance): guardrail-fallback compensation#123

Open
aditik0303 wants to merge 3 commits into
feat/governance-auditfrom
feat/governance-guardrail-compensation
Open

feat(governance): guardrail-fallback compensation#123
aditik0303 wants to merge 3 commits into
feat/governance-auditfrom
feat/governance-guardrail-compensation

Conversation

@aditik0303

Copy link
Copy Markdown

Stacked PR 4/7 — part of splitting feat/governance-core into reviewable slices. Base: feat/governance-audit. One logical slice (branch is cumulative so CI is green). Merge in order #1#7 and delete each branch on merge so the next PR auto-retargets onto feat/agentic-governance. feat/governance-core kept untouched as backup.

@aditik0303 aditik0303 requested a review from a team as a code owner June 12, 2026 11:45
@aditik0303 aditik0303 force-pushed the feat/governance-audit branch from 42e1f29 to 7111d27 Compare June 16, 2026 09:28
@aditik0303 aditik0303 force-pushed the feat/governance-guardrail-compensation branch from 8812695 to 2da1f67 Compare June 16, 2026 09:30
@aditik0303 aditik0303 force-pushed the feat/governance-audit branch from 7111d27 to 2db5f2d Compare June 17, 2026 06:35
@aditik0303 aditik0303 force-pushed the feat/governance-guardrail-compensation branch from 2da1f67 to 5b119ac Compare June 17, 2026 06:37
@aditik0303 aditik0303 force-pushed the feat/governance-audit branch from 2db5f2d to bd19932 Compare June 17, 2026 08:35
@aditik0303 aditik0303 force-pushed the feat/governance-guardrail-compensation branch from 5b119ac to 2154aba Compare June 17, 2026 08:35
aditik0303 and others added 2 commits June 19, 2026 13:38
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…not uipath-platform

- guardrail_compensation.py: _resolve_trace_id reads the UIPATH_TRACE_ID env
  var via the runtime-local ENV_TRACE_ID constant instead of UiPathConfig;
  log messages no longer reference uipath-platform.
- test_guardrail_compensation: import reset helper from tests._helpers; the
  trace-id fallback test pins UIPATH_TRACE_ID via monkeypatch.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@aditik0303 aditik0303 force-pushed the feat/governance-audit branch from bd19932 to add4e90 Compare June 19, 2026 08:08
@aditik0303 aditik0303 force-pushed the feat/governance-guardrail-compensation branch from 2154aba to 1f7bdad Compare June 19, 2026 08:08
…ve_trace_id

Restores the conversational trace-id binding fix. Native governance audit
spans are exported under UIPATH_TRACE_ID (the platform rebinds spans to the
agent's run trace), so the /govern compensation records must bind to that
same id — not the live OTel span's id, which diverges in autonomous runs and
is absent on the conversational hook thread. Resolve UIPATH_TRACE_ID first,
then the live span, then the caller fallback.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant