Kanonik Core
Find the places where your BPMN models and your code no longer agree – before production does.
A job type with a typo. A worker that was switched off and never switched on again. A decision table the process
calls but nobody deployed. A process variable spelled mitarbeiterID in one class and mitarbeiterId in another.
None of this breaks the build, the unit tests usually pass, and reviewers rarely read BPMN XML. In production the
instance just stops.
Kanonik Core reads your repository – BPMN, DMN and code – and lists every such mismatch with the file and place to fix. It runs locally or in CI, needs no access to a Camunda cluster, uses no AI and sends no data anywhere. Same input, same result.
See it in 30 seconds
pip install kanonik-core
git clone https://github.com/der-weisse-schwan/kanonik-core && cd kanonik-core # for the examples
kanonik-pruefen --repo examples/kreditantrag
# BPMN ↔ code: findings
4 findings · 1 process and 3 decisions in the models · 2 classes in the code
| Rule | Findings | What happens in production |
|-------------------------|----------|---------------------------------------------------------|
| Job without worker | 1 | Instances get stuck at this step. |
| Variable name mismatch | 1 | The value never arrives; decisions work with empty data.|
| Decision missing | 1 | The business rule task fails at runtime. |
| Decision never called | 1 | Outdated rule – or a call is missing. |
## Job without worker
- B03 Job notify-customer has no worker (missing, fix in: code)
'Kunden benachrichtigen' (kreditantrag.bpmn) expects a worker for the job type notify-customer; no code
handles it – the process stops at this point. A worker for it is disabled (enabled = false):
KreditWorker.notifyCustomer.
The full report: examples/kreditantrag/expected/findings.md.
What it finds
| Finding | Example | In production |
|---|---|---|
| Job without worker | the model expects ship-goods, no worker handles it (or it is disabled) |
instances get stuck |
| Worker without model | a worker for refund-payment that no model uses |
dead code – or a typo on one side |
| Process start without model | code starts bestellung-v2, the model is bestellung |
every start fails |
| Message without sender | the process waits for PaymentReceived, nobody sends it |
instances wait forever |
| Variable name mismatch | remaimingAmount read, remainingAmount written (also case: ID vs Id) |
the value never arrives |
| Decision missing | a business rule task calls a decision no DMN file contains | the step fails |
| Decision never called | a decision in a DMN file that nothing calls | outdated rule – or a forgotten call |
| Placeholder instead of logic | an empty worker, a gateway that always takes the same path | results silently missing |
| Naming mismatch | task “Send receipt” sends the message InvoiceSent |
model and code mean different things |
| Hard-coded data | a REST endpoint that ignores its input and sends fixed values | every call sends the same data |
| Model not readable | a BPMN/DMN file that is not valid XML | cannot be deployed |
Measured on public projects (camunda-8-examples, camunda-bpm-examples, Camunda Marketplace blueprints with code): every finding was a real defect, no false alarms; nearly all deliberately planted defects were found (details).
Try it on your project
pip install kanonik-core # Python 3.10 or newer
kanonik-pruefen --repo path/to/your-project # report: ./kanonik-befunde/befunde.md (and befunde.json)
Options: --sprache de for a German report, --out <folder>, --dienst name=path (several times) for a repository
with several services, --streng to exit with code 1 when there are findings.
Use it in CI
GitHub Actions
name: Kanonik
on: [pull_request]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: der-weisse-schwan/kanonik-core@v0.4.3
Every finding appears as an annotation on the changed file in the pull request – on the BPMN element or the Java
method –, the full report lands in the job summary and as artifact kanonik-befunde.
| Input | Default | Meaning |
|---|---|---|
path |
. |
folder to check |
language |
en |
report and annotations in en or de |
fail-on |
error |
fail on findings that break at runtime (error), on any finding (warning) or never |
services |
– | one name=path per line for a repository with several services |
upload-sarif |
false |
also send the findings to GitHub Code Scanning (needs security-events: write; private repositories need GitHub Advanced Security) |
upload-report |
true |
upload the report folder as artifact |
Outputs: findings, errors, report, sarif.
Any other CI
pip install kanonik-core
kanonik-pruefen --repo . --streng # exit code 1 when there are findings
The report folder kanonik-befunde/ contains befunde.md (for people), befunde.json (for scripts; each finding has
a stable key schluessel, so runs can be compared) and befunde.sarif (SARIF 2.1.0 for code scanning tools and IDEs).
Examples
Four fictitious projects with planted defects – each runs in seconds (overview):
| Example | Stack | Shows |
|---|---|---|
| Credit application | Camunda 8, DMN, Java and Go workers | decisions checked against process and code |
| Online order | Camunda 8, Spring Boot microservices | the full range of checks |
| Leave request | Camunda 7, Spring delegates | Camunda 7 support |
| Library interface | WSDL/XSD, code lists, glossary | which glossary terms the interface really contains |
The second tool: glossary ↔ interface
Business and IT often use different words for the same thing. kanonik-kg reads your interfaces (WSDL/XSD, OpenAPI,
AsyncAPI, JSON Schema) and your glossary (CSV, YAML or JSON) and shows which terms the interface really contains,
which terms are missing and which fields have no agreed term – plus the interface as a graph with SHACL shapes. The graph is written as CSV and Cypher; to load it straight into Neo4j
(--neo4j-uri), install the driver with pip install "kanonik-core[neo4j]".
kanonik-kg run --wsdl examples/bibliothek-schnittstelle/dienste --codelists examples/bibliothek-schnittstelle/codelisten \
--glossar examples/bibliothek-schnittstelle/glossar.csv --out out/
Report: examples/bibliothek-schnittstelle/expected/glossary.md
(--sprache de for German). Details: kg/README.md.
What it reads
- Camunda 8: Spring
@JobWorker(with or withouttype,enabled = false), Java client.jobType(…), workers in Go, C#, Node and Python (job type), execution and task listeners, connectors (element templates,io.camunda:…), business rule tasks and DMN. - Camunda 7:
JavaDelegateand listeners (class,${bean},${bean.method(…)}), external tasks,decisionRef. - Code: Java (Spring, Kafka, REST), process variables, messages, process starts.
Limits
- The code is read as text, not compiled. Job types computed at runtime (
type="=variable") cannot be checked. - Workers in languages other than Java are recognised by their job type only.
- Names in the models (task names, ids) appear in the report as written; rule keys and some identifiers are German
(
job_ohne_worker) – the report shows an English name next to them.
FAQ
Does it need my Camunda cluster or credentials? No. It only reads files in the repository.
Does it send code anywhere or use an LLM? No. Everything runs locally and deterministically.
What if a finding is intended? Thresholds and word lists are configurable (python -m kanonik.annahmen); each
finding has a stable key you can filter on in CI.
How does it relate to Kanonik? Kanonik Core is the open part of Kanonik. Kanonik additionally checks models, code and interfaces against the business specification itself – which requirement is implemented where, and what is missing.
More
- Technical reference: bpmn_code/README.md (rules, readers, measurement), kg/README.md (interfaces, glossary, graph)
- CHANGELOG.md · CONTRIBUTING.md · SECURITY.md · NOTICE
- Deutsch: README.de.md
License: Apache-2.0 (LICENSE).
Metadata
Release files for kanonik-core 0.4.3
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 | Actions |
|---|---|---|---|---|
| kanonik_core-0.4.3.tar.gz | 137.6 kB | With provenance | Details for kanonik_core-0.4.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kanonik_core-0.4.3-py3-none-any.whl | Python 3 | none | any | Details for kanonik_core-0.4.3-py3-none-any.whl |
Total release size: 290.4 kB
Release files / kanonik_core-0.4.3.tar.gz
| Download URL | kanonik_core-0.4.3.tar.gz |
|---|---|
| Size | 137.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6c12219ac6a0eedfa57a28eb21dd28808e56b305b93f3617669c462f6d2960d
|
|
BLAKE2b-256 checksum How to use checksums |
c274fa3e5540b004a9a637875d3f4ac4bf9f7df8e26cafaef5fb7b4cfc134a25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / kanonik_core-0.4.3-py3-none-any.whl
| Download URL | kanonik_core-0.4.3-py3-none-any.whl |
|---|---|
| Size | 152.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
85c5f5723a47ddb51bc13c3b536c6fda658e12d1e11cb7a6728cecd7f0f4e216
|
|
BLAKE2b-256 checksum How to use checksums |
4ae50762095e560460c772c45c5d211b3582e80647f5418c8618e81f2d6a162f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for kanonik-core 0.4.3
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for kanonik_core-0.4.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA 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.