feat(ontology): add device asset infrastructure domains
This commit is contained in:
@@ -66,6 +66,51 @@ try {
|
||||
})
|
||||
assert.equal(guardrails.result.structuredContent.rules.some((rule) => rule.id === 'guardrail.gelios.commands_are_red_domain'), true)
|
||||
|
||||
const directTracker = await rpc(baseUrl, TOKEN, 51, 'tools/call', {
|
||||
name: 'ontology_get_entity',
|
||||
arguments: { term: 'B2 tracker' },
|
||||
})
|
||||
assert.equal(directTracker.result.structuredContent.entity.id, 'device.tracking_device')
|
||||
|
||||
const infrastructureHost = await rpc(baseUrl, TOKEN, 52, 'tools/call', {
|
||||
name: 'ontology_get_entity',
|
||||
arguments: { term: 'внешний VPS' },
|
||||
})
|
||||
assert.equal(infrastructureHost.result.structuredContent.entity.id, 'infrastructure.host')
|
||||
|
||||
const restrictedIdentifierGuardrails = await rpc(baseUrl, TOKEN, 53, 'tools/call', {
|
||||
name: 'ontology_get_guardrails',
|
||||
arguments: { entityId: 'device.restricted_identifier' },
|
||||
})
|
||||
assert.equal(
|
||||
restrictedIdentifierGuardrails.result.structuredContent.rules.some(
|
||||
(rule) => rule.id === 'guardrail.device.identifiers_are_restricted_not_identity',
|
||||
),
|
||||
true,
|
||||
)
|
||||
|
||||
const hostGuardrails = await rpc(baseUrl, TOKEN, 54, 'tools/call', {
|
||||
name: 'ontology_get_guardrails',
|
||||
arguments: { entityId: 'infrastructure.host' },
|
||||
})
|
||||
assert.equal(
|
||||
hostGuardrails.result.structuredContent.rules.some(
|
||||
(rule) => rule.id === 'guardrail.infrastructure.host_is_not_connection',
|
||||
),
|
||||
true,
|
||||
)
|
||||
|
||||
const positionObservation = await rpc(baseUrl, TOKEN, 55, 'tools/call', {
|
||||
name: 'ontology_get_entity',
|
||||
arguments: { entityId: 'observation.position_observation' },
|
||||
})
|
||||
assert.equal(
|
||||
positionObservation.result.structuredContent.relations.some(
|
||||
(relation) => relation.id === 'gelios.position_fix.maps_to_position_observation',
|
||||
),
|
||||
true,
|
||||
)
|
||||
|
||||
const unauthorized = await fetch(`${baseUrl}/mcp`, {
|
||||
method: 'POST',
|
||||
headers: { 'content-type': 'application/json' },
|
||||
@@ -82,6 +127,11 @@ try {
|
||||
'gelios_alias_resolution',
|
||||
'gelios_value_contract_visible',
|
||||
'gelios_command_guardrail_visible',
|
||||
'direct_b2_tracker_alias_resolution',
|
||||
'infrastructure_host_alias_resolution',
|
||||
'restricted_identifier_guardrail_visible',
|
||||
'host_connection_conflation_blocked',
|
||||
'gelios_position_neutral_mapping_visible',
|
||||
'evidence_paths_not_exposed',
|
||||
'internal_bearer_required',
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user