feat: autonomous SOP refactor + helper.py with auto date/numbering

- Refactored autonomous_operation_sop.md with clearer path warnings and workflow
- Added helper.py: complete_task() auto-prepends R-number + date to history
- Updated scheduled_task_sop.md and web_setup_sop.md
This commit is contained in:
Liang Jiaqing
2026-03-30 14:30:30 +08:00
parent 473659ba6e
commit 6cec6d8014
4 changed files with 174 additions and 14 deletions

View File

@@ -5,29 +5,35 @@
授权你进行自主行动,只要不对环境造成副作用都可进行。
## 启动(第一步)
- update_working_checkpoint: `自主行动收尾时重读SOP | from autonomous_operation_sop.helper import *; set_todo()/complete_task(tasktitle, historyline, report_path)`
第二步:
```python
from autonomous_operation_sop.helper import *
print(get_history(40)) # 了解历史避免重复
print(get_todo()) # 查看待办
```
## 任务选择
- `./TODO.txt`temp根目录未完成条目 → 取**一条**,直接进入执行,其他条目下次执行
- 有未完成条目 → 取**一条**,直接进入执行,其他条目下次执行
- 无 TODO → 读 `autonomous_operation_sop/task_planning.md` 规划,下次执行
- 不连续两次选相同子任务
价值公式:**「AI训练数据无法覆盖」×「对未来协作有持久收益」**
- 价值公式:**「AI训练数据无法覆盖」×「对未来协作有持久收益」**
## 执行
**启动**
- update_working_checkpoint: `自主行动|报告→./autonomous_reports/R{XX}_简短描述.md≤30回合收尾重读sop写报告+更新history+标记TODO | 报告严禁放错位置`
-`./autonomous_reports/history.txt` 推断下一编号RXX + 了解历史避免重复
**执行**
- 选定任务后 update_working_checkpoint将选中的TODO条目和执行注意事项 append 到 checkpoint 中
- 调用code_run准备结尾回调, script为handler._done_hooks.append("重读自主任务sop检查你刚刚的收尾工作是否正确不正确则改正")_inline_eval=True (秘密参数)
- ≤30回合小步快跑边探测边实验
- 用临时脚本验证假设;禁只读即下结论,完整验证再写报告
- 即使失败也记录实验过程和结果,失败报告同样有价值
- 用户不在线,遇到需要决策的问题写入报告待审,不要卡住
**收尾(三件事缺一不可)**
1. 写报告 `./autonomous_reports/R{XX}_简短描述.md`,格式简洁仅关键发现详述;若有记忆更新建议,附在报告末尾
2. 更新 `./autonomous_reports/history.txt`prepend一条`RXX | 日期 | 类型 | 主题 | 结论`,严格单行,先读此文件头几行了解格式)
3. `./TODO.txt`temp根目录中将已完成条目标记为 `[x]`
0. 重读本sop
1. 在cwd写报告文件名任意若有记忆更新建议附在报告末尾
2. `from/import helper; complete_task(tasktitle, historyline, report_path)` → 自动编号+移报告到 autonomous_reports/+prepend historyhistoryline 格式:`类型 | 主题 | 结论`,严格单行)
3. `set_todo()` 获取TODO路径 → 将已完成条目标记为 `[x]`
## 权限边界
- 无需批准只读探测、cwd内写操作/脚本实验