Skip to content

信号类型清单

12 种信号的发送者、消费者、触发条件。

信号结构

每个信号包含以下字段:

typescript
interface Signal {
  type: SignalType;                    // 信号类别(12 种)
  source: string;                      // 产出模块标识
  target: string | null;               // 关联 Recipe/Module ID
  value: number;                       // 标准化信号值 0-1
  metadata: Record<string, unknown>;   // 原始数据载荷
  timestamp: number;                   // 信号产生时间戳 (ms)
}

12 种信号类型

#信号类型领域说明
1guard合规Guard 审计发现违规
2guard_blind_spot合规Guard uncertain 超阈值,请求能力扩展
3search检索搜索执行完成
4usage使用知识被查看/采纳/应用
5lifecycle生命周期知识状态变更(创建 · 晋升 · 弃用 · 矛盾 · 冗余)
6explorationAgentAgent 探索阶段变化
7quality质量反向验证 · 规则精度 · 源引用健康
8panorama全景全景覆盖率更新
9decay衰退衰退检测评分
10forge工具锻造临时工具注册/过期/锻造完成
11intent意图意图链记录
12anomaly异常信号量突增异常

信号发送者

guard

发送者触发条件value 含义
GuardCheckEngineauditFiles 发现违规1 = 有 error,0.5 = 仅 warning

guard_blind_spot

发送者触发条件value 含义
GuardCheckEngineuncertain 结果 ≥5 条发射 CapabilityRequest
发送者触发条件value 含义
SearchEngine搜索完成min(total / limit, 1)

usage

发送者触发条件value 含义
GuardFeedbackLoop用户采纳修复建议1
HitRecorderview / adoption / application 事件按事件类型

lifecycle

发送者触发条件value 含义
ConfigWatcher配置文件变更检测变更数
Bootstrap冷启动阶段进度0.3 = 分析中,1 = 完成
StagingManager.enterRecipe 进入 staging1
StagingManager.rollbackstaging 回滚0
StagingManager.promotestaging 晋升为 active1
RecipeLifecycleSupervisor生命周期状态变更1
ContradictionDetector检测到知识矛盾矛盾严重度
RedundancyAnalyzer检测到知识冗余冗余度
ProposalExecutor进化提案执行完成1

exploration

发送者触发条件value 含义
ExplorationTracker.exit退出探索阶段探索深度
ExplorationTracker.phase探索阶段变化阶段进度

quality

发送者触发条件value 含义
ReverseGuardRecipe→Code 反向验证发现问题1
RuleLearner规则质量评估1 - falsePositiveRate
RuleLearner.precisionDrop规则精度下降精度值
SourceRefReconciler源引用过时率过时比例
SourceRefReconciler源引用失效1

panorama

发送者触发条件value 含义
PanoramaService全景覆盖率更新覆盖率百分比

decay

发送者触发条件value 含义
DecayDetector衰退检测完成1 - decayScore/100

forge

发送者触发条件value 含义
TemporaryToolRegistry临时工具注册1
TemporaryToolRegistry临时工具过期0
ToolForge工具锻造完成1

intent

发送者触发条件value 含义
TaskHandler意图链记录(IntentChainRecord)1

anomaly

发送者触发条件value 含义
SignalAggregator任意信号类型在窗口内突增 3 倍异常倍率

信号消费者

消费者订阅信号用途
SignalBridge* + guard信号转发到 EventBus(signal:event + guard:updated
SignalAggregatorguard · search · usage · lifecycle · forge · decay · quality滑窗统计 + 异常检测
SignalTraceWriter*(全部)全类型信号 JSONL 留痕
ComplianceReporterguard · quality合规性报告生成
MultiSignalRankerquality · usage搜索结果多信号精排
PanoramaServiceguard · lifecycle · usage全景视图缓存失效
KnowledgeMetabolismdecay · quality · anomaly知识新陈代谢(衰退 · 矛盾 · 冗余检测)
SignalCollector*(全部)Skill 推荐引擎维度快照
Intent JSONLintentIntent 信号持久化到 JSONL 文件

HitRecorder 事件→信号映射

HitRecorder 将用户行为事件转换为标准化信号:

事件类型统计字段映射信号
guardHitguardHitsguard
searchHitsearchHitssearch
viewviewsusage
adoptionadoptionsusage
applicationapplicationsusage

Released under the MIT License.