chore: snapshot audited HoloLake convergence baseline

This commit is contained in:
冰朔 2026-08-18 17:58:07 +08:00
commit 1b6b17b5ab
47 changed files with 10722 additions and 87 deletions

View file

@ -65,6 +65,7 @@ test('the product surface exposes a real knowledge workbench and browsable code
'read_knowledge_document',
'search_knowledge',
'save_knowledge_document',
'update_knowledge_organization',
'select_and_import_knowledge_folder',
'get_code_channel_snapshot',
'clone_code_channel',
@ -81,3 +82,21 @@ test('the product surface exposes a real knowledge workbench and browsable code
assert.match(ui, /源文件/)
assert.doesNotMatch(ui, /下一件事|为什么做|开始这件事/)
})
test('knowledge pages have one native category and tag organization layer without rewriting source documents', () => {
assert.equal(knowledgeContract.organization.schema, 'hololake.knowledge-organization/v1')
assert.equal(knowledgeContract.organization.document_body_rewritten, false)
assert.equal(knowledgeContract.organization.original_directory_moved, false)
assert.equal(knowledgeContract.organization.explicit_category_override, true)
assert.equal(knowledgeContract.organization.optimistic_content_hash_lock, true)
assert.match(knowledgeRust, /organization-v1\.json/)
assert.match(knowledgeRust, /HOLOLAKE_KNOWLEDGE_ORGANIZATION_CONFLICT/)
assert.match(knowledgeRust, /MAX_TAGS_PER_DOCUMENT: usize = 12/)
assert.match(knowledgeRust, /archive_native_entry/)
assert.match(knowledgeRust, /ARCHIVE_COMMIT/)
assert.match(ui, /知识结构/)
assert.match(ui, /分类与标签/)
assert.match(ui, /保存整理/)
assert.match(ui, /匹配页面/)
assert.match(ui, /update_knowledge_organization/)
})