liteFlow/liteflow-react-agent/liteflow-react-agent-core
everywhere.z b9739a1249 chore(agent): 被取代的 session/memory 配置键标 @Deprecated + 启动告警
agentscope v2 下 agent 为无状态单例 + AgentStateStore,以下 6 键已失效,
按迁移决议保留但标 @Deprecated(forRemoval=true,since=2.16.0) 并启动期 WARN 引导移除:

SessionConfig:
- maxSessions / idleTimeout / cleanupInterval(JVM 内 agent 实例 LRU/空闲清理不再存在)

MemoryStorageConfig:
- loadOnFirstUse / saveAfterCall / saveOnError(v2 每次 call() 自动 load/save AgentState)

不改类型/默认值/getter;不改 MemoryStorageMode/mode(仍有效,映射到 AgentStateStore)。

新增 AgentConfigDeprecationLogger.warnOnce(cfg):JVM once(AtomicBoolean CAS),
对 6 键比对默认值,非默认者 WARN(键名+值+迁移指引);ReactAgentFactory.getOrCreate
首次构建前调用。默认配置不告警,既有 agent 不受影响。

测试 AgentConfigDeprecationLoggerTest(logback ListAppender 捕获):
非默认→告警、默认→不告警、warnOnce 二次不重复、mode 不告警、null session 不抛。
AgentConfigDeprecationLoggerTest + ProcessIntegrationTest 共 7 用例全 PASS。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-20 12:07:03 +08:00
..
src/main/java/com/yomahub/liteflow/agent chore(agent): 被取代的 session/memory 配置键标 @Deprecated + 启动告警 2026-06-20 12:07:03 +08:00
pom.xml refactor(agent): v2 绿编译基底(删 v2-broken 源码 + stub process)+ API 探针发现笔记 2026-06-19 22:35:31 +08:00