Skip to content

Haldir v0.2.2 — AutoGen integration (Big 4 complete)

Latest

Choose a tag to compare

@ExposureGuard ExposureGuard released this 18 Apr 22:35
· 77 commits to main since this release

Big 4 agent-framework integrations complete

Haldir now ships native governance for every major AI agent framework developers use in 2026:

  • langchain-haldir
  • crewai-haldir
  • autogen-haldir — new in this release
  • @haldir/ai-sdk (Vercel AI SDK)

Each adds scope-checked permissions, hash-chained audit, and a kill-switch session in ~10 lines of code to any existing agent.

AutoGen highlights

from autogen_haldir import create_session, govern_tool

client, sid = create_session(api_key='hld_xxx', agent_id='bot',
                             scopes=['read','search'], spend_limit=10.0)

governed = govern_tool(my_tool, client=client, session_id=sid,
                       required_scope='search', cost_usd=0.003)

agent = AssistantAgent(name='researcher', model_client=model, tools=[governed])

Wraps BaseTool / FunctionTool at both run and run_json entry points, preserves the full tool surface (name, description, schema, args_type, return_type) so AutoGen treats it as native, and raises HaldirPermissionError on revocation mid-run.

Also in this release

  • Architecture diagram SVG embedded in the README (handcoded, no raster deps)
  • Framework-integrated examples: langchain_agent.py, crewai_crew.py, vercel_ai_sdk.ts
  • Repository hygiene: issue + PR templates, dependabot across 7 ecosystems, CODEOWNERS, FUNDING
  • Proxy policy-engine tests (25 cases) — 79 total across Gate / Vault / Watch / Proxy
  • Package metadata polish on PyPI + npm (0.2.2): full classifiers, keywords, cross-linked URLs
  • Comprehensive wiki — 17 pages covering architecture through roadmap at github.com/ExposureGuard/haldir/wiki
  • SECURITY.md with safe-harbor + disclosure policy

Full changelog: CHANGELOG.md