fix: verify channel agent continuity and tool loops
This commit is contained in:
parent
71db11e7e8
commit
4bf32bc09b
5 changed files with 251 additions and 31 deletions
|
|
@ -25,6 +25,9 @@ test('knowledge-embedded Agent keeps one channel body with human-managed convers
|
|||
assert.equal(contract.channel.receipts_are_separate_verification_records_after_dialogue_or_dispatch, true)
|
||||
assert.equal(contract.channel.bound_persona_hides_or_replaces_channel_system_body, false)
|
||||
assert.equal(contract.channel.human_may_address_channel_system_while_persona_is_bound, true)
|
||||
assert.equal(contract.channel.zero_core_channel_name_addresses_channel_system_body, true)
|
||||
assert.equal(contract.channel.channel_presence_while_persona_bound_uses_model, false)
|
||||
assert.equal(contract.channel.channel_presence_while_persona_bound_removes_binding, false)
|
||||
assert.equal(contract.channel.response_target_is_selected_per_turn, true)
|
||||
assert.equal(contract.channel.persona_identity_preconfigured, false)
|
||||
assert.equal(contract.channel.persona_declares_own_number_and_name, true)
|
||||
|
|
@ -35,6 +38,8 @@ test('knowledge-embedded Agent keeps one channel body with human-managed convers
|
|||
assert.match(frontend, /新建/)
|
||||
assert.match(frontend, /历史对话/)
|
||||
assert.match(frontend, /确认删除/)
|
||||
assert.match(frontend, /当前人格绑定已通过/)
|
||||
assert.match(frontend, /当前未绑定人格/)
|
||||
})
|
||||
|
||||
test('Agent receives a real HoloLake environment frame and autonomously calls numbered knowledge tools', () => {
|
||||
|
|
@ -155,3 +160,29 @@ test('the upgraded Agent reuses the accepted keychain identity and bounds creden
|
|||
assert.match(runtime, /kill_on_drop\(true\)/)
|
||||
assert.doesNotMatch(runtime, /world\.guanghu\.hololake\.persona-model/)
|
||||
})
|
||||
|
||||
test('Grok Build audit distinguishes integrated mechanics from unimplemented commercial-agent features', () => {
|
||||
const contract = JSON.parse(read('contracts/persona-agent-runtime.json'))
|
||||
const runtime = read('src-tauri/src/persona_agent_runtime.rs')
|
||||
const audit = read('docs/GROK-BUILD-COMPONENT-REALITY-AUDIT-20260821.md')
|
||||
|
||||
assert.equal(contract.grok_build_component_audit.source_commit, '780d1388fff103ff0db0d8c14de65af6225b4860')
|
||||
assert.equal(contract.grok_build_component_audit.whole_repository_embedded, false)
|
||||
assert.match(contract.grok_build_component_audit.multi_conversation_persistence, /^IMPLEMENTED/)
|
||||
assert.match(contract.grok_build_component_audit.numbered_older_context_retrieval, /^IMPLEMENTED/)
|
||||
assert.equal(contract.agent_loop.multiple_sequential_tool_rounds, 'IMPLEMENTED_AND_PROTOCOL_TESTED')
|
||||
assert.equal(contract.agent_loop.flagship_extended_thinking, 'FIRST_REASONING_ROUND_ONLY')
|
||||
assert.equal(contract.agent_loop.tool_receipt_followup_rounds_repeat_extended_thinking, false)
|
||||
assert.equal(contract.knowledge.document_body_pagination.maximum_characters_per_result, 12000)
|
||||
assert.equal(contract.knowledge.document_body_pagination.silent_truncation, false)
|
||||
assert.equal(contract.agent_loop.streaming_model_output, 'NOT_IMPLEMENTED')
|
||||
assert.equal(contract.agent_loop.user_cancel, 'NOT_IMPLEMENTED')
|
||||
assert.equal(contract.agent_loop.failed_turn_retry_without_duplicate_human_message, 'NOT_IMPLEMENTED')
|
||||
assert.equal(contract.agent_loop.background_subagent_tasks, 'NOT_IMPLEMENTED')
|
||||
assert.match(runtime, /MAX_TOOL_ROUNDS: usize = 6/)
|
||||
assert.match(runtime, /MAX_TOOL_RESULT_CHARS: usize = 12_000/)
|
||||
assert.match(runtime, /model_tool_calls/)
|
||||
assert.match(runtime, /enable_initial_thinking && round == 0/)
|
||||
assert.match(runtime, /character_page/)
|
||||
assert.match(audit, /多任务连续性.*多个持久化对话分支/)
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue