dingtalk: DingTalk platform, formerly built into Hermes core #108
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.48) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 527 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.375
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #108"
general
weight: 0.35
unsupportedpastels
What this does, in plain words
DingTalk (钉钉, Alibaba's workplace chat) stops being built into Hermes core and becomes the
dingtalkplugin here: built by Nous Research, not supported, and likely not maintained going forward; community fixes are welcome. Existing DingTalk users get it installed automatically; nobody else does.The slate (merge order)
1. NousResearch/hermes-agent#159638: core removal + the
LEFT_COREmigration row.2. This PR: the plugin.
3. NousResearch/hermes-agent#159639: data-only catalog entry
plugin-catalog/dingtalk.yaml(hold, re-pinned to this PR's merge sha).What changes
hermes update(or the next agent/gateway start) sees the profile ran DingTalk and installs this plugin once. Same platform namedingtalk, sameDINGTALK_env vars, sameplatforms.dingtalkkeys (client_id,client_secret,robot_code,card_template_id,webhook_url,require_mention,mention_patterns,free_response_chats,allowed_chats,allowed_users), sameDINGTALK_HOME_CHANNEL, same QR setup inhermes gateway setup.hermes plugins install dingtalk.Contents
e3d9d12):git filter-repoof hermes-agentmainforplugins/platforms/dingtalk/, its pre-plugin homegateway/platforms/dingtalk.py,hermes_cli/dingtalk_auth.py(the QR device-flow login, now the plugin's own setup step) and the three DingTalk test files: 109 commits, authors kept.c0b9fff):-
plugin.yamlname: dingtalk(core's wasdingtalk-platform; core keeps that name as aplugins.disabledalias),homepage, the fullDINGTALK_env list;pyproject.tomlwith the pins core'sdingtalkextra carried (dingtalk-stream==0.24.3,alibabacloud-dingtalk==2.2.65,qrcode==7.4.2) pluswebsockets>=15.0.1,<16.-
register.py:register()is inert on a core that still bundles DingTalk;PlatformEntryfields newer than the running core are passed only when it has them.-
Platform("dingtalk")resolved at call time (noPlatform.DINGTALK); core'sEnvCredrow becomesenv_enablement()forenv_enablement_fn(same seed: client id/secret + home channel).- Core's
platform.dingtalk.emotion.thinking/donestrings move to a local_i18n.pyfor all 17 languages core shipped.- Core's
dingtalkPM extra is gone, so the lazy installers no longer callpm; the SDKs come with the plugin's own deps.- Private core imports replaced with the published plugin API (
gateway_setup_wizard.confirm_reconfigure,cli_outputprinters, a localaccess_tokenredaction instead ofgateway.outbound.send._error).- Tests: conftest modelled on
yuanbao/tests/conftest.py; the DingTalk cases core's removal deleted from shared core test files are ported intests/test_ported_core_contracts.py;tests/test_plugin_packaging.pypins the registration contract.- Card art
assets/dingtalk.jpg(1200x600), README + root README row.Verification
| Check | Result |
|---|---|
| Plugin suite vs a core tree with DingTalk removed (core PR head), SDKs installed | 68 passed |
| Same, SDKs absent | 66 passed, 2 skipped (real
qrcode/dingtalk_stream) ||
hermes plugins validate dingtalkvs core PR head | Validation passed (security scan safe, no core override); warns on 2 private imports, the same two Yuanbao has (gateway.platforms.send_targets, theplugins.platformsinert probe) ||
scan_pluginvs core PR head and vsv0.23.4export |safe/safe|| ruff (core config) | clean |
Live migration probe (real
gateway run --force, fake HOME/HERMES_HOME/XDG/lock dir, own PIDs,DINGTALK_OPENAPI_ENDPOINTat a closed loopback port): see the core PR; the first start installs this plugin atc0b9fffand this plugin's adapter (hermes_plugins.dingtalk.adapter) connects in the same start.Not covered
plugins validateon coremainis expected to fail while core still bundles DingTalk (platform dingtalkregistered twice is avoided by the inert guard, but CI here runs against core main): green once the core PR lands.