feat: DiDAL Phase 2 — dialectical orchestrator + direct hermes.ecoseek.org - #58
Merged
Conversation
…k.org Phase 2 of the Dialectical Dual-Agent Loop (DiDAL): Emily plugin (Alpha side): - Refactored to talk directly to hermes.ecoseek.org (no broker needed) - Added dialectical_exchange tool for structured Alpha↔Beta debate - Added hermes_status tool to check remote availability - Uses HERMES_ECOSEEK_API_KEY for auth (replaces ECOSEEK_BROKER_KEY) - Model default changed from openclaw/main to hermes Emily config: - Enhanced system prompt with DiDAL delegation instructions - Emily now prefers delegating heavy tasks to Beta - Clear guidance on when to escalate vs handle locally Frontend: - nginx reverse proxy /api/hermes-health → hermes.ecoseek.org/health (CORS fix) - Remote health check now uses nginx proxy (no more CORS errors) - Info panel shows DiDAL Phase 2 status and available tools - Updated About section to describe Alpha↔Beta architecture Startup: - emily-start.sh accepts HERMES_ECOSEEK_API_KEY - entrypoint.sh passes HERMES_REMOTE_URL and API key to container - Startup output shows DiDAL enabled/disabled status
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
⚙️ Control Options:
|
Merged
15 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
DiDAL Phase 2 — the dialectical dual-agent orchestrator for Emily (Alpha, local) ↔ Hermes (Beta, remote on reumanlab).
Key changes:
Emily Plugin (Alpha side) —
emily/plugins/ecoseek/dialectical_exchangetool — structured Alpha↔Beta debate (plan → execute → critique → refine → loop)hermes_statustool — check if Beta is available before escalatingHERMES_ECOSEEK_API_KEYfor auth (replaces legacyECOSEEK_BROKER_KEY)hermes(wasopenclaw/main)Emily Config —
emily/config.yamlescalate_remote,dialectical_exchange,hermes_statusFrontend — CORS fix + DiDAL UI
/api/hermes-health→hermes.ecoseek.org/health(fixes the CORS bug from PR feat: Emily avatar + Hermes Remote health check in info panel #56)eco_analyze, ku_hpc, escalate_remote, dialectical_exchangeStartup —
emily-start.sh+entrypoint.shHERMES_ECOSEEK_API_KEYenv varHERMES_REMOTE_URLand API key through to containerArchitecture
Review & Testing Checklist for Human
bash emily-start.sh, openlocalhost:4000, check that "Hermes Beta" shows "Connected" (green) in the info panel — this was broken beforeHERMES_ECOSEEK_API_KEY=agenticplu...and ask Emily "Query GBIF for jaguar occurrences in Costa Rica" — she should escalate to BetaHERMES_ECOSEEK_API_KEY— Emily should still work locally but show "DiDAL: Unavailable" in info panelemily-start.shshows "DiDAL: Enabled" when key is set, "DiDAL: Disabled" when notNotes
dialectical_exchangetool breaks on Betacritiquetype to return control to Alpha, enabling multi-round refinementLink to Devin session: https://app.devin.ai/sessions/6e7495b7d2e2416ba3f9626d6dcb9a2e
Requested by: @alrobles