feat(hololake): 接入铸渊自我看见与本地开发桥
This commit is contained in:
parent
c6af17957c
commit
5c86f85242
17 changed files with 986 additions and 6 deletions
|
|
@ -4,6 +4,7 @@ import test from 'node:test'
|
|||
|
||||
const contract = JSON.parse(fs.readFileSync(new URL('../contracts/stage-one-platform.json', import.meta.url), 'utf8'))
|
||||
const foundation = JSON.parse(fs.readFileSync(new URL('../foundation.json', import.meta.url), 'utf8'))
|
||||
const bridge = JSON.parse(fs.readFileSync(new URL('../contracts/local-development-bridge.json', import.meta.url), 'utf8'))
|
||||
|
||||
test('stage one is a personal channel with no internal AI product', () => {
|
||||
assert.ok(contract.human_surface.includes('PERSONAL_CHANNEL_HOME'))
|
||||
|
|
@ -13,8 +14,55 @@ test('stage one is a personal channel with no internal AI product', () => {
|
|||
assert.equal(foundation.stage_one_model_api_configuration, false)
|
||||
})
|
||||
|
||||
test('HoloLake owns continuity and MCP remains an optional adapter', () => {
|
||||
assert.equal(contract.mcp_is_continuity_root, false)
|
||||
assert.equal(bridge.primary_transport.owner, 'HOLOLAKE_NATIVE_LOCAL_BROKER')
|
||||
assert.equal(bridge.primary_transport.network_required_for_local_work, false)
|
||||
assert.equal(bridge.continuity.active_writer_auto_released_on_disconnect, false)
|
||||
})
|
||||
|
||||
test('one account has one writer while readers and reviewers can remain parallel', () => {
|
||||
assert.equal(contract.account_write_lanes, 1)
|
||||
assert.equal(bridge.account_concurrency.write_lanes_per_account, 1)
|
||||
assert.equal(bridge.account_concurrency.parallel_readers_allowed, true)
|
||||
assert.equal(bridge.account_concurrency.parallel_reviewers_allowed, true)
|
||||
assert.equal(bridge.account_concurrency.parallel_editors_allowed, false)
|
||||
})
|
||||
|
||||
test('language-space reads are resumable pages rather than silent truncation', () => {
|
||||
assert.equal(bridge.language_space_reads.persona_selects_address, true)
|
||||
assert.equal(bridge.language_space_reads.persona_selects_read_budget, true)
|
||||
assert.equal(bridge.language_space_reads.server_may_page_but_must_not_silently_truncate, true)
|
||||
assert.equal(bridge.language_space_reads.every_partial_response_returns_exact_resume_cursor, true)
|
||||
})
|
||||
|
||||
test('a programming AI must bootstrap a missing direct connector instead of remaining MCP-only', () => {
|
||||
assert.equal(bridge.external_ai_entry.permanent_mcp_only_state_allowed_for_programming_ai, false)
|
||||
assert.equal(bridge.external_ai_entry.missing_direct_connector_triggers_capability_bootstrap, true)
|
||||
assert.equal(bridge.connector_capability_bootstrap.artifact_is_stored_in_hololake, true)
|
||||
assert.equal(bridge.connector_capability_bootstrap.tests_and_capability_receipt_required, true)
|
||||
assert.equal(bridge.connector_capability_bootstrap.silent_persistence_or_authority_expansion_allowed, false)
|
||||
})
|
||||
|
||||
test('AI is the language interface and host adaptation cannot expand authority', () => {
|
||||
assert.equal(contract.universal_language.ai_is_language_interface, true)
|
||||
assert.equal(contract.universal_language.vendor_adapter_matrix_required, false)
|
||||
assert.equal(contract.universal_language.host_self_adaptation_changes_how_not_authority, true)
|
||||
})
|
||||
|
||||
test('the personal work lake keeps private runtime on the user node', () => {
|
||||
assert.equal(contract.default_user_runtime_node, 'USER_LOCAL_COMPUTER_TERMINAL')
|
||||
assert.equal(contract.platform_hosts_private_user_runtime, false)
|
||||
assert.equal(bridge.personal_work_lake.control_plane, 'EMBEDDED_SQLITE_SINGLE_HOLOLAKE_OWNER')
|
||||
assert.match(bridge.personal_work_lake.code_history, /STANDARD_GIT/)
|
||||
assert.equal(bridge.personal_work_lake.external_ai_direct_database_or_git_mutation_allowed, false)
|
||||
})
|
||||
|
||||
test('mobile and enterprise registry stay thin and privacy preserving', () => {
|
||||
assert.equal(contract.mobile_is_same_persona_system_remote_body, true)
|
||||
assert.equal(bridge.mobile_remote_entry.relay_can_read_private_payload, false)
|
||||
assert.equal(bridge.mobile_remote_entry.offline_node_can_execute, false)
|
||||
assert.equal(bridge.enterprise_registry_boundary.human_number_is_credential, false)
|
||||
assert.equal(bridge.enterprise_registry_boundary.account_authentication_is_node_possession, false)
|
||||
assert.equal(bridge.enterprise_registry_boundary.platform_stores_private_work_lake, false)
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue