跳到主要内容

Demiurge 0.3.1

Demiurge 是 alpha / developer-preview 软件。APIs、runtime layout 和 authoring contracts 之后仍可能变化。

概述

这个版本把 package recipes 扩展为一等 bootstrap components,并把内置的 memory_basic package 切换到了 host bootstrap context snapshot。

用户可见变化

  • package recipes 现在可以把 kind: bootstrap components 安装到 agent/bootstrap/<slot_id>
  • package install 和 uninstall 会维护 agent/bootstrap/pipeline.yaml,用于 bootstrap components。Bootstrap package pipeline edits 只支持 serial-only。
  • memory_basic 现在把 memory context 安装为 agent/bootstrap/memory_basic,而不是 input module。
  • memory_basic 不再写入自己的 session JSON snapshot。Memory context 通过 host-owned 的 bootstrap_context.md snapshot 冻结。
  • memory_basic 继续对 MEMORY.mdUSER.md 进行实时 tool reads 和 durable writes; 这些写入仍然影响未来 sessions,而不是当前的 bootstrap snapshot。

破坏性变更

  • 已安装 pre-0.3.1 memory_basic package 的 runtime cores 会继续保留旧的已安装 agent/input/memory_context 文件,直到重新安装该 package 或刷新 runtime core。
  • 需要 bootstrap installation 的 package recipes 必须使用 kind: bootstrap;把 kind: input 当作 session-start context 的 package 形态已不再推荐。

已知限制

  • package catalog 仍然是 local-only。
  • code slots 默认运行在 host-shared Python environment 中。
  • Telegram 仍然是 long-polling。
  • candidate core evolution 和 automatic promotion 仍未完成。
  • package installation 不会自动迁移已经安装的 runtime package records,也不会自动重写 现有 runtime cores。

验证

  • uv run pytest tests/packages/test_packages.py tests/packages/test_memory_basic_package.py tests/core/test_loader.py
  • uv run python -c 'import tomllib, demiurge; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"]); print(demiurge.__version__)'
  • git diff --check
  • rg -n "memory_context|agent/input/memory_context" agent-catalog tests docs/authoring docs/reference README.md README.zh-CN.md