urml-validator 0.5.2__tar.gz → 0.5.3__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.
- {urml_validator-0.5.2 → urml_validator-0.5.3}/.gitignore +6 -8
- urml_validator-0.5.3/LICENSE +127 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/PKG-INFO +2 -1
- {urml_validator-0.5.2 → urml_validator-0.5.3}/pyproject.toml +1 -1
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/__init__.py +1 -1
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/_version.py +1 -1
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/cli.py +81 -2
- urml_validator-0.5.3/src/urml_validator/evidence_keys/__init__.py +1 -0
- urml_validator-0.5.3/src/urml_validator/evidence_keys/allowed_signers +12 -0
- urml_validator-0.5.3/src/urml_validator/evidence_render.py +255 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/evidence_report.py +65 -3
- urml_validator-0.5.3/src/urml_validator/evidence_sign.py +450 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/init_templates.py +3 -3
- urml_validator-0.5.3/src/urml_validator/policies/us_federal_default.yaml +195 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/schemas/manifest.py +1 -2
- urml_validator-0.5.3/tests/fixtures/evidence/amr-warehouse/expected.html +139 -0
- urml_validator-0.5.3/tests/fixtures/evidence/amr-warehouse/expected.json +1287 -0
- urml_validator-0.5.3/tests/fixtures/evidence/amr-warehouse/expected.md +129 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/evidence/drone-parcel/expected.json +14 -75
- urml_validator-0.5.3/tests/fixtures/evidence/drone-vendor/expected.html +130 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/evidence/drone-vendor/expected.json +14 -75
- urml_validator-0.5.3/tests/fixtures/evidence/drone-vendor/expected.md +120 -0
- urml_validator-0.5.3/tests/fixtures/evidence/drone-vendor/expected.redacted.json +918 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/evidence/home-helper/expected.json +2 -1
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/evidence/industrial-cell/expected.json +2 -1
- urml_validator-0.5.3/tests/fixtures/evidence/signing/allowed_signers +4 -0
- urml_validator-0.5.3/tests/fixtures/evidence/signing/not-a-report.txt +1 -0
- urml_validator-0.5.3/tests/fixtures/evidence/signing/not-a-report.txt.sig +6 -0
- urml_validator-0.5.3/tests/fixtures/evidence/signing/report-file-namespace.json.sig +6 -0
- urml_validator-0.5.3/tests/fixtures/evidence/signing/report-retired.json +1286 -0
- urml_validator-0.5.3/tests/fixtures/evidence/signing/report-retired.json.sig +6 -0
- urml_validator-0.5.3/tests/fixtures/evidence/signing/report.json +1286 -0
- urml_validator-0.5.3/tests/fixtures/evidence/signing/report.json.sig +6 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/hesai_lidar_denied.yaml +2 -1
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/unitree_quadruped_denied.yaml +4 -3
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_amr_rulebook_template.py +42 -5
- urml_validator-0.5.3/tests/test_cybersecurity_template.py +129 -0
- urml_validator-0.5.3/tests/test_default_policy_sources.py +133 -0
- urml_validator-0.5.3/tests/test_eu_ai_act.py +144 -0
- urml_validator-0.5.3/tests/test_eu_cyber_resilience_act.py +130 -0
- urml_validator-0.5.3/tests/test_eu_machinery_regulation.py +146 -0
- urml_validator-0.5.3/tests/test_evidence_render.py +110 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_evidence_report.py +17 -3
- urml_validator-0.5.3/tests/test_evidence_report_example.py +86 -0
- urml_validator-0.5.3/tests/test_evidence_sign.py +258 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_fleet_validation.py +1 -1
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_functional_safety_template.py +51 -10
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_industrial_rulebook_template.py +48 -8
- urml_validator-0.5.3/tests/test_machinery_safety_template.py +151 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_rulebook_files.py +7 -1
- urml_validator-0.5.3/tests/test_service_robot_template.py +155 -0
- urml_validator-0.5.3/tests/test_standards_directory.py +93 -0
- urml_validator-0.5.2/src/urml_validator/policies/us_federal_default.yaml +0 -130
- {urml_validator-0.5.2 → urml_validator-0.5.3}/README.md +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/errors.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/evidence.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/hbom.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/monitor.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/monitorable.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/policies/__init__.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/policy_engine.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/py.typed +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/rulebook_engine.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/rulebooks/__init__.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/rulebooks/us_faa_part107.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/schema_export.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/schemas/__init__.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/schemas/common.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/schemas/composition.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/schemas/connectivity.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/schemas/envelope.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/schemas/policy.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/schemas/primitives.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/schemas/program.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/schemas/roster.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/schemas/rulebook.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/transforms.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/src/urml_validator/validator.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/__init__.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/envelopes/biped_gentle_grip.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/envelopes/drone_default.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/envelopes/drone_delivery_envelope.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/envelopes/drone_low_ceiling.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/envelopes/drone_override_zone.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/envelopes/drone_with_altitude_band.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/envelopes/drone_with_geofence.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/envelopes/drone_with_occupancy_zone.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/envelopes/home_default.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/envelopes/home_monitorable_ok.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/envelopes/home_monitorable_parse_error.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/envelopes/home_monitorable_undeclared_signal.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/envelopes/home_with_geofence.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/envelopes/industrial_cell_guarded.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/envelopes/link_loss_continue_autonomous.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/envelopes/link_loss_halt.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/envelopes/link_loss_hover.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/envelopes/link_loss_outage_relaxed.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/envelopes/link_loss_rth.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/envelopes/social_default.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/envelopes/social_tight.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/envelopes/warehouse_aisles_a.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/envelopes/warehouse_default.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/envelopes/warehouse_low_reach.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/envelopes/warehouse_with_occupancy_zone.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/evidence/amr-warehouse/amr-rules.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/evidence/amr-warehouse/declarations.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/evidence/amr-warehouse/envelope.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/evidence/amr-warehouse/functional-safety.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/evidence/amr-warehouse/manifest.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/evidence/amr-warehouse/scenario.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/evidence/drone-parcel/conformance-report.json +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/evidence/drone-parcel/scenario.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/evidence/drone-vendor/conformance-report.json +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/evidence/drone-vendor/registry-entry.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/evidence/drone-vendor/scenario.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/evidence/drone-vendor/too-high.urml.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/evidence/home-helper/home-rules.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/evidence/home-helper/manifest.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/evidence/home-helper/scenario.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/evidence/industrial-cell/functional-safety.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/evidence/industrial-cell/industrial-rules.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/evidence/industrial-cell/manifest.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/evidence/industrial-cell/scenario.yaml +0 -0
- /urml_validator-0.5.2/tests/fixtures/evidence/amr-warehouse/expected.json → /urml_validator-0.5.3/tests/fixtures/evidence/signing/report-file-namespace.json +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/adafruit_feather_rp2040_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/anymal_quadruped.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/apollo_biped.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/ati_ft_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/autosar_ara_com.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/autosar_ara_com_incomplete.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/autosar_ecu_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/autoware_av.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/autoware_av_no_map.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/autoware_av_research.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/bluerov_marine.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/bota_ft_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/chrono_vehicle_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/clearpath_husky.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/cobot_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/cobot_cell_outputs.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/cognex_vision_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/comau_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/conveyor_gripper_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/declared_intent_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/declared_intent_unknown.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/declared_intent_unsupported.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/denso_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/deployment_commercial_gated.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/deployment_noncommercial_gated.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/digit_bimanual.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/digit_biped.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/digit_wholebody.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/digit_wholebody_fourlegs.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/digit_wholebody_no_carry.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/digit_wholebody_unstable.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/doosan_cobot_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/drone_autopilot_custom_no_note.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/drone_civilian.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/drone_civilian_connectivity.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/drone_connectivity_no_home.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/drone_delivery.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/drone_high_ceiling.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/drone_no_autopilot_class.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/educational_buggy.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/epson_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/esp32_firmware_node.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/evidence_mixed.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/fanuc_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/festo_dhep_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/figure_biped.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/ghost_vision60.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/ground_connectivity_no_station_keeping.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/hanwha_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/hbom/clean.cdx.json +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/hbom/cn_chip.cdx.json +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/hbom/malformed.cdx.json +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/hbom/vendor_of_vendor.cdx.json +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/hokuyo_lidar_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/hyundai_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/industrial_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/industrial_cell_connectivity.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/interception_hand_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/isaac_arm_sim.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/kassow_cobot_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/kawasaki_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/kawasaki_rs_no_peer_link.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/kinova_cobot_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/kuka_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/language_full.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/language_nllb.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/language_vosk.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/language_whisper.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/leap_hand_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/lego_spike_driving_base.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/licensing_cap_exceeded.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/licensing_clean.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/licensing_vendored_gpl.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/mecademic_cobot_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/microbit_edu.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/microbit_minimal_node.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/microbit_minimal_node_bad_output.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/microbit_minimal_node_mobility.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/mitsubishi_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/mujoco_arm_sim.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/nachi_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/neo_biped.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/neura_cobot_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/omron_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/onrobot_magnetic_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/opcua_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/optimus_biped.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/ouster_3d_lidar_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/petoi_bittle_x.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/photoneo_motioncam_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/piab_vacuum_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/provenance_hbom_clean.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/provenance_hbom_cn_chip.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/provenance_hbom_vendor_of_vendor.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/reachy_mini.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/robotical_marty_v2.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/robotiq_2f85_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/schmalz_vacuum_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/schunk_mpg_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/sick_safety_lidar_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/soft_robotics_compliant_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/spot_arm.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/spot_quadruped.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/staubli_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/stm32_firmware_node.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/substrate_ipc_custom_no_note.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/substrate_ipc_iceoryx1_no_runtime.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/substrate_ipc_iceoryx2.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/substrate_ipc_no_config.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/substrate_ipc_runtime_on_iceoryx2.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/substrate_qos_keep_last_no_depth.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/substrate_realtime_cyclic.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/substrate_realtime_watchdog_short.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/substrate_rmw_custom_no_note.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/techman_cobot_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/thymio_classroom.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/translation_nllb_no_alt.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/translation_nllb_permissive_alt.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/translation_open_llm_primary.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/turtlebot4_home.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/turtlebot4_home_areas.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/turtlebot4_home_cn_critical.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/turtlebot4_home_connectivity.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/turtlebot4_home_dji_vendor.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/turtlesim_mobile.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/unitree_g1_wholebody.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/unitree_g1_wholebody_unstable.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/ur_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/utm_drone.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/utm_ground.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/utm_rov.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/vex_v5_clawbot.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/warehouse_areas.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/warehouse_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/yaskawa_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/manifests/zivid_two_cell.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/policies/hbom_no_cn_components.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/policies/permissive.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/policies/require_evidence_derived.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/rulebooks/deployment_indoor_lab.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/fixtures/rulebooks/deployment_no_remote_id.yaml +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_ara_com_binding.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_architecture_svg.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_audit_store.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_autonomy_boundary_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_av.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_base_intent_node.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_base_mobility_bounds.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_behavior_tree_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_bittle_demo_svg.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_camera_rfc0682.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_cli.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_cli_conformance.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_cli_evidence.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_cli_execute.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_cli_rulebooks.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_cli_run.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_connectivity_pass2.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_cram_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_crazyswarm2_dispatch.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_decart_oasis_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_declared_intent.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_demo_svg.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_deployment.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_dexterous.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_dobot_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_drive_radius.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_drone_primitives.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_dynamic_grasp_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_envelope_coverage.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_epically_powerful_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_evidence.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_evidence_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_examples_dont_rot.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_executorch_policy_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_fieldbus_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_firmware_descriptor.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_goalkeeper_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_gopigo3_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_gym_pybullet_drones_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_hbom_policy.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_home_rulebook_template.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_inav_mission.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_init_cli.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_isaac_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_kawasaki_demo_svg.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_kortex_dispatch.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_lang2ltl_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_language.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_learned_policies_rfc0617.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_learned_policy_rfc0383.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_licensing.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_link_loss_pass3.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_minimal_node.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_monitor.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_monitorable_envelope_rfc0382.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_monitorable_parser.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_mtconnect_task_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_opcua_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_openscenario_export.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_physical_ai_safety_eval_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_policy.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_portability_svg.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_realtime.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_relative_motion_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_replan_feedback.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_robocasa_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_robotiq_hande_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_rtic_timing_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_rulebooks.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_safety_monitor_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_schema_export.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_schemas_parse.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_set_output.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_speak_listen.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_spot_capture_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_substrate_autopilot_class.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_substrate_clock_bringup.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_substrate_ipc.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_substrate_rmw_implementation.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_transforms.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_translation_alternatives.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_turtlebot4_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_urdf_to_manifest_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_validation_block_rfc0381.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_validator.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_vitra_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_vla_gate.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_world_model_example.py +0 -0
- {urml_validator-0.5.2 → urml_validator-0.5.3}/tests/test_world_model_rfc0615.py +0 -0
|
@@ -97,15 +97,13 @@ desktop.ini
|
|
|
97
97
|
.local/
|
|
98
98
|
.scratch/
|
|
99
99
|
|
|
100
|
-
# --- Outreach
|
|
101
|
-
#
|
|
102
|
-
#
|
|
103
|
-
#
|
|
100
|
+
# --- Outreach and distribution records (RFC-0710) ---
|
|
101
|
+
# This repository holds no outreach or distribution state. Target lists,
|
|
102
|
+
# message drafts, ledgers and their derived databases live in the Licensor's
|
|
103
|
+
# private archive. These patterns keep a stray local copy out of a commit.
|
|
104
104
|
outreach/
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
# examples/lighthouses/outreach*.yaml via tools/scripts/refresh_outreach_db.py.
|
|
108
|
-
# Regenerated on demand by `make outreach-refresh`.
|
|
105
|
+
examples/lighthouses/
|
|
106
|
+
tools/outreach_app/
|
|
109
107
|
tools/outreach.db
|
|
110
108
|
tools/.outreach.db
|
|
111
109
|
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
Business Source License 1.1
|
|
2
|
+
|
|
3
|
+
Parameters
|
|
4
|
+
|
|
5
|
+
Licensor: Yahalomik Ltd.
|
|
6
|
+
|
|
7
|
+
Licensed Work: URML (Universal Robot Language): the
|
|
8
|
+
specification, reference runtimes, validator, LLM
|
|
9
|
+
bridge, MCP server, conformance suite, tools and
|
|
10
|
+
examples in this repository, in every version
|
|
11
|
+
released after 0.4.x and in all source published
|
|
12
|
+
here on or after 2026-11-22.
|
|
13
|
+
The Licensed Work is (c) 2026 Yahalomik Ltd.
|
|
14
|
+
|
|
15
|
+
Releases up to and including 0.4.x, and source
|
|
16
|
+
published before 2026-11-22, were released under
|
|
17
|
+
the Apache License, Version 2.0 and remain under it.
|
|
18
|
+
Files that carry their own LICENSE file (for
|
|
19
|
+
example examples/gopigo3/) are under that license.
|
|
20
|
+
|
|
21
|
+
Additional Use Grant: You may make non-production use of the Licensed
|
|
22
|
+
Work. Non-production use includes research,
|
|
23
|
+
teaching and coursework, evaluation and
|
|
24
|
+
proof-of-concept work, development and testing,
|
|
25
|
+
simulation, and personal projects that are not
|
|
26
|
+
offered or sold to others.
|
|
27
|
+
|
|
28
|
+
Any other use, including operating robots in a
|
|
29
|
+
commercial or business setting, shipping the
|
|
30
|
+
Licensed Work in a product, or offering it as a
|
|
31
|
+
service, requires a commercial license from the
|
|
32
|
+
Licensor: sales@urml.dev
|
|
33
|
+
|
|
34
|
+
Change Date: Four years from the date each version of the
|
|
35
|
+
Licensed Work is first publicly released.
|
|
36
|
+
|
|
37
|
+
Versions first publicly released with a Change
|
|
38
|
+
Date of two years, including 0.5.0, 0.5.1 and
|
|
39
|
+
0.5.2, and source published here from 2026-11-22
|
|
40
|
+
until this four-year Change Date was first
|
|
41
|
+
published here, keep it: two years from the date
|
|
42
|
+
each was first publicly released.
|
|
43
|
+
|
|
44
|
+
Change License: Apache License, Version 2.0
|
|
45
|
+
|
|
46
|
+
For information about alternative licensing arrangements for the Licensed
|
|
47
|
+
Work, please contact sales@urml.dev.
|
|
48
|
+
|
|
49
|
+
Notice
|
|
50
|
+
|
|
51
|
+
The Business Source License (this document, or the "License") is not an Open
|
|
52
|
+
Source license. However, the Licensed Work will eventually be made available
|
|
53
|
+
under an Open Source License, as stated in this License.
|
|
54
|
+
|
|
55
|
+
License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved.
|
|
56
|
+
"Business Source License" is a trademark of MariaDB Corporation Ab.
|
|
57
|
+
|
|
58
|
+
-----------------------------------------------------------------------------
|
|
59
|
+
|
|
60
|
+
Business Source License 1.1
|
|
61
|
+
|
|
62
|
+
Terms
|
|
63
|
+
|
|
64
|
+
The Licensor hereby grants you the right to copy, modify, create derivative
|
|
65
|
+
works, redistribute, and make non-production use of the Licensed Work. The
|
|
66
|
+
Licensor may make an Additional Use Grant, above, permitting limited
|
|
67
|
+
production use.
|
|
68
|
+
|
|
69
|
+
Effective on the Change Date, or the fourth anniversary of the first publicly
|
|
70
|
+
available distribution of a specific version of the Licensed Work under this
|
|
71
|
+
License, whichever comes first, the Licensor hereby grants you rights under
|
|
72
|
+
the terms of the Change License, and the rights granted in the paragraph
|
|
73
|
+
above terminate.
|
|
74
|
+
|
|
75
|
+
If your use of the Licensed Work does not comply with the requirements
|
|
76
|
+
currently in effect as described in this License, you must purchase a
|
|
77
|
+
commercial license from the Licensor, its affiliated entities, or authorized
|
|
78
|
+
resellers, or you must refrain from using the Licensed Work.
|
|
79
|
+
|
|
80
|
+
All copies of the original and modified Licensed Work, and derivative works
|
|
81
|
+
of the Licensed Work, are subject to this License. This License applies
|
|
82
|
+
separately for each version of the Licensed Work and the Change Date may vary
|
|
83
|
+
for each version of the Licensed Work released by Licensor.
|
|
84
|
+
|
|
85
|
+
You must conspicuously display this License on each original or modified copy
|
|
86
|
+
of the Licensed Work. If you receive the Licensed Work in original or
|
|
87
|
+
modified form from a third party, the terms and conditions set forth in this
|
|
88
|
+
License apply to your use of that work.
|
|
89
|
+
|
|
90
|
+
Any use of the Licensed Work in violation of this License will automatically
|
|
91
|
+
terminate your rights under this License for the current and all other
|
|
92
|
+
versions of the Licensed Work.
|
|
93
|
+
|
|
94
|
+
This License does not grant you any right in any trademark or logo of
|
|
95
|
+
Licensor or its affiliates (provided that you may use a trademark or logo of
|
|
96
|
+
Licensor as expressly required by this License).
|
|
97
|
+
|
|
98
|
+
TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
|
|
99
|
+
AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
|
|
100
|
+
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
|
|
101
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
|
|
102
|
+
TITLE.
|
|
103
|
+
|
|
104
|
+
MariaDB hereby grants you permission to use this License’s text to license
|
|
105
|
+
your works, and to refer to it using the trademark “Business Source License”,
|
|
106
|
+
as long as you comply with the Covenants of Licensor below.
|
|
107
|
+
|
|
108
|
+
Covenants of Licensor
|
|
109
|
+
|
|
110
|
+
In consideration of the right to use this License’s text and the “Business
|
|
111
|
+
Source License” name and trademark, Licensor covenants to MariaDB, and to all
|
|
112
|
+
other recipients of the licensed work to be provided by Licensor:
|
|
113
|
+
|
|
114
|
+
1. To specify as the Change License the GPL Version 2.0 or any later version,
|
|
115
|
+
or a license that is compatible with GPL Version 2.0 or a later version,
|
|
116
|
+
where “compatible” means that software provided under the Change License can
|
|
117
|
+
be included in a program with software provided under GPL Version 2.0 or a
|
|
118
|
+
later version. Licensor may specify additional Change Licenses without
|
|
119
|
+
limitation.
|
|
120
|
+
|
|
121
|
+
2. To either: (a) specify an additional grant of rights to use that does not
|
|
122
|
+
impose any additional restriction on the right granted in this License, as
|
|
123
|
+
the Additional Use Grant; or (b) insert the text “None”.
|
|
124
|
+
|
|
125
|
+
3. To specify a Change Date.
|
|
126
|
+
|
|
127
|
+
4. Not to modify this License in any other way.
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: urml-validator
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.3
|
|
4
4
|
Summary: Static verification engine for URML — Universal Robot Language
|
|
5
5
|
Project-URL: Homepage, https://github.com/urml-dev/URML
|
|
6
6
|
Project-URL: Repository, https://github.com/urml-dev/URML
|
|
7
7
|
Project-URL: Issues, https://github.com/urml-dev/URML/issues
|
|
8
8
|
Author: URML Maintainers
|
|
9
9
|
License: BUSL-1.1
|
|
10
|
+
License-File: LICENSE
|
|
10
11
|
Keywords: robotics,specification,urml,validator
|
|
11
12
|
Classifier: Development Status :: 3 - Alpha
|
|
12
13
|
Classifier: Intended Audience :: Developers
|
|
@@ -9,7 +9,7 @@ before execution.
|
|
|
9
9
|
The schemas are the source of truth; JSON Schema is exported on demand for
|
|
10
10
|
non-Python consumers (the LLM bridge prompt contract, etc.).
|
|
11
11
|
|
|
12
|
-
Stability: 0.5.
|
|
12
|
+
Stability: 0.5.3. The schemas track the RFC-0002 vocabulary; the
|
|
13
13
|
five-pass validator and `urml` CLI are shipped, and the namespaced
|
|
14
14
|
error codes in `errors.py` are a stable public API.
|
|
15
15
|
"""
|
|
@@ -822,8 +822,49 @@ def build_parser() -> argparse.ArgumentParser:
|
|
|
822
822
|
p_evidence_build.add_argument(
|
|
823
823
|
"--out", "-o", type=Path, default=None, metavar="PATH", help="Write the report to PATH instead of stdout."
|
|
824
824
|
)
|
|
825
|
+
p_evidence_build.add_argument(
|
|
826
|
+
"--format",
|
|
827
|
+
dest="report_format",
|
|
828
|
+
choices=("json", "md", "html"),
|
|
829
|
+
default="json",
|
|
830
|
+
help=(
|
|
831
|
+
"json (the default) is the canonical report; md and html render it for people. "
|
|
832
|
+
"html is one static file with no scripts."
|
|
833
|
+
),
|
|
834
|
+
)
|
|
835
|
+
p_evidence_build.add_argument(
|
|
836
|
+
"--redact",
|
|
837
|
+
action="store_true",
|
|
838
|
+
help=(
|
|
839
|
+
"Write a copy fit to share outside the site: coordinates, polygons, altitude bands and "
|
|
840
|
+
"program messages removed; names, statuses and counts kept; the full report's sha256 recorded."
|
|
841
|
+
),
|
|
842
|
+
)
|
|
825
843
|
p_evidence_build.set_defaults(func=cmd_evidence_build)
|
|
826
844
|
|
|
845
|
+
p_evidence_verify = p_evidence_sub.add_parser(
|
|
846
|
+
"verify",
|
|
847
|
+
help="Verify a signed evidence report offline.",
|
|
848
|
+
description=(
|
|
849
|
+
"Verify an OpenSSH signature (ssh-keygen -Y sign, namespace evidence-report@urml.dev) over "
|
|
850
|
+
"the exact bytes of an evidence report, against the Licensor keys shipped in this package or "
|
|
851
|
+
"--allowed-signers. Offline. Exit 0 for a good signature, 1 for a bad or untrusted one, 2 "
|
|
852
|
+
"when a file cannot be read. A good signature is not a certification."
|
|
853
|
+
),
|
|
854
|
+
)
|
|
855
|
+
p_evidence_verify.add_argument("report", type=Path, metavar="REPORT", help="The report JSON file.")
|
|
856
|
+
p_evidence_verify.add_argument(
|
|
857
|
+
"signature", type=Path, nargs="?", default=None, metavar="SIGNATURE", help="Default: REPORT.sig."
|
|
858
|
+
)
|
|
859
|
+
p_evidence_verify.add_argument(
|
|
860
|
+
"--allowed-signers",
|
|
861
|
+
type=Path,
|
|
862
|
+
default=None,
|
|
863
|
+
metavar="PATH",
|
|
864
|
+
help="An OpenSSH allowed-signers file to trust instead of the bundled Licensor keys.",
|
|
865
|
+
)
|
|
866
|
+
p_evidence_verify.set_defaults(func=cmd_evidence_verify)
|
|
867
|
+
|
|
827
868
|
return parser
|
|
828
869
|
|
|
829
870
|
|
|
@@ -948,7 +989,20 @@ def cmd_evidence_build(args: argparse.Namespace) -> int:
|
|
|
948
989
|
except (_CLILoadError, EvidenceInputError) as exc:
|
|
949
990
|
print(f"urml: {exc}", file=sys.stderr)
|
|
950
991
|
return 2
|
|
951
|
-
|
|
992
|
+
if args.redact:
|
|
993
|
+
from urml_validator.evidence_report import redact_report
|
|
994
|
+
|
|
995
|
+
report = redact_report(report)
|
|
996
|
+
if args.report_format == "md":
|
|
997
|
+
from urml_validator.evidence_render import render_markdown
|
|
998
|
+
|
|
999
|
+
text = render_markdown(report)
|
|
1000
|
+
elif args.report_format == "html":
|
|
1001
|
+
from urml_validator.evidence_render import render_html
|
|
1002
|
+
|
|
1003
|
+
text = render_html(report)
|
|
1004
|
+
else:
|
|
1005
|
+
text = render_json(report)
|
|
952
1006
|
if args.out is None:
|
|
953
1007
|
sys.stdout.write(text)
|
|
954
1008
|
else:
|
|
@@ -958,12 +1012,37 @@ def cmd_evidence_build(args: argparse.Namespace) -> int:
|
|
|
958
1012
|
print(
|
|
959
1013
|
f"urml: evidence report for {report.subject['robot_id']}: "
|
|
960
1014
|
+ ", ".join(f"{n} {status}" for status, n in counts.by_status.items())
|
|
961
|
-
+ f"; {counts.failed_checks} failed
|
|
1015
|
+
+ f"; {counts.failed_checks} failed check{'' if counts.failed_checks == 1 else 's'}.",
|
|
962
1016
|
file=sys.stderr,
|
|
963
1017
|
)
|
|
964
1018
|
return 0 if counts.gaps == 0 else 1
|
|
965
1019
|
|
|
966
1020
|
|
|
1021
|
+
def cmd_evidence_verify(args: argparse.Namespace) -> int:
|
|
1022
|
+
"""Implement `urml evidence verify` (RFC-0707, Draft)."""
|
|
1023
|
+
from urml_validator.evidence_sign import SignatureError, verify_report_file
|
|
1024
|
+
|
|
1025
|
+
signature = args.signature or args.report.with_name(args.report.name + ".sig")
|
|
1026
|
+
for path, kind in ((args.report, "report"), (signature, "signature"), (args.allowed_signers, "allowed signers")):
|
|
1027
|
+
if path is not None and not path.is_file():
|
|
1028
|
+
print(f"urml: {kind} file not found: {path}", file=sys.stderr)
|
|
1029
|
+
return 2
|
|
1030
|
+
try:
|
|
1031
|
+
result = verify_report_file(args.report, signature, args.allowed_signers)
|
|
1032
|
+
except (SignatureError, UnicodeDecodeError) as exc:
|
|
1033
|
+
print(f"urml: {exc}", file=sys.stderr)
|
|
1034
|
+
return 2
|
|
1035
|
+
if result.good:
|
|
1036
|
+
print(
|
|
1037
|
+
f"Good signature by {result.principal} ({result.fingerprint}) on the evidence report for "
|
|
1038
|
+
f"{result.robot_id} as of {result.as_of}. It says the signer rebuilt and reviewed this report; "
|
|
1039
|
+
"it is not a certification and not a safety or compliance determination."
|
|
1040
|
+
)
|
|
1041
|
+
return 0
|
|
1042
|
+
print(f"Not verified: {result.reason}.", file=sys.stderr)
|
|
1043
|
+
return 1
|
|
1044
|
+
|
|
1045
|
+
|
|
967
1046
|
def _load_conformance_report(path: Path | None) -> tuple[dict[str, Any] | None, str | None]:
|
|
968
1047
|
"""Read a conformance report as JSON, with the sha256 of its bytes for a registry pin."""
|
|
969
1048
|
if path is None:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""The Licensor's public keys for signed evidence reports (RFC-0707), as package data."""
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Keys whose signatures on evidence reports `urml evidence verify` trusts
|
|
2
|
+
# (RFC-0707). OpenSSH allowed-signers format, Ed25519 keys only:
|
|
3
|
+
#
|
|
4
|
+
# <principal> namespaces="evidence-report@urml.dev"[,valid-after="YYYYMMDD"][,valid-before="YYYYMMDD"] <type> <base64>
|
|
5
|
+
#
|
|
6
|
+
# Only the Licensor's keys belong here. A retired key stays, with a
|
|
7
|
+
# valid-before date, so reports it signed keep verifying. Every change to
|
|
8
|
+
# this file is a reviewed commit: the history is the key's record.
|
|
9
|
+
#
|
|
10
|
+
# No Licensor key is published yet. Until one is, `urml evidence verify`
|
|
11
|
+
# reports that no key is available, and a signature cannot verify against
|
|
12
|
+
# the bundled file. See docs/evidence/signing.md.
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
"""Human forms of an evidence report: Markdown and one static HTML file (RFC-0707, step 3).
|
|
2
|
+
|
|
3
|
+
Both render the JSON report and add nothing it lacks: every item, with its
|
|
4
|
+
status and text, appears in every form, and the notice opens every form. The
|
|
5
|
+
HTML is a single file with inline styles, no scripts and no external requests,
|
|
6
|
+
so it opens offline and can be attached to an audit file. Both are
|
|
7
|
+
deterministic: the same report gives the same text.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from __future__ import annotations
|
|
11
|
+
|
|
12
|
+
import html
|
|
13
|
+
from collections.abc import Iterator
|
|
14
|
+
|
|
15
|
+
from urml_validator.evidence_report import STATUSES, EvidenceReport, Item, Section
|
|
16
|
+
|
|
17
|
+
#: What each status means, as a reader-facing legend.
|
|
18
|
+
STATUS_MEANING = {
|
|
19
|
+
"checked": "The validator checks this before a program runs.",
|
|
20
|
+
"declared": "Someone states this; URML records who and does not verify it.",
|
|
21
|
+
"runtime": "The runtime must enforce this while a program runs.",
|
|
22
|
+
"missing": "Something a rule, the policy or the envelope needs is absent.",
|
|
23
|
+
"outside": "URML cannot see this; someone else must cover it.",
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def _gaps(report: EvidenceReport) -> Iterator[tuple[Section, Item]]:
|
|
28
|
+
for section in report.sections:
|
|
29
|
+
for item in section.items:
|
|
30
|
+
if item.status == "missing" or item.result == "fail":
|
|
31
|
+
yield section, item
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def _status_label(item: Item) -> str:
|
|
35
|
+
return f"{item.status}, {item.result}" if item.result is not None else item.status
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def _subtitle(report: EvidenceReport) -> str:
|
|
39
|
+
parts = [f"As of {report.as_of}", f"urml-validator {report.inputs.validator['version']}"]
|
|
40
|
+
if report.inputs.profiles:
|
|
41
|
+
parts.append("profiles: " + ", ".join(report.inputs.profiles))
|
|
42
|
+
parts.append(f"policy: {report.inputs.policy}")
|
|
43
|
+
return " · ".join(parts)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def _redaction_line(report: EvidenceReport) -> str:
|
|
47
|
+
assert report.redaction is not None
|
|
48
|
+
n = len(report.redaction.removed)
|
|
49
|
+
return (
|
|
50
|
+
f"Redacted copy: {n} value{'s' if n != 1 else ''} removed (site geometry and program messages). "
|
|
51
|
+
f"The full report's sha256 is {report.redaction.full_report_sha256}."
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def _gap_line(report: EvidenceReport) -> str:
|
|
56
|
+
c = report.counts
|
|
57
|
+
if c.gaps == 0:
|
|
58
|
+
return "Gaps: none. Nothing is missing and no check failed."
|
|
59
|
+
failed = f"{c.failed_checks} failed check" + ("" if c.failed_checks == 1 else "s")
|
|
60
|
+
return f"Gaps: {c.gaps} ({c.by_status['missing']} missing, {failed})."
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
# ---------------------------------------------------------------------------
|
|
64
|
+
# Markdown
|
|
65
|
+
# ---------------------------------------------------------------------------
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
def _cell(text: str) -> str:
|
|
69
|
+
return text.replace("\\", "\\\\").replace("|", "\\|").replace("\n", " ")
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
def render_markdown(report: EvidenceReport) -> str:
|
|
73
|
+
"""The report as Markdown: summary, gaps, every section, by standard, inputs."""
|
|
74
|
+
robot = report.subject.get("robot_id") or "robot"
|
|
75
|
+
out: list[str] = [f"# Evidence report: {robot}", "", f"> {report.notice}", "", _subtitle(report), ""]
|
|
76
|
+
if report.redaction is not None:
|
|
77
|
+
out += [_redaction_line(report), ""]
|
|
78
|
+
|
|
79
|
+
out += ["## Summary", "", "| Status | Items | Meaning |", "|---|---|---|"]
|
|
80
|
+
for status in STATUSES:
|
|
81
|
+
out.append(f"| `{status}` | {report.counts.by_status[status]} | {STATUS_MEANING[status]} |")
|
|
82
|
+
out += ["", _gap_line(report), ""]
|
|
83
|
+
|
|
84
|
+
gaps = list(_gaps(report))
|
|
85
|
+
if gaps:
|
|
86
|
+
out += ["## Gaps", ""]
|
|
87
|
+
for section, item in gaps:
|
|
88
|
+
out.append(f"- **{section.title}** `{item.id}` ({_status_label(item)}): {_cell(item.text)}")
|
|
89
|
+
out.append("")
|
|
90
|
+
|
|
91
|
+
for section in report.sections:
|
|
92
|
+
out += [f"## {section.title}", ""]
|
|
93
|
+
if not section.items:
|
|
94
|
+
out += [section.note or "No items.", ""]
|
|
95
|
+
continue
|
|
96
|
+
out += ["| Status | Item | What the report knows |", "|---|---|---|"]
|
|
97
|
+
for item in section.items:
|
|
98
|
+
out.append(f"| `{_status_label(item)}` | `{item.id}` | {_cell(item.text)} |")
|
|
99
|
+
out.append("")
|
|
100
|
+
|
|
101
|
+
out += ["## By standard", ""]
|
|
102
|
+
if not report.by_standard:
|
|
103
|
+
out += ["No rule or obligation cites a standard.", ""]
|
|
104
|
+
else:
|
|
105
|
+
out += ["| Standard | " + " | ".join(STATUSES) + " |", "|---|" + "---|" * len(STATUSES)]
|
|
106
|
+
for group in report.by_standard:
|
|
107
|
+
counts = " | ".join(str(len(group.items.get(s, []))) for s in STATUSES)
|
|
108
|
+
out.append(f"| {_cell(group.standard)} | {counts} |")
|
|
109
|
+
out.append("")
|
|
110
|
+
|
|
111
|
+
out += ["## Inputs", "", "| Role | Id | File | Digest |", "|---|---|---|---|"]
|
|
112
|
+
for ref in report.inputs.files:
|
|
113
|
+
name = "bundled" if ref.bundled else (ref.name or "")
|
|
114
|
+
out.append(f"| {ref.role} | {_cell(ref.id or '')} | {_cell(name)} | `{ref.digest}` |")
|
|
115
|
+
out += [
|
|
116
|
+
"",
|
|
117
|
+
"Rebuild this report from the same files with `urml evidence build` and the same `--as-of` "
|
|
118
|
+
"date, and compare digests.",
|
|
119
|
+
"",
|
|
120
|
+
]
|
|
121
|
+
return "\n".join(out)
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
# ---------------------------------------------------------------------------
|
|
125
|
+
# HTML
|
|
126
|
+
# ---------------------------------------------------------------------------
|
|
127
|
+
|
|
128
|
+
_STYLE = """
|
|
129
|
+
:root{--bg:#fbfaf7;--fg:#1d1d1b;--muted:#5d5d57;--rule:#dcd9d0;--card:#ffffff;
|
|
130
|
+
--checked:#1f6f43;--declared:#7a5a00;--runtime:#2a5a9e;--missing:#b3261e;--outside:#5d5d57}
|
|
131
|
+
@media (prefers-color-scheme:dark){:root{--bg:#161614;--fg:#ecebe6;--muted:#a3a29b;--rule:#3a3934;
|
|
132
|
+
--card:#1f1f1c;--checked:#6fcf97;--declared:#e2b93b;--runtime:#7fb0f0;--missing:#ff8a80;--outside:#a3a29b}}
|
|
133
|
+
*{box-sizing:border-box}
|
|
134
|
+
body{margin:0;background:var(--bg);color:var(--fg);font:15px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif}
|
|
135
|
+
main{max-width:1040px;margin:0 auto;padding:32px 16px 64px}
|
|
136
|
+
h1{font-size:26px;margin:0 0 12px}h2{font-size:19px;margin:36px 0 10px;border-bottom:1px solid var(--rule);
|
|
137
|
+
padding-bottom:6px}
|
|
138
|
+
.notice{border-left:4px solid var(--missing);background:var(--card);padding:10px 14px;margin:0 0 12px;font-weight:600}
|
|
139
|
+
.sub,.note{color:var(--muted)}
|
|
140
|
+
table{width:100%;border-collapse:collapse;background:var(--card)}
|
|
141
|
+
th,td{text-align:left;vertical-align:top;padding:7px 10px;border-bottom:1px solid var(--rule)}
|
|
142
|
+
th{font-size:13px;color:var(--muted);font-weight:600}
|
|
143
|
+
td.id,code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;overflow-wrap:break-word}
|
|
144
|
+
a{color:var(--runtime)}
|
|
145
|
+
.s{display:inline-block;padding:1px 8px;border-radius:10px;font-size:12px;font-weight:600;border:1px solid;
|
|
146
|
+
white-space:nowrap}
|
|
147
|
+
.s-checked{color:var(--checked)}.s-declared{color:var(--declared)}.s-runtime{color:var(--runtime)}
|
|
148
|
+
.s-missing{color:var(--missing)}.s-outside{color:var(--outside)}.s-fail{color:var(--missing)}
|
|
149
|
+
.wrap{overflow-x:auto}
|
|
150
|
+
@media (max-width:640px){td.id{max-width:140px}}
|
|
151
|
+
""".strip()
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
def _e(text: str) -> str:
|
|
155
|
+
return html.escape(text, quote=True)
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
def _id(item_id: str) -> str:
|
|
159
|
+
"""An item id, escaped, with break opportunities after its dots."""
|
|
160
|
+
return _e(item_id).replace(".", ".<wbr>")
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
def _badge(item: Item) -> str:
|
|
164
|
+
cls = "s-fail" if item.result == "fail" else f"s-{item.status}"
|
|
165
|
+
return f'<span class="s {cls}">{_e(_status_label(item))}</span>'
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
def render_html(report: EvidenceReport) -> str:
|
|
169
|
+
"""The report as one static HTML page: inline styles, no scripts, no external requests."""
|
|
170
|
+
robot = report.subject.get("robot_id") or "robot"
|
|
171
|
+
out: list[str] = [
|
|
172
|
+
"<!doctype html>",
|
|
173
|
+
'<html lang="en">',
|
|
174
|
+
"<head>",
|
|
175
|
+
'<meta charset="utf-8">',
|
|
176
|
+
'<meta name="viewport" content="width=device-width, initial-scale=1">',
|
|
177
|
+
f"<title>Evidence report: {_e(robot)}</title>",
|
|
178
|
+
f"<style>{_STYLE}</style>",
|
|
179
|
+
"</head>",
|
|
180
|
+
"<body>",
|
|
181
|
+
"<main>",
|
|
182
|
+
f"<h1>Evidence report: {_e(robot)}</h1>",
|
|
183
|
+
f'<p class="notice">{_e(report.notice)}</p>',
|
|
184
|
+
f'<p class="sub">{_e(_subtitle(report))}</p>',
|
|
185
|
+
*([f'<p class="note"><strong>{_e(_redaction_line(report))}</strong></p>'] if report.redaction else []),
|
|
186
|
+
"<h2>Summary</h2>",
|
|
187
|
+
'<div class="wrap"><table><thead><tr><th>Status</th><th>Items</th><th>Meaning</th></tr></thead><tbody>',
|
|
188
|
+
]
|
|
189
|
+
for status in STATUSES:
|
|
190
|
+
out.append(
|
|
191
|
+
f'<tr><td><span class="s s-{status}">{status}</span></td>'
|
|
192
|
+
f"<td>{report.counts.by_status[status]}</td><td>{_e(STATUS_MEANING[status])}</td></tr>"
|
|
193
|
+
)
|
|
194
|
+
out += ["</tbody></table></div>", f"<p><strong>{_e(_gap_line(report))}</strong></p>"]
|
|
195
|
+
|
|
196
|
+
gaps = list(_gaps(report))
|
|
197
|
+
if gaps:
|
|
198
|
+
out += ["<h2>Gaps</h2>", "<ul>"]
|
|
199
|
+
for section, item in gaps:
|
|
200
|
+
out.append(
|
|
201
|
+
f'<li><a href="#{_e(item.id)}"><code>{_id(item.id)}</code></a> '
|
|
202
|
+
f"({_e(section.title)}, {_badge(item)}): {_e(item.text)}</li>"
|
|
203
|
+
)
|
|
204
|
+
out.append("</ul>")
|
|
205
|
+
|
|
206
|
+
for section in report.sections:
|
|
207
|
+
out.append(f'<h2 id="section-{_e(section.id)}">{_e(section.title)}</h2>')
|
|
208
|
+
if not section.items:
|
|
209
|
+
out.append(f'<p class="note">{_e(section.note or "No items.")}</p>')
|
|
210
|
+
continue
|
|
211
|
+
out.append(
|
|
212
|
+
'<div class="wrap"><table><thead><tr><th>Status</th><th>Item</th>'
|
|
213
|
+
"<th>What the report knows</th></tr></thead><tbody>"
|
|
214
|
+
)
|
|
215
|
+
for item in section.items:
|
|
216
|
+
out.append(
|
|
217
|
+
f'<tr id="{_e(item.id)}"><td>{_badge(item)}</td><td class="id">{_id(item.id)}</td>'
|
|
218
|
+
f"<td>{_e(item.text)}</td></tr>"
|
|
219
|
+
)
|
|
220
|
+
out.append("</tbody></table></div>")
|
|
221
|
+
|
|
222
|
+
out.append("<h2>By standard</h2>")
|
|
223
|
+
if not report.by_standard:
|
|
224
|
+
out.append('<p class="note">No rule or obligation cites a standard.</p>')
|
|
225
|
+
else:
|
|
226
|
+
head = "".join(f"<th>{s}</th>" for s in STATUSES)
|
|
227
|
+
out.append(f'<div class="wrap"><table><thead><tr><th>Standard</th>{head}</tr></thead><tbody>')
|
|
228
|
+
for group in report.by_standard:
|
|
229
|
+
cells = "".join(f"<td>{len(group.items.get(s, []))}</td>" for s in STATUSES)
|
|
230
|
+
out.append(f"<tr><td>{_e(group.standard)}</td>{cells}</tr>")
|
|
231
|
+
out.append("</tbody></table></div>")
|
|
232
|
+
|
|
233
|
+
out += [
|
|
234
|
+
"<h2>Inputs</h2>",
|
|
235
|
+
'<div class="wrap"><table><thead><tr><th>Role</th><th>Id</th><th>File</th><th>Digest</th></tr></thead><tbody>',
|
|
236
|
+
]
|
|
237
|
+
for ref in report.inputs.files:
|
|
238
|
+
name = "bundled" if ref.bundled else (ref.name or "")
|
|
239
|
+
out.append(
|
|
240
|
+
f"<tr><td>{_e(ref.role)}</td><td>{_e(ref.id or '')}</td><td>{_e(name)}</td>"
|
|
241
|
+
f'<td class="id">{_e(ref.digest)}</td></tr>'
|
|
242
|
+
)
|
|
243
|
+
out += [
|
|
244
|
+
"</tbody></table></div>",
|
|
245
|
+
'<p class="note">Rebuild this report from the same files with <code>urml evidence build</code> and the '
|
|
246
|
+
"same <code>--as-of</code> date, and compare digests.</p>",
|
|
247
|
+
"</main>",
|
|
248
|
+
"</body>",
|
|
249
|
+
"</html>",
|
|
250
|
+
"",
|
|
251
|
+
]
|
|
252
|
+
return "\n".join(out)
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
__all__ = ["STATUS_MEANING", "render_html", "render_markdown"]
|