Skip to content

06 · boot-claude-python

本场景验证什么

启动流程(wake 规则 + 首个 demand)在 Claude Code + Python 上工作方式完全一致 —— 也就是说,cognitive loop 中没有任何环节暗中假设 Cursor 或 Node。具体来说:

  1. Claude 的 wake 规则在会话启动时加载,无需 URL。
  2. delivery loop 产出了 Python 源码改动,并伴随 pytest 通过结果。
  3. drift 日志行使用与场景 05 相同的结构(证明行模板与平台无关)。

测试环境

Fixture场景 02 的产物(/tmp/archon-test-02,安装后)
IDEClaude Code
OS与场景 02 相同
Archon sourcelocal
被测 Manifest 版本v0.1.0

前置条件

  1. 场景 02 成功执行,且 run record 为 ✅。
  2. Claude Code 已完全关闭并在同一项目上重新打开。

步骤

text
1. With Claude Code reopened on /tmp/archon-test-02, in the chat panel
   paste exactly (no URL):
     hi archon, add a multiply(a, b) function to calculator.py with
     tests for both positive and negative inputs
2. Confirm any Plan-mode prompt the agent raises.
3. Watch it edit src/calculator.py + tests/test_calculator.py and run
   pytest.
4. Confirm close-out summary appears.

预期结果

检查项预期
Agent 接受不带 URL 的 hi archon, ... 调用yes
src/calculator.py 包含带类型注解的 multiplyyes
tests/test_calculator.py 覆盖正数 + 负数用例yes
python -m pytest 退出码0
.archon/drift.md 新增一行yes
src/tests/.archon/drift.md 之外被修改的文件数0

演示录像

Will be replaced by docs/public/videos/boot-claude-python.mp4 once recorded. See videos/README for upload conventions.
Will be replaced by docs/public/asciinema/boot-claude-python.cast embedded via the asciinema-player web component. See asciinema/README for the recording command.

运行记录

下方表格根据 sandbox runner (scripts/sandbox-run.mjs) 写入 docs/testing/sandbox/runs/boot-claude-python/ 目录下的 JSON 实时渲染。要新增一行,请运行

bash
node scripts/sandbox-run.mjs --only=boot-claude-python
Started (UTC)ManifestRunnerResultDurationNotesRecord
2026-05-06 10:24:38 UTCv0.1.0manualclaude⏳ manual222 ms[manual-provider:claude] no headless SDK adapter for this IDE platform; step "boot" must be performed by hand. Track progress in KNOWN-003.JSON
2026-05-06 06:10:27 UTCv0.1.0manualclaude⏳ manual236 ms[manual-provider:claude] no headless SDK adapter for this IDE platform; step "boot" must be performed by hand. Track progress in KNOWN-003.JSON
2026-05-06 00:55:46 UTCv0.1.0manualclaude⏳ manual215 ms[manual-provider:claude] no headless SDK adapter for this IDE platform; step "boot" must be performed by hand. Track progress in KNOWN-003.JSON
2026-05-06 00:40:12 UTCv0.1.0manualclaude⏳ manual245 ms[manual-provider:claude] no headless SDK adapter for this IDE platform; step "boot" must be performed by hand. Track progress in KNOWN-003.JSON
2026-05-05 15:00:37 UTCv0.1.0manualclaude⏳ manual202 ms[manual-provider:claude] no headless SDK adapter for this IDE platform; step "boot" must be performed by hand. Track progress in KNOWN-003.JSON
2026-05-05 14:55:03 UTCv0.1.0manualclaude⏳ manual276 ms[manual-provider:claude] no headless SDK adapter for this IDE platform; step "boot" must be performed by hand. Track progress in KNOWN-003.JSON
2026-05-05 14:22:56 UTCv0.1.0manual⏳ manual225 ms[agent-adapter] provider/key not set; scenario marked 'manual'.JSON
2026-05-05 14:05:12 UTCv0.1.0manual⏳ manual280 ms[agent-adapter] provider/key not set; scenario marked 'manual'.JSON

已知局限

  • 与场景 05 相同的注意事项:Claude Code 在冷启动时的规则重载属于 UI 行为, 并非可通过文件状态断言验证的内容。

交叉引用

json
{
  "runnable": "agent",
  "fixture": "fixtures/sandbox-python",
  "ide_platform": "claude",
  "prerequisites": [
    {
      "name": "archon install",
      "cli": "install",
      "flags": [
        "--with=cli"
      ]
    }
  ],
  "steps": [
    {
      "name": "agent boot (hi archon, claude code)",
      "agent": "boot"
    }
  ],
  "assertions": [
    {
      "file_exists": ".archon/run.md"
    }
  ],
  "notes": "Boot lifecycle is agent-only. Recorded as result=manual until an agent SDK adapter ships (KNOWN-003)."
}

依据 Apache-2.0 许可证发布。