law-benefit-score/module.yaml
flemming-it 3c2c46f72d
All checks were successful
CI / Linux x86_64 (Forgejo) (push) Successful in 1m38s
fix(naming): dash capability ID (chain catalog charset [a-z0-9-])
provides.capability _ -> - so it passes `chain validate` and the hub
store name-match. No behaviour change (capability validation is lint-only;
the WASM is unchanged).

Signed-off-by: flemming-it <sf@flemming.it>
2026-06-20 00:12:05 +02:00

44 lines
1.3 KiB
YAML

schema_version: 3
provider: chain
name: law-benefit-score
version: 0.1.0
# 7-dimensional benefit score: Schutz/Markt/Rechtssicherheit/
# EU-Binnenmarkt/Sicherheit/Umwelt/Einnahmen — each 0..5.
#
# This is the ONE genuinely domain-bound module — the seven
# dimensions are juristisch-politisch konventioniert. It lives
# in `chain-modules-law/` once the org exists.
#
# v0.1.0 ships a simple uniform-input scorer: the flow supplies
# expert ratings; this module aggregates + normalises. v0.2
# integrates with `llm.chat` proposals + Juristen-review.
provides:
- capability: law.benefit-score
version: 0.1.0
inputs:
ratings:
type: json
description:
en: |
{ schutz, markt, rechtssicherheit, eu_binnenmarkt,
sicherheit, umwelt, einnahmen } — each 0..5.
Source field per dimension is recommended for the audit
log; pass `_sources: {dimension: source_label}` to surface
in the output report.
de: |
Bewertungen pro Dimension (0..5) + optional _sources.
outputs:
score:
type: json
description:
en: |
{ dimensions, total: 0..5, dispersion,
sources: {dimension: source_label?} }.
de: |
{ dimensions, total: 0..5, dispersion,
sources: {dimension: source_label?} }.
permissions: []