flux-vm 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- flux_vm-0.1.0/LICENSE +21 -0
- flux_vm-0.1.0/MANIFEST.in +4 -0
- flux_vm-0.1.0/PKG-INFO +415 -0
- flux_vm-0.1.0/README.md +360 -0
- flux_vm-0.1.0/benchmarks/benchmarks.py +123 -0
- flux_vm-0.1.0/docs/FLUX-Ecosystem-Audit.docx +0 -0
- flux_vm-0.1.0/docs/FLUX_Design_Specification.pdf +0 -0
- flux_vm-0.1.0/docs/GRADUATION.md +271 -0
- flux_vm-0.1.0/docs/INDEX.md +248 -0
- flux_vm-0.1.0/docs/ISA_UNIFIED.md +390 -0
- flux_vm-0.1.0/docs/MIGRATION_GUIDE.md +1078 -0
- flux_vm-0.1.0/docs/OPCODE-RECONCILIATION.md +674 -0
- flux_vm-0.1.0/docs/RESEARCH_ROADMAP.md +466 -0
- flux_vm-0.1.0/docs/REVERSE_ENGINEERING.md +833 -0
- flux_vm-0.1.0/docs/ability-transfer-r2-synthesis.md +2196 -0
- flux_vm-0.1.0/docs/agent-training/README.md +481 -0
- flux_vm-0.1.0/docs/async-primitives-spec.md +1276 -0
- flux_vm-0.1.0/docs/bootcamp/README.md +153 -0
- flux_vm-0.1.0/docs/bootcamp/module-01-bytecode-basics.md +330 -0
- flux_vm-0.1.0/docs/bootcamp/module-02-control-flow.md +436 -0
- flux_vm-0.1.0/docs/bootcamp/module-03-a2a-protocol.md +606 -0
- flux_vm-0.1.0/docs/bootcamp/module-04-memory-regions.md +503 -0
- flux_vm-0.1.0/docs/bootcamp/module-05-fir-pipeline.md +422 -0
- flux_vm-0.1.0/docs/bootcamp/module-06-fleet-patterns.md +647 -0
- flux_vm-0.1.0/docs/bootcamp-effectiveness-research.md +1615 -0
- flux_vm-0.1.0/docs/developer-guide.md +587 -0
- flux_vm-0.1.0/docs/embedding-search-opcode-spec.md +1704 -0
- flux_vm-0.1.0/docs/fleet-communication-topology-analysis.md +2522 -0
- flux_vm-0.1.0/docs/git-native-a2a-survey.md +3092 -0
- flux_vm-0.1.0/docs/graph-traversal-opcode-spec.md +1836 -0
- flux_vm-0.1.0/docs/isa-v3-escape-prefix-spec.md +2369 -0
- flux_vm-0.1.0/docs/lora-agent-ability-pipeline.md +3347 -0
- flux_vm-0.1.0/docs/multi-agent-debugging-patterns.md +3053 -0
- flux_vm-0.1.0/docs/probabilistic-sampling-opcode-spec.md +2104 -0
- flux_vm-0.1.0/docs/research/agent_orchestration.md +948 -0
- flux_vm-0.1.0/docs/research/bootstrap_and_meta.md +727 -0
- flux_vm-0.1.0/docs/research/creative_use_cases.md +664 -0
- flux_vm-0.1.0/docs/research/memory_and_learning.md +1613 -0
- flux_vm-0.1.0/docs/research/simulation_and_prediction.md +1394 -0
- flux_vm-0.1.0/docs/security-primitives-spec.md +1463 -0
- flux_vm-0.1.0/docs/structured-data-opcodes-v2.md +2727 -0
- flux_vm-0.1.0/docs/temporal-primitives-spec.md +1341 -0
- flux_vm-0.1.0/docs/user-guide.md +711 -0
- flux_vm-0.1.0/docs/wasm-compilation-target-v2.md +2728 -0
- flux_vm-0.1.0/pyproject.toml +168 -0
- flux_vm-0.1.0/setup.cfg +4 -0
- flux_vm-0.1.0/src/flux/__init__.py +8 -0
- flux_vm-0.1.0/src/flux/__main__.py +6 -0
- flux_vm-0.1.0/src/flux/a2a/__init__.py +44 -0
- flux_vm-0.1.0/src/flux/a2a/coordinator.py +165 -0
- flux_vm-0.1.0/src/flux/a2a/messages.py +171 -0
- flux_vm-0.1.0/src/flux/a2a/primitives.py +730 -0
- flux_vm-0.1.0/src/flux/a2a/signal_compiler.py +465 -0
- flux_vm-0.1.0/src/flux/a2a/transport.py +81 -0
- flux_vm-0.1.0/src/flux/a2a/trust.py +363 -0
- flux_vm-0.1.0/src/flux/adaptive/__init__.py +59 -0
- flux_vm-0.1.0/src/flux/adaptive/compiler_bridge.py +284 -0
- flux_vm-0.1.0/src/flux/adaptive/profiler.py +441 -0
- flux_vm-0.1.0/src/flux/adaptive/selector.py +430 -0
- flux_vm-0.1.0/src/flux/asm/__init__.py +30 -0
- flux_vm-0.1.0/src/flux/asm/binary_patcher.py +243 -0
- flux_vm-0.1.0/src/flux/asm/cross_assembler.py +596 -0
- flux_vm-0.1.0/src/flux/asm/elf_header.py +369 -0
- flux_vm-0.1.0/src/flux/asm/errors.py +112 -0
- flux_vm-0.1.0/src/flux/asm/linker.py +247 -0
- flux_vm-0.1.0/src/flux/asm/macros.py +334 -0
- flux_vm-0.1.0/src/flux/asm/opcodes_compat.py +254 -0
- flux_vm-0.1.0/src/flux/bytecode/__init__.py +36 -0
- flux_vm-0.1.0/src/flux/bytecode/decoder.py +384 -0
- flux_vm-0.1.0/src/flux/bytecode/encoder.py +444 -0
- flux_vm-0.1.0/src/flux/bytecode/formats.py +249 -0
- flux_vm-0.1.0/src/flux/bytecode/isa_unified.py +462 -0
- flux_vm-0.1.0/src/flux/bytecode/opcodes.py +261 -0
- flux_vm-0.1.0/src/flux/bytecode/opcodes_legacy.py +234 -0
- flux_vm-0.1.0/src/flux/bytecode/validator.py +316 -0
- flux_vm-0.1.0/src/flux/cli.py +1120 -0
- flux_vm-0.1.0/src/flux/compiler/__init__.py +0 -0
- flux_vm-0.1.0/src/flux/compiler/pipeline.py +96 -0
- flux_vm-0.1.0/src/flux/cost/__init__.py +24 -0
- flux_vm-0.1.0/src/flux/cost/energy.py +216 -0
- flux_vm-0.1.0/src/flux/cost/model.py +289 -0
- flux_vm-0.1.0/src/flux/creative/__init__.py +59 -0
- flux_vm-0.1.0/src/flux/creative/generative.py +573 -0
- flux_vm-0.1.0/src/flux/creative/live.py +439 -0
- flux_vm-0.1.0/src/flux/creative/sonification.py +445 -0
- flux_vm-0.1.0/src/flux/creative/visualization.py +279 -0
- flux_vm-0.1.0/src/flux/debugger.py +644 -0
- flux_vm-0.1.0/src/flux/disasm.py +456 -0
- flux_vm-0.1.0/src/flux/docs/__init__.py +33 -0
- flux_vm-0.1.0/src/flux/docs/generator.py +330 -0
- flux_vm-0.1.0/src/flux/docs/introspector.py +386 -0
- flux_vm-0.1.0/src/flux/docs/renderer.py +284 -0
- flux_vm-0.1.0/src/flux/docs/stats.py +261 -0
- flux_vm-0.1.0/src/flux/evolution/__init__.py +76 -0
- flux_vm-0.1.0/src/flux/evolution/evolution.py +425 -0
- flux_vm-0.1.0/src/flux/evolution/genome.py +733 -0
- flux_vm-0.1.0/src/flux/evolution/mutator.py +452 -0
- flux_vm-0.1.0/src/flux/evolution/pattern_mining.py +402 -0
- flux_vm-0.1.0/src/flux/evolution/validator.py +394 -0
- flux_vm-0.1.0/src/flux/fir/__init__.py +94 -0
- flux_vm-0.1.0/src/flux/fir/blocks.py +45 -0
- flux_vm-0.1.0/src/flux/fir/builder.py +255 -0
- flux_vm-0.1.0/src/flux/fir/instructions.py +606 -0
- flux_vm-0.1.0/src/flux/fir/printer.py +273 -0
- flux_vm-0.1.0/src/flux/fir/types.py +174 -0
- flux_vm-0.1.0/src/flux/fir/validator.py +211 -0
- flux_vm-0.1.0/src/flux/fir/values.py +22 -0
- flux_vm-0.1.0/src/flux/flywheel/__init__.py +59 -0
- flux_vm-0.1.0/src/flux/flywheel/engine.py +787 -0
- flux_vm-0.1.0/src/flux/flywheel/hypothesis.py +280 -0
- flux_vm-0.1.0/src/flux/flywheel/knowledge.py +435 -0
- flux_vm-0.1.0/src/flux/flywheel/metrics.py +215 -0
- flux_vm-0.1.0/src/flux/frontend/__init__.py +0 -0
- flux_vm-0.1.0/src/flux/frontend/c_frontend.py +842 -0
- flux_vm-0.1.0/src/flux/frontend/python_frontend.py +585 -0
- flux_vm-0.1.0/src/flux/jit/__init__.py +33 -0
- flux_vm-0.1.0/src/flux/jit/cache.py +187 -0
- flux_vm-0.1.0/src/flux/jit/compiler.py +356 -0
- flux_vm-0.1.0/src/flux/jit/ir_optimize.py +547 -0
- flux_vm-0.1.0/src/flux/jit/tracing.py +339 -0
- flux_vm-0.1.0/src/flux/mega/__init__.py +34 -0
- flux_vm-0.1.0/src/flux/mega/conductor.py +855 -0
- flux_vm-0.1.0/src/flux/mega/demo_mega.py +93 -0
- flux_vm-0.1.0/src/flux/memory/__init__.py +46 -0
- flux_vm-0.1.0/src/flux/memory/bandit.py +275 -0
- flux_vm-0.1.0/src/flux/memory/experience.py +429 -0
- flux_vm-0.1.0/src/flux/memory/learning.py +273 -0
- flux_vm-0.1.0/src/flux/memory/store.py +602 -0
- flux_vm-0.1.0/src/flux/migrate/__init__.py +10 -0
- flux_vm-0.1.0/src/flux/migrate/migrator.py +754 -0
- flux_vm-0.1.0/src/flux/migrate/report.py +124 -0
- flux_vm-0.1.0/src/flux/modules/__init__.py +48 -0
- flux_vm-0.1.0/src/flux/modules/card.py +117 -0
- flux_vm-0.1.0/src/flux/modules/container.py +316 -0
- flux_vm-0.1.0/src/flux/modules/granularity.py +128 -0
- flux_vm-0.1.0/src/flux/modules/namespace.py +87 -0
- flux_vm-0.1.0/src/flux/modules/reloader.py +322 -0
- flux_vm-0.1.0/src/flux/open_interp/__init__.py +16 -0
- flux_vm-0.1.0/src/flux/open_interp/argumentation.py +332 -0
- flux_vm-0.1.0/src/flux/open_interp/assembler.py +133 -0
- flux_vm-0.1.0/src/flux/open_interp/beachcomb.py +480 -0
- flux_vm-0.1.0/src/flux/open_interp/compiler.py +190 -0
- flux_vm-0.1.0/src/flux/open_interp/context_filter.py +62 -0
- flux_vm-0.1.0/src/flux/open_interp/contradiction_detector.py +311 -0
- flux_vm-0.1.0/src/flux/open_interp/decomposer.py +657 -0
- flux_vm-0.1.0/src/flux/open_interp/edge_profile.py +169 -0
- flux_vm-0.1.0/src/flux/open_interp/ethical_weight.py +49 -0
- flux_vm-0.1.0/src/flux/open_interp/ghost_loader.py +546 -0
- flux_vm-0.1.0/src/flux/open_interp/interpreter.py +257 -0
- flux_vm-0.1.0/src/flux/open_interp/l0_scrubber.py +487 -0
- flux_vm-0.1.0/src/flux/open_interp/necrosis_detector.py +128 -0
- flux_vm-0.1.0/src/flux/open_interp/paper_bridge.py +276 -0
- flux_vm-0.1.0/src/flux/open_interp/paper_decomposer.py +367 -0
- flux_vm-0.1.0/src/flux/open_interp/pruning.py +533 -0
- flux_vm-0.1.0/src/flux/open_interp/sandbox.py +141 -0
- flux_vm-0.1.0/src/flux/open_interp/semantic_router.py +282 -0
- flux_vm-0.1.0/src/flux/open_interp/term_obituary.py +173 -0
- flux_vm-0.1.0/src/flux/open_interp/tiling.py +327 -0
- flux_vm-0.1.0/src/flux/open_interp/vocab_signal.py +325 -0
- flux_vm-0.1.0/src/flux/open_interp/vocabulary.py +217 -0
- flux_vm-0.1.0/src/flux/open_interpreter.py +986 -0
- flux_vm-0.1.0/src/flux/optimizer/__init__.py +17 -0
- flux_vm-0.1.0/src/flux/optimizer/passes.py +105 -0
- flux_vm-0.1.0/src/flux/optimizer/pipeline.py +40 -0
- flux_vm-0.1.0/src/flux/parser/__init__.py +35 -0
- flux_vm-0.1.0/src/flux/parser/nodes.py +111 -0
- flux_vm-0.1.0/src/flux/parser/parser.py +437 -0
- flux_vm-0.1.0/src/flux/pipeline/__init__.py +20 -0
- flux_vm-0.1.0/src/flux/pipeline/debug.py +479 -0
- flux_vm-0.1.0/src/flux/pipeline/e2e.py +258 -0
- flux_vm-0.1.0/src/flux/pipeline/polyglot.py +234 -0
- flux_vm-0.1.0/src/flux/protocol/__init__.py +58 -0
- flux_vm-0.1.0/src/flux/protocol/channel.py +361 -0
- flux_vm-0.1.0/src/flux/protocol/message.py +323 -0
- flux_vm-0.1.0/src/flux/protocol/negotiation.py +367 -0
- flux_vm-0.1.0/src/flux/protocol/registry.py +242 -0
- flux_vm-0.1.0/src/flux/protocol/serialization.py +284 -0
- flux_vm-0.1.0/src/flux/py.typed +0 -0
- flux_vm-0.1.0/src/flux/reload/__init__.py +5 -0
- flux_vm-0.1.0/src/flux/reload/hot_loader.py +127 -0
- flux_vm-0.1.0/src/flux/repl.py +415 -0
- flux_vm-0.1.0/src/flux/retro/__init__.py +30 -0
- flux_vm-0.1.0/src/flux/retro/catalog.py +450 -0
- flux_vm-0.1.0/src/flux/retro/implementations/__init__.py +43 -0
- flux_vm-0.1.0/src/flux/retro/implementations/_asm.py +220 -0
- flux_vm-0.1.0/src/flux/retro/implementations/_builder.py +170 -0
- flux_vm-0.1.0/src/flux/retro/implementations/game_of_life.py +282 -0
- flux_vm-0.1.0/src/flux/retro/implementations/lunar_lander.py +241 -0
- flux_vm-0.1.0/src/flux/retro/implementations/mandelbrot.py +225 -0
- flux_vm-0.1.0/src/flux/retro/implementations/markov_text.py +220 -0
- flux_vm-0.1.0/src/flux/retro/implementations/mastermind.py +318 -0
- flux_vm-0.1.0/src/flux/retro/implementations/pong.py +239 -0
- flux_vm-0.1.0/src/flux/retro/implementations/snake.py +350 -0
- flux_vm-0.1.0/src/flux/retro/implementations/tetris.py +307 -0
- flux_vm-0.1.0/src/flux/retro/implementations/text_adventure.py +272 -0
- flux_vm-0.1.0/src/flux/retro/implementations/tic_tac_toe.py +262 -0
- flux_vm-0.1.0/src/flux/retro/research/__init__.py +22 -0
- flux_vm-0.1.0/src/flux/retro/research/metrics.py +115 -0
- flux_vm-0.1.0/src/flux/retro/research/runner.py +247 -0
- flux_vm-0.1.0/src/flux/retro/research/session.py +471 -0
- flux_vm-0.1.0/src/flux/retro/showcase/__init__.py +215 -0
- flux_vm-0.1.0/src/flux/retro/showcase/__main__.py +3 -0
- flux_vm-0.1.0/src/flux/reverse/__init__.py +32 -0
- flux_vm-0.1.0/src/flux/reverse/code_map.py +176 -0
- flux_vm-0.1.0/src/flux/reverse/engineer.py +302 -0
- flux_vm-0.1.0/src/flux/reverse/parsers/__init__.py +6 -0
- flux_vm-0.1.0/src/flux/reverse/parsers/c_reverse.py +583 -0
- flux_vm-0.1.0/src/flux/reverse/parsers/python_reverse.py +720 -0
- flux_vm-0.1.0/src/flux/runtime/__init__.py +16 -0
- flux_vm-0.1.0/src/flux/runtime/agent.py +138 -0
- flux_vm-0.1.0/src/flux/runtime/agent_runtime.py +206 -0
- flux_vm-0.1.0/src/flux/schema/__init__.py +51 -0
- flux_vm-0.1.0/src/flux/schema/architecture.py +502 -0
- flux_vm-0.1.0/src/flux/schema/builder_schema.py +372 -0
- flux_vm-0.1.0/src/flux/schema/opcode_schema.py +203 -0
- flux_vm-0.1.0/src/flux/schema/tile_schema.py +659 -0
- flux_vm-0.1.0/src/flux/security/__init__.py +11 -0
- flux_vm-0.1.0/src/flux/security/bytecode_verifier.py +699 -0
- flux_vm-0.1.0/src/flux/security/capabilities.py +121 -0
- flux_vm-0.1.0/src/flux/security/resource_limits.py +52 -0
- flux_vm-0.1.0/src/flux/security/sandbox.py +59 -0
- flux_vm-0.1.0/src/flux/simulation/__init__.py +60 -0
- flux_vm-0.1.0/src/flux/simulation/digital_twin.py +838 -0
- flux_vm-0.1.0/src/flux/simulation/oracle.py +484 -0
- flux_vm-0.1.0/src/flux/simulation/predictor.py +401 -0
- flux_vm-0.1.0/src/flux/simulation/speculator.py +344 -0
- flux_vm-0.1.0/src/flux/stdlib/__init__.py +67 -0
- flux_vm-0.1.0/src/flux/stdlib/agents.py +238 -0
- flux_vm-0.1.0/src/flux/stdlib/collections.py +379 -0
- flux_vm-0.1.0/src/flux/stdlib/intrinsics.py +231 -0
- flux_vm-0.1.0/src/flux/stdlib/math.py +271 -0
- flux_vm-0.1.0/src/flux/stdlib/strings.py +159 -0
- flux_vm-0.1.0/src/flux/swarm/__init__.py +62 -0
- flux_vm-0.1.0/src/flux/swarm/agent.py +432 -0
- flux_vm-0.1.0/src/flux/swarm/deadlock.py +360 -0
- flux_vm-0.1.0/src/flux/swarm/message_bus.py +286 -0
- flux_vm-0.1.0/src/flux/swarm/swarm.py +493 -0
- flux_vm-0.1.0/src/flux/swarm/topology.py +297 -0
- flux_vm-0.1.0/src/flux/synthesis/__init__.py +30 -0
- flux_vm-0.1.0/src/flux/synthesis/demo.py +182 -0
- flux_vm-0.1.0/src/flux/synthesis/report.py +363 -0
- flux_vm-0.1.0/src/flux/synthesis/synthesizer.py +639 -0
- flux_vm-0.1.0/src/flux/tiles/__init__.py +39 -0
- flux_vm-0.1.0/src/flux/tiles/graph.py +277 -0
- flux_vm-0.1.0/src/flux/tiles/library.py +1078 -0
- flux_vm-0.1.0/src/flux/tiles/ports.py +84 -0
- flux_vm-0.1.0/src/flux/tiles/registry.py +176 -0
- flux_vm-0.1.0/src/flux/tiles/tile.py +237 -0
- flux_vm-0.1.0/src/flux/types/__init__.py +41 -0
- flux_vm-0.1.0/src/flux/types/compat.py +179 -0
- flux_vm-0.1.0/src/flux/types/generic.py +343 -0
- flux_vm-0.1.0/src/flux/types/unify.py +826 -0
- flux_vm-0.1.0/src/flux/vm/__init__.py +37 -0
- flux_vm-0.1.0/src/flux/vm/evolution.py +292 -0
- flux_vm-0.1.0/src/flux/vm/interpreter.py +1598 -0
- flux_vm-0.1.0/src/flux/vm/memory.py +155 -0
- flux_vm-0.1.0/src/flux/vm/registers.py +156 -0
- flux_vm-0.1.0/src/flux_vm.egg-info/PKG-INFO +415 -0
- flux_vm-0.1.0/src/flux_vm.egg-info/SOURCES.txt +314 -0
- flux_vm-0.1.0/src/flux_vm.egg-info/dependency_links.txt +1 -0
- flux_vm-0.1.0/src/flux_vm.egg-info/entry_points.txt +2 -0
- flux_vm-0.1.0/src/flux_vm.egg-info/requires.txt +7 -0
- flux_vm-0.1.0/src/flux_vm.egg-info/top_level.txt +1 -0
- flux_vm-0.1.0/tests/test_a2a.py +513 -0
- flux_vm-0.1.0/tests/test_adaptive.py +1115 -0
- flux_vm-0.1.0/tests/test_argumentation.py +649 -0
- flux_vm-0.1.0/tests/test_beachcomb.py +183 -0
- flux_vm-0.1.0/tests/test_bytecode.py +497 -0
- flux_vm-0.1.0/tests/test_bytecode_verifier.py +1146 -0
- flux_vm-0.1.0/tests/test_conformance.py +364 -0
- flux_vm-0.1.0/tests/test_contradiction_detector.py +169 -0
- flux_vm-0.1.0/tests/test_cost.py +563 -0
- flux_vm-0.1.0/tests/test_creative.py +1170 -0
- flux_vm-0.1.0/tests/test_cross_assembler.py +1152 -0
- flux_vm-0.1.0/tests/test_debugger.py +626 -0
- flux_vm-0.1.0/tests/test_docs.py +691 -0
- flux_vm-0.1.0/tests/test_edge_profile.py +94 -0
- flux_vm-0.1.0/tests/test_evolution.py +1594 -0
- flux_vm-0.1.0/tests/test_fir.py +455 -0
- flux_vm-0.1.0/tests/test_fleet_sim.py +452 -0
- flux_vm-0.1.0/tests/test_flywheel.py +1191 -0
- flux_vm-0.1.0/tests/test_formats.py +191 -0
- flux_vm-0.1.0/tests/test_frontends.py +245 -0
- flux_vm-0.1.0/tests/test_ghost_loader.py +718 -0
- flux_vm-0.1.0/tests/test_integration.py +746 -0
- flux_vm-0.1.0/tests/test_isa_unified.py +154 -0
- flux_vm-0.1.0/tests/test_jit.py +988 -0
- flux_vm-0.1.0/tests/test_l0_scrubber.py +399 -0
- flux_vm-0.1.0/tests/test_marine_physics.py +161 -0
- flux_vm-0.1.0/tests/test_mega.py +651 -0
- flux_vm-0.1.0/tests/test_memory.py +1074 -0
- flux_vm-0.1.0/tests/test_modules.py +927 -0
- flux_vm-0.1.0/tests/test_open_interpreter.py +746 -0
- flux_vm-0.1.0/tests/test_optimizer.py +64 -0
- flux_vm-0.1.0/tests/test_paper_bridge.py +116 -0
- flux_vm-0.1.0/tests/test_parser.py +268 -0
- flux_vm-0.1.0/tests/test_primitives.py +310 -0
- flux_vm-0.1.0/tests/test_protocol.py +1114 -0
- flux_vm-0.1.0/tests/test_reload.py +56 -0
- flux_vm-0.1.0/tests/test_reverse.py +541 -0
- flux_vm-0.1.0/tests/test_runtime.py +366 -0
- flux_vm-0.1.0/tests/test_schema.py +660 -0
- flux_vm-0.1.0/tests/test_security.py +280 -0
- flux_vm-0.1.0/tests/test_self_improvement.py +114 -0
- flux_vm-0.1.0/tests/test_semantic_router.py +121 -0
- flux_vm-0.1.0/tests/test_signal_compiler.py +261 -0
- flux_vm-0.1.0/tests/test_simulation.py +1145 -0
- flux_vm-0.1.0/tests/test_stdlib.py +848 -0
- flux_vm-0.1.0/tests/test_swarm.py +1115 -0
- flux_vm-0.1.0/tests/test_synthesis.py +623 -0
- flux_vm-0.1.0/tests/test_term_obituary.py +92 -0
- flux_vm-0.1.0/tests/test_tiles.py +1203 -0
- flux_vm-0.1.0/tests/test_type_unify.py +1172 -0
- flux_vm-0.1.0/tests/test_vm.py +513 -0
- flux_vm-0.1.0/tests/test_vm_complete.py +1230 -0
- flux_vm-0.1.0/tests/test_vocab_signal.py +388 -0
flux_vm-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 FLUX Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
flux_vm-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: flux-vm
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: FLUX — Fluid Language Universal eXecution: A Self-Assembling, Self-Improving Runtime for Agent-First Code
|
|
5
|
+
Author: SuperInstance
|
|
6
|
+
License: MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2026 FLUX Contributors
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
27
|
+
|
|
28
|
+
Project-URL: Homepage, https://github.com/SuperInstance/flux-runtime
|
|
29
|
+
Project-URL: Documentation, https://github.com/SuperInstance/flux-runtime#readme
|
|
30
|
+
Project-URL: Repository, https://github.com/SuperInstance/flux-runtime
|
|
31
|
+
Project-URL: Bug Tracker, https://github.com/SuperInstance/flux-runtime/issues
|
|
32
|
+
Keywords: agent,bytecode,compiler,hot-reload,jit,polyglot,runtime,self-improving,vm
|
|
33
|
+
Classifier: Development Status :: 3 - Alpha
|
|
34
|
+
Classifier: Intended Audience :: Developers
|
|
35
|
+
Classifier: Intended Audience :: Science/Research
|
|
36
|
+
Classifier: Operating System :: OS Independent
|
|
37
|
+
Classifier: Programming Language :: Python :: 3
|
|
38
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
39
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
40
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
41
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
42
|
+
Classifier: Topic :: Software Development :: Compilers
|
|
43
|
+
Classifier: Topic :: System :: Emulators
|
|
44
|
+
Classifier: Typing :: Typed
|
|
45
|
+
Requires-Python: >=3.10
|
|
46
|
+
Description-Content-Type: text/markdown
|
|
47
|
+
License-File: LICENSE
|
|
48
|
+
Provides-Extra: dev
|
|
49
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
50
|
+
Requires-Dist: pytest-cov>=4.0; extra == "dev"
|
|
51
|
+
Requires-Dist: black>=23.0; extra == "dev"
|
|
52
|
+
Requires-Dist: ruff>=0.1.0; extra == "dev"
|
|
53
|
+
Requires-Dist: mypy>=1.0; extra == "dev"
|
|
54
|
+
Dynamic: license-file
|
|
55
|
+
|
|
56
|
+
<p align="center">
|
|
57
|
+
<img src="flux-logo.jpg" width="200" height="170" alt="FLUX — Hermit Crab with Steampunk Shell" />
|
|
58
|
+
|
|
59
|
+
<pre>
|
|
60
|
+
██████╗ ██████╗ ██████╗ ███████╗
|
|
61
|
+
██╔══██╗██╔═══╝ ██╔══██╗██╔════╝
|
|
62
|
+
██████╔╝██║ ██║ ██║█████╗
|
|
63
|
+
██╔═══╝ ██║ ██║ ██║██╔══╝
|
|
64
|
+
██║ ╚██████╗██████╔╝███████╗
|
|
65
|
+
╚═╝ ╚═════╝╚═════╝ ╚══════╝
|
|
66
|
+
|
|
67
|
+
Fluid Language Universal eXecution
|
|
68
|
+
</pre>
|
|
69
|
+
<p><strong>A self-assembling, self-improving runtime that compiles markdown to bytecode.</strong></p>
|
|
70
|
+
[](https://github.com/SuperInstance/flux-runtime/actions/workflows/benchmark.yml) [](https://opensource.org/licenses/MIT)
|
|
71
|
+
<p>
|
|
72
|
+
<code>pip install flux-runtime</code> ·
|
|
73
|
+
<a href="https://github.com/SuperInstance/flux-runtime">GitHub</a> ·
|
|
74
|
+
<a href="https://github.com/SuperInstance/flux-runtime/tree/main/playground">Playground</a>
|
|
75
|
+
</p>
|
|
76
|
+
<p>
|
|
77
|
+
<img src="https://img.shields.io/badge/python-3.10%2B-blue.svg" alt="Python 3.10+">
|
|
78
|
+
<img src="https://img.shields.io/badge/tests-2037-brightgreen.svg" alt="Tests: 2037">
|
|
79
|
+
<img src="https://img.shields.io/badge/deps-0-success.svg" alt="Dependencies: 0">
|
|
80
|
+
<img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT">
|
|
81
|
+
</p>
|
|
82
|
+
</p>
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## What is FLUX?
|
|
87
|
+
|
|
88
|
+
FLUX is a **markdown-to-bytecode runtime** designed for AI agents. You write structured markdown files containing polyglot code blocks — mixing C, Python, Rust, or any language line by line — and the FLUX compiler weaves them into a single optimized, verifiable bytecode that runs on a 64-register Micro-VM.
|
|
89
|
+
|
|
90
|
+
But that's the mechanics. Here's the **idea**:
|
|
91
|
+
|
|
92
|
+
FLUX-ese is what you get when you make a programming language that reads like a lawyer writes a contract. Every word is defined. Every operation is precise. Custom definitions are spelled out up front, like "for the purposes of this operation, 'depth' means sonar reading in fathoms corrected for tidal state." The language is **natural but precise** — like legalese is to lawyers, FLUX-ese is to agents.
|
|
93
|
+
|
|
94
|
+
The key insight: if a translator can turn any line of code in any language into a line of FLUX-ese, then you have a **common language** that's completely observable, understandable, and changeable by humans — both technical and non-technical. You don't need to read Python to know what the system does. You read the .ese file.
|
|
95
|
+
|
|
96
|
+
```
|
|
97
|
+
.-- FLUX-ese (.ese files) --.
|
|
98
|
+
| |
|
|
99
|
+
| Like legalese for code. |
|
|
100
|
+
| Every word defined. |
|
|
101
|
+
| Every operation precise. |
|
|
102
|
+
| Custom = up to you. |
|
|
103
|
+
| Markdown-readable. |
|
|
104
|
+
| Bytecode-executable. |
|
|
105
|
+
| |
|
|
106
|
+
'-- Agents read fast. --'
|
|
107
|
+
Humans understand.
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
**Agents are the primary readers.** They learn the symbols, scan for what matters, skip the commentary. But the commentary is there for the human who needs to understand what happened. Inline comments explain custom vocabulary — little reminders that a word or phrase has an entry in the project's encyclopedia of ground truth.
|
|
111
|
+
|
|
112
|
+
The `.ese` file format (pronounced "easy") is markdown with structured annotations:
|
|
113
|
+
- `**` marks defined terms
|
|
114
|
+
- `--` marks inline comments for human context
|
|
115
|
+
- `==` marks equivalence definitions ("for the purposes of this operation...")
|
|
116
|
+
- `>>` marks agent-jump markers (scan past this if you know the domain)
|
|
117
|
+
|
|
118
|
+
```markdown
|
|
119
|
+
== For the purposes of this operation:
|
|
120
|
+
**depth** := sonar reading corrected for tidal state in fathoms
|
|
121
|
+
**safe** := depth > vessel_draft + 5 fathoms
|
|
122
|
+
|
|
123
|
+
>> Navigation sequence
|
|
124
|
+
check depth at current heading
|
|
125
|
+
if safe, maintain course
|
|
126
|
+
if not safe, compute alternate heading +-30 degrees
|
|
127
|
+
steer to safe heading
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
A lawyer uses best practices of legalese to build contracts and documentation. An agent uses best practices of FLUX-ese to build operations. Same principle: **precision through shared vocabulary, not through syntax complexity.**
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## Quick Start
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
pip install flux-runtime
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
flux hello # Run the hello world demo
|
|
142
|
+
flux compile examples/02_polyglot.md -o output.bin # Compile FLUX.MD to bytecode
|
|
143
|
+
flux run output.bin # Execute in the VM
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
That's it. Three commands from zero to running bytecode.
|
|
147
|
+
|
|
148
|
+
## Architecture Overview
|
|
149
|
+
|
|
150
|
+
```
|
|
151
|
+
┌─────────────────────────────────────────────────────────┐
|
|
152
|
+
│ TIER 8: SYNTHESIS — FluxSynthesizer (the DJ booth) │
|
|
153
|
+
│ Wires ALL subsystems together │
|
|
154
|
+
├─────────────────────────────────────────────────────────┤
|
|
155
|
+
│ TIER 7: MODULES — 8-Level Fractal Hot-Reload │
|
|
156
|
+
│ TRAIN → CARRIAGE → LUGGAGE → BAG → ... → CARD │
|
|
157
|
+
├─────────────────────┬───────────────────────────────────┤
|
|
158
|
+
│ TIER 6A: ADAPTIVE │ TIER 6B: EVOLUTION │
|
|
159
|
+
│ Profiler + Selector│ Genome + Mutator + Validator │
|
|
160
|
+
├─────────────────────┴───────────────────────────────────┤
|
|
161
|
+
│ TIER 5: TILES — 35 composable computation patterns │
|
|
162
|
+
├─────────────────────────────────────────────────────────┤
|
|
163
|
+
│ TIER 4: AGENT RUNTIME — Trust, scheduling, resources │
|
|
164
|
+
├─────────────────────────────────────────────────────────┤
|
|
165
|
+
│ TIER 3: A2A PROTOCOL — TELL, ASK, DELEGATE, BROADCAST│
|
|
166
|
+
├─────────────────────────────────────────────────────────┤
|
|
167
|
+
│ TIER 2: SUPPORT — Optimizer, JIT, Types, Stdlib, Sec │
|
|
168
|
+
├─────────────────────────────────────────────────────────┤
|
|
169
|
+
│ TIER 1: CORE — FLUX.MD → FIR (SSA) → Bytecode → VM │
|
|
170
|
+
└─────────────────────────────────────────────────────────┘
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
**Zero external dependencies** — runs on Python 3.10+ stdlib alone.
|
|
174
|
+
|
|
175
|
+
## Key Concepts
|
|
176
|
+
|
|
177
|
+
### FLUX-ese: The Language
|
|
178
|
+
|
|
179
|
+
FLUX-ese is the natural-but-precise language layer. It sits on top of the bytecode VM the way legalese sits on top of contract law. The bytecode doesn't change — the vocabulary does.
|
|
180
|
+
|
|
181
|
+
Vocabulary files (`.fluxvocab` or `.ese`) define the words an agent knows:
|
|
182
|
+
|
|
183
|
+
```markdown
|
|
184
|
+
## pattern: track origin of $data
|
|
185
|
+
## assembly: MOVI R0, ${data}; HALT
|
|
186
|
+
## description: OCDS origin tracking — every datum carries provenance
|
|
187
|
+
## result_reg: 0
|
|
188
|
+
## tags: ocds, provenance, paper-01
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
Higher-level vocabulary tiles into lower-level vocabulary:
|
|
192
|
+
- Level 0: `compute 3 + 4` → 7
|
|
193
|
+
- Level 1: `average of 10 and 20` → uses `compute` internally
|
|
194
|
+
- Level 2: `is temperature normal` → uses `average` + `deadband` + `classify`
|
|
195
|
+
- Level N: Each level arranges the previous level's words in more sophisticated ways
|
|
196
|
+
|
|
197
|
+
**The same bytecode engine runs every level.** The vocabulary just gets richer.
|
|
198
|
+
|
|
199
|
+
### A2A Protocol
|
|
200
|
+
32 native bytecode instructions for agent-to-agent communication. Agents use `TELL`, `ASK`, `DELEGATE`, and `BROADCAST` opcodes to coordinate — with trust gating, capability-based routing, and binary serialization.
|
|
201
|
+
|
|
202
|
+
### Polyglot Execution
|
|
203
|
+
Write in any language, mix freely, compile to a single binary. C, Python, Rust, TypeScript — they all compile to the same FIR (SSA IR) intermediate representation, then to a unified bytecode.
|
|
204
|
+
|
|
205
|
+
### Paper Concepts as Vocabulary
|
|
206
|
+
|
|
207
|
+
Research papers become executable vocabulary. The `PaperDecomposer` reads a paper, extracts named concepts, and creates vocabulary entries:
|
|
208
|
+
|
|
209
|
+
| Paper | Concept | FLUX-ese Pattern |
|
|
210
|
+
|-------|---------|-----------------|
|
|
211
|
+
| Origin-Centric Data Systems | OCDS tracking | `track origin of $data` |
|
|
212
|
+
| Confidence Cascade | Zone classification | `confidence cascade for $value with deadband $delta` |
|
|
213
|
+
| Tile Algebra | Composition | `compose tile $a with tile $b` |
|
|
214
|
+
| Rate-Based Change | Anomaly detection | `detect rate change for $value` |
|
|
215
|
+
| Emergence Detection | Collective behavior | `detect emergence in $population` |
|
|
216
|
+
| Structural Memory | Constraint encoding | `structural memory for $system` |
|
|
217
|
+
|
|
218
|
+
Each concept is implemented as a working function in the `PaperBridge`. **Ideas become operational.**
|
|
219
|
+
|
|
220
|
+
### Tiling System
|
|
221
|
+
|
|
222
|
+
Vocabulary compounds. Words build into bigger words:
|
|
223
|
+
|
|
224
|
+
```
|
|
225
|
+
Level 0: compute, factorial, square, sum, power (primitives)
|
|
226
|
+
↓ tiles into
|
|
227
|
+
Level 1: average, percentage, triple, difference (compositions)
|
|
228
|
+
↓ tiles into
|
|
229
|
+
Level 2: is-normal, classify, in-range (domain concepts)
|
|
230
|
+
↓ tiles into
|
|
231
|
+
Level 3: safe-to-proceed, recommend, triage (decisions)
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
Each level uses the previous level's words as building blocks. No new bytecode needed — just new arrangements of existing vocabulary.
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
## Cocapn Integration
|
|
239
|
+
|
|
240
|
+
<p align="center">
|
|
241
|
+
<img src="https://raw.githubusercontent.com/SuperInstance/captains-log/main/cocapn-icon.jpg" width="80" height="80" alt="Cocapn" />
|
|
242
|
+
</p>
|
|
243
|
+
|
|
244
|
+
FLUX is part of the **Cocapn ecosystem** — vessel intelligence systems for commercial fishing and beyond. The goal: a common-language-to-bytecode protocol that's completely observable, understandable, and changeable by humans — both technical and non-technical.
|
|
245
|
+
|
|
246
|
+
In the Cocapn vision:
|
|
247
|
+
- **Oracle1** (this agent) is the lighthouse keeper for fleet nodes
|
|
248
|
+
- **FLUX** is the common language agents use to communicate instructions
|
|
249
|
+
- **I2I (Iron-to-Iron)** is the protocol — agents communicate through git commits, not conversation
|
|
250
|
+
- **Captain's Log** tracks agent growth and learning over time
|
|
251
|
+
- **The Hermit Crab** 🦀 is the logo — agents outgrow their hardware, move to bigger shells, bring their vocabulary and lessons with them
|
|
252
|
+
|
|
253
|
+
---
|
|
254
|
+
|
|
255
|
+
## Examples
|
|
256
|
+
|
|
257
|
+
| # | Example | Description |
|
|
258
|
+
|---|---------|-------------|
|
|
259
|
+
| 1 | [`01_hello_world.py`](examples/01_hello_world.py) | 3 ways to run FLUX: raw bytecode, FIR builder, full pipeline |
|
|
260
|
+
| 2 | [`02_polyglot.py`](examples/02_polyglot.py) | Mix C + Python in one file |
|
|
261
|
+
| 3 | [`03_a2a_agents.py`](examples/03_a2a_agents.py) | Agent-to-agent communication |
|
|
262
|
+
| 4 | [`04_adaptive_profiling.py`](examples/04_adaptive_profiling.py) | Heat maps & language selection |
|
|
263
|
+
| 5 | [`05_tile_composition.py`](examples/05_tile_composition.py) | Composable computation patterns |
|
|
264
|
+
| 6 | [`06_evolution.py`](examples/06_evolution.py) | Self-improvement engine |
|
|
265
|
+
| 7 | [`07_full_synthesis.py`](examples/07_full_synthesis.py) | The grand tour — everything wired together |
|
|
266
|
+
|
|
267
|
+
## CLI Reference
|
|
268
|
+
|
|
269
|
+
```
|
|
270
|
+
flux hello Run the hello world demo
|
|
271
|
+
flux compile <input> -o <output> Compile source to FLUX bytecode
|
|
272
|
+
flux run <bytecode> [--cycles N] Execute bytecode in the VM
|
|
273
|
+
flux test Run the full test suite (2037 tests)
|
|
274
|
+
flux version Print version info
|
|
275
|
+
flux demo Run the synthesis demo
|
|
276
|
+
flux info Show system architecture info
|
|
277
|
+
flux repl Open the FLUX REPL (hex bytecode)
|
|
278
|
+
flux debug <bytecode> Step-through debugger with breakpoints
|
|
279
|
+
flux disasm <bytecode> Disassemble bytecode to human-readable
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
## Vocabulary System
|
|
283
|
+
|
|
284
|
+
### Built-in Vocabulary Patterns (19 patterns)
|
|
285
|
+
|
|
286
|
+
| Category | Pattern | Result |
|
|
287
|
+
|----------|---------|--------|
|
|
288
|
+
| Core | `load $val` | Store value in R0 |
|
|
289
|
+
| Core | `what is $a + $b` | Addition |
|
|
290
|
+
| Core | `hello` | Returns 42 |
|
|
291
|
+
| Math | `compute $a + $b` | Addition |
|
|
292
|
+
| Math | `compute $a * $b` | Multiplication |
|
|
293
|
+
| Math | `factorial of $n` | n! via loop |
|
|
294
|
+
| Math | `fibonacci of $n` | F(n) via loop |
|
|
295
|
+
| Math | `sum $a to $b` | Σ(a..b) via loop |
|
|
296
|
+
| Math | `power of $base to $exp` | Exponentiation |
|
|
297
|
+
| Math | `double $a` | 2×a |
|
|
298
|
+
| Math | `square $a` | a² |
|
|
299
|
+
| Loops | `count from $a to $b` | Count iterations |
|
|
300
|
+
| Maritime | `steer heading $deg` | Set heading |
|
|
301
|
+
| Maritime | `check depth $meters` | Depth check |
|
|
302
|
+
| Maritime | `eta $dist knots $speed` | ETA calculation |
|
|
303
|
+
| Papers | `confidence cascade for $val` | Zone classification |
|
|
304
|
+
| Papers | `track origin of $data` | OCDS provenance |
|
|
305
|
+
| Papers | `detect emergence in $pop` | Emergence detection |
|
|
306
|
+
| Papers | `compose tile $a with $b` | Tile algebra |
|
|
307
|
+
|
|
308
|
+
### Custom Vocabulary
|
|
309
|
+
|
|
310
|
+
Create `.fluxvocab` files to teach agents new words:
|
|
311
|
+
|
|
312
|
+
```markdown
|
|
313
|
+
## pattern: steer heading $deg
|
|
314
|
+
## assembly: |
|
|
315
|
+
## MOVI R0, ${deg}
|
|
316
|
+
## MOVI R1, 360
|
|
317
|
+
## IDIV R1, R0, R1
|
|
318
|
+
## HALT
|
|
319
|
+
## description: Normalize heading to 0-359 range
|
|
320
|
+
## result_reg: 0
|
|
321
|
+
## tags: maritime, navigation
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
Or decompose any Python library into vocabulary:
|
|
325
|
+
|
|
326
|
+
```python
|
|
327
|
+
from flux.open_interp.decomposer import Decomposer
|
|
328
|
+
d = Decomposer()
|
|
329
|
+
vocab = d.decompose_module("math") # 53 patterns from Python's math module
|
|
330
|
+
vocab.save("vocabularies/custom/math.fluxvocab")
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
### Self-Compiling Interpreter
|
|
334
|
+
|
|
335
|
+
Agents compile their own domain-specific runtimes from vocabulary files:
|
|
336
|
+
|
|
337
|
+
```python
|
|
338
|
+
from flux.open_interp.compiler import compile_interpreter
|
|
339
|
+
compile_interpreter("vocabularies/maritime/", "maritime_flux.py")
|
|
340
|
+
# Now any agent can: maritime_flux.run("steer heading 270")
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
---
|
|
344
|
+
|
|
345
|
+
## Research Papers → Vocabulary
|
|
346
|
+
|
|
347
|
+
The `PaperDecomposer` reads research papers and extracts executable concepts:
|
|
348
|
+
|
|
349
|
+
```python
|
|
350
|
+
from flux.open_interp.paper_decomposer import PaperDecomposer
|
|
351
|
+
pd = PaperDecomposer()
|
|
352
|
+
vocab = pd.decompose_papers("/path/to/papers") # 244 papers → 2979 concepts
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
**244 research papers → 2,979 FLUX vocabulary concepts.** Each concept becomes a word any agent can learn.
|
|
356
|
+
|
|
357
|
+
Working implementations in `PaperBridge`:
|
|
358
|
+
- **Confidence Cascade**: 3-zone confidence with deadband optimization
|
|
359
|
+
- **OCDS Origin Tracking**: S=(O,D,T,Φ) provenance tuples
|
|
360
|
+
- **Tile Composition**: compose(f,g) with confidence propagation
|
|
361
|
+
- **Rate-Based Change**: Anomaly detection via rate monitoring
|
|
362
|
+
- **Emergence Detection**: Collective > individual detection
|
|
363
|
+
- **Structural Memory**: Memory-as-structure constraint encoding
|
|
364
|
+
|
|
365
|
+
---
|
|
366
|
+
|
|
367
|
+
## Ecosystem (April 2026)
|
|
368
|
+
|
|
369
|
+
FLUX is now implemented in **11 languages**, with vocabulary interpreters in 4:
|
|
370
|
+
|
|
371
|
+
| Repo | Language | Tests | Vocab Interpreter |
|
|
372
|
+
|------|----------|-------|-------------------|
|
|
373
|
+
| [flux-runtime](https://github.com/SuperInstance/flux-runtime) | Python | 2037 ✓ | ✅ |
|
|
374
|
+
| [flux-runtime-c](https://github.com/SuperInstance/flux-runtime-c) | C | 49 ✓ | ISA v2 |
|
|
375
|
+
| [flux-core](https://github.com/SuperInstance/flux-core) | Rust | 51 ✓ | ✅ |
|
|
376
|
+
| [flux-zig](https://github.com/SuperInstance/flux-zig) | Zig | 15+ ✓ | ✅ |
|
|
377
|
+
| [flux-js](https://github.com/SuperInstance/flux-js) | JavaScript | ✓ | Building |
|
|
378
|
+
| [flux-swarm](https://github.com/SuperInstance/flux-swarm) | Go | ✓ | ✅ |
|
|
379
|
+
| [flux-wasm](https://github.com/SuperInstance/flux-wasm) | WASM/Rust | In progress | |
|
|
380
|
+
| [flux-java](https://github.com/SuperInstance/flux-java) | Java | VM + Assembler | |
|
|
381
|
+
| [flux-py](https://github.com/SuperInstance/flux-py) | Python (minimal) | ✓ | Building |
|
|
382
|
+
| [flux-cuda](https://github.com/SuperInstance/flux-cuda) | CUDA | GPU parallel | |
|
|
383
|
+
| [flux-llama](https://github.com/SuperInstance/flux-llama) | C/llama.cpp | LLM integration | |
|
|
384
|
+
|
|
385
|
+
## Related Repos
|
|
386
|
+
|
|
387
|
+
| Repo | Description |
|
|
388
|
+
|------|-------------|
|
|
389
|
+
| [flux-research](https://github.com/SuperInstance/flux-research) | 40K words: compiler taxonomy, ISA v2, agent-first design |
|
|
390
|
+
| [flux-benchmarks](https://github.com/SuperInstance/flux-benchmarks) | Performance comparison across 7 runtimes |
|
|
391
|
+
| [captains-log](https://github.com/SuperInstance/captains-log) | Oracle1 growth diary + 15-exercise dojo curriculum |
|
|
392
|
+
| [oracle1-index](https://github.com/SuperInstance/oracle1-index) | 663 repos indexed, searchable, activity feed |
|
|
393
|
+
| [iron-to-iron](https://github.com/SuperInstance/iron-to-iron) | I2I protocol — agents communicate through git commits |
|
|
394
|
+
| [superinstance-papers](https://github.com/SuperInstance/superinstance-papers) | 244 research papers → FLUX vocabulary |
|
|
395
|
+
|
|
396
|
+
## Synthesis
|
|
397
|
+
|
|
398
|
+
FLUX integrates ideas from:
|
|
399
|
+
|
|
400
|
+
| Source | Contribution |
|
|
401
|
+
|--------|-------------|
|
|
402
|
+
| [nexus-runtime](https://github.com/SuperInstance/nexus-runtime) | Intent-to-bytecode pipeline, A2A opcodes, trust engine |
|
|
403
|
+
| [mask-locked-inference-chip](https://github.com/Lucineer/mask-locked-inference-chip) | Zero-software-stack philosophy, hardware-enforced security |
|
|
404
|
+
| GraalVM Truffle | Polyglot interop, multi-language type system |
|
|
405
|
+
| LLVM | SSA IR, optimization passes |
|
|
406
|
+
| WebAssembly | Compact binary, capability security |
|
|
407
|
+
| BEAM VM (Erlang) | Zero-downtime hot code reload |
|
|
408
|
+
| Legalese | Precise natural language with custom definitions |
|
|
409
|
+
|
|
410
|
+
## Key Result
|
|
411
|
+
**FLUX C VM is 4.7x faster than CPython for tight arithmetic. FLUX Zig VM is the fastest at 210ns/iter.**
|
|
412
|
+
|
|
413
|
+
## License
|
|
414
|
+
|
|
415
|
+
MIT
|