agent-exec transport e07a99259f354adca2d4abddc1b30e6f/51f9e8e4e347

This commit is contained in:
agent-exec-transport
2026-10-16 14:30:50 +00:00
parent 372dca1af4
commit b013be1eb3
2 changed files with 6 additions and 9 deletions
+2 -9
View File
@@ -224,20 +224,13 @@ log "seed: ingest corpus into $PID_MAIN"
cmd rdm.ingest "{\"projectId\":\"$PID_MAIN\",\"source\":\"01-用户需求与系统需求.md\",\"stage\":\"BD\",\"text\":$(python3 -c 'import json,sys; print(json.dumps(sys.stdin.read()))' <<<"$SEED_MD")}" >/dev/null
log "seed done"
# ── 驾驶舱 I4 种子:文档树 + 章节正文(草稿流)+ 非成员账号 ──
# ── 驾驶舱 I4 种子:章节探针提案 + 非成员账号(正文经结构 YAML 装载) ──
cmd rdm.perm.set "{\"projectId\":\"$PID_MAIN\",\"member\":\"$OWNER\",\"action\":\"doc.write\",\"allow\":true}" >/dev/null
log "seed: cockpit section content via draft propose+adopt"
log "seed: cockpit pending proposal probe (non-danger; scenario 4)"
COCKPIT_OV=$(cmd rdm.cockpit.overview "{\"projectId\":\"$PID_MAIN\"}")
DOC_ID=$(printf '%s' "$COCKPIT_OV" | python3 -c 'import json,sys; d=json.load(sys.stdin); print([i["ref"]["id"] for i in d["documents"] if i["title"]=="验证主体报告"][0])')
SEC_JSON=$(cmd rdm.cockpit.tree "{\"projectId\":\"$PID_MAIN\",\"parent\":\"$DOC_ID\"}")
SEC_OVERVIEW=$(printf '%s' "$SEC_JSON" | python3 -c 'import json,sys; d=json.load(sys.stdin); print([i["ref"]["id"] for i in d["items"] if i["title"]=="概述"][0])')
SEC_DESIGN=$(printf '%s' "$SEC_JSON" | python3 -c 'import json,sys; d=json.load(sys.stdin); print([i["ref"]["id"] for i in d["items"] if i["title"]=="设计说明"][0])')
PROP=$(cmd rdm.draft.propose "{\"projectId\":\"$PID_MAIN\",\"sectionId\":\"$SEC_OVERVIEW\",\"content\":\"本报告给出验证主体、结论与证据链的总体视图。\"}")
PROP_ID=$(printf '%s' "$PROP" | python3 -c 'import json,sys; d=json.load(sys.stdin); print(d.get("proposalId") or d.get("id"))')
cmd rdm.draft.adopt "{\"projectId\":\"$PID_MAIN\",\"proposalId\":\"$PROP_ID\"}" >/dev/null
PROP=$(cmd rdm.draft.propose "{\"projectId\":\"$PID_MAIN\",\"sectionId\":\"$SEC_DESIGN\",\"content\":\"设计说明:两树一网领域事实经驾驶舱只读投影呈现。\"}")
PROP_ID=$(printf '%s' "$PROP" | python3 -c 'import json,sys; d=json.load(sys.stdin); print(d.get("proposalId") or d.get("id"))')
cmd rdm.draft.adopt "{\"projectId\":\"$PID_MAIN\",\"proposalId\":\"$PROP_ID\"}" >/dev/null
# 场景 4 驱动用:留一个未采纳提案(浏览器内经 API 采纳后观察投影一致)。
cmd rdm.draft.propose "{\"projectId\":\"$PID_MAIN\",\"sectionId\":\"$SEC_DESIGN\",\"content\":\"一致性探针内容。\"}" >/dev/null
log "seed: second account (non-member negative case)"