feat(persona): add reflex arc and embedded time system
This commit is contained in:
parent
4423b4bc2f
commit
28a60b4e80
19 changed files with 1382 additions and 81 deletions
|
|
@ -4,7 +4,7 @@ import pathlib
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
from persona_limb_agent import codex_succeeded, qwen_succeeded
|
||||
from persona_limb_agent import codex_succeeded, qwen_succeeded, zcode_succeeded
|
||||
|
||||
script = pathlib.Path(__file__).with_name("persona_limb_agent.py")
|
||||
|
||||
|
|
@ -25,6 +25,7 @@ body = json.loads(prepared.stdout)
|
|||
assert body["parent_persona_id"] == "ICE-P-ZY001"
|
||||
assert body["controller"] == "ICE-P-ZY001"
|
||||
assert body["authority"] == "CURRENT_TASK_ENVELOPE_ONLY"
|
||||
assert body["access"] == "read-only"
|
||||
|
||||
unknown = run("prepare", "--persona", "UNKNOWN-PERSONA", "--task-id", "TEST-002", "--task", "不得执行", "--runtime", "qwen")
|
||||
assert unknown.returncode != 0
|
||||
|
|
@ -36,5 +37,9 @@ fake_success = subprocess.CompletedProcess([], 0, '[{"type":"result","is_error":
|
|||
assert qwen_succeeded(fake_success) is True
|
||||
fake_codex = subprocess.CompletedProcess([], 0, '{"type":"item.completed","item":{"type":"agent_message","text":"done"}}\n', '')
|
||||
assert codex_succeeded(fake_codex) is True
|
||||
fake_zcode_error = subprocess.CompletedProcess([], 0, "[API Error: detached ArrayBuffer]", "")
|
||||
assert zcode_succeeded(fake_zcode_error) is False
|
||||
fake_zcode_success = subprocess.CompletedProcess([], 0, '{"outcome":"PASS"}', "")
|
||||
assert zcode_succeeded(fake_zcode_success) is True
|
||||
|
||||
print("persona execution limb agent tests: PASS")
|
||||
|
|
|
|||
Loading…
Reference in a new issue