JSONLLM Kernel
Deterministic event-sourced kernel for modular LLM automation.
LLM ingress -> strict events -> deterministic module policy/planner/executor -> append-only JSONL
What this is
- A kernel that enforces deterministic invariants (schema, lineage, provenance, idempotency).
- A module system where third parties implement domain logic.
- A self-serve workflow to scaffold and validate modules without maintainer support.
Core guarantees
- LLM only emits
IntentNormalized(module_id=kernel.ingress). - Side effects run only in deterministic workers.
- Mandatory lineage:
IntentNormalized -> IntentAccepted/Rejected -> ActionProposed -> ActionOutcome. ActionProposed.action_idmust be allowlisted.actorauthority andmodule_idprovenance are validated.
Repository layout
src/event_pipeline.py: CLI orchestratorsrc/jsonllm_kernel/contracts.py: event/config contractssrc/jsonllm_kernel/module_api.py: module SDK (BaseModule, types)src/jsonllm_kernel/module_loader.py:module.tomlloader/validatorsrc/jsonllm_kernel/scaffold.py: module scaffolding templatessrc/jsonllm_kernel/conformance.py: module conformance suitesrc/jsonllm_kernel/project_init.py: workspace bootstrap from packaged templatessrc/jsonllm_kernel/templates/: packaged default catalog and modulesmodules/: example modulescatalog/: allowlist + security configs
Install
python3 -m pip install -r requirements.txt
export OPENAI_API_KEY="your_key"
Or install as package/CLI:
python3 -m pip install -e .
jsonllm --help
Start in a brand-new directory
mkdir /tmp/my-jsonllm-workspace
jsonllm init-project /tmp/my-jsonllm-workspace
jsonllm --workspace /tmp/my-jsonllm-workspace list-modules
--workspace (or env JSONLLM_WORKSPACE) controls where catalog/, modules/, and data/ are read/written.
CLI
jsonllm --workspace /path/to/workspace list-modules
jsonllm --workspace /path/to/workspace init-module my_domain
jsonllm --workspace /path/to/workspace test-module --module-id my_domain
jsonllm --workspace /path/to/workspace new-intent --request-text "..." --aggregate-id req-1
jsonllm --workspace /path/to/workspace run-policy
jsonllm --workspace /path/to/workspace run-planner
jsonllm --workspace /path/to/workspace run-executor
Equivalent while developing in this repo:
python3 src/event_pipeline.py --workspace . list-modules
Module self-serve workflow
- Scaffold module:
jsonllm --workspace /path/to/workspace init-module my_domain
- Implement
policy/plan/executeinmodules/my_domain/module.py. - Update
modules/my_domain/module.toml(intents/actions/permissions). - Ensure actions are in
catalog/allowed-actions.json. - Run conformance:
jsonllm --workspace /path/to/workspace test-module --module-id my_domain
- Run end-to-end pipeline.
Compatibility and standards
- Module API version is declared by
module_api_versioninmodule.toml. - Loader rejects incompatible module API versions.
- See:
docs/MODULE_COMPATIBILITY.mddocs/MODULE_COOKBOOK.md
Example modules
modules/core_builtin: generic routes for search/extraction/classification.modules/math_sum: tangible deterministic computation (math.sum.v1) writing outputs todata/outputs/.
Metadata
Release files for jsonllm-kernel 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| jsonllm_kernel-0.1.1.tar.gz | 20.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jsonllm_kernel-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 45.1 kB
Release files / jsonllm_kernel-0.1.1.tar.gz
| Download URL | jsonllm_kernel-0.1.1.tar.gz |
|---|---|
| Size | 20.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab7976970d98e8cecd3bdc0e77eafc2246d1e9588c389a0c9747aca4802c1cac
|
|
BLAKE2b-256 checksum How to use checksums |
b9089cb1988f7fb6822c3ce605912789cb7b875614b14ccd6f7dc244024e9a07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Release files / jsonllm_kernel-0.1.1-py3-none-any.whl
| Download URL | jsonllm_kernel-0.1.1-py3-none-any.whl |
|---|---|
| Size | 25.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
747e170ca8497f69eb135cec4e498d5fd3f3fab2f855f161efa3be087e76eeb2
|
|
BLAKE2b-256 checksum How to use checksums |
b424fd86faa5b1b64ad2f60799812946fc7ca303901b6fcbfbfe0b0d7f4c3de2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Security for jsonllm-kernel 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.