Skip to main content

implementation-runtime-core

Implement the shared session runtime from process startup through context composition and the recursive model loop. Use when defining runtime ownership, tracing a turn across bootstrap, state, and query boundaries, or deciding whether a core behavior belongs to startup/settings, live state/context, or model orchestration.

来源信息

仓库
greenpau/agentx
最近来源活动
2026年7月23日 23:00
检测到的 SKILL.md 语言
英语
星标
1
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
3 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
implementation-runtime-core
description
Implement the shared session runtime from process startup through context composition and the recursive model loop. Use when defining runtime ownership, tracing a turn across bootstrap, state, and query boundaries, or deciding whether a core behavior belongs to startup/settings, live state/context, or model orchestration.
# Implementation Runtime Core ## Implement the shared engine Keep process bootstrap facts, mutable session state, durable conversation state, and background work as separate lifetimes. Build one semantic engine that all interactive, headless, SDK, bridge, and remote adapters can drive without redefining messages, turns, limits, tools, or terminal outcomes. Use the [architecture diagram](assets/architecture.drawio) to orient the core ownership and dependency flow. Preserve this dependency direction: ```text entrypoint and policy -> session/bootstrap state and registries -> normalized input and effective context -> recursive query/model loop -> capability and continuity boundaries -> semantic events consumed by presentation adapters ``` Do not let presentation state become authoritative conversation state. Do not let a transport-specific retry, permission response, or display event invent a different meaning for a shared operation. ## Specialized workflows - Use [implementation-startup-settings](../implementation-startup-settings/SKILL.md) to implement entrypoint selection, early initialization, trust, settings precedence, migrations, and managed policy. - Use [implementation-state-context](../implementation-state-context/SKILL.md) to implement bootstrap lifetimes, the observable application store, state reactions, working-directory identity, and effective prompt/context assembly. - Use [implementation-query-model](../implementation-query-model/SKILL.md) to implement input submission, the recursive query state machine, message normalization, model streaming, retries, continuation, limits, and terminal results. ## Core acceptance criteria - A session restored after interruption reaches the same semantic state regardless of presentation surface. - A UI-only progress update never enters model context or durable conversation history unless explicitly translated into a message. - A new surface consumes shared events and permission contracts instead of forking the conversation engine. - Cancellation, budget exhaustion, model failure, and successful completion each produce one explicit terminal outcome and leave recoverable evidence.
在 GitHub 查看