jxxghp
|
9ba513debc
|
fix(classification): initialize defaults in fresh v3 environments
|
2026-09-13 11:31:54 +08:00 |
|
jxxghp
|
2d446e0f57
|
fix: 修复更新重启工作目录
|
2026-09-13 08:20:40 +08:00 |
|
Aqr-K
|
e47d7defe7
|
feat(plugin): 插件本体与分身可各自设置独立日志等级
全局日志等级是一个开关,调试单个插件时只能整体下调。一旦下调,被调试插件那几行
日志会淹没在其他几十个插件与宿主自身的 DEBUG 输出里,找不出来;不下调又什么都
看不见。插件实例数量只会继续增长,这个矛盾不会自己消失。
因此把等级下放到实例:plugininstance 行加 log_level / log_expires_at 两列,本体与
分身共用同一张表、同一套语义。等级落在实例自己那一行而不是另起一张按实例 ID 索引
的表——它和业务参数一样是用户按实例设置的东西,同一个生命周期,实例被删时应当随行
一起消失。清除覆盖后若本体行只剩一对身份列,整行按 carries_only_identity 回收,与
清空业务参数同一规则。
覆盖带失效时间,因为它是调试设置不是长期配置:开了 DEBUG 忘记关,下次谁也想不起
某个插件为什么一直在刷日志。过期判定在读取时惰性执行并就地清理,不另起后台线程去
扫一张最多几十条的表。expires_at 在写入侧先归一到 UTC 再分发给缓存与落盘两处:客户端
提交的时间可能不带时区,两处各按进程时区折算一次,就会与读取口返回的 UTC 值差出一个
时区,表现为「提交的失效时刻和读回来的对不上」。
运行期用 ContextVar 在宿主自己控制的四类调用点绑定当前实例——构造与 init_plugin、
事件处理器、定时服务回调、插件声明的 HTTP 端点——而不是沿用 logger() 已有的栈帧内省。
内省认的是栈顶的模块与类,插件通过宿主公共方法转发调用时栈顶是宿主而不是发起调用的
插件,会把日志记到错误的来源上;分身更甚:分身共享源码,类的 __qualname__ 保持源类名
不变,内省根本分不出是哪一个分身在打日志。内省结果继续只用于文件路由,不参与等级判定。
等级过滤必须排在全局等级判定之前。官方现状是先按全局等级短路、之后才做内省,先短路
就会把实例调低的等级挡在门外,后面再怎么识别来源都看不到这条日志。
回调在注册时被捕获、稍后才由调度器或 FastAPI 调用,那时已经不在任何绑定作用域内,
故这两处改用 wrap_for_plugin_instance 把绑定包进回调自身;同一实例重复包装直接返回
原对象,避免插件缓存声明时包装链随重载次数无限增长。
进程内覆盖表按实例 ID 常驻,删分身时必须一并清掉:只删库里那一行的话,同一进程内用
相同后缀重建的分身会继承上一个分身的等级,界面显示「跟随全局」而实际仍按旧等级输出。
进程重启后反向从库预热缓存。
迁移链在 F1 之后追加:c4e1a7b9d2f6(3.0.35)-> 487f7e681955(3.0.36 加两列)。
顺带补了 agent 策略里缺失的 media.classification.policy.get 的 template 字段说明:
少了它,api_mcp_schema.json 与技能文档的两个生成脚本都跑不起来。
|
2026-09-12 19:05:05 -04:00 |
|
Aqr-K
|
4dbb8b8204
|
feat(plugin): 插件配置与实例描述符迁入独立表
插件配置此前寄存在 systemconfig 的 plugin.<实例ID> 单键下,实例描述符则整份挤在
PluginInstances 这一个 JSON 键里,两者都不成立:
- plugin.<ID> 是裸字符串 key,而仓库规则本身禁止用裸字符串做 SystemConfig key,
只允许先定义 SystemConfigKey 枚举项;插件 ID 由用户安装决定,永远枚举不出常量。
条目数随安装量增长,混在系统设置表里会把主程序自己的设置项淹掉。
- 那个键存的其实是实例 ID,表里没有任何一列说得出它属于哪个插件,想列出某个插件
的全部实例配置只能靠字符串前缀去猜。
- 实例描述符整份读出再整份写回,改一个分身要重写全部分身。
改为 plugininstance 一实例一行:instance_id 与 source_plugin_id 构成身份,本体与
分身由两者是否相等派生而不设模式列——模式列会是这个等式的冗余副本,两者一旦失步
同一行就会在不同读取口被判成不同角色。展示信息与业务参数同存一行,属于同一个
生命周期,分表只会让建分身、删分身退化成两张表之间的协调问题。
读写路由落在 SystemConfigOper.get/set/delete,而不是在各个调用方各改一处:第三方
插件可能直接用 self.systemconfig.get("plugin.xxx") 读写自己的配置,只改
PluginConfigStore 与 _PluginBase.get_config/update_config 必然漏掉它们。路由只做
前缀识别,插入、更新与空本体行回收都委托 PluginInstanceOper,不在配置层重抄一遍。
PluginInstances 旧键迁移后不删,留作回滚依据,并以
SystemConfigKey.PluginInstancesImported 标志防止重复导入;判据不能是「表当前为空」,
否则用户把分身全部删光后,下次启动会把它们整批导回来。
迁移链:b2d4f6a8c1e3 -> 281965691a20(3.0.34 建表并搬描述符)
-> c4e1a7b9d2f6(3.0.35 加 config_data 并搬 plugin.* 配置)。
依赖基线与启动模块数随两个新模块重算,架构文档与数据库技能表目录同步登记新表。
|
2026-09-12 17:39:36 -04:00 |
|
jxxghp
|
aae90b1cdb
|
chore(architecture): sync reduced mypy baseline
|
2026-09-12 21:43:55 +08:00 |
|
jxxghp
|
ee4dcd9d89
|
docs: sync architecture dependency metrics
|
2026-09-12 21:14:45 +08:00 |
|
jxxghp
|
c0158b1f63
|
fix(plugin): isolate startup recovery failures
|
2026-09-12 20:39:19 +08:00 |
|
InfinityPacer
|
427271b1ac
|
chore(architecture): update database backup dependency baseline
|
2026-09-12 20:04:03 +08:00 |
|
InfinityPacer
|
1ec7005b51
|
feat(database): back up plugin sqlite databases
|
2026-09-12 19:53:38 +08:00 |
|
InfinityPacer
|
ad94e8de2a
|
chore(architecture): update plugin sync dependency baseline
|
2026-09-12 19:31:41 +08:00 |
|
jxxghp
|
7d1f2eb10e
|
docs(architecture): refresh startup module baseline
|
2026-09-12 18:37:56 +08:00 |
|
jxxghp
|
761d02ba68
|
fix(classification): satisfy architecture complexity ratchets
|
2026-09-12 18:18:13 +08:00 |
|
jxxghp
|
7d4e4f7658
|
docs(architecture): refresh dependency edge metrics
|
2026-09-12 18:00:09 +08:00 |
|
jxxghp
|
e90c792349
|
docs(architecture): sync mypy debt metric
|
2026-09-12 15:15:58 +08:00 |
|
jxxghp
|
1586152c44
|
feat(agent): support updating subagent tasks
|
2026-09-12 14:49:47 +08:00 |
|
jxxghp
|
85a724b40c
|
docs(agent): record paired subagent verification
|
2026-09-12 14:44:45 +08:00 |
|
jxxghp
|
ba7b0899fc
|
docs(agent): record live browser and shell verification
|
2026-09-12 14:22:15 +08:00 |
|
jxxghp
|
c59a054351
|
fix(agent): validate browser redirects after actions
|
2026-09-12 14:08:14 +08:00 |
|
jxxghp
|
170181f214
|
docs(architecture): sync dependency edge count
|
2026-09-12 13:56:41 +08:00 |
|
jxxghp
|
551fe76a54
|
fix(agent): preserve uncertain browser close state
|
2026-09-12 13:37:34 +08:00 |
|
jxxghp
|
046a8abcad
|
fix(agent): harden browser session recovery
|
2026-09-12 13:31:23 +08:00 |
|
jxxghp
|
67f0fe3d40
|
fix(agent): make browser observation outcomes explicit
|
2026-09-12 12:57:51 +08:00 |
|
jxxghp
|
e9e1aa8e0f
|
fix(agent): clarify browser and subagent states
|
2026-09-12 12:50:22 +08:00 |
|
jxxghp
|
985618f6de
|
fix(agent): improve shell recovery guidance
|
2026-09-12 12:43:11 +08:00 |
|
jxxghp
|
9b0fff922f
|
fix(agent): align tool and subagent recovery contracts
|
2026-09-12 12:35:30 +08:00 |
|
jxxghp
|
436777ebf8
|
docs(agent): record CLI and browser harness evidence
|
2026-09-12 12:12:56 +08:00 |
|
jxxghp
|
b964ed21e7
|
test(agent): preserve native collaboration evidence
|
2026-09-12 07:10:21 +08:00 |
|
jxxghp
|
e0e1598681
|
test(agent): verify multiple steering boundaries
|
2026-09-12 06:44:03 +08:00 |
|
jxxghp
|
da33988c50
|
test(agent): evaluate shared parent terminals
|
2026-09-12 06:10:06 +08:00 |
|
jxxghp
|
a84f04aa51
|
test(agent): stabilize native pty completion evidence
|
2026-09-12 05:13:55 +08:00 |
|
jxxghp
|
918ba46e50
|
docs(agent): record repeated harness evidence
|
2026-09-12 04:49:04 +08:00 |
|
jxxghp
|
e66aec60fb
|
test(evaluation): require native terminal input events
|
2026-09-12 04:37:02 +08:00 |
|
jxxghp
|
c3d5941fc1
|
docs(agent): record terminal pipe recovery boundary
|
2026-09-12 04:19:25 +08:00 |
|
jxxghp
|
c0a67d4f40
|
test(agent): cover subagent cancellation recovery
|
2026-09-12 03:56:26 +08:00 |
|
jxxghp
|
380106b77a
|
fix(agent): preserve assistant identity across web stream events
|
2026-09-12 03:13:56 +08:00 |
|
jxxghp
|
c6aa22670f
|
docs(agent): record final steering commits
|
2026-09-12 02:50:15 +08:00 |
|
jxxghp
|
2d6027e393
|
fix(agent): verify steering boundary in evaluation
|
2026-09-12 02:36:59 +08:00 |
|
jxxghp
|
9a2ad70fd3
|
docs(agent): record native pipe boundary targets
|
2026-09-12 01:07:51 +08:00 |
|
jxxghp
|
ee52ca0705
|
test(agent): wire native browser harness
|
2026-09-12 00:50:00 +08:00 |
|
jxxghp
|
18e91b996d
|
docs(agent): record steering boundary CI
|
2026-09-12 00:25:45 +08:00 |
|
jxxghp
|
42a6ec6a9c
|
docs(agent): record applied steering boundary
|
2026-09-12 00:22:48 +08:00 |
|
jxxghp
|
b893ec38a4
|
docs(agent): record text boundary ordering
|
2026-09-12 00:07:49 +08:00 |
|
jxxghp
|
015bae4a9e
|
docs(agent): record final steering boundary
|
2026-09-12 00:01:44 +08:00 |
|
jxxghp
|
69d93dcb10
|
docs(agent): record queued event boundary
|
2026-09-11 23:56:27 +08:00 |
|
jxxghp
|
9cc2ab08ad
|
fix(agent): accept image content in view_image
|
2026-09-11 23:34:58 +08:00 |
|
jxxghp
|
80b510a6a5
|
chore(architecture): refresh host dependency baseline
|
2026-09-11 23:32:17 +08:00 |
|
jxxghp
|
d21bd2981b
|
feat(agent): add image viewing tool
|
2026-09-11 23:17:36 +08:00 |
|
jxxghp
|
d6c9a4e184
|
docs(agent): record native browser boundary
|
2026-09-11 22:56:31 +08:00 |
|
jxxghp
|
17480cdc32
|
docs(agent): record third subagent parity run
|
2026-09-11 22:34:47 +08:00 |
|
jxxghp
|
7fcf6aace5
|
docs(agent): update steering evidence
|
2026-09-11 22:21:35 +08:00 |
|