Skip to content

Merge dev/v2.0 into main#4

Merged
lhahah merged 40 commits into
mainfrom
dev/v2.0
Jun 21, 2026
Merged

Merge dev/v2.0 into main#4
lhahah merged 40 commits into
mainfrom
dev/v2.0

Conversation

@lhahah

@lhahah lhahah commented Jun 21, 2026

Copy link
Copy Markdown
Collaborator

Automated PR created from dev/v2.0 into main.\n\nNote: do not delete the source branch after merge.

alexps9 and others added 30 commits June 5, 2026 20:35
…uard v0.3)

Major restructuring of AgentGuard into a production-ready monorepo layout.

Client (src/client/python/agentguard/):
- Harness Runtime with LLM/Agent/Tool interception and lifecycle management
- U-Guard dual-path engine: fast-path local policy + slow-path remote guard with
  PolicySnapshot sync, RemoteGuardClient, and offline fallback
- Comprehensive checker suite (LLM input/output/thought, tool invoke/result,
  final response, memory)
- Sandbox subsystem: NoopSandbox, LocalPermissionSandbox, SubprocessSandbox,
  SandboxExecutor with PermissionProfile
- Tool registry, ToolWrapper, ToolDegradeManager; interceptor chain; client plugins
  with AgentDoGProxyPlugin as paired plugin example
- Adapters for major LLM/agent frameworks (offline-safe defaults)
- Root-level skills: DSLWriter, RuleLinter, PolicyExplainer, RuleTester,
  PolicySnapshotBuilder, TraceToRule, PolicyGapAnalyzer, RegressionTestGenerator
  and runtime skills (SafeRewrite, ToolRepair, ThoughtAlign, ObservationSanitize,
  ArgumentDegrade)
- Structured audit: redactor, JSONL trace logger, recorder; CLI subcommands

Server (src/server/backend/):
- RuntimeManager with observer hook for real-time console data
- PolicyEngine deny-overrides, PolicyStore, snapshot builder
- AgentDoG server plugin: real trajectory judge using genuine AgentDoG prompt +
  OpenAI-compatible model endpoint (e.g. vLLM + AgentDoG checkpoint);
  HeuristicAgentDoGAdapter as offline fallback (real deterministic detector)
- AgentDoGModelAdapter with graceful fallback on network/parse errors
- LLM provider: real OpenAI-compatible HTTP + HeuristicProvider offline fallback
  (replaces former mock implementation)
- Management console API (console_router): tools/labels CRUD, rules CRUD +
  check/reload, stats/traffic/audit/approvals backed by live decision data
- Enriched /health endpoint; FastAPI app with CORS

Shared, rules, plugins, examples:
- Protocol contracts (RemoteGuardRequest/Response, PluginManifest)
- Built-in JSON rule files; plugin manifests (agentdog paired plugin)
- 7 runnable examples + cross-container e2e client

Frontend integration:
- frontend/app.py: mock_backend dependency optional; defaults to real backend
- Console fully wired to real server data

Infrastructure:
- Dockerfile: PYTHONPATH monorepo layout, frontend included
- docker-compose.yml: server + frontend one-click stack; e2e client in profile
- scripts/entrypoint.sh: added frontend command
- conftest.py: sys.path wiring for all test environments

Tests: 34 pytest tests (schemas, checkers, local engine, sandbox, parser,
skills, server manager, e2e HTTP, real adapters, console state); all pass.

Archive: original agentguard/ moved to legacy/agentguard/;
AgentDoG added as git submodule under third_party/AgentDoG.
refactor: migrate to client-server runtime security framework
Add phased local/remote checker configuration across client and server, runtime config update APIs, server-to-client config propagation, attach-based agent integration, shared schema/rule utilities, optional rule-based server checker, and checker documentation.
…nd add key verification for interaction between client and server
wrap_llm for autogen & langchain
@lhahah lhahah merged commit 7c17ac5 into main Jun 21, 2026
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.

3 participants