Test Your Setup
Verify your Zeq OS SDK installation is working correctly.
Python SDK Test
from zeq_os import ZeqSDK, SevenStepWizard
from zeq_os.core.sync import HulyaSync
from zeq_os.operators.registry import OperatorRegistry
# 1. Check the timebase
sync = HulyaSync()
tick = sync.daemon_tick()
print(f"Zeqond: {tick['zeqond']:.2f}")
print(f"Phase: {tick['phase']:.4f}")
print(f"KO42: {tick['ko42']:.6f}")
# 2. Check the operator registry
registry = OperatorRegistry()
print(f"\nOperators loaded: {len(registry.all())}")
print(f"Categories: {len(set(op.category for op in registry.all()))}")
# 3. Run a computation
sdk = ZeqSDK()
result = sdk.execute("Calculate gravitational force between Earth and Moon")
print(f"\nDomain: {result.domain}")
print(f"Operators: {result.selected_operators}")
print(f"Precision OK: {result.check_precision()}")
# 4. Run the 7-Step Wizard
wizard = SevenStepWizard()
wr = wizard.run("quantum tunneling probability for electron through 1nm barrier")
print(f"\nWizard completed: {len(wr.steps)} steps")
print(f"Passed: {wr.passed}")
for step in wr.steps:
print(f" Step {step.number}: {step.name} — {'✓' if step.passed else '✗'}")
Expected output:
Zeqond: 2284829XXX.XX
Phase: 0.XXXX
KO42: 0.XXXXXX
Operators loaded: 1576
Categories: 64
Domain: quantum
Operators: ['KO42', 'QM8']
Precision OK: True
Wizard completed: 7 steps
Passed: True
Step 1: PRIME DIRECTIVE — ✓
Step 2: OPERATOR SELECTION — ✓
Step 3: SCALE PRINCIPLE — ✓
Step 4: PRECISION IMPERATIVE — ✓
Step 5: COMPILE — ✓
Step 6: EXECUTE — ✓
Step 7: VERIFY — ✓
JavaScript SDK Test
import { HulyaSync, ZeqSDK, OperatorRegistry } from '@zeq-os/sdk';
// 1. Check the timebase
const sync = new HulyaSync();
const tick = sync.daemonTick();
console.log(`Zeqond: ${tick.zeqond.toFixed(2)}`);
console.log(`Phase: ${tick.phase.toFixed(4)}`);
// 2. Check operators
const registry = new OperatorRegistry();
const all = registry.all();
console.log(`\nOperators: ${all.length}`);
// 3. Run a computation
const sdk = new ZeqSDK();
const result = await sdk.execute("Calculate Schwarzschild radius of the Sun");
console.log(`\nDomain: ${result.domain}`);
console.log(`Precision OK: ${result.checkPrecision()}`);
Run the Tests
# Python
cd sdk/python && python -m pytest tests/ -v
# JavaScript
cd sdk/javascript && npm test
Troubleshooting
If the operator registry shows 0 operators, ensure core/operators/operator-registry.json exists and is v6.3.0. The SDKs auto-load from this file via relative path resolution.
If the wizard fails at Step 5 (COMPILE), check that KO42 is being included — it's mandatory per the Prime Directive.