Skip to content

feat: add hdp-autogen middleware for AutoGen (Python + TypeScript)#9

Open
asiridalugoda wants to merge 4 commits intomainfrom
feature/hdp-autogen-middleware
Open

feat: add hdp-autogen middleware for AutoGen (Python + TypeScript)#9
asiridalugoda wants to merge 4 commits intomainfrom
feature/hdp-autogen-middleware

Conversation

@asiridalugoda
Copy link
Copy Markdown
Contributor

Summary

  • Add hdp-autogen Python package with HdpMiddleware for AutoGen's ConversableAgent and GroupChatManager
  • Add @helixar_ai/hdp-autogen TypeScript package with HdpAgentWrapper, hdpMiddleware(), and HDP_TOOLS
  • Add CI test matrix (Python 3.10/3.11/3.12) and release pipeline (ReleaseGuard + PyPI/npm publish)
  • Update root README with AutoGen integration docs, badges, and quickstart examples

Design

  • Follows existing hdp-crewai/hdp-grok/hdp-mcp conventions exactly
  • Non-blocking: all HDP operations wrapped in try/except, never halts agent execution
  • Polymorphic configure() auto-detects ConversableAgent vs GroupChatManager
  • Each AutoGen speaker turn maps to one HDP delegation hop
  • Scope enforcement with authorized_tools + strict mode

Test plan

  • Python: 32 tests across 9 test classes (non-blocking, root issuance, delegation depth, scope enforcement, verification, configure patterns, message extraction)
  • TypeScript: 14 tests across 3 describe blocks (HdpAgentWrapper, hdpMiddleware, HDP_TOOLS)
  • CI green on all 11 check runs (Python 3.10/3.11/3.12, Node 20/22)

Add HDP delegation provenance middleware for Microsoft AutoGen with
full Ed25519 + RFC 8785 cryptographic chain support.

Python package (hdp-autogen):
- HdpMiddleware with configure() for ConversableAgent and GroupChatManager
- Speaker turns recorded as delegation hops, tool calls checked against scope
- Offline verify_chain(), ScopePolicy, strict mode, max_hops enforcement
- 32 tests covering all 5 design considerations

TypeScript package (@helixar_ai/hdp-autogen):
- HdpAgentWrapper for stateful agent message flows
- hdpMiddleware functional wrapper (observe/required modes)
- OpenAI-compatible HDP_TOOLS for AutoGen function calling
- 14 tests covering wrapper, middleware, and tool schemas

Addresses microsoft/autogen#7485 discussion on trust-boundary testing
gaps in multi-agent frameworks.
…autogen

- Add test-hdp-autogen job to ci.yml (Python 3.10/3.11/3.12 matrix)
- Add full release pipeline to release.yml: test → vet → publish for
  both hdp-autogen (PyPI) and @helixar_ai/hdp-autogen (npm)
- Add tag trigger: python/hdp-autogen/v*
- Add AutoGen packages to README: packages table, install section,
  quickstart with GroupChatManager example, badges, releasing section
- Fix TypeScript onSpeakerTurn() to catch signing errors non-blocking,
  matching the Python middleware's error handling pattern
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.

1 participant