Skip to content

Add policy hot reload support#15

Merged
nagasatish007 merged 1 commit into
agentguard-ai:mainfrom
lleonardo-franco:feature/policy-hot-reload
May 25, 2026
Merged

Add policy hot reload support#15
nagasatish007 merged 1 commit into
agentguard-ai:mainfrom
lleonardo-franco:feature/policy-hot-reload

Conversation

@lleonardo-franco
Copy link
Copy Markdown
Contributor

Summary

  • Add PolicyWatcher support for file, URL, and custom provider policy sources.
  • Add TealEngine runtime reload APIs with validated atomic swaps, reload events, watcher lifecycle helpers, and versioned evaluation metadata.
  • Cover manual reloads, invalid policy rejection, delayed provider swaps, watched file hot reloads during active evaluations, and HTTP polling validators.

Validation

  • git diff --check
  • npx tsc --noEmit
  • npm run build:types
  • npm test -- --runTestsByPath src/core/engine/tests/PolicyWatcher.test.ts --runInBand --no-watchman
  • npm test -- --runInBand --no-watchman (94 suites, 2365 tests passed; Jest printed its existing open-handle warning after success)

Resolves agentguard-ai/tealtiger#121

@nagasatish007 nagasatish007 merged commit 6983f01 into agentguard-ai:main May 25, 2026
0 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement policy hot-reload without SDK restart

2 participants