Repository navigation
kb init(jiuwenswarm): modules #275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| --- | ||
| title: "jiuwenswarm components" | ||
| created: 2026-09-30 | ||
| updated: 2026-09-30 | ||
| type: index | ||
| tags: [jiuwenswarm] | ||
| sources: [] | ||
| --- | ||
|
|
||
| # jiuwenswarm components | ||
|
|
||
| - [启动与多实例管理](launch/_index.md) | ||
| - [Gateway 与频道](gateway-channels/_index.md) | ||
| - [公共基础模块与配置](common-core/_index.md) | ||
| - [登录鉴权与免费模型](login-auth/_index.md) | ||
| - [扩展与插件机制](extensions-plugins/_index.md) | ||
| - [可观测性与轨迹存储](observability/_index.md) | ||
| - [Agent 运行时与会话](agent-runtime/_index.md) | ||
| - [定时任务与调度](cron-scheduling/_index.md) | ||
| - [Symphony 编排与能力图谱](symphony-orchestration/_index.md) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| --- | ||
| title: "Agent 运行时与会话" | ||
| created: 2026-09-30 | ||
| updated: 2026-09-30 | ||
| type: index | ||
| tags: [jiuwenswarm] | ||
| sources: [] | ||
| --- | ||
|
|
||
| # Agent 运行时与会话 | ||
|
|
||
| - [共享 Agent Runtime(jiuwenswarm/runtime)](jiuwenswarm-runtime.md) | ||
| - [Runtime Session 协调器(jiuwenswarm/runtime/session/)](jiuwenswarm-runtime-session.md) | ||
|
|
||
| ## 代码快速入口(Direct) | ||
| <!-- kb-init:quick-map --> | ||
|
|
||
| 触发词:runtime、AgentRuntime、session create/switch/fork、session.delete、plan mode、model catalog、permission snapshot、MCP reference、push handler、process CLI、agent definition、运行时。PR 描述或改动命中下表一行时,先读该行的规则,再读页面其余部分。 | ||
|
|
||
| | PR 描述在做什么 | 精确规则 | 第一批 live 源码 | | ||
| |---|---|---| | ||
| | runtime、AgentRuntime、session create/switch/fork、session.delete、plan mode、model… | 入口 | `jiuwenswarm/runtime/agent_definition.py`、`jiuwenswarm/runtime/context.py`、`jiuwenswarm/runtime/events.py` | | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
For a review changing only AGENTS.md reference: knowledge/AGENTS.md:L16-L16 Useful? React with 👍 / 👎. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| --- | ||
| title: "Runtime Session 协调器(jiuwenswarm/runtime/session/)" | ||
| created: 2026-09-30 | ||
| updated: 2026-09-30 | ||
| type: architecture | ||
| tags: [jiuwenswarm] | ||
| sources: [] | ||
| --- | ||
|
|
||
| # Runtime Session 协调器(jiuwenswarm/runtime/session/) | ||
|
|
||
| 负责产品层 Session 的生命周期和执行协调,包括注册与关闭会话、调度单次(unary)和流式执行、投递 control 请求,以及取消执行及其子执行。另外维护一个有容量上限的执行登记表,记录排队中、运行中和最近结束的执行,并为每个 Session 提供一个工作调度器。 | ||
|
|
||
| **从哪里开始读** | ||
|
|
||
| - `jiuwenswarm/runtime/session/coordinator.py` — RuntimeSessionCoordinator 是对外入口,提供 register_session、run_unary/submit_unary、run_stream、deliver_control、cancel_execution、c | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This entry ends mid-identifier at Useful? React with 👍 / 👎. |
||
|
|
||
| **关键文件** | ||
|
|
||
| - `jiuwenswarm/runtime/session/coordinator.py` — 管理会话记录、执行句柄的创建和取消(含子执行和心跳根)、control 请求的认领与转发,以及会话状态刷新 | ||
| - `jiuwenswarm/runtime/session/execution_registry.py` — SessionExecutionRegistry 负责执行状态流转(running/awaiting_control/waiting/terminal),终态记录按容量和 TTL 淘汰 | ||
| - `jiuwenswarm/runtime/session/work_scheduler.py` — SessionWorkScheduler 为每个 Session 分配一条 lane(按 generation 区分),负责排队执行、取消排队项、关闭时清空队列 | ||
| - `jiuwenswarm/runtime/session/model.py` — 共享模型:会话/执行状态枚举、SessionWorkKind、执行句柄与快照、取消和关闭的结果,以及超时和已结束异常 | ||
|
|
||
| **相关文档** | ||
|
|
||
| - `TESTING.md` — 为本模块新增或修改测试时参考。其中部分路径可能已过期,先对照 tests/ 下已有的用例 | ||
|
|
||
| **改动路由** | ||
|
|
||
| - `jiuwenswarm/runtime/session/` | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This new
components/_index.mdis only a list of links, and the newly added owner indexes similarly contain links plus a generated Direct block. The applicable page contract requires every index to explain when to consult it, what is excluded, and when each entry applies; component indexes must additionally identify source paths, responsibility/input-output boundaries, test entry points, and affected upper-level features. Without that context these pages cannot establish the owner boundaries expected by the knowledge tree, even though the structural validators accept them.AGENTS.md reference: AGENTS.md:L7-L11
Useful? React with 👍 / 👎.