Commit 1dac2a6
Add Neurohumogenistic Workspace Integration Agent (#25)
* Add Neurohumogenistic Workspace Integration Agent
Implements Branch C architecture for full neuro-symbolic convergence:
Core Agent Components:
- EdgeAgent: Polls Google Workspace (Keep, Tasks, Gmail) and transforms
static assets into computational directives
- FrugalGPTCascade: Tiered LLM processing (Haiku->Sonnet->Opus) with
Landauer-Context energy constraints
- ThermodynamicKernel: RAPL/IPMI sensor integration for η_thermo metrics
- WorkspaceOrchestrator: Unified coordination with Pareto audit filter
Integrations:
- Google Workspace API client (Gmail, Keep, Tasks, Drive, Docs)
- OpenTelemetry metrics and tracing for Diamond Vault UI
- Pareto-audit Cloudflare Worker for pipeline compliance filtering
Testing & CI:
- Comprehensive unit tests for all agent components
- Mass testing suite with parallel batch execution
- CI/CD pipeline with documented publishable results
- Test report generation (HTML/Markdown)
Compliance Features:
- $25k ARR floor enforcement
- 10:1 ROI verification
- "Deployment: Foundations" terminology validation
- 270-day sales cycle for $100K-$5M ACV targets
https://claude.ai/code/session_013BoARZ8vZhwTNEjqzjS4Pf
* Add Slack integration, cross-repo CI dispatch, and PR readiness
1. Slack Integration (src/integrations/slack/):
- SlackNotifier: Webhook + Bot Token posting with rich Block Kit formatting
- SlackEventBridge: Receives /genesis slash commands (status, sync, cold-snap, audit)
- Block builders: Sync reports, thermodynamic alerts, compliance violations
- WorkspaceOrchestrator now posts Yennefer sync reports to Slack automatically
2. Cross-Repository Deployment (cross-repo-deploy.yml):
- Discovers all Genesis-Conductor-Engine org repos via API
- Dispatches repository_dispatch event to each repo after successful CI
- Deploys Cloudflare pareto-audit Worker to staging/production
- Posts deployment summary to Slack
3. Receive Dispatch Workflow (receive-agent-dispatch.yml):
- Template workflow for consumer repos to receive agent updates
- Runs smoke tests on integration
- Posts confirmation to Slack
4. Slack App Manifest (slack-app-manifest.yml):
- /genesis slash command definition
- Bot scopes for chat, mentions, DMs, incoming webhooks
- Points to api.genesisconductor.io endpoints
https://claude.ai/code/session_013BoARZ8vZhwTNEjqzjS4Pf
* Fix handler.__name__ AttributeError for MagicMock in tests
Use getattr(handler, '__name__', repr(handler)) instead of direct
handler.__name__ access to handle callables without __name__ attribute.
Fixes 2 test failures in test_edge_agent.py::TestHandlerRegistration
https://claude.ai/code/session_013BoARZ8vZhwTNEjqzjS4Pf
* Update src/integrations/workspace/client.py
Co-authored-by: genesis-code-assist[bot] <270152376+genesis-code-assist[bot]@users.noreply.github.com>
Signed-off-by: Igor Holt <iholt@mymail.aacc.edu>
* Update workers/pareto-audit/src/index.ts
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: Igor Holt <iholt@mymail.aacc.edu>
* Update src/agents/neurohumogenistic/frugalgpt_cascade.py
Co-authored-by: genesis-code-assist[bot] <270152376+genesis-code-assist[bot]@users.noreply.github.com>
Signed-off-by: Igor Holt <iholt@mymail.aacc.edu>
* Update scripts/generate_test_report.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: Igor Holt <iholt@mymail.aacc.edu>
* Address Copilot PR review feedback (14 issues)
Cloudflare Worker (wrangler.toml, index.ts):
- Move routes from [triggers] to top-level [[routes]] (correct wrangler config)
- Add environment-specific bindings for staging/production KV/D1 IDs
- Add empty array guard in handleBatchAudit to prevent NaN from division by zero
Workspace Orchestrator:
- Fix ARR floor validation to actually reject values below $25k floor
- Add k/m suffix parsing for amounts ($50k -> 50000)
Thermodynamic Kernel:
- Replace create_gauge() with create_observable_gauge() + callbacks (OTel Python API)
- Remove hardcoded IPMI credentials, use env vars (IPMI_USERNAME, IPMI_PASSWORD)
- Use asyncio.create_subprocess_exec instead of blocking subprocess.run
- Require explicit credentials for remote IPMI access
Edge Agent:
- Remove duplicate FrugalGPT processing (now single ownership in Orchestrator handlers)
Slack Integration:
- Remove invalid accessory block element (null values rejected by Block Kit)
- Reject unsigned requests by default, require ALLOW_INSECURE_SLACK_SIGNATURES=true for dev
CI Workflow:
- Fix PEP 508 direct reference format in receive-agent-dispatch.yml
Workspace Client:
- Use asyncio.get_running_loop() instead of deprecated get_event_loop()
https://claude.ai/code/session_013BoARZ8vZhwTNEjqzjS4Pf
* Fix CI failures: duplicate declarations and type errors
- Remove duplicate thermodynamic_allocation key in frugalgpt_cascade.py
- Remove duplicate roiEstimate declaration in index.ts
- Remove duplicate loop declaration in client.py
- Remove unreachable code after return in client.py
- Add type cast for D1 query result in index.ts
- Add package-lock.json for npm ci in CI workflow
https://claude.ai/code/session_013BoARZ8vZhwTNEjqzjS4Pf
* Fix syntax errors and address Copilot review feedback
thermodynamic_kernel.py:
- Fix broken __init__ with stray docstring and duplicate definition
- Remove duplicate read_power_sensors docstring
- Remove old synchronous subprocess.run with hardcoded IPMI credentials
- Fix unclosed create_observable_gauge, remove duplicate create_gauge
edge_agent.py:
- Remove stray text after docstring causing SyntaxError
- Remove duplicate handler keyword argument in logger.error
- Remove FrugalGPT cascade (owned by WorkspaceOrchestrator)
workspace_orchestrator.py:
- Fix duplicate _verify_arr_floor code blocks
- Remove duplicate return statements
- Fix post_compliance_alert returning undefined 'report'
event_bridge.py:
- Add try/except around int(timestamp) to prevent ValueError -> 500
wrangler.toml:
- Remove duplicate [triggers].routes (keep top-level [[routes]])
- Remove duplicate kv_namespaces and d1_databases bindings
https://claude.ai/code/session_013BoARZ8vZhwTNEjqzjS4Pf
* Address Copilot review: OTel, ARR parsing, wrangler config
- Fix _export_to_otel to remove stale .set() calls on observable gauges
- Improve ARR floor validation to only match explicitly labeled ARR/ACV
amounts (ignores unrelated dollar figures like travel budgets)
- Fix wrangler deploy to use --env production for production deploys
- Simplify wrangler.toml to use local dev bindings only (KV/D1 IDs
configured via Cloudflare dashboard or wrangler CLI, not TOML vars)
https://claude.ai/code/session_013BoARZ8vZhwTNEjqzjS4Pf
---------
Signed-off-by: Igor Holt <iholt@mymail.aacc.edu>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: genesis-code-assist[bot] <270152376+genesis-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>1 parent 7d8618d commit 1dac2a6
16 files changed
Lines changed: 6539 additions & 78 deletions
File tree
- .github/workflows
- src
- agents/neurohumogenistic
- integrations
- slack
- workspace
- workers/pareto-audit
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
0 commit comments