Local-first portable decision plugins and solver plugins
Project description
Rastion
Local-first optimization lab for decision plugins.
MVP Scope
- Core MVP is local-first: model, run, and inspect decision plugins on your own machine.
- Hub/community features are optional and can be added after local workflow is stable.
- User-facing artifact is the decision plugin (
spec.json+instances/+ metadata/card).
Install
Latest release:
pip install rastion
Run the app:
rastion
Agent-First Quickstart
Scaffold a Codex-friendly workspace:
rastion init-agent --path .
This creates:
AGENTS.mdwith a local-first optimization workflow policy.decision_plugins/calendar_week_off/starter files (half-day model).decision_plugins/calendar_week_off_30m/starter files (30-minute slots + fixed meeting blackout).agent_requests/*.jsonstructured requests forrastion agent-run.
Then run the starter template:
export RASTION_HOME=.rastion-home
rastion init-registry
rastion agent-run ./agent_requests/calendar_week_off_30m.json
To allow agent-orchestrated solver download fallback (trusted URL list in request JSON):
rastion agent-run ./agent_requests/calendar_week_off_30m_remote_solver.json
Talk To Your Optimization Lab
Use this prompt shape with your coding agent:
Convert this request into a Rastion decision plugin.
Goal: <what outcome you want>
Hard constraints: <must hold>
Soft preferences: <nice to have>
Horizon: <time window>
Timezone: <timezone>
Return: decision_plugins/<name>/spec.json, instances/default.json, and an agent_request JSON.
Then run:
rastion plugin install ./decision_plugins/<name> --overwrite
rastion info --verbose <name> default
rastion solve <name> default --solver auto --time-limit 30
Inspect state deterministically:
rastion plugin list --json
rastion plugin dev-list --path ./decision_plugins --json
rastion plugin status <name> --path ./decision_plugins --json
rastion runs list --json
Decision Plugin Workflow
Install a local plugin folder into your registry:
rastion plugin install ./decision_plugins/calendar_week_off_30m --overwrite
List installed plugins:
rastion plugin list
List local workspace plugins (not yet installed):
rastion plugin dev-list --path ./decision_plugins
View run history:
rastion runs list
Push a plugin to Rastion Hub:
rastion login
rastion plugin push ./decision_plugins/calendar_week_off_30m
Search and pull from Rastion Hub:
rastion plugin search calendar
rastion plugin pull calendar_week_off_30m --overwrite
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rastion-0.1.2.tar.gz.
File metadata
- Download URL: rastion-0.1.2.tar.gz
- Upload date:
- Size: 82.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6275485cf21327c4aed1e84c9333fd157c0d34dae8aca7184ff5c7114146e23
|
|
| MD5 |
a54c56bf6abcfd005029845ae8aef4e6
|
|
| BLAKE2b-256 |
6a049df0f7af574ee9ed565a56d29e5920700070947ce5438199c6fd6e6230e9
|
File details
Details for the file rastion-0.1.2-py3-none-any.whl.
File metadata
- Download URL: rastion-0.1.2-py3-none-any.whl
- Upload date:
- Size: 76.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3437bac0306a2513db45e8a09d02c3b9d1d0695d45f265b53a170cf21c11bbf6
|
|
| MD5 |
fdeaa83f303ad2b7004511e0e1c91001
|
|
| BLAKE2b-256 |
552cf652f5346206ac099b5e0a6e79d92eac9f1102e18b7e126f459b688e9d42
|