How hedaas-code/pyvdisk works
PyVDisk is a single-machine data and execution platform centered on a unified DataDisk image, with VScript as its safe workflow language. The main user path is an application, CLI, or agent using the API to access a DataDisk; scripts can be parsed and run through VScript, while storage, transaction recovery, execution queues, and capability checks provide supporting services. README statements establish the broad product relationships; source-index references and excerpts support the indicated VScript and storage-layer calls. Unsampled subsystem internals are represented at their documented boundaries.
Main entry points: disk.py DataDisk · runtime.py Interpreter · execution.py ExecutionService · cli.py CLI
Components 25
Interfaces and governance
- CLI
pyvdisk/cli.py - AgentSandbox
pyvdisk/sandbox.py - Scoped capabilities
pyvdisk/infrastructure/capabilities.py - Execution contracts
pyvdisk/contracts.py
DataDisk storage
- DataDisk
pyvdisk/infrastructure/disk.py - Path filesystem
pyvdisk/vfs.py - Virtual filesystem
pyvdisk/fs.py - Block image
pyvdisk/disk.py - Volume / mirror
pyvdisk/volume.py - Vector memory
pyvdisk/vector_disk.py - Event log
pyvdisk/log_disk.py - Write-ahead log
pyvdisk/infrastructure/wal.py - Checkpoints
pyvdisk/infrastructure/checkpoint.py
Durable execution
- ExecutionService
pyvdisk/execution.py - Durable queue
pyvdisk/infrastructure/queue.py - Operation records
pyvdisk/infrastructure/operations.py - Run state
pyvdisk/infrastructure/run_state.py
VScript runtime
- Lexer
pyvdisk/vscript/lexer.py - Parser / AST
pyvdisk/vscript/parser.py - Interpreter
pyvdisk/vscript/runtime.py - Capability stdlib
pyvdisk/vscript/stdlib.py - Host access
pyvdisk/vscript/host.py - Audit records
pyvdisk/vscript/audit.py - Cron / triggers
pyvdisk/vscript/cron.py
Other components
- Application / agent
Connections 27
- Application / agent → CLI: invokes
README.md - Application / agent → AgentSandbox: uses tools
README.md - AgentSandbox → Scoped capabilities: scopes access
pyvdisk/sandbox.py - AgentSandbox → DataDisk: wraps
README.md - CLI → DataDisk: opens image
pyvdisk/cli.py - CLI → Interpreter: runs scripts
pyvdisk/cli.py - DataDisk → Path filesystem: uses
pyvdisk/infrastructure/disk.py - DataDisk → Vector memory: uses
pyvdisk/infrastructure/disk.py - DataDisk → Event log: uses
pyvdisk/infrastructure/disk.py - Path filesystem → Virtual filesystem: delegates
pyvdisk/vfs.py - Virtual filesystem → Block image: reads / writes
pyvdisk/fs.py - Path filesystem → Volume / mirror: opens volume
pyvdisk/vfs.py - DataDisk → Write-ahead log: records transactions
pyvdisk/infrastructure/disk.py - DataDisk → Checkpoints: uses checkpoints
pyvdisk/infrastructure/disk.py - ExecutionService → Durable queue: dispatches work
README.md - ExecutionService → Operation records: tracks operations
README.md - ExecutionService → Run state: updates state
README.md - ExecutionService → Scoped capabilities: checks access
pyvdisk/execution.py - Lexer → Parser / AST: provides tokens
pyvdisk/vscript/parser.py - Interpreter → Parser / AST: parses source
pyvdisk/vscript/runtime.py - Interpreter → Capability stdlib: calls native functions
pyvdisk/vscript/runtime.py - Capability stdlib → Host access: creates host module
pyvdisk/vscript/stdlib.py - Interpreter → Audit records: emits run record
pyvdisk/vscript/runtime.py - Interpreter → Write-ahead log: uses shared WAL
README.md - Cron / triggers → Interpreter: schedules scripts
- Application / agent → DataDisk: uses Python API
README.md - DataDisk → Scoped capabilities: offers scoped access
README.md