beijingwahw/dsh-proactive ↗★ 4
dsh-proactive
自主智能多模型协同调度系统 — 主动感知、自主决策、多模型并行、质量反思自愈、经验沉淀进化、全部模块世界性升级(第三轮)+ 激活与深化(第四轮)+ 全部内核世界性进化(第五轮) 适合需要无缝调度多款国产模型并实现故障转移的用户。
Other repositories with this package name
Install
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:beijingwahw/dsh-proactiveREADME
Read the full README ↗配置(零手动配置)
开箱即用,无需手动配置任何模型或密钥,插件本身也不持有任何 API Key。
- 随附的 cordis.patch.yml 已封装全部国产模型(DeepSeek / 通义千问 / 智谱 / Kimi / MiniMax / 讯飞星火 / 腾讯混元 / 百度文心 / 商汤日日新),加载即用;
- 运行时插件经 ctx 上下文获取 DSH 已配置好的 LLM 客户端,DSH 自动把用户配置的 Key(Web UI 填写或环境变量配置)注入请求头;
- 密钥自动填入:插件还会自动读取宿主本地密钥并按厂商匹配填入请求头,优先级为 宿主 ctx 注入 → 进程环境变量(如
DEEPSEEK_API_KEY/DASHSCOPE_API_KEY,按模型 id 前缀匹配厂商)→ DSH 本地配置文件(~/.dsh/config.json等,mtime 热更新、缺失时定期重探测);密钥只进内存,不落盘、不打印; - 多密钥故障转移:同一厂商存在多个候选密钥时,认证失败(401/403)或配额耗尽(429)会自动轮换到下一个候选密钥重试,并升级为健康感知路由——按成功/失败统计选择最优密钥,429 冷却 1 分钟、401/403 冷却 5 分钟,成功后自动恢复;用户可通过
manage_keys工具调整密钥使用顺序(持久化,重启保留),启动日志输出每个模型的密钥来源(不含密钥值),运行时可用query_memory keys查看各密钥健康状态; - 若只需单一厂商,可改用
patches/domestic-models/下按厂商拆分的 patch;重新生成:pnpm generate:patches。
完整运行配置项(哨兵 / 加密 / 同步 / 共识 / 热更新 / 租户 / 自主循环 autonomy / 宿主融合 hostFusion)同样内置于 cordis.patch.yml,无需改动;共生经济子项位于 autonomy.symbiosis(futarchy 表决、能量反哺等,缺省关闭)。保证层内核 12.0-16.0、几何/拓扑层内核 17.0-20.0 与最优调度层内核 21.0-22.0 子项同样缺省关闭(零漂移):autonomy.anytimeEvidence(α / 水位线)、autonomy.conformal(α / 校准容量 / 阈值风险与置信)、autonomy.qualityDiversity(探索率)、autonomy.runtimeVerification(附加规约 specs)、autonomy.optimalTransport(监测 KPI / 窗口 / 阈值分位)、autonomy.informationGeometry(KL 信任域 / 步长尺度)、autonomy.optimalStopping(机会视野 / 最小样本)、autonomy.sheafConsensus(障碍失配容差)、autonomy.indexScheduling(贴现 / 网格)、autonomy.banditKnapsack(UCB α / 可行性松弛 / 视界)、autonomy.robustStatistics(α)、autonomy.privacy(ε / δ)、autonomy.capacityPlanning(目标等待 / SCV);先知层 26.0-30.0 子项同样缺省关闭(零漂移):autonomy.gaussianProcess(校准点数 / 最小点数)、autonomy.kalmanFilter(过程噪声 / 观测噪声 / 门控分位)、autonomy.extremeValue(p99 目标 / 最小样本 / 阈值分位)、autonomy.mcts(迭代 / 探索常数 / 折扣)、autonomy.submodular(主题覆盖强度);均衡层 31.0-35.0 子项同样缺省关闭(零漂移):autonomy.hedgePortfolio(学习率 η / 回灌率 α)、autonomy.optimalAssignment(候选池上限)、autonomy.randomMatrix(窗口 / 最少模型 / 边界倍数 / 份额门槛)、autonomy.cvarTimeouts(置信水平 α / 裕度 / 样本下限)、autonomy.concurrencyControl(目标利用率 / 被控增益 / 控制权重 / 死区);觉醒层 37.0-40.0 子项同样缺省关闭(零漂移):autonomy.informationBottleneck(β / 保留率下限)、autonomy.chaosDiagnostics(最少点数 / λ 阈值 / Hurst 半宽)、autonomy.spectralRanking(阻尼)、autonomy.firstPassageCooldown(恢复置信目标);川流层 41.0-45.0 子项同样缺省关闭(零漂移):autonomy.queueingNetwork(瓶颈 ρ 阈值)、autonomy.spectralCalendar(小时分桶数)、autonomy.capacityFrontier、autonomy.fairBudget、autonomy.ocbaAllocator(确认预算);经纬层 49.0-50.0 子项同样缺省关闭(零漂移):autonomy.waveletView(最少点数)、autonomy.latentFactors(潜维数);经纬层 46.0-48.0 为引擎只读方法(Raft quorumAudit / Sync CRDT 通道 / CryptoEngine shardKey),无运行时开关;36.0 持续同调经 query_memory 的 topology 动作按需查询(零漂移);创世纪五层 51.0-75.0 子项统一收敛于 autonomy.kernels 命名空间、缺省全部关闭(零漂移,打开才挂载):kernels.speculativeDecoding(maxK)、kernels.testTimeCompute(alpha)、kernels.whittleIndex(goodThreshold / passiveHeal / discount)、kernels.lyapunovBackpressure(V / priceThreshold)、kernels.hawkesBurstGuard(windowSec / burstShare / minEvents)、kernels.beliefPropagation、kernels.variationalInference、kernels.langevinMutation(steps / seed)、kernels.curriculum(levelCount / threshold)、kernels.rateDistortion(budgetBits)、kernels.stableMatching、kernels.mechanismDesign、kernels.nucleolusAudit、kernels.correlatedEquilibrium、kernels.dynamicPricing(policy / unit / exploration)、kernels.annealingEscape、kernels.paretoFront、kernels.compressionDistance(threshold)、kernels.mapperGraph(intervals / overlap / clusterEps)、kernels.pidDiagnostics、kernels.astarSearch、kernels.sparseRecovery、kernels.baiSelector(budget)、kernels.mirrorDescent(mirror / alpha)、kernels.onlineCalibration(strategy / lr / window)——统一 enabled 旗标,接线矩阵与挂载纪律见 UPGRADE-GENESIS25.md 与 scripts/verify-genesis25-wiring.mjs;第二轮创世纪五层 76.0-100.0(感知 / 判断 / 执行 / 进化 / 意识)子项同样统一收敛于 autonomy.kernels 命名空间、缺省全部关闭(零漂移,打开才挂载):kernels.noveltySentinel(capacity / halfLife / minSamples / changeAlpha)、kernels.causalDiscovery(alpha)、kernels.ccaAlignment(lambda)、kernels.diffusionManifold(k / dims)、kernels.streamingSketch(cmsEps / cmsDelta / window / reservoirK)、kernels.argumentation、kernels.crowdAggregation、kernels.worldModelLearning(prior)、kernels.pomdpPlanner、kernels.symbolicFeasibility、kernels.optionsFramework(episodes)、kernels.safetyBarrier(eta)、kernels.offPolicyEvaluation(delta / gamma)、kernels.safePolicyImprovement(delta / minSamples)、kernels.preferenceLearning(minPairs / l2)、kernels.noveltySearch(k)、kernels.selfPlay(leagueRounds / seed)、kernels.automlHyperband(eta / seed)、kernels.simulationCalibration、kernels.interruptibleAutonomy、kernels.globalWorkspace(threshold / temperature)、kernels.metacognitiveConfidence、kernels.experienceReplay(capacity / alpha / beta)、kernels.attentionEconomy、kernels.selfBoundary——统一 enabled 旗标,接线矩阵与挂载纪律见 UPGRADE-AUTONOMY25.md 与 scripts/verify-autonomy25-wiring.mjs。
第四轮把第三/四轮全部模块域升级收敛为 autonomy.modules.* 16 旗标(与 kernels.* 同款风格,缺省全关、零漂移;旗标名经 src/index.ts 与 src/engines-frontier/autonomy25.ts 的 MODULE_FLAGS 静态清单核对):modules.sentinelAdaptive(第三轮自适应窗口 + 第四轮风暴预算共享)、modules.decisionHysteresisJoint(决策滞后 + 批量联合决策)、modules.schedulerHealthRouting(第三轮健康路由)、modules.schedulerColdStart(冷启动三阶段准入 + 周期预热)、modules.executorAdaptiveParallelism(并行度自适应)、modules.executorFailureDomains(失败域隔离)、modules.memoryTieredArbitration(第三轮分层 + 仲裁)、modules.metaStabilityLoop(调参稳定环)、modules.policyABBranching(A/B 分支进化)、modules.worldObservationFusion(多源观察信念融合)、modules.symbiosisEconomy(货币治理 + 条件结算)、modules.cryptoTieredKeys(密钥分级)、modules.tenantQuotaForecast(配额预测)、modules.clientPriorityQueue(请求优先级队列)、modules.benchmarkTrendTracker(长期趋势追踪)、modules.dashboardAlarmSources(统一告警源)——统一 enabled 旗标,manage_autonomy introspect 的 moduleFlags 字段输出 16 旗标开关态总览。主链路深化三件套位于 autonomy.pipeline.*、缺省全关(零漂移):pipeline.crossStepCache(跨步骤派生值 LRU 缓存,capacity 缺省 256,命中与直算逐位一致)、pipeline.degradationLadder(第 5/6 步异常时三级降级:主路径 → 简化路径 → 兜底直通,逐级入审计)、pipeline.stepPrefetch(执行等待期预取下一信号的经验检索,代际守卫消费恒一致);旗标矩阵与差分验证见 UPGRADE-ACTIVATION-DEEPENING.md 与 scripts/verify-r4-pipeline.mjs。