lantern

unified-addressing-test

Unified Addressing Test

Testing peek, poke, execute with unified 'slug:path' addressing.

Config

test_value: original
counter: 0
Player Score
Alice 10
Bob 20

Test: Unified Peek

# Unified addressing for peek
value = peek('unified-addressing-test:Config.yaml.test_value')
return {'operation': 'peek', 'addressing': 'unified', 'value': value}

Test: Unified Poke

# Unified addressing for poke
result = poke('unified-addressing-test:Config.yaml.counter', 42)
verify = peek('unified-addressing-test:Config.yaml.counter')
return {'operation': 'poke', 'addressing': 'unified', 'success': result, 'verify': verify}

Test: Unified Execute (Code Fence)

return {'helper': 'executed', 'config': config}
# Unified addressing for code fence execute
result = execute('unified-addressing-test:helper-fence', {'test': True})
return {'operation': 'execute', 'type': 'code', 'result': result}

Test: Unified Execute (Virtual Fence)

# Unified addressing for virtual fence execute
result = execute('unified-addressing-test:scores', action='list')
return {
    'operation': 'execute',
    'type': 'virtual',
    'success': result.get('success'),
    'rows': result.get('data', {}).get('row_count')
}