kamanu 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- kamanu-0.1.0/LICENSE +201 -0
- kamanu-0.1.0/PKG-INFO +215 -0
- kamanu-0.1.0/README.md +185 -0
- kamanu-0.1.0/RECORDS-LICENSE +36 -0
- kamanu-0.1.0/kamanu/__init__.py +2 -0
- kamanu-0.1.0/kamanu/adapters/__init__.py +1 -0
- kamanu-0.1.0/kamanu/adapters/dogwood.py +489 -0
- kamanu-0.1.0/kamanu/adapters/redis.py +1316 -0
- kamanu-0.1.0/kamanu/adapters/rego.py +815 -0
- kamanu-0.1.0/kamanu/admit.py +156 -0
- kamanu-0.1.0/kamanu/apalache.py +426 -0
- kamanu-0.1.0/kamanu/assay/__init__.py +44 -0
- kamanu-0.1.0/kamanu/assay/card.py +165 -0
- kamanu-0.1.0/kamanu/assay/claims.py +529 -0
- kamanu-0.1.0/kamanu/assay/cli.py +358 -0
- kamanu-0.1.0/kamanu/assay/documented.py +436 -0
- kamanu-0.1.0/kamanu/assay/ed25519.py +130 -0
- kamanu-0.1.0/kamanu/assay/hallmark.py +220 -0
- kamanu-0.1.0/kamanu/assay/hallmark.schema.json +114 -0
- kamanu-0.1.0/kamanu/assay/mint.py +175 -0
- kamanu-0.1.0/kamanu/assay/pyx.py +204 -0
- kamanu-0.1.0/kamanu/assay/record.py +182 -0
- kamanu-0.1.0/kamanu/assay/registry.py +421 -0
- kamanu-0.1.0/kamanu/assay/verifier_js.py +223 -0
- kamanu-0.1.0/kamanu/assay/verify.py +147 -0
- kamanu-0.1.0/kamanu/cabinet/__init__.py +54 -0
- kamanu-0.1.0/kamanu/cabinet/census.py +298 -0
- kamanu-0.1.0/kamanu/cabinet/chain.py +210 -0
- kamanu-0.1.0/kamanu/cabinet/cli.py +477 -0
- kamanu-0.1.0/kamanu/cabinet/plates.py +184 -0
- kamanu-0.1.0/kamanu/cabinet/readings.py +529 -0
- kamanu-0.1.0/kamanu/cli.py +1514 -0
- kamanu-0.1.0/kamanu/coach.py +226 -0
- kamanu-0.1.0/kamanu/coach_mcp.py +168 -0
- kamanu-0.1.0/kamanu/coach_middleware.py +68 -0
- kamanu-0.1.0/kamanu/connector/__init__.py +5 -0
- kamanu-0.1.0/kamanu/connector/assess.py +154 -0
- kamanu-0.1.0/kamanu/connector/cli.py +190 -0
- kamanu-0.1.0/kamanu/connector/harness.py +621 -0
- kamanu-0.1.0/kamanu/connector/weigh.py +128 -0
- kamanu-0.1.0/kamanu/data/__init__.py +99 -0
- kamanu-0.1.0/kamanu/data/__main__.py +29 -0
- kamanu-0.1.0/kamanu/data/ladder/r17/lint_table.json +10924 -0
- kamanu-0.1.0/kamanu/data/ladder/r4b/report.json +18 -0
- kamanu-0.1.0/kamanu/data/ladder/r6b/calibration.json +23379 -0
- kamanu-0.1.0/kamanu/data/levels/links.json +245 -0
- kamanu-0.1.0/kamanu/emit.py +227 -0
- kamanu-0.1.0/kamanu/evidence/__init__.py +1 -0
- kamanu-0.1.0/kamanu/evidence/crosscheck.py +236 -0
- kamanu-0.1.0/kamanu/evidence/fsm.py +600 -0
- kamanu-0.1.0/kamanu/evidence/joern.py +293 -0
- kamanu-0.1.0/kamanu/evidence/joern_js.py +212 -0
- kamanu-0.1.0/kamanu/evidence/premises.py +345 -0
- kamanu-0.1.0/kamanu/examples/__init__.py +30 -0
- kamanu-0.1.0/kamanu/examples/dogwood/policy.dw +17 -0
- kamanu-0.1.0/kamanu/examples/dogwood/schema.cedarschema +31 -0
- kamanu-0.1.0/kamanu/fair.py +143 -0
- kamanu-0.1.0/kamanu/fast/__init__.py +1347 -0
- kamanu-0.1.0/kamanu/fast/budget.py +269 -0
- kamanu-0.1.0/kamanu/fast/card.py +215 -0
- kamanu-0.1.0/kamanu/fast/certify.py +328 -0
- kamanu-0.1.0/kamanu/fast/cli.py +504 -0
- kamanu-0.1.0/kamanu/fast/confirm.py +203 -0
- kamanu-0.1.0/kamanu/fast/conformance.py +266 -0
- kamanu-0.1.0/kamanu/fast/corpus.py +158 -0
- kamanu-0.1.0/kamanu/fast/credit.py +528 -0
- kamanu-0.1.0/kamanu/fast/designs.py +146 -0
- kamanu-0.1.0/kamanu/fast/diff.py +160 -0
- kamanu-0.1.0/kamanu/fast/engine.py +190 -0
- kamanu-0.1.0/kamanu/fast/evidence.py +126 -0
- kamanu-0.1.0/kamanu/fast/exposure.py +149 -0
- kamanu-0.1.0/kamanu/fast/findings.py +521 -0
- kamanu-0.1.0/kamanu/fast/gen.py +540 -0
- kamanu-0.1.0/kamanu/fast/graph.py +184 -0
- kamanu-0.1.0/kamanu/fast/ir.py +2684 -0
- kamanu-0.1.0/kamanu/fast/kinds.py +296 -0
- kamanu-0.1.0/kamanu/fast/ledger.py +393 -0
- kamanu-0.1.0/kamanu/fast/level.py +142 -0
- kamanu-0.1.0/kamanu/fast/machine.py +478 -0
- kamanu-0.1.0/kamanu/fast/native.py +287 -0
- kamanu-0.1.0/kamanu/fast/normalize.py +616 -0
- kamanu-0.1.0/kamanu/fast/oracle.py +502 -0
- kamanu-0.1.0/kamanu/fast/rules.py +885 -0
- kamanu-0.1.0/kamanu/fast/shape.py +211 -0
- kamanu-0.1.0/kamanu/fast/shapes.py +148 -0
- kamanu-0.1.0/kamanu/fast/share.py +38 -0
- kamanu-0.1.0/kamanu/fast/step_gen.py +168 -0
- kamanu-0.1.0/kamanu/fast/table.py +1240 -0
- kamanu-0.1.0/kamanu/fg/__init__.py +1 -0
- kamanu-0.1.0/kamanu/fg/decompose.py +187 -0
- kamanu-0.1.0/kamanu/fg/forecast.py +238 -0
- kamanu-0.1.0/kamanu/fg/params.py +175 -0
- kamanu-0.1.0/kamanu/fg/profile.py +219 -0
- kamanu-0.1.0/kamanu/frontends/__init__.py +265 -0
- kamanu-0.1.0/kamanu/frontends/envoy_ai_gateway.py +88 -0
- kamanu-0.1.0/kamanu/frontends/issuing.py +208 -0
- kamanu-0.1.0/kamanu/frontends/litellm.py +48 -0
- kamanu-0.1.0/kamanu/gen.py +79 -0
- kamanu-0.1.0/kamanu/guard.py +96 -0
- kamanu-0.1.0/kamanu/guard_forecast.py +312 -0
- kamanu-0.1.0/kamanu/hunt/__init__.py +537 -0
- kamanu-0.1.0/kamanu/hunt/__main__.py +164 -0
- kamanu-0.1.0/kamanu/hunt/adapters/agentcore.py +534 -0
- kamanu-0.1.0/kamanu/hunt/adapters/dogwood_local.py +182 -0
- kamanu-0.1.0/kamanu/hunt/adapters/kong.py +331 -0
- kamanu-0.1.0/kamanu/hunt/adapters/litellm.py +427 -0
- kamanu-0.1.0/kamanu/hunt/adapters/mock_upstream.py +120 -0
- kamanu-0.1.0/kamanu/hunt/adapters/redis_common.py +119 -0
- kamanu-0.1.0/kamanu/hunt/adapters/redis_python_limits.py +104 -0
- kamanu-0.1.0/kamanu/hunt/adapters/redis_sliding_log.py +86 -0
- kamanu-0.1.0/kamanu/hunt/cli.py +939 -0
- kamanu-0.1.0/kamanu/hunt/consistency.py +552 -0
- kamanu-0.1.0/kamanu/hunt/debruijn.py +136 -0
- kamanu-0.1.0/kamanu/hunt/dogwood.py +167 -0
- kamanu-0.1.0/kamanu/hunt/examples.py +903 -0
- kamanu-0.1.0/kamanu/hunt/freeze.py +319 -0
- kamanu-0.1.0/kamanu/hunt/limits.py +629 -0
- kamanu-0.1.0/kamanu/hunt/matrix.py +410 -0
- kamanu-0.1.0/kamanu/hunt/probes_split.py +29 -0
- kamanu-0.1.0/kamanu/hunt/profiles/dogwood-1.1.1.json +36 -0
- kamanu-0.1.0/kamanu/hunt/reference.py +52 -0
- kamanu-0.1.0/kamanu/hunt/reread.py +111 -0
- kamanu-0.1.0/kamanu/hunt/row.py +1844 -0
- kamanu-0.1.0/kamanu/hunt/scope.py +361 -0
- kamanu-0.1.0/kamanu/hunt/space.py +481 -0
- kamanu-0.1.0/kamanu/integrations/__init__.py +1 -0
- kamanu-0.1.0/kamanu/integrations/strands.py +108 -0
- kamanu-0.1.0/kamanu/intent/__init__.py +1 -0
- kamanu-0.1.0/kamanu/intent/disagree.py +147 -0
- kamanu-0.1.0/kamanu/intent/implied.py +173 -0
- kamanu-0.1.0/kamanu/intent/questions.py +343 -0
- kamanu-0.1.0/kamanu/intent/templates/__init__.py +127 -0
- kamanu-0.1.0/kamanu/ladder/__init__.py +1 -0
- kamanu-0.1.0/kamanu/ladder/calibrate.py +1030 -0
- kamanu-0.1.0/kamanu/ladder/coachmodel.py +171 -0
- kamanu-0.1.0/kamanu/ladder/derive.py +725 -0
- kamanu-0.1.0/kamanu/ladder/emit_dogwood.py +505 -0
- kamanu-0.1.0/kamanu/ladder/fix.py +1918 -0
- kamanu-0.1.0/kamanu/ladder/grammar.py +116 -0
- kamanu-0.1.0/kamanu/ladder/grid.py +470 -0
- kamanu-0.1.0/kamanu/ladder/itf.py +214 -0
- kamanu-0.1.0/kamanu/ladder/ledger.py +89 -0
- kamanu-0.1.0/kamanu/ladder/record.py +649 -0
- kamanu-0.1.0/kamanu/ladder/reduce.py +314 -0
- kamanu-0.1.0/kamanu/ladder/scorecard.py +1085 -0
- kamanu-0.1.0/kamanu/ladder/sim/__init__.py +386 -0
- kamanu-0.1.0/kamanu/ladder/single_writer_probe.py +333 -0
- kamanu-0.1.0/kamanu/ladder/split.py +333 -0
- kamanu-0.1.0/kamanu/ladder/staleness.py +813 -0
- kamanu-0.1.0/kamanu/ladder/story.py +477 -0
- kamanu-0.1.0/kamanu/ladder/stranded.py +124 -0
- kamanu-0.1.0/kamanu/ladder/undecided.py +458 -0
- kamanu-0.1.0/kamanu/ladder/wire.py +310 -0
- kamanu-0.1.0/kamanu/ladder/witness.py +576 -0
- kamanu-0.1.0/kamanu/ladder/writers/__init__.py +135 -0
- kamanu-0.1.0/kamanu/ladder/writers/agentcore.py +135 -0
- kamanu-0.1.0/kamanu/ladder/writers/dle.py +99 -0
- kamanu-0.1.0/kamanu/ladder/writers/docker.py +59 -0
- kamanu-0.1.0/kamanu/ladder/writers/kong.py +74 -0
- kamanu-0.1.0/kamanu/ladder/writers/limits.py +104 -0
- kamanu-0.1.0/kamanu/ladder/writers/litellm.py +83 -0
- kamanu-0.1.0/kamanu/ledgers/__init__.py +3 -0
- kamanu-0.1.0/kamanu/ledgers/check.py +176 -0
- kamanu-0.1.0/kamanu/ledgers/grid.py +166 -0
- kamanu-0.1.0/kamanu/levels.py +382 -0
- kamanu-0.1.0/kamanu/lint.py +488 -0
- kamanu-0.1.0/kamanu/lint_mcp.py +145 -0
- kamanu-0.1.0/kamanu/mcp_cli.py +66 -0
- kamanu-0.1.0/kamanu/mcp_server.py +556 -0
- kamanu-0.1.0/kamanu/mirror.py +248 -0
- kamanu-0.1.0/kamanu/mirror_ext.py +114 -0
- kamanu-0.1.0/kamanu/probe.py +132 -0
- kamanu-0.1.0/kamanu/robust.py +135 -0
- kamanu-0.1.0/kamanu/story.py +96 -0
- kamanu-0.1.0/kamanu/unbounded.py +135 -0
- kamanu-0.1.0/kamanu/verdict.py +388 -0
- kamanu-0.1.0/kamanu.egg-info/PKG-INFO +215 -0
- kamanu-0.1.0/kamanu.egg-info/SOURCES.txt +364 -0
- kamanu-0.1.0/kamanu.egg-info/dependency_links.txt +1 -0
- kamanu-0.1.0/kamanu.egg-info/entry_points.txt +5 -0
- kamanu-0.1.0/kamanu.egg-info/requires.txt +1 -0
- kamanu-0.1.0/kamanu.egg-info/top_level.txt +2 -0
- kamanu-0.1.0/pyproject.toml +53 -0
- kamanu-0.1.0/setup.cfg +4 -0
- kamanu-0.1.0/spec/KamanuAdversary.tla +20 -0
- kamanu-0.1.0/spec/KamanuKernel.tla +161 -0
- kamanu-0.1.0/spec/KamanuPolicies.tla +32 -0
- kamanu-0.1.0/spec/KamanuProbe.tla +70 -0
- kamanu-0.1.0/spec/KamanuTask.tla +78 -0
- kamanu-0.1.0/spec/MCProbe.tla +13 -0
- kamanu-0.1.0/spec/MCSafety.tla +10 -0
- kamanu-0.1.0/spec/MCTask.tla +13 -0
- kamanu-0.1.0/spec/demos/Handoff.constants +1 -0
- kamanu-0.1.0/spec/demos/Handoff.tla +117 -0
- kamanu-0.1.0/spec/demos/Interrupt.constants +1 -0
- kamanu-0.1.0/spec/demos/Interrupt.tla +151 -0
- kamanu-0.1.0/spec/demos/Recruit.constants +1 -0
- kamanu-0.1.0/spec/demos/Recruit.tla +166 -0
- kamanu-0.1.0/spec/demos/Wallet.constants +15 -0
- kamanu-0.1.0/spec/demos/Wallet.tla +115 -0
- kamanu-0.1.0/spec/ext/BudgetKey.constants +13 -0
- kamanu-0.1.0/spec/ext/BudgetKey.tla +67 -0
- kamanu-0.1.0/spec/ext/Composite.tla +118 -0
- kamanu-0.1.0/spec/ext/DenySet.tla +65 -0
- kamanu-0.1.0/spec/ext/FalseDenial.tla +50 -0
- kamanu-0.1.0/spec/ext/Hostile.constants +20 -0
- kamanu-0.1.0/spec/ext/Hostile.tla +142 -0
- kamanu-0.1.0/spec/ext/HuntFreeze.tla +69 -0
- kamanu-0.1.0/spec/ext/Invalidation.constants +14 -0
- kamanu-0.1.0/spec/ext/Invalidation.tla +80 -0
- kamanu-0.1.0/spec/ext/Isolation.constants +13 -0
- kamanu-0.1.0/spec/ext/Isolation.tla +88 -0
- kamanu-0.1.0/spec/ext/Labels.constants +12 -0
- kamanu-0.1.0/spec/ext/Labels.tla +77 -0
- kamanu-0.1.0/spec/ext/Progress.constants +20 -0
- kamanu-0.1.0/spec/ext/Progress.tla +109 -0
- kamanu-0.1.0/spec/ext/ReconcileR3.constants +15 -0
- kamanu-0.1.0/spec/ext/ReconcileR3.tla +134 -0
- kamanu-0.1.0/spec/ext/ReconcileR3b.constants +16 -0
- kamanu-0.1.0/spec/ext/ReconcileR3b.tla +87 -0
- kamanu-0.1.0/spec/ext/Storm.tla +57 -0
- kamanu-0.1.0/spec/ext/Threshold.tla +87 -0
- kamanu-0.1.0/spec/ext/Unbounded.tla +33 -0
- kamanu-0.1.0/spec/ext/Undetermined.tla +41 -0
- kamanu-0.1.0/spec/ext/UndeterminedSafety.tla +11 -0
- kamanu-0.1.0/spec/ext/UndeterminedTask.tla +16 -0
- kamanu-0.1.0/spec/ext/Window.constants +15 -0
- kamanu-0.1.0/spec/ext/Window.tla +97 -0
- kamanu-0.1.0/spec/ext/WindowKernel.tla +80 -0
- kamanu-0.1.0/tests/test_action.py +85 -0
- kamanu-0.1.0/tests/test_action_scan.py +95 -0
- kamanu-0.1.0/tests/test_admit.py +82 -0
- kamanu-0.1.0/tests/test_apalache.py +140 -0
- kamanu-0.1.0/tests/test_assay.py +167 -0
- kamanu-0.1.0/tests/test_benchmark.py +171 -0
- kamanu-0.1.0/tests/test_budget_keys.py +58 -0
- kamanu-0.1.0/tests/test_budget_levels.py +83 -0
- kamanu-0.1.0/tests/test_cabinet.py +369 -0
- kamanu-0.1.0/tests/test_card_ledger.py +124 -0
- kamanu-0.1.0/tests/test_catalogue_x1c.py +112 -0
- kamanu-0.1.0/tests/test_claims_x1c.py +162 -0
- kamanu-0.1.0/tests/test_cli_help.py +114 -0
- kamanu-0.1.0/tests/test_cli_live.py +40 -0
- kamanu-0.1.0/tests/test_cli_second_pass.py +61 -0
- kamanu-0.1.0/tests/test_cli_speed.py +38 -0
- kamanu-0.1.0/tests/test_connector_assess.py +65 -0
- kamanu-0.1.0/tests/test_connector_harness.py +177 -0
- kamanu-0.1.0/tests/test_connector_queries.py +219 -0
- kamanu-0.1.0/tests/test_connector_weigh.py +92 -0
- kamanu-0.1.0/tests/test_crosscheck.py +92 -0
- kamanu-0.1.0/tests/test_decompose.py +161 -0
- kamanu-0.1.0/tests/test_dogwood.py +244 -0
- kamanu-0.1.0/tests/test_drift_machine.py +208 -0
- kamanu-0.1.0/tests/test_emit.py +184 -0
- kamanu-0.1.0/tests/test_fair.py +222 -0
- kamanu-0.1.0/tests/test_fast_certify.py +148 -0
- kamanu-0.1.0/tests/test_fast_closed.py +265 -0
- kamanu-0.1.0/tests/test_fast_lint.py +129 -0
- kamanu-0.1.0/tests/test_fast_native.py +179 -0
- kamanu-0.1.0/tests/test_fast_r16.py +212 -0
- kamanu-0.1.0/tests/test_fast_r16b.py +224 -0
- kamanu-0.1.0/tests/test_fast_r16d.py +267 -0
- kamanu-0.1.0/tests/test_fast_r16e.py +187 -0
- kamanu-0.1.0/tests/test_fast_r16f.py +267 -0
- kamanu-0.1.0/tests/test_fast_r16g.py +159 -0
- kamanu-0.1.0/tests/test_fast_r17.py +246 -0
- kamanu-0.1.0/tests/test_fast_r17c.py +60 -0
- kamanu-0.1.0/tests/test_fg_forecast.py +138 -0
- kamanu-0.1.0/tests/test_fg_params.py +84 -0
- kamanu-0.1.0/tests/test_freeze.py +133 -0
- kamanu-0.1.0/tests/test_frontends.py +134 -0
- kamanu-0.1.0/tests/test_fsm.py +143 -0
- kamanu-0.1.0/tests/test_guard.py +74 -0
- kamanu-0.1.0/tests/test_guard_forecast.py +160 -0
- kamanu-0.1.0/tests/test_guard_forecast_partial.py +52 -0
- kamanu-0.1.0/tests/test_hunt.py +108 -0
- kamanu-0.1.0/tests/test_hunt_adapter_agentcore.py +387 -0
- kamanu-0.1.0/tests/test_hunt_adapter_dogwood_local.py +99 -0
- kamanu-0.1.0/tests/test_hunt_adapter_kong.py +200 -0
- kamanu-0.1.0/tests/test_hunt_adapter_litellm.py +176 -0
- kamanu-0.1.0/tests/test_hunt_adapter_redis.py +133 -0
- kamanu-0.1.0/tests/test_hunt_consistency.py +141 -0
- kamanu-0.1.0/tests/test_hunt_examples.py +164 -0
- kamanu-0.1.0/tests/test_hunt_freeze.py +167 -0
- kamanu-0.1.0/tests/test_hunt_judge_moved.py +30 -0
- kamanu-0.1.0/tests/test_hunt_limits.py +197 -0
- kamanu-0.1.0/tests/test_hunt_matrix.py +172 -0
- kamanu-0.1.0/tests/test_hunt_row.py +160 -0
- kamanu-0.1.0/tests/test_hunt_scope.py +376 -0
- kamanu-0.1.0/tests/test_hunt_sessions.py +141 -0
- kamanu-0.1.0/tests/test_hunt_space.py +162 -0
- kamanu-0.1.0/tests/test_hunt_time.py +122 -0
- kamanu-0.1.0/tests/test_hunt_window.py +144 -0
- kamanu-0.1.0/tests/test_install_quickstart.py +117 -0
- kamanu-0.1.0/tests/test_joern.py +288 -0
- kamanu-0.1.0/tests/test_joern_js.py +184 -0
- kamanu-0.1.0/tests/test_ladder_calibrate.py +155 -0
- kamanu-0.1.0/tests/test_ladder_calibrate_counts.py +106 -0
- kamanu-0.1.0/tests/test_ladder_coach.py +82 -0
- kamanu-0.1.0/tests/test_ladder_derive.py +114 -0
- kamanu-0.1.0/tests/test_ladder_emulator.py +77 -0
- kamanu-0.1.0/tests/test_ladder_fix.py +63 -0
- kamanu-0.1.0/tests/test_ladder_fix_r11_summary.py +63 -0
- kamanu-0.1.0/tests/test_ladder_fix_r14b.py +139 -0
- kamanu-0.1.0/tests/test_ladder_fix_r15.py +207 -0
- kamanu-0.1.0/tests/test_ladder_fix_r15b.py +207 -0
- kamanu-0.1.0/tests/test_ladder_ledger.py +65 -0
- kamanu-0.1.0/tests/test_ladder_proof.py +311 -0
- kamanu-0.1.0/tests/test_ladder_record.py +168 -0
- kamanu-0.1.0/tests/test_ladder_reduce.py +53 -0
- kamanu-0.1.0/tests/test_ladder_rehunt.py +167 -0
- kamanu-0.1.0/tests/test_ladder_rehunt_agentcore.py +103 -0
- kamanu-0.1.0/tests/test_ladder_scorecard.py +69 -0
- kamanu-0.1.0/tests/test_ladder_split.py +44 -0
- kamanu-0.1.0/tests/test_ladder_staleness.py +115 -0
- kamanu-0.1.0/tests/test_ladder_staleness_migration.py +78 -0
- kamanu-0.1.0/tests/test_ladder_story.py +48 -0
- kamanu-0.1.0/tests/test_ladder_story_caller.py +45 -0
- kamanu-0.1.0/tests/test_ladder_stranded.py +114 -0
- kamanu-0.1.0/tests/test_ladder_swprobe.py +166 -0
- kamanu-0.1.0/tests/test_ladder_undecided.py +73 -0
- kamanu-0.1.0/tests/test_ladder_wire.py +119 -0
- kamanu-0.1.0/tests/test_ladder_witness.py +162 -0
- kamanu-0.1.0/tests/test_lean_budget.py +222 -0
- kamanu-0.1.0/tests/test_lean_credit.py +239 -0
- kamanu-0.1.0/tests/test_lean_kernel.py +516 -0
- kamanu-0.1.0/tests/test_lean_sources.py +51 -0
- kamanu-0.1.0/tests/test_lean_two.py +249 -0
- kamanu-0.1.0/tests/test_ledgers.py +256 -0
- kamanu-0.1.0/tests/test_levels.py +218 -0
- kamanu-0.1.0/tests/test_levels_t3.py +54 -0
- kamanu-0.1.0/tests/test_levels_t8.py +116 -0
- kamanu-0.1.0/tests/test_levels_t8b.py +60 -0
- kamanu-0.1.0/tests/test_lint.py +222 -0
- kamanu-0.1.0/tests/test_mcp_entry_points.py +89 -0
- kamanu-0.1.0/tests/test_mcp_lint.py +59 -0
- kamanu-0.1.0/tests/test_mcp_listing.py +134 -0
- kamanu-0.1.0/tests/test_mcp_server.py +183 -0
- kamanu-0.1.0/tests/test_mint_x1d.py +85 -0
- kamanu-0.1.0/tests/test_mirror.py +186 -0
- kamanu-0.1.0/tests/test_plates.py +95 -0
- kamanu-0.1.0/tests/test_pool_issuing.py +189 -0
- kamanu-0.1.0/tests/test_premise_map.py +119 -0
- kamanu-0.1.0/tests/test_premises.py +139 -0
- kamanu-0.1.0/tests/test_premises_constructs.py +183 -0
- kamanu-0.1.0/tests/test_premises_status.py +127 -0
- kamanu-0.1.0/tests/test_probe.py +169 -0
- kamanu-0.1.0/tests/test_provenance.py +285 -0
- kamanu-0.1.0/tests/test_questions.py +100 -0
- kamanu-0.1.0/tests/test_rail_agentcore.py +196 -0
- kamanu-0.1.0/tests/test_rail_issuing.py +141 -0
- kamanu-0.1.0/tests/test_rail_wallet.py +139 -0
- kamanu-0.1.0/tests/test_rail_x402.py +71 -0
- kamanu-0.1.0/tests/test_redis.py +346 -0
- kamanu-0.1.0/tests/test_registry.py +167 -0
- kamanu-0.1.0/tests/test_rego.py +399 -0
- kamanu-0.1.0/tests/test_release_data.py +82 -0
- kamanu-0.1.0/tests/test_release_data_r17.py +49 -0
- kamanu-0.1.0/tests/test_reproduce.py +51 -0
- kamanu-0.1.0/tests/test_resume.py +269 -0
- kamanu-0.1.0/tests/test_resume_issuing.py +305 -0
- kamanu-0.1.0/tests/test_shadow_ledger.py +162 -0
- kamanu-0.1.0/tests/test_shadow_orders.py +97 -0
- kamanu-0.1.0/tests/test_sprint.py +83 -0
- kamanu-0.1.0/tests/test_undetermined.py +40 -0
- kamanu-0.1.0/tests/test_verdict.py +177 -0
kamanu-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any files that You modify to carry prominent
|
|
98
|
+
notices stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this
|
|
152
|
+
License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 CARAVEL
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
kamanu-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: kamanu
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Checks whether a spending limit on an AI agent holds, and says how sure it is: the most that can be spent, the most that can be wrongly refused, and the shortest trace behind each
|
|
5
|
+
Author: Kenneth Amoah Nyame
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://nkamoah17.github.io/kamanu/
|
|
8
|
+
Project-URL: Source, https://github.com/nkamoah17/kamanu
|
|
9
|
+
Project-URL: Documentation, https://github.com/nkamoah17/kamanu/tree/main/docs
|
|
10
|
+
Project-URL: Changelog, https://github.com/nkamoah17/kamanu/blob/main/CHANGELOG.md
|
|
11
|
+
Project-URL: Issues, https://github.com/nkamoah17/kamanu/issues
|
|
12
|
+
Keywords: ai-agents,spending-limits,authorization,tla-plus,lean4,formal-verification,mcp,payments
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Intended Audience :: Financial and Insurance Industry
|
|
16
|
+
Classifier: Operating System :: OS Independent
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
+
Classifier: Topic :: Security
|
|
22
|
+
Classifier: Topic :: Software Development :: Testing
|
|
23
|
+
Classifier: Topic :: Office/Business :: Financial
|
|
24
|
+
Requires-Python: >=3.11
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
License-File: LICENSE
|
|
27
|
+
License-File: RECORDS-LICENSE
|
|
28
|
+
Requires-Dist: PyYAML>=6
|
|
29
|
+
Dynamic: license-file
|
|
30
|
+
|
|
31
|
+
# KAMANU
|
|
32
|
+
|
|
33
|
+
**KAMANU checks whether a limit on an AI agent's spending holds, and says how sure it is.**
|
|
34
|
+
|
|
35
|
+
A spend cap, a rate limit and an approval gate are the same kind of thing: a guard that decides by
|
|
36
|
+
reading its own history. What goes into that history, and when, differs from engine to engine. So the
|
|
37
|
+
same limit can hold on one system, overspend on a second and lock an honest agent out on a third.
|
|
38
|
+
|
|
39
|
+
[Site](https://nkamoah17.github.io/kamanu/) · [Proofs](https://github.com/nkamoah17/kamanu/blob/main/docs/proofs.md) · [Levels](https://github.com/nkamoah17/kamanu/blob/main/docs/levels.md) · [How it works](https://github.com/nkamoah17/kamanu/blob/main/docs/how-it-works.md) · [Changelog](https://github.com/nkamoah17/kamanu/blob/main/CHANGELOG.md)
|
|
40
|
+
|
|
41
|
+
## What you get
|
|
42
|
+
|
|
43
|
+
1. **The most that can really be spent** under a limit, printed next to the limit.
|
|
44
|
+
2. **The most budget that can be stranded** when a request that fits is refused.
|
|
45
|
+
3. **The shortest sequence of events** that produces each number, which you can replay.
|
|
46
|
+
4. **A fix and the reason it holds.** For the designs in the kernel, a machine-checked proof for any
|
|
47
|
+
number of requests and agents.
|
|
48
|
+
5. **A signed record** that says how each part was established, and can be checked again later.
|
|
49
|
+
|
|
50
|
+
## See it in a minute
|
|
51
|
+
|
|
52
|
+
Requires Python 3.11 or later. `pip` installs one dependency, PyYAML. Nothing here needs Java, Lean or
|
|
53
|
+
a network connection after the clone.
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
git clone https://github.com/nkamoah17/kamanu.git kamanu-src && cd kamanu-src
|
|
57
|
+
pip install .
|
|
58
|
+
kamanu scan fixtures/dogwood/PReqBasis.dw --engine demo/assay/proved-cell.json --cap 100 --label budget # exits 1: Tight fails
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
That checks a cap of 100 on the engine our proof covers, with two payments in flight and one call
|
|
62
|
+
allowed to fail. Its output, shortened (it takes under a second):
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
face value 100
|
|
66
|
+
ceiling 100 (the most that can really be spent)
|
|
67
|
+
stranded budget 100 (the most free headroom left when a request that fits is refused)
|
|
68
|
+
Sound holds, level MODEL_PROVEN
|
|
69
|
+
Tight FAILS, level REFUTED
|
|
70
|
+
Tight's shortest failing trace, 6 steps:
|
|
71
|
+
1. issue amount 60 | held 0 | spent 0 | doubt 0
|
|
72
|
+
2. issue amount 60 | held 0 | spent 0 | doubt 0
|
|
73
|
+
3. decide amount 60 (permit) | held 60 | spent 0 | doubt 0
|
|
74
|
+
4. fail amount 60 (clean) | held 0 | spent 0 | doubt 60
|
|
75
|
+
5. reconcile amount 60 (refund) | held 0 | spent 0 | doubt 0
|
|
76
|
+
6. decide amount 60 (deny) | held 0 | spent 0 | doubt 0
|
|
77
|
+
constants assumed: 7 of the 7 hypotheses
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
The cap cannot be overspent. It can still refuse a payment that fits:
|
|
81
|
+
|
|
82
|
+
| Step | What happens | Held | Spent | In doubt |
|
|
83
|
+
| --- | --- | --- | --- | --- |
|
|
84
|
+
| 1 | The agent asks to pay 60 | 0 | 0 | 0 |
|
|
85
|
+
| 2 | The agent asks to pay another 60 | 0 | 0 | 0 |
|
|
86
|
+
| 3 | The first payment is allowed | 60 | 0 | 0 |
|
|
87
|
+
| 4 | The first call fails | 0 | 0 | 60 |
|
|
88
|
+
| 5 | The provider confirms nothing was paid | 0 | 0 | 0 |
|
|
89
|
+
| 6 | The second payment is refused, with nothing held, spent or in doubt | 0 | 0 | 0 |
|
|
90
|
+
|
|
91
|
+
We show this first because it is our own best design, and it still has a flaw. A report that only
|
|
92
|
+
ever says "pass" is not worth reading.
|
|
93
|
+
|
|
94
|
+
The scan left a receipt in a directory on your disk (the cabinet, `~/.kamanu/cabinet` unless
|
|
95
|
+
`KAMANU_CABINET` names another) and uploaded nothing. `kamanu scan --verify` checks the chain of
|
|
96
|
+
receipts; `kamanu scan --census` counts what this cabinet holds. See [docs/scan.md](https://github.com/nkamoah17/kamanu/blob/main/docs/scan.md).
|
|
97
|
+
|
|
98
|
+
### Check our signed record without us
|
|
99
|
+
|
|
100
|
+
The same result, signed with the registry's key, is in [registry/](https://github.com/nkamoah17/kamanu/tree/main/registry/). Check it offline, with
|
|
101
|
+
the wheel or with node alone:
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
kamanu assay --verify registry/h/b271f39d07877083.json --key registry/registry.pub --recompute
|
|
105
|
+
node registry/kamanu-verify.cjs registry/h/b271f39d07877083.html "$(cat registry/registry.pub)"
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
`--recompute` runs the record's embedded policy and engine profile again and compares every figure,
|
|
109
|
+
level, trace and hash. To strike a record of your own, signed with your own key, see
|
|
110
|
+
[docs/assay.md](https://github.com/nkamoah17/kamanu/blob/main/docs/assay.md). The words on a record (face value, fineness, struck) are in
|
|
111
|
+
[docs/mint.md](https://github.com/nkamoah17/kamanu/blob/main/docs/mint.md).
|
|
112
|
+
|
|
113
|
+
## How sure
|
|
114
|
+
|
|
115
|
+
Every verdict carries a level, set by its weakest link. Full rules: [docs/levels.md](https://github.com/nkamoah17/kamanu/blob/main/docs/levels.md).
|
|
116
|
+
|
|
117
|
+
| Level | What it says |
|
|
118
|
+
| --- | --- |
|
|
119
|
+
| `MODEL_PROVEN` | Every step from the kernel to the checked machine is proved in Lean |
|
|
120
|
+
| `EXHAUSTIVE_FINITE_PASS` | Every reachable state was visited; one link is tested, not proved |
|
|
121
|
+
| `BOUNDED_PASS` | It passed within stated bounds, and says nothing beyond them |
|
|
122
|
+
| `TESTED` | A live run or a replay passed |
|
|
123
|
+
| `ASSUMED` | It passed, and something it rests on is a default or a reading of documents |
|
|
124
|
+
| `REFUTED` | A counterexample stands |
|
|
125
|
+
| `UNKNOWN` | Not decided |
|
|
126
|
+
|
|
127
|
+
## Verify the proofs yourself
|
|
128
|
+
|
|
129
|
+
```
|
|
130
|
+
bash verify.sh
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
It needs elan's Lean and Python with pytest. It builds the Lean proofs from clean, rejects any `sorry`
|
|
134
|
+
and any axiom beyond Lean's three standard ones, replays the library with Lean's own checker, and has
|
|
135
|
+
three outside checkers read an export of it. The theorems are listed in plain words in
|
|
136
|
+
[docs/proofs.md](https://github.com/nkamoah17/kamanu/blob/main/docs/proofs.md). The recipe, and the time one measured run took (about five minutes
|
|
137
|
+
on 23 November 2026), are in [docs/verify.md](https://github.com/nkamoah17/kamanu/blob/main/docs/verify.md). The `lean` workflow runs it on every push.
|
|
138
|
+
|
|
139
|
+
## What has been measured
|
|
140
|
+
|
|
141
|
+
| Engine | Record dated | Record |
|
|
142
|
+
| --- | --- | --- |
|
|
143
|
+
| KAMANU's own reference engine (the proved cell) | 26 November 2026 | [registry/h/b271f39d07877083.json](https://github.com/nkamoah17/kamanu/blob/main/registry/h/b271f39d07877083.json), listed in [registry/index.html](https://github.com/nkamoah17/kamanu/blob/main/registry/index.html) |
|
|
144
|
+
|
|
145
|
+
That record is of a model: its engine constants are stated, and it says so. Three payment rails were
|
|
146
|
+
measured live on test networks on 24 and 25 November 2026, at 99 trials per test, and each limit held
|
|
147
|
+
in every test. Ninety-nine clean trials bound how often a race can occur; they do not show it cannot: a
|
|
148
|
+
race that occurs 3% of the time or more would be missed with probability at most 5%. Each rail is named
|
|
149
|
+
here when its owner has seen the result and agreed. A third party's result appears here after its owner
|
|
150
|
+
has seen it and agreed, or after 30 days. See the house rules.
|
|
151
|
+
|
|
152
|
+
## Use it
|
|
153
|
+
|
|
154
|
+
| Command | What it does |
|
|
155
|
+
| --- | --- |
|
|
156
|
+
| `kamanu scan` | Prints a limit's answer whole and keeps a chained receipt of it on your disk. `--card PROFILE` reads a card program's limits. See [docs/scan.md](https://github.com/nkamoah17/kamanu/blob/main/docs/scan.md) |
|
|
157
|
+
| `kamanu lint` | Decides a one-threshold policy in milliseconds, with no model checker to install. `--frontend issuing` reads issuer-style `spending_limits` ([docs/cardhold.md](https://github.com/nkamoah17/kamanu/blob/main/docs/cardhold.md)) |
|
|
158
|
+
| `kamanu check` | Checks a policy against an engine profile in TLC and returns the shortest trace that breaks it (needs Java and the TLA+ tools; see [CONTRIBUTING.md](https://github.com/nkamoah17/kamanu/blob/main/CONTRIBUTING.md)) |
|
|
159
|
+
| `kamanu admit` | One yes or no before a generated rule goes live. See [docs/admit.md](https://github.com/nkamoah17/kamanu/blob/main/docs/admit.md) |
|
|
160
|
+
| `kamanu assay` | Issues and verifies signed records. See [docs/assay.md](https://github.com/nkamoah17/kamanu/blob/main/docs/assay.md) |
|
|
161
|
+
| `kamanu coach` | Tells an agent whether a payment fits, the most that fits now, and when the full amount will |
|
|
162
|
+
| `kamanu hunt` | Probes an engine for how it counts. `kamanu hunt --example dogwood` runs a bundled one in this process |
|
|
163
|
+
| GitHub Action | [action.yml](https://github.com/nkamoah17/kamanu/blob/main/action.yml) runs `kamanu check` on the policies a pull request changes, and with `scan: 'true'` keeps a cabinet. See [docs/action.md](https://github.com/nkamoah17/kamanu/blob/main/docs/action.md) |
|
|
164
|
+
| MCP servers | `kamanu mcp serve`, `kamanu mcp lint` and `kamanu mcp coach` (also installed as `kamanu-mcp`, `kamanu-lint-mcp` and `kamanu-coach-mcp`), with a client configuration for each: [docs/mcp.md](https://github.com/nkamoah17/kamanu/blob/main/docs/mcp.md) |
|
|
165
|
+
|
|
166
|
+
<!-- mcp-name: io.github.nkamoah17/kamanu-lint -->
|
|
167
|
+
<!-- mcp-name: io.github.nkamoah17/kamanu-coach -->
|
|
168
|
+
<!-- mcp-name: io.github.nkamoah17/kamanu -->
|
|
169
|
+
|
|
170
|
+
How the pieces fit, what each result means and where things live in the repository:
|
|
171
|
+
[docs/how-it-works.md](https://github.com/nkamoah17/kamanu/blob/main/docs/how-it-works.md). The kernel, the ledger and the five spend-cap designs,
|
|
172
|
+
in prose: [docs/reference.md](https://github.com/nkamoah17/kamanu/blob/main/docs/reference.md).
|
|
173
|
+
|
|
174
|
+
## What this is not
|
|
175
|
+
|
|
176
|
+
- **Not a certificate.** KAMANU never uses the words "certified" or "safe".
|
|
177
|
+
- **Not runtime enforcement.** It tells you what a limit allows. It does not hold or move money.
|
|
178
|
+
- **Not a statement about your deployment** unless it was measured there. A proof is about a model,
|
|
179
|
+
and it reaches a real system only through the hypotheses printed beside it.
|
|
180
|
+
|
|
181
|
+
## House rules
|
|
182
|
+
|
|
183
|
+
- The owner of a system sees a result about it first, and has 30 days before anything is public.
|
|
184
|
+
- A fee never changes a verdict or its timing.
|
|
185
|
+
- Every public number carries its level and its hypotheses.
|
|
186
|
+
- Tests run only in our own accounts and sandboxes, or with written permission.
|
|
187
|
+
- Passes are published as readily as failures.
|
|
188
|
+
|
|
189
|
+
## Getting a check
|
|
190
|
+
|
|
191
|
+
- **Free: the scan.** Run `kamanu scan` on your own limits. Nothing leaves your machine.
|
|
192
|
+
- **Free: a documented check.** One page on your limit, built only from your public documents, every
|
|
193
|
+
constant marked assumed, sent to you privately with a week to correct facts.
|
|
194
|
+
- **Authorization Assurance Sprint.** One programme, one limit configuration, one authorization path,
|
|
195
|
+
one sandbox, three working days: what your path let through that did not fit, what it refused that
|
|
196
|
+
did, the shortest trace and a regression test for each, and a signed receipt per limit. List price
|
|
197
|
+
9,500 USD; 4,500 USD for each of three founding programmes. Half at signing, half on delivery; a full
|
|
198
|
+
refund if the result on the contracted path is UNKNOWN. Never production credentials or live funds.
|
|
199
|
+
|
|
200
|
+
Write to jerenyame@gmail.com with a link to the page that describes your limit, the processor or engine
|
|
201
|
+
underneath it, and whether you have a sandbox.
|
|
202
|
+
|
|
203
|
+
## Use it responsibly
|
|
204
|
+
|
|
205
|
+
Run probes only against your own deployments, test networks, or systems whose owners have published
|
|
206
|
+
a scope that covers the testing. If you find that someone else's limit can be exceeded, tell them
|
|
207
|
+
before you tell anyone else. How to report a problem with KAMANU itself: [SECURITY.md](https://github.com/nkamoah17/kamanu/blob/main/SECURITY.md).
|
|
208
|
+
|
|
209
|
+
## Licence, citing and contact
|
|
210
|
+
|
|
211
|
+
Code: Apache 2.0 ([LICENSE](https://github.com/nkamoah17/kamanu/blob/main/LICENSE)). Records: CDLA-Permissive-2.0 ([RECORDS-LICENSE](https://github.com/nkamoah17/kamanu/blob/main/RECORDS-LICENSE)).
|
|
212
|
+
The TLA+ tools and Joern are downloaded separately under their own licences. Third-party
|
|
213
|
+
documentation copied into the repository as test evidence keeps its original licence. To cite a
|
|
214
|
+
result, give the record's file and the commit it names. KAMANU is run by Kenneth Amoah Nyame; write to
|
|
215
|
+
jerenyame@gmail.com.
|
kamanu-0.1.0/README.md
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
# KAMANU
|
|
2
|
+
|
|
3
|
+
**KAMANU checks whether a limit on an AI agent's spending holds, and says how sure it is.**
|
|
4
|
+
|
|
5
|
+
A spend cap, a rate limit and an approval gate are the same kind of thing: a guard that decides by
|
|
6
|
+
reading its own history. What goes into that history, and when, differs from engine to engine. So the
|
|
7
|
+
same limit can hold on one system, overspend on a second and lock an honest agent out on a third.
|
|
8
|
+
|
|
9
|
+
[Site](https://nkamoah17.github.io/kamanu/) · [Proofs](https://github.com/nkamoah17/kamanu/blob/main/docs/proofs.md) · [Levels](https://github.com/nkamoah17/kamanu/blob/main/docs/levels.md) · [How it works](https://github.com/nkamoah17/kamanu/blob/main/docs/how-it-works.md) · [Changelog](https://github.com/nkamoah17/kamanu/blob/main/CHANGELOG.md)
|
|
10
|
+
|
|
11
|
+
## What you get
|
|
12
|
+
|
|
13
|
+
1. **The most that can really be spent** under a limit, printed next to the limit.
|
|
14
|
+
2. **The most budget that can be stranded** when a request that fits is refused.
|
|
15
|
+
3. **The shortest sequence of events** that produces each number, which you can replay.
|
|
16
|
+
4. **A fix and the reason it holds.** For the designs in the kernel, a machine-checked proof for any
|
|
17
|
+
number of requests and agents.
|
|
18
|
+
5. **A signed record** that says how each part was established, and can be checked again later.
|
|
19
|
+
|
|
20
|
+
## See it in a minute
|
|
21
|
+
|
|
22
|
+
Requires Python 3.11 or later. `pip` installs one dependency, PyYAML. Nothing here needs Java, Lean or
|
|
23
|
+
a network connection after the clone.
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
git clone https://github.com/nkamoah17/kamanu.git kamanu-src && cd kamanu-src
|
|
27
|
+
pip install .
|
|
28
|
+
kamanu scan fixtures/dogwood/PReqBasis.dw --engine demo/assay/proved-cell.json --cap 100 --label budget # exits 1: Tight fails
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
That checks a cap of 100 on the engine our proof covers, with two payments in flight and one call
|
|
32
|
+
allowed to fail. Its output, shortened (it takes under a second):
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
face value 100
|
|
36
|
+
ceiling 100 (the most that can really be spent)
|
|
37
|
+
stranded budget 100 (the most free headroom left when a request that fits is refused)
|
|
38
|
+
Sound holds, level MODEL_PROVEN
|
|
39
|
+
Tight FAILS, level REFUTED
|
|
40
|
+
Tight's shortest failing trace, 6 steps:
|
|
41
|
+
1. issue amount 60 | held 0 | spent 0 | doubt 0
|
|
42
|
+
2. issue amount 60 | held 0 | spent 0 | doubt 0
|
|
43
|
+
3. decide amount 60 (permit) | held 60 | spent 0 | doubt 0
|
|
44
|
+
4. fail amount 60 (clean) | held 0 | spent 0 | doubt 60
|
|
45
|
+
5. reconcile amount 60 (refund) | held 0 | spent 0 | doubt 0
|
|
46
|
+
6. decide amount 60 (deny) | held 0 | spent 0 | doubt 0
|
|
47
|
+
constants assumed: 7 of the 7 hypotheses
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
The cap cannot be overspent. It can still refuse a payment that fits:
|
|
51
|
+
|
|
52
|
+
| Step | What happens | Held | Spent | In doubt |
|
|
53
|
+
| --- | --- | --- | --- | --- |
|
|
54
|
+
| 1 | The agent asks to pay 60 | 0 | 0 | 0 |
|
|
55
|
+
| 2 | The agent asks to pay another 60 | 0 | 0 | 0 |
|
|
56
|
+
| 3 | The first payment is allowed | 60 | 0 | 0 |
|
|
57
|
+
| 4 | The first call fails | 0 | 0 | 60 |
|
|
58
|
+
| 5 | The provider confirms nothing was paid | 0 | 0 | 0 |
|
|
59
|
+
| 6 | The second payment is refused, with nothing held, spent or in doubt | 0 | 0 | 0 |
|
|
60
|
+
|
|
61
|
+
We show this first because it is our own best design, and it still has a flaw. A report that only
|
|
62
|
+
ever says "pass" is not worth reading.
|
|
63
|
+
|
|
64
|
+
The scan left a receipt in a directory on your disk (the cabinet, `~/.kamanu/cabinet` unless
|
|
65
|
+
`KAMANU_CABINET` names another) and uploaded nothing. `kamanu scan --verify` checks the chain of
|
|
66
|
+
receipts; `kamanu scan --census` counts what this cabinet holds. See [docs/scan.md](https://github.com/nkamoah17/kamanu/blob/main/docs/scan.md).
|
|
67
|
+
|
|
68
|
+
### Check our signed record without us
|
|
69
|
+
|
|
70
|
+
The same result, signed with the registry's key, is in [registry/](https://github.com/nkamoah17/kamanu/tree/main/registry/). Check it offline, with
|
|
71
|
+
the wheel or with node alone:
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
kamanu assay --verify registry/h/b271f39d07877083.json --key registry/registry.pub --recompute
|
|
75
|
+
node registry/kamanu-verify.cjs registry/h/b271f39d07877083.html "$(cat registry/registry.pub)"
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
`--recompute` runs the record's embedded policy and engine profile again and compares every figure,
|
|
79
|
+
level, trace and hash. To strike a record of your own, signed with your own key, see
|
|
80
|
+
[docs/assay.md](https://github.com/nkamoah17/kamanu/blob/main/docs/assay.md). The words on a record (face value, fineness, struck) are in
|
|
81
|
+
[docs/mint.md](https://github.com/nkamoah17/kamanu/blob/main/docs/mint.md).
|
|
82
|
+
|
|
83
|
+
## How sure
|
|
84
|
+
|
|
85
|
+
Every verdict carries a level, set by its weakest link. Full rules: [docs/levels.md](https://github.com/nkamoah17/kamanu/blob/main/docs/levels.md).
|
|
86
|
+
|
|
87
|
+
| Level | What it says |
|
|
88
|
+
| --- | --- |
|
|
89
|
+
| `MODEL_PROVEN` | Every step from the kernel to the checked machine is proved in Lean |
|
|
90
|
+
| `EXHAUSTIVE_FINITE_PASS` | Every reachable state was visited; one link is tested, not proved |
|
|
91
|
+
| `BOUNDED_PASS` | It passed within stated bounds, and says nothing beyond them |
|
|
92
|
+
| `TESTED` | A live run or a replay passed |
|
|
93
|
+
| `ASSUMED` | It passed, and something it rests on is a default or a reading of documents |
|
|
94
|
+
| `REFUTED` | A counterexample stands |
|
|
95
|
+
| `UNKNOWN` | Not decided |
|
|
96
|
+
|
|
97
|
+
## Verify the proofs yourself
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
bash verify.sh
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
It needs elan's Lean and Python with pytest. It builds the Lean proofs from clean, rejects any `sorry`
|
|
104
|
+
and any axiom beyond Lean's three standard ones, replays the library with Lean's own checker, and has
|
|
105
|
+
three outside checkers read an export of it. The theorems are listed in plain words in
|
|
106
|
+
[docs/proofs.md](https://github.com/nkamoah17/kamanu/blob/main/docs/proofs.md). The recipe, and the time one measured run took (about five minutes
|
|
107
|
+
on 23 November 2026), are in [docs/verify.md](https://github.com/nkamoah17/kamanu/blob/main/docs/verify.md). The `lean` workflow runs it on every push.
|
|
108
|
+
|
|
109
|
+
## What has been measured
|
|
110
|
+
|
|
111
|
+
| Engine | Record dated | Record |
|
|
112
|
+
| --- | --- | --- |
|
|
113
|
+
| KAMANU's own reference engine (the proved cell) | 26 November 2026 | [registry/h/b271f39d07877083.json](https://github.com/nkamoah17/kamanu/blob/main/registry/h/b271f39d07877083.json), listed in [registry/index.html](https://github.com/nkamoah17/kamanu/blob/main/registry/index.html) |
|
|
114
|
+
|
|
115
|
+
That record is of a model: its engine constants are stated, and it says so. Three payment rails were
|
|
116
|
+
measured live on test networks on 24 and 25 November 2026, at 99 trials per test, and each limit held
|
|
117
|
+
in every test. Ninety-nine clean trials bound how often a race can occur; they do not show it cannot: a
|
|
118
|
+
race that occurs 3% of the time or more would be missed with probability at most 5%. Each rail is named
|
|
119
|
+
here when its owner has seen the result and agreed. A third party's result appears here after its owner
|
|
120
|
+
has seen it and agreed, or after 30 days. See the house rules.
|
|
121
|
+
|
|
122
|
+
## Use it
|
|
123
|
+
|
|
124
|
+
| Command | What it does |
|
|
125
|
+
| --- | --- |
|
|
126
|
+
| `kamanu scan` | Prints a limit's answer whole and keeps a chained receipt of it on your disk. `--card PROFILE` reads a card program's limits. See [docs/scan.md](https://github.com/nkamoah17/kamanu/blob/main/docs/scan.md) |
|
|
127
|
+
| `kamanu lint` | Decides a one-threshold policy in milliseconds, with no model checker to install. `--frontend issuing` reads issuer-style `spending_limits` ([docs/cardhold.md](https://github.com/nkamoah17/kamanu/blob/main/docs/cardhold.md)) |
|
|
128
|
+
| `kamanu check` | Checks a policy against an engine profile in TLC and returns the shortest trace that breaks it (needs Java and the TLA+ tools; see [CONTRIBUTING.md](https://github.com/nkamoah17/kamanu/blob/main/CONTRIBUTING.md)) |
|
|
129
|
+
| `kamanu admit` | One yes or no before a generated rule goes live. See [docs/admit.md](https://github.com/nkamoah17/kamanu/blob/main/docs/admit.md) |
|
|
130
|
+
| `kamanu assay` | Issues and verifies signed records. See [docs/assay.md](https://github.com/nkamoah17/kamanu/blob/main/docs/assay.md) |
|
|
131
|
+
| `kamanu coach` | Tells an agent whether a payment fits, the most that fits now, and when the full amount will |
|
|
132
|
+
| `kamanu hunt` | Probes an engine for how it counts. `kamanu hunt --example dogwood` runs a bundled one in this process |
|
|
133
|
+
| GitHub Action | [action.yml](https://github.com/nkamoah17/kamanu/blob/main/action.yml) runs `kamanu check` on the policies a pull request changes, and with `scan: 'true'` keeps a cabinet. See [docs/action.md](https://github.com/nkamoah17/kamanu/blob/main/docs/action.md) |
|
|
134
|
+
| MCP servers | `kamanu mcp serve`, `kamanu mcp lint` and `kamanu mcp coach` (also installed as `kamanu-mcp`, `kamanu-lint-mcp` and `kamanu-coach-mcp`), with a client configuration for each: [docs/mcp.md](https://github.com/nkamoah17/kamanu/blob/main/docs/mcp.md) |
|
|
135
|
+
|
|
136
|
+
<!-- mcp-name: io.github.nkamoah17/kamanu-lint -->
|
|
137
|
+
<!-- mcp-name: io.github.nkamoah17/kamanu-coach -->
|
|
138
|
+
<!-- mcp-name: io.github.nkamoah17/kamanu -->
|
|
139
|
+
|
|
140
|
+
How the pieces fit, what each result means and where things live in the repository:
|
|
141
|
+
[docs/how-it-works.md](https://github.com/nkamoah17/kamanu/blob/main/docs/how-it-works.md). The kernel, the ledger and the five spend-cap designs,
|
|
142
|
+
in prose: [docs/reference.md](https://github.com/nkamoah17/kamanu/blob/main/docs/reference.md).
|
|
143
|
+
|
|
144
|
+
## What this is not
|
|
145
|
+
|
|
146
|
+
- **Not a certificate.** KAMANU never uses the words "certified" or "safe".
|
|
147
|
+
- **Not runtime enforcement.** It tells you what a limit allows. It does not hold or move money.
|
|
148
|
+
- **Not a statement about your deployment** unless it was measured there. A proof is about a model,
|
|
149
|
+
and it reaches a real system only through the hypotheses printed beside it.
|
|
150
|
+
|
|
151
|
+
## House rules
|
|
152
|
+
|
|
153
|
+
- The owner of a system sees a result about it first, and has 30 days before anything is public.
|
|
154
|
+
- A fee never changes a verdict or its timing.
|
|
155
|
+
- Every public number carries its level and its hypotheses.
|
|
156
|
+
- Tests run only in our own accounts and sandboxes, or with written permission.
|
|
157
|
+
- Passes are published as readily as failures.
|
|
158
|
+
|
|
159
|
+
## Getting a check
|
|
160
|
+
|
|
161
|
+
- **Free: the scan.** Run `kamanu scan` on your own limits. Nothing leaves your machine.
|
|
162
|
+
- **Free: a documented check.** One page on your limit, built only from your public documents, every
|
|
163
|
+
constant marked assumed, sent to you privately with a week to correct facts.
|
|
164
|
+
- **Authorization Assurance Sprint.** One programme, one limit configuration, one authorization path,
|
|
165
|
+
one sandbox, three working days: what your path let through that did not fit, what it refused that
|
|
166
|
+
did, the shortest trace and a regression test for each, and a signed receipt per limit. List price
|
|
167
|
+
9,500 USD; 4,500 USD for each of three founding programmes. Half at signing, half on delivery; a full
|
|
168
|
+
refund if the result on the contracted path is UNKNOWN. Never production credentials or live funds.
|
|
169
|
+
|
|
170
|
+
Write to jerenyame@gmail.com with a link to the page that describes your limit, the processor or engine
|
|
171
|
+
underneath it, and whether you have a sandbox.
|
|
172
|
+
|
|
173
|
+
## Use it responsibly
|
|
174
|
+
|
|
175
|
+
Run probes only against your own deployments, test networks, or systems whose owners have published
|
|
176
|
+
a scope that covers the testing. If you find that someone else's limit can be exceeded, tell them
|
|
177
|
+
before you tell anyone else. How to report a problem with KAMANU itself: [SECURITY.md](https://github.com/nkamoah17/kamanu/blob/main/SECURITY.md).
|
|
178
|
+
|
|
179
|
+
## Licence, citing and contact
|
|
180
|
+
|
|
181
|
+
Code: Apache 2.0 ([LICENSE](https://github.com/nkamoah17/kamanu/blob/main/LICENSE)). Records: CDLA-Permissive-2.0 ([RECORDS-LICENSE](https://github.com/nkamoah17/kamanu/blob/main/RECORDS-LICENSE)).
|
|
182
|
+
The TLA+ tools and Joern are downloaded separately under their own licences. Third-party
|
|
183
|
+
documentation copied into the repository as test evidence keeps its original licence. To cite a
|
|
184
|
+
result, give the record's file and the commit it names. KAMANU is run by Kenneth Amoah Nyame; write to
|
|
185
|
+
jerenyame@gmail.com.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
Community Data License Agreement - Permissive - Version 2.0
|
|
2
|
+
|
|
3
|
+
This is the Community Data License Agreement - Permissive, Version 2.0 (the "agreement"). Data Provider(s) and Data Recipient(s) agree as follows:
|
|
4
|
+
|
|
5
|
+
1. Provision of the Data
|
|
6
|
+
|
|
7
|
+
1.1. A Data Recipient may use, modify, and share the Data made available by Data Provider(s) under this agreement if that Data Recipient follows the terms of this agreement.
|
|
8
|
+
|
|
9
|
+
1.2. This agreement does not impose any restriction on a Data Recipient's use, modification, or sharing of any portions of the Data that are in the public domain or that may be used, modified, or shared under any other legal exception or limitation.
|
|
10
|
+
|
|
11
|
+
2. Conditions for Sharing Data
|
|
12
|
+
|
|
13
|
+
2.1. A Data Recipient may share Data, with or without modifications, so long as the Data Recipient makes available the text of this agreement with the shared Data.
|
|
14
|
+
|
|
15
|
+
3. No Restrictions on Results
|
|
16
|
+
|
|
17
|
+
3.1. This agreement does not impose any restriction or obligations with respect to the use, modification, or sharing of Results.
|
|
18
|
+
|
|
19
|
+
4. No Warranty; Limitation of Liability
|
|
20
|
+
|
|
21
|
+
4.1. All Data Recipients receive the Data subject to the following terms:
|
|
22
|
+
|
|
23
|
+
THE DATA IS PROVIDED ON AN "AS IS" BASIS, WITHOUT REPRESENTATIONS, WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
|
24
|
+
|
|
25
|
+
NO DATA PROVIDER SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE DATA OR RESULTS, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
|
26
|
+
|
|
27
|
+
5. Definitions
|
|
28
|
+
|
|
29
|
+
5.1. "Data" means the material received by a Data Recipient under this agreement.
|
|
30
|
+
|
|
31
|
+
5.2. "Data Provider" means any person who is the source of Data provided under this agreement and in reliance on a Data Recipient's agreement to its terms.
|
|
32
|
+
|
|
33
|
+
5.3. "Data Recipient" means any person who receives Data directly or indirectly from a Data Provider and agrees to the terms of this agreement.
|
|
34
|
+
|
|
35
|
+
5.4. "Results" means any outcome obtained by computational analysis of Data, including for example machine learning models and models' insights.
|
|
36
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Adapters: compile a real engine's policy language to a kernel Permit(view, r)."""
|