feat: close complete numbering and responsive fifth-domain UI

This commit is contained in:
冰朔 2026-08-19 13:16:32 +08:00
commit e8b3082ed5
42 changed files with 3243 additions and 417 deletions

View file

@ -9,14 +9,14 @@ test('compiled GLS v2 manifest reconciles current registration sources without e
assert.equal(registry.schema, 'hololake.gls-runtime-manifest/v2')
assert.equal(registry.source.repository, 'REPO-012')
assert.equal(registry.source.commit, 'd5b1111fcaccaccf025070e531631f2b3cbb00cd')
assert.equal(registry.source.commit, '104a5d73162bdf4a529701e65898e2bc2863ea9e')
assert.equal(registry.source.authority_files.length, 4)
assert.equal(registry.compiler.raw_protocol_text_executed, false)
assert.equal(registry.compiler.arbitrary_protocol_code_allowed, false)
assert.equal(registry.compiler.unprojected_protocol_behavior, 'INVENTORIED_NOT_EXECUTABLE')
assert.equal(registry.compiler.source_dependency_behavior, 'TYPED_AUDIT_ONLY_NEVER_ACTIVATES')
assert.equal(registry.protocol_count, 75)
assert.equal(new Set(registry.protocols.map((protocol) => protocol.id)).size, 75)
assert.equal(registry.protocol_count, 83)
assert.equal(new Set(registry.protocols.map((protocol) => protocol.id)).size, 83)
assert.ok(registry.protocols.every((protocol) => /^[a-f0-9]{64}$/.test(protocol.source_sha256)))
assert.equal(registry.reconciliation.protocol_registry_id_count, 52)
assert.equal(registry.reconciliation.existing_registered_count, 19)
@ -24,13 +24,21 @@ test('compiled GLS v2 manifest reconciles current registration sources without e
assert.equal(registry.reconciliation.registered_draft_not_started_count, 21)
assert.equal(registry.reconciliation.legacy_dependency_target_count, 57)
assert.equal(registry.reconciliation.dependencies_not_in_protocol_registry.length, 19)
assert.equal(registry.reconciliation.dependencies_without_numbered_source.length, 24)
assert.equal(registry.reconciliation.numbered_sources_not_in_protocol_registry.length, 31)
assert.equal(registry.reconciliation.dependencies_without_numbered_source.length, 16)
assert.equal(registry.reconciliation.numbered_reference_node_count, 16)
assert.equal(registry.reconciliation.unresolved_number_reference_count, 0)
assert.deepEqual(registry.reconciliation.unresolved_number_references, [])
assert.equal(registry.reconciliation.every_dependency_has_number_coordinate, true)
assert.equal(registry.reconciliation.numbered_sources_not_in_protocol_registry.length, 32)
assert.equal(registry.reconciliation.legacy_dependency_cycles.length, 3)
assert.equal(registry.reconciliation.discovered_unreconciled_count, 0)
assert.equal(registry.reconciliation.authority_conflict_count, 0)
assert.equal(registry.reconciliation.unclassified_source_dependency_count, 0)
assert.equal(Object.values(registry.reconciliation.typed_source_dependency_counts).reduce((sum, count) => sum + count, 0), 183)
assert.equal(registry.number_coordinate_count, 99)
assert.equal(registry.numbered_reference_nodes.length, 16)
assert.ok(registry.numbered_reference_nodes.every((node) => node.execution_state === 'REFERENCE_ONLY_NOT_EXECUTABLE'))
assert.ok(registry.protocols.flatMap((protocol) => protocol.dependency_edges).every((edge) => edge.target_number_coordinate_available && ['NUMBERED_PROTOCOL_SOURCE', 'NUMBERED_REFERENCE_NODE'].includes(edge.target_resolution)))
})
test('only explicit deterministic projections enter the runtime enforcement set', async () => {
@ -48,7 +56,9 @@ test('only explicit deterministic projections enter the runtime enforcement set'
assert.equal(protocols['GLS-0130'].implementation_stage, 'P6')
assert.equal(protocols['GLS-0003'], undefined)
assert.equal(registry.executable_projection_count, 25)
assert.equal(registry.inventoried_not_executable_count, 50)
assert.equal(registry.inventoried_not_executable_count, 58)
assert.ok(registry.protocols.filter((protocol) => protocol.projection_state === 'EXECUTABLE_PROJECTION').every((protocol) => protocol.source_format === 'HDLP_PROTOCOL_SOURCE'))
assert.ok(registry.protocols.filter((protocol) => protocol.source_format === 'LEGACY_MARKDOWN_EVIDENCE').every((protocol) => protocol.projection_state === 'INVENTORIED_NOT_EXECUTABLE'))
})
test('P1 through P6 executable dependencies are explicit, typed, closed and acyclic', async () => {