From f912dd2a7b5e2e0e74a9eea9a603151d57ce899d Mon Sep 17 00:00:00 2001 From: Brad Edwards Date: Sun, 26 Jul 2026 01:10:38 +0200 Subject: [PATCH 01/10] feat!: complete the RAES Python namespace hard cut Remove the aces and aces_* import packages, rename every owning package to raes_*, and retarget packaging, policy, schemas, documentation, and consumers. BREAKING CHANGE: The aces, aces_sdl, and aces_* Python namespaces and old console entry points are removed without compatibility aliases. Consumers must import raes and raes_* packages and invoke the raes commands. --- .../SKILL.md | 6 +- .../agents/openai.yaml | 2 +- .../capture-container-evidence-template.sh | 2 +- .../scripts/normalize-syft-cyclonedx.jq | 0 .../raes-gap-remediation-implement}/SKILL.md | 2 +- .../agents/openai.yaml | 2 +- .../SKILL.md | 6 +- .../agents/openai.yaml | 2 +- .../capture-container-evidence-template.sh | 2 +- .../scripts/normalize-syft-cyclonedx.jq | 0 .../raes-gap-remediation-implement}/SKILL.md | 2 +- .../agents/openai.yaml | 2 +- .gc/plan-rules.md | 9 +- .github/workflows/release-please.yml | 12 +- README.md | 2 +- .../behavioral-relations-v1.json | 6 +- .../valid/reference.json | 2 +- .../delivery-assessment-2026-07-12.json | 8 +- .../entries/aces-semantic-invariants-v1.json | 6 +- .../associated-artifact-manifest-v1.json | 6 +- .../entries/behavioral-relations-v1.json | 6 +- .../experiment-apparatus-context-v1.json | 6 +- .../experiment-authoring-input-v1.json | 6 +- .../entries/experiment-capture-spec-v1.json | 6 +- .../experiment-derived-measure-v1.json | 6 +- .../experiment-evidence-record-v1.json | 6 +- .../entries/experiment-run-v1.json | 6 +- .../entries/experiment-study-v1.json | 6 +- .../entries/experiment-task-v1.json | 6 +- .../exploit-path-analysis-evidence-v1.json | 6 +- .../instantiated-scenario-snapshot-v1.json | 6 +- .../entries/instantiated-scenario-v1.json | 6 +- .../entries/participant-context-view-v1.json | 6 +- .../participant-control-occurrence-v1.json | 6 +- .../participant-decision-surface-v1.json | 6 +- .../participant-joint-action-record-v1.json | 6 +- .../participant-lifecycle-event-v1.json | 6 +- .../participant-observation-envelope-v1.json | 6 +- .../participant-outcome-report-v1.json | 6 +- .../participant-shared-state-record-v1.json | 6 +- ...articipant-time-management-context-v1.json | 6 +- .../entries/random-stream-profile-v1.json | 6 +- .../entries/random-stream-vector-v1.json | 6 +- .../entries/realization-envelope-v1.json | 6 +- .../reusable-asset-trust-policy-v1.json | 6 +- .../runtime-fact-binding-plane-v1.json | 6 +- .../entries/runtime-snapshot-v1.json | 6 +- .../scenario-satisfiability-evidence-v1.json | 6 +- .../entries/scheduler-isolation-proof-v1.json | 6 +- ...scientific-completeness-assessment-v1.json | 6 +- .../scientific-completeness-taxonomy-v1.json | 6 +- .../entries/sdl-authoring-input-v1.json | 6 +- .../entries/trial-cleanup-plan-v1.json | 6 +- .../entries/trial-cleanup-receipt-v1.json | 6 +- .../validation-basis-disclosure-v1.json | 6 +- .../validation-profile-catalog-v1.json | 6 +- .../reusable-asset-trust-policy-v1.json | 4 +- .../associated-artifact-manifest-v1.json | 2 +- .../behavioral-relations-v1.json | 2 +- .../participant-context-view-v1.json | 4 +- .../participant-decision-surface-v1.json | 6 +- .../scheduler-isolation-proof-v1.json | 2 +- .../trial-cleanup-receipt-v1.json | 2 +- .../experiment-apparatus-context-v1.json | 10 +- .../experiment-authoring-input-v1.json | 12 +- .../experiment-capture-spec-v1.json | 6 +- .../experiment-derived-measure-v1.json | 6 +- .../experiment-evidence-record-v1.json | 6 +- .../experiment-core/experiment-run-v1.json | 48 +-- .../experiment-core/experiment-study-v1.json | 32 +- .../experiment-core/experiment-task-v1.json | 20 +- .../exploit-path-analysis-evidence-v1.json | 6 +- .../participant-control-occurrence-v1.json | 6 +- .../participant-joint-action-record-v1.json | 2 +- .../participant-lifecycle-event-v1.json | 2 +- .../participant-observation-envelope-v1.json | 2 +- .../participant-outcome-report-v1.json | 2 +- .../participant-shared-state-record-v1.json | 2 +- ...articipant-time-management-context-v1.json | 2 +- .../runtime-fact-binding-plane-v1.json | 2 +- .../schemas/plans/trial-cleanup-plan-v1.json | 2 +- .../profiles/aces-semantic-invariants-v1.json | 6 +- .../profiles/random-stream-profile-v1.json | 2 +- .../profiles/random-stream-vector-v1.json | 2 +- ...scientific-completeness-assessment-v1.json | 4 +- .../scientific-completeness-taxonomy-v1.json | 4 +- .../validation-basis-disclosure-v1.json | 8 +- .../validation-profile-catalog-v1.json | 2 +- .../realization-envelope-v1.json | 2 +- .../scenario-satisfiability-evidence-v1.json | 10 +- .../instantiated-scenario-snapshot-v1.json | 8 +- .../schemas/sdl/instantiated-scenario-v1.json | 8 +- .../schemas/sdl/sdl-authoring-input-v1.json | 8 +- .../snapshots/runtime-snapshot-v1.json | 2 +- docs/api/cli.rst | 10 +- docs/api/contracts.rst | 16 +- docs/api/processor-semantics.rst | 6 +- docs/api/processor.rst | 42 +-- docs/api/runtime.rst | 22 +- docs/api/sdl-semantics.rst | 2 +- ...aes-rename-and-compatibility-boundaries.md | 17 +- ...4-raes-python-import-hard-cut-preflight.md | 16 +- ...84-reframe-raes-documentation-preflight.md | 6 +- docs/explain/reference/backend-conformance.md | 35 +- docs/explain/reference/coding-standards.md | 2 +- .../explicitness-realization-semantics.md | 22 +- .../reference/fm-classification-ledger.yaml | 2 +- .../reference/normative-artifact-authority.md | 13 +- .../reference/realization-envelopes.md | 16 +- .../reference/reference-emulation-backend.md | 22 +- ...cenario-variation-and-trial-realization.md | 12 +- .../reference/shared-semantic-integrity.md | 54 ++-- docs/explain/releasing.md | 4 +- docs/explain/sdl/index.md | 2 +- docs/explain/sdl/limitations.md | 2 +- docs/explain/sdl/parser.md | 6 +- docs/explain/sdl/runtime-architecture.md | 21 +- docs/explain/sdl/validation.md | 2 +- docs/index.md | 2 +- docs/lessons/README.md | 6 +- docs/migration/raes-rename.md | 49 ++- docs/{aces => raes}/inventory/ad-preflight.md | 8 +- .../asset-inventory-issue-template.md | 12 +- .../inventory/asset-inventory-methodology.md | 6 +- docs/{aces => raes}/inventory/index.md | 0 .../issue-516-redaction-boundary-preflight.md | 6 +- .../inventory/kali-preflight.md | 16 +- .../inventory/methodology-assurance-report.md | 0 .../scn010-expressivity-gap-analysis.md | 2 +- .../inventory/webapp-preflight.md | 12 +- ...rprise-participant-evidence-loop.README.md | 12 +- .../techvault-guest-certified.sdl.yaml | 2 +- implementations/python/hatch_build.py | 4 +- .../packages/aces_backend_stubs/__init__.py | 1 - .../packages/aces_conformance/runner.py | 23 -- .../packages/aces_contracts/__init__.py | 1 - .../python/packages/aces_mcp/__main__.py | 6 - .../packages/aces_operations/__init__.py | 1 - .../raes/_realization_envelope_domains.py | 2 +- .../raes/_realization_envelope_engine.py | 2 +- .../_realization_envelope_probe_payloads.py | 2 +- .../python/packages/raes/agent_guidance.py | 2 +- .../python/packages/raes/explicitness.py | 2 +- .../python/packages/raes/image_provenance.py | 2 +- .../packages/raes/participant_behavior.py | 2 +- .../packages/raes/participant_execution.py | 2 +- .../packages/raes/realization_designation.py | 2 +- .../packages/raes/realization_envelope.py | 4 +- .../packages/raes/runtime_capabilities.py | 2 +- .../packages/raes/runtime_file_service.py | 2 +- .../packages/raes/runtime_service_units.py | 4 +- .../python/packages/raes/scenarios.py | 2 +- .../packages/raes/semantics/__init__.py | 2 +- .../raes/semantics/objective_semantics.py | 2 +- .../raes/semantics/participant_behavior.py | 8 +- .../python/packages/raes/time_model.py | 2 +- .../_participant_execution_renderers.py | 2 +- .../packages/raes/validator/_time_model.py | 2 +- .../packages/raes/validator/_variation.py | 2 +- .../raes/validator/_workflows_verify.py | 2 +- .../python/packages/raes/variation.py | 2 +- .../__init__.py | 2 +- .../_payload.py | 2 +- .../_techvault_native_helpers.py | 0 .../_techvault_native_ops.py | 6 +- .../acls.py | 6 +- .../capability_envelope.py | 10 +- .../cloudinit.py | 2 +- .../dialects.py | 0 .../driver.py | 14 +- .../drivers/__init__.py | 0 .../drivers/_libvirt_xml.py | 8 +- .../drivers/libvirt.py | 24 +- .../drivers/seed.py | 0 .../envelopes.py | 4 +- .../guest_appliance.py | 0 .../guest_certified_driver.py | 4 +- .../guest_observation.py | 6 +- .../guest_transport.py | 0 .../manifest.py | 6 +- .../participant_domain.py | 2 +- .../participant_runtime.py | 6 +- .../provisioner.py | 12 +- .../realization.py | 12 +- .../target.py | 4 +- .../techvault_appliance.py | 0 .../techvault_concerns.py | 4 +- .../techvault_lifecycle.py | 2 +- .../techvault_matrix.py | 2 +- .../techvault_native.py | 6 +- .../techvault_observation.py | 2 +- .../techvault_plan_admission.py | 8 +- .../techvault_probe.py | 0 .../__init__.py | 0 .../_domain_topology_binding.py | 2 +- .../account_features.py | 2 +- .../backend_manifest.py | 6 +- .../capabilities.py | 6 +- .../capability_admission.py | 4 +- .../domain_topology.py | 8 +- .../manifest.py | 6 +- .../naming.py | 2 +- .../participant_action_commit.py | 6 +- .../participant_capabilities.py | 6 +- .../participant_reset.py | 6 +- .../participant_runtime_base.py | 12 +- .../protocols.py | 14 +- .../provisioner_capabilities.py | 2 +- .../service_materialization.py | 8 +- .../time_capabilities.py | 2 +- .../packages/raes_backend_stubs/__init__.py | 1 + .../evaluation_support.py | 6 +- .../manifest.py | 16 +- .../stubs.py | 12 +- .../{aces_cli => raes_cli}/__init__.py | 0 .../{aces_cli => raes_cli}/conformance.py | 10 +- .../packages/{aces_cli => raes_cli}/corpus.py | 2 +- .../{aces_cli => raes_cli}/libvirt.py | 4 +- .../packages/{aces_cli => raes_cli}/main.py | 2 +- .../{aces_cli => raes_cli}/processor.py | 22 +- .../packages/{aces_cli => raes_cli}/sdl.py | 2 +- .../__init__.py | 0 .../_realization_models.py | 8 +- .../_realization_validation.py | 8 +- .../conformance/__init__.py | 20 +- .../conformance/diagnostics.py | 2 +- .../conformance/fixture_suite.py | 12 +- .../conformance/observability.py | 6 +- .../conformance/profiles.py | 8 +- .../conformance/report.py | 10 +- .../conformance/semantics.py | 18 +- .../conformance/snapshot_semantics.py | 22 +- .../conformance/target.py | 24 +- .../conformance/target_probes.py | 28 +- .../conformance/validators.py | 14 +- .../realization.py | 8 +- .../time_semantics.py | 8 +- .../packages/raes_contracts/__init__.py | 1 + .../_base.py | 2 +- .../_participant_behavior_types.py | 2 +- .../_validation.py | 0 .../addressing.py | 0 .../apparatus.py | 0 .../associated_artifacts.py | 0 .../backend_profiles.py | 0 .../behavioral_relations.py | 0 .../bounded_domains.py | 2 +- .../contracts/__init__.py | 2 +- .../contracts/_trial_cleanup_validation.py | 0 .../contracts/associated_artifacts.py | 2 +- .../contracts/base.py | 2 +- .../contracts/bundle.py | 22 +- .../contracts/capabilities.py | 0 .../contracts/catalogs.py | 0 .../contracts/execution_state.py | 0 .../contracts/experiment_analysis.py | 0 .../contracts/experiment_apparatus.py | 4 +- .../contracts/experiment_artifacts.py | 0 .../contracts/experiment_capture.py | 4 +- .../contracts/experiment_conditions.py | 0 .../contracts/experiment_disclosure.py | 6 +- .../contracts/experiment_evidence.py | 12 +- .../experiment_manifest_references.py | 2 +- .../contracts/experiment_references.py | 2 +- .../contracts/experiment_run.py | 6 +- .../contracts/experiment_run_stochastic.py | 2 +- .../contracts/experiment_spec.py | 8 +- .../contracts/experiment_study.py | 4 +- .../contracts/manifests.py | 0 .../contracts/participant_context.py | 6 +- .../contracts/participant_control.py | 4 +- .../participant_control_validation.py | 0 .../contracts/participant_decision_surface.py | 6 +- .../participant_decision_surface_exposure.py | 0 .../contracts/participant_envelopes.py | 2 +- .../contracts/participant_manifests.py | 0 .../contracts/participant_runtime.py | 0 .../contracts/participant_views.py | 0 .../contracts/random_stream.py | 14 +- .../contracts/realization_plans.py | 0 .../contracts/reusable_assets.py | 4 +- .../contracts/runtime_facts.py | 0 .../contracts/schema_constraints.py | 10 +- .../contracts/schema_invariants.py | 12 +- .../contracts/semantic_profiles.py | 0 .../contracts/time_model.py | 0 .../contracts/trial_cleanup.py | 6 +- .../contracts/validation_disclosure.py | 12 +- .../contracts/validation_disclosure_gates.py | 2 +- .../contracts/validation_subject_reference.py | 0 .../contracts/validators.py | 0 .../contracts/vocabulary_sources.py | 0 .../controlled_vocabularies.py | 0 .../corpus.py | 10 +- .../diagnostics.py | 0 .../evaluation.py | 4 +- .../experiment_spec.py | 2 +- .../exploit_path.py | 6 +- .../manifest_authority.py | 0 .../participant_autonomous_state.py | 4 +- .../participant_behavior.py | 0 .../participant_binding.py | 0 .../participant_concurrency.py | 0 .../participant_concurrency_time.py | 0 .../participant_episode.py | 6 +- .../participant_episode_snapshot.py | 2 +- .../participant_shared_state.py | 0 .../plan_projection.py | 4 +- .../planning.py | 6 +- .../provenance.py | 10 +- .../random_stream_engine.py | 0 .../random_stream_profiles.py | 0 .../realization_envelope.py | 10 +- .../realization_envelope_carrier.py | 6 +- .../realization_observation.py | 2 +- .../reference_models.py | 0 .../runtime_state.py | 18 +- .../satisfiability.py | 2 +- .../scientific_completeness.py | 0 .../semantic_binding_effects.py | 4 +- .../semantic_profiles.py | 0 .../uco_alignment.py | 0 .../validation_profiles.py | 0 .../versions.py | 0 .../vocabulary.py | 2 +- .../workflow.py | 4 +- .../{aces_mcp => raes_mcp}/__init__.py | 0 .../python/packages/raes_mcp/__main__.py | 6 + .../packages/{aces_mcp => raes_mcp}/server.py | 16 +- .../{aces_mcp => raes_mcp}/tools/__init__.py | 0 .../{aces_mcp => raes_mcp}/tools/authoring.py | 0 .../tools/completeness.py | 6 +- .../tools/experiment_authoring.py | 2 +- .../tools/inspection.py | 0 .../tools/language_service.py | 2 +- .../tools/operation_support.py | 2 +- .../tools/operations.py | 20 +- .../{aces_mcp => raes_mcp}/tools/reference.py | 0 .../packages/raes_operations/__init__.py | 1 + .../_cross_backend_corpus_backend_runs.py | 14 +- .../_cross_backend_corpus_ledger.py | 4 +- .../_cross_backend_corpus_validation.py | 2 +- .../_evidence_run_artifact.py | 20 +- .../_evidence_run_native.py | 10 +- .../_evidence_run_realization.py | 0 .../_evidence_run_types.py | 6 +- .../_evidence_run_validation.py | 6 +- .../_techvault_cleanup.py | 2 +- .../cross_backend_corpus.py | 28 +- .../deterministic_participant_fixtures.py | 12 +- .../libvirt_evidence_run.py | 30 +- .../realization_conformance.py | 4 +- .../run_artifacts.py | 0 .../techvault_live.py | 26 +- .../__init__.py | 0 .../capabilities.py | 6 +- .../compiler/__init__.py | 2 +- .../compiler/_mixed_control.py | 0 .../compiler/addresses.py | 2 +- .../compiler/alias_index.py | 0 .../compiler/evaluation.py | 0 .../compiler/objectives.py | 0 .../compiler/orchestration.py | 0 .../compiler/participant_behaviors.py | 0 .../compiler/participant_contracts.py | 0 .../compiler/pipeline.py | 0 .../compiler/placement.py | 0 .../compiler/provisioning.py | 2 +- .../compiler/realization_requirements.py | 0 .../compiler/ref_resolution.py | 0 .../compiler/stateful_resources.py | 0 .../compiler/support.py | 2 +- .../compiler/time_model.py | 4 +- .../compiler/view_relations.py | 0 .../compiler/workflow_steps.py | 2 +- .../compiler/workflows.py | 2 +- .../exploit_path/__init__.py | 0 .../exploit_path/_diagnostics.py | 4 +- .../exploit_path/_preflight.py | 8 +- .../exploit_path/_search.py | 4 +- .../exploit_path/_service.py | 4 +- .../manifest.py | 8 +- .../models/__init__.py | 130 ++++---- .../models/action_results.py | 2 +- .../models/attribution.py | 0 .../models/behavior_anchor_checks.py | 4 +- .../models/behavior_anchor_index.py | 2 +- .../models/behavior_grounding_checks.py | 4 +- .../models/behavior_history_violations.py | 2 +- .../models/behavior_ref_checks.py | 2 +- .../models/behavior_resources.py | 8 +- .../models/decision_surface.py | 2 +- .../models/history_event.py | 2 +- .../models/history_event_grounding.py | 0 .../models/history_event_payloads.py | 2 +- .../models/outcome.py | 0 .../outcome_interpretation_validation.py | 0 .../models/participant_exposure.py | 4 +- .../models/participant_exposure_authority.py | 2 +- .../models/participant_exposure_policy.py | 2 +- .../models/resources.py | 10 +- .../models/runtime_model.py | 14 +- .../models/temporal.py | 0 .../models/time_model.py | 2 +- .../planner/__init__.py | 0 .../planner/capability_domains.py | 2 +- .../planner/core.py | 10 +- .../planner/manifest_validation.py | 2 +- .../planner/operations.py | 2 +- .../planner/ordering.py | 0 .../planner/resources.py | 0 .../reference.py | 18 +- .../satisfiability/__init__.py | 0 .../satisfiability/_service.py | 2 +- .../satisfiability/_solver.py | 2 +- .../satisfiability/_translation.py | 4 +- .../semantics/__init__.py | 0 .../semantics/planner.py | 2 +- .../semantics/realization.py | 20 +- .../__init__.py | 4 +- .../driver.py | 18 +- .../drivers/__init__.py | 0 .../drivers/inprocess.py | 6 +- .../drivers/oci.py | 12 +- .../evaluator.py | 6 +- .../manifest.py | 8 +- .../orchestrator.py | 4 +- .../participant_runtime.py | 2 +- .../provisioner.py | 6 +- .../realization.py | 10 +- .../target.py | 4 +- .../__init__.py | 2 +- .../apply_failure.py | 4 +- .../backend_calls.py | 14 +- .../control_plane.py | 16 +- .../control_plane_api.py | 6 +- .../control_plane_api_guards.py | 0 .../control_plane_api_models.py | 10 +- ...control_plane_api_participant_retrieval.py | 2 +- .../control_plane_execution.py | 6 +- .../control_plane_security.py | 0 .../control_plane_store.py | 12 +- .../control_plane_timeouts.py | 6 +- .../control_plane_workflows.py | 4 +- .../diagnostics.py | 2 +- .../evaluation_result_contracts.py | 8 +- .../{aces_runtime => raes_runtime}/manager.py | 14 +- .../operational_apparatus.py | 4 +- .../participant_action_validation.py | 6 +- .../participant_clock_driver.py | 6 +- .../participant_control.py | 14 +- .../participant_execution_control.py | 10 +- .../participant_result_contracts.py | 12 +- .../participant_retrieval.py | 6 +- .../participant_scheduler.py | 10 +- .../participant_scheduler_operations.py | 10 +- .../proposition_truth_contracts.py | 6 +- .../registry.py | 6 +- .../registry_probes.py | 4 +- .../result_contracts.py | 0 .../runtime_fact_binding_policy.py | 2 +- .../runtime_fact_bindings.py | 4 +- .../runtime_fact_dispatch.py | 2 +- .../time_control.py | 12 +- .../time_coordinator.py | 16 +- .../workflow_result_contract_checks.py | 8 +- .../workflow_result_contract_compensation.py | 4 +- .../workflow_result_contract_context.py | 6 +- .../workflow_result_contracts.py | 0 implementations/python/pyproject.toml | 64 ++-- implementations/python/src/aces/__init__.py | 11 - implementations/python/src/aces/_compat.py | 42 --- .../python/src/aces/backends/__init__.py | 1 - .../python/src/aces/backends/stubs.py | 5 - .../python/src/aces/cli/__init__.py | 1 - implementations/python/src/aces/cli/main.py | 5 - implementations/python/src/aces/cli/sdl.py | 5 - .../python/src/aces/core/__init__.py | 1 - .../python/src/aces/core/runtime/__init__.py | 1 - .../src/aces/core/runtime/capabilities.py | 5 - .../python/src/aces/core/runtime/compiler.py | 5 - .../src/aces/core/runtime/conformance.py | 5 - .../python/src/aces/core/runtime/contracts.py | 5 - .../src/aces/core/runtime/control_plane.py | 5 - .../aces/core/runtime/control_plane_api.py | 5 - .../core/runtime/control_plane_security.py | 5 - .../aces/core/runtime/control_plane_store.py | 5 - .../python/src/aces/core/runtime/manager.py | 5 - .../python/src/aces/core/runtime/models.py | 5 - .../python/src/aces/core/runtime/planner.py | 5 - .../python/src/aces/core/runtime/protocols.py | 5 - .../python/src/aces/core/runtime/registry.py | 5 - .../python/src/aces/core/scenarios.py | 5 - .../python/src/aces/core/sdl/__init__.py | 7 - .../python/src/aces/core/sdl/_base.py | 5 - .../python/src/aces/core/sdl/_errors.py | 5 - .../python/src/aces/core/sdl/_source.py | 5 - .../python/src/aces/core/sdl/accounts.py | 5 - .../python/src/aces/core/sdl/agents.py | 5 - .../python/src/aces/core/sdl/composition.py | 5 - .../python/src/aces/core/sdl/conditions.py | 5 - .../python/src/aces/core/sdl/content.py | 5 - .../python/src/aces/core/sdl/entities.py | 5 - .../python/src/aces/core/sdl/features.py | 5 - .../src/aces/core/sdl/infrastructure.py | 5 - .../python/src/aces/core/sdl/instantiate.py | 5 - .../src/aces/core/sdl/module_registry.py | 5 - .../python/src/aces/core/sdl/nodes.py | 5 - .../python/src/aces/core/sdl/objectives.py | 5 - .../python/src/aces/core/sdl/orchestration.py | 5 - .../python/src/aces/core/sdl/parser.py | 5 - .../python/src/aces/core/sdl/relationships.py | 5 - .../python/src/aces/core/sdl/scenario.py | 5 - .../python/src/aces/core/sdl/validator.py | 5 - .../python/src/aces/core/sdl/variables.py | 5 - .../src/aces/core/sdl/vulnerabilities.py | 5 - .../src/aces/core/semantics/__init__.py | 1 - .../src/aces/core/semantics/assessment.py | 5 - .../core/semantics/objective_semantics.py | 5 - .../src/aces/core/semantics/objectives.py | 5 - .../python/src/aces/core/semantics/planner.py | 5 - .../src/aces/core/semantics/workflow.py | 5 - .../tests/libvirt_conformance_fixtures.py | 2 +- .../tests/libvirt_participant_fixtures.py | 10 +- .../python/tests/libvirt_participant_proof.py | 18 +- .../tests/test_act_617_mixed_control.py | 2 +- .../tests/test_agent_inventory_skill.py | 36 +-- ...api_409_participant_control_occurrences.py | 4 +- .../tests/test_api_421_time_contracts.py | 14 +- .../test_associated_artifact_manifests.py | 8 +- .../tests/test_authored_domain_topology.py | 28 +- .../python/tests/test_authority_boundary.py | 2 +- .../tests/test_backend_conformance_cli.py | 4 +- .../python/tests/test_backend_manifest.py | 14 +- .../tests/test_backend_manifest_v2_adapter.py | 6 +- .../python/tests/test_backend_profiles.py | 4 +- ...test_backend_protocols_account_features.py | 2 +- .../tests/test_behavioral_relation_claims.py | 2 +- .../python/tests/test_behavioral_relations.py | 8 +- .../python/tests/test_concept_authority.py | 4 +- .../tests/test_conformance_facade_parity.py | 19 +- .../tests/test_controlled_vocabularies.py | 6 +- .../python/tests/test_corpus_packaging.py | 30 +- .../python/tests/test_corpus_resources.py | 54 ++-- .../python/tests/test_cross_backend_corpus.py | 4 +- .../tests/test_deprecation_lifecycle.py | 9 +- .../tests/test_domain_controller_placement.py | 32 +- .../test_dsl_115_authoring_specificity.py | 2 +- ...st_dsl_437_benign_participant_execution.py | 32 +- .../test_dsl_437_evaluation_authority.py | 2 +- ...dsl_437_snapshot_durability_conformance.py | 10 +- .../test_enterprise_deployment_tenancy.py | 4 +- .../tests/test_example_schema_conformance.py | 6 +- .../python/tests/test_experiment_authoring.py | 6 +- .../tests/test_exploit_path_analysis.py | 6 +- .../python/tests/test_exploit_path_cli.py | 2 +- .../python/tests/test_fm2_semantics.py | 10 +- .../tests/test_initial_service_state.py | 20 +- .../test_instantiated_scenario_schema.py | 2 +- .../python/tests/test_libvirt_backend_cli.py | 20 +- .../tests/test_libvirt_backend_cloudinit.py | 2 +- .../tests/test_libvirt_backend_dialects.py | 2 +- .../tests/test_libvirt_backend_driver.py | 8 +- .../tests/test_libvirt_backend_envelopes.py | 18 +- .../test_libvirt_backend_guest_certified.py | 26 +- ...rt_backend_guest_certified_real_libvirt.py | 2 +- .../tests/test_libvirt_backend_manifest.py | 8 +- ...st_libvirt_backend_manifest_publication.py | 14 +- .../tests/test_libvirt_backend_provisioner.py | 12 +- .../tests/test_libvirt_backend_realization.py | 6 +- .../tests/test_libvirt_backend_registry.py | 8 +- .../test_libvirt_backend_techvault_honesty.py | 18 +- ...t_libvirt_backend_techvault_integration.py | 10 +- .../test_libvirt_backend_techvault_native.py | 22 +- ..._libvirt_backend_techvault_real_libvirt.py | 2 +- .../python/tests/test_libvirt_conformance.py | 10 +- .../python/tests/test_libvirt_evidence_run.py | 10 +- .../tests/test_libvirt_participant_runtime.py | 26 +- .../python/tests/test_mcp_server.py | 4 +- .../tests/test_network_namespace_sharing.py | 10 +- ...test_observability_evidence_conformance.py | 2 +- .../test_participant_backend_contracts.py | 2 +- ...est_participant_implementation_manifest.py | 6 +- .../test_participant_interactive_access.py | 4 +- .../python/tests/test_pipeline_determinism.py | 10 +- .../python/tests/test_plan_inspection_cli.py | 10 +- .../python/tests/test_plan_projection.py | 12 +- .../python/tests/test_processor_manifest.py | 14 +- .../python/tests/test_project_positioning.py | 8 +- .../tests/test_proposition_capabilities.py | 4 +- .../tests/test_proposition_semantics.py | 2 +- .../tests/test_random_stream_collisions.py | 6 +- .../tests/test_random_stream_contracts.py | 4 +- .../tests/test_random_stream_determinism.py | 8 +- .../tests/test_random_stream_profile.py | 4 +- .../test_random_stream_run_integration.py | 6 +- .../test_random_stream_study_integration.py | 4 +- .../tests/test_random_stream_vectors.py | 6 +- .../test_realization_envelope_contract.py | 10 +- .../test_realization_envelope_relation.py | 2 +- .../test_realization_honesty_conformance.py | 22 +- .../test_reference_backend_components.py | 10 +- .../test_reference_backend_conformance.py | 6 +- ...st_reference_backend_docker_integration.py | 12 +- .../tests/test_reference_backend_manifest.py | 10 +- .../test_reference_backend_oci_driver.py | 8 +- .../test_reference_backend_provenance.py | 6 +- .../test_reference_backend_provisioner.py | 14 +- .../test_reference_backend_realization.py | 8 +- .../tests/test_reference_backend_registry.py | 8 +- .../tests/test_reference_field_pruning.py | 8 +- .../python/tests/test_reference_models.py | 8 +- .../python/tests/test_reference_processor.py | 18 +- .../python/tests/test_repo_policy_tools.py | 118 +++---- .../tests/test_requirement_governance.py | 34 +- .../tests/test_reusable_asset_trust_policy.py | 4 +- .../python/tests/test_run_300_lifecycle.py | 14 +- ...n_305_participant_runtime_state_history.py | 16 +- ..._run_306_participant_decision_lifecycle.py | 8 +- .../test_run_307_shared_operational_state.py | 18 +- ...un_308_concurrent_participant_execution.py | 10 +- ...t_run_311_participant_episode_lifecycle.py | 10 +- .../python/tests/test_runtime_conformance.py | 28 +- .../tests/test_runtime_contract_boundaries.py | 12 +- .../python/tests/test_runtime_contracts.py | 22 +- .../tests/test_runtime_control_plane.py | 30 +- .../tests/test_runtime_control_plane_api.py | 24 +- .../python/tests/test_runtime_datastore.py | 10 +- .../tests/test_runtime_fact_bindings.py | 8 +- .../tests/test_runtime_forwarding_agent.py | 6 +- .../python/tests/test_runtime_mail_service.py | 12 +- .../python/tests/test_runtime_manager.py | 14 +- .../python/tests/test_runtime_models.py | 6 +- .../tests/test_runtime_network_detection.py | 10 +- .../tests/test_runtime_network_sensor.py | 10 +- .../tests/test_runtime_orchestration.py | 6 +- .../python/tests/test_runtime_planner.py | 18 +- .../tests/test_runtime_proposition_truth.py | 6 +- .../python/tests/test_runtime_registry.py | 10 +- .../tests/test_runtime_security_monitoring.py | 10 +- .../tests/test_runtime_service_listeners.py | 10 +- .../python/tests/test_runtime_ssh_server.py | 10 +- .../python/tests/test_satisfiability_cli.py | 4 +- .../tests/test_sce_004_goal_oriented_steps.py | 10 +- .../tests/test_sce_006_cleanup_contracts.py | 10 +- .../tests/test_scenario_satisfiability.py | 4 +- .../python/tests/test_scenarios.py | 30 +- .../test_scientific_scenario_completeness.py | 6 +- .../python/tests/test_sdl_format_cli.py | 2 +- implementations/python/tests/test_sdl_fuzz.py | 4 +- .../python/tests/test_sdl_identifiers.py | 14 +- .../python/tests/test_sdl_lineage.py | 2 +- .../python/tests/test_sdl_models.py | 38 +-- .../python/tests/test_sdl_module_registry.py | 12 +- .../python/tests/test_sdl_parser.py | 12 +- .../python/tests/test_sdl_phase_contracts.py | 4 +- .../python/tests/test_sdl_realworld.py | 2 +- .../python/tests/test_sdl_stress.py | 2 +- .../python/tests/test_sdl_validator.py | 8 +- .../python/tests/test_sdl_variation_points.py | 6 +- .../test_sem_208_participant_behavior.py | 6 +- ...st_sem_211_participant_action_semantics.py | 6 +- ...m_212_participant_attribution_semantics.py | 4 +- ..._sem_213_temporal_participant_semantics.py | 6 +- ..._215_participant_outcome_interpretation.py | 6 +- .../tests/test_sem_216_boundary_semantics.py | 2 +- .../tests/test_sem_217_knowledge_bindings.py | 4 +- .../python/tests/test_sem_218_realization.py | 14 +- .../test_sem_218_realization_designation.py | 22 +- .../tests/test_sem_218_runtime_realization.py | 16 +- ...st_sem_220_participant_decision_surface.py | 8 +- ...t_sem_224_observability_plane_semantics.py | 4 +- .../test_sem_225_augmentation_semantics.py | 2 +- .../test_sem_226_participant_exposure.py | 4 +- .../tests/test_sem_227_shared_time_model.py | 4 +- .../test_sem_230_information_flow_control.py | 2 +- .../python/tests/test_semantic_coverage.py | 16 - .../python/tests/test_semantic_profiles.py | 8 +- .../python/tests/test_semantics_assessment.py | 6 +- .../python/tests/test_semantics_objectives.py | 8 +- .../python/tests/test_semantics_planner.py | 2 +- .../test_stateful_realization_resources.py | 10 +- .../tests/test_truth_result_contracts.py | 2 +- .../python/tests/test_uco_alignment.py | 6 +- .../tests/test_validation_disclosure.py | 6 +- .../python/tests/test_validation_profiles.py | 6 +- .../tests/test_version_classification.py | 47 +-- noxfile.py | 6 +- sonar-project.properties | 12 +- specs/agent-guidance/agent-guidance.yaml | 10 +- specs/authority/authority-boundary.yaml | 2 +- specs/evolution/deprecation-records.yaml | 16 +- .../versioning-deprecation-and-migration.md | 8 +- specs/formal/assurance-fulfillment.yaml | 6 +- specs/formal/composition-readiness.md | 2 +- specs/formal/experiment-core/README.md | 2 +- specs/formal/objectives/README.md | 8 +- .../declarative-objective-semantics.md | 18 +- specs/formal/objectives/window-consistency.md | 4 +- .../participant-behavior-model/README.md | 6 +- specs/formal/participant-semantics/README.md | 42 +-- specs/formal/planner/README.md | 6 +- specs/formal/planner/dependency-ordering.md | 6 +- specs/formal/realization/README.md | 10 +- .../formal/realization/envelope-semantics.md | 12 +- .../explicitness-and-realization.md | 54 ++-- specs/formal/runtime-contracts/README.md | 16 +- .../participant-backend-contracts.md | 4 +- specs/formal/sdl-phases/README.md | 4 +- specs/formal/time-model/README.md | 16 +- specs/formal/workflows/README.md | 8 +- specs/formal/workflows/compensation.md | 8 +- specs/formal/workflows/goal-oriented-steps.md | 4 +- specs/formal/workflows/state-machine.md | 8 +- specs/sdl/references.md | 2 +- tools/check_atlas_tactic_vocabulary.py | 2 +- tools/check_attack_tactic_vocabulary.py | 2 +- tools/check_behavioral_relation_claims.py | 4 +- tools/check_concept_authority_governance.py | 8 +- tools/check_formal_semantic_validation.py | 4 +- tools/check_json_artifacts.py | 6 +- tools/check_nist_csf_defensive_vocabulary.py | 4 +- tools/check_pr_title.py | 4 +- tools/check_project_positioning.py | 4 +- tools/check_repo_policy.py | 2 +- .../check_scientific_scenario_completeness.py | 4 +- tools/check_sdl_catalog_parity.py | 2 +- tools/check_sdl_lineage.py | 2 +- tools/check_semantic_coverage.py | 71 +--- tools/check_specification_coverage.py | 14 +- tools/generate_contract_schemas.py | 4 +- tools/policy/__init__.py | 2 +- tools/policy/adr_policy.yaml | 302 +++++++++--------- tools/policy/oversized_allowlist.yaml | 20 +- tools/policy/repo_policy.py | 107 +++---- tools/policy/requirement_order.yaml | 65 ++-- tools/real-daemon/README.md | 6 +- tools/real-daemon/libvirt_smoke.py | 12 +- tools/real-daemon/run_aws_guest_certify.sh | 2 +- 739 files changed, 2731 insertions(+), 3159 deletions(-) rename .claude/skills/{aces-asset-inventory-capture => raes-asset-inventory-capture}/SKILL.md (98%) rename .claude/skills/{aces-asset-inventory-capture => raes-asset-inventory-capture}/agents/openai.yaml (76%) rename {.codex-skills/aces-asset-inventory-capture => .claude/skills/raes-asset-inventory-capture}/scripts/capture-container-evidence-template.sh (99%) rename .claude/skills/{aces-asset-inventory-capture => raes-asset-inventory-capture}/scripts/normalize-syft-cyclonedx.jq (100%) rename {.codex-skills/aces-gap-remediation-implement => .claude/skills/raes-gap-remediation-implement}/SKILL.md (99%) rename .claude/skills/{aces-gap-remediation-implement => raes-gap-remediation-implement}/agents/openai.yaml (74%) rename .codex-skills/{aces-asset-inventory-capture => raes-asset-inventory-capture}/SKILL.md (98%) rename .codex-skills/{aces-asset-inventory-capture => raes-asset-inventory-capture}/agents/openai.yaml (76%) rename {.claude/skills/aces-asset-inventory-capture => .codex-skills/raes-asset-inventory-capture}/scripts/capture-container-evidence-template.sh (99%) rename .codex-skills/{aces-asset-inventory-capture => raes-asset-inventory-capture}/scripts/normalize-syft-cyclonedx.jq (100%) rename {.claude/skills/aces-gap-remediation-implement => .codex-skills/raes-gap-remediation-implement}/SKILL.md (99%) rename .codex-skills/{aces-gap-remediation-implement => raes-gap-remediation-implement}/agents/openai.yaml (74%) rename docs/{aces => raes}/inventory/ad-preflight.md (88%) rename docs/{aces => raes}/inventory/asset-inventory-issue-template.md (92%) rename docs/{aces => raes}/inventory/asset-inventory-methodology.md (99%) rename docs/{aces => raes}/inventory/index.md (100%) rename docs/{aces => raes}/inventory/issue-516-redaction-boundary-preflight.md (96%) rename docs/{aces => raes}/inventory/kali-preflight.md (95%) rename docs/{aces => raes}/inventory/methodology-assurance-report.md (100%) rename docs/{aces => raes}/inventory/scn010-expressivity-gap-analysis.md (99%) rename docs/{aces => raes}/inventory/webapp-preflight.md (92%) delete mode 100644 implementations/python/packages/aces_backend_stubs/__init__.py delete mode 100644 implementations/python/packages/aces_conformance/runner.py delete mode 100644 implementations/python/packages/aces_contracts/__init__.py delete mode 100644 implementations/python/packages/aces_mcp/__main__.py delete mode 100644 implementations/python/packages/aces_operations/__init__.py rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/__init__.py (94%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/_payload.py (96%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/_techvault_native_helpers.py (100%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/_techvault_native_ops.py (94%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/acls.py (96%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/capability_envelope.py (96%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/cloudinit.py (98%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/dialects.py (100%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/driver.py (85%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/drivers/__init__.py (100%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/drivers/_libvirt_xml.py (95%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/drivers/libvirt.py (97%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/drivers/seed.py (100%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/envelopes.py (92%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/guest_appliance.py (100%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/guest_certified_driver.py (98%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/guest_observation.py (98%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/guest_transport.py (100%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/manifest.py (97%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/participant_domain.py (97%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/participant_runtime.py (91%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/provisioner.py (97%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/realization.py (98%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/target.py (97%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/techvault_appliance.py (100%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/techvault_concerns.py (99%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/techvault_lifecycle.py (98%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/techvault_matrix.py (99%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/techvault_native.py (99%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/techvault_observation.py (99%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/techvault_plan_admission.py (96%) rename implementations/python/packages/{aces_backend_libvirt => raes_backend_libvirt}/techvault_probe.py (100%) rename implementations/python/packages/{aces_backend_protocols => raes_backend_protocols}/__init__.py (100%) rename implementations/python/packages/{aces_backend_protocols => raes_backend_protocols}/_domain_topology_binding.py (98%) rename implementations/python/packages/{aces_backend_protocols => raes_backend_protocols}/account_features.py (96%) rename implementations/python/packages/{aces_backend_protocols => raes_backend_protocols}/backend_manifest.py (98%) rename implementations/python/packages/{aces_backend_protocols => raes_backend_protocols}/capabilities.py (98%) rename implementations/python/packages/{aces_backend_protocols => raes_backend_protocols}/capability_admission.py (99%) rename implementations/python/packages/{aces_backend_protocols => raes_backend_protocols}/domain_topology.py (98%) rename implementations/python/packages/{aces_backend_protocols => raes_backend_protocols}/manifest.py (99%) rename implementations/python/packages/{aces_backend_protocols => raes_backend_protocols}/naming.py (94%) rename implementations/python/packages/{aces_backend_protocols => raes_backend_protocols}/participant_action_commit.py (91%) rename implementations/python/packages/{aces_backend_protocols => raes_backend_protocols}/participant_capabilities.py (98%) rename implementations/python/packages/{aces_backend_protocols => raes_backend_protocols}/participant_reset.py (92%) rename implementations/python/packages/{aces_backend_protocols => raes_backend_protocols}/participant_runtime_base.py (98%) rename implementations/python/packages/{aces_backend_protocols => raes_backend_protocols}/protocols.py (95%) rename implementations/python/packages/{aces_backend_protocols => raes_backend_protocols}/provisioner_capabilities.py (98%) rename implementations/python/packages/{aces_backend_protocols => raes_backend_protocols}/service_materialization.py (97%) rename implementations/python/packages/{aces_backend_protocols => raes_backend_protocols}/time_capabilities.py (98%) create mode 100644 implementations/python/packages/raes_backend_stubs/__init__.py rename implementations/python/packages/{aces_backend_stubs => raes_backend_stubs}/evaluation_support.py (94%) rename implementations/python/packages/{aces_backend_stubs => raes_backend_stubs}/manifest.py (96%) rename implementations/python/packages/{aces_backend_stubs => raes_backend_stubs}/stubs.py (96%) rename implementations/python/packages/{aces_cli => raes_cli}/__init__.py (100%) rename implementations/python/packages/{aces_cli => raes_cli}/conformance.py (87%) rename implementations/python/packages/{aces_cli => raes_cli}/corpus.py (97%) rename implementations/python/packages/{aces_cli => raes_cli}/libvirt.py (98%) rename implementations/python/packages/{aces_cli => raes_cli}/main.py (94%) rename implementations/python/packages/{aces_cli => raes_cli}/processor.py (94%) rename implementations/python/packages/{aces_cli => raes_cli}/sdl.py (98%) rename implementations/python/packages/{aces_conformance => raes_conformance}/__init__.py (100%) rename implementations/python/packages/{aces_conformance => raes_conformance}/_realization_models.py (94%) rename implementations/python/packages/{aces_conformance => raes_conformance}/_realization_validation.py (97%) rename implementations/python/packages/{aces_conformance => raes_conformance}/conformance/__init__.py (70%) rename implementations/python/packages/{aces_conformance => raes_conformance}/conformance/diagnostics.py (94%) rename implementations/python/packages/{aces_conformance => raes_conformance}/conformance/fixture_suite.py (91%) rename implementations/python/packages/{aces_conformance => raes_conformance}/conformance/observability.py (96%) rename implementations/python/packages/{aces_conformance => raes_conformance}/conformance/profiles.py (97%) rename implementations/python/packages/{aces_conformance => raes_conformance}/conformance/report.py (95%) rename implementations/python/packages/{aces_conformance => raes_conformance}/conformance/semantics.py (90%) rename implementations/python/packages/{aces_conformance => raes_conformance}/conformance/snapshot_semantics.py (96%) rename implementations/python/packages/{aces_conformance => raes_conformance}/conformance/target.py (95%) rename implementations/python/packages/{aces_conformance => raes_conformance}/conformance/target_probes.py (95%) rename implementations/python/packages/{aces_conformance => raes_conformance}/conformance/validators.py (94%) rename implementations/python/packages/{aces_conformance => raes_conformance}/realization.py (98%) rename implementations/python/packages/{aces_conformance => raes_conformance}/time_semantics.py (91%) create mode 100644 implementations/python/packages/raes_contracts/__init__.py rename implementations/python/packages/{aces_contracts => raes_contracts}/_base.py (83%) rename implementations/python/packages/{aces_contracts => raes_contracts}/_participant_behavior_types.py (99%) rename implementations/python/packages/{aces_contracts => raes_contracts}/_validation.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/addressing.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/apparatus.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/associated_artifacts.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/backend_profiles.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/behavioral_relations.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/bounded_domains.py (98%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/__init__.py (99%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/_trial_cleanup_validation.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/associated_artifacts.py (99%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/base.py (99%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/bundle.py (95%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/capabilities.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/catalogs.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/execution_state.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/experiment_analysis.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/experiment_apparatus.py (99%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/experiment_artifacts.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/experiment_capture.py (98%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/experiment_conditions.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/experiment_disclosure.py (99%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/experiment_evidence.py (97%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/experiment_manifest_references.py (99%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/experiment_references.py (99%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/experiment_run.py (99%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/experiment_run_stochastic.py (98%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/experiment_spec.py (98%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/experiment_study.py (99%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/manifests.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/participant_context.py (98%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/participant_control.py (99%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/participant_control_validation.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/participant_decision_surface.py (99%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/participant_decision_surface_exposure.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/participant_envelopes.py (99%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/participant_manifests.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/participant_runtime.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/participant_views.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/random_stream.py (96%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/realization_plans.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/reusable_assets.py (99%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/runtime_facts.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/schema_constraints.py (98%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/schema_invariants.py (96%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/semantic_profiles.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/time_model.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/trial_cleanup.py (99%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/validation_disclosure.py (97%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/validation_disclosure_gates.py (98%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/validation_subject_reference.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/validators.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/contracts/vocabulary_sources.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/controlled_vocabularies.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/corpus.py (94%) rename implementations/python/packages/{aces_contracts => raes_contracts}/diagnostics.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/evaluation.py (99%) rename implementations/python/packages/{aces_contracts => raes_contracts}/experiment_spec.py (98%) rename implementations/python/packages/{aces_contracts => raes_contracts}/exploit_path.py (98%) rename implementations/python/packages/{aces_contracts => raes_contracts}/manifest_authority.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/participant_autonomous_state.py (98%) rename implementations/python/packages/{aces_contracts => raes_contracts}/participant_behavior.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/participant_binding.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/participant_concurrency.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/participant_concurrency_time.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/participant_episode.py (99%) rename implementations/python/packages/{aces_contracts => raes_contracts}/participant_episode_snapshot.py (99%) rename implementations/python/packages/{aces_contracts => raes_contracts}/participant_shared_state.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/plan_projection.py (96%) rename implementations/python/packages/{aces_contracts => raes_contracts}/planning.py (97%) rename implementations/python/packages/{aces_contracts => raes_contracts}/provenance.py (97%) rename implementations/python/packages/{aces_contracts => raes_contracts}/random_stream_engine.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/random_stream_profiles.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/realization_envelope.py (97%) rename implementations/python/packages/{aces_contracts => raes_contracts}/realization_envelope_carrier.py (98%) rename implementations/python/packages/{aces_contracts => raes_contracts}/realization_observation.py (93%) rename implementations/python/packages/{aces_contracts => raes_contracts}/reference_models.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/runtime_state.py (95%) rename implementations/python/packages/{aces_contracts => raes_contracts}/satisfiability.py (99%) rename implementations/python/packages/{aces_contracts => raes_contracts}/scientific_completeness.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/semantic_binding_effects.py (97%) rename implementations/python/packages/{aces_contracts => raes_contracts}/semantic_profiles.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/uco_alignment.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/validation_profiles.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/versions.py (100%) rename implementations/python/packages/{aces_contracts => raes_contracts}/vocabulary.py (97%) rename implementations/python/packages/{aces_contracts => raes_contracts}/workflow.py (99%) rename implementations/python/packages/{aces_mcp => raes_mcp}/__init__.py (100%) create mode 100644 implementations/python/packages/raes_mcp/__main__.py rename implementations/python/packages/{aces_mcp => raes_mcp}/server.py (84%) rename implementations/python/packages/{aces_mcp => raes_mcp}/tools/__init__.py (100%) rename implementations/python/packages/{aces_mcp => raes_mcp}/tools/authoring.py (100%) rename implementations/python/packages/{aces_mcp => raes_mcp}/tools/completeness.py (96%) rename implementations/python/packages/{aces_mcp => raes_mcp}/tools/experiment_authoring.py (99%) rename implementations/python/packages/{aces_mcp => raes_mcp}/tools/inspection.py (100%) rename implementations/python/packages/{aces_mcp => raes_mcp}/tools/language_service.py (98%) rename implementations/python/packages/{aces_mcp => raes_mcp}/tools/operation_support.py (99%) rename implementations/python/packages/{aces_mcp => raes_mcp}/tools/operations.py (95%) rename implementations/python/packages/{aces_mcp => raes_mcp}/tools/reference.py (100%) create mode 100644 implementations/python/packages/raes_operations/__init__.py rename implementations/python/packages/{aces_operations => raes_operations}/_cross_backend_corpus_backend_runs.py (97%) rename implementations/python/packages/{aces_operations => raes_operations}/_cross_backend_corpus_ledger.py (98%) rename implementations/python/packages/{aces_operations => raes_operations}/_cross_backend_corpus_validation.py (98%) rename implementations/python/packages/{aces_operations => raes_operations}/_evidence_run_artifact.py (97%) rename implementations/python/packages/{aces_operations => raes_operations}/_evidence_run_native.py (97%) rename implementations/python/packages/{aces_operations => raes_operations}/_evidence_run_realization.py (100%) rename implementations/python/packages/{aces_operations => raes_operations}/_evidence_run_types.py (96%) rename implementations/python/packages/{aces_operations => raes_operations}/_evidence_run_validation.py (97%) rename implementations/python/packages/{aces_operations => raes_operations}/_techvault_cleanup.py (96%) rename implementations/python/packages/{aces_operations => raes_operations}/cross_backend_corpus.py (90%) rename implementations/python/packages/{aces_operations => raes_operations}/deterministic_participant_fixtures.py (96%) rename implementations/python/packages/{aces_operations => raes_operations}/libvirt_evidence_run.py (92%) rename implementations/python/packages/{aces_operations => raes_operations}/realization_conformance.py (85%) rename implementations/python/packages/{aces_operations => raes_operations}/run_artifacts.py (100%) rename implementations/python/packages/{aces_operations => raes_operations}/techvault_live.py (95%) rename implementations/python/packages/{aces_processor => raes_processor}/__init__.py (100%) rename implementations/python/packages/{aces_processor => raes_processor}/capabilities.py (96%) rename implementations/python/packages/{aces_processor => raes_processor}/compiler/__init__.py (85%) rename implementations/python/packages/{aces_processor => raes_processor}/compiler/_mixed_control.py (100%) rename implementations/python/packages/{aces_processor => raes_processor}/compiler/addresses.py (98%) rename implementations/python/packages/{aces_processor => raes_processor}/compiler/alias_index.py (100%) rename implementations/python/packages/{aces_processor => raes_processor}/compiler/evaluation.py (100%) rename implementations/python/packages/{aces_processor => raes_processor}/compiler/objectives.py (100%) rename implementations/python/packages/{aces_processor => raes_processor}/compiler/orchestration.py (100%) rename implementations/python/packages/{aces_processor => raes_processor}/compiler/participant_behaviors.py (100%) rename implementations/python/packages/{aces_processor => raes_processor}/compiler/participant_contracts.py (100%) rename implementations/python/packages/{aces_processor => raes_processor}/compiler/pipeline.py (100%) rename implementations/python/packages/{aces_processor => raes_processor}/compiler/placement.py (100%) rename implementations/python/packages/{aces_processor => raes_processor}/compiler/provisioning.py (99%) rename implementations/python/packages/{aces_processor => raes_processor}/compiler/realization_requirements.py (100%) rename implementations/python/packages/{aces_processor => raes_processor}/compiler/ref_resolution.py (100%) rename implementations/python/packages/{aces_processor => raes_processor}/compiler/stateful_resources.py (100%) rename implementations/python/packages/{aces_processor => raes_processor}/compiler/support.py (92%) rename implementations/python/packages/{aces_processor => raes_processor}/compiler/time_model.py (99%) rename implementations/python/packages/{aces_processor => raes_processor}/compiler/view_relations.py (100%) rename implementations/python/packages/{aces_processor => raes_processor}/compiler/workflow_steps.py (99%) rename implementations/python/packages/{aces_processor => raes_processor}/compiler/workflows.py (98%) rename implementations/python/packages/{aces_processor => raes_processor}/exploit_path/__init__.py (100%) rename implementations/python/packages/{aces_processor => raes_processor}/exploit_path/_diagnostics.py (94%) rename implementations/python/packages/{aces_processor => raes_processor}/exploit_path/_preflight.py (97%) rename implementations/python/packages/{aces_processor => raes_processor}/exploit_path/_search.py (99%) rename implementations/python/packages/{aces_processor => raes_processor}/exploit_path/_service.py (98%) rename implementations/python/packages/{aces_processor => raes_processor}/manifest.py (94%) rename implementations/python/packages/{aces_processor => raes_processor}/models/__init__.py (72%) rename implementations/python/packages/{aces_processor => raes_processor}/models/action_results.py (99%) rename implementations/python/packages/{aces_processor => raes_processor}/models/attribution.py (100%) rename implementations/python/packages/{aces_processor => raes_processor}/models/behavior_anchor_checks.py (99%) rename implementations/python/packages/{aces_processor => raes_processor}/models/behavior_anchor_index.py (97%) rename implementations/python/packages/{aces_processor => raes_processor}/models/behavior_grounding_checks.py (99%) rename implementations/python/packages/{aces_processor => raes_processor}/models/behavior_history_violations.py (99%) rename implementations/python/packages/{aces_processor => raes_processor}/models/behavior_ref_checks.py (99%) rename implementations/python/packages/{aces_processor => raes_processor}/models/behavior_resources.py (98%) rename implementations/python/packages/{aces_processor => raes_processor}/models/decision_surface.py (99%) rename implementations/python/packages/{aces_processor => raes_processor}/models/history_event.py (99%) rename implementations/python/packages/{aces_processor => raes_processor}/models/history_event_grounding.py (100%) rename implementations/python/packages/{aces_processor => raes_processor}/models/history_event_payloads.py (98%) rename implementations/python/packages/{aces_processor => raes_processor}/models/outcome.py (100%) rename implementations/python/packages/{aces_processor => raes_processor}/models/outcome_interpretation_validation.py (100%) rename implementations/python/packages/{aces_processor => raes_processor}/models/participant_exposure.py (99%) rename implementations/python/packages/{aces_processor => raes_processor}/models/participant_exposure_authority.py (98%) rename implementations/python/packages/{aces_processor => raes_processor}/models/participant_exposure_policy.py (99%) rename implementations/python/packages/{aces_processor => raes_processor}/models/resources.py (98%) rename implementations/python/packages/{aces_processor => raes_processor}/models/runtime_model.py (95%) rename implementations/python/packages/{aces_processor => raes_processor}/models/temporal.py (100%) rename implementations/python/packages/{aces_processor => raes_processor}/models/time_model.py (98%) rename implementations/python/packages/{aces_processor => raes_processor}/planner/__init__.py (100%) rename implementations/python/packages/{aces_processor => raes_processor}/planner/capability_domains.py (99%) rename implementations/python/packages/{aces_processor => raes_processor}/planner/core.py (94%) rename implementations/python/packages/{aces_processor => raes_processor}/planner/manifest_validation.py (99%) rename implementations/python/packages/{aces_processor => raes_processor}/planner/operations.py (98%) rename implementations/python/packages/{aces_processor => raes_processor}/planner/ordering.py (100%) rename implementations/python/packages/{aces_processor => raes_processor}/planner/resources.py (100%) rename implementations/python/packages/{aces_processor => raes_processor}/reference.py (91%) rename implementations/python/packages/{aces_processor => raes_processor}/satisfiability/__init__.py (100%) rename implementations/python/packages/{aces_processor => raes_processor}/satisfiability/_service.py (99%) rename implementations/python/packages/{aces_processor => raes_processor}/satisfiability/_solver.py (98%) rename implementations/python/packages/{aces_processor => raes_processor}/satisfiability/_translation.py (99%) rename implementations/python/packages/{aces_processor => raes_processor}/semantics/__init__.py (100%) rename implementations/python/packages/{aces_processor => raes_processor}/semantics/planner.py (99%) rename implementations/python/packages/{aces_processor => raes_processor}/semantics/realization.py (97%) rename implementations/python/packages/{aces_reference_backend => raes_reference_backend}/__init__.py (91%) rename implementations/python/packages/{aces_reference_backend => raes_reference_backend}/driver.py (86%) rename implementations/python/packages/{aces_reference_backend => raes_reference_backend}/drivers/__init__.py (100%) rename implementations/python/packages/{aces_reference_backend => raes_reference_backend}/drivers/inprocess.py (95%) rename implementations/python/packages/{aces_reference_backend => raes_reference_backend}/drivers/oci.py (98%) rename implementations/python/packages/{aces_reference_backend => raes_reference_backend}/evaluator.py (96%) rename implementations/python/packages/{aces_reference_backend => raes_reference_backend}/manifest.py (98%) rename implementations/python/packages/{aces_reference_backend => raes_reference_backend}/orchestrator.py (97%) rename implementations/python/packages/{aces_reference_backend => raes_reference_backend}/participant_runtime.py (93%) rename implementations/python/packages/{aces_reference_backend => raes_reference_backend}/provisioner.py (95%) rename implementations/python/packages/{aces_reference_backend => raes_reference_backend}/realization.py (97%) rename implementations/python/packages/{aces_reference_backend => raes_reference_backend}/target.py (95%) rename implementations/python/packages/{aces_runtime => raes_runtime}/__init__.py (93%) rename implementations/python/packages/{aces_runtime => raes_runtime}/apply_failure.py (94%) rename implementations/python/packages/{aces_runtime => raes_runtime}/backend_calls.py (96%) rename implementations/python/packages/{aces_runtime => raes_runtime}/control_plane.py (98%) rename implementations/python/packages/{aces_runtime => raes_runtime}/control_plane_api.py (99%) rename implementations/python/packages/{aces_runtime => raes_runtime}/control_plane_api_guards.py (100%) rename implementations/python/packages/{aces_runtime => raes_runtime}/control_plane_api_models.py (96%) rename implementations/python/packages/{aces_runtime => raes_runtime}/control_plane_api_participant_retrieval.py (98%) rename implementations/python/packages/{aces_runtime => raes_runtime}/control_plane_execution.py (97%) rename implementations/python/packages/{aces_runtime => raes_runtime}/control_plane_security.py (100%) rename implementations/python/packages/{aces_runtime => raes_runtime}/control_plane_store.py (98%) rename implementations/python/packages/{aces_runtime => raes_runtime}/control_plane_timeouts.py (96%) rename implementations/python/packages/{aces_runtime => raes_runtime}/control_plane_workflows.py (98%) rename implementations/python/packages/{aces_runtime => raes_runtime}/diagnostics.py (93%) rename implementations/python/packages/{aces_runtime => raes_runtime}/evaluation_result_contracts.py (98%) rename implementations/python/packages/{aces_runtime => raes_runtime}/manager.py (97%) rename implementations/python/packages/{aces_runtime => raes_runtime}/operational_apparatus.py (97%) rename implementations/python/packages/{aces_runtime => raes_runtime}/participant_action_validation.py (97%) rename implementations/python/packages/{aces_runtime => raes_runtime}/participant_clock_driver.py (97%) rename implementations/python/packages/{aces_runtime => raes_runtime}/participant_control.py (97%) rename implementations/python/packages/{aces_runtime => raes_runtime}/participant_execution_control.py (97%) rename implementations/python/packages/{aces_runtime => raes_runtime}/participant_result_contracts.py (93%) rename implementations/python/packages/{aces_runtime => raes_runtime}/participant_retrieval.py (98%) rename implementations/python/packages/{aces_runtime => raes_runtime}/participant_scheduler.py (97%) rename implementations/python/packages/{aces_runtime => raes_runtime}/participant_scheduler_operations.py (97%) rename implementations/python/packages/{aces_runtime => raes_runtime}/proposition_truth_contracts.py (95%) rename implementations/python/packages/{aces_runtime => raes_runtime}/registry.py (98%) rename implementations/python/packages/{aces_runtime => raes_runtime}/registry_probes.py (97%) rename implementations/python/packages/{aces_runtime => raes_runtime}/result_contracts.py (100%) rename implementations/python/packages/{aces_runtime => raes_runtime}/runtime_fact_binding_policy.py (99%) rename implementations/python/packages/{aces_runtime => raes_runtime}/runtime_fact_bindings.py (99%) rename implementations/python/packages/{aces_runtime => raes_runtime}/runtime_fact_dispatch.py (99%) rename implementations/python/packages/{aces_runtime => raes_runtime}/time_control.py (96%) rename implementations/python/packages/{aces_runtime => raes_runtime}/time_coordinator.py (97%) rename implementations/python/packages/{aces_runtime => raes_runtime}/workflow_result_contract_checks.py (99%) rename implementations/python/packages/{aces_runtime => raes_runtime}/workflow_result_contract_compensation.py (97%) rename implementations/python/packages/{aces_runtime => raes_runtime}/workflow_result_contract_context.py (94%) rename implementations/python/packages/{aces_runtime => raes_runtime}/workflow_result_contracts.py (100%) delete mode 100644 implementations/python/src/aces/__init__.py delete mode 100644 implementations/python/src/aces/_compat.py delete mode 100644 implementations/python/src/aces/backends/__init__.py delete mode 100644 implementations/python/src/aces/backends/stubs.py delete mode 100644 implementations/python/src/aces/cli/__init__.py delete mode 100644 implementations/python/src/aces/cli/main.py delete mode 100644 implementations/python/src/aces/cli/sdl.py delete mode 100644 implementations/python/src/aces/core/__init__.py delete mode 100644 implementations/python/src/aces/core/runtime/__init__.py delete mode 100644 implementations/python/src/aces/core/runtime/capabilities.py delete mode 100644 implementations/python/src/aces/core/runtime/compiler.py delete mode 100644 implementations/python/src/aces/core/runtime/conformance.py delete mode 100644 implementations/python/src/aces/core/runtime/contracts.py delete mode 100644 implementations/python/src/aces/core/runtime/control_plane.py delete mode 100644 implementations/python/src/aces/core/runtime/control_plane_api.py delete mode 100644 implementations/python/src/aces/core/runtime/control_plane_security.py delete mode 100644 implementations/python/src/aces/core/runtime/control_plane_store.py delete mode 100644 implementations/python/src/aces/core/runtime/manager.py delete mode 100644 implementations/python/src/aces/core/runtime/models.py delete mode 100644 implementations/python/src/aces/core/runtime/planner.py delete mode 100644 implementations/python/src/aces/core/runtime/protocols.py delete mode 100644 implementations/python/src/aces/core/runtime/registry.py delete mode 100644 implementations/python/src/aces/core/scenarios.py delete mode 100644 implementations/python/src/aces/core/sdl/__init__.py delete mode 100644 implementations/python/src/aces/core/sdl/_base.py delete mode 100644 implementations/python/src/aces/core/sdl/_errors.py delete mode 100644 implementations/python/src/aces/core/sdl/_source.py delete mode 100644 implementations/python/src/aces/core/sdl/accounts.py delete mode 100644 implementations/python/src/aces/core/sdl/agents.py delete mode 100644 implementations/python/src/aces/core/sdl/composition.py delete mode 100644 implementations/python/src/aces/core/sdl/conditions.py delete mode 100644 implementations/python/src/aces/core/sdl/content.py delete mode 100644 implementations/python/src/aces/core/sdl/entities.py delete mode 100644 implementations/python/src/aces/core/sdl/features.py delete mode 100644 implementations/python/src/aces/core/sdl/infrastructure.py delete mode 100644 implementations/python/src/aces/core/sdl/instantiate.py delete mode 100644 implementations/python/src/aces/core/sdl/module_registry.py delete mode 100644 implementations/python/src/aces/core/sdl/nodes.py delete mode 100644 implementations/python/src/aces/core/sdl/objectives.py delete mode 100644 implementations/python/src/aces/core/sdl/orchestration.py delete mode 100644 implementations/python/src/aces/core/sdl/parser.py delete mode 100644 implementations/python/src/aces/core/sdl/relationships.py delete mode 100644 implementations/python/src/aces/core/sdl/scenario.py delete mode 100644 implementations/python/src/aces/core/sdl/validator.py delete mode 100644 implementations/python/src/aces/core/sdl/variables.py delete mode 100644 implementations/python/src/aces/core/sdl/vulnerabilities.py delete mode 100644 implementations/python/src/aces/core/semantics/__init__.py delete mode 100644 implementations/python/src/aces/core/semantics/assessment.py delete mode 100644 implementations/python/src/aces/core/semantics/objective_semantics.py delete mode 100644 implementations/python/src/aces/core/semantics/objectives.py delete mode 100644 implementations/python/src/aces/core/semantics/planner.py delete mode 100644 implementations/python/src/aces/core/semantics/workflow.py diff --git a/.claude/skills/aces-asset-inventory-capture/SKILL.md b/.claude/skills/raes-asset-inventory-capture/SKILL.md similarity index 98% rename from .claude/skills/aces-asset-inventory-capture/SKILL.md rename to .claude/skills/raes-asset-inventory-capture/SKILL.md index f008fbbd9..613216161 100644 --- a/.claude/skills/aces-asset-inventory-capture/SKILL.md +++ b/.claude/skills/raes-asset-inventory-capture/SKILL.md @@ -1,5 +1,5 @@ --- -name: aces-asset-inventory-capture +name: raes-asset-inventory-capture description: Run the ACES asset inventory methodology as an agent-runnable capture workflow from either Claude Code or Codex. Use when asked to inventory a target image, container, host, or asset into a methodology-conformant evidence bundle with mapping-ledger.yaml, explicit capture-limits.txt declinations, scanner/SBOM evidence, and ACES/APTL gap triage. --- @@ -11,7 +11,7 @@ methodology: capture evidence first, map facts to ACES only when the mapping is semantically correct, and leave every omission as durable evidence. The ACES methodology remains the authority. Read -`docs/aces/inventory/asset-inventory-methodology.md` from the ACES repo before +`docs/raes/inventory/asset-inventory-methodology.md` from the ACES repo before capture; when working in a downstream checkout, use that ACES document as the canonical source. This skill operationalizes that prose; it does not define a second ledger schema or a second secret taxonomy. @@ -35,7 +35,7 @@ Before running commands, identify: - asset kind: image, running container, VM/host, or composed service; - immutable target reference where possible, such as image digest or container id; -- output bundle directory, usually `docs/aces/inventory//`; +- output bundle directory, usually `docs/raes/inventory//`; - allowed discovery vantages inside the realized range. If any input is missing, infer it from the repo and target runtime when safe. diff --git a/.claude/skills/aces-asset-inventory-capture/agents/openai.yaml b/.claude/skills/raes-asset-inventory-capture/agents/openai.yaml similarity index 76% rename from .claude/skills/aces-asset-inventory-capture/agents/openai.yaml rename to .claude/skills/raes-asset-inventory-capture/agents/openai.yaml index a7daab65d..9d6cf8b6c 100644 --- a/.claude/skills/aces-asset-inventory-capture/agents/openai.yaml +++ b/.claude/skills/raes-asset-inventory-capture/agents/openai.yaml @@ -1,4 +1,4 @@ interface: display_name: "ACES Asset Inventory Capture" short_description: "Run the ACES asset inventory methodology." - default_prompt: "Use $aces-asset-inventory-capture to capture a methodology-conformant ACES asset inventory bundle for a target image or container." + default_prompt: "Use $raes-asset-inventory-capture to capture a methodology-conformant ACES asset inventory bundle for a target image or container." diff --git a/.codex-skills/aces-asset-inventory-capture/scripts/capture-container-evidence-template.sh b/.claude/skills/raes-asset-inventory-capture/scripts/capture-container-evidence-template.sh similarity index 99% rename from .codex-skills/aces-asset-inventory-capture/scripts/capture-container-evidence-template.sh rename to .claude/skills/raes-asset-inventory-capture/scripts/capture-container-evidence-template.sh index 3ceed4133..322a875d8 100755 --- a/.codex-skills/aces-asset-inventory-capture/scripts/capture-container-evidence-template.sh +++ b/.claude/skills/raes-asset-inventory-capture/scripts/capture-container-evidence-template.sh @@ -3,7 +3,7 @@ set -euo pipefail ROOT="${ROOT:-$(git rev-parse --show-toplevel)}" ASSET_ID="${ASSET_ID:?Set ASSET_ID to the inventory asset id}" -ASSET_DIR="${ASSET_DIR:-$ROOT/docs/aces/inventory/$ASSET_ID}" +ASSET_DIR="${ASSET_DIR:-$ROOT/docs/raes/inventory/$ASSET_ID}" OUT="${EVIDENCE_DIR:-$ASSET_DIR/evidence}" IMAGE="${IMAGE:?Set IMAGE to an image tag or immutable digest}" CONTAINER="${CONTAINER:-}" diff --git a/.claude/skills/aces-asset-inventory-capture/scripts/normalize-syft-cyclonedx.jq b/.claude/skills/raes-asset-inventory-capture/scripts/normalize-syft-cyclonedx.jq similarity index 100% rename from .claude/skills/aces-asset-inventory-capture/scripts/normalize-syft-cyclonedx.jq rename to .claude/skills/raes-asset-inventory-capture/scripts/normalize-syft-cyclonedx.jq diff --git a/.codex-skills/aces-gap-remediation-implement/SKILL.md b/.claude/skills/raes-gap-remediation-implement/SKILL.md similarity index 99% rename from .codex-skills/aces-gap-remediation-implement/SKILL.md rename to .claude/skills/raes-gap-remediation-implement/SKILL.md index 4543f7145..3ddf83ff8 100644 --- a/.codex-skills/aces-gap-remediation-implement/SKILL.md +++ b/.claude/skills/raes-gap-remediation-implement/SKILL.md @@ -1,5 +1,5 @@ --- -name: aces-gap-remediation-implement +name: raes-gap-remediation-implement description: Architecture-first overlay for remediating ACES/APTL gaps, especially gaps found by the ACES asset inventory capture methodology. Use before normal Ground Control /implement work when a gap may require new or changed SDL/runtime semantics, schemas, validators, ADRs, docs, capture mappings, or cross-repo ACES/APTL behavior. Forces whole-surface review, lineage and primary-literature grounding, peer-review-grade justification, and then delegates to the repo's standard Ground Control implement workflow. --- diff --git a/.claude/skills/aces-gap-remediation-implement/agents/openai.yaml b/.claude/skills/raes-gap-remediation-implement/agents/openai.yaml similarity index 74% rename from .claude/skills/aces-gap-remediation-implement/agents/openai.yaml rename to .claude/skills/raes-gap-remediation-implement/agents/openai.yaml index ea60ce8a3..65d458527 100644 --- a/.claude/skills/aces-gap-remediation-implement/agents/openai.yaml +++ b/.claude/skills/raes-gap-remediation-implement/agents/openai.yaml @@ -1,4 +1,4 @@ interface: display_name: "ACES Gap Remediation" short_description: "Architecture-first gap remediation overlay" - default_prompt: "Use $aces-gap-remediation-implement to remediate an ACES/APTL gap through the Ground Control implement workflow." + default_prompt: "Use $raes-gap-remediation-implement to remediate an ACES/APTL gap through the Ground Control implement workflow." diff --git a/.codex-skills/aces-asset-inventory-capture/SKILL.md b/.codex-skills/raes-asset-inventory-capture/SKILL.md similarity index 98% rename from .codex-skills/aces-asset-inventory-capture/SKILL.md rename to .codex-skills/raes-asset-inventory-capture/SKILL.md index f008fbbd9..613216161 100644 --- a/.codex-skills/aces-asset-inventory-capture/SKILL.md +++ b/.codex-skills/raes-asset-inventory-capture/SKILL.md @@ -1,5 +1,5 @@ --- -name: aces-asset-inventory-capture +name: raes-asset-inventory-capture description: Run the ACES asset inventory methodology as an agent-runnable capture workflow from either Claude Code or Codex. Use when asked to inventory a target image, container, host, or asset into a methodology-conformant evidence bundle with mapping-ledger.yaml, explicit capture-limits.txt declinations, scanner/SBOM evidence, and ACES/APTL gap triage. --- @@ -11,7 +11,7 @@ methodology: capture evidence first, map facts to ACES only when the mapping is semantically correct, and leave every omission as durable evidence. The ACES methodology remains the authority. Read -`docs/aces/inventory/asset-inventory-methodology.md` from the ACES repo before +`docs/raes/inventory/asset-inventory-methodology.md` from the ACES repo before capture; when working in a downstream checkout, use that ACES document as the canonical source. This skill operationalizes that prose; it does not define a second ledger schema or a second secret taxonomy. @@ -35,7 +35,7 @@ Before running commands, identify: - asset kind: image, running container, VM/host, or composed service; - immutable target reference where possible, such as image digest or container id; -- output bundle directory, usually `docs/aces/inventory//`; +- output bundle directory, usually `docs/raes/inventory//`; - allowed discovery vantages inside the realized range. If any input is missing, infer it from the repo and target runtime when safe. diff --git a/.codex-skills/aces-asset-inventory-capture/agents/openai.yaml b/.codex-skills/raes-asset-inventory-capture/agents/openai.yaml similarity index 76% rename from .codex-skills/aces-asset-inventory-capture/agents/openai.yaml rename to .codex-skills/raes-asset-inventory-capture/agents/openai.yaml index a7daab65d..9d6cf8b6c 100644 --- a/.codex-skills/aces-asset-inventory-capture/agents/openai.yaml +++ b/.codex-skills/raes-asset-inventory-capture/agents/openai.yaml @@ -1,4 +1,4 @@ interface: display_name: "ACES Asset Inventory Capture" short_description: "Run the ACES asset inventory methodology." - default_prompt: "Use $aces-asset-inventory-capture to capture a methodology-conformant ACES asset inventory bundle for a target image or container." + default_prompt: "Use $raes-asset-inventory-capture to capture a methodology-conformant ACES asset inventory bundle for a target image or container." diff --git a/.claude/skills/aces-asset-inventory-capture/scripts/capture-container-evidence-template.sh b/.codex-skills/raes-asset-inventory-capture/scripts/capture-container-evidence-template.sh similarity index 99% rename from .claude/skills/aces-asset-inventory-capture/scripts/capture-container-evidence-template.sh rename to .codex-skills/raes-asset-inventory-capture/scripts/capture-container-evidence-template.sh index 3ceed4133..322a875d8 100755 --- a/.claude/skills/aces-asset-inventory-capture/scripts/capture-container-evidence-template.sh +++ b/.codex-skills/raes-asset-inventory-capture/scripts/capture-container-evidence-template.sh @@ -3,7 +3,7 @@ set -euo pipefail ROOT="${ROOT:-$(git rev-parse --show-toplevel)}" ASSET_ID="${ASSET_ID:?Set ASSET_ID to the inventory asset id}" -ASSET_DIR="${ASSET_DIR:-$ROOT/docs/aces/inventory/$ASSET_ID}" +ASSET_DIR="${ASSET_DIR:-$ROOT/docs/raes/inventory/$ASSET_ID}" OUT="${EVIDENCE_DIR:-$ASSET_DIR/evidence}" IMAGE="${IMAGE:?Set IMAGE to an image tag or immutable digest}" CONTAINER="${CONTAINER:-}" diff --git a/.codex-skills/aces-asset-inventory-capture/scripts/normalize-syft-cyclonedx.jq b/.codex-skills/raes-asset-inventory-capture/scripts/normalize-syft-cyclonedx.jq similarity index 100% rename from .codex-skills/aces-asset-inventory-capture/scripts/normalize-syft-cyclonedx.jq rename to .codex-skills/raes-asset-inventory-capture/scripts/normalize-syft-cyclonedx.jq diff --git a/.claude/skills/aces-gap-remediation-implement/SKILL.md b/.codex-skills/raes-gap-remediation-implement/SKILL.md similarity index 99% rename from .claude/skills/aces-gap-remediation-implement/SKILL.md rename to .codex-skills/raes-gap-remediation-implement/SKILL.md index 4543f7145..3ddf83ff8 100644 --- a/.claude/skills/aces-gap-remediation-implement/SKILL.md +++ b/.codex-skills/raes-gap-remediation-implement/SKILL.md @@ -1,5 +1,5 @@ --- -name: aces-gap-remediation-implement +name: raes-gap-remediation-implement description: Architecture-first overlay for remediating ACES/APTL gaps, especially gaps found by the ACES asset inventory capture methodology. Use before normal Ground Control /implement work when a gap may require new or changed SDL/runtime semantics, schemas, validators, ADRs, docs, capture mappings, or cross-repo ACES/APTL behavior. Forces whole-surface review, lineage and primary-literature grounding, peer-review-grade justification, and then delegates to the repo's standard Ground Control implement workflow. --- diff --git a/.codex-skills/aces-gap-remediation-implement/agents/openai.yaml b/.codex-skills/raes-gap-remediation-implement/agents/openai.yaml similarity index 74% rename from .codex-skills/aces-gap-remediation-implement/agents/openai.yaml rename to .codex-skills/raes-gap-remediation-implement/agents/openai.yaml index ea60ce8a3..65d458527 100644 --- a/.codex-skills/aces-gap-remediation-implement/agents/openai.yaml +++ b/.codex-skills/raes-gap-remediation-implement/agents/openai.yaml @@ -1,4 +1,4 @@ interface: display_name: "ACES Gap Remediation" short_description: "Architecture-first gap remediation overlay" - default_prompt: "Use $aces-gap-remediation-implement to remediate an ACES/APTL gap through the Ground Control implement workflow." + default_prompt: "Use $raes-gap-remediation-implement to remediate an ACES/APTL gap through the Ground Control implement workflow." diff --git a/.gc/plan-rules.md b/.gc/plan-rules.md index 4b15dc75f..f8f2a29a8 100644 --- a/.gc/plan-rules.md +++ b/.gc/plan-rules.md @@ -23,11 +23,10 @@ These encode the hard rules previously in `AGENTS.md` prose. `tools/check_generated_schemas.py` passes. The published schema is the authority; a generator/Python edit alone is NOT authorization for a schema change. -- Plans MUST NOT add new implementation logic to - `implementations/python/src/aces/`; that tree is compatibility-only - wrappers. -- Plans MUST NOT import `aces.*` from owning packages under - `implementations/python/packages/`. +- Plans MUST NOT recreate the retired `implementations/python/src/aces/` + namespace. +- Plans MUST NOT import retired `aces` or `aces_*` modules from owning packages + under `implementations/python/packages/`. - Plans MUST keep concept-authority artifacts in the approved concept-authority surfaces. - Plans MUST keep IMPLEMENTS and TESTS traceability in Ground Control diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 36edaca2f..b234e2eff 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -10,7 +10,7 @@ name: Release Please # # Feature PRs never touch CHANGELOG.md (release-please owns it) — no fragment # collisions. The version literal is in the dedicated RAES package version file; -# `aces.__version__` derives from the installed distribution metadata. +# `raes.__version__` derives from the installed distribution metadata. # # Caveat: the release PR is opened by GITHUB_TOKEN, so required CI checks do not # auto-run on it — admin-merge it, or give release-please a PAT so checks run. @@ -78,15 +78,15 @@ jobs: sys.exit(f"expected exactly one wheel, found {wheels}") names = zipfile.ZipFile(wheels[0]).namelist() required = [ - "aces_contracts/_corpus/profiles/backend/provisioning-only.json", - "aces_contracts/_corpus/fixtures/", - "aces_contracts/_corpus/concept-authority/controlled-vocabularies-v1.json", - "aces_contracts/_corpus/schemas/", + "raes_contracts/_corpus/profiles/backend/provisioning-only.json", + "raes_contracts/_corpus/fixtures/", + "raes_contracts/_corpus/concept-authority/controlled-vocabularies-v1.json", + "raes_contracts/_corpus/schemas/", ] missing = [r for r in required if not any(n == r or n.startswith(r) for n in names)] if missing: sys.exit(f"wheel is missing corpus payload: {missing}") - print(f"corpus payload present: {sum(n.startswith('aces_contracts/_corpus/') for n in names)} files") + print(f"corpus payload present: {sum(n.startswith('raes_contracts/_corpus/') for n in names)} files") PY - name: Publish to PyPI (OIDC trusted publishing) diff --git a/README.md b/README.md index f16bf7509..b15aec37f 100644 --- a/README.md +++ b/README.md @@ -236,7 +236,7 @@ conformance, and existing scenario examples. ## Versioning The Python package version lives in -[`implementations/python/pyproject.toml`](https://github.com/RAESystem/rae/blob/main/implementations/python/pyproject.toml) +[`implementations/python/packages/raes/_version.py`](https://github.com/RAESystem/rae/blob/main/implementations/python/packages/raes/_version.py) and is bumped by [release-please](https://github.com/googleapis/release-please) from the Conventional Commit history on `main`, which also generates `CHANGELOG.md`. Do not hand-edit the version or `CHANGELOG.md`. See diff --git a/contracts/concept-authority/behavioral-relations-v1.json b/contracts/concept-authority/behavioral-relations-v1.json index 7f5ce67a9..762f91ec1 100644 --- a/contracts/concept-authority/behavioral-relations-v1.json +++ b/contracts/concept-authority/behavioral-relations-v1.json @@ -447,7 +447,7 @@ "test_status": "tested", "proof_status": "not-applicable", "evidence_refs": [ - "implementations/python/packages/aces_contracts/manifest_authority.py" + "implementations/python/packages/raes_contracts/manifest_authority.py" ] }, "source_refs": [ @@ -617,7 +617,7 @@ "test_status": "tested", "proof_status": "not-applicable", "evidence_refs": [ - "implementations/python/packages/aces_conformance/conformance.py" + "implementations/python/packages/raes_conformance/conformance.py" ] }, "source_refs": [ @@ -873,7 +873,7 @@ "test_status": "tested", "proof_status": "deliberately-unproved", "evidence_refs": [ - "implementations/python/packages/aces_contracts/realization_envelope.py" + "implementations/python/packages/raes_contracts/realization_envelope.py" ] }, "source_refs": [ diff --git a/contracts/fixtures/concept-authority/behavioral-relations-v1/valid/reference.json b/contracts/fixtures/concept-authority/behavioral-relations-v1/valid/reference.json index c6da288b4..efc61063d 100644 --- a/contracts/fixtures/concept-authority/behavioral-relations-v1/valid/reference.json +++ b/contracts/fixtures/concept-authority/behavioral-relations-v1/valid/reference.json @@ -68,7 +68,7 @@ "implementation_status": "implemented", "test_status": "bounded", "proof_status": "deliberately-unproved", - "evidence_refs": ["implementations/python/packages/aces_conformance/conformance.py"] + "evidence_refs": ["implementations/python/packages/raes_conformance/conformance.py"] }, "source_refs": ["milner-1980"] } diff --git a/contracts/profiles/scientific-completeness/delivery-assessment-2026-07-12.json b/contracts/profiles/scientific-completeness/delivery-assessment-2026-07-12.json index 71e771066..d4b9403ca 100644 --- a/contracts/profiles/scientific-completeness/delivery-assessment-2026-07-12.json +++ b/contracts/profiles/scientific-completeness/delivery-assessment-2026-07-12.json @@ -104,7 +104,7 @@ }, { "concern_id": "backend-teardown-reconciliation", "status": "partial", "limitation": "Reference backends have teardown paths, but portable authored cleanup and cross-backend reconciliation guarantees are incomplete.", "issue_refs": ["#658"], - "evidence": [{"kind": "implementation", "path": "implementations/python/packages/aces_backend_libvirt/provisioner.py", "claim": "Libvirt teardown and reconciliation implementation."}] + "evidence": [{"kind": "implementation", "path": "implementations/python/packages/raes_backend_libvirt/provisioner.py", "claim": "Libvirt teardown and reconciliation implementation."}] }, { "concern_id": "manual-rollback", "status": "missing", "limitation": "No general authored manual or advanced rollback contract exists.", "issue_refs": ["#658"], "evidence": [] @@ -119,7 +119,7 @@ }, { "concern_id": "temporal-ordering-causality", "status": "partial", "limitation": "Workflow and participant records preserve bounded order, but general causal and partial-order SDL semantics remain open.", "issue_refs": ["#285", "#288"], - "evidence": [{"kind": "implementation", "path": "implementations/python/packages/aces_contracts/participant_concurrency.py", "claim": "Participant concurrency and order invariants."}] + "evidence": [{"kind": "implementation", "path": "implementations/python/packages/raes_contracts/participant_concurrency.py", "claim": "Participant concurrency and order invariants."}] }, { "concern_id": "deadlines-and-windows", "status": "partial", "limitation": "Objective windows exist, but a complete time-domain-bound deadline surface is not published.", "issue_refs": ["#285", "#288"], @@ -142,7 +142,7 @@ }, { "concern_id": "participant-episode-reset", "status": "partial", "limitation": "Runtime episode lifecycle is implemented, while complete authored episode/reset semantics and conformance remain open.", "issue_refs": ["#305", "#307", "#311", "#314"], - "evidence": [{"kind": "implementation", "path": "implementations/python/packages/aces_contracts/participant_episode.py", "claim": "Runtime episode lifecycle invariants."}] + "evidence": [{"kind": "implementation", "path": "implementations/python/packages/raes_contracts/participant_episode.py", "claim": "Runtime episode lifecycle invariants."}] }, { "concern_id": "participant-budgets", "status": "missing", "limitation": "Portable authored budget, exhaustion, and usage-accounting contracts are not complete.", "issue_refs": ["#306", "#308", "#312", "#313"], "evidence": [] @@ -213,7 +213,7 @@ {"kind": "normative-spec", "path": "specs/formal/behavioral-relations/README.md", "claim": "Normative relation definitions, dimensions, claim surfaces, assurance states, and counterexamples."}, {"kind": "published-schema", "path": "contracts/schemas/concept-authority/behavioral-relations-v1.json", "contract_id": "behavioral-relations-v1", "claim": "Published closed contract for the revisioned taxonomy."}, {"kind": "implementation", "path": "tools/check_behavioral_relation_claims.py", "claim": "Semantic claim-binding and overclaim gate."}, - {"kind": "conformance", "path": "implementations/python/packages/aces_conformance/conformance/__init__.py", "claim": "Backend conformance reports disclose bounded-probe relation, projection, case boundary, and nonclaims."}, + {"kind": "conformance", "path": "implementations/python/packages/raes_conformance/conformance/__init__.py", "claim": "Backend conformance reports disclose bounded-probe relation, projection, case boundary, and nonclaims."}, {"kind": "test", "path": "implementations/python/tests/test_behavioral_relations.py", "claim": "Catalog, binding, counterexample, and property-based relation tests."}, {"kind": "documentation", "path": "docs/research/behavioral-relations/conflation-audit-2026-07-13.md", "claim": "Claim-surface conflation audit and remediation record."} ] diff --git a/contracts/schema-publication/entries/aces-semantic-invariants-v1.json b/contracts/schema-publication/entries/aces-semantic-invariants-v1.json index 4fe359398..2c306d4d2 100644 --- a/contracts/schema-publication/entries/aces-semantic-invariants-v1.json +++ b/contracts/schema-publication/entries/aces-semantic-invariants-v1.json @@ -2,5 +2,9 @@ "contract_id": "aces-semantic-invariants-v1", "schema_path": "contracts/schemas/profiles/aces-semantic-invariants-v1.json", "stability": "draft", - "content_hash": "e7b858c93b7ec763c361439b1d9c7cc3979a1d150ca64a7f41ebc12c050f5cff" + "content_hash": "2d3576e151d4d1e2ff10f33cbd2760a35aab3a5032cd6c239c8b19bdc8b96d2f", + "last_change": { + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "2d3576e151d4d1e2ff10f33cbd2760a35aab3a5032cd6c239c8b19bdc8b96d2f" + } } diff --git a/contracts/schema-publication/entries/associated-artifact-manifest-v1.json b/contracts/schema-publication/entries/associated-artifact-manifest-v1.json index 3d1aa08ac..20db37380 100644 --- a/contracts/schema-publication/entries/associated-artifact-manifest-v1.json +++ b/contracts/schema-publication/entries/associated-artifact-manifest-v1.json @@ -2,9 +2,9 @@ "contract_id": "associated-artifact-manifest-v1", "schema_path": "contracts/schemas/associated-artifacts/associated-artifact-manifest-v1.json", "stability": "draft", - "content_hash": "50cb495731d7274371dd01116acfe67dda3dd3261a1a911136cae02dab7f7927", + "content_hash": "238a1351cf24d33e885a373c4472bad7637e689d984ce04b3f906e0f20c7611b", "last_change": { - "summary": "Initial publication of the ADR-077 scenario- and experiment-associated artifact manifest, canonical set identity, and required semantic byte-binding invariant.", - "content_hash": "50cb495731d7274371dd01116acfe67dda3dd3261a1a911136cae02dab7f7927" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "238a1351cf24d33e885a373c4472bad7637e689d984ce04b3f906e0f20c7611b" } } diff --git a/contracts/schema-publication/entries/behavioral-relations-v1.json b/contracts/schema-publication/entries/behavioral-relations-v1.json index b8da8510b..479825dd1 100644 --- a/contracts/schema-publication/entries/behavioral-relations-v1.json +++ b/contracts/schema-publication/entries/behavioral-relations-v1.json @@ -2,9 +2,9 @@ "contract_id": "behavioral-relations-v1", "schema_path": "contracts/schemas/concept-authority/behavioral-relations-v1.json", "stability": "draft", - "content_hash": "6527fb300e23678a778fd44282f6fa12c8c86119b707ab0874bd4cf19ddb5e29", + "content_hash": "e480fac32221c864dc953eef2700459a3db4b8a435abd02e69fc767ed7e46d76", "last_change": { - "summary": "Initial publication of the ADR-081 revisioned behavioral-relation taxonomy, formal dimensions, claim surfaces, assurance states, source identities, and counterexamples (issue #747).", - "content_hash": "6527fb300e23678a778fd44282f6fa12c8c86119b707ab0874bd4cf19ddb5e29" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "e480fac32221c864dc953eef2700459a3db4b8a435abd02e69fc767ed7e46d76" } } diff --git a/contracts/schema-publication/entries/experiment-apparatus-context-v1.json b/contracts/schema-publication/entries/experiment-apparatus-context-v1.json index 3062e1e23..e1353a5eb 100644 --- a/contracts/schema-publication/entries/experiment-apparatus-context-v1.json +++ b/contracts/schema-publication/entries/experiment-apparatus-context-v1.json @@ -2,9 +2,9 @@ "contract_id": "experiment-apparatus-context-v1", "schema_path": "contracts/schemas/experiment-core/experiment-apparatus-context-v1.json", "stability": "draft", - "content_hash": "743ed0a7461edbae755ca4f1b9a21fefe9927eb022d4c0fa062a8edfa7e7e81b", + "content_hash": "758ea626dfb224bd59c0a8cf39fec3f5318d7d27e915a506489d56a4be649490", "last_change": { - "summary": "Added an optional executable_binding field to ExperimentStochasticControlModel for EXP-718 versioned random-stream profile/namespace/root-entropy binding (issue #274).", - "content_hash": "743ed0a7461edbae755ca4f1b9a21fefe9927eb022d4c0fa062a8edfa7e7e81b" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "758ea626dfb224bd59c0a8cf39fec3f5318d7d27e915a506489d56a4be649490" } } diff --git a/contracts/schema-publication/entries/experiment-authoring-input-v1.json b/contracts/schema-publication/entries/experiment-authoring-input-v1.json index 576352686..2e471e6b3 100644 --- a/contracts/schema-publication/entries/experiment-authoring-input-v1.json +++ b/contracts/schema-publication/entries/experiment-authoring-input-v1.json @@ -2,9 +2,9 @@ "contract_id": "experiment-authoring-input-v1", "schema_path": "contracts/schemas/experiment-core/experiment-authoring-input-v1.json", "stability": "draft", - "content_hash": "1247c1ccd945663d878ee9ba2d36ff30d85a4b35971029a70702d82594e30c6a", + "content_hash": "829ac69c37136596506bf83e0f2fde6cd8c333a79d497c84b93b0497e37aabc9", "last_change": { - "summary": "Added an optional executable_binding field to ExperimentStochasticControlModel for EXP-718 versioned random-stream profile/namespace/root-entropy binding (issue #274).", - "content_hash": "1247c1ccd945663d878ee9ba2d36ff30d85a4b35971029a70702d82594e30c6a" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "829ac69c37136596506bf83e0f2fde6cd8c333a79d497c84b93b0497e37aabc9" } } diff --git a/contracts/schema-publication/entries/experiment-capture-spec-v1.json b/contracts/schema-publication/entries/experiment-capture-spec-v1.json index b716f64fe..3d7d53c2d 100644 --- a/contracts/schema-publication/entries/experiment-capture-spec-v1.json +++ b/contracts/schema-publication/entries/experiment-capture-spec-v1.json @@ -2,9 +2,9 @@ "contract_id": "experiment-capture-spec-v1", "schema_path": "contracts/schemas/experiment-core/experiment-capture-spec-v1.json", "stability": "draft", - "content_hash": "b262408eda4309d265a292ffd2fbcb1e34ba58c28205e4d99996f1b854a70876", + "content_hash": "abd5fc6cfc1c77159328531c531112c34685a348463405d30f7f63082c945705", "last_change": { - "summary": "Extended shared experiment artifact roles and typed references for associated-artifact parents (ADR-077, issue #738).", - "content_hash": "b262408eda4309d265a292ffd2fbcb1e34ba58c28205e4d99996f1b854a70876" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "abd5fc6cfc1c77159328531c531112c34685a348463405d30f7f63082c945705" } } diff --git a/contracts/schema-publication/entries/experiment-derived-measure-v1.json b/contracts/schema-publication/entries/experiment-derived-measure-v1.json index 03582b6c6..bb02caff7 100644 --- a/contracts/schema-publication/entries/experiment-derived-measure-v1.json +++ b/contracts/schema-publication/entries/experiment-derived-measure-v1.json @@ -2,9 +2,9 @@ "contract_id": "experiment-derived-measure-v1", "schema_path": "contracts/schemas/experiment-core/experiment-derived-measure-v1.json", "stability": "draft", - "content_hash": "3619f07b4e075a47a99e026aed5395a6a9c06b663a81e62f67bba7fd196ccf34", + "content_hash": "33dc362225a5850c45f7ef2fbca7b5ef320e687865c4cdedb5b40c2da70b9c65", "last_change": { - "summary": "Extended shared experiment artifact roles and typed references for associated-artifact parents (ADR-077, issue #738).", - "content_hash": "3619f07b4e075a47a99e026aed5395a6a9c06b663a81e62f67bba7fd196ccf34" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "33dc362225a5850c45f7ef2fbca7b5ef320e687865c4cdedb5b40c2da70b9c65" } } diff --git a/contracts/schema-publication/entries/experiment-evidence-record-v1.json b/contracts/schema-publication/entries/experiment-evidence-record-v1.json index 05f49cde2..13c080329 100644 --- a/contracts/schema-publication/entries/experiment-evidence-record-v1.json +++ b/contracts/schema-publication/entries/experiment-evidence-record-v1.json @@ -2,9 +2,9 @@ "contract_id": "experiment-evidence-record-v1", "schema_path": "contracts/schemas/experiment-core/experiment-evidence-record-v1.json", "stability": "draft", - "content_hash": "b6b14039002d04329d760a30b26cb191d795de3b49e377edd084be4d10f9c32b", + "content_hash": "97e633634abdefb8cd4343b14f557065e79616e40edb87da14294ff892823317", "last_change": { - "summary": "Extended shared experiment artifact roles and typed references for associated-artifact parents (ADR-077, issue #738).", - "content_hash": "b6b14039002d04329d760a30b26cb191d795de3b49e377edd084be4d10f9c32b" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "97e633634abdefb8cd4343b14f557065e79616e40edb87da14294ff892823317" } } diff --git a/contracts/schema-publication/entries/experiment-run-v1.json b/contracts/schema-publication/entries/experiment-run-v1.json index fbb9a3fe7..e4ad3dece 100644 --- a/contracts/schema-publication/entries/experiment-run-v1.json +++ b/contracts/schema-publication/entries/experiment-run-v1.json @@ -2,9 +2,9 @@ "contract_id": "experiment-run-v1", "schema_path": "contracts/schemas/experiment-core/experiment-run-v1.json", "stability": "draft", - "content_hash": "5bd34cc92eddcf59d76af349a3079a41914399dfca90fea1eb076af8fd7f4c3e", + "content_hash": "5c936907be31c0b1d0f7071ecd1785a39804afb52f6277671c11c95d325baf16", "last_change": { - "summary": "Added EXP-734 run-scoped realized-time-model provenance, and tightened the embedded validation_basis_disclosures subject_ref binding (issue #259 CLASS finding): a run subject_ref now requires ref_version, so a disclosure can no longer carry the correct run_id while omitting ref_version to be replayed unchanged against a later run_version.", - "content_hash": "5bd34cc92eddcf59d76af349a3079a41914399dfca90fea1eb076af8fd7f4c3e" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "5c936907be31c0b1d0f7071ecd1785a39804afb52f6277671c11c95d325baf16" } } diff --git a/contracts/schema-publication/entries/experiment-study-v1.json b/contracts/schema-publication/entries/experiment-study-v1.json index b5dc25e65..03350e2b6 100644 --- a/contracts/schema-publication/entries/experiment-study-v1.json +++ b/contracts/schema-publication/entries/experiment-study-v1.json @@ -2,9 +2,9 @@ "contract_id": "experiment-study-v1", "schema_path": "contracts/schemas/experiment-core/experiment-study-v1.json", "stability": "draft", - "content_hash": "4904d1cb58bb104b5e177fd85eee004d5f0791c7a53daee7488012d14b004a2d", + "content_hash": "a0fda94413a08751303f4d57a2f4bc6507cc5da50bc99f065b661a28693345e4", "last_change": { - "summary": "Tightened the embedded validation_basis_disclosures subject_ref binding (issue #259 CLASS finding): a study subject_ref now requires ref_version, so a disclosure can no longer carry the correct study_id while omitting ref_version to be replayed unchanged against a later study_version.", - "content_hash": "4904d1cb58bb104b5e177fd85eee004d5f0791c7a53daee7488012d14b004a2d" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "a0fda94413a08751303f4d57a2f4bc6507cc5da50bc99f065b661a28693345e4" } } diff --git a/contracts/schema-publication/entries/experiment-task-v1.json b/contracts/schema-publication/entries/experiment-task-v1.json index c33ec685e..f79df79d7 100644 --- a/contracts/schema-publication/entries/experiment-task-v1.json +++ b/contracts/schema-publication/entries/experiment-task-v1.json @@ -2,9 +2,9 @@ "contract_id": "experiment-task-v1", "schema_path": "contracts/schemas/experiment-core/experiment-task-v1.json", "stability": "draft", - "content_hash": "fcb62854432fd0890f7d9e487f1ce1f2951f829acac81c372a270275cb73a99b", + "content_hash": "2fadfb327b1a534b591481429322c799b522955d298c7cb01df8d75f4386c8f3", "last_change": { - "summary": "Tightened the embedded validation_basis_disclosures subject_ref binding (issue #259 CLASS finding): a task subject_ref now requires ref_version, so a disclosure can no longer carry the correct task_id while omitting ref_version to be replayed unchanged against a later task_version.", - "content_hash": "fcb62854432fd0890f7d9e487f1ce1f2951f829acac81c372a270275cb73a99b" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "2fadfb327b1a534b591481429322c799b522955d298c7cb01df8d75f4386c8f3" } } diff --git a/contracts/schema-publication/entries/exploit-path-analysis-evidence-v1.json b/contracts/schema-publication/entries/exploit-path-analysis-evidence-v1.json index 6e49ce001..e92b57a01 100644 --- a/contracts/schema-publication/entries/exploit-path-analysis-evidence-v1.json +++ b/contracts/schema-publication/entries/exploit-path-analysis-evidence-v1.json @@ -2,9 +2,9 @@ "contract_id": "exploit-path-analysis-evidence-v1", "schema_path": "contracts/schemas/exploit-path-analysis/exploit-path-analysis-evidence-v1.json", "stability": "draft", - "content_hash": "881cf0171e0f689ff88fd4be278f7bad835cbd4d0ed384842a7e4ad2491edd84", + "content_hash": "61bba2ad5561da86a05192cb16809e5098e9717c31c2b3100d55013b5d7832f7", "last_change": { - "summary": "Publish the typed exploit-path analysis evidence contract for governed attack-transition graph queries.", - "content_hash": "881cf0171e0f689ff88fd4be278f7bad835cbd4d0ed384842a7e4ad2491edd84" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "61bba2ad5561da86a05192cb16809e5098e9717c31c2b3100d55013b5d7832f7" } } diff --git a/contracts/schema-publication/entries/instantiated-scenario-snapshot-v1.json b/contracts/schema-publication/entries/instantiated-scenario-snapshot-v1.json index 5cf9f5d1c..b7d31f83f 100644 --- a/contracts/schema-publication/entries/instantiated-scenario-snapshot-v1.json +++ b/contracts/schema-publication/entries/instantiated-scenario-snapshot-v1.json @@ -2,9 +2,9 @@ "contract_id": "instantiated-scenario-snapshot-v1", "schema_path": "contracts/schemas/sdl/instantiated-scenario-snapshot-v1.json", "stability": "draft", - "content_hash": "f8edcfb9f653ad387daa3f83d86e882d101af188b5878a7e7641bedc7019cf60", + "content_hash": "ef353c97369f6a18e823de9156fdb8f6e33ed0fc18c12fa15085e01b29464325", "last_change": { - "summary": "Retargeted qualified Python validator references from aces_sdl to raes without changing schema identifiers or semantics.", - "content_hash": "f8edcfb9f653ad387daa3f83d86e882d101af188b5878a7e7641bedc7019cf60" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "ef353c97369f6a18e823de9156fdb8f6e33ed0fc18c12fa15085e01b29464325" } } diff --git a/contracts/schema-publication/entries/instantiated-scenario-v1.json b/contracts/schema-publication/entries/instantiated-scenario-v1.json index 49c4ed21a..b51989aa7 100644 --- a/contracts/schema-publication/entries/instantiated-scenario-v1.json +++ b/contracts/schema-publication/entries/instantiated-scenario-v1.json @@ -2,9 +2,9 @@ "contract_id": "instantiated-scenario-v1", "schema_path": "contracts/schemas/sdl/instantiated-scenario-v1.json", "stability": "draft", - "content_hash": "41698ee5c3340e69345aaef67a82dd906c46d686b46646444e1164a8ba1fba9c", + "content_hash": "ea4a1b88159025589a7812624b7086ad58b4f9dbd0f172ede0c502d4e3092693", "last_change": { - "summary": "Retargeted qualified Python validator references from aces_sdl to raes without changing schema identifiers or semantics.", - "content_hash": "41698ee5c3340e69345aaef67a82dd906c46d686b46646444e1164a8ba1fba9c" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "ea4a1b88159025589a7812624b7086ad58b4f9dbd0f172ede0c502d4e3092693" } } diff --git a/contracts/schema-publication/entries/participant-context-view-v1.json b/contracts/schema-publication/entries/participant-context-view-v1.json index 588c4b8ad..f6036df55 100644 --- a/contracts/schema-publication/entries/participant-context-view-v1.json +++ b/contracts/schema-publication/entries/participant-context-view-v1.json @@ -2,9 +2,9 @@ "contract_id": "participant-context-view-v1", "schema_path": "contracts/schemas/control-plane/participant-context-view-v1.json", "stability": "draft", - "content_hash": "2946f3d2cb6e74a5848f57b3729545b4939cacd84aecdc2a5b86add7e431c0de", + "content_hash": "24c40473cb12273bdfebbb1a941b2d266cdad2976f331cda30973153fe8753e5", "last_change": { - "summary": "Added the SEM-216 audience-boundary rules to participant-visible context views: archival evidence_record/derived_measure source layers require a derivation_basis_ref view rule and redaction_policy_ref (published allOf), must be mediated by the transformation, and payload_ref must not alias a raw archival ref (both published as x-aces-invariants).", - "content_hash": "2946f3d2cb6e74a5848f57b3729545b4939cacd84aecdc2a5b86add7e431c0de" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "24c40473cb12273bdfebbb1a941b2d266cdad2976f331cda30973153fe8753e5" } } diff --git a/contracts/schema-publication/entries/participant-control-occurrence-v1.json b/contracts/schema-publication/entries/participant-control-occurrence-v1.json index 4135a7434..f41d2e607 100644 --- a/contracts/schema-publication/entries/participant-control-occurrence-v1.json +++ b/contracts/schema-publication/entries/participant-control-occurrence-v1.json @@ -2,9 +2,9 @@ "contract_id": "participant-control-occurrence-v1", "schema_path": "contracts/schemas/participant-runtime/participant-control-occurrence-v1.json", "stability": "draft", - "content_hash": "de375ee8e71d9277e8916cb8078f70bd9019ac55add9dd4449a0c62526103d94", + "content_hash": "edceb2ce36178a4d3c69c2d983ea90737c3a85c213a4a11bed93ed0591890754", "last_change": { - "summary": "Initial publication of the API-409 participant proposal, decision, direction, intervention, handoff, override, and cancellation occurrence contract.", - "content_hash": "de375ee8e71d9277e8916cb8078f70bd9019ac55add9dd4449a0c62526103d94" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "edceb2ce36178a4d3c69c2d983ea90737c3a85c213a4a11bed93ed0591890754" } } diff --git a/contracts/schema-publication/entries/participant-decision-surface-v1.json b/contracts/schema-publication/entries/participant-decision-surface-v1.json index d377aa188..0e1554909 100644 --- a/contracts/schema-publication/entries/participant-decision-surface-v1.json +++ b/contracts/schema-publication/entries/participant-decision-surface-v1.json @@ -2,9 +2,9 @@ "contract_id": "participant-decision-surface-v1", "schema_path": "contracts/schemas/control-plane/participant-decision-surface-v1.json", "stability": "draft", - "content_hash": "ccaa6a83ff8380d328339c51a8e6c7cca7fdb4aefb10d25b4f0c356840c9e1a6", + "content_hash": "77920c1edfa6fe1785d50d6d33a194acd59fdc41845c016eedbf88af342bd2e2", "last_change": { - "summary": "Require SEM-226 item-level exposure bindings for every serialized context, action, and affordance reference, including authorization-record identity, participant/audience/order scope, immutable effective and selected policy coordinates, markings, transformation and declassification bases, evidence, provenance, limitations, and item-bound delivery-time-authorized realized occurrences.", - "content_hash": "ccaa6a83ff8380d328339c51a8e6c7cca7fdb4aefb10d25b4f0c356840c9e1a6" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "77920c1edfa6fe1785d50d6d33a194acd59fdc41845c016eedbf88af342bd2e2" } } diff --git a/contracts/schema-publication/entries/participant-joint-action-record-v1.json b/contracts/schema-publication/entries/participant-joint-action-record-v1.json index 73f32ffef..2e0ee4820 100644 --- a/contracts/schema-publication/entries/participant-joint-action-record-v1.json +++ b/contracts/schema-publication/entries/participant-joint-action-record-v1.json @@ -2,9 +2,9 @@ "contract_id": "participant-joint-action-record-v1", "schema_path": "contracts/schemas/participant-runtime/participant-joint-action-record-v1.json", "stability": "draft", - "content_hash": "bfd0f43f8b19f3658d71ca81520c481aa447f0486eee669edfc4521d0cdbd1a8", + "content_hash": "412ed8b1156463900b6d06c28b3ed39ccd3fa4a693d78bff534a7f82226a2a1c", "last_change": { - "summary": "Initial publication of the RUN-308 participant joint-action runtime contract: membership, access-set, conflict, isolation, and realized-order evidence.", - "content_hash": "bfd0f43f8b19f3658d71ca81520c481aa447f0486eee669edfc4521d0cdbd1a8" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "412ed8b1156463900b6d06c28b3ed39ccd3fa4a693d78bff534a7f82226a2a1c" } } diff --git a/contracts/schema-publication/entries/participant-lifecycle-event-v1.json b/contracts/schema-publication/entries/participant-lifecycle-event-v1.json index d13e003ba..40ad7faf9 100644 --- a/contracts/schema-publication/entries/participant-lifecycle-event-v1.json +++ b/contracts/schema-publication/entries/participant-lifecycle-event-v1.json @@ -2,9 +2,9 @@ "contract_id": "participant-lifecycle-event-v1", "schema_path": "contracts/schemas/participant-runtime/participant-lifecycle-event-v1.json", "stability": "draft", - "content_hash": "769ac4f54a36ec7e6031f584595555f7e8faea41ce0bf05b656aaf33e413d5c6", + "content_hash": "b7c86b3ad1530153f1185483f2310d6ad331a3bf60a562a12d16d993d02cb90a", "last_change": { - "summary": "Initial publication of the participant lifecycle-event runtime contract: episode/lifecycle event records in the backend-facing contract family (ADR-060, issue #76).", - "content_hash": "769ac4f54a36ec7e6031f584595555f7e8faea41ce0bf05b656aaf33e413d5c6" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "b7c86b3ad1530153f1185483f2310d6ad331a3bf60a562a12d16d993d02cb90a" } } diff --git a/contracts/schema-publication/entries/participant-observation-envelope-v1.json b/contracts/schema-publication/entries/participant-observation-envelope-v1.json index 027543fa1..a3dd1533b 100644 --- a/contracts/schema-publication/entries/participant-observation-envelope-v1.json +++ b/contracts/schema-publication/entries/participant-observation-envelope-v1.json @@ -2,9 +2,9 @@ "contract_id": "participant-observation-envelope-v1", "schema_path": "contracts/schemas/participant-runtime/participant-observation-envelope-v1.json", "stability": "draft", - "content_hash": "57c7ca12df146ce59b164551a5a87a2e72dd1f9b6644e3b0975b7da1a71e8d40", + "content_hash": "802cbc844f702694cf985148b6f71168c89d59c2b2edeebac282d7a8a114bbe9", "last_change": { - "summary": "Initial publication of the participant observation-envelope runtime contract: the participant observation payload envelope in the backend-facing contract family (ADR-060, issue #76).", - "content_hash": "57c7ca12df146ce59b164551a5a87a2e72dd1f9b6644e3b0975b7da1a71e8d40" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "802cbc844f702694cf985148b6f71168c89d59c2b2edeebac282d7a8a114bbe9" } } diff --git a/contracts/schema-publication/entries/participant-outcome-report-v1.json b/contracts/schema-publication/entries/participant-outcome-report-v1.json index fa84db585..a264697ca 100644 --- a/contracts/schema-publication/entries/participant-outcome-report-v1.json +++ b/contracts/schema-publication/entries/participant-outcome-report-v1.json @@ -2,9 +2,9 @@ "contract_id": "participant-outcome-report-v1", "schema_path": "contracts/schemas/participant-runtime/participant-outcome-report-v1.json", "stability": "draft", - "content_hash": "e7c8cb7fa41803e16c7fd99f71365621cce9e1cf21f13701c8d482cc030dcea7", + "content_hash": "e8e3eb397095e91753b6235f52c849c6c4cd823433b2bd2a1dcc15fafbcbd268", "last_change": { - "summary": "Require participant outcome reports to carry at least one explicit state relationship for API-411.", - "content_hash": "e7c8cb7fa41803e16c7fd99f71365621cce9e1cf21f13701c8d482cc030dcea7" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "e8e3eb397095e91753b6235f52c849c6c4cd823433b2bd2a1dcc15fafbcbd268" } } diff --git a/contracts/schema-publication/entries/participant-shared-state-record-v1.json b/contracts/schema-publication/entries/participant-shared-state-record-v1.json index 032c978cb..607352c1a 100644 --- a/contracts/schema-publication/entries/participant-shared-state-record-v1.json +++ b/contracts/schema-publication/entries/participant-shared-state-record-v1.json @@ -2,9 +2,9 @@ "contract_id": "participant-shared-state-record-v1", "schema_path": "contracts/schemas/participant-runtime/participant-shared-state-record-v1.json", "stability": "draft", - "content_hash": "8de5075b682a2ef7f7bf9d18f9dcb51667f2efeb496f283d0bb54b9bb0ffd38b", + "content_hash": "af85858ae18c680d570a24c2991d06a98d13dd2901f2dd287ff2e50080c1a200", "last_change": { - "summary": "Require participant shared-state records and accesses to carry revision or digest markers for RUN-307 version discipline.", - "content_hash": "8de5075b682a2ef7f7bf9d18f9dcb51667f2efeb496f283d0bb54b9bb0ffd38b" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "af85858ae18c680d570a24c2991d06a98d13dd2901f2dd287ff2e50080c1a200" } } diff --git a/contracts/schema-publication/entries/participant-time-management-context-v1.json b/contracts/schema-publication/entries/participant-time-management-context-v1.json index 98c0fa02e..823933eec 100644 --- a/contracts/schema-publication/entries/participant-time-management-context-v1.json +++ b/contracts/schema-publication/entries/participant-time-management-context-v1.json @@ -2,9 +2,9 @@ "contract_id": "participant-time-management-context-v1", "schema_path": "contracts/schemas/participant-runtime/participant-time-management-context-v1.json", "stability": "draft", - "content_hash": "e4711ff9a4674697fb8aed40af863ea0327ad31824ef0a8f07d182ccfa9f28a1", + "content_hash": "a6d8e169d9adf1db043e81eca47d38c94c7560386d85f9005a3e4e8ed7ec0a69", "last_change": { - "summary": "Initial publication of the RUN-308 participant time-management context contract: clock, ordering, lookahead, pacing, rollback, and backend-serialization basis.", - "content_hash": "e4711ff9a4674697fb8aed40af863ea0327ad31824ef0a8f07d182ccfa9f28a1" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "a6d8e169d9adf1db043e81eca47d38c94c7560386d85f9005a3e4e8ed7ec0a69" } } diff --git a/contracts/schema-publication/entries/random-stream-profile-v1.json b/contracts/schema-publication/entries/random-stream-profile-v1.json index 9383d2236..a27d64e68 100644 --- a/contracts/schema-publication/entries/random-stream-profile-v1.json +++ b/contracts/schema-publication/entries/random-stream-profile-v1.json @@ -2,9 +2,9 @@ "contract_id": "random-stream-profile-v1", "schema_path": "contracts/schemas/profiles/random-stream-profile-v1.json", "stability": "draft", - "content_hash": "86f94c7a6b8de22181e31861f00fa360897e62620594e69120ca8fb481f06ad4", + "content_hash": "4c9f405bfa0dce89d463cb0780bd68847922acdbd0836822c033edf967ada0d3", "last_change": { - "summary": "Initial publication of the EXP-718 random-stream profile: one closed, immutable compatibility unit fixing generator family/version, root-entropy encoding, address canonicalization, key derivation, block encoding, and the admitted transform set.", - "content_hash": "86f94c7a6b8de22181e31861f00fa360897e62620594e69120ca8fb481f06ad4" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "4c9f405bfa0dce89d463cb0780bd68847922acdbd0836822c033edf967ada0d3" } } diff --git a/contracts/schema-publication/entries/random-stream-vector-v1.json b/contracts/schema-publication/entries/random-stream-vector-v1.json index 3c4a47710..6e1df2df4 100644 --- a/contracts/schema-publication/entries/random-stream-vector-v1.json +++ b/contracts/schema-publication/entries/random-stream-vector-v1.json @@ -2,9 +2,9 @@ "contract_id": "random-stream-vector-v1", "schema_path": "contracts/schemas/profiles/random-stream-vector-v1.json", "stability": "draft", - "content_hash": "93560c646f76237e2494d8a34ea46ad362b2d63606096588152a0a0e317c34fa", + "content_hash": "211900771cefa8c7e21b6194850d776a367a32afa9b270bc4f9a71798c58476e", "last_change": { - "summary": "Initial publication of the EXP-718 canonical cross-language random-stream conformance vector shape, computed independently of the reference engine for cross-language test-vector conformance.", - "content_hash": "93560c646f76237e2494d8a34ea46ad362b2d63606096588152a0a0e317c34fa" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "211900771cefa8c7e21b6194850d776a367a32afa9b270bc4f9a71798c58476e" } } diff --git a/contracts/schema-publication/entries/realization-envelope-v1.json b/contracts/schema-publication/entries/realization-envelope-v1.json index 694bda1be..b124bc282 100644 --- a/contracts/schema-publication/entries/realization-envelope-v1.json +++ b/contracts/schema-publication/entries/realization-envelope-v1.json @@ -2,9 +2,9 @@ "contract_id": "realization-envelope-v1", "schema_path": "contracts/schemas/realization-envelope/realization-envelope-v1.json", "stability": "draft", - "content_hash": "0eb46ba5c89a8eee9e2ba74fb9079f690bca392eacf774da0900379b4fd79580", + "content_hash": "bdb320445010600d2f5e3d5c750504ca7b2244f22589468194d70a341d55981b", "last_change": { - "summary": "Added domain-profile capability disclosure to material backend realization configurations (issue #763).", - "content_hash": "0eb46ba5c89a8eee9e2ba74fb9079f690bca392eacf774da0900379b4fd79580" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "bdb320445010600d2f5e3d5c750504ca7b2244f22589468194d70a341d55981b" } } diff --git a/contracts/schema-publication/entries/reusable-asset-trust-policy-v1.json b/contracts/schema-publication/entries/reusable-asset-trust-policy-v1.json index aca7992a8..b12e9de9b 100644 --- a/contracts/schema-publication/entries/reusable-asset-trust-policy-v1.json +++ b/contracts/schema-publication/entries/reusable-asset-trust-policy-v1.json @@ -2,9 +2,9 @@ "contract_id": "reusable-asset-trust-policy-v1", "schema_path": "contracts/schemas/asset-trust/reusable-asset-trust-policy-v1.json", "stability": "draft", - "content_hash": "de371c60018cc27664915404443df13dd881a57264a1539028409a14af1823b5", + "content_hash": "fcd663287814f1c5072e3f5f4421c67edda0670965d6b04b5bc417501bba127c", "last_change": { - "summary": "Added the associated_artifact_set family with required set-integrity and concrete payload-checksum evidence (ADR-077, issue #738).", - "content_hash": "de371c60018cc27664915404443df13dd881a57264a1539028409a14af1823b5" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "fcd663287814f1c5072e3f5f4421c67edda0670965d6b04b5bc417501bba127c" } } diff --git a/contracts/schema-publication/entries/runtime-fact-binding-plane-v1.json b/contracts/schema-publication/entries/runtime-fact-binding-plane-v1.json index 694659e5e..7ee59eadf 100644 --- a/contracts/schema-publication/entries/runtime-fact-binding-plane-v1.json +++ b/contracts/schema-publication/entries/runtime-fact-binding-plane-v1.json @@ -2,9 +2,9 @@ "contract_id": "runtime-fact-binding-plane-v1", "schema_path": "contracts/schemas/participant-runtime/runtime-fact-binding-plane-v1.json", "stability": "draft", - "content_hash": "5ae5c93e3e4d6823bf7296a12ade3d484bae7dad561e082582526d2bfe8d0de7", + "content_hash": "753c6eea97c86e7b083d05ed8ea32adf57fc2bd9145f55454cd35c5057630dbc", "last_change": { - "summary": "Initial publication of the typed run-local fact declaration, immutable version, late-bound action sink, binding and dispatch dispositions, version-faithful provenance and projection invariants, and redacted projection contract for issue #791.", - "content_hash": "5ae5c93e3e4d6823bf7296a12ade3d484bae7dad561e082582526d2bfe8d0de7" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "753c6eea97c86e7b083d05ed8ea32adf57fc2bd9145f55454cd35c5057630dbc" } } diff --git a/contracts/schema-publication/entries/runtime-snapshot-v1.json b/contracts/schema-publication/entries/runtime-snapshot-v1.json index e06f510c2..51061278a 100644 --- a/contracts/schema-publication/entries/runtime-snapshot-v1.json +++ b/contracts/schema-publication/entries/runtime-snapshot-v1.json @@ -2,9 +2,9 @@ "contract_id": "runtime-snapshot-v1", "schema_path": "contracts/schemas/snapshots/runtime-snapshot-v1.json", "stability": "draft", - "content_hash": "e98bcb03deadcca8a7615ade1664297911993584f2c7959c0c628162ff1970d7", + "content_hash": "8117be2036ef71aa51cbd5529121ec50d5354ef688d1cc54134f768ce7524df8", "last_change": { - "summary": "Bound DSL-437 autonomous scheduler state to its live participant episode.", - "content_hash": "e98bcb03deadcca8a7615ade1664297911993584f2c7959c0c628162ff1970d7" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "8117be2036ef71aa51cbd5529121ec50d5354ef688d1cc54134f768ce7524df8" } } diff --git a/contracts/schema-publication/entries/scenario-satisfiability-evidence-v1.json b/contracts/schema-publication/entries/scenario-satisfiability-evidence-v1.json index aab19d2dd..10da1aa66 100644 --- a/contracts/schema-publication/entries/scenario-satisfiability-evidence-v1.json +++ b/contracts/schema-publication/entries/scenario-satisfiability-evidence-v1.json @@ -2,9 +2,9 @@ "contract_id": "scenario-satisfiability-evidence-v1", "schema_path": "contracts/schemas/satisfiability/scenario-satisfiability-evidence-v1.json", "stability": "draft", - "content_hash": "4f49b1c744b930b4e100bfef12e105ab3a569208356d06016b7d06e8b5a669c0", + "content_hash": "cfe81837593f38a4a8871c4392425fb7407e96c66179b3dc7d36cd749f94c88a", "last_change": { - "summary": "Retargeted qualified Python validator references from aces_sdl to raes without changing schema identifiers or semantics.", - "content_hash": "4f49b1c744b930b4e100bfef12e105ab3a569208356d06016b7d06e8b5a669c0" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "cfe81837593f38a4a8871c4392425fb7407e96c66179b3dc7d36cd749f94c88a" } } diff --git a/contracts/schema-publication/entries/scheduler-isolation-proof-v1.json b/contracts/schema-publication/entries/scheduler-isolation-proof-v1.json index eb853890e..030c6b63e 100644 --- a/contracts/schema-publication/entries/scheduler-isolation-proof-v1.json +++ b/contracts/schema-publication/entries/scheduler-isolation-proof-v1.json @@ -2,9 +2,9 @@ "contract_id": "scheduler-isolation-proof-v1", "schema_path": "contracts/schemas/control-plane/scheduler-isolation-proof-v1.json", "stability": "draft", - "content_hash": "ae20e0a5a4fe480313c637c21214a422ed5d755cb4a4bfd088f985f2dc86ea2a", + "content_hash": "8c2fae279f0446a01c11e8188c5f45dd3ee459526bcc3fb6b6cdf38cafce49a8", "last_change": { - "summary": "Initial publication of the SCE-007 serial-default and bounded-parallelism isolation proof contract.", - "content_hash": "ae20e0a5a4fe480313c637c21214a422ed5d755cb4a4bfd088f985f2dc86ea2a" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "8c2fae279f0446a01c11e8188c5f45dd3ee459526bcc3fb6b6cdf38cafce49a8" } } diff --git a/contracts/schema-publication/entries/scientific-completeness-assessment-v1.json b/contracts/schema-publication/entries/scientific-completeness-assessment-v1.json index 286867eca..7148013ee 100644 --- a/contracts/schema-publication/entries/scientific-completeness-assessment-v1.json +++ b/contracts/schema-publication/entries/scientific-completeness-assessment-v1.json @@ -2,9 +2,9 @@ "contract_id": "scientific-completeness-assessment-v1", "schema_path": "contracts/schemas/profiles/scientific-completeness-assessment-v1.json", "stability": "draft", - "content_hash": "f70a3b3769982ec179fd0d231829ebef4f2cd4c003d62ad26f813848330eee2d", + "content_hash": "b475160b099d20a14916a39a09ec5d4049547978edc69e50031081c688ca7da6", "last_change": { - "summary": "Initial publication of the separately revisioned REV1 concern-delivery assessment, evidence, limitation, satisfiability-witness, and external-binding contract for GOV-942.", - "content_hash": "f70a3b3769982ec179fd0d231829ebef4f2cd4c003d62ad26f813848330eee2d" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "b475160b099d20a14916a39a09ec5d4049547978edc69e50031081c688ca7da6" } } diff --git a/contracts/schema-publication/entries/scientific-completeness-taxonomy-v1.json b/contracts/schema-publication/entries/scientific-completeness-taxonomy-v1.json index 2b67f4e09..1f63ef5b1 100644 --- a/contracts/schema-publication/entries/scientific-completeness-taxonomy-v1.json +++ b/contracts/schema-publication/entries/scientific-completeness-taxonomy-v1.json @@ -2,9 +2,9 @@ "contract_id": "scientific-completeness-taxonomy-v1", "schema_path": "contracts/schemas/profiles/scientific-completeness-taxonomy-v1.json", "stability": "draft", - "content_hash": "d1c83d89fc161199208d2eb82f7f5ddebd61ffc9af6d67c9ddac4d84e0a03328", + "content_hash": "7c0904b5ef9b791e3eedbe758755ea3ed0f4eabe0db3c40d9a75eb507823fd90", "last_change": { - "summary": "Bound every REV1 intended-use claim and nonclaim to the ADR-081 behavioral-relation taxonomy (issue #747).", - "content_hash": "d1c83d89fc161199208d2eb82f7f5ddebd61ffc9af6d67c9ddac4d84e0a03328" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "7c0904b5ef9b791e3eedbe758755ea3ed0f4eabe0db3c40d9a75eb507823fd90" } } diff --git a/contracts/schema-publication/entries/sdl-authoring-input-v1.json b/contracts/schema-publication/entries/sdl-authoring-input-v1.json index 6713df2b1..5ce253b48 100644 --- a/contracts/schema-publication/entries/sdl-authoring-input-v1.json +++ b/contracts/schema-publication/entries/sdl-authoring-input-v1.json @@ -2,9 +2,9 @@ "contract_id": "sdl-authoring-input-v1", "schema_path": "contracts/schemas/sdl/sdl-authoring-input-v1.json", "stability": "draft", - "content_hash": "422eb2a20af82a59c42ce1064a4b973207ca7099e4e8ea808b4fdfb9ccfeb471", + "content_hash": "da0443ae2299ef45f983c55575e49f4faa271c9f96a808847e951222acb8dc40", "last_change": { - "summary": "Retargeted qualified Python validator references from aces_sdl to raes without changing schema identifiers or semantics.", - "content_hash": "422eb2a20af82a59c42ce1064a4b973207ca7099e4e8ea808b4fdfb9ccfeb471" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "da0443ae2299ef45f983c55575e49f4faa271c9f96a808847e951222acb8dc40" } } diff --git a/contracts/schema-publication/entries/trial-cleanup-plan-v1.json b/contracts/schema-publication/entries/trial-cleanup-plan-v1.json index b5a9498a4..a57289759 100644 --- a/contracts/schema-publication/entries/trial-cleanup-plan-v1.json +++ b/contracts/schema-publication/entries/trial-cleanup-plan-v1.json @@ -2,9 +2,9 @@ "contract_id": "trial-cleanup-plan-v1", "schema_path": "contracts/schemas/plans/trial-cleanup-plan-v1.json", "stability": "draft", - "content_hash": "dcab542940f10337e637cdeeedac71f740bbae54f01e704ec15640ca27f671e0", + "content_hash": "7e0a814f64946f5de1de4b5f540d42e401904202ee608f2015f85df15aee510b", "last_change": { - "summary": "Initial publication of the SCE-007 clean-state requirements, scoped cleanup obligations, and retry-safety contract, including retry-triggered reset coverage.", - "content_hash": "dcab542940f10337e637cdeeedac71f740bbae54f01e704ec15640ca27f671e0" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "7e0a814f64946f5de1de4b5f540d42e401904202ee608f2015f85df15aee510b" } } diff --git a/contracts/schema-publication/entries/trial-cleanup-receipt-v1.json b/contracts/schema-publication/entries/trial-cleanup-receipt-v1.json index c476a9089..7ce16ca43 100644 --- a/contracts/schema-publication/entries/trial-cleanup-receipt-v1.json +++ b/contracts/schema-publication/entries/trial-cleanup-receipt-v1.json @@ -2,9 +2,9 @@ "contract_id": "trial-cleanup-receipt-v1", "schema_path": "contracts/schemas/control-plane/trial-cleanup-receipt-v1.json", "stability": "draft", - "content_hash": "2e5087fd4b9e442f282aa2533a425275f91e1c5ad51f8f872502ffb8e96e6fc5", + "content_hash": "5714bdc219d2f19fb4c69ce64076b671ba85332462d63ac4c7e31f863fb3f8cd", "last_change": { - "summary": "Initial publication of the SCE-007 attempt-scoped cleanup receipt, residual-state disclosure, and clean-state claim contract.", - "content_hash": "2e5087fd4b9e442f282aa2533a425275f91e1c5ad51f8f872502ffb8e96e6fc5" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "5714bdc219d2f19fb4c69ce64076b671ba85332462d63ac4c7e31f863fb3f8cd" } } diff --git a/contracts/schema-publication/entries/validation-basis-disclosure-v1.json b/contracts/schema-publication/entries/validation-basis-disclosure-v1.json index 10158630a..d3aa8c84e 100644 --- a/contracts/schema-publication/entries/validation-basis-disclosure-v1.json +++ b/contracts/schema-publication/entries/validation-basis-disclosure-v1.json @@ -2,9 +2,9 @@ "contract_id": "validation-basis-disclosure-v1", "schema_path": "contracts/schemas/profiles/validation-basis-disclosure-v1.json", "stability": "draft", - "content_hash": "cbb825c1d985ff4f2ee4d3de1ff80c371cf7a3bc54b2d60c8dcf9d517f64f2b0", + "content_hash": "f24834c634f9cf1fc30dd16e5649b7898dc2e867ab7c80b30652e8a75ebfc49b", "last_change": { - "summary": "Tightened ValidationSubjectReferenceModel (issue #259 CLASS finding): ref_version is now required when ref_kind is task, run, or study, since those are the versioned experiment-core carrier kinds. Without this, a disclosure could carry the correct ref_id but omit ref_version and be accepted against any revision that reuses that id, replaying a validation-strength claim established for one revision onto a later one. scenario stays id-only, scenario-snapshot stays digest-bound, and backend/participant-implementation/result keep optional-version semantics.", - "content_hash": "cbb825c1d985ff4f2ee4d3de1ff80c371cf7a3bc54b2d60c8dcf9d517f64f2b0" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "f24834c634f9cf1fc30dd16e5649b7898dc2e867ab7c80b30652e8a75ebfc49b" } } diff --git a/contracts/schema-publication/entries/validation-profile-catalog-v1.json b/contracts/schema-publication/entries/validation-profile-catalog-v1.json index a74495d58..5a63ce3d2 100644 --- a/contracts/schema-publication/entries/validation-profile-catalog-v1.json +++ b/contracts/schema-publication/entries/validation-profile-catalog-v1.json @@ -2,9 +2,9 @@ "contract_id": "validation-profile-catalog-v1", "schema_path": "contracts/schemas/profiles/validation-profile-catalog-v1.json", "stability": "draft", - "content_hash": "fe3f991ff7cc85228bbd197c535b412dbccfb1bb1f677d169f71ef4d7e44720f", + "content_hash": "6c5ba8ad4fa6d5841e68b09742b1ced48455fe3617d2cc1bf4a9c8c1ef0c9bc9", "last_change": { - "summary": "Published the ASR-511 validation-strength, subject, gate, limitation, and versioned profile catalog.", - "content_hash": "fe3f991ff7cc85228bbd197c535b412dbccfb1bb1f677d169f71ef4d7e44720f" + "summary": "Retargeted qualified Python validator references and current project descriptions from the retired ACES package identity to RAES as part of the #884 hard cut; schema identifiers and validation semantics are unchanged.", + "content_hash": "6c5ba8ad4fa6d5841e68b09742b1ced48455fe3617d2cc1bf4a9c8c1ef0c9bc9" } } diff --git a/contracts/schemas/asset-trust/reusable-asset-trust-policy-v1.json b/contracts/schemas/asset-trust/reusable-asset-trust-policy-v1.json index 611448ffd..a51177489 100644 --- a/contracts/schemas/asset-trust/reusable-asset-trust-policy-v1.json +++ b/contracts/schemas/asset-trust/reusable-asset-trust-policy-v1.json @@ -24,7 +24,7 @@ }, "ReusableAssetEvidenceRequirementModel": { "additionalProperties": false, - "description": "One evidence-class expectation an asset family must satisfy.\n\n``mechanism_ref`` names the *existing* ACES mechanism that carries the\nevidence (e.g. ``aces.lock.json`` digest pins, ``ExperimentChecksumModel``,\n``controlled-vocabularies-v1.source``). GOV-913 declares policy over the\nincumbent mechanisms; it does not introduce a parallel evidence store, so\nthis contract never carries the evidence payload itself \u2014 only the\nrequirement and a reference to where the evidence lives.", + "description": "One evidence-class expectation an asset family must satisfy.\n\n``mechanism_ref`` names the *existing* RAES mechanism that carries the\nevidence (e.g. ``aces.lock.json`` digest pins, ``ExperimentChecksumModel``,\n``controlled-vocabularies-v1.source``). GOV-913 declares policy over the\nincumbent mechanisms; it does not introduce a parallel evidence store, so\nthis contract never carries the evidence payload itself \u2014 only the\nrequirement and a reference to where the evidence lives.", "properties": { "description": { "minLength": 1, @@ -315,7 +315,7 @@ "$id": "https://aces.dev/schemas/reusable-asset-trust-policy-v1.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, - "description": "Ecosystem trust/authenticity/integrity policy over reusable assets (GOV-913).\n\nA declarative, expectation-based policy: it declares, per asset family, the\nintegrity/authenticity/provenance/governance evidence the ecosystem requires,\nreferencing the existing ACES mechanisms that carry that evidence. It is not a\nper-asset trust record and it invents no cryptography. See\n``specs/authority/reusable-asset-trust-integrity.md`` (normative) and ADR-071.", + "description": "Ecosystem trust/authenticity/integrity policy over reusable assets (GOV-913).\n\nA declarative, expectation-based policy: it declares, per asset family, the\nintegrity/authenticity/provenance/governance evidence the ecosystem requires,\nreferencing the existing RAES mechanisms that carry that evidence. It is not a\nper-asset trust record and it invents no cryptography. See\n``specs/authority/reusable-asset-trust-integrity.md`` (normative) and ADR-071.", "properties": { "families": { "allOf": [ diff --git a/contracts/schemas/associated-artifacts/associated-artifact-manifest-v1.json b/contracts/schemas/associated-artifacts/associated-artifact-manifest-v1.json index cf42abdd8..888383ef8 100644 --- a/contracts/schemas/associated-artifacts/associated-artifact-manifest-v1.json +++ b/contracts/schemas/associated-artifacts/associated-artifact-manifest-v1.json @@ -460,7 +460,7 @@ } ], "level": "error", - "validator": "aces_contracts.associated_artifacts.validate_associated_artifact_manifest" + "validator": "raes_contracts.associated_artifacts.validate_associated_artifact_manifest" } ], "x-aces-semantic-profile": { diff --git a/contracts/schemas/concept-authority/behavioral-relations-v1.json b/contracts/schemas/concept-authority/behavioral-relations-v1.json index fd9833d1e..262535f64 100644 --- a/contracts/schemas/concept-authority/behavioral-relations-v1.json +++ b/contracts/schemas/concept-authority/behavioral-relations-v1.json @@ -776,7 +776,7 @@ } ], "level": "error", - "validator": "aces_contracts.behavioral_relations.BehavioralRelationCatalogModel" + "validator": "raes_contracts.behavioral_relations.BehavioralRelationCatalogModel" } ], "x-aces-semantic-profile": { diff --git a/contracts/schemas/control-plane/participant-context-view-v1.json b/contracts/schemas/control-plane/participant-context-view-v1.json index f26bc3d07..c9901a2f2 100644 --- a/contracts/schemas/control-plane/participant-context-view-v1.json +++ b/contracts/schemas/control-plane/participant-context-view-v1.json @@ -487,7 +487,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ParticipantContextViewModel._validate_sem216_audience_boundary" + "validator": "raes_contracts.contracts.ParticipantContextViewModel._validate_sem216_audience_boundary" }, { "description": "Participant-visible context views must not set payload_ref to a raw archival evidence_record or derived_measure source ref; payload_ref must identify the transformed, redacted view output.", @@ -499,7 +499,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ParticipantContextViewModel._validate_sem216_audience_boundary" + "validator": "raes_contracts.contracts.ParticipantContextViewModel._validate_sem216_audience_boundary" } ], "x-aces-semantic-profile": { diff --git a/contracts/schemas/control-plane/participant-decision-surface-v1.json b/contracts/schemas/control-plane/participant-decision-surface-v1.json index 7eb11ea74..2b9bfb315 100644 --- a/contracts/schemas/control-plane/participant-decision-surface-v1.json +++ b/contracts/schemas/control-plane/participant-decision-surface-v1.json @@ -886,7 +886,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ParticipantDecisionSurfaceModel._validate_surface_relations" + "validator": "raes_contracts.contracts.ParticipantDecisionSurfaceModel._validate_surface_relations" }, { "description": "Surface membership or presentation carries no selection, admission, execution, result, or outcome fact; those facts remain in their existing lifecycle contracts.", @@ -898,7 +898,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ParticipantDecisionSurfaceModel" + "validator": "raes_contracts.contracts.ParticipantDecisionSurfaceModel" }, { "description": "Every serialized context, action, and affordance reference must have one participant-, audience-, order-, immutable-policy-, authorization-, marking-, evidence-, and provenance-bound exposure decision; realized delivery is an optional item- and delivery-authorization-bound occurrence.", @@ -910,7 +910,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ParticipantDecisionSurfaceModel._validate_surface_relations" + "validator": "raes_contracts.contracts.ParticipantDecisionSurfaceModel._validate_surface_relations" } ], "x-aces-semantic-profile": { diff --git a/contracts/schemas/control-plane/scheduler-isolation-proof-v1.json b/contracts/schemas/control-plane/scheduler-isolation-proof-v1.json index cd629d651..e95897d2c 100644 --- a/contracts/schemas/control-plane/scheduler-isolation-proof-v1.json +++ b/contracts/schemas/control-plane/scheduler-isolation-proof-v1.json @@ -246,7 +246,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.SchedulerIsolationProofModel._validate_isolation" + "validator": "raes_contracts.contracts.SchedulerIsolationProofModel._validate_isolation" } ], "x-aces-semantic-profile": { diff --git a/contracts/schemas/control-plane/trial-cleanup-receipt-v1.json b/contracts/schemas/control-plane/trial-cleanup-receipt-v1.json index c839b733e..da62462d9 100644 --- a/contracts/schemas/control-plane/trial-cleanup-receipt-v1.json +++ b/contracts/schemas/control-plane/trial-cleanup-receipt-v1.json @@ -220,7 +220,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validate_trial_cleanup_receipt" + "validator": "raes_contracts.contracts.validate_trial_cleanup_receipt" } ], "x-aces-semantic-profile": { diff --git a/contracts/schemas/experiment-core/experiment-apparatus-context-v1.json b/contracts/schemas/experiment-core/experiment-apparatus-context-v1.json index 05149ca14..bc86944b1 100644 --- a/contracts/schemas/experiment-core/experiment-apparatus-context-v1.json +++ b/contracts/schemas/experiment-core/experiment-apparatus-context-v1.json @@ -642,7 +642,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentManifestReferenceModel._validate_manifest_reference_scope" + "validator": "raes_contracts.contracts.ExperimentManifestReferenceModel._validate_manifest_reference_scope" } ] }, @@ -766,7 +766,7 @@ }, "ExperimentReferenceModel": { "additionalProperties": false, - "description": "Typed reference to an experiment-core or adjacent ACES artifact.", + "description": "Typed reference to an experiment-core or adjacent RAES artifact.", "properties": { "ref_digest": { "anyOf": [ @@ -1302,7 +1302,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentApparatusContextModel._validate_instrument_context" + "validator": "raes_contracts.contracts.ExperimentApparatusContextModel._validate_instrument_context" }, { "description": "Canonical processor and backend manifest_ref values must resolve to manifest payloads with matching identities and mutual compatibility declarations.", @@ -1322,7 +1322,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validate_experiment_apparatus_context_against_manifests" + "validator": "raes_contracts.contracts.validate_experiment_apparatus_context_against_manifests" }, { "description": "Apparatus declared_at and observed_setup_evidence created_at values must be valid RFC 3339 date-times, including only known valid UTC leap-second instants.", @@ -1338,7 +1338,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validate_experiment_apparatus_context_archival_datetimes" + "validator": "raes_contracts.contracts.validate_experiment_apparatus_context_archival_datetimes" } ], "x-aces-semantic-profile": { diff --git a/contracts/schemas/experiment-core/experiment-authoring-input-v1.json b/contracts/schemas/experiment-core/experiment-authoring-input-v1.json index 3b917088d..2fe4cc4d9 100644 --- a/contracts/schemas/experiment-core/experiment-authoring-input-v1.json +++ b/contracts/schemas/experiment-core/experiment-authoring-input-v1.json @@ -107,7 +107,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentApparatusConstraintModel._validate_allowed_identity_manifest_refs" + "validator": "raes_contracts.contracts.ExperimentApparatusConstraintModel._validate_allowed_identity_manifest_refs" } ] }, @@ -1006,7 +1006,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentManifestReferenceModel._validate_manifest_reference_scope" + "validator": "raes_contracts.contracts.ExperimentManifestReferenceModel._validate_manifest_reference_scope" } ] }, @@ -1172,7 +1172,7 @@ }, "ExperimentReferenceModel": { "additionalProperties": false, - "description": "Typed reference to an experiment-core or adjacent ACES artifact.", + "description": "Typed reference to an experiment-core or adjacent RAES artifact.", "properties": { "ref_digest": { "anyOf": [ @@ -1358,7 +1358,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentRunAllocationPlanModel._validate_condition_assignments" + "validator": "raes_contracts.contracts.ExperimentRunAllocationPlanModel._validate_condition_assignments" } ] }, @@ -1472,7 +1472,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentRunPlanModel._validate_run_plan" + "validator": "raes_contracts.contracts.ExperimentRunPlanModel._validate_run_plan" } ] }, @@ -2029,7 +2029,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentSpecModel._validate_experiment_spec" + "validator": "raes_contracts.contracts.ExperimentSpecModel._validate_experiment_spec" } ], "x-aces-semantic-profile": { diff --git a/contracts/schemas/experiment-core/experiment-capture-spec-v1.json b/contracts/schemas/experiment-core/experiment-capture-spec-v1.json index f0257288f..7698cc7f6 100644 --- a/contracts/schemas/experiment-core/experiment-capture-spec-v1.json +++ b/contracts/schemas/experiment-core/experiment-capture-spec-v1.json @@ -392,7 +392,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentCaptureWindowModel._validate_capture_window" + "validator": "raes_contracts.contracts.ExperimentCaptureWindowModel._validate_capture_window" } ] }, @@ -574,7 +574,7 @@ }, "ExperimentReferenceModel": { "additionalProperties": false, - "description": "Typed reference to an experiment-core or adjacent ACES artifact.", + "description": "Typed reference to an experiment-core or adjacent RAES artifact.", "properties": { "ref_digest": { "anyOf": [ @@ -799,7 +799,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentCaptureSpecModel._validate_capture_spec" + "validator": "raes_contracts.contracts.ExperimentCaptureSpecModel._validate_capture_spec" } ], "x-aces-plane": "authored_evidence_requirement", diff --git a/contracts/schemas/experiment-core/experiment-derived-measure-v1.json b/contracts/schemas/experiment-core/experiment-derived-measure-v1.json index fdf58f0e9..d1bea016c 100644 --- a/contracts/schemas/experiment-core/experiment-derived-measure-v1.json +++ b/contracts/schemas/experiment-core/experiment-derived-measure-v1.json @@ -168,7 +168,7 @@ }, "ExperimentReferenceModel": { "additionalProperties": false, - "description": "Typed reference to an experiment-core or adjacent ACES artifact.", + "description": "Typed reference to an experiment-core or adjacent RAES artifact.", "properties": { "ref_digest": { "anyOf": [ @@ -439,7 +439,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentDerivedMeasureModel._validate_derived_measure" + "validator": "raes_contracts.contracts.ExperimentDerivedMeasureModel._validate_derived_measure" }, { "description": "generated_at must be a valid RFC 3339 date-time.", @@ -451,7 +451,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentDerivedMeasureModel._validate_derived_measure" + "validator": "raes_contracts.contracts.ExperimentDerivedMeasureModel._validate_derived_measure" } ], "x-aces-plane": "derived_analysis", diff --git a/contracts/schemas/experiment-core/experiment-evidence-record-v1.json b/contracts/schemas/experiment-core/experiment-evidence-record-v1.json index 189f56ac1..5dfd4a6b9 100644 --- a/contracts/schemas/experiment-core/experiment-evidence-record-v1.json +++ b/contracts/schemas/experiment-core/experiment-evidence-record-v1.json @@ -428,7 +428,7 @@ }, "ExperimentReferenceModel": { "additionalProperties": false, - "description": "Typed reference to an experiment-core or adjacent ACES artifact.", + "description": "Typed reference to an experiment-core or adjacent RAES artifact.", "properties": { "ref_digest": { "anyOf": [ @@ -727,7 +727,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentEvidenceRecordModel._validate_evidence_record" + "validator": "raes_contracts.contracts.ExperimentEvidenceRecordModel._validate_evidence_record" }, { "description": "captured_at must be a valid RFC 3339 date-time.", @@ -739,7 +739,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentEvidenceRecordModel._validate_evidence_record" + "validator": "raes_contracts.contracts.ExperimentEvidenceRecordModel._validate_evidence_record" } ], "x-aces-plane": "captured_evidence", diff --git a/contracts/schemas/experiment-core/experiment-run-v1.json b/contracts/schemas/experiment-core/experiment-run-v1.json index 633108fe4..ba7635c1a 100644 --- a/contracts/schemas/experiment-core/experiment-run-v1.json +++ b/contracts/schemas/experiment-core/experiment-run-v1.json @@ -396,7 +396,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentApparatusContextModel._validate_instrument_context" + "validator": "raes_contracts.contracts.ExperimentApparatusContextModel._validate_instrument_context" }, { "description": "Canonical processor and backend manifest_ref values must resolve to manifest payloads with matching identities and mutual compatibility declarations.", @@ -416,7 +416,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validate_experiment_apparatus_context_against_manifests" + "validator": "raes_contracts.contracts.validate_experiment_apparatus_context_against_manifests" } ] }, @@ -844,7 +844,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentAugmentationDisclosureModel._validate_augmentation_disclosure" + "validator": "raes_contracts.contracts.ExperimentAugmentationDisclosureModel._validate_augmentation_disclosure" } ] }, @@ -1394,7 +1394,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentManifestReferenceModel._validate_manifest_reference_scope" + "validator": "raes_contracts.contracts.ExperimentManifestReferenceModel._validate_manifest_reference_scope" } ] }, @@ -1703,13 +1703,13 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentRealizedFormDisclosureModel._validate_realized_form_disclosure" + "validator": "raes_contracts.contracts.ExperimentRealizedFormDisclosureModel._validate_realized_form_disclosure" } ] }, "ExperimentReferenceModel": { "additionalProperties": false, - "description": "Typed reference to an experiment-core or adjacent ACES artifact.", + "description": "Typed reference to an experiment-core or adjacent RAES artifact.", "properties": { "ref_digest": { "anyOf": [ @@ -2007,7 +2007,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentRunTraceabilityModel._validate_run_traceability" + "validator": "raes_contracts.contracts.ExperimentRunTraceabilityModel._validate_run_traceability" } ] }, @@ -2687,7 +2687,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.random_stream.RandomStreamDrawRecordModel._validate_local_coordinate_matches_address" + "validator": "raes_contracts.contracts.random_stream.RandomStreamDrawRecordModel._validate_local_coordinate_matches_address" }, { "description": "outcome must be present exactly when rejection_exhausted is false, and absent when true.", @@ -2699,7 +2699,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.random_stream.RandomStreamDrawRecordModel._validate_outcome_matches_exhaustion" + "validator": "raes_contracts.contracts.random_stream.RandomStreamDrawRecordModel._validate_outcome_matches_exhaustion" } ] }, @@ -2928,7 +2928,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.random_stream.StreamAddressModel._validate_draw_purpose" + "validator": "raes_contracts.contracts.random_stream.StreamAddressModel._validate_draw_purpose" } ] }, @@ -3724,7 +3724,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" + "validator": "raes_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" }, { "description": "gate_results gate_kind values must be unique, drawn from the resolved profile's required/optional union, and every required gate_kind must be present.", @@ -3748,7 +3748,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" + "validator": "raes_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" }, { "description": "achieved_strength must be supported by ADR-072-ordered passed gate rows for its own rank (structural never implies semantic; semantic never implies behavioral); evidence_backed/falsification_backed additionally require at least one evidence_ref.", @@ -3772,7 +3772,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" + "validator": "raes_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" }, { "description": "A required gate not passed, a not_applicable gate outcome, a below-minimum achieved_strength, and a public/audience-restricted audience each require an explicit, profile-declared limitation (the audience-restricted case specifically requires the audience_restricted category).", @@ -3796,7 +3796,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" + "validator": "raes_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" } ] }, @@ -4355,7 +4355,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentRunModel._validate_archival_run" + "validator": "raes_contracts.contracts.ExperimentRunModel._validate_archival_run" }, { "description": "Every result_summaries evidence_refs ref_id must match an evidence_artifacts artifact_id.", @@ -4367,7 +4367,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentRunModel._validate_archival_run" + "validator": "raes_contracts.contracts.ExperimentRunModel._validate_archival_run" }, { "description": "Participant implementation apparatus components must resolve to run-level participant provenance.", @@ -4379,7 +4379,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentRunModel._validate_archival_run" + "validator": "raes_contracts.contracts.ExperimentRunModel._validate_archival_run" }, { "description": "Every realized-form disclosure evidence ref must also appear in the run traceability evidence refs.", @@ -4391,7 +4391,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentRunModel._validate_archival_run" + "validator": "raes_contracts.contracts.ExperimentRunModel._validate_archival_run" }, { "description": "Every augmentation disclosure evidence ref must also appear in the run traceability evidence refs, and augmentation_id values must be unique within the run.", @@ -4403,7 +4403,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentRunModel._validate_archival_run" + "validator": "raes_contracts.contracts.ExperimentRunModel._validate_archival_run" }, { "description": "Every validation_basis_disclosures entry must declare subject_kind='experiment_run' and a subject_ref matching this run's run_id/run_version.", @@ -4415,7 +4415,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validation_disclosure.validate_carrier_validation_basis_disclosures" + "validator": "raes_contracts.contracts.validation_disclosure.validate_carrier_validation_basis_disclosures" }, { "description": "Every stochastic_draws control_id must resolve to a stochastic_controls control_id with an executable_binding on the same run, and each draw's address.namespace and transform_id/transform_version must match that binding's namespace and admitted profile transforms.", @@ -4427,7 +4427,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validate_experiment_run_against_task" + "validator": "raes_contracts.contracts.validate_experiment_run_against_task" }, { "description": "When present, realized-time provenance must match the run id and its declared model digest.", @@ -4439,7 +4439,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentRunModel._validate_archival_run" + "validator": "raes_contracts.contracts.ExperimentRunModel._validate_archival_run" }, { "description": "Run apparatus, result metric ids, and concrete evidence artifacts must satisfy the referenced task protocol.", @@ -4455,7 +4455,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validate_experiment_run_against_task" + "validator": "raes_contracts.contracts.validate_experiment_run_against_task" }, { "description": "Run started_at, ended_at, invalidation invalidated_at, and evidence_artifacts created_at values must be valid RFC 3339 date-times, including only known valid UTC leap-second instants.", @@ -4479,7 +4479,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validate_experiment_run_archival_datetimes" + "validator": "raes_contracts.contracts.validate_experiment_run_archival_datetimes" } ], "x-aces-semantic-profile": { diff --git a/contracts/schemas/experiment-core/experiment-study-v1.json b/contracts/schemas/experiment-core/experiment-study-v1.json index 8a46a34fe..88161e579 100644 --- a/contracts/schemas/experiment-core/experiment-study-v1.json +++ b/contracts/schemas/experiment-core/experiment-study-v1.json @@ -223,7 +223,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentAnalysisPlanModel._validate_primary_metric" + "validator": "raes_contracts.contracts.ExperimentAnalysisPlanModel._validate_primary_metric" } ] }, @@ -824,7 +824,7 @@ }, "ExperimentReferenceModel": { "additionalProperties": false, - "description": "Typed reference to an experiment-core or adjacent ACES artifact.", + "description": "Typed reference to an experiment-core or adjacent RAES artifact.", "properties": { "ref_digest": { "anyOf": [ @@ -1010,7 +1010,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentRunAllocationPlanModel._validate_condition_assignments" + "validator": "raes_contracts.contracts.ExperimentRunAllocationPlanModel._validate_condition_assignments" } ] }, @@ -1557,7 +1557,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" + "validator": "raes_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" }, { "description": "gate_results gate_kind values must be unique, drawn from the resolved profile's required/optional union, and every required gate_kind must be present.", @@ -1581,7 +1581,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" + "validator": "raes_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" }, { "description": "achieved_strength must be supported by ADR-072-ordered passed gate rows for its own rank (structural never implies semantic; semantic never implies behavioral); evidence_backed/falsification_backed additionally require at least one evidence_ref.", @@ -1605,7 +1605,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" + "validator": "raes_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" }, { "description": "A required gate not passed, a not_applicable gate outcome, a below-minimum achieved_strength, and a public/audience-restricted audience each require an explicit, profile-declared limitation (the audience-restricted case specifically requires the audience_restricted category).", @@ -1629,7 +1629,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" + "validator": "raes_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" } ] }, @@ -2149,7 +2149,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentStudyModel._validate_claim_bearing_study" + "validator": "raes_contracts.contracts.ExperimentStudyModel._validate_claim_bearing_study" }, { "description": "Study analysis_plan metrics must be declared by included experiment task protocols.", @@ -2169,7 +2169,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validate_experiment_study_against_tasks_and_runs" + "validator": "raes_contracts.contracts.validate_experiment_study_against_tasks_and_runs" }, { "description": "Study analysis_plan metrics must have result_summaries, including explicit missing/withheld statuses, in included evaluation runs.", @@ -2189,7 +2189,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validate_experiment_study_against_tasks_and_runs" + "validator": "raes_contracts.contracts.validate_experiment_study_against_tasks_and_runs" }, { "description": "Study analysis_plan evaluation-run members must resolve unambiguously and exclude invalidated, superseded, and not-evaluated runs.", @@ -2205,7 +2205,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validate_experiment_study_against_tasks_and_runs" + "validator": "raes_contracts.contracts.validate_experiment_study_against_tasks_and_runs" }, { "description": "Study run_allocation compared_conditions must be represented by eligible included evaluation-run membership groupings that meet target_runs_per_condition, use operational blocking factors, and satisfy exactly one distinct factor-level combination and auditable condition assignment.", @@ -2225,7 +2225,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validate_experiment_study_against_tasks_and_runs" + "validator": "raes_contracts.contracts.validate_experiment_study_against_tasks_and_runs" }, { "description": "Every validation_basis_disclosures entry must declare subject_kind='experiment_study' and a subject_ref matching this study's study_id/study_version.", @@ -2237,7 +2237,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validation_disclosure.validate_carrier_validation_basis_disclosures" + "validator": "raes_contracts.contracts.validation_disclosure.validate_carrier_validation_basis_disclosures" }, { "description": "When run_allocation compares evaluation runs, every shared stochastic_controls control_id across those runs must use a consistent executable_binding profile_ref and namespace, and either all or none of the runs that share the control_id may carry an executable_binding (EXP-718 common random numbers / controlled-variation comparability).", @@ -2253,7 +2253,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validate_experiment_study_against_tasks_and_runs" + "validator": "raes_contracts.contracts.validate_experiment_study_against_tasks_and_runs" }, { "description": "Every study behavioral claim must resolve against the canonical taxonomy revision, include a required observation projection, and keep bounded evidence out of universal quantifiers.", @@ -2269,7 +2269,7 @@ } ], "level": "error", - "validator": "aces_contracts.behavioral_relations.validate_behavioral_claim_binding" + "validator": "raes_contracts.behavioral_relations.validate_behavioral_claim_binding" }, { "description": "Study report_artifacts and export_artifacts created_at values must be valid RFC 3339 date-times, including only known valid UTC leap-second instants.", @@ -2285,7 +2285,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validate_experiment_study_archival_datetimes" + "validator": "raes_contracts.contracts.validate_experiment_study_archival_datetimes" } ], "x-aces-semantic-profile": { diff --git a/contracts/schemas/experiment-core/experiment-task-v1.json b/contracts/schemas/experiment-core/experiment-task-v1.json index eaaef2f58..90b79af10 100644 --- a/contracts/schemas/experiment-core/experiment-task-v1.json +++ b/contracts/schemas/experiment-core/experiment-task-v1.json @@ -107,7 +107,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentApparatusConstraintModel._validate_allowed_identity_manifest_refs" + "validator": "raes_contracts.contracts.ExperimentApparatusConstraintModel._validate_allowed_identity_manifest_refs" } ] }, @@ -458,7 +458,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentEvaluationProtocolModel._validate_metric_definition_keys" + "validator": "raes_contracts.contracts.ExperimentEvaluationProtocolModel._validate_metric_definition_keys" } ] }, @@ -812,7 +812,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ExperimentManifestReferenceModel._validate_manifest_reference_scope" + "validator": "raes_contracts.contracts.ExperimentManifestReferenceModel._validate_manifest_reference_scope" } ] }, @@ -966,7 +966,7 @@ }, "ExperimentReferenceModel": { "additionalProperties": false, - "description": "Typed reference to an experiment-core or adjacent ACES artifact.", + "description": "Typed reference to an experiment-core or adjacent RAES artifact.", "properties": { "ref_digest": { "anyOf": [ @@ -1465,7 +1465,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" + "validator": "raes_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" }, { "description": "gate_results gate_kind values must be unique, drawn from the resolved profile's required/optional union, and every required gate_kind must be present.", @@ -1489,7 +1489,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" + "validator": "raes_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" }, { "description": "achieved_strength must be supported by ADR-072-ordered passed gate rows for its own rank (structural never implies semantic; semantic never implies behavioral); evidence_backed/falsification_backed additionally require at least one evidence_ref.", @@ -1513,7 +1513,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" + "validator": "raes_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" }, { "description": "A required gate not passed, a not_applicable gate outcome, a below-minimum achieved_strength, and a public/audience-restricted audience each require an explicit, profile-declared limitation (the audience-restricted case specifically requires the audience_restricted category).", @@ -1537,7 +1537,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" + "validator": "raes_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" } ] }, @@ -1955,7 +1955,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validation_disclosure.validate_carrier_validation_basis_disclosures" + "validator": "raes_contracts.contracts.validation_disclosure.validate_carrier_validation_basis_disclosures" }, { "description": "Task artifact_refs created_at values must be valid RFC 3339 date-times, including only known valid UTC leap-second instants.", @@ -1967,7 +1967,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validate_experiment_task_archival_datetimes" + "validator": "raes_contracts.contracts.validate_experiment_task_archival_datetimes" } ], "x-aces-semantic-profile": { diff --git a/contracts/schemas/exploit-path-analysis/exploit-path-analysis-evidence-v1.json b/contracts/schemas/exploit-path-analysis/exploit-path-analysis-evidence-v1.json index 43f595271..6453e3446 100644 --- a/contracts/schemas/exploit-path-analysis/exploit-path-analysis-evidence-v1.json +++ b/contracts/schemas/exploit-path-analysis/exploit-path-analysis-evidence-v1.json @@ -2,7 +2,7 @@ "$defs": { "AttackGraphBindingModel": { "additionalProperties": false, - "description": "Governed binding from an admitted ACES snapshot concept to graph content.", + "description": "Governed binding from an admitted RAES snapshot concept to graph content.", "properties": { "aces_address": { "maxLength": 4096, @@ -539,7 +539,7 @@ }, "NormalizedAttackGraphModel": { "additionalProperties": false, - "description": "Closed normalized attack graph derived from governed ACES bindings.", + "description": "Closed normalized attack graph derived from governed RAES bindings.", "properties": { "binding_profile": { "const": "aces-sdl-snapshot-attack-binding/v1", @@ -953,7 +953,7 @@ } ], "level": "error", - "validator": "aces_contracts.exploit_path.ExploitPathAnalysisEvidenceModel._validate_evidence_joins" + "validator": "raes_contracts.exploit_path.ExploitPathAnalysisEvidenceModel._validate_evidence_joins" } ], "x-aces-semantic-profile": { diff --git a/contracts/schemas/participant-runtime/participant-control-occurrence-v1.json b/contracts/schemas/participant-runtime/participant-control-occurrence-v1.json index 2a692f76d..35a5464fc 100644 --- a/contracts/schemas/participant-runtime/participant-control-occurrence-v1.json +++ b/contracts/schemas/participant-runtime/participant-control-occurrence-v1.json @@ -2,7 +2,7 @@ "$defs": { "EventClassificationModel": { "additionalProperties": false, - "description": "ACES-native normalized event classification tuple (ADR-054).", + "description": "RAES-native normalized event classification tuple (ADR-054).", "properties": { "activity_id": { "title": "Activity Id", @@ -2191,7 +2191,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validate_participant_control_occurrence_context" + "validator": "raes_contracts.contracts.validate_participant_control_occurrence_context" }, { "description": "Proposal, approval, denial, direction, intervention, handoff, override, and cancellation remain distinct from action admission, execution, delivery, observation, and audit evidence.", @@ -2203,7 +2203,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.ParticipantControlOccurrenceModel" + "validator": "raes_contracts.contracts.ParticipantControlOccurrenceModel" } ], "x-aces-semantic-profile": { diff --git a/contracts/schemas/participant-runtime/participant-joint-action-record-v1.json b/contracts/schemas/participant-runtime/participant-joint-action-record-v1.json index 0f1df41c0..96beae9e2 100644 --- a/contracts/schemas/participant-runtime/participant-joint-action-record-v1.json +++ b/contracts/schemas/participant-runtime/participant-joint-action-record-v1.json @@ -2,7 +2,7 @@ "$defs": { "EventClassificationModel": { "additionalProperties": false, - "description": "ACES-native normalized event classification tuple (ADR-054).", + "description": "RAES-native normalized event classification tuple (ADR-054).", "properties": { "activity_id": { "title": "Activity Id", diff --git a/contracts/schemas/participant-runtime/participant-lifecycle-event-v1.json b/contracts/schemas/participant-runtime/participant-lifecycle-event-v1.json index f8895c4db..4d03746ef 100644 --- a/contracts/schemas/participant-runtime/participant-lifecycle-event-v1.json +++ b/contracts/schemas/participant-runtime/participant-lifecycle-event-v1.json @@ -2,7 +2,7 @@ "$defs": { "EventClassificationModel": { "additionalProperties": false, - "description": "ACES-native normalized event classification tuple (ADR-054).", + "description": "RAES-native normalized event classification tuple (ADR-054).", "properties": { "activity_id": { "title": "Activity Id", diff --git a/contracts/schemas/participant-runtime/participant-observation-envelope-v1.json b/contracts/schemas/participant-runtime/participant-observation-envelope-v1.json index 19678ada0..29bb1c6e4 100644 --- a/contracts/schemas/participant-runtime/participant-observation-envelope-v1.json +++ b/contracts/schemas/participant-runtime/participant-observation-envelope-v1.json @@ -2,7 +2,7 @@ "$defs": { "EventClassificationModel": { "additionalProperties": false, - "description": "ACES-native normalized event classification tuple (ADR-054).", + "description": "RAES-native normalized event classification tuple (ADR-054).", "properties": { "activity_id": { "title": "Activity Id", diff --git a/contracts/schemas/participant-runtime/participant-outcome-report-v1.json b/contracts/schemas/participant-runtime/participant-outcome-report-v1.json index c8f369fe9..0b9295ebb 100644 --- a/contracts/schemas/participant-runtime/participant-outcome-report-v1.json +++ b/contracts/schemas/participant-runtime/participant-outcome-report-v1.json @@ -2,7 +2,7 @@ "$defs": { "EventClassificationModel": { "additionalProperties": false, - "description": "ACES-native normalized event classification tuple (ADR-054).", + "description": "RAES-native normalized event classification tuple (ADR-054).", "properties": { "activity_id": { "title": "Activity Id", diff --git a/contracts/schemas/participant-runtime/participant-shared-state-record-v1.json b/contracts/schemas/participant-runtime/participant-shared-state-record-v1.json index 74cc9aa94..0494e8740 100644 --- a/contracts/schemas/participant-runtime/participant-shared-state-record-v1.json +++ b/contracts/schemas/participant-runtime/participant-shared-state-record-v1.json @@ -2,7 +2,7 @@ "$defs": { "EventClassificationModel": { "additionalProperties": false, - "description": "ACES-native normalized event classification tuple (ADR-054).", + "description": "RAES-native normalized event classification tuple (ADR-054).", "properties": { "activity_id": { "title": "Activity Id", diff --git a/contracts/schemas/participant-runtime/participant-time-management-context-v1.json b/contracts/schemas/participant-runtime/participant-time-management-context-v1.json index ed29fb4be..dcd8d0bcf 100644 --- a/contracts/schemas/participant-runtime/participant-time-management-context-v1.json +++ b/contracts/schemas/participant-runtime/participant-time-management-context-v1.json @@ -2,7 +2,7 @@ "$defs": { "EventClassificationModel": { "additionalProperties": false, - "description": "ACES-native normalized event classification tuple (ADR-054).", + "description": "RAES-native normalized event classification tuple (ADR-054).", "properties": { "activity_id": { "title": "Activity Id", diff --git a/contracts/schemas/participant-runtime/runtime-fact-binding-plane-v1.json b/contracts/schemas/participant-runtime/runtime-fact-binding-plane-v1.json index 796491e1e..851b0d8c8 100644 --- a/contracts/schemas/participant-runtime/runtime-fact-binding-plane-v1.json +++ b/contracts/schemas/participant-runtime/runtime-fact-binding-plane-v1.json @@ -744,7 +744,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.runtime_facts.RuntimeFactBindingPlaneModel._validate_references" + "validator": "raes_contracts.contracts.runtime_facts.RuntimeFactBindingPlaneModel._validate_references" } ], "x-aces-semantic-profile": { diff --git a/contracts/schemas/plans/trial-cleanup-plan-v1.json b/contracts/schemas/plans/trial-cleanup-plan-v1.json index 18b3855d1..c08e22c24 100644 --- a/contracts/schemas/plans/trial-cleanup-plan-v1.json +++ b/contracts/schemas/plans/trial-cleanup-plan-v1.json @@ -340,7 +340,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.TrialCleanupPlanModel._validate_plan" + "validator": "raes_contracts.contracts.TrialCleanupPlanModel._validate_plan" } ], "x-aces-semantic-profile": { diff --git a/contracts/schemas/profiles/aces-semantic-invariants-v1.json b/contracts/schemas/profiles/aces-semantic-invariants-v1.json index 66b89fe89..0ec569e11 100644 --- a/contracts/schemas/profiles/aces-semantic-invariants-v1.json +++ b/contracts/schemas/profiles/aces-semantic-invariants-v1.json @@ -45,7 +45,7 @@ }, "AcesSemanticInvariantInputModel": { "additionalProperties": false, - "description": "Input contract and instance path required by one ACES semantic invariant.", + "description": "Input contract and instance path required by one RAES semantic invariant.", "properties": { "contract_id": { "minLength": 1, @@ -67,7 +67,7 @@ }, "AcesSemanticInvariantProfileReferenceModel": { "additionalProperties": false, - "description": "Host-schema reference to the ACES semantic-invariant profile.", + "description": "Host-schema reference to the RAES semantic-invariant profile.", "properties": { "contract_id": { "minLength": 1, @@ -121,7 +121,7 @@ "$id": "https://aces.dev/schemas/semantic-invariants/v1", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, - "description": "Published shape for ACES semantic-invariant annotations.", + "description": "Published shape for RAES semantic-invariant annotations.", "properties": { "invariant_entry_schema": { "const": "#/$defs/AcesSemanticInvariantEntryModel", diff --git a/contracts/schemas/profiles/random-stream-profile-v1.json b/contracts/schemas/profiles/random-stream-profile-v1.json index 38cf92f46..16465c3de 100644 --- a/contracts/schemas/profiles/random-stream-profile-v1.json +++ b/contracts/schemas/profiles/random-stream-profile-v1.json @@ -225,7 +225,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.random_stream.RandomStreamProfileModel._validate_transform_keys" + "validator": "raes_contracts.contracts.random_stream.RandomStreamProfileModel._validate_transform_keys" } ], "x-aces-semantic-profile": { diff --git a/contracts/schemas/profiles/random-stream-vector-v1.json b/contracts/schemas/profiles/random-stream-vector-v1.json index 6397ba693..818fc4a82 100644 --- a/contracts/schemas/profiles/random-stream-vector-v1.json +++ b/contracts/schemas/profiles/random-stream-vector-v1.json @@ -228,7 +228,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.random_stream.StreamAddressModel._validate_draw_purpose" + "validator": "raes_contracts.contracts.random_stream.StreamAddressModel._validate_draw_purpose" } ] }, diff --git a/contracts/schemas/profiles/scientific-completeness-assessment-v1.json b/contracts/schemas/profiles/scientific-completeness-assessment-v1.json index 4d43dbb1a..f512ebc2b 100644 --- a/contracts/schemas/profiles/scientific-completeness-assessment-v1.json +++ b/contracts/schemas/profiles/scientific-completeness-assessment-v1.json @@ -207,7 +207,7 @@ } ], "level": "error", - "validator": "aces_contracts.scientific_completeness.ScientificCompletenessAssessmentModel" + "validator": "raes_contracts.scientific_completeness.ScientificCompletenessAssessmentModel" }, { "description": "Assessment family, taxonomy revision, and concern ids must exactly match the joined taxonomy before completeness is computed.", @@ -223,7 +223,7 @@ } ], "level": "error", - "validator": "aces_contracts.scientific_completeness.evaluate_profile_completeness" + "validator": "raes_contracts.scientific_completeness.evaluate_profile_completeness" } ], "x-aces-semantic-profile": { diff --git a/contracts/schemas/profiles/scientific-completeness-taxonomy-v1.json b/contracts/schemas/profiles/scientific-completeness-taxonomy-v1.json index 4764d5516..6293d4f86 100644 --- a/contracts/schemas/profiles/scientific-completeness-taxonomy-v1.json +++ b/contracts/schemas/profiles/scientific-completeness-taxonomy-v1.json @@ -332,7 +332,7 @@ } ], "level": "error", - "validator": "aces_contracts.scientific_completeness.ScientificCompletenessTaxonomyModel" + "validator": "raes_contracts.scientific_completeness.ScientificCompletenessTaxonomyModel" }, { "description": "Each profile must carry resolved behavioral claim bindings and disjoint, catalog-resolved nonclaimed relation ids.", @@ -348,7 +348,7 @@ } ], "level": "error", - "validator": "aces_contracts.scientific_completeness.CompletenessProfileModel.validate_behavioral_claims" + "validator": "raes_contracts.scientific_completeness.CompletenessProfileModel.validate_behavioral_claims" } ], "x-aces-semantic-profile": { diff --git a/contracts/schemas/profiles/validation-basis-disclosure-v1.json b/contracts/schemas/profiles/validation-basis-disclosure-v1.json index 0cc863372..355f2750a 100644 --- a/contracts/schemas/profiles/validation-basis-disclosure-v1.json +++ b/contracts/schemas/profiles/validation-basis-disclosure-v1.json @@ -174,7 +174,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" + "validator": "raes_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" }, { "description": "gate_results gate_kind values must be unique, drawn from the resolved profile's required/optional union, and every required gate_kind must be present.", @@ -198,7 +198,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" + "validator": "raes_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" }, { "description": "achieved_strength must be supported by ADR-072-ordered passed gate rows for its own rank (structural never implies semantic; semantic never implies behavioral); evidence_backed/falsification_backed additionally require at least one evidence_ref.", @@ -222,7 +222,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" + "validator": "raes_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" }, { "description": "A required gate not passed, a not_applicable gate outcome, a below-minimum achieved_strength, and a public/audience-restricted audience each require an explicit, profile-declared limitation (the audience-restricted case specifically requires the audience_restricted category).", @@ -246,7 +246,7 @@ } ], "level": "error", - "validator": "aces_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" + "validator": "raes_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel._validate_validation_basis_disclosure" } ] }, diff --git a/contracts/schemas/profiles/validation-profile-catalog-v1.json b/contracts/schemas/profiles/validation-profile-catalog-v1.json index e8c78f046..74c7dc774 100644 --- a/contracts/schemas/profiles/validation-profile-catalog-v1.json +++ b/contracts/schemas/profiles/validation-profile-catalog-v1.json @@ -270,7 +270,7 @@ } ], "level": "error", - "validator": "aces_contracts.validation_profiles.ValidationProfileCatalogModel" + "validator": "raes_contracts.validation_profiles.ValidationProfileCatalogModel" } ], "x-aces-semantic-profile": { diff --git a/contracts/schemas/realization-envelope/realization-envelope-v1.json b/contracts/schemas/realization-envelope/realization-envelope-v1.json index cc81ebce9..aaa9467f6 100644 --- a/contracts/schemas/realization-envelope/realization-envelope-v1.json +++ b/contracts/schemas/realization-envelope/realization-envelope-v1.json @@ -976,7 +976,7 @@ } ], "level": "error", - "validator": "aces_contracts.realization_envelope.validate_backend_realization_envelope" + "validator": "raes_contracts.realization_envelope.validate_backend_realization_envelope" } ], "x-aces-semantic-profile": { diff --git a/contracts/schemas/satisfiability/scenario-satisfiability-evidence-v1.json b/contracts/schemas/satisfiability/scenario-satisfiability-evidence-v1.json index 0f46a8fa2..b493ee16e 100644 --- a/contracts/schemas/satisfiability/scenario-satisfiability-evidence-v1.json +++ b/contracts/schemas/satisfiability/scenario-satisfiability-evidence-v1.json @@ -2495,7 +2495,7 @@ }, "DockerfileInstruction": { "additionalProperties": false, - "description": "A structured record of one container build-recipe instruction.\n\nThe instruction is kept as a typed kind plus tokenized ``arguments``\nrather than raw recipe text: raw Dockerfile/shell syntax can contain\n``${...}`` strings that collide with ACES variable substitution.", + "description": "A structured record of one container build-recipe instruction.\n\nThe instruction is kept as a typed kind plus tokenized ``arguments``\nrather than raw recipe text: raw Dockerfile/shell syntax can contain\n``${...}`` strings that collide with RAES variable substitution.", "properties": { "arguments": { "items": { @@ -3056,7 +3056,7 @@ }, "ExternalMappingLoss": { "additionalProperties": false, - "description": "Loss-labeled mapping from an external vocabulary to ACES semantics.", + "description": "Loss-labeled mapping from an external vocabulary to RAES semantics.", "properties": { "identifier": { "title": "Identifier", @@ -4805,7 +4805,7 @@ }, "NormalizedConstraintModel": { "additionalProperties": false, - "description": "Solver-neutral normalized ACES finite-domain constraint model.", + "description": "Solver-neutral normalized RAES finite-domain constraint model.", "properties": { "authored_digest": { "$ref": "#/$defs/SemanticDigest" @@ -18525,7 +18525,7 @@ }, "ServiceManagerUnit": { "additionalProperties": false, - "description": "Observed service-manager unit state on a realized range node.\n\nEach record carries a stable ACES ``unit_id`` (the reference target), the\nnative ``unit_name`` (e.g. ``sshd.service``), the participant-observable\nlifecycle facts captured by ``systemctl`` (load/active/sub/enabled/result),\nand bounded optional evidence: the unit-file path, an ``ExecStart``\ndescriptor with explicit redaction discipline, the main PID when present,\nand an optional same-node ``Node.services[]`` ref.\n\nThis is observed WHAT-IS state, not provisioning intent or authored\nbehavior; see ADR-035 for the boundary against ``Node.services``,\n``conditions``, ``runtime.processes``, ``runtime.container.init_process``,\n``runtime.operational_policy``, and ``runtime.ssh_servers``.", + "description": "Observed service-manager unit state on a realized range node.\n\nEach record carries a stable RAES ``unit_id`` (the reference target), the\nnative ``unit_name`` (e.g. ``sshd.service``), the participant-observable\nlifecycle facts captured by ``systemctl`` (load/active/sub/enabled/result),\nand bounded optional evidence: the unit-file path, an ``ExecStart``\ndescriptor with explicit redaction discipline, the main PID when present,\nand an optional same-node ``Node.services[]`` ref.\n\nThis is observed WHAT-IS state, not provisioning intent or authored\nbehavior; see ADR-035 for the boundary against ``Node.services``,\n``conditions``, ``runtime.processes``, ``runtime.container.init_process``,\n``runtime.operational_policy``, and ``runtime.ssh_servers``.", "properties": { "active_state": { "anyOf": [ @@ -19533,7 +19533,7 @@ }, "TemporalConstraint": { "additionalProperties": false, - "description": "One typed temporal predicate over ordinary ACES subjects.", + "description": "One typed temporal predicate over ordinary RAES subjects.", "properties": { "cadence_ticks": { "anyOf": [ diff --git a/contracts/schemas/sdl/instantiated-scenario-snapshot-v1.json b/contracts/schemas/sdl/instantiated-scenario-snapshot-v1.json index f26347a9d..935f3e1f8 100644 --- a/contracts/schemas/sdl/instantiated-scenario-snapshot-v1.json +++ b/contracts/schemas/sdl/instantiated-scenario-snapshot-v1.json @@ -2851,7 +2851,7 @@ }, "DockerfileInstruction": { "additionalProperties": false, - "description": "A structured record of one container build-recipe instruction.\n\nThe instruction is kept as a typed kind plus tokenized ``arguments``\nrather than raw recipe text: raw Dockerfile/shell syntax can contain\n``${...}`` strings that collide with ACES variable substitution.", + "description": "A structured record of one container build-recipe instruction.\n\nThe instruction is kept as a typed kind plus tokenized ``arguments``\nrather than raw recipe text: raw Dockerfile/shell syntax can contain\n``${...}`` strings that collide with RAES variable substitution.", "properties": { "arguments": { "items": { @@ -3533,7 +3533,7 @@ }, "ExternalMappingLoss": { "additionalProperties": false, - "description": "Loss-labeled mapping from an external vocabulary to ACES semantics.", + "description": "Loss-labeled mapping from an external vocabulary to RAES semantics.", "properties": { "identifier": { "not": { @@ -23197,7 +23197,7 @@ }, "ServiceManagerUnit": { "additionalProperties": false, - "description": "Observed service-manager unit state on a realized range node.\n\nEach record carries a stable ACES ``unit_id`` (the reference target), the\nnative ``unit_name`` (e.g. ``sshd.service``), the participant-observable\nlifecycle facts captured by ``systemctl`` (load/active/sub/enabled/result),\nand bounded optional evidence: the unit-file path, an ``ExecStart``\ndescriptor with explicit redaction discipline, the main PID when present,\nand an optional same-node ``Node.services[]`` ref.\n\nThis is observed WHAT-IS state, not provisioning intent or authored\nbehavior; see ADR-035 for the boundary against ``Node.services``,\n``conditions``, ``runtime.processes``, ``runtime.container.init_process``,\n``runtime.operational_policy``, and ``runtime.ssh_servers``.", + "description": "Observed service-manager unit state on a realized range node.\n\nEach record carries a stable RAES ``unit_id`` (the reference target), the\nnative ``unit_name`` (e.g. ``sshd.service``), the participant-observable\nlifecycle facts captured by ``systemctl`` (load/active/sub/enabled/result),\nand bounded optional evidence: the unit-file path, an ``ExecStart``\ndescriptor with explicit redaction discipline, the main PID when present,\nand an optional same-node ``Node.services[]`` ref.\n\nThis is observed WHAT-IS state, not provisioning intent or authored\nbehavior; see ADR-035 for the boundary against ``Node.services``,\n``conditions``, ``runtime.processes``, ``runtime.container.init_process``,\n``runtime.operational_policy``, and ``runtime.ssh_servers``.", "properties": { "active_state": { "anyOf": [ @@ -24278,7 +24278,7 @@ }, "TemporalConstraint": { "additionalProperties": false, - "description": "One typed temporal predicate over ordinary ACES subjects.", + "description": "One typed temporal predicate over ordinary RAES subjects.", "properties": { "cadence_ticks": { "anyOf": [ diff --git a/contracts/schemas/sdl/instantiated-scenario-v1.json b/contracts/schemas/sdl/instantiated-scenario-v1.json index 1dbd1a152..a17ea2b93 100644 --- a/contracts/schemas/sdl/instantiated-scenario-v1.json +++ b/contracts/schemas/sdl/instantiated-scenario-v1.json @@ -2851,7 +2851,7 @@ }, "DockerfileInstruction": { "additionalProperties": false, - "description": "A structured record of one container build-recipe instruction.\n\nThe instruction is kept as a typed kind plus tokenized ``arguments``\nrather than raw recipe text: raw Dockerfile/shell syntax can contain\n``${...}`` strings that collide with ACES variable substitution.", + "description": "A structured record of one container build-recipe instruction.\n\nThe instruction is kept as a typed kind plus tokenized ``arguments``\nrather than raw recipe text: raw Dockerfile/shell syntax can contain\n``${...}`` strings that collide with RAES variable substitution.", "properties": { "arguments": { "items": { @@ -3533,7 +3533,7 @@ }, "ExternalMappingLoss": { "additionalProperties": false, - "description": "Loss-labeled mapping from an external vocabulary to ACES semantics.", + "description": "Loss-labeled mapping from an external vocabulary to RAES semantics.", "properties": { "identifier": { "not": { @@ -22554,7 +22554,7 @@ }, "ServiceManagerUnit": { "additionalProperties": false, - "description": "Observed service-manager unit state on a realized range node.\n\nEach record carries a stable ACES ``unit_id`` (the reference target), the\nnative ``unit_name`` (e.g. ``sshd.service``), the participant-observable\nlifecycle facts captured by ``systemctl`` (load/active/sub/enabled/result),\nand bounded optional evidence: the unit-file path, an ``ExecStart``\ndescriptor with explicit redaction discipline, the main PID when present,\nand an optional same-node ``Node.services[]`` ref.\n\nThis is observed WHAT-IS state, not provisioning intent or authored\nbehavior; see ADR-035 for the boundary against ``Node.services``,\n``conditions``, ``runtime.processes``, ``runtime.container.init_process``,\n``runtime.operational_policy``, and ``runtime.ssh_servers``.", + "description": "Observed service-manager unit state on a realized range node.\n\nEach record carries a stable RAES ``unit_id`` (the reference target), the\nnative ``unit_name`` (e.g. ``sshd.service``), the participant-observable\nlifecycle facts captured by ``systemctl`` (load/active/sub/enabled/result),\nand bounded optional evidence: the unit-file path, an ``ExecStart``\ndescriptor with explicit redaction discipline, the main PID when present,\nand an optional same-node ``Node.services[]`` ref.\n\nThis is observed WHAT-IS state, not provisioning intent or authored\nbehavior; see ADR-035 for the boundary against ``Node.services``,\n``conditions``, ``runtime.processes``, ``runtime.container.init_process``,\n``runtime.operational_policy``, and ``runtime.ssh_servers``.", "properties": { "active_state": { "anyOf": [ @@ -23635,7 +23635,7 @@ }, "TemporalConstraint": { "additionalProperties": false, - "description": "One typed temporal predicate over ordinary ACES subjects.", + "description": "One typed temporal predicate over ordinary RAES subjects.", "properties": { "cadence_ticks": { "anyOf": [ diff --git a/contracts/schemas/sdl/sdl-authoring-input-v1.json b/contracts/schemas/sdl/sdl-authoring-input-v1.json index d0af91fc7..8f255dbdf 100644 --- a/contracts/schemas/sdl/sdl-authoring-input-v1.json +++ b/contracts/schemas/sdl/sdl-authoring-input-v1.json @@ -2389,7 +2389,7 @@ }, "DockerfileInstruction": { "additionalProperties": false, - "description": "A structured record of one container build-recipe instruction.\n\nThe instruction is kept as a typed kind plus tokenized ``arguments``\nrather than raw recipe text: raw Dockerfile/shell syntax can contain\n``${...}`` strings that collide with ACES variable substitution.", + "description": "A structured record of one container build-recipe instruction.\n\nThe instruction is kept as a typed kind plus tokenized ``arguments``\nrather than raw recipe text: raw Dockerfile/shell syntax can contain\n``${...}`` strings that collide with RAES variable substitution.", "properties": { "arguments": { "items": { @@ -2954,7 +2954,7 @@ }, "ExternalMappingLoss": { "additionalProperties": false, - "description": "Loss-labeled mapping from an external vocabulary to ACES semantics.", + "description": "Loss-labeled mapping from an external vocabulary to RAES semantics.", "properties": { "identifier": { "title": "Identifier", @@ -18679,7 +18679,7 @@ }, "ServiceManagerUnit": { "additionalProperties": false, - "description": "Observed service-manager unit state on a realized range node.\n\nEach record carries a stable ACES ``unit_id`` (the reference target), the\nnative ``unit_name`` (e.g. ``sshd.service``), the participant-observable\nlifecycle facts captured by ``systemctl`` (load/active/sub/enabled/result),\nand bounded optional evidence: the unit-file path, an ``ExecStart``\ndescriptor with explicit redaction discipline, the main PID when present,\nand an optional same-node ``Node.services[]`` ref.\n\nThis is observed WHAT-IS state, not provisioning intent or authored\nbehavior; see ADR-035 for the boundary against ``Node.services``,\n``conditions``, ``runtime.processes``, ``runtime.container.init_process``,\n``runtime.operational_policy``, and ``runtime.ssh_servers``.", + "description": "Observed service-manager unit state on a realized range node.\n\nEach record carries a stable RAES ``unit_id`` (the reference target), the\nnative ``unit_name`` (e.g. ``sshd.service``), the participant-observable\nlifecycle facts captured by ``systemctl`` (load/active/sub/enabled/result),\nand bounded optional evidence: the unit-file path, an ``ExecStart``\ndescriptor with explicit redaction discipline, the main PID when present,\nand an optional same-node ``Node.services[]`` ref.\n\nThis is observed WHAT-IS state, not provisioning intent or authored\nbehavior; see ADR-035 for the boundary against ``Node.services``,\n``conditions``, ``runtime.processes``, ``runtime.container.init_process``,\n``runtime.operational_policy``, and ``runtime.ssh_servers``.", "properties": { "active_state": { "anyOf": [ @@ -19624,7 +19624,7 @@ }, "TemporalConstraint": { "additionalProperties": false, - "description": "One typed temporal predicate over ordinary ACES subjects.", + "description": "One typed temporal predicate over ordinary RAES subjects.", "properties": { "cadence_ticks": { "anyOf": [ diff --git a/contracts/schemas/snapshots/runtime-snapshot-v1.json b/contracts/schemas/snapshots/runtime-snapshot-v1.json index 1e6e2cc1b..35ab3b805 100644 --- a/contracts/schemas/snapshots/runtime-snapshot-v1.json +++ b/contracts/schemas/snapshots/runtime-snapshot-v1.json @@ -240,7 +240,7 @@ }, "EventClassificationModel": { "additionalProperties": false, - "description": "ACES-native normalized event classification tuple (ADR-054).", + "description": "RAES-native normalized event classification tuple (ADR-054).", "properties": { "activity_id": { "title": "Activity Id", diff --git a/docs/api/cli.rst b/docs/api/cli.rst index 51dc8a367..ddb9186e5 100644 --- a/docs/api/cli.rst +++ b/docs/api/cli.rst @@ -2,24 +2,24 @@ CLI Reference ============= The ``raes`` command-line interface is built with `Typer `_ -and lives in the canonical ``aces_cli`` package. +and lives in the canonical ``raes_cli`` package. -.. currentmodule:: aces_cli +.. currentmodule:: raes_cli Main CLI -------- -.. automodule:: aces_cli.main +.. automodule:: raes_cli.main :members: SDL Commands ------------ -.. automodule:: aces_cli.sdl +.. automodule:: raes_cli.sdl :members: Processor Commands ------------------ -.. automodule:: aces_cli.processor +.. automodule:: raes_cli.processor :members: diff --git a/docs/api/contracts.rst b/docs/api/contracts.rst index b6a9df297..87509155b 100644 --- a/docs/api/contracts.rst +++ b/docs/api/contracts.rst @@ -1,7 +1,7 @@ Shared Contracts ================ -The ``aces_contracts`` package owns neutral DTOs and enums shared across +The ``raes_contracts`` package owns neutral DTOs and enums shared across processor, runtime, backend protocols, conformance, and authoring surfaces. These contracts are the typed boundary for backend-facing runtime calls; they must not live in runtime or processor implementation modules. @@ -9,37 +9,37 @@ must not live in runtime or processor implementation modules. Diagnostics ----------- -.. automodule:: aces_contracts.diagnostics +.. automodule:: raes_contracts.diagnostics :members: Planning -------- -.. automodule:: aces_contracts.planning +.. automodule:: raes_contracts.planning :members: Runtime State ------------- -.. automodule:: aces_contracts.runtime_state +.. automodule:: raes_contracts.runtime_state :members: Workflow Results ---------------- -.. automodule:: aces_contracts.workflow +.. automodule:: raes_contracts.workflow :members: Evaluation Results ------------------ -.. automodule:: aces_contracts.evaluation +.. automodule:: raes_contracts.evaluation :members: Participant Episodes -------------------- -.. automodule:: aces_contracts.participant_episode +.. automodule:: raes_contracts.participant_episode :members: Participant Implementation Manifests @@ -47,7 +47,7 @@ Participant Implementation Manifests ``ParticipantImplementationManifestModel`` and ``ParticipantImplementationProvenanceModel`` live in -``aces_contracts.contracts`` with the other published contract models. The +``raes_contracts.contracts`` with the other published contract models. The manifest declares participant implementation identity, capabilities, compatibility, decision-surface modes, tool-affordance expectations, and constraints. The provenance record preserves the participant implementation, diff --git a/docs/api/processor-semantics.rst b/docs/api/processor-semantics.rst index 5fcc4e926..70bd40fb5 100644 --- a/docs/api/processor-semantics.rst +++ b/docs/api/processor-semantics.rst @@ -1,7 +1,7 @@ Processor Semantics =================== -The ``aces_processor.semantics`` subpackage holds processor-runtime +The ``raes_processor.semantics`` subpackage holds processor-runtime reconciliation helpers — dependency-graph construction over compiled resources, topological ordering, and resource-action reconciliation between compiled resources and runtime snapshots. @@ -11,10 +11,10 @@ workflow step-type contract, branch closure, the workflow step-result validator) live under ``raes.semantics`` and are documented in :doc:`sdl-semantics`. -.. currentmodule:: aces_processor.semantics +.. currentmodule:: raes_processor.semantics Planner Semantics ----------------- -.. automodule:: aces_processor.semantics.planner +.. automodule:: raes_processor.semantics.planner :members: diff --git a/docs/api/processor.rst b/docs/api/processor.rst index ccef139d3..0180a8863 100644 --- a/docs/api/processor.rst +++ b/docs/api/processor.rst @@ -1,84 +1,84 @@ Processor Layer =============== -The ``aces_processor`` package provides SDL processing: instantiation-aware +The ``raes_processor`` package provides SDL processing: instantiation-aware compilation, reconciliation planning, support determination, manifest authority, and compiled processor runtime models. Per ADR-036, live runtime -control lives in ``aces_runtime`` and cross-package runtime/backend DTOs live -in ``aces_contracts``. +control lives in ``raes_runtime`` and cross-package runtime/backend DTOs live +in ``raes_contracts``. -.. currentmodule:: aces_processor +.. currentmodule:: raes_processor Public API ---------- -.. automodule:: aces_processor +.. automodule:: raes_processor :members: :undoc-members: Compiler -------- -.. automodule:: aces_processor.compiler +.. automodule:: raes_processor.compiler :members: Processor Models ---------------- -The runtime data models live in the ``aces_processor.models`` package; its +The runtime data models live in the ``raes_processor.models`` package; its ``__init__`` re-exports the full public surface, and the classes and functions are documented here from the subdomain modules that define them. -.. automodule:: aces_processor.models.resources +.. automodule:: raes_processor.models.resources :members: -.. automodule:: aces_processor.models.behavior_resources +.. automodule:: raes_processor.models.behavior_resources :members: -.. automodule:: aces_processor.models.action_results +.. automodule:: raes_processor.models.action_results :members: -.. automodule:: aces_processor.models.attribution +.. automodule:: raes_processor.models.attribution :members: -.. automodule:: aces_processor.models.outcome +.. automodule:: raes_processor.models.outcome :members: -.. automodule:: aces_processor.models.outcome_interpretation_validation +.. automodule:: raes_processor.models.outcome_interpretation_validation :members: -.. automodule:: aces_processor.models.temporal +.. automodule:: raes_processor.models.temporal :members: -.. automodule:: aces_processor.models.history_event +.. automodule:: raes_processor.models.history_event :members: -.. automodule:: aces_processor.models.behavior_history_violations +.. automodule:: raes_processor.models.behavior_history_violations :members: -.. automodule:: aces_processor.models.runtime_model +.. automodule:: raes_processor.models.runtime_model :members: Manifest Authority ------------------ -.. automodule:: aces_processor.manifest +.. automodule:: raes_processor.manifest :members: Planner ------- -.. automodule:: aces_processor.planner +.. automodule:: raes_processor.planner :members: Capabilities ------------ -.. automodule:: aces_processor.capabilities +.. automodule:: raes_processor.capabilities :members: Exploit-Path Analysis --------------------- -.. automodule:: aces_processor.exploit_path +.. automodule:: raes_processor.exploit_path :members: diff --git a/docs/api/runtime.rst b/docs/api/runtime.rst index fc58f7881..682702e07 100644 --- a/docs/api/runtime.rst +++ b/docs/api/runtime.rst @@ -1,63 +1,63 @@ Runtime Layer ============= -The ``aces_runtime`` package owns live runtime control: runtime targets, +The ``raes_runtime`` package owns live runtime control: runtime targets, backend registry integration, manager lifecycle execution, control-plane submission and observation, operation persistence, security, and backend result-contract validation helpers. -Runtime APIs consume neutral DTOs from ``aces_contracts`` at backend and +Runtime APIs consume neutral DTOs from ``raes_contracts`` at backend and control-plane boundaries. Header-based control-plane identity is disabled by default and requires an explicit ``ControlPlaneSecurityConfig`` with ``trust_proxy_identity_headers=True``. -.. currentmodule:: aces_runtime +.. currentmodule:: raes_runtime Public API ---------- -.. automodule:: aces_runtime +.. automodule:: raes_runtime :members: :undoc-members: Runtime Manager --------------- -.. automodule:: aces_runtime.manager +.. automodule:: raes_runtime.manager :members: Backend Registry ---------------- -.. automodule:: aces_runtime.registry +.. automodule:: raes_runtime.registry :members: Control Plane ------------- -.. automodule:: aces_runtime.control_plane +.. automodule:: raes_runtime.control_plane :members: Control Plane API ----------------- -.. automodule:: aces_runtime.control_plane_api +.. automodule:: raes_runtime.control_plane_api :members: Control Plane Store ------------------- -.. automodule:: aces_runtime.control_plane_store +.. automodule:: raes_runtime.control_plane_store :members: Control Plane Security ---------------------- -.. automodule:: aces_runtime.control_plane_security +.. automodule:: raes_runtime.control_plane_security :members: Result Contracts ---------------- -.. automodule:: aces_runtime.result_contracts +.. automodule:: raes_runtime.result_contracts :members: diff --git a/docs/api/sdl-semantics.rst b/docs/api/sdl-semantics.rst index 809861624..7f9b37289 100644 --- a/docs/api/sdl-semantics.rst +++ b/docs/api/sdl-semantics.rst @@ -8,7 +8,7 @@ processor at compile time, and by the processor runtime. Per ADR-015 these helpers live with the SDL package because ``raes`` defines the language; they depend only on the standard library and have no -import-time coupling to ``aces_processor``. +import-time coupling to ``raes_processor``. .. currentmodule:: raes.semantics diff --git a/docs/decisions/adrs/adr-093-raes-rename-and-compatibility-boundaries.md b/docs/decisions/adrs/adr-093-raes-rename-and-compatibility-boundaries.md index 1c42a62c5..d806473e6 100644 --- a/docs/decisions/adrs/adr-093-raes-rename-and-compatibility-boundaries.md +++ b/docs/decisions/adrs/adr-093-raes-rename-and-compatibility-boundaries.md @@ -67,21 +67,20 @@ before it is changed: - historical/external records. Remaining ACES references are intentional only when they are historical -records, external references, retained source import paths, governed contract -identifiers, workflow keys owned by external automation, or migration -documentation. Current emitted identifiers should use RAES by default once the -owning surface is migrated. +records, external references, governed contract identifiers, workflow keys +owned by external automation, or migration documentation. Current source +imports and emitted identifiers use RAES. Public command and MCP surfaces make a hard cut to RAES. The `aces` and `aces-mcp` console scripts and the `aces_*` MCP tool aliases are removed instead of retained as compatibility aliases. The Python distribution surface moves to `raes` for new PyPI publication. -Legacy `aces.*` and `aces_*` Python import packages remain source/API names for -this issue because changing module namespaces is a separate package-boundary -migration. Do not add a central runtime rename service, universal identifier -registry, persistence table, API endpoint, or cross-package exception hierarchy -for the rename. +Legacy `aces.*`, `aces_sdl`, and `aces_*` Python import packages are removed by +the package-boundary hard cut. No aliases, wrappers, import hooks, or fallback +imports are provided. Do not add a central runtime rename service, universal +identifier registry, persistence table, API endpoint, or cross-package +exception hierarchy for the rename. Published schema and contract identifiers remain governed by ADR-061 and the schema-publication manifest. If a contract id, schema `$id`, profile id, or diff --git a/docs/decisions/issue-884-raes-python-import-hard-cut-preflight.md b/docs/decisions/issue-884-raes-python-import-hard-cut-preflight.md index ef58da68a..f5a87cbc1 100644 --- a/docs/decisions/issue-884-raes-python-import-hard-cut-preflight.md +++ b/docs/decisions/issue-884-raes-python-import-hard-cut-preflight.md @@ -15,14 +15,12 @@ contract semantics. provide a re-export package, import hook, `sys.modules` alias, namespace-only directory, warning shim, or fallback import. An old import must fail with the normal `ModuleNotFoundError`. -- The existing deprecated `aces.*` compatibility tree is a distinct surface. - If retained during this migration, its SDL wrappers may target `raes` only; - new repository source and all user-facing examples must import `raes`, not - `aces.core.sdl`. This does not preserve `aces_sdl` compatibility. -- Other owning packages (`aces_contracts`, `aces_processor`, `aces_runtime`, - and siblings), contract ids, schema `$id` values, wire discriminators, SDL - fields, and persisted artifact meaning are outside this cut. Do not create a - `raes_sdl` package or a new aggregate package to avoid changing imports. +- The deprecated `aces.*` compatibility tree is removed. No source, wheel, or + sdist may provide that namespace. +- Other owning Python packages move from `aces_*` to corresponding `raes_*` + namespaces without aliases. Contract ids, schema `$id` values, wire + discriminators, SDL fields, and persisted artifact meaning remain governed + separately. Do not create a `raes_sdl` compatibility package. ADR-093 is amended to replace its intentionally temporary retained-source- namespace position. The release is a breaking 1.0.0 release; release-please, @@ -30,7 +28,7 @@ not this change, owns the version literal and `CHANGELOG.md`. ## Required Existing Owners -- `implementations/python/packages/aces_sdl/` is the sole SDL owner to move to +- `implementations/python/packages/aces_sdl/` is the historical SDL owner moved to `raes/`; preserve its parser, source-profile, semantic-validator, instantiation, canonicalization, formatting, language-service, and module registry implementations rather than duplicating any of them. diff --git a/docs/decisions/issue-884-reframe-raes-documentation-preflight.md b/docs/decisions/issue-884-reframe-raes-documentation-preflight.md index 54ad4be6a..e3bb65a6c 100644 --- a/docs/decisions/issue-884-reframe-raes-documentation-preflight.md +++ b/docs/decisions/issue-884-reframe-raes-documentation-preflight.md @@ -149,8 +149,8 @@ taxonomy or project-description registry: - Published metadata: `implementations/python/pyproject.toml` for the short distribution description; the root `README.md` for the Hatch-injected PyPI long description; the root README citation metadata; - `implementations/python/packages/aces_mcp/server.py` for MCP discovery - instructions; `implementations/python/packages/aces_mcp/tools/reference.py` + `implementations/python/packages/raes_mcp/server.py` for MCP discovery + instructions; `implementations/python/packages/raes_mcp/tools/reference.py` for the emitted SDL overview; and `docs/conf.py` for generated Sphinx project/title metadata. Do not add another package README or metadata source. @@ -347,7 +347,7 @@ Avoid: - implementing the guard as a repository-wide keyword ban, allowing a hand-maintained exclusion list to grow around false positives, or treating a negated limitation as a forbidden positive claim; -- importing `aces_mcp.server`, evaluating `docs/conf.py`, building the package, +- importing `raes_mcp.server`, evaluating `docs/conf.py`, building the package, or running examples merely to extract user-facing strings for the policy check; - adding a second CI workflow, test runner, result class, waiver format, or diff --git a/docs/explain/reference/backend-conformance.md b/docs/explain/reference/backend-conformance.md index cf40d53b5..8ed59898f 100644 --- a/docs/explain/reference/backend-conformance.md +++ b/docs/explain/reference/backend-conformance.md @@ -11,7 +11,7 @@ fixture, or profile model. ## Architecture Decisions - Backend conformance is an implementation-side verifier under - `implementations/python/packages/aces_conformance`, not a normative artifact + `implementations/python/packages/raes_conformance`, not a normative artifact family under `contracts/`. - `contracts/fixtures/**//{valid,invalid}/*.json` is the canonical fixture corpus. The runner may accept an override root for tests, but the @@ -19,15 +19,14 @@ fixture, or profile model. - `contracts/profiles/backend/*.json` is the canonical backend capability profile corpus. Profile-to-contract requirements must be loaded from these artifacts instead of copied into a second in-code table. -- Published payload validation must go through `aces_contracts.contracts` +- Published payload validation must go through `raes_contracts.contracts` `ContractModel` descendants, `schema_bundle()`, and the existing semantic diagnostics helpers. - Backend manifests must be rendered through - `aces_backend_protocols.manifest.backend_manifest_payload()` and validated as + `raes_backend_protocols.manifest.backend_manifest_payload()` and validated as `backend-manifest-v2`; the conformance suite must not reassemble manifest JSON by hand. -- CLI entry points belong in the Typer-based `aces_cli` surface unless a - compatibility wrapper is retained only as a thin delegate. +- CLI entry points belong in the Typer-based `raes_cli` surface. - End-to-end proof tests for backend conformance should exercise the public runner or CLI against a full backend profile and the published fixture corpus; seeded-corruption tests should mutate a temporary copy of one existing @@ -39,26 +38,26 @@ fixture, or profile model. Reuse these existing surfaces before adding anything new: - contract models and closed-world validation: - `aces_contracts.contracts.ContractModel`, `BackendManifestV2Model`, + `raes_contracts.contracts.ContractModel`, `BackendManifestV2Model`, runtime envelope models, plan models, and history event models - contract publication inventory: `schema_bundle()` and `contracts/schema-publication-manifest.json` -- contract-corpus resolution: `aces_contracts.corpus.corpus_family_root()` with +- contract-corpus resolution: `raes_contracts.corpus.corpus_family_root()` with the `FIXTURES` and `PROFILES` family constants, so source checkouts and packaged installs resolve the same published corpus through one seam - backend contract authority: - `aces_contracts.manifest_authority.BACKEND_SUPPORTED_CONTRACT_IDS` and + `raes_contracts.manifest_authority.BACKEND_SUPPORTED_CONTRACT_IDS` and `validate_backend_supported_contract_versions()` - controlled vocabulary and concept-binding gates: - `aces_contracts.controlled_vocabularies`, - `aces_contracts.apparatus`, and the `BackendManifestV2Model` validators -- manifest rendering: `aces_backend_protocols.manifest.backend_manifest_payload` + `raes_contracts.controlled_vocabularies`, + `raes_contracts.apparatus`, and the `BackendManifestV2Model` validators +- manifest rendering: `raes_backend_protocols.manifest.backend_manifest_payload` - participant capability declarations: `capabilities.participant_runtime.supported_participant_roles`, `supported_behavior_features`, and `supported_interaction_features` - runtime behavior probes: `compile_runtime_model()`, `plan()`, `RuntimeControlPlane`, and `RuntimeTarget` -- diagnostics: `aces_processor.models.Diagnostic` and `Severity` +- diagnostics: `raes_processor.models.Diagnostic` and `Severity` - participant-episode semantic invariants: `iter_participant_episode_snapshot_violations()` - verification workflow: `.ground-control.yaml`, `.gc/plan-rules.md`, @@ -73,7 +72,7 @@ The conformance path touches these gates: roots or canonical repo roots; do not fetch remote fixtures or execute fixture content. - Corpus path resolution: default fixture/profile roots must flow through - `aces_contracts.corpus`; tests may pass explicit temporary override roots for + `raes_contracts.corpus`; tests may pass explicit temporary override roots for mutated corpora, but loaders must not reintroduce `Path(__file__).parents[N]` repo-root heuristics. - Profile id and path validation: profile ids must pass the backend-profile id @@ -187,21 +186,19 @@ Avoid: The published backend capability profile JSONs under `contracts/profiles/backend/` are the single source of truth for the -profile-to-contract mapping. `aces_contracts.backend_profiles.load_backend_profile` +profile-to-contract mapping. `raes_contracts.backend_profiles.load_backend_profile` loads them through `BackendProfileModel` — a closed-world `ContractModel` that validates `required_contracts` against the authoritative `BACKEND_SUPPORTED_CONTRACT_IDS` set. The conformance runner reads its required contract sets from those profiles; no second authority table lives in code. -The canonical CLI surface is `aces conformance backend`, registered on the -Typer `aces_cli` app next to `aces sdl` and `aces processor`. It accepts +The canonical CLI surface is `raes conformance backend`, registered on the +Typer `raes_cli` app next to `raes sdl` and `raes processor`. It accepts `--profile`, `--fixtures-root`, and `--profiles-root` overrides; the defaults point at the canonical `contracts/` tree. The runner exits non-zero when the report has any failing case or top-level diagnostic so -the command can be wired directly into CI gates. The historic -`python -m aces_conformance.runner` entry point is preserved as a thin -delegate that forwards to the same Typer command. +the command can be wired directly into CI gates. ## Target Conformance Reference Scenario diff --git a/docs/explain/reference/coding-standards.md b/docs/explain/reference/coding-standards.md index 045307aac..cfb044f3d 100644 --- a/docs/explain/reference/coding-standards.md +++ b/docs/explain/reference/coding-standards.md @@ -253,7 +253,7 @@ generic syntax, or mechanical docstrings on every private helper are disabled in `sonar-project.properties` rather than encoded as source churn. Compatibility modules that intentionally re-export symbols, such as -`aces_processor.models`, may also receive a narrow Sonar unused-import exclusion. +`raes_processor.models`, may also receive a narrow Sonar unused-import exclusion. Those exclusions must stay file-specific and must not hide unused imports in owning implementation modules. diff --git a/docs/explain/reference/explicitness-realization-semantics.md b/docs/explain/reference/explicitness-realization-semantics.md index 9f3ee6056..435beb6d5 100644 --- a/docs/explain/reference/explicitness-realization-semantics.md +++ b/docs/explain/reference/explicitness-realization-semantics.md @@ -43,7 +43,7 @@ engineering risk is concept conflation: treating "not specified yet", manifest declares compatible support. - Keep rejection semantics fail-closed and diagnostic-driven. Unsupported exact requirements should surface through existing `SDLValidationError`, - `SDLInstantiationError`, or `aces_processor.models.Diagnostic` paths, + `SDLInstantiationError`, or `raes_processor.models.Diagnostic` paths, depending on the phase where support is known. ## Canonical Incumbents @@ -57,19 +57,19 @@ Build on these existing surfaces before adding anything new: - static semantics: `SemanticValidator` and `SDLValidationError` - instantiation: `instantiate_scenario()` and `SDLInstantiationError` - shared semantic helpers: `raes.semantics.*` and - `aces_processor.semantics.*` -- processor/backend declarations: `aces_processor.manifest`, - `aces_processor.capabilities`, `aces_backend_protocols.capabilities`, and - `aces_backend_protocols.manifest.backend_manifest_payload()` -- apparatus contract primitives: `aces_contracts.apparatus`, + `raes_processor.semantics.*` +- processor/backend declarations: `raes_processor.manifest`, + `raes_processor.capabilities`, `raes_backend_protocols.capabilities`, and + `raes_backend_protocols.manifest.backend_manifest_payload()` +- apparatus contract primitives: `raes_contracts.apparatus`, `RealizationSupportDeclaration`, `ConceptBinding`, and `RealizationSupportMode` -- contract validation: `aces_contracts.contracts.ContractModel`, +- contract validation: `raes_contracts.contracts.ContractModel`, `BackendManifestV2Model`, `ProcessorManifestV2Model`, `schema_bundle()`, generated `contracts/schemas/`, and fixture validation - authority helpers: `manifest_authority`, `controlled_vocabularies`, `semantic_profiles`, `reference_models`, and the concept-authority catalogs -- runtime diagnostics and envelopes: `aces_processor.models.Diagnostic`, +- runtime diagnostics and envelopes: `raes_processor.models.Diagnostic`, runtime plan/result/snapshot models, and published control-plane contracts - workflow gates: `.ground-control.yaml`, `.gc/plan-rules.md`, `tools/check_repo_policy.py`, `tools/check_requirement_governance.py`, @@ -179,13 +179,13 @@ envelopes, or experiment-core contracts. ## Part 2 Implementation Boundary The typed compiler emission and planner gate must preserve the classifier output -as runtime-model metadata owned by `aces_processor.models.RuntimeModel` and -emitted by `aces_processor.compiler`. The planner should consume that compiled +as runtime-model metadata owned by `raes_processor.models.RuntimeModel` and +emitted by `raes_processor.compiler`. The planner should consume that compiled metadata directly; it must not re-walk SDL YAML, rerun the classifier, infer exactness from backend capability failures, or treat the backend manifest as an author-intent source. -Planner rejection belongs in the existing `aces_processor.planner.plan()` / +Planner rejection belongs in the existing `raes_processor.planner.plan()` / `ExecutionPlan.diagnostics` path. Unsupported exact or constrained requirement kinds and open demand without explicit `OPEN_REALIZATION` support should be reported as stable `Diagnostic` objects that name the compiled diff --git a/docs/explain/reference/fm-classification-ledger.yaml b/docs/explain/reference/fm-classification-ledger.yaml index a294f9012..1ff172149 100644 --- a/docs/explain/reference/fm-classification-ledger.yaml +++ b/docs/explain/reference/fm-classification-ledger.yaml @@ -478,7 +478,7 @@ entries: - kind: unit_tests path: implementations/python/tests/test_behavioral_relations.py - kind: typed_ir_or_contract_coverage - path: implementations/python/packages/aces_contracts/behavioral_relations.py + path: implementations/python/packages/raes_contracts/behavioral_relations.py - kind: property_based_or_differential_tests path: implementations/python/tests/test_behavioral_relations.py waived_artifacts: [] diff --git a/docs/explain/reference/normative-artifact-authority.md b/docs/explain/reference/normative-artifact-authority.md index ec6742df1..615ad9a46 100644 --- a/docs/explain/reference/normative-artifact-authority.md +++ b/docs/explain/reference/normative-artifact-authority.md @@ -44,13 +44,13 @@ Reuse these existing surfaces before adding anything new: `contracts/fixtures/`, `contracts/profiles/`, and `contracts/realization-envelopes/` - contract model and schema bundle helpers: - `aces_contracts.contracts.ContractModel`, `schema_bundle()`, and the + `raes_contracts.contracts.ContractModel`, `schema_bundle()`, and the published `*Model` validators - manifest and profile authority helpers: - `aces_contracts.manifest_authority`, - `aces_contracts.backend_profiles`, `aces_contracts.semantic_profiles`, - `aces_contracts.controlled_vocabularies`, and - `aces_contracts.reference_models` + `raes_contracts.manifest_authority`, + `raes_contracts.backend_profiles`, `raes_contracts.semantic_profiles`, + `raes_contracts.controlled_vocabularies`, and + `raes_contracts.reference_models` - generation and validation gates: `tools/generate_contract_schemas.py`, `tools/check_generated_schemas.py`, `tools/check_schema_publication.py`, and `tools/check_json_artifacts.py` @@ -129,8 +129,7 @@ Avoid: artifacts). `docs/`, `implementations/`, `examples/`, `research/`, `notes/`, and `tools/` are non-normative roots per the authority manifest and may not host authority artifacts -- adding implementation logic under the compatibility-only - `implementations/python/src/aces/` tree +- recreating the retired `implementations/python/src/aces/` namespace - preserving legacy or transitional path names as current authority when `ADR-009` already defines the target model - making invalid fixtures multi-concern when one focused fixture can prove the diff --git a/docs/explain/reference/realization-envelopes.md b/docs/explain/reference/realization-envelopes.md index e40e45445..5b8ff3b00 100644 --- a/docs/explain/reference/realization-envelopes.md +++ b/docs/explain/reference/realization-envelopes.md @@ -23,7 +23,7 @@ to claim more than it can show. Every governed concern carries an **observation strength** — the strongest evidence the selected configuration produces for it. The ladder is closed -(`aces_contracts.realization_envelope_carrier.ObservationStrength`): +(`raes_contracts.realization_envelope_carrier.ObservationStrength`): | Strength | Meaning | | --- | --- | @@ -58,7 +58,7 @@ relabel a weaker configuration as stronger. Published envelopes live under ## The libvirt backend's configurations -The libvirt backend (`aces_backend_libvirt.envelopes.LibvirtDriverMode`) ships +The libvirt backend (`raes_backend_libvirt.envelopes.LibvirtDriverMode`) ships three material configurations: - **`generic`** — qcow2/cloud-init driver; concerns are `driver-reported`. @@ -99,19 +99,19 @@ spec, or fake connection can exercise a leaf but cannot satisfy the native-proof gate. Then: 1. **Boot.** A guest-observing BusyBox appliance - (`aces_backend_libvirt.guest_appliance`) is booted on real QEMU. It realizes + (`raes_backend_libvirt.guest_appliance`) is booted on real QEMU. It realizes the bounded seeded content, account, and service placements from the plan. 2. **Read back from inside.** The appliance reads its *own* realized state — `nproc`/`/proc/meminfo`, `ip addr`/`/sys/class/net`, in-guest file `sha256`/mode, `/etc/passwd` posture (no credential material), and service process + bound port — and reports bounded, line-oriented facts over a credential-free file-backed serial channel - (`aces_backend_libvirt.guest_transport`). No SSH, no password, no general + (`raes_backend_libvirt.guest_transport`). No SSH, no password, no general command runner. 3. **Freshness.** A fresh per-run challenge is injected via the kernel command line and must be echoed back; a cached or prior-boot report cannot pass. 4. **Stage and compare.** The observer - (`aces_backend_libvirt.guest_observation`) runs ordered stages (daemon → + (`raes_backend_libvirt.guest_observation`) runs ordered stages (daemon → transport → initialization → concern probes → cleanup); a later stage never repairs an earlier one. Each concern becomes a `RealizationObservation` at `guest-observed` strength, compared to the requested realization. Failures are @@ -129,11 +129,11 @@ gate. Then: The envelope, the observer, the falsification tests, and the evidence artifact move together, so an envelope cannot drift into overclaiming: -- The evidence producer (`aces_operations.libvirt_evidence_run`) binds each guest +- The evidence producer (`raes_operations.libvirt_evidence_run`) binds each guest observation to the control-plane operation, the fresh challenge, the selected envelope/configuration and appliance digests, and a `sha256:` correlation from the ownership-verified native identity, then runs the shared redaction and - binding validators (`aces_operations._evidence_run_validation`) *before* the + binding validators (`raes_operations._evidence_run_validation`) *before* the artifact is written. - **Native-proof boundary.** A guest-certified artifact is `certifying` only when the production driver/transport produced it. An injected fake driver may @@ -156,7 +156,7 @@ opt-in run: ```sh # Operator/self-hosted command: boots the guest-observing appliance against a # real libvirt/QEMU daemon and emits a validated evidence artifact. -aces libvirt techvault guest-certify \ +raes libvirt techvault guest-certify \ --scenario examples/scenarios/techvault-guest-certified.sdl.yaml \ --project-dir . --run-id guest-proof-1 --yes ``` diff --git a/docs/explain/reference/reference-emulation-backend.md b/docs/explain/reference/reference-emulation-backend.md index 797f817cc..ae2e07dfb 100644 --- a/docs/explain/reference/reference-emulation-backend.md +++ b/docs/explain/reference/reference-emulation-backend.md @@ -4,12 +4,12 @@ The reference emulation backend (RUN-314, [ADR-063](../../decisions/adrs/adr-063-reference-emulation-backend.md)) is a repository-owned, concrete implementation of the four backend protocol roles — Provisioner, Orchestrator, Evaluator, and ParticipantRuntime. It lives in the -implementation package `aces_reference_backend` and is **not** a normative +implementation package `raes_reference_backend` and is **not** a normative authority surface: it consumes the existing manifest, registry, conformance, and SEM-218 realization seams and proves compatibility against the published contracts. -Unlike the non-normative in-memory stub (`aces_backend_stubs`), the reference +Unlike the non-normative in-memory stub (`raes_backend_stubs`), the reference backend realizes provisioning plans against a pluggable deployment driver. The default driver is hermetic; an opt-in OCI driver realizes against a real container runtime (docker/podman). Either way, only portable RAES facts reach @@ -22,11 +22,11 @@ the name `reference-emulation`. Construct a target directly or through the registry: ```python -from aces_reference_backend import ( +from raes_reference_backend import ( create_reference_backend_target, register_reference_backend, ) -from aces.core.runtime.registry import BackendRegistry +from raes_runtime.registry import BackendRegistry # Direct: default hermetic in-process driver. target = create_reference_backend_target() @@ -74,8 +74,8 @@ driver that realizes services or ACLs must use the existing realization-concern and diagnostic surfaces and provide evidence for the runtime effect it claims. ```python -from aces_reference_backend import create_reference_backend_target -from aces_reference_backend.drivers.oci import OciDeploymentDriver +from raes_reference_backend import create_reference_backend_target +from raes_reference_backend.drivers.oci import OciDeploymentDriver driver = OciDeploymentDriver(runtime="docker", workspace="aces-ref") target = create_reference_backend_target(driver=driver) @@ -89,9 +89,9 @@ provenance through the existing apply gate: ```python import textwrap -from aces.core.runtime.manager import RuntimeManager -from aces.core.sdl import parse_sdl -from aces_reference_backend import create_reference_backend_target +from raes_runtime.manager import RuntimeManager +from raes import parse_sdl +from raes_reference_backend import create_reference_backend_target manager = RuntimeManager(create_reference_backend_target()) plan = manager.plan(parse_sdl(textwrap.dedent(""" @@ -120,11 +120,11 @@ The reference target passes `run_target_conformance` at the including the full RUN-311 participant-episode probe: ```python -from aces.core.runtime.conformance import ( +from raes_conformance.conformance import ( BackendCapabilityProfile, run_target_conformance, ) -from aces_reference_backend import create_reference_backend_target +from raes_reference_backend import create_reference_backend_target report = run_target_conformance(create_reference_backend_target()) assert report.profile == BackendCapabilityProfile.FULL_REMOTE_CONTROL_PLANE diff --git a/docs/explain/reference/scenario-variation-and-trial-realization.md b/docs/explain/reference/scenario-variation-and-trial-realization.md index a4cda6b57..495d75886 100644 --- a/docs/explain/reference/scenario-variation-and-trial-realization.md +++ b/docs/explain/reference/scenario-variation-and-trial-realization.md @@ -133,9 +133,9 @@ scheduler state, or backend refusal back into experiment selection. | 1. Module composition | `raes.composition` and `module_registry` | Normalized root SDL, locked imports, trust policy, verified module bytes | Expanded scenario family | Resolve the complete declaration graph before selection; preserve qualified canonical symbols; selected values never influence module or declaration identity | Import preorder, namespace, requested and resolved source identities, versions, content/manifest/export digests, signer attribution, bindings | | 2. Scenario-family declaration | SDL models and `SemanticValidator` | Normalized/composed family with a keyed map of variation points | Semantically admitted expanded scenario family | Every point has a stable qualified id, a closed kind, a bounded domain, a typed target, and locally valid alternatives; the family is not experiment allocation | Family semantic digest, point/domain/profile versions, source locations, expansion evidence | | 3. Experiment design | `experiment-authoring-input-v1` and experiment-core validators | Task/family refs, factors, allocation, selection policies, stochastic controls, apparatus intent | Closed experiment specification | Policies target existing point ids; factors and conditions remain experiment concepts; refs/digests pin the family and task; descriptive legacy randomization fields cannot execute by convention | Spec identity/digest, task/family refs, factor and condition ids, policy/control ids and versions, randomness namespace, requested apparatus and capture refs | -| 4. Trial-set compilation and admission | `aces_processor` using neutral DTOs from `aces_contracts` | Admitted experiment spec, exact family/task bytes, apparatus manifests/accepted envelopes, compiler/identity/RNG profiles | One canonical admitted trial plan | Pure deterministic function of admitted inputs; preallocate one archival `run_id` per logical coordinate; emit no plan if any selected entry is invalid, impossible, duplicate, or unrealizable | All input refs/digests, profiles, coordinates, run ids, selections, factor assignments, stochastic controls and stream addresses, apparatus bindings, bounded admission evidence | -| 5. SDL instantiation | Public `raes` selection/instantiation/admission APIs, orchestrated by `aces_processor` | One plan entry and the exact expanded family it pins | Admitted `InstantiatedScenario` and canonical snapshot | Apply only recorded selections/bindings; no new draw, import, query, fallback, or private binder; rerun whole-scenario semantic validation | Existing expansion/instantiation evidence plus point selections and trial-plan/run linkage | -| 6. Runtime fact binding | `aces_runtime` over compiled slots and neutral fact DTOs | Admitted compiled plans, authorized observations and secret references | Run-local bound operation/action input and binding event evidence | Fill only a declared sink with matching type/source/scope/freshness/sensitivity; never mutate the plan, snapshot, factors, topology, choices, run id, or streams | Slot id, safe fact/source ref, scope, freshness, sensitivity, authorization/evidence refs, binding outcome; no raw secret | +| 4. Trial-set compilation and admission | `raes_processor` using neutral DTOs from `raes_contracts` | Admitted experiment spec, exact family/task bytes, apparatus manifests/accepted envelopes, compiler/identity/RNG profiles | One canonical admitted trial plan | Pure deterministic function of admitted inputs; preallocate one archival `run_id` per logical coordinate; emit no plan if any selected entry is invalid, impossible, duplicate, or unrealizable | All input refs/digests, profiles, coordinates, run ids, selections, factor assignments, stochastic controls and stream addresses, apparatus bindings, bounded admission evidence | +| 5. SDL instantiation | Public `raes` selection/instantiation/admission APIs, orchestrated by `raes_processor` | One plan entry and the exact expanded family it pins | Admitted `InstantiatedScenario` and canonical snapshot | Apply only recorded selections/bindings; no new draw, import, query, fallback, or private binder; rerun whole-scenario semantic validation | Existing expansion/instantiation evidence plus point selections and trial-plan/run linkage | +| 6. Runtime fact binding | `raes_runtime` over compiled slots and neutral fact DTOs | Admitted compiled plans, authorized observations and secret references | Run-local bound operation/action input and binding event evidence | Fill only a declared sink with matching type/source/scope/freshness/sensitivity; never mutate the plan, snapshot, factors, topology, choices, run id, or streams | Slot id, safe fact/source ref, scope, freshness, sensitivity, authorization/evidence refs, binding outcome; no raw secret | | 7. Backend realization | Existing planner, manifest, realization-envelope, and backend protocols | Admitted plans plus selected apparatus/envelope/manifests | Existing backend plans, operation receipts/status, runtime snapshots, and realized-form disclosures | Realize only within the selected envelope and capabilities; backend refusal is failure/deviation, never permission to resample | Manifest/envelope/configuration refs/digests, realized forms, transformations, omissions, operation ids, receipts | | 8. Orchestration and scheduling | External scheduler, including APTL for SCE-006 | Admitted plan entries and execution/isolation policy | Queue/placement state and dispatch decisions, outside scenario identity | May order, delay, pause, retry transport, and use bounded parallelism after isolation proof; cannot select, instantiate, randomize, compare, or score | Dispatch order, instance/lock/storage allocation, timeouts, clean-state/cleanup evidence, retry reason | | 9. Archival provenance | `ExperimentRunModel`, `ExperimentStudyModel`, evidence and cross-artifact validators | Sealed execution/evidence plus plan/snapshot refs | One run per started trial and study/allocation records | The preallocated plan-entry `run_id` becomes the archival `run_id`; a genuine re-execution receives a new admitted id; live state is not the run record | Actual parameters/stochastic/apparatus facts, scenario snapshot, realized forms, evidence, deviations, lineage to plan/spec/task and source run where applicable | @@ -218,7 +218,7 @@ primitives introduced with ADR-070. They do not reuse or witness generation as experiment selection. ADR-070 is accepted and owns only the realizability relation; its witness seed is not experiment randomness. -The reusable domain algebra belongs in a dependency-neutral `aces_contracts` +The reusable domain algebra belongs in a dependency-neutral `raes_contracts` leaf that does not import SDL models or schema-bundle machinery. Realization envelopes and scenario-family declarations consume (and may re-export) those same closed domain types and membership helpers. They must not copy the @@ -546,7 +546,7 @@ fallback value or scenario resampling is permitted. The reference implementation exposes this boundary through the closed `runtime-fact-binding-plane-v1` contract and -`aces_runtime.runtime_fact_bindings.RuntimeFactBindingPlane`. +`raes_runtime.runtime_fact_bindings.RuntimeFactBindingPlane`. - `RuntimeFactDeclarationModel` fixes portable type, source, sensitivity, visibility, and authority semantics before values arrive. @@ -773,7 +773,7 @@ fact_binding_event: ADR-070 is accepted by this change after its closed value-domain primitives, membership/subsumption relation, contract carriage, posture semantics, and -honesty conformance landed. Those neutral `aces_contracts`/SDL primitives may +honesty conformance landed. Those neutral `raes_contracts`/SDL primitives may be reused, but `WitnessPolicy.seed` is not randomness and backend posture is never scenario or experiment selection. diff --git a/docs/explain/reference/shared-semantic-integrity.md b/docs/explain/reference/shared-semantic-integrity.md index 176cd50c6..6de2023cd 100644 --- a/docs/explain/reference/shared-semantic-integrity.md +++ b/docs/explain/reference/shared-semantic-integrity.md @@ -61,12 +61,12 @@ Use these existing surfaces before adding anything new: instantiated artifact/snapshot schemas - shared SDL semantics: `raes.semantics.objectives` and `raes.semantics.workflow` -- runtime graph semantics: `aces_processor.semantics.planner` -- runtime diagnostics: `aces_processor.models.Diagnostic` -- contract boundaries: `aces_contracts.contracts.ContractModel`, +- runtime graph semantics: `raes_processor.semantics.planner` +- runtime diagnostics: `raes_processor.models.Diagnostic` +- contract boundaries: `raes_contracts.contracts.ContractModel`, `schema_bundle()`, generated `contracts/schemas/`, and fixture validation - concept authority: `contracts/concept-authority/`, - `specs/concept-authority/`, `aces_contracts.vocabulary`, + `specs/concept-authority/`, `raes_contracts.vocabulary`, `manifest_authority`, `controlled_vocabularies`, `reference_models`, and `semantic_profiles` - backend and processor declarations: shared `v2` apparatus manifests with @@ -195,7 +195,7 @@ Status is one of: *existing* test under `implementations/python/tests/test_*.py`. It also enforces *integration, not just existence*: when the row names importable Python realizing modules, at least one named test must actually **import** one - of them (resolving compatibility wrappers and package re-exports — a bare + of them (resolving package re-exports — a bare `import` of a whole package does not count), and every `test_*` function in the row's named test files must contain at least one assertion (no zero-assertion stub tests). Whether the owning requirement is actually `ACTIVE`, and whether @@ -229,35 +229,35 @@ so they are tracked by their own requirements, not here. | Construct family | Owning requirement(s) | Phases covered | Realizing artifacts | Status | | --- | --- | --- | --- | --- | | Fail-closed semantic validation (cross-cutting gate) | SEM-201 | validation, instantiation | `implementations/python/packages/raes/validator/__init__.py`, `implementations/python/packages/raes/instantiate.py`, `implementations/python/tests/test_sdl_validator.py` | active | -| Stable identifiers, parameterized values, and qualified references | DSL-101, DSL-102, SEM-205 | authoring, validation, instantiation, compilation, planning, execution, observation | `docs/decisions/adrs/adr-076-portable-sdl-identifiers-and-canonical-addresses.md`, `specs/sdl/document-model.md`, `specs/sdl/references.md`, `implementations/python/packages/raes/_identifiers.py`, `implementations/python/packages/raes/_declarations.py`, `implementations/python/packages/raes/parser.py`, `implementations/python/packages/raes/composition.py`, `implementations/python/packages/aces_processor/compiler/__init__.py`, `implementations/python/packages/aces_runtime/backend_calls.py`, `implementations/python/packages/aces_runtime/control_plane.py`, `implementations/python/tests/test_sdl_identifiers.py` | active | +| Stable identifiers, parameterized values, and qualified references | DSL-101, DSL-102, SEM-205 | authoring, validation, instantiation, compilation, planning, execution, observation | `docs/decisions/adrs/adr-076-portable-sdl-identifiers-and-canonical-addresses.md`, `specs/sdl/document-model.md`, `specs/sdl/references.md`, `implementations/python/packages/raes/_identifiers.py`, `implementations/python/packages/raes/_declarations.py`, `implementations/python/packages/raes/parser.py`, `implementations/python/packages/raes/composition.py`, `implementations/python/packages/raes_processor/compiler/__init__.py`, `implementations/python/packages/raes_runtime/backend_calls.py`, `implementations/python/packages/raes_runtime/control_plane.py`, `implementations/python/tests/test_sdl_identifiers.py` | active | | Deterministic module composition and canonical-identity stability across expansion | DSL-103, SEM-205 | authoring, validation, compilation | `implementations/python/packages/raes/composition.py`, `implementations/python/packages/raes/module_registry.py`, `specs/formal/composition-readiness.md`, `implementations/python/tests/test_sdl_module_registry.py` | active | | Instantiation, closed portable phase contracts, and revalidation of concrete scenarios | RUN-301 | instantiation, validation | `docs/decisions/adrs/adr-078-closed-sdl-phase-contracts-and-portable-derivation-evidence.md`, `specs/formal/sdl-phases/README.md`, `contracts/schemas/sdl/instantiated-scenario-v1.json`, `contracts/schemas/sdl/instantiated-scenario-snapshot-v1.json`, `implementations/python/packages/raes/phase_contracts.py`, `implementations/python/packages/raes/instantiate.py`, `implementations/python/tests/test_sdl_phase_contracts.py`, `implementations/python/tests/test_instantiated_scenario_schema.py`, `implementations/python/tests/test_sdl_validator.py`, `implementations/python/tests/test_run_300_lifecycle.py` | active | | Objective windows, referenced scopes, reachability, and refresh | SEM-202 | validation, compilation, planning | `implementations/python/packages/raes/semantics/objectives.py`, `specs/formal/objectives/README.md`, `specs/formal/objectives/window-consistency.md`, `implementations/python/tests/test_semantics_objectives.py`, `implementations/python/tests/test_fm2_semantics.py` | active | -| Declarative objective actor binding, target resolution, success interpretation, and dependency ordering | DSL-112, SEM-207 | authoring, validation, instantiation, compilation, planning | `implementations/python/packages/raes/objectives.py`, `implementations/python/packages/raes/semantics/objective_semantics.py`, `implementations/python/packages/raes/validator/__init__.py`, `implementations/python/packages/aces_processor/compiler/__init__.py`, `implementations/python/packages/aces_processor/models/`, `specs/formal/objectives/README.md`, `specs/formal/objectives/declarative-objective-semantics.md`, `implementations/python/tests/test_semantics_objectives.py`, `implementations/python/tests/test_fm2_semantics.py`, `implementations/python/tests/test_sdl_validator.py` | active | +| Declarative objective actor binding, target resolution, success interpretation, and dependency ordering | DSL-112, SEM-207 | authoring, validation, instantiation, compilation, planning | `implementations/python/packages/raes/objectives.py`, `implementations/python/packages/raes/semantics/objective_semantics.py`, `implementations/python/packages/raes/validator/__init__.py`, `implementations/python/packages/raes_processor/compiler/__init__.py`, `implementations/python/packages/raes_processor/models/`, `specs/formal/objectives/README.md`, `specs/formal/objectives/declarative-objective-semantics.md`, `implementations/python/tests/test_semantics_objectives.py`, `implementations/python/tests/test_fm2_semantics.py`, `implementations/python/tests/test_sdl_validator.py` | active | | Workflow control semantics (branching, joins, calling, retry, completion, history) | DSL-113, SEM-203 | authoring, validation, compilation, planning, execution, observation | `implementations/python/packages/raes/orchestration.py`, `implementations/python/packages/raes/semantics/workflow.py`, `specs/formal/workflows/README.md`, `specs/formal/workflows/state-machine.md`, `implementations/python/tests/test_sdl_validator.py`, `implementations/python/tests/test_runtime_models.py`, `implementations/python/tests/test_sdl_models.py` | active | | Workflow compensation semantics (registration, triggering, ordering, observation) | SEM-204 | validation, compilation, execution, observation | `implementations/python/packages/raes/semantics/workflow.py`, `specs/formal/workflows/compensation.md`, `implementations/python/tests/test_sdl_validator.py`, `implementations/python/tests/test_runtime_manager.py` | partial | -| Backend-neutral proposition truth and assertion-composed objective success (probe conditions remain separate implementation bindings; SDL scoring pipeline removed per ADR-073) | DSL-110, SEM-206 | authoring, validation, compilation, planning, execution, observation | `implementations/python/packages/raes/propositions.py`, `implementations/python/packages/raes/conditions.py`, `implementations/python/packages/raes/semantics/propositions.py`, `implementations/python/packages/raes/semantics/objective_semantics.py`, `implementations/python/packages/aces_processor/compiler/__init__.py`, `implementations/python/packages/aces_processor/models/`, `specs/formal/objectives/proposition-and-assertion-semantics.md`, `implementations/python/tests/test_proposition_semantics.py`, `implementations/python/tests/test_truth_result_contracts.py`, `implementations/python/tests/test_fm2_semantics.py` | active | -| Runtime compiled representation and canonical addresses | RUN-302 | compilation | `implementations/python/packages/aces_processor/compiler/__init__.py`, `implementations/python/tests/test_runtime_models.py`, `implementations/python/tests/test_fm2_semantics.py` | active | -| Planner dependency, ordering, refresh, and applicability semantics | RUN-303 | planning | `implementations/python/packages/aces_processor/semantics/planner.py`, `implementations/python/packages/aces_processor/planner/__init__.py`, `specs/formal/planner/README.md`, `specs/formal/planner/dependency-ordering.md`, `implementations/python/tests/test_semantics_planner.py`, `implementations/python/tests/test_runtime_planner.py` | active | -| Live execution state and lifecycle (snapshots, results, history) | RUN-304, API-402 | execution, observation | `implementations/python/packages/aces_runtime/manager.py`, `implementations/python/packages/aces_runtime/result_contracts.py`, `implementations/python/packages/aces_processor/models/`, `implementations/python/tests/test_runtime_manager.py`, `implementations/python/tests/test_runtime_models.py` | active | -| Runtime result and evaluator-result contracts | ASR-503, API-402 | execution, observation | `implementations/python/packages/aces_runtime/result_contracts.py`, `specs/formal/runtime-contracts/README.md`, `specs/formal/runtime-contracts/workflow-results.md`, `specs/formal/runtime-contracts/evaluator-results.md`, `implementations/python/tests/test_runtime_contracts.py`, `implementations/python/tests/test_run_311_participant_episode_lifecycle.py` | active | -| Control-plane semantics (auth, durable state, idempotency, audit) | API-403, API-404 | execution, observation | `implementations/python/packages/aces_runtime/control_plane_api.py`, `implementations/python/packages/aces_runtime/control_plane_security.py`, `implementations/python/packages/aces_runtime/control_plane_store.py`, `implementations/python/tests/test_runtime_control_plane.py`, `implementations/python/tests/test_runtime_control_plane_api.py` | active | -| Backend and processor identity, capability, and compatibility manifests | API-401, API-412 | planning, execution | `implementations/python/packages/aces_processor/manifest.py`, `implementations/python/packages/aces_processor/capabilities.py`, `implementations/python/packages/aces_contracts/apparatus.py`, `implementations/python/packages/aces_contracts/manifest_authority.py`, `implementations/python/tests/test_backend_manifest.py`, `implementations/python/tests/test_processor_manifest.py` | active | -| Concept authority, controlled vocabularies, reference models, and semantic profiles (meta-layer) | GOV-920 | authoring, validation, compilation, planning, execution | `specs/concept-authority/concept-authority.md`, `specs/concept-authority/semantic-profiles.md`, `implementations/python/packages/aces_contracts/semantic_profiles.py`, `implementations/python/packages/aces_contracts/controlled_vocabularies.py`, `implementations/python/packages/aces_contracts/reference_models.py`, `docs/explain/reference/shared-concept-model.md`, `implementations/python/tests/test_concept_authority.py`, `implementations/python/tests/test_semantic_profiles.py` | active | +| Backend-neutral proposition truth and assertion-composed objective success (probe conditions remain separate implementation bindings; SDL scoring pipeline removed per ADR-073) | DSL-110, SEM-206 | authoring, validation, compilation, planning, execution, observation | `implementations/python/packages/raes/propositions.py`, `implementations/python/packages/raes/conditions.py`, `implementations/python/packages/raes/semantics/propositions.py`, `implementations/python/packages/raes/semantics/objective_semantics.py`, `implementations/python/packages/raes_processor/compiler/__init__.py`, `implementations/python/packages/raes_processor/models/`, `specs/formal/objectives/proposition-and-assertion-semantics.md`, `implementations/python/tests/test_proposition_semantics.py`, `implementations/python/tests/test_truth_result_contracts.py`, `implementations/python/tests/test_fm2_semantics.py` | active | +| Runtime compiled representation and canonical addresses | RUN-302 | compilation | `implementations/python/packages/raes_processor/compiler/__init__.py`, `implementations/python/tests/test_runtime_models.py`, `implementations/python/tests/test_fm2_semantics.py` | active | +| Planner dependency, ordering, refresh, and applicability semantics | RUN-303 | planning | `implementations/python/packages/raes_processor/semantics/planner.py`, `implementations/python/packages/raes_processor/planner/__init__.py`, `specs/formal/planner/README.md`, `specs/formal/planner/dependency-ordering.md`, `implementations/python/tests/test_semantics_planner.py`, `implementations/python/tests/test_runtime_planner.py` | active | +| Live execution state and lifecycle (snapshots, results, history) | RUN-304, API-402 | execution, observation | `implementations/python/packages/raes_runtime/manager.py`, `implementations/python/packages/raes_runtime/result_contracts.py`, `implementations/python/packages/raes_processor/models/`, `implementations/python/tests/test_runtime_manager.py`, `implementations/python/tests/test_runtime_models.py` | active | +| Runtime result and evaluator-result contracts | ASR-503, API-402 | execution, observation | `implementations/python/packages/raes_runtime/result_contracts.py`, `specs/formal/runtime-contracts/README.md`, `specs/formal/runtime-contracts/workflow-results.md`, `specs/formal/runtime-contracts/evaluator-results.md`, `implementations/python/tests/test_runtime_contracts.py`, `implementations/python/tests/test_run_311_participant_episode_lifecycle.py` | active | +| Control-plane semantics (auth, durable state, idempotency, audit) | API-403, API-404 | execution, observation | `implementations/python/packages/raes_runtime/control_plane_api.py`, `implementations/python/packages/raes_runtime/control_plane_security.py`, `implementations/python/packages/raes_runtime/control_plane_store.py`, `implementations/python/tests/test_runtime_control_plane.py`, `implementations/python/tests/test_runtime_control_plane_api.py` | active | +| Backend and processor identity, capability, and compatibility manifests | API-401, API-412 | planning, execution | `implementations/python/packages/raes_processor/manifest.py`, `implementations/python/packages/raes_processor/capabilities.py`, `implementations/python/packages/raes_contracts/apparatus.py`, `implementations/python/packages/raes_contracts/manifest_authority.py`, `implementations/python/tests/test_backend_manifest.py`, `implementations/python/tests/test_processor_manifest.py` | active | +| Concept authority, controlled vocabularies, reference models, and semantic profiles (meta-layer) | GOV-920 | authoring, validation, compilation, planning, execution | `specs/concept-authority/concept-authority.md`, `specs/concept-authority/semantic-profiles.md`, `implementations/python/packages/raes_contracts/semantic_profiles.py`, `implementations/python/packages/raes_contracts/controlled_vocabularies.py`, `implementations/python/packages/raes_contracts/reference_models.py`, `docs/explain/reference/shared-concept-model.md`, `implementations/python/tests/test_concept_authority.py`, `implementations/python/tests/test_semantic_profiles.py` | active | | Participant episode lifecycle boundaries (initialization, reset, completion, timeout, truncation, interruption) | RUN-311, SEM-222 | execution, observation | `docs/decisions/adrs/adr-013-participant-episode-lifecycle-boundaries.md`, `implementations/python/tests/test_run_311_participant_episode_lifecycle.py` | partial | | Declarative participant framing (identity, role, starting conditions, authority anchors, operating scope) | ACT-601 | authoring, validation | `implementations/python/packages/raes/agents.py`, `implementations/python/packages/raes/validator/__init__.py`, `docs/decisions/adrs/adr-020-declarative-participant-framing-boundaries.md`, `implementations/python/tests/test_sdl_models.py`, `implementations/python/tests/test_sdl_validator.py` | active | -| Participant behavior semantics (actions, observations, state transitions) | ACT-602, SEM-208 | authoring, validation, compilation, planning, execution, observation | `specs/formal/participant-semantics/README.md`, `docs/decisions/adrs/adr-022-participant-behavior-and-interaction-semantics.md`, `implementations/python/packages/raes/participant_behavior.py`, `implementations/python/packages/raes/semantics/participant_behavior.py`, `implementations/python/packages/aces_processor/compiler/__init__.py`, `implementations/python/packages/aces_processor/models/`, `implementations/python/tests/test_sem_208_participant_behavior.py`, `implementations/python/tests/test_participant_semantics_invariant_oracle.py` | partial | -| Multi-participant interaction and participant-local histories | SEM-209 | authoring, validation, compilation, planning, execution, observation | `specs/formal/participant-semantics/README.md`, `docs/decisions/adrs/adr-022-participant-behavior-and-interaction-semantics.md`, `implementations/python/packages/raes/participant_behavior.py`, `implementations/python/packages/raes/semantics/participant_behavior.py`, `implementations/python/packages/raes/validator/__init__.py`, `implementations/python/packages/aces_processor/compiler/__init__.py`, `implementations/python/packages/aces_processor/models/`, `implementations/python/packages/aces_conformance/conformance/snapshot_semantics.py`, `implementations/python/tests/test_sem_208_participant_behavior.py`, `implementations/python/tests/test_runtime_conformance.py`, `implementations/python/tests/test_participant_semantics_invariant_oracle.py` | partial | -| Visibility and information-boundary semantics | SEM-210 | authoring, validation, compilation, planning, execution, observation | `specs/formal/participant-semantics/README.md`, `docs/decisions/adrs/adr-022-participant-behavior-and-interaction-semantics.md`, `implementations/python/packages/raes/participant_behavior.py`, `implementations/python/packages/raes/semantics/participant_behavior.py`, `implementations/python/packages/raes/validator/__init__.py`, `implementations/python/packages/aces_processor/compiler/__init__.py`, `implementations/python/packages/aces_processor/models/`, `implementations/python/tests/test_sem_208_participant_behavior.py`, `implementations/python/tests/test_participant_semantics_invariant_oracle.py` | active | -| Participant preconditions, effects, failure, causality, and attribution semantics | SEM-211, SEM-212 | authoring, validation, compilation, planning, execution, observation | `specs/formal/participant-semantics/README.md`, `docs/decisions/adrs/adr-022-participant-behavior-and-interaction-semantics.md`, `implementations/python/packages/raes/participant_action_semantics.py`, `implementations/python/packages/raes/participant_attribution_semantics.py`, `implementations/python/packages/raes/participant_behavior.py`, `implementations/python/packages/aces_processor/compiler/__init__.py`, `implementations/python/packages/aces_processor/models/`, `implementations/python/packages/aces_conformance/conformance/snapshot_semantics.py`, `implementations/python/packages/aces_contracts/contracts/__init__.py`, `implementations/python/tests/test_sem_211_participant_action_semantics.py`, `implementations/python/tests/test_sem_212_participant_attribution_semantics.py`, `implementations/python/tests/test_runtime_conformance.py`, `implementations/python/tests/test_participant_semantics_invariant_oracle.py` | partial | +| Participant behavior semantics (actions, observations, state transitions) | ACT-602, SEM-208 | authoring, validation, compilation, planning, execution, observation | `specs/formal/participant-semantics/README.md`, `docs/decisions/adrs/adr-022-participant-behavior-and-interaction-semantics.md`, `implementations/python/packages/raes/participant_behavior.py`, `implementations/python/packages/raes/semantics/participant_behavior.py`, `implementations/python/packages/raes_processor/compiler/__init__.py`, `implementations/python/packages/raes_processor/models/`, `implementations/python/tests/test_sem_208_participant_behavior.py`, `implementations/python/tests/test_participant_semantics_invariant_oracle.py` | partial | +| Multi-participant interaction and participant-local histories | SEM-209 | authoring, validation, compilation, planning, execution, observation | `specs/formal/participant-semantics/README.md`, `docs/decisions/adrs/adr-022-participant-behavior-and-interaction-semantics.md`, `implementations/python/packages/raes/participant_behavior.py`, `implementations/python/packages/raes/semantics/participant_behavior.py`, `implementations/python/packages/raes/validator/__init__.py`, `implementations/python/packages/raes_processor/compiler/__init__.py`, `implementations/python/packages/raes_processor/models/`, `implementations/python/packages/raes_conformance/conformance/snapshot_semantics.py`, `implementations/python/tests/test_sem_208_participant_behavior.py`, `implementations/python/tests/test_runtime_conformance.py`, `implementations/python/tests/test_participant_semantics_invariant_oracle.py` | partial | +| Visibility and information-boundary semantics | SEM-210 | authoring, validation, compilation, planning, execution, observation | `specs/formal/participant-semantics/README.md`, `docs/decisions/adrs/adr-022-participant-behavior-and-interaction-semantics.md`, `implementations/python/packages/raes/participant_behavior.py`, `implementations/python/packages/raes/semantics/participant_behavior.py`, `implementations/python/packages/raes/validator/__init__.py`, `implementations/python/packages/raes_processor/compiler/__init__.py`, `implementations/python/packages/raes_processor/models/`, `implementations/python/tests/test_sem_208_participant_behavior.py`, `implementations/python/tests/test_participant_semantics_invariant_oracle.py` | active | +| Participant preconditions, effects, failure, causality, and attribution semantics | SEM-211, SEM-212 | authoring, validation, compilation, planning, execution, observation | `specs/formal/participant-semantics/README.md`, `docs/decisions/adrs/adr-022-participant-behavior-and-interaction-semantics.md`, `implementations/python/packages/raes/participant_action_semantics.py`, `implementations/python/packages/raes/participant_attribution_semantics.py`, `implementations/python/packages/raes/participant_behavior.py`, `implementations/python/packages/raes_processor/compiler/__init__.py`, `implementations/python/packages/raes_processor/models/`, `implementations/python/packages/raes_conformance/conformance/snapshot_semantics.py`, `implementations/python/packages/raes_contracts/contracts/__init__.py`, `implementations/python/tests/test_sem_211_participant_action_semantics.py`, `implementations/python/tests/test_sem_212_participant_attribution_semantics.py`, `implementations/python/tests/test_runtime_conformance.py`, `implementations/python/tests/test_participant_semantics_invariant_oracle.py` | partial | | Participant temporal semantics | SEM-213 | authoring, validation, compilation, planning, execution, observation | `specs/formal/participant-semantics/README.md`, `docs/decisions/adrs/adr-022-participant-behavior-and-interaction-semantics.md`, `implementations/python/tests/test_participant_semantics_invariant_oracle.py` | partial | -| Participant tool/affordance, decision-surface, and exposure/visibility-boundary semantics | SEM-219, SEM-220, SEM-226 | authoring, validation, compilation, planning, execution, observation | `specs/formal/participant-semantics/README.md`, `docs/decisions/adrs/adr-083-participant-tool-decision-surface-and-exposure-semantics.md`, `docs/decisions/issue-119-sem-219-220-226-participant-decision-surface-preflight.md`, `docs/decisions/issue-294-sem-219-participant-tool-affordance-preflight.md`, `implementations/python/packages/raes/participant_behavior_specification.py`, `implementations/python/packages/raes/semantics/participant_behavior.py`, `implementations/python/packages/aces_processor/compiler/participant_behaviors.py`, `implementations/python/packages/aces_processor/models/behavior_resources.py`, `implementations/python/tests/test_sem_208_participant_behavior.py`, `implementations/python/tests/test_participant_semantics_invariant_oracle.py` | partial | +| Participant tool/affordance, decision-surface, and exposure/visibility-boundary semantics | SEM-219, SEM-220, SEM-226 | authoring, validation, compilation, planning, execution, observation | `specs/formal/participant-semantics/README.md`, `docs/decisions/adrs/adr-083-participant-tool-decision-surface-and-exposure-semantics.md`, `docs/decisions/issue-119-sem-219-220-226-participant-decision-surface-preflight.md`, `docs/decisions/issue-294-sem-219-participant-tool-affordance-preflight.md`, `implementations/python/packages/raes/participant_behavior_specification.py`, `implementations/python/packages/raes/semantics/participant_behavior.py`, `implementations/python/packages/raes_processor/compiler/participant_behaviors.py`, `implementations/python/packages/raes_processor/models/behavior_resources.py`, `implementations/python/tests/test_sem_208_participant_behavior.py`, `implementations/python/tests/test_participant_semantics_invariant_oracle.py` | partial | | Participant reference trajectories, demonstrations, budgets, and quota/exhaustion semantics | SEM-221, SEM-223 | — | — | planned | -| Participant outcome interpretation | SEM-215 | authoring, validation, compilation, planning, execution, observation | `specs/formal/participant-semantics/README.md`, `docs/decisions/adrs/adr-022-participant-behavior-and-interaction-semantics.md`, `implementations/python/packages/raes/participant_outcome_semantics.py`, `implementations/python/packages/raes/semantics/participant_outcome.py`, `implementations/python/packages/aces_processor/models/`, `implementations/python/packages/aces_processor/compiler/__init__.py`, `implementations/python/packages/aces_contracts/contracts/__init__.py`, `implementations/python/tests/test_sem_215_participant_outcome_interpretation.py`, `implementations/python/tests/test_participant_semantics_invariant_oracle.py` | active | -| Derived operational context views (portable meaning and comparability) | SEM-214 | execution, observation | `specs/formal/participant-semantics/README.md`, `specs/formal/runtime-contracts/participant-backend-contracts.md`, `implementations/python/packages/aces_contracts/contracts/__init__.py`, `implementations/python/packages/aces_runtime/participant_retrieval.py`, `implementations/python/packages/aces_runtime/control_plane_api_participant_retrieval.py`, `contracts/schemas/control-plane/participant-context-view-v1.json`, `implementations/python/tests/test_participant_backend_contracts.py`, `implementations/python/tests/test_runtime_control_plane.py`, `implementations/python/tests/test_runtime_control_plane_api.py` | active | -| Boundary semantics for runtime-observable state, captured evidence, derived evaluations, analysis outputs, and audience-specific views | SEM-216 | execution, observation | `specs/formal/participant-semantics/README.md`, `docs/decisions/issue-248-sem-216-boundary-semantics-preflight.md`, `implementations/python/packages/aces_contracts/contracts/__init__.py`, `contracts/schemas/control-plane/participant-context-view-v1.json`, `contracts/schemas/experiment-core/experiment-evidence-record-v1.json`, `implementations/python/tests/test_sem_216_boundary_semantics.py`, `implementations/python/tests/test_participant_backend_contracts.py`, `implementations/python/tests/test_runtime_contracts.py` | active | +| Participant outcome interpretation | SEM-215 | authoring, validation, compilation, planning, execution, observation | `specs/formal/participant-semantics/README.md`, `docs/decisions/adrs/adr-022-participant-behavior-and-interaction-semantics.md`, `implementations/python/packages/raes/participant_outcome_semantics.py`, `implementations/python/packages/raes/semantics/participant_outcome.py`, `implementations/python/packages/raes_processor/models/`, `implementations/python/packages/raes_processor/compiler/__init__.py`, `implementations/python/packages/raes_contracts/contracts/__init__.py`, `implementations/python/tests/test_sem_215_participant_outcome_interpretation.py`, `implementations/python/tests/test_participant_semantics_invariant_oracle.py` | active | +| Derived operational context views (portable meaning and comparability) | SEM-214 | execution, observation | `specs/formal/participant-semantics/README.md`, `specs/formal/runtime-contracts/participant-backend-contracts.md`, `implementations/python/packages/raes_contracts/contracts/__init__.py`, `implementations/python/packages/raes_runtime/participant_retrieval.py`, `implementations/python/packages/raes_runtime/control_plane_api_participant_retrieval.py`, `contracts/schemas/control-plane/participant-context-view-v1.json`, `implementations/python/tests/test_participant_backend_contracts.py`, `implementations/python/tests/test_runtime_control_plane.py`, `implementations/python/tests/test_runtime_control_plane_api.py` | active | +| Boundary semantics for runtime-observable state, captured evidence, derived evaluations, analysis outputs, and audience-specific views | SEM-216 | execution, observation | `specs/formal/participant-semantics/README.md`, `docs/decisions/issue-248-sem-216-boundary-semantics-preflight.md`, `implementations/python/packages/raes_contracts/contracts/__init__.py`, `contracts/schemas/control-plane/participant-context-view-v1.json`, `contracts/schemas/experiment-core/experiment-evidence-record-v1.json`, `implementations/python/tests/test_sem_216_boundary_semantics.py`, `implementations/python/tests/test_participant_backend_contracts.py`, `implementations/python/tests/test_runtime_contracts.py` | active | | Evidence, evaluation, view-boundary, and observability-plane semantics | SEM-224, SEM-225, DSL-123, DSL-124 | authoring, validation, execution, observation | `docs/decisions/adrs/adr-066-observability-evidence-plane-separation.md`, `specs/formal/observability-evidence-plane.md`, `specs/sdl/observability-and-evidence.md` | partial | -| External knowledge bindings semantics | SEM-217 | validation, execution | `specs/formal/participant-semantics/README.md`, `docs/explain/reference/shared-concept-model.md`, `implementations/python/packages/aces_contracts/semantic_binding_effects.py`, `implementations/python/tests/test_sem_217_knowledge_bindings.py` | active | -| Explicitness and realization semantics (binding declarations vs processor/backend realization) | SEM-218 | authoring, validation, instantiation, compilation, planning, execution, observation | `specs/formal/realization/explicitness-and-realization.md`, `specs/formal/realization/README.md`, `docs/explain/reference/explicitness-realization-semantics.md`, `implementations/python/packages/raes/explicitness.py`, `implementations/python/packages/raes/realization_designation.py`, `implementations/python/packages/raes/phase_contracts.py`, `implementations/python/packages/raes/validator/__init__.py`, `implementations/python/packages/raes/instantiate.py`, `implementations/python/packages/aces_contracts/apparatus.py`, `implementations/python/packages/aces_contracts/vocabulary.py`, `implementations/python/packages/aces_contracts/contracts/__init__.py`, `implementations/python/packages/aces_contracts/runtime_state.py`, `implementations/python/packages/aces_backend_protocols/manifest.py`, `implementations/python/packages/aces_processor/compiler/__init__.py`, `implementations/python/packages/aces_processor/models/`, `implementations/python/packages/aces_processor/planner/__init__.py`, `implementations/python/packages/aces_processor/semantics/realization.py`, `implementations/python/packages/aces_runtime/backend_calls.py`, `implementations/python/packages/aces_runtime/manager.py`, `implementations/python/packages/aces_runtime/control_plane_store.py`, `implementations/python/packages/aces_runtime/control_plane_api_models.py`, `implementations/python/tests/test_sem_218_explicitness.py`, `implementations/python/tests/test_sem_218_realization.py`, `implementations/python/tests/test_sem_218_realization_designation.py`, `implementations/python/tests/test_sem_218_runtime_realization.py`, `implementations/python/tests/test_runtime_planner.py`, `implementations/python/tests/test_backend_manifest.py`, `implementations/python/tests/test_processor_manifest.py`, `implementations/python/tests/test_runtime_contracts.py` | active | -| Clock, time-domain, advancement/pacing/synchronization, and temporal ordering/causality semantics | SEM-227, SEM-228, SEM-229, API-421, ASR-528, EXP-734 | authoring, validation, compilation, planning, execution, observation | `specs/formal/time-model/README.md`, `docs/decisions/adrs/adr-090-shared-time-domain-clock-and-progression-authority.md`, `docs/decisions/adrs/adr-091-portable-time-capability-control-and-provenance-contracts.md`, `implementations/python/packages/aces_contracts/contracts/time_model.py`, `implementations/python/packages/aces_backend_protocols/capability_admission.py`, `implementations/python/packages/aces_runtime/time_coordinator.py`, `implementations/python/packages/aces_conformance/time_semantics.py`, `implementations/python/tests/test_sem_227_shared_time_model.py`, `implementations/python/tests/test_api_421_time_contracts.py` | active | -| Deterministic benign participant execution under shared time | DSL-437 | authoring, validation, compilation, planning, execution, observation | `specs/formal/participant-semantics/autonomous-execution.md`, `docs/decisions/adrs/adr-092-autonomous-benign-participants-under-shared-time.md`, `implementations/python/packages/raes/participant_execution.py`, `implementations/python/packages/raes/semantics/participant_behavior.py`, `implementations/python/packages/aces_backend_protocols/capability_admission.py`, `implementations/python/packages/aces_runtime/participant_scheduler.py`, `implementations/python/packages/aces_runtime/participant_clock_driver.py`, `implementations/python/packages/aces_backend_protocols/participant_runtime_base.py`, `implementations/python/packages/aces_contracts/participant_autonomous_state.py`, `implementations/python/tests/test_dsl_437_benign_participant_execution.py`, `implementations/python/tests/test_dsl_437_evaluation_authority.py`, `implementations/python/tests/test_dsl_437_snapshot_durability_conformance.py` | active | +| External knowledge bindings semantics | SEM-217 | validation, execution | `specs/formal/participant-semantics/README.md`, `docs/explain/reference/shared-concept-model.md`, `implementations/python/packages/raes_contracts/semantic_binding_effects.py`, `implementations/python/tests/test_sem_217_knowledge_bindings.py` | active | +| Explicitness and realization semantics (binding declarations vs processor/backend realization) | SEM-218 | authoring, validation, instantiation, compilation, planning, execution, observation | `specs/formal/realization/explicitness-and-realization.md`, `specs/formal/realization/README.md`, `docs/explain/reference/explicitness-realization-semantics.md`, `implementations/python/packages/raes/explicitness.py`, `implementations/python/packages/raes/realization_designation.py`, `implementations/python/packages/raes/phase_contracts.py`, `implementations/python/packages/raes/validator/__init__.py`, `implementations/python/packages/raes/instantiate.py`, `implementations/python/packages/raes_contracts/apparatus.py`, `implementations/python/packages/raes_contracts/vocabulary.py`, `implementations/python/packages/raes_contracts/contracts/__init__.py`, `implementations/python/packages/raes_contracts/runtime_state.py`, `implementations/python/packages/raes_backend_protocols/manifest.py`, `implementations/python/packages/raes_processor/compiler/__init__.py`, `implementations/python/packages/raes_processor/models/`, `implementations/python/packages/raes_processor/planner/__init__.py`, `implementations/python/packages/raes_processor/semantics/realization.py`, `implementations/python/packages/raes_runtime/backend_calls.py`, `implementations/python/packages/raes_runtime/manager.py`, `implementations/python/packages/raes_runtime/control_plane_store.py`, `implementations/python/packages/raes_runtime/control_plane_api_models.py`, `implementations/python/tests/test_sem_218_explicitness.py`, `implementations/python/tests/test_sem_218_realization.py`, `implementations/python/tests/test_sem_218_realization_designation.py`, `implementations/python/tests/test_sem_218_runtime_realization.py`, `implementations/python/tests/test_runtime_planner.py`, `implementations/python/tests/test_backend_manifest.py`, `implementations/python/tests/test_processor_manifest.py`, `implementations/python/tests/test_runtime_contracts.py` | active | +| Clock, time-domain, advancement/pacing/synchronization, and temporal ordering/causality semantics | SEM-227, SEM-228, SEM-229, API-421, ASR-528, EXP-734 | authoring, validation, compilation, planning, execution, observation | `specs/formal/time-model/README.md`, `docs/decisions/adrs/adr-090-shared-time-domain-clock-and-progression-authority.md`, `docs/decisions/adrs/adr-091-portable-time-capability-control-and-provenance-contracts.md`, `implementations/python/packages/raes_contracts/contracts/time_model.py`, `implementations/python/packages/raes_backend_protocols/capability_admission.py`, `implementations/python/packages/raes_runtime/time_coordinator.py`, `implementations/python/packages/raes_conformance/time_semantics.py`, `implementations/python/tests/test_sem_227_shared_time_model.py`, `implementations/python/tests/test_api_421_time_contracts.py` | active | +| Deterministic benign participant execution under shared time | DSL-437 | authoring, validation, compilation, planning, execution, observation | `specs/formal/participant-semantics/autonomous-execution.md`, `docs/decisions/adrs/adr-092-autonomous-benign-participants-under-shared-time.md`, `implementations/python/packages/raes/participant_execution.py`, `implementations/python/packages/raes/semantics/participant_behavior.py`, `implementations/python/packages/raes_backend_protocols/capability_admission.py`, `implementations/python/packages/raes_runtime/participant_scheduler.py`, `implementations/python/packages/raes_runtime/participant_clock_driver.py`, `implementations/python/packages/raes_backend_protocols/participant_runtime_base.py`, `implementations/python/packages/raes_contracts/participant_autonomous_state.py`, `implementations/python/tests/test_dsl_437_benign_participant_execution.py`, `implementations/python/tests/test_dsl_437_evaluation_authority.py`, `implementations/python/tests/test_dsl_437_snapshot_durability_conformance.py` | active | diff --git a/docs/explain/releasing.md b/docs/explain/releasing.md index 74e9b8708..0933f3d23 100644 --- a/docs/explain/releasing.md +++ b/docs/explain/releasing.md @@ -45,8 +45,8 @@ Use `feat:`/`fix:` for consumer-visible changes so release-please cuts a release (`implementations/python/packages/raes/_version.py`). - `.release-please-manifest.json` — the version source of truth: `{".": "X.Y.Z"}`. - `implementations/python/packages/raes/_version.py` — build version source - (release-please rewrites it). The legacy `aces` import namespace's - `__version__` derives from the installed `raes` distribution metadata. + (release-please rewrites it). `raes.__version__` derives from the installed + `raes` distribution metadata. The `raes` and `raes-mcp` console scripts are the only current commands. ## Caveat: the release PR and required checks diff --git a/docs/explain/sdl/index.md b/docs/explain/sdl/index.md index 52809c048..24da7fdae 100644 --- a/docs/explain/sdl/index.md +++ b/docs/explain/sdl/index.md @@ -166,7 +166,7 @@ accounts: ## Usage ```python -from aces.core.sdl import parse_sdl, parse_sdl_file +from raes import parse_sdl, parse_sdl_file # From a string scenario = parse_sdl(yaml_string) diff --git a/docs/explain/sdl/limitations.md b/docs/explain/sdl/limitations.md index add50ce60..6afd10ece 100644 --- a/docs/explain/sdl/limitations.md +++ b/docs/explain/sdl/limitations.md @@ -103,7 +103,7 @@ a standalone Suricata IDS node is the existing `network_detection_engines` + OS-local users/groups/sudo are `runtime.local_identity`, and transport/TLS exposure is `service_listeners` + `applications` + `runtime.network`. The SCN-010 expressivity gap analysis -([scn010-expressivity-gap-analysis](../../aces/inventory/scn010-expressivity-gap-analysis.md)) +([scn010-expressivity-gap-analysis](../../raes/inventory/scn010-expressivity-gap-analysis.md)) records each fold field-for-field, so the observable-parity gate is shown to cut against over-building as well as under-coverage. Container image build diff --git a/docs/explain/sdl/parser.md b/docs/explain/sdl/parser.md index e1e43b70f..b97d57047 100644 --- a/docs/explain/sdl/parser.md +++ b/docs/explain/sdl/parser.md @@ -1,6 +1,6 @@ # SDL Parser Behavior -The parser (`aces.core.sdl.parser`) transforms raw YAML into a validated +The parser (`raes.parser`) transforms raw YAML into a validated `Scenario` object through `sdl-yaml/v1` decoding, source-marked safe composition, canonical-field validation, shorthand expansion, and typed model construction. @@ -36,7 +36,7 @@ nodes: ``` Ordinary parsing is strict. Callers doing a deliberate conversion can select -`SDLMigrationPolicy.ACCEPT` or use `aces sdl format`; each recognized rewrite +`SDLMigrationPolicy.ACCEPT` or use `raes sdl format`; each recognized rewrite produces a source-ranged `sdl.noncanonical_field` or `sdl.noncanonical_merge` warning. The formatter emits strict, typed, longhand YAML and never invents identifier renames. @@ -148,7 +148,7 @@ On success, the returned `Scenario` may still carry non-fatal advisories in `sce import json from pathlib import Path -from aces.core.sdl import parse_sdl, parse_sdl_file +from raes import parse_sdl, parse_sdl_file from raes import ( SDLMigrationPolicy, admit_instantiated_scenario, diff --git a/docs/explain/sdl/runtime-architecture.md b/docs/explain/sdl/runtime-architecture.md index 076dc98c2..39fa471fb 100644 --- a/docs/explain/sdl/runtime-architecture.md +++ b/docs/explain/sdl/runtime-architecture.md @@ -54,11 +54,10 @@ here come from mature workflow and distributed-runtime systems: ```text raes -> parse + instantiate + SDL-language semantics -aces_processor -> compile + plan + support/contract semantics -aces_runtime -> live control + manager + control-plane APIs -aces_backend_protocols -> backend capability/protocol declarations -aces_backend_stubs -> non-normative in-memory target implementations -aces.* -> legacy compatibility wrappers +raes_processor -> compile + plan + support/contract semantics +raes_runtime -> live control + manager + control-plane APIs +raes_backend_protocols -> backend capability/protocol declarations +raes_backend_stubs -> non-normative in-memory target implementations ``` ADR-036 backs this package boundary with `tools/check_repo_policy.py`: the @@ -182,7 +181,7 @@ diagnostics and invalidates the plan if a cycle survives into runtime planning. ### Reference processor -`aces_processor.reference.run_reference_processor(scenario, backend_manifest)` +`raes_processor.reference.run_reference_processor(scenario, backend_manifest)` (and the `ReferenceProcessor` class) is the repository-owned reference implementation of the processing model. It assembles the stages above into one call — accepting SDL text, a file path, or an already-parsed scenario — and @@ -194,7 +193,7 @@ exposes the published processor manifest through the canonical renderer. Per ADR-008 the processor is the semantics-bearing layer between SDL authoring and backend realization, so the reference processor's responsibility ends at the `ExecutionPlan`: it imports only the SDL/processor/contract layers and never -`aces_runtime` (the one-directional boundary enforced by +`raes_runtime` (the one-directional boundary enforced by `tools/policy/adr_policy.yaml`). End-to-end execution is realized by composing its plan with the reference runtime (`RuntimeManager` / `RuntimeControlPlane`); the backend-conformance live probe drives exactly this composition, and the @@ -391,7 +390,7 @@ Planner FM2 semantics are explicit rather than incidental: - refresh propagation is transitive over the refresh graph - cross-domain refresh does not create startup ordering -Those rules are owned by `aces_processor.semantics.planner`, not by local planner +Those rules are owned by `raes_processor.semantics.planner`, not by local planner algorithm shape. This phase is also intentionally composition-ready. Module/import expansion @@ -404,9 +403,9 @@ Composition is registry-ready as well: - local imports remain supported through `path:` and `source: local:...` - reusable remote modules use `source: oci:...` - concrete resolved imports may be pinned via `source: locked:...` -- `aces sdl resolve` writes `aces.lock.json` -- `aces sdl verify-imports` verifies lockfile, trust, digests, and signatures -- `aces sdl publish` packages a publishable SDL module as an OCI image layout +- `raes sdl resolve` writes `aces.lock.json` +- `raes sdl verify-imports` verifies lockfile, trust, digests, and signatures +- `raes sdl publish` packages a publishable SDL module as an OCI image layout Resolution and trust happen before instantiation and semantic validation. Planner/runtime semantics see one admitted concrete scenario; replay-relevant diff --git a/docs/explain/sdl/validation.md b/docs/explain/sdl/validation.md index 076120c05..2d9012789 100644 --- a/docs/explain/sdl/validation.md +++ b/docs/explain/sdl/validation.md @@ -1,6 +1,6 @@ # SDL Semantic Validation -The semantic validator (`aces.core.sdl.validator.SemanticValidator`) runs the +The semantic validator (`raes.validator.SemanticValidator`) runs the named semantic pass set after Pydantic structural validation. It collects all errors rather than failing on the first, so authors see every issue at once. diff --git a/docs/index.md b/docs/index.md index b504291a1..c1fd163e6 100644 --- a/docs/index.md +++ b/docs/index.md @@ -114,7 +114,7 @@ explain/sdl/runtime-architecture :maxdepth: 2 :caption: Asset Inventory -aces/inventory/index +raes/inventory/index ``` ```{toctree} diff --git a/docs/lessons/README.md b/docs/lessons/README.md index 7b2dd3aae..2c87c10d9 100644 --- a/docs/lessons/README.md +++ b/docs/lessons/README.md @@ -24,8 +24,8 @@ Write a new entry when: real backend has to provide. - The fixture corpus passes for a backend that's not actually production- conformant, or fails for a backend that is. -- The reference Python implementation (`aces_processor`, - `aces_backend_stubs`, `aces_conformance`) makes an assumption the real +- The reference Python implementation (`raes_processor`, + `raes_backend_stubs`, `raes_conformance`) makes an assumption the real backend can't honor. - The `RuntimeTarget` / `RuntimeManager` API needs a shape change to accommodate a backend's actual lifecycle, capabilities, or failure @@ -101,7 +101,7 @@ embodies them. ## Relationship To The Reference Backend -`aces_backend_stubs` is the reference Python backend. When the same finding +`raes_backend_stubs` is the reference Python backend. When the same finding applies to both the reference stub and a real backend, prefer recording it on the RAES side with `contract_impact` / `profile_impact` populated, and cross-link the backend repo's entry only when the backend-specific diff --git a/docs/migration/raes-rename.md b/docs/migration/raes-rename.md index 8d1e39d32..299e29200 100644 --- a/docs/migration/raes-rename.md +++ b/docs/migration/raes-rename.md @@ -15,10 +15,9 @@ Use RAES for current user-facing and machine-readable surfaces owned by this repository. Do not add new ACES aliases for current public commands, MCP tools, package distribution metadata, or guidance profile identifiers. -Keep ACES only when the identifier is one of these surfaces: +Keep ACES only when the identifier is one of these historical or governed +surfaces: -- an internal owning package outside the SDL import cut, such as `aces_mcp`, - `aces_runtime`, or `aces_contracts` - governed SDL, schema, profile, fixture, provenance, or wire identifier whose rename requires a separate versioned contract migration - retained documentation path or asset-inventory reference that still has @@ -33,23 +32,23 @@ Keep ACES only when the identifier is one of these surfaces: |---|---|---|---|---|---| | Project prose | Agentic Cyber Environment System (ACES), ACES SDL | Reproducible Agentic Environments System (RAES), RAES SDL | Repository docs | Migrated for current-state prose | Docs build and prose review | | Documentation links | `Brad-Edwards/aces` current README/docs links | `RAESystem/rae` | Current README and docs config | Migrated for current user-facing links | Docs build | -| Documentation paths | `docs/aces/` | `docs/aces/` | Documentation tree | Retained path/reference area, not a command alias | Docs build and existing path tests | +| Documentation paths | `docs/aces/` | `docs/raes/` | Documentation tree | Hard cut to the current project name | Docs build and existing path tests | | Python distribution | `aces-sdl` | `raes` | `implementations/python/pyproject.toml` | Renamed for new PyPI publication | Version and corpus packaging tests | | Canonical Python SDL import | `aces_sdl` | `raes` | SDL package owner | Hard cut by #884; no alias or shim | Source import tests plus isolated wheel/sdist tests | -| Other internal Python packages | `aces_mcp`, `aces_runtime`, `aces_contracts`, other owning `aces_*` packages | Retained internal owner names | Python package owners | Outside #884 | Existing module-boundary and package tests | -| CLI command | `aces` | `raes` | `aces_cli` | Old console script removed | CLI version/help and installed-wheel tests | -| MCP server command | `aces-mcp` | `raes-mcp` | `aces_mcp` | Old console script removed | Packaging and MCP construction tests | -| MCP server id | `aces-sdl` | `raes` | `aces_mcp.server` | Migrated emitted server name | MCP server construction tests | -| MCP discovery tool | `aces_tool_surface` | `raes_tool_surface` | `aces_mcp.tools.operations` | Old tool removed | MCP tool-surface tests | -| MCP guidance tool | `aces_agent_guidance` | `raes_agent_guidance` | `aces_mcp.tools.operations` | Old tool removed | MCP guidance tests | -| MCP intended-use tool | `aces_intended_use_profiles` | `raes_intended_use_profiles` | `aces_mcp.tools.completeness` | Old tool removed | MCP intended-use tests | -| MCP reference-manifest tool | `aces_reference_manifests` | `raes_reference_manifests` | `aces_mcp.tools.operations` | Old tool removed | MCP advertised-tool tests | +| Other Python packages | `aces_mcp`, `aces_runtime`, `aces_contracts`, other owning `aces_*` packages | `raes_mcp`, `raes_runtime`, `raes_contracts`, and corresponding `raes_*` owners | Python package owners | Hard cut; no alias packages | Module-boundary and installed-wheel negative import tests | +| CLI command | `aces` | `raes` | `raes_cli` | Old console script removed | CLI version/help and installed-wheel tests | +| MCP server command | `aces-mcp` | `raes-mcp` | `raes_mcp` | Old console script removed | Packaging and MCP construction tests | +| MCP server id | `aces-sdl` | `raes` | `raes_mcp.server` | Migrated emitted server name | MCP server construction tests | +| MCP discovery tool | `aces_tool_surface` | `raes_tool_surface` | `raes_mcp.tools.operations` | Old tool removed | MCP tool-surface tests | +| MCP guidance tool | `aces_agent_guidance` | `raes_agent_guidance` | `raes_mcp.tools.operations` | Old tool removed | MCP guidance tests | +| MCP intended-use tool | `aces_intended_use_profiles` | `raes_intended_use_profiles` | `raes_mcp.tools.completeness` | Old tool removed | MCP intended-use tests | +| MCP reference-manifest tool | `aces_reference_manifests` | `raes_reference_manifests` | `raes_mcp.tools.operations` | Old tool removed | MCP advertised-tool tests | | Agent guidance profile id | `aces-agent-guidance` | `raes-agent-guidance` | `specs/agent-guidance/agent-guidance.yaml` | Migrated canonical profile id | `tools/check_agent_guidance.py` and MCP guidance tests | -| Intended-use scope string | `aces-delivery-capability` | `raes-delivery-capability` | `aces_mcp.tools.completeness` | Migrated emitted scope; `legacy_scope` removed | MCP intended-use tests | -| Runtime OpenAPI title | ACES Runtime Control Plane | RAES Runtime Control Plane | `aces_runtime.control_plane_api` | Migrated emitted title | Version-classification tests | -| HTTP headers and config keys | `x-aces-*`, `ACES_REQUIREMENT_UID` | Retained external/workflow keys | Runtime/security and workflow owners | Not renamed by issue #866 | Runtime security and repo-policy gates | -| Published schemas and wire ids | `io.aces.*`, `aces-*`, contract discriminators | Retained governed contract identifiers | `contracts/` and ADR-061 schema publication | Not renamed by issue #866 | Contract and schema-publication checks | -| Processor/backend identities | `aces-reference-processor`, package-specific manifest ids | Retained apparatus identities | Manifest owners | Not renamed by issue #866 | Manifest and conformance tests | +| Intended-use scope string | `aces-delivery-capability` | `raes-delivery-capability` | `raes_mcp.tools.completeness` | Migrated emitted scope; `legacy_scope` removed | MCP intended-use tests | +| Runtime OpenAPI title | ACES Runtime Control Plane | RAES Runtime Control Plane | `raes_runtime.control_plane_api` | Migrated emitted title | Version-classification tests | +| HTTP headers and config keys | `x-aces-*`, `ACES_REQUIREMENT_UID` | Retained external/workflow keys | Runtime/security and workflow owners | Outside the Python namespace cut in issue #884 | Runtime security and repo-policy gates | +| Published schemas and wire ids | `io.aces.*`, `aces-*`, contract discriminators | Retained governed contract identifiers | `contracts/` and ADR-061 schema publication | Outside the Python namespace cut in issue #884 | Contract and schema-publication checks | +| Processor/backend identities | `aces-reference-processor`, package-specific manifest ids | Retained apparatus identities | Manifest owners | Outside the Python namespace cut in issue #884 | Manifest and conformance tests | | Accepted ADRs, changelog, research snapshots | Historical ACES references | Retained history | Historical record owners | Not rewritten solely to erase the old name | ADR immutability and docs checks | ## User Guidance @@ -69,13 +68,11 @@ import: from raes import parse_sdl_file ``` -The old `aces_sdl` namespace is not installed and has no compatibility alias, -shim, fallback import, or namespace-package residue. Code using that import must -change before upgrading. This package-boundary cut is released as version -1.0.0. +The old `aces`, `aces_sdl`, and `aces_*` namespaces are not installed and have +no compatibility aliases, shims, fallback imports, or namespace-package +residue. Code using those imports must change before upgrading. This +package-boundary cut is released as a breaking change. -Do not rename SDL fields, schema ids, wire discriminators, other internal -owning packages, or published contract identifiers as part of ordinary prose -cleanup. Those surfaces require separate contract or module-boundary -migrations with their own fixtures, compatibility analysis, and verification -evidence. +Do not rename SDL fields, schema ids, wire discriminators, or published +contract identifiers as part of ordinary prose cleanup. Those surfaces require +separate contract migrations with their own fixtures and publication evidence. diff --git a/docs/aces/inventory/ad-preflight.md b/docs/raes/inventory/ad-preflight.md similarity index 88% rename from docs/aces/inventory/ad-preflight.md rename to docs/raes/inventory/ad-preflight.md index 39295f4bf..4ff755a90 100644 --- a/docs/aces/inventory/ad-preflight.md +++ b/docs/raes/inventory/ad-preflight.md @@ -2,7 +2,7 @@ This is a historical APTL TechVault validation note imported into RAES as a reference example. It is not the methodology authority; the canonical RAES -methodology is `docs/aces/inventory/asset-inventory-methodology.md`. +methodology is `docs/raes/inventory/asset-inventory-methodology.md`. This note records the local architecture preflight for SCN-010 / issue #332. The Ground Control `gc_codex_architecture_preflight` call completed and wrote @@ -16,9 +16,9 @@ the issue phase marker, but the tool did not create a repo-local note file. `scenarios/techvault.sdl.yaml`. - Do not create an APTL-local schema, parser, validator, Pydantic model, or runtime exception hierarchy for AD inventory facts. -- Reuse `docs/aces/inventory/asset-inventory-methodology.md`, +- Reuse `docs/raes/inventory/asset-inventory-methodology.md`, `src/aptl/core/aces_inventory.py`, `src/aptl/cli/aces_inventory.py`, the - existing webapp and db inventory bundles, and `docs/aces/parity-inventory.yaml`. + existing webapp and db inventory bundles, and `docs/raes/parity-inventory.yaml`. - Historical note: issue #516 supersedes the original blanket-redaction rule for source inventory bundles. Preserve AD administrator credentials, generated flags, Kerberos/Samba secret material, Wazuh client keys, and @@ -33,7 +33,7 @@ the issue phase marker, but the tool did not create a repo-local note file. The implementation captures the realized `aptl-ad` container after a fresh `uv run aptl lab stop -v -y && uv run aptl lab start --skip-seed`, then records -the AD inventory under `docs/aces/inventory/ad/`, maps every catalogued fact in +the AD inventory under `docs/raes/inventory/ad/`, maps every catalogued fact in `mapping-ledger.yaml`, and encodes the AD host, Samba domain, runtime, network, service, identity, vulnerability, content, and relationship facts in `scenarios/techvault.sdl.yaml`. diff --git a/docs/aces/inventory/asset-inventory-issue-template.md b/docs/raes/inventory/asset-inventory-issue-template.md similarity index 92% rename from docs/aces/inventory/asset-inventory-issue-template.md rename to docs/raes/inventory/asset-inventory-issue-template.md index 15a51eac1..1ddcdf4a4 100644 --- a/docs/aces/inventory/asset-inventory-issue-template.md +++ b/docs/raes/inventory/asset-inventory-issue-template.md @@ -18,12 +18,12 @@ Use the RAES participant-discoverable asset inventory methodology as the authority: - Methodology: - `docs/aces/inventory/asset-inventory-methodology.md` + `docs/raes/inventory/asset-inventory-methodology.md` - Assurance report: - `docs/aces/inventory/methodology-assurance-report.md` + `docs/raes/inventory/methodology-assurance-report.md` - Agent workflow: - `.codex-skills/aces-asset-inventory-capture/SKILL.md` and - `.claude/skills/aces-asset-inventory-capture/SKILL.md` + `.codex-skills/raes-asset-inventory-capture/SKILL.md` and + `.claude/skills/raes-asset-inventory-capture/SKILL.md` ## Target @@ -62,8 +62,8 @@ The asset bundle should include: For Docker/Compose/container-image captures, start from: -- `.codex-skills/aces-asset-inventory-capture/scripts/capture-container-evidence-template.sh` -- `.codex-skills/aces-asset-inventory-capture/scripts/normalize-syft-cyclonedx.jq` +- `.codex-skills/raes-asset-inventory-capture/scripts/capture-container-evidence-template.sh` +- `.codex-skills/raes-asset-inventory-capture/scripts/normalize-syft-cyclonedx.jq` ## Capture Checklist diff --git a/docs/aces/inventory/asset-inventory-methodology.md b/docs/raes/inventory/asset-inventory-methodology.md similarity index 99% rename from docs/aces/inventory/asset-inventory-methodology.md rename to docs/raes/inventory/asset-inventory-methodology.md index c62f3f8e8..57759f4b7 100644 --- a/docs/aces/inventory/asset-inventory-methodology.md +++ b/docs/raes/inventory/asset-inventory-methodology.md @@ -4,7 +4,7 @@ This is the RAES-owned methodology for participant-discoverable asset inventory capture. It was first validated against the TechVault `shuffle-backend` asset during APTL issue #353, with later APTL asset captures used as downstream proof work. The companion assurance report -`docs/aces/inventory/methodology-assurance-report.md` records the DevOps, +`docs/raes/inventory/methodology-assurance-report.md` records the DevOps, supply-chain, reproducible-research, and verification/validation basis for the methodology. The method has one inclusion rule: @@ -78,7 +78,7 @@ consume: issue records with evidence and checked surfaces. The reusable downstream issue skeleton for applying this method lives in -`docs/aces/inventory/asset-inventory-issue-template.md`. +`docs/raes/inventory/asset-inventory-issue-template.md`. ## Evidence Model @@ -321,7 +321,7 @@ Useful optional tools: ## Tested TechVault Validation Pass The first proof pass captured `aptl-shuffle-backend` under -APTL's `docs/aces/inventory/shuffle-backend/`. It used an already-running +APTL's `docs/raes/inventory/shuffle-backend/`. It used an already-running local lab rather than a destructive clean lab reset, so the output is method evidence, not final SCN-010 acceptance evidence. diff --git a/docs/aces/inventory/index.md b/docs/raes/inventory/index.md similarity index 100% rename from docs/aces/inventory/index.md rename to docs/raes/inventory/index.md diff --git a/docs/aces/inventory/issue-516-redaction-boundary-preflight.md b/docs/raes/inventory/issue-516-redaction-boundary-preflight.md similarity index 96% rename from docs/aces/inventory/issue-516-redaction-boundary-preflight.md rename to docs/raes/inventory/issue-516-redaction-boundary-preflight.md index 0ab289671..ae8249ee4 100644 --- a/docs/aces/inventory/issue-516-redaction-boundary-preflight.md +++ b/docs/raes/inventory/issue-516-redaction-boundary-preflight.md @@ -24,13 +24,13 @@ canonical methodology, skill, or runtime ADRs. ## Cross-Cutting Concerns To Reuse -- Inventory authority: `docs/aces/inventory/asset-inventory-methodology.md` +- Inventory authority: `docs/raes/inventory/asset-inventory-methodology.md` remains the canonical capture workflow and inclusion rule. -- Agent workflow: `.codex-skills/aces-asset-inventory-capture/SKILL.md` must +- Agent workflow: `.codex-skills/raes-asset-inventory-capture/SKILL.md` must continue to operationalize the methodology without defining a second ledger schema or secret taxonomy. - Template workflow: - `.codex-skills/aces-asset-inventory-capture/scripts/capture-container-evidence-template.sh` + `.codex-skills/raes-asset-inventory-capture/scripts/capture-container-evidence-template.sh` is the reusable Docker/Compose capture entry point. It must not keep name-based blanket redaction as the default for scenario-target evidence. - Runtime SDL validation: `runtime_values.enforce_observed_value_redaction()` diff --git a/docs/aces/inventory/kali-preflight.md b/docs/raes/inventory/kali-preflight.md similarity index 95% rename from docs/aces/inventory/kali-preflight.md rename to docs/raes/inventory/kali-preflight.md index 29fd025f1..8ed358436 100644 --- a/docs/aces/inventory/kali-preflight.md +++ b/docs/raes/inventory/kali-preflight.md @@ -2,7 +2,7 @@ This is a historical APTL TechVault validation note imported into RAES as a reference example. It is not the methodology authority; the canonical RAES -methodology is `docs/aces/inventory/asset-inventory-methodology.md`. +methodology is `docs/raes/inventory/asset-inventory-methodology.md`. This note is the architecture preflight for SCN-010 / issue #339. It is a binding guardrail for the Kali steady-state inventory, not a replacement for @@ -12,7 +12,7 @@ asset-inventorying methodology. ## Architecture Decisions - The completion artifact is an RAES inventory bundle under - `docs/aces/inventory/kali/`, using the existing `mapping-ledger.yaml` + `docs/raes/inventory/kali/`, using the existing `mapping-ledger.yaml` schema, `aptl aces-inventory validate`, and the evidence/checksum shape already used by `shuffle-backend` and `webapp`. - The inventory describes the realized `aptl-kali` container at one @@ -38,17 +38,17 @@ asset-inventorying methodology. ## Cross-Cutting Concerns To Reuse - Inventory methodology and ledger validation: - `docs/aces/inventory/asset-inventory-methodology.md`, + `docs/raes/inventory/asset-inventory-methodology.md`, `src/aptl/core/aces_inventory.py`, `src/aptl/cli/aces_inventory.py`, and `tests/test_aces_inventory_methodology.py`. - Prior asset patterns: - `docs/aces/inventory/shuffle-backend/`, - `docs/aces/inventory/webapp/`, - `docs/aces/inventory/webapp-preflight.md`, and + `docs/raes/inventory/shuffle-backend/`, + `docs/raes/inventory/webapp/`, + `docs/raes/inventory/webapp-preflight.md`, and `tests/test_webapp_inventory.py`. - RAES adoption and parity routing: - downstream APTL ADR-035, `docs/aces/parity-inventory.yaml`, - `docs/aces/parity-inventory.md`, and `tests/test_parity_inventory.py`. + downstream APTL ADR-035, `docs/raes/parity-inventory.yaml`, + `docs/raes/parity-inventory.md`, and `tests/test_parity_inventory.py`. - Kali realization owners: `docker-compose.yml` service `kali`, `containers/kali/Dockerfile`, `containers/kali/entrypoint.sh`, `containers/kali/healthcheck.sh`, diff --git a/docs/aces/inventory/methodology-assurance-report.md b/docs/raes/inventory/methodology-assurance-report.md similarity index 100% rename from docs/aces/inventory/methodology-assurance-report.md rename to docs/raes/inventory/methodology-assurance-report.md diff --git a/docs/aces/inventory/scn010-expressivity-gap-analysis.md b/docs/raes/inventory/scn010-expressivity-gap-analysis.md similarity index 99% rename from docs/aces/inventory/scn010-expressivity-gap-analysis.md rename to docs/raes/inventory/scn010-expressivity-gap-analysis.md index ae1615990..7c64c447f 100644 --- a/docs/aces/inventory/scn010-expressivity-gap-analysis.md +++ b/docs/raes/inventory/scn010-expressivity-gap-analysis.md @@ -26,7 +26,7 @@ SCN-010 requires **full observable parity**: every fact a participant/adversary/ ### 2.2 Why wazuh.manager sets the depth standard -The reference exemplar is `aptl/docs/aces/inventory/wazuh.manager/` (README + mapping-ledger). wazuh.manager — a SIEM — was *not* folded into generic `filesystem_inventory`/`service_listeners`/`runtime_software`. It earned an entire typed family, `security_monitoring_managers`, capturing its defining logical state: manager/agent/component topology, content corpora (`content_sets`), `detection_definitions` (6,121 of them, as a *bounded parsed manifest* — not raw rule-body import), and provenance-bearing settings. The depth bar is therefore: **a container's *defining* logical state must be domain-typed to the same standard, not absorbed into a generic surface.** A Redis cache modeled as a relational `RuntimeDatabaseService`, a MISP modeled as `service_listeners` + content counts, or a SOAR modeled as a `/shuffle-database` filesystem volume is the exact shallow encoding the parity gate forbids. +The reference exemplar is `aptl/docs/raes/inventory/wazuh.manager/` (README + mapping-ledger). wazuh.manager — a SIEM — was *not* folded into generic `filesystem_inventory`/`service_listeners`/`runtime_software`. It earned an entire typed family, `security_monitoring_managers`, capturing its defining logical state: manager/agent/component topology, content corpora (`content_sets`), `detection_definitions` (6,121 of them, as a *bounded parsed manifest* — not raw rule-body import), and provenance-bearing settings. The depth bar is therefore: **a container's *defining* logical state must be domain-typed to the same standard, not absorbed into a generic surface.** A Redis cache modeled as a relational `RuntimeDatabaseService`, a MISP modeled as `service_listeners` + content counts, or a SOAR modeled as a `/shuffle-database` filesystem volume is the exact shallow encoding the parity gate forbids. ### 2.3 Derivation and adversarial filtering diff --git a/docs/aces/inventory/webapp-preflight.md b/docs/raes/inventory/webapp-preflight.md similarity index 92% rename from docs/aces/inventory/webapp-preflight.md rename to docs/raes/inventory/webapp-preflight.md index d8fe4e96b..e9a447e00 100644 --- a/docs/aces/inventory/webapp-preflight.md +++ b/docs/raes/inventory/webapp-preflight.md @@ -2,7 +2,7 @@ This is a historical APTL TechVault validation note imported into RAES as a reference example. It is not the methodology authority; the canonical RAES -methodology is `docs/aces/inventory/asset-inventory-methodology.md`. +methodology is `docs/raes/inventory/asset-inventory-methodology.md`. This note is the local architecture preflight for SCN-010 / issue #330 after `gc_codex_architecture_preflight` timed out twice on 2026-05-21. It is a @@ -13,7 +13,7 @@ methodology. ## Architecture Decisions - The completion artifact is an RAES inventory bundle under - `docs/aces/inventory/webapp/`, using the same ledger schema and validation + `docs/raes/inventory/webapp/`, using the same ledger schema and validation CLI as the existing `shuffle-backend` proof pass. - The inventory captures the realized `aptl-webapp` container at one steady-state point. It does not claim byte-identical rebuildability, dynamic @@ -27,19 +27,19 @@ methodology. this issue. This issue records RAES expressivity gaps only when the webapp RAES SDL/spec inventory cannot express an observed fact. It must not implement a TechVault-only backend shortcut. -- `docs/aces/parity-inventory.yaml` remains the audit router for SCN-010. +- `docs/raes/parity-inventory.yaml` remains the audit router for SCN-010. Update rows only to point at the new webapp inventory/SDL evidence; do not turn the parity inventory into a runtime input schema. ## Cross-Cutting Concerns To Reuse - Inventory methodology and ledger validator: - `docs/aces/inventory/asset-inventory-methodology.md`, + `docs/raes/inventory/asset-inventory-methodology.md`, `src/aptl/core/aces_inventory.py`, and `tests/test_aces_inventory_methodology.py`. - Existing evidence-bundle shape: - `docs/aces/inventory/shuffle-backend/README.md`, - `docs/aces/inventory/shuffle-backend/mapping-ledger.yaml`, and the + `docs/raes/inventory/shuffle-backend/README.md`, + `docs/raes/inventory/shuffle-backend/mapping-ledger.yaml`, and the `evidence/` manifest/checksum pattern. - Webapp realization owners: `docker-compose.yml` service `webapp`, `containers/webapp/Dockerfile`, diff --git a/examples/scenarios/enterprise-participant-evidence-loop.README.md b/examples/scenarios/enterprise-participant-evidence-loop.README.md index d6bcde026..4b24471b6 100644 --- a/examples/scenarios/enterprise-participant-evidence-loop.README.md +++ b/examples/scenarios/enterprise-participant-evidence-loop.README.md @@ -89,7 +89,7 @@ a new backend manifest shape, or APTL-private keys inside the scenario body. ## Libvirt Scenario Evidence Artifact (#615) -`aces_operations.libvirt_evidence_run.run_libvirt_evidence_run` (CLI: `aces +`raes_operations.libvirt_evidence_run.run_libvirt_evidence_run` (CLI: `aces libvirt evidence validate`) produces a stable, validated evaluator-evidence run artifact for this scenario — `aces.libvirt.scenario-evidence-run/v1`, written to `runs//scenario-evidence/libvirt-scenario-evidence-run.json`. It composes the @@ -152,12 +152,12 @@ semantic equivalence. ## Downstream Links -- RAES issue: Brad-Edwards/aces#598 -- Participant implementation binding: Brad-Edwards/aces#599 -- RAES n=2 backend proof: Brad-Edwards/aces#600 +- RAES issue: RAESystem/rae#598 +- Participant implementation binding: RAESystem/rae#599 +- RAES n=2 backend proof: RAESystem/rae#600 (corpus: `examples/corpus/reference-demonstration/`) -- Libvirt participant runtime: Brad-Edwards/aces#614 -- Libvirt evaluator/Wazuh evidence readback: Brad-Edwards/aces#615 +- Libvirt participant runtime: RAESystem/rae#614 +- Libvirt evaluator/Wazuh evidence readback: RAESystem/rae#615 - APTL realization and proof: Brad-Edwards/aptl#556, Brad-Edwards/aptl#557, Brad-Edwards/aptl#558 diff --git a/examples/scenarios/techvault-guest-certified.sdl.yaml b/examples/scenarios/techvault-guest-certified.sdl.yaml index 233a9be81..3fa8cbb38 100644 --- a/examples/scenarios/techvault-guest-certified.sdl.yaml +++ b/examples/scenarios/techvault-guest-certified.sdl.yaml @@ -4,7 +4,7 @@ description: > through the production apply path and is certified from inside the guest - resource allocation, network addressing, file content, and service state are read back from the realized guest, freshness-bound to a per-run challenge, with - verified teardown. Used by `aces libvirt techvault guest-certify` and the + verified teardown. Used by `raes libvirt techvault guest-certify` and the opt-in real-daemon proof. nodes: guest-net: diff --git a/implementations/python/hatch_build.py b/implementations/python/hatch_build.py index d1f8c2ec1..196d9e254 100644 --- a/implementations/python/hatch_build.py +++ b/implementations/python/hatch_build.py @@ -22,8 +22,8 @@ from hatchling.builders.hooks.plugin.interface import BuildHookInterface from hatchling.metadata.plugin.interface import MetadataHookInterface -_WHEEL_DESTINATION = "aces_contracts/_corpus" -_NOTICE_WHEEL_DESTINATION = "aces_contracts/_corpus/provenance/THIRD_PARTY_NOTICES.md" +_WHEEL_DESTINATION = "raes_contracts/_corpus" +_NOTICE_WHEEL_DESTINATION = "raes_contracts/_corpus/provenance/THIRD_PARTY_NOTICES.md" class CustomBuildHook(BuildHookInterface): diff --git a/implementations/python/packages/aces_backend_stubs/__init__.py b/implementations/python/packages/aces_backend_stubs/__init__.py deleted file mode 100644 index 80201a02c..000000000 --- a/implementations/python/packages/aces_backend_stubs/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""Reference and test backends for ACES SDL.""" diff --git a/implementations/python/packages/aces_conformance/runner.py b/implementations/python/packages/aces_conformance/runner.py deleted file mode 100644 index 5170204c7..000000000 --- a/implementations/python/packages/aces_conformance/runner.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env python3 -"""Compatibility delegate to the Typer ``aces conformance backend`` command. - -Historic callers ran the backend conformance suite via -``python -m aces_conformance.runner``. The canonical CLI surface is now -``aces conformance backend`` in :mod:`aces_cli`; this module remains as a -thin entrypoint that forwards to it. -""" - -from __future__ import annotations - -import sys - -from aces_cli.main import app - - -def main(argv: list[str] | None = None) -> None: - args = list(sys.argv[1:] if argv is None else argv) - app(["conformance", "backend", *args], standalone_mode=True) - - -if __name__ == "__main__": - main() diff --git a/implementations/python/packages/aces_contracts/__init__.py b/implementations/python/packages/aces_contracts/__init__.py deleted file mode 100644 index 46c56c94d..000000000 --- a/implementations/python/packages/aces_contracts/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""Neutral external contract surfaces for ACES.""" diff --git a/implementations/python/packages/aces_mcp/__main__.py b/implementations/python/packages/aces_mcp/__main__.py deleted file mode 100644 index 4012aff6d..000000000 --- a/implementations/python/packages/aces_mcp/__main__.py +++ /dev/null @@ -1,6 +0,0 @@ -"""Entry point: ``python -m aces_mcp``.""" - -from aces_mcp.server import main - -if __name__ == "__main__": - main() diff --git a/implementations/python/packages/aces_operations/__init__.py b/implementations/python/packages/aces_operations/__init__.py deleted file mode 100644 index 1e2d8baf7..000000000 --- a/implementations/python/packages/aces_operations/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""Operational ACES workflows that coordinate runtime and backend packages.""" diff --git a/implementations/python/packages/raes/_realization_envelope_domains.py b/implementations/python/packages/raes/_realization_envelope_domains.py index 559158689..bf51c0b36 100644 --- a/implementations/python/packages/raes/_realization_envelope_domains.py +++ b/implementations/python/packages/raes/_realization_envelope_domains.py @@ -13,7 +13,7 @@ from collections.abc import Callable from enum import Enum -from aces_contracts.realization_envelope import ( +from raes_contracts.realization_envelope import ( BooleanDomain, DomainDescriptor, DomainScalar, diff --git a/implementations/python/packages/raes/_realization_envelope_engine.py b/implementations/python/packages/raes/_realization_envelope_engine.py index 75c74519f..592618ade 100644 --- a/implementations/python/packages/raes/_realization_envelope_engine.py +++ b/implementations/python/packages/raes/_realization_envelope_engine.py @@ -16,7 +16,7 @@ from dataclasses import dataclass from enum import Enum -from aces_contracts.realization_envelope import ( +from raes_contracts.realization_envelope import ( Closure, ClosureOverlay, DomainDescriptor, diff --git a/implementations/python/packages/raes/_realization_envelope_probe_payloads.py b/implementations/python/packages/raes/_realization_envelope_probe_payloads.py index f6f0121a1..5070bb6d9 100644 --- a/implementations/python/packages/raes/_realization_envelope_probe_payloads.py +++ b/implementations/python/packages/raes/_realization_envelope_probe_payloads.py @@ -6,7 +6,7 @@ from dataclasses import dataclass from enum import Enum -from aces_contracts.realization_envelope import Posture +from raes_contracts.realization_envelope import Posture from pydantic import BaseModel from ._realization_envelope_domains import out_of_domain_candidates diff --git a/implementations/python/packages/raes/agent_guidance.py b/implementations/python/packages/raes/agent_guidance.py index 81202b11b..8661fb109 100644 --- a/implementations/python/packages/raes/agent_guidance.py +++ b/implementations/python/packages/raes/agent_guidance.py @@ -1,4 +1,4 @@ -"""Machine-readable ACES agent guidance profile.""" +"""Machine-readable RAES agent guidance profile.""" from __future__ import annotations diff --git a/implementations/python/packages/raes/explicitness.py b/implementations/python/packages/raes/explicitness.py index 559770159..46d5dc38c 100644 --- a/implementations/python/packages/raes/explicitness.py +++ b/implementations/python/packages/raes/explicitness.py @@ -83,7 +83,7 @@ def classify_model_explicitness( *, variables: dict[str, Variable] | None = None, ) -> ExplicitnessResult: - """Classify authored declarations on any closed ACES Pydantic model.""" + """Classify authored declarations on any closed RAES Pydantic model.""" variables = variables if variables is not None else getattr(model, "variables", {}) classifier = _ExplicitnessClassifier(variables) diff --git a/implementations/python/packages/raes/image_provenance.py b/implementations/python/packages/raes/image_provenance.py index 9b14ad746..0016e46d6 100644 --- a/implementations/python/packages/raes/image_provenance.py +++ b/implementations/python/packages/raes/image_provenance.py @@ -109,7 +109,7 @@ class DockerfileInstruction(SDLModel): The instruction is kept as a typed kind plus tokenized ``arguments`` rather than raw recipe text: raw Dockerfile/shell syntax can contain - ``${...}`` strings that collide with ACES variable substitution. + ``${...}`` strings that collide with RAES variable substitution. """ instruction: DockerfileInstructionKind | str diff --git a/implementations/python/packages/raes/participant_behavior.py b/implementations/python/packages/raes/participant_behavior.py index 9bd6d706a..405c6d559 100644 --- a/implementations/python/packages/raes/participant_behavior.py +++ b/implementations/python/packages/raes/participant_behavior.py @@ -134,7 +134,7 @@ class ParticipantViewHistoryEventType(str, Enum): class ExternalMappingLoss(SDLModel): - """Loss-labeled mapping from an external vocabulary to ACES semantics.""" + """Loss-labeled mapping from an external vocabulary to RAES semantics.""" system: str identifier: str diff --git a/implementations/python/packages/raes/participant_execution.py b/implementations/python/packages/raes/participant_execution.py index 30f9343b4..57cc03624 100644 --- a/implementations/python/packages/raes/participant_execution.py +++ b/implementations/python/packages/raes/participant_execution.py @@ -1,4 +1,4 @@ -"""Autonomous execution policy for ordinary ACES participants.""" +"""Autonomous execution policy for ordinary RAES participants.""" from __future__ import annotations diff --git a/implementations/python/packages/raes/realization_designation.py b/implementations/python/packages/raes/realization_designation.py index b4f472a5d..15dbbea7d 100644 --- a/implementations/python/packages/raes/realization_designation.py +++ b/implementations/python/packages/raes/realization_designation.py @@ -7,7 +7,7 @@ from dataclasses import dataclass from enum import Enum -from aces_contracts.vocabulary import Closure +from raes_contracts.vocabulary import Closure from pydantic import BaseModel, ConfigDict, Field, model_validator from ._base import SDLModel diff --git a/implementations/python/packages/raes/realization_envelope.py b/implementations/python/packages/raes/realization_envelope.py index 161358a82..b852ded51 100644 --- a/implementations/python/packages/raes/realization_envelope.py +++ b/implementations/python/packages/raes/realization_envelope.py @@ -35,8 +35,8 @@ from copy import deepcopy from dataclasses import dataclass -from aces_contracts.diagnostics import Diagnostic, Severity -from aces_contracts.realization_envelope import RealizationEnvelopeModel, WitnessPolicy, scalar_in_domain +from raes_contracts.diagnostics import Diagnostic, Severity +from raes_contracts.realization_envelope import RealizationEnvelopeModel, WitnessPolicy, scalar_in_domain from pydantic import ValidationError from ._errors import SDLInstantiationError, SDLValidationError diff --git a/implementations/python/packages/raes/runtime_capabilities.py b/implementations/python/packages/raes/runtime_capabilities.py index bd7b6101f..98076d8cf 100644 --- a/implementations/python/packages/raes/runtime_capabilities.py +++ b/implementations/python/packages/raes/runtime_capabilities.py @@ -10,7 +10,7 @@ top-level ``RuntimeConfiguration`` aggregate stays under the per-file size cap from ADR-015. ``RuntimeConfiguration`` re-imports ``RuntimeProcessIdentity`` and ``RuntimeCapabilityPolicy`` from here so -external callers still reach them via ``aces.core.sdl.nodes``. +external callers still reach them via ``raes.nodes``. """ from __future__ import annotations diff --git a/implementations/python/packages/raes/runtime_file_service.py b/implementations/python/packages/raes/runtime_file_service.py index e19086391..00da323ab 100644 --- a/implementations/python/packages/raes/runtime_file_service.py +++ b/implementations/python/packages/raes/runtime_file_service.py @@ -11,7 +11,7 @@ The portable shape factors share/resource identity, service-local principals, authorization rules, and observed access outcomes into distinct records so vendor ACLs (POSIX, Windows DACL, NFSv4 ACE, -Zanzibar) are not smuggled in as the canonical ACES rule language. +Zanzibar) are not smuggled in as the canonical RAES rule language. Service-local principals carry only a credential-strength classification (``RuntimeFileServiceCredentialClassification``); raw passwords, hashes, keys, and other secret material are unrepresentable in this surface per diff --git a/implementations/python/packages/raes/runtime_service_units.py b/implementations/python/packages/raes/runtime_service_units.py index 9bd3bc0ab..1ee24847a 100644 --- a/implementations/python/packages/raes/runtime_service_units.py +++ b/implementations/python/packages/raes/runtime_service_units.py @@ -158,7 +158,7 @@ class ServiceUnitExecStartKind(str, Enum): def _validate_unit_name(value: str) -> str: """Validate a native service-manager unit name (e.g. ``sshd.service``). - Unit names are participant-visible data, not stable ACES ids, but they + Unit names are participant-visible data, not stable RAES ids, but they must be concrete to be useful for duplicate detection and downstream consumers. ``${var}`` placeholders are rejected here; the model has a separate stable ``unit_id`` for that role. @@ -248,7 +248,7 @@ def _enforce_concrete_kind_command_shape(self) -> None: class ServiceManagerUnit(SDLModel): """Observed service-manager unit state on a realized range node. - Each record carries a stable ACES ``unit_id`` (the reference target), the + Each record carries a stable RAES ``unit_id`` (the reference target), the native ``unit_name`` (e.g. ``sshd.service``), the participant-observable lifecycle facts captured by ``systemctl`` (load/active/sub/enabled/result), and bounded optional evidence: the unit-file path, an ``ExecStart`` diff --git a/implementations/python/packages/raes/scenarios.py b/implementations/python/packages/raes/scenarios.py index f6349321a..7bccf426f 100644 --- a/implementations/python/packages/raes/scenarios.py +++ b/implementations/python/packages/raes/scenarios.py @@ -10,7 +10,7 @@ from .parser import parse_sdl_file from .scenario import Scenario -log = logging.getLogger("aces.scenarios") +log = logging.getLogger("raes.scenarios") class ScenarioError(Exception): diff --git a/implementations/python/packages/raes/semantics/__init__.py b/implementations/python/packages/raes/semantics/__init__.py index 56a24919e..39b45ada4 100644 --- a/implementations/python/packages/raes/semantics/__init__.py +++ b/implementations/python/packages/raes/semantics/__init__.py @@ -2,5 +2,5 @@ Per ADR-015, these helpers live with the SDL package: the ``raes.validator`` package uses them, and they have no processor-runtime dependencies. The processor's -own reconciliation helpers stay at ``aces_processor.semantics.planner``. +own reconciliation helpers stay at ``raes_processor.semantics.planner``. """ diff --git a/implementations/python/packages/raes/semantics/objective_semantics.py b/implementations/python/packages/raes/semantics/objective_semantics.py index c7b574880..ec966fb91 100644 --- a/implementations/python/packages/raes/semantics/objective_semantics.py +++ b/implementations/python/packages/raes/semantics/objective_semantics.py @@ -7,7 +7,7 @@ and the acyclic ``depends_on`` ordering relation. It returns normalized references with their dependency-role tags, the per-objective ordering/refresh dependency names, and a fail-closed issue list that ``raes.validator`` -renders as authoring errors. ``aces_processor.compiler`` reuses the +renders as authoring errors. ``raes_processor.compiler`` reuses the ordering/refresh role decision (:func:`partition_objective_dependencies`) when it maps a compiled ``evaluation.objective.*`` resource onto its dependency tuples, and the planner then walks those edges generically. diff --git a/implementations/python/packages/raes/semantics/participant_behavior.py b/implementations/python/packages/raes/semantics/participant_behavior.py index 1f13782c0..3bb81b43c 100644 --- a/implementations/python/packages/raes/semantics/participant_behavior.py +++ b/implementations/python/packages/raes/semantics/participant_behavior.py @@ -277,7 +277,7 @@ def _behavior_mode_issue(*, spec_name: str, behavior_mode: object) -> Participan if not behavior_mode: return None try: - from aces_contracts.controlled_vocabularies import validate_controlled_vocabulary_scope_values + from raes_contracts.controlled_vocabularies import validate_controlled_vocabulary_scope_values validate_controlled_vocabulary_scope_values("behavior_specifications.behavior_mode", [str(behavior_mode)]) except ValueError as exc: @@ -293,7 +293,7 @@ def _behavior_mode_issue(*, spec_name: str, behavior_mode: object) -> Participan def _backend_feature_support_issue(*, spec_name: str, feature_ref: object) -> ParticipantBehaviorIssue | None: try: - from aces_contracts.controlled_vocabularies import validate_controlled_vocabulary_value + from raes_contracts.controlled_vocabularies import validate_controlled_vocabulary_value validation_errors: list[str] = [] for vocabulary_id in ( @@ -317,7 +317,7 @@ def _backend_feature_support_issue(*, spec_name: str, feature_ref: object) -> Pa def _evidence_contract_issue(*, spec_name: str, evidence_contract_ref: object) -> ParticipantBehaviorIssue | None: - from aces_contracts.manifest_authority import ( + from raes_contracts.manifest_authority import ( BACKEND_SUPPORTED_CONTRACT_IDS, PARTICIPANT_IMPLEMENTATION_SUPPORTED_CONTRACT_IDS, PROCESSOR_SUPPORTED_CONTRACT_IDS, @@ -1047,7 +1047,7 @@ def _behavior_specification_vocabulary_issues( ) if mode_issue is not None: issues.append(mode_issue) - from aces_contracts.controlled_vocabularies import validate_controlled_vocabulary_scope_values + from raes_contracts.controlled_vocabularies import validate_controlled_vocabulary_scope_values for field_name, scope, code in ( ( diff --git a/implementations/python/packages/raes/time_model.py b/implementations/python/packages/raes/time_model.py index 84ec6d5aa..a8ca72855 100644 --- a/implementations/python/packages/raes/time_model.py +++ b/implementations/python/packages/raes/time_model.py @@ -240,7 +240,7 @@ def _validate_progression(self) -> "TimeProgressionPolicy": class TemporalConstraint(SDLModel): - """One typed temporal predicate over ordinary ACES subjects.""" + """One typed temporal predicate over ordinary RAES subjects.""" constraint_kind: TemporalConstraintKind clock_ref: str diff --git a/implementations/python/packages/raes/validator/_participant_execution_renderers.py b/implementations/python/packages/raes/validator/_participant_execution_renderers.py index 8827d008e..c9b23c727 100644 --- a/implementations/python/packages/raes/validator/_participant_execution_renderers.py +++ b/implementations/python/packages/raes/validator/_participant_execution_renderers.py @@ -89,7 +89,7 @@ "participant.autonomous-evaluation-authority-namespace-unsupported": ( lambda i: ( f"Behavior specification '{i.spec_name}' evaluation-authority {i.message} ref " - f"'{i.ref}' cannot resolve because ACES SDL declares no such authority namespace" + f"'{i.ref}' cannot resolve because RAES SDL declares no such authority namespace" ) ), "participant.autonomous-participant-owner-conflict": ( diff --git a/implementations/python/packages/raes/validator/_time_model.py b/implementations/python/packages/raes/validator/_time_model.py index 4fc82ad76..f58b02d94 100644 --- a/implementations/python/packages/raes/validator/_time_model.py +++ b/implementations/python/packages/raes/validator/_time_model.py @@ -1,4 +1,4 @@ -"""Semantic checks for the shared ACES time model.""" +"""Semantic checks for the shared RAES time model.""" from ..time_model import TimeDomainMapping, TimeReplayBehavior, TimeResetBehavior from ._support import _topological_sort diff --git a/implementations/python/packages/raes/validator/_variation.py b/implementations/python/packages/raes/validator/_variation.py index 1b8c7fd3f..3b0eb6d0b 100644 --- a/implementations/python/packages/raes/validator/_variation.py +++ b/implementations/python/packages/raes/validator/_variation.py @@ -4,7 +4,7 @@ import math -from aces_contracts.bounded_domains import ( +from raes_contracts.bounded_domains import ( BooleanDomain, EnumDomain, ExactDomain, diff --git a/implementations/python/packages/raes/validator/_workflows_verify.py b/implementations/python/packages/raes/validator/_workflows_verify.py index cab883992..69ddab157 100644 --- a/implementations/python/packages/raes/validator/_workflows_verify.py +++ b/implementations/python/packages/raes/validator/_workflows_verify.py @@ -3,7 +3,7 @@ Part of the SemanticValidator mixin composition; see __init__.py. """ -from aces_contracts.controlled_vocabularies import ( +from raes_contracts.controlled_vocabularies import ( validate_controlled_vocabulary_scope_values, validate_controlled_vocabulary_value, ) diff --git a/implementations/python/packages/raes/variation.py b/implementations/python/packages/raes/variation.py index 74bd7d1a2..78a875554 100644 --- a/implementations/python/packages/raes/variation.py +++ b/implementations/python/packages/raes/variation.py @@ -5,7 +5,7 @@ from enum import Enum from typing import Annotated, Literal -from aces_contracts.bounded_domains import ( +from raes_contracts.bounded_domains import ( BooleanDomain, EnumDomain, ExactDomain, diff --git a/implementations/python/packages/aces_backend_libvirt/__init__.py b/implementations/python/packages/raes_backend_libvirt/__init__.py similarity index 94% rename from implementations/python/packages/aces_backend_libvirt/__init__.py rename to implementations/python/packages/raes_backend_libvirt/__init__.py index 6094a2254..1ce297093 100644 --- a/implementations/python/packages/aces_backend_libvirt/__init__.py +++ b/implementations/python/packages/raes_backend_libvirt/__init__.py @@ -1,4 +1,4 @@ -"""Libvirt/QEMU provisioning backend for ACES SDL.""" +"""Libvirt/QEMU provisioning backend for RAES SDL.""" from __future__ import annotations diff --git a/implementations/python/packages/aces_backend_libvirt/_payload.py b/implementations/python/packages/raes_backend_libvirt/_payload.py similarity index 96% rename from implementations/python/packages/aces_backend_libvirt/_payload.py rename to implementations/python/packages/raes_backend_libvirt/_payload.py index 443298f09..bfae02bde 100644 --- a/implementations/python/packages/aces_backend_libvirt/_payload.py +++ b/implementations/python/packages/raes_backend_libvirt/_payload.py @@ -1,4 +1,4 @@ -"""Shared accessors over ACES provisioning-plan resource payloads. +"""Shared accessors over RAES provisioning-plan resource payloads. The low-level, package-internal layer both :mod:`realization` (interpretation) and :mod:`capability_envelope` (capability-envelope diagnostics) build on, so the diff --git a/implementations/python/packages/aces_backend_libvirt/_techvault_native_helpers.py b/implementations/python/packages/raes_backend_libvirt/_techvault_native_helpers.py similarity index 100% rename from implementations/python/packages/aces_backend_libvirt/_techvault_native_helpers.py rename to implementations/python/packages/raes_backend_libvirt/_techvault_native_helpers.py diff --git a/implementations/python/packages/aces_backend_libvirt/_techvault_native_ops.py b/implementations/python/packages/raes_backend_libvirt/_techvault_native_ops.py similarity index 94% rename from implementations/python/packages/aces_backend_libvirt/_techvault_native_ops.py rename to implementations/python/packages/raes_backend_libvirt/_techvault_native_ops.py index 6d243ac3b..f0425191d 100644 --- a/implementations/python/packages/aces_backend_libvirt/_techvault_native_ops.py +++ b/implementations/python/packages/raes_backend_libvirt/_techvault_native_ops.py @@ -3,7 +3,7 @@ Holds the shared diagnostic-code constants, the native-resource protocol, and the thin libvirt-call/name-availability/artifact-token/diagnostic helpers used by the native TechVault driver and its teardown paths. Split from -:mod:`aces_backend_libvirt.techvault_native` to keep that module under the ADR-015 +:mod:`raes_backend_libvirt.techvault_native` to keep that module under the ADR-015 source-size cap; the driver re-imports these names so existing call sites and the guest-certified subclass's ``_artifact_token`` import stay stable. """ @@ -13,7 +13,7 @@ from collections.abc import Callable from typing import Protocol, cast -from aces_contracts.diagnostics import Diagnostic, Severity +from raes_contracts.diagnostics import Diagnostic, Severity from .drivers.libvirt import _aces_uuid, _error_code, _existing_uuid from .techvault_lifecycle import ( @@ -66,7 +66,7 @@ def _artifact_token(address: str) -> str: _MESSAGES = { _CODE_UNAVAILABLE: "Libvirt connection is unavailable for native TechVault realization.", _CODE_RESIDUAL_STATE: "TechVault rollback could not verify cleanup for '{address}'; residual state may remain.", - _CODE_OWNERSHIP_CONFLICT: "Native object for '{address}' is not owned by that ACES address; refusing mutation.", + _CODE_OWNERSHIP_CONFLICT: "Native object for '{address}' is not owned by that RAES address; refusing mutation.", _CODE_READBACK_FAILED: "Native libvirt TechVault readback for '{address}' did not succeed.", } _DEFAULT_MESSAGE = "Native libvirt TechVault operation for '{address}' did not succeed." diff --git a/implementations/python/packages/aces_backend_libvirt/acls.py b/implementations/python/packages/raes_backend_libvirt/acls.py similarity index 96% rename from implementations/python/packages/aces_backend_libvirt/acls.py rename to implementations/python/packages/raes_backend_libvirt/acls.py index e77336dfc..c20e6146c 100644 --- a/implementations/python/packages/aces_backend_libvirt/acls.py +++ b/implementations/python/packages/raes_backend_libvirt/acls.py @@ -2,7 +2,7 @@ A node's ``acls`` are network firewall rules (direction, source/destination network, protocol, ports, allow/deny). This module turns each governed rule into a -portable :class:`~aces_backend_libvirt.driver.NetworkAcl` that the driver renders +portable :class:`~raes_backend_libvirt.driver.NetworkAcl` that the driver renders as a libvirt ``nwfilter`` referenced from the domain interface. Translation is **fail-closed**: every field is resolved exactly, and any rule that @@ -17,8 +17,8 @@ from collections.abc import Mapping -from aces_contracts.diagnostics import Diagnostic, Severity -from aces_contracts.planning import PlannedResource +from raes_contracts.diagnostics import Diagnostic, Severity +from raes_contracts.planning import PlannedResource from .driver import NetworkAcl diff --git a/implementations/python/packages/aces_backend_libvirt/capability_envelope.py b/implementations/python/packages/raes_backend_libvirt/capability_envelope.py similarity index 96% rename from implementations/python/packages/aces_backend_libvirt/capability_envelope.py rename to implementations/python/packages/raes_backend_libvirt/capability_envelope.py index 26ce634b1..040998081 100644 --- a/implementations/python/packages/aces_backend_libvirt/capability_envelope.py +++ b/implementations/python/packages/raes_backend_libvirt/capability_envelope.py @@ -14,11 +14,11 @@ from collections.abc import Callable, Iterator, Mapping from dataclasses import dataclass -from aces_backend_protocols.account_features import provisioner_account_features -from aces_backend_protocols.capabilities import ProvisionerCapabilities -from aces_backend_protocols.domain_topology import domain_topology_profile -from aces_contracts.diagnostics import Diagnostic, Severity -from aces_contracts.planning import ChangeAction, ProvisioningPlan, RuntimeDomain +from raes_backend_protocols.account_features import provisioner_account_features +from raes_backend_protocols.capabilities import ProvisionerCapabilities +from raes_backend_protocols.domain_topology import domain_topology_profile +from raes_contracts.diagnostics import Diagnostic, Severity +from raes_contracts.planning import ChangeAction, ProvisioningPlan, RuntimeDomain from ._payload import ( ACCOUNT_PLACEMENT_RESOURCE_TYPE, diff --git a/implementations/python/packages/aces_backend_libvirt/cloudinit.py b/implementations/python/packages/raes_backend_libvirt/cloudinit.py similarity index 98% rename from implementations/python/packages/aces_backend_libvirt/cloudinit.py rename to implementations/python/packages/raes_backend_libvirt/cloudinit.py index ec3a3a314..cd1d6d011 100644 --- a/implementations/python/packages/aces_backend_libvirt/cloudinit.py +++ b/implementations/python/packages/raes_backend_libvirt/cloudinit.py @@ -3,7 +3,7 @@ Turns portable, driver-neutral realization intent (accounts, content files, feature packages) into deterministic NoCloud ``user-data`` and ``meta-data`` documents. This module is pure: no IO, no driver, no host state. The -interpreter (:mod:`aces_backend_libvirt.realization`) builds a domain's +interpreter (:mod:`raes_backend_libvirt.realization`) builds a domain's :class:`CloudInitSpec` from the provisioning plan, and the driver renders seed media from the same data, so plan interpretation can be validated without realizing anything. diff --git a/implementations/python/packages/aces_backend_libvirt/dialects.py b/implementations/python/packages/raes_backend_libvirt/dialects.py similarity index 100% rename from implementations/python/packages/aces_backend_libvirt/dialects.py rename to implementations/python/packages/raes_backend_libvirt/dialects.py diff --git a/implementations/python/packages/aces_backend_libvirt/driver.py b/implementations/python/packages/raes_backend_libvirt/driver.py similarity index 85% rename from implementations/python/packages/aces_backend_libvirt/driver.py rename to implementations/python/packages/raes_backend_libvirt/driver.py index 97689300c..bcb44d096 100644 --- a/implementations/python/packages/aces_backend_libvirt/driver.py +++ b/implementations/python/packages/raes_backend_libvirt/driver.py @@ -5,15 +5,15 @@ from dataclasses import dataclass, field from typing import Protocol -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.realization_observation import RealizationObservation +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.realization_observation import RealizationObservation from .cloudinit import CloudInitSpec @dataclass(frozen=True) class NetworkSpec: - """Portable libvirt network intent derived from an ACES resource.""" + """Portable libvirt network intent derived from an RAES resource.""" address: str name: str @@ -24,7 +24,7 @@ class NetworkSpec: @dataclass(frozen=True) class ServiceSpec: - """Portable service listener intent derived from an ACES node resource.""" + """Portable service listener intent derived from an RAES node resource.""" name: str port: int @@ -48,7 +48,7 @@ class NetworkAcl: @dataclass(frozen=True) class DomainSpec: - """Portable libvirt domain intent derived from an ACES node resource.""" + """Portable libvirt domain intent derived from an RAES node resource.""" address: str name: str @@ -106,9 +106,9 @@ def destroy( networks: tuple[str, ...], domains: tuple[str, ...], ) -> DriverResult: - """Destroy resources by ACES address.""" + """Destroy resources by RAES address.""" ... def realized_addresses(self) -> frozenset[str]: - """Return ACES addresses currently known as realized.""" + """Return RAES addresses currently known as realized.""" ... diff --git a/implementations/python/packages/aces_backend_libvirt/drivers/__init__.py b/implementations/python/packages/raes_backend_libvirt/drivers/__init__.py similarity index 100% rename from implementations/python/packages/aces_backend_libvirt/drivers/__init__.py rename to implementations/python/packages/raes_backend_libvirt/drivers/__init__.py diff --git a/implementations/python/packages/aces_backend_libvirt/drivers/_libvirt_xml.py b/implementations/python/packages/raes_backend_libvirt/drivers/_libvirt_xml.py similarity index 95% rename from implementations/python/packages/aces_backend_libvirt/drivers/_libvirt_xml.py rename to implementations/python/packages/raes_backend_libvirt/drivers/_libvirt_xml.py index 4fbd72a15..3a7fc5e6b 100644 --- a/implementations/python/packages/aces_backend_libvirt/drivers/_libvirt_xml.py +++ b/implementations/python/packages/raes_backend_libvirt/drivers/_libvirt_xml.py @@ -12,13 +12,13 @@ import xml.etree.ElementTree as ET from pathlib import Path -from aces_backend_libvirt.driver import DomainSpec, NetworkAcl, NetworkSpec +from raes_backend_libvirt.driver import DomainSpec, NetworkAcl, NetworkSpec def _network_xml(spec: NetworkSpec, name: str, owner_uuid: str) -> str: root = ET.Element("network") ET.SubElement(root, "name").text = name - # Deterministic per-address UUID stamps ACES ownership for safe convergence. + # Deterministic per-address UUID stamps RAES ownership for safe convergence. ET.SubElement(root, "uuid").text = owner_uuid if spec.labels.get("internal") == "true": ET.SubElement(root, "forward", {"mode": "nat"}) @@ -49,7 +49,7 @@ def _append_network_ip(root: ET.Element, spec: NetworkSpec) -> None: def _nwfilter_xml(filter_name: str, owner_uuid: str, acls: tuple[NetworkAcl, ...]) -> str: root = ET.Element("filter", {"name": filter_name, "chain": "root"}) - # Owner UUID stamps ACES ownership so convergence/cleanup never touches a + # Owner UUID stamps RAES ownership so convergence/cleanup never touches a # foreign filter that merely shares this name. ET.SubElement(root, "uuid").text = owner_uuid priority = 400 @@ -97,7 +97,7 @@ def _domain_xml( ) -> str: root = ET.Element("domain", {"type": "qemu"}) ET.SubElement(root, "name").text = name - # Deterministic per-address UUID stamps ACES ownership for safe convergence. + # Deterministic per-address UUID stamps RAES ownership for safe convergence. ET.SubElement(root, "uuid").text = owner_uuid ET.SubElement(root, "memory", {"unit": "MiB"}).text = str(spec.memory_mib) ET.SubElement(root, "vcpu").text = str(spec.vcpus) diff --git a/implementations/python/packages/aces_backend_libvirt/drivers/libvirt.py b/implementations/python/packages/raes_backend_libvirt/drivers/libvirt.py similarity index 97% rename from implementations/python/packages/aces_backend_libvirt/drivers/libvirt.py rename to implementations/python/packages/raes_backend_libvirt/drivers/libvirt.py index 91b408e03..89642102c 100644 --- a/implementations/python/packages/aces_backend_libvirt/drivers/libvirt.py +++ b/implementations/python/packages/raes_backend_libvirt/drivers/libvirt.py @@ -13,10 +13,10 @@ from pathlib import Path from typing import Protocol, cast -from aces_backend_protocols.naming import provider_resource_name -from aces_contracts.diagnostics import Diagnostic, Severity +from raes_backend_protocols.naming import provider_resource_name +from raes_contracts.diagnostics import Diagnostic, Severity -from aces_backend_libvirt.driver import ( +from raes_backend_libvirt.driver import ( DomainHandle, DomainSpec, DriverResult, @@ -35,7 +35,7 @@ _WORKSPACE_PREFIX = "aces-libvirt-" _SAFE_NAME_RE = re.compile(r"[^a-zA-Z0-9_.-]+") # Fixed namespace for deriving a per-address libvirt UUID. The UUID proves an -# existing host object was realized by ACES for *this* address, so convergence +# existing host object was realized by RAES for *this* address, so convergence # never destroys a foreign or another-address object that merely shares a name. _ACES_UUID_NAMESPACE = uuid.UUID("ace50000-0000-5000-8000-000000000001") @@ -55,7 +55,7 @@ class _OwnershipConflict(Exception): - """An existing host object at this name is not the ACES object for this address.""" + """An existing host object at this name is not the RAES object for this address.""" class _NativeLookupError(Exception): @@ -377,7 +377,7 @@ def _define_nwfilter(self, connection: object, spec: DomainSpec, name: str) -> s owner = _filter_owner_uuid(spec.address) # nwfilters are host-global and named-only, so — like domains/networks — # refuse to redefine a filter at this name unless it is owner-stamped for - # this ACES address. A foreign filter (or one for another address that + # this RAES address. A foreign filter (or one for another address that # normalizes to the same name) is never overwritten; apply fails closed. existing = _lookup(connection, "nwfilterLookupByName", filter_name) if existing is not None and _existing_uuid(existing) != owner: @@ -392,19 +392,19 @@ def _define_nwfilter(self, connection: object, spec: DomainSpec, name: str) -> s @staticmethod def _converge_existing(connection: object, lookup_method: str, name: str, address: str) -> bool: - """Stop and undefine the ACES object this apply owns at ``name``. + """Stop and undefine the RAES object this apply owns at ``name``. Convergence is destructive, so it only proceeds when the existing object's - UUID proves it is the ACES realization of *this* ``address``. A name hit + UUID proves it is the RAES realization of *this* ``address``. A name hit whose UUID is absent or different — a foreign object, or one realized for a - different ACES address that merely normalizes to the same name — raises + different RAES address that merely normalizes to the same name — raises :class:`_OwnershipConflict` so the apply fails closed instead of replacing an object it does not own. A running object we own is stopped first via :func:`_stop_native`, which tolerates an already-inactive object but lets a permission/internal stop failure propagate — so convergence never undefines (and silently replaces) a domain it could not actually stop. - Returns True when an existing ACES-owned object was converged (this address + Returns True when an existing RAES-owned object was converged (this address is an UPDATE of a pre-existing resource) and False when none existed (a fresh CREATE). Callers use this to roll back only newly-created objects on failure, never a pre-existing resource an UPDATE would otherwise destroy. @@ -442,7 +442,7 @@ def _destroy_one(self, connection: object, lookup_method: str, address: str) -> # snapshot is preserved for retry instead of claiming the object gone. return False # A None result is genuine absence — teardown is idempotently satisfied. - # A present object is torn down only when its UUID proves ACES ownership + # A present object is torn down only when its UUID proves RAES ownership # (the same invariant as convergence), never a foreign name collision. if native is not None: if _existing_uuid(native) != _aces_uuid(address): @@ -543,7 +543,7 @@ def _safe_name(candidate: str, *, fallback: str, prefix: str) -> str: _CODE_UNAVAILABLE: "Libvirt connection is unavailable for this backend operation.", _CODE_OWNERSHIP_CONFLICT: ( "Libvirt object for '{address}' already exists under the same name but is not " - "owned by this ACES address; refusing to converge an object this plan does not own." + "owned by this RAES address; refusing to converge an object this plan does not own." ), } diff --git a/implementations/python/packages/aces_backend_libvirt/drivers/seed.py b/implementations/python/packages/raes_backend_libvirt/drivers/seed.py similarity index 100% rename from implementations/python/packages/aces_backend_libvirt/drivers/seed.py rename to implementations/python/packages/raes_backend_libvirt/drivers/seed.py diff --git a/implementations/python/packages/aces_backend_libvirt/envelopes.py b/implementations/python/packages/raes_backend_libvirt/envelopes.py similarity index 92% rename from implementations/python/packages/aces_backend_libvirt/envelopes.py rename to implementations/python/packages/raes_backend_libvirt/envelopes.py index 34a31a886..0ec37db24 100644 --- a/implementations/python/packages/aces_backend_libvirt/envelopes.py +++ b/implementations/python/packages/raes_backend_libvirt/envelopes.py @@ -5,8 +5,8 @@ import json from enum import Enum -from aces_contracts.corpus import REALIZATION_ENVELOPES, corpus_family_root -from aces_contracts.realization_envelope import BackendRealizationEnvelopeModel, realizer_configuration_digest +from raes_contracts.corpus import REALIZATION_ENVELOPES, corpus_family_root +from raes_contracts.realization_envelope import BackendRealizationEnvelopeModel, realizer_configuration_digest class LibvirtDriverMode(str, Enum): diff --git a/implementations/python/packages/aces_backend_libvirt/guest_appliance.py b/implementations/python/packages/raes_backend_libvirt/guest_appliance.py similarity index 100% rename from implementations/python/packages/aces_backend_libvirt/guest_appliance.py rename to implementations/python/packages/raes_backend_libvirt/guest_appliance.py diff --git a/implementations/python/packages/aces_backend_libvirt/guest_certified_driver.py b/implementations/python/packages/raes_backend_libvirt/guest_certified_driver.py similarity index 98% rename from implementations/python/packages/aces_backend_libvirt/guest_certified_driver.py rename to implementations/python/packages/raes_backend_libvirt/guest_certified_driver.py index ca616a323..06c310647 100644 --- a/implementations/python/packages/aces_backend_libvirt/guest_certified_driver.py +++ b/implementations/python/packages/raes_backend_libvirt/guest_certified_driver.py @@ -20,7 +20,7 @@ from pathlib import Path from typing import ClassVar -from aces_contracts.diagnostics import Diagnostic +from raes_contracts.diagnostics import Diagnostic from .driver import DomainSpec, NetworkSpec, RealizationObservation from .drivers.libvirt import _aces_uuid @@ -63,7 +63,7 @@ def _admission_diagnostics( domains: tuple[DomainSpec, ...], envelope: object, ) -> list[Diagnostic]: - from aces_contracts.realization_envelope import BackendRealizationEnvelopeModel + from raes_contracts.realization_envelope import BackendRealizationEnvelopeModel assert isinstance(envelope, BackendRealizationEnvelopeModel) return guest_certified_spec_diagnostics( diff --git a/implementations/python/packages/aces_backend_libvirt/guest_observation.py b/implementations/python/packages/raes_backend_libvirt/guest_observation.py similarity index 98% rename from implementations/python/packages/aces_backend_libvirt/guest_observation.py rename to implementations/python/packages/raes_backend_libvirt/guest_observation.py index 2b9583c3d..1aafc689d 100644 --- a/implementations/python/packages/aces_backend_libvirt/guest_observation.py +++ b/implementations/python/packages/raes_backend_libvirt/guest_observation.py @@ -6,7 +6,7 @@ ``/sys``, ``/etc`` and link/file/account/service state), not echoed from the plan, and is carried as a :class:`RealizationObservation` with ``ObservationStrength.GUEST_OBSERVED``. Failures are stable, redacted -:class:`Diagnostic` codes that name the safe ACES address and the observation +:class:`Diagnostic` codes that name the safe RAES address and the observation level. A fresh per-run challenge proves the report belongs to this boot, not a cached or prior one. """ @@ -18,8 +18,8 @@ from dataclasses import dataclass, field from pathlib import Path -from aces_contracts.diagnostics import Diagnostic, Severity -from aces_contracts.realization_envelope import ObservationStrength, RealizationConcern +from raes_contracts.diagnostics import Diagnostic, Severity +from raes_contracts.realization_envelope import ObservationStrength, RealizationConcern from .driver import RealizationObservation from .guest_transport import ( diff --git a/implementations/python/packages/aces_backend_libvirt/guest_transport.py b/implementations/python/packages/raes_backend_libvirt/guest_transport.py similarity index 100% rename from implementations/python/packages/aces_backend_libvirt/guest_transport.py rename to implementations/python/packages/raes_backend_libvirt/guest_transport.py diff --git a/implementations/python/packages/aces_backend_libvirt/manifest.py b/implementations/python/packages/raes_backend_libvirt/manifest.py similarity index 97% rename from implementations/python/packages/aces_backend_libvirt/manifest.py rename to implementations/python/packages/raes_backend_libvirt/manifest.py index 5f87ca93b..90e4fa3dc 100644 --- a/implementations/python/packages/aces_backend_libvirt/manifest.py +++ b/implementations/python/packages/raes_backend_libvirt/manifest.py @@ -5,15 +5,15 @@ from importlib.metadata import PackageNotFoundError from importlib.metadata import version as distribution_version -from aces_backend_protocols.capabilities import ( +from raes_backend_protocols.capabilities import ( BackendCapabilitySet, BackendManifest, ParticipantFeatureSupport, ParticipantRuntimeCapabilities, ProvisionerCapabilities, ) -from aces_contracts.apparatus import ConceptBinding, RealizationSupportDeclaration -from aces_contracts.vocabulary import ParticipantFeatureSupportLevel, RealizationSupportMode +from raes_contracts.apparatus import ConceptBinding, RealizationSupportDeclaration +from raes_contracts.vocabulary import ParticipantFeatureSupportLevel, RealizationSupportMode from .envelopes import LibvirtDriverMode, load_libvirt_realization_envelope diff --git a/implementations/python/packages/aces_backend_libvirt/participant_domain.py b/implementations/python/packages/raes_backend_libvirt/participant_domain.py similarity index 97% rename from implementations/python/packages/aces_backend_libvirt/participant_domain.py rename to implementations/python/packages/raes_backend_libvirt/participant_domain.py index 656ff4aec..71f371929 100644 --- a/implementations/python/packages/aces_backend_libvirt/participant_domain.py +++ b/implementations/python/packages/raes_backend_libvirt/participant_domain.py @@ -11,7 +11,7 @@ from typing import Protocol -from aces_contracts.participant_binding import ParticipantActionAdmissionRequest +from raes_contracts.participant_binding import ParticipantActionAdmissionRequest class LibvirtParticipantDomainAdapter(Protocol): diff --git a/implementations/python/packages/aces_backend_libvirt/participant_runtime.py b/implementations/python/packages/raes_backend_libvirt/participant_runtime.py similarity index 91% rename from implementations/python/packages/aces_backend_libvirt/participant_runtime.py rename to implementations/python/packages/raes_backend_libvirt/participant_runtime.py index 6efe880b6..70477e49a 100644 --- a/implementations/python/packages/aces_backend_libvirt/participant_runtime.py +++ b/implementations/python/packages/raes_backend_libvirt/participant_runtime.py @@ -16,9 +16,9 @@ from __future__ import annotations -from aces_backend_protocols.participant_runtime_base import BaseParticipantRuntime -from aces_contracts.participant_binding import ParticipantActionAdmissionRequest -from aces_contracts.runtime_state import ApplyResult, RuntimeSnapshot +from raes_backend_protocols.participant_runtime_base import BaseParticipantRuntime +from raes_contracts.participant_binding import ParticipantActionAdmissionRequest +from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot from .participant_domain import DeterministicParticipantDomainAdapter, LibvirtParticipantDomainAdapter diff --git a/implementations/python/packages/aces_backend_libvirt/provisioner.py b/implementations/python/packages/raes_backend_libvirt/provisioner.py similarity index 97% rename from implementations/python/packages/aces_backend_libvirt/provisioner.py rename to implementations/python/packages/raes_backend_libvirt/provisioner.py index 0c8081831..06bc450dc 100644 --- a/implementations/python/packages/aces_backend_libvirt/provisioner.py +++ b/implementations/python/packages/raes_backend_libvirt/provisioner.py @@ -4,11 +4,11 @@ from dataclasses import dataclass -from aces_backend_protocols.capabilities import ProvisionerCapabilities -from aces_contracts.contracts import RealizationEnvelopeIdentityModel -from aces_contracts.diagnostics import Diagnostic, Severity -from aces_contracts.planning import ChangeAction, ProvisioningPlan, ProvisionOp, RuntimeDomain -from aces_contracts.runtime_state import ApplyResult, RuntimeSnapshot, SnapshotEntry +from raes_backend_protocols.capabilities import ProvisionerCapabilities +from raes_contracts.contracts import RealizationEnvelopeIdentityModel +from raes_contracts.diagnostics import Diagnostic, Severity +from raes_contracts.planning import ChangeAction, ProvisioningPlan, ProvisionOp, RuntimeDomain +from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot, SnapshotEntry from ._payload import NETWORK_RESOURCE_TYPE, NODE_RESOURCE_TYPE from .driver import DomainSpec, DriverResult, LibvirtDriver, NetworkSpec @@ -330,7 +330,7 @@ def _invalid_plan_diagnostic() -> Diagnostic: code=INVALID_PLAN_CODE, domain=_DOMAIN, address="runtime.libvirt.provisioning", - message="Libvirt provisioner accepts only aces_contracts.planning.ProvisioningPlan inputs.", + message="Libvirt provisioner accepts only raes_contracts.planning.ProvisioningPlan inputs.", severity=Severity.ERROR, ) diff --git a/implementations/python/packages/aces_backend_libvirt/realization.py b/implementations/python/packages/raes_backend_libvirt/realization.py similarity index 98% rename from implementations/python/packages/aces_backend_libvirt/realization.py rename to implementations/python/packages/raes_backend_libvirt/realization.py index ee633cba5..e4d882490 100644 --- a/implementations/python/packages/aces_backend_libvirt/realization.py +++ b/implementations/python/packages/raes_backend_libvirt/realization.py @@ -1,6 +1,6 @@ """Pure interpretation of provisioning plans for the libvirt backend. -Maps an ACES :class:`ProvisioningPlan` into a driver-neutral :class:`Realization` +Maps an RAES :class:`ProvisioningPlan` into a driver-neutral :class:`Realization` of portable network/domain specs. Node resources become libvirt domains; network resources become libvirt networks; and placement resources are bound to their target domains. Content, account, and feature placements contribute to cloud-init: @@ -22,10 +22,10 @@ from collections.abc import Mapping from dataclasses import dataclass, field -from aces_backend_protocols.capabilities import ProvisionerCapabilities -from aces_backend_protocols.naming import provider_resource_name -from aces_contracts.diagnostics import Diagnostic, Severity -from aces_contracts.planning import PlannedResource, ProvisioningPlan, RuntimeDomain +from raes_backend_protocols.capabilities import ProvisionerCapabilities +from raes_backend_protocols.naming import provider_resource_name +from raes_contracts.diagnostics import Diagnostic, Severity +from raes_contracts.planning import PlannedResource, ProvisioningPlan, RuntimeDomain from ._payload import ( ACCOUNT_PLACEMENT_RESOURCE_TYPE, @@ -86,7 +86,7 @@ def interpret_provisioning_plan( *, provisioner_capabilities: ProvisionerCapabilities | None = None, ) -> Realization: - """Interpret an ACES provisioning plan as portable libvirt intent. + """Interpret an RAES provisioning plan as portable libvirt intent. ``provisioner_capabilities`` is the backend capability envelope every plan term is validated against; it defaults to the libvirt manifest's declared diff --git a/implementations/python/packages/aces_backend_libvirt/target.py b/implementations/python/packages/raes_backend_libvirt/target.py similarity index 97% rename from implementations/python/packages/aces_backend_libvirt/target.py rename to implementations/python/packages/raes_backend_libvirt/target.py index 3861df921..64f502f0b 100644 --- a/implementations/python/packages/aces_backend_libvirt/target.py +++ b/implementations/python/packages/raes_backend_libvirt/target.py @@ -4,8 +4,8 @@ from typing import Any -from aces_backend_protocols.capabilities import BackendManifest -from aces_runtime.registry import BackendRegistry, RuntimeTarget, RuntimeTargetComponents +from raes_backend_protocols.capabilities import BackendManifest +from raes_runtime.registry import BackendRegistry, RuntimeTarget, RuntimeTargetComponents from .driver import LibvirtDriver from .drivers.libvirt import LibvirtDeploymentDriver diff --git a/implementations/python/packages/aces_backend_libvirt/techvault_appliance.py b/implementations/python/packages/raes_backend_libvirt/techvault_appliance.py similarity index 100% rename from implementations/python/packages/aces_backend_libvirt/techvault_appliance.py rename to implementations/python/packages/raes_backend_libvirt/techvault_appliance.py diff --git a/implementations/python/packages/aces_backend_libvirt/techvault_concerns.py b/implementations/python/packages/raes_backend_libvirt/techvault_concerns.py similarity index 99% rename from implementations/python/packages/aces_backend_libvirt/techvault_concerns.py rename to implementations/python/packages/raes_backend_libvirt/techvault_concerns.py index 62c6f0cba..a49dc9c10 100644 --- a/implementations/python/packages/aces_backend_libvirt/techvault_concerns.py +++ b/implementations/python/packages/raes_backend_libvirt/techvault_concerns.py @@ -5,8 +5,8 @@ import ipaddress import re -from aces_contracts.diagnostics import Diagnostic, Severity -from aces_contracts.realization_envelope import ( +from raes_contracts.diagnostics import Diagnostic, Severity +from raes_contracts.realization_envelope import ( BackendRealizationEnvelopeModel, ObservationStrength, RealizationConcern, diff --git a/implementations/python/packages/aces_backend_libvirt/techvault_lifecycle.py b/implementations/python/packages/raes_backend_libvirt/techvault_lifecycle.py similarity index 98% rename from implementations/python/packages/aces_backend_libvirt/techvault_lifecycle.py rename to implementations/python/packages/raes_backend_libvirt/techvault_lifecycle.py index a56399ca2..1ef05c3c1 100644 --- a/implementations/python/packages/aces_backend_libvirt/techvault_lifecycle.py +++ b/implementations/python/packages/raes_backend_libvirt/techvault_lifecycle.py @@ -10,7 +10,7 @@ class NativeOwnershipConflict(Exception): - """A native name is not owned by the requested ACES address.""" + """A native name is not owned by the requested RAES address.""" @dataclass(frozen=True) diff --git a/implementations/python/packages/aces_backend_libvirt/techvault_matrix.py b/implementations/python/packages/raes_backend_libvirt/techvault_matrix.py similarity index 99% rename from implementations/python/packages/aces_backend_libvirt/techvault_matrix.py rename to implementations/python/packages/raes_backend_libvirt/techvault_matrix.py index 3a4f0ab19..157c69d14 100644 --- a/implementations/python/packages/aces_backend_libvirt/techvault_matrix.py +++ b/implementations/python/packages/raes_backend_libvirt/techvault_matrix.py @@ -10,7 +10,7 @@ from pathlib import Path from typing import cast -from aces_backend_protocols.naming import provider_resource_name +from raes_backend_protocols.naming import provider_resource_name from .driver import DomainSpec, NetworkSpec from .drivers.libvirt import _aces_uuid diff --git a/implementations/python/packages/aces_backend_libvirt/techvault_native.py b/implementations/python/packages/raes_backend_libvirt/techvault_native.py similarity index 99% rename from implementations/python/packages/aces_backend_libvirt/techvault_native.py rename to implementations/python/packages/raes_backend_libvirt/techvault_native.py index 95dcac40b..4d144ba6b 100644 --- a/implementations/python/packages/aces_backend_libvirt/techvault_native.py +++ b/implementations/python/packages/raes_backend_libvirt/techvault_native.py @@ -1,6 +1,6 @@ """Native libvirt/QEMU TechVault appliance driver. -This driver realizes the ACES-planned TechVault node/network surface as tiny +This driver realizes the RAES-planned TechVault node/network surface as tiny QEMU guests booted by libvirt from generated initramfs appliances. It is intentionally independent from APTL's Docker Compose substrate: the only runtime substrate boundary here is libvirt. @@ -15,7 +15,7 @@ from typing import TYPE_CHECKING, ClassVar, cast from urllib.parse import urlsplit -from aces_contracts.diagnostics import Diagnostic +from raes_contracts.diagnostics import Diagnostic from ._techvault_native_helpers import default_connector as _default_connector from ._techvault_native_helpers import default_kernel_path as _default_kernel_path @@ -34,7 +34,7 @@ ) if TYPE_CHECKING: - from aces_contracts.realization_envelope import BackendRealizationEnvelopeModel + from raes_contracts.realization_envelope import BackendRealizationEnvelopeModel from .driver import ( DomainHandle, diff --git a/implementations/python/packages/aces_backend_libvirt/techvault_observation.py b/implementations/python/packages/raes_backend_libvirt/techvault_observation.py similarity index 99% rename from implementations/python/packages/aces_backend_libvirt/techvault_observation.py rename to implementations/python/packages/raes_backend_libvirt/techvault_observation.py index 655ce5261..43438b718 100644 --- a/implementations/python/packages/aces_backend_libvirt/techvault_observation.py +++ b/implementations/python/packages/raes_backend_libvirt/techvault_observation.py @@ -9,7 +9,7 @@ from collections.abc import Mapping, Sequence from pathlib import Path -from aces_contracts.realization_envelope import ObservationStrength, RealizationConcern +from raes_contracts.realization_envelope import ObservationStrength, RealizationConcern from defusedxml import ElementTree as SafeET from .driver import RealizationObservation diff --git a/implementations/python/packages/aces_backend_libvirt/techvault_plan_admission.py b/implementations/python/packages/raes_backend_libvirt/techvault_plan_admission.py similarity index 96% rename from implementations/python/packages/aces_backend_libvirt/techvault_plan_admission.py rename to implementations/python/packages/raes_backend_libvirt/techvault_plan_admission.py index b1ea062bd..c44b7a95e 100644 --- a/implementations/python/packages/aces_backend_libvirt/techvault_plan_admission.py +++ b/implementations/python/packages/raes_backend_libvirt/techvault_plan_admission.py @@ -3,7 +3,7 @@ This module holds the plan/payload admission path — the checks that run against a :class:`ProvisioningPlan` and its raw operation payloads before snapshot reconciliation or driver IO. The spec-path and observation gates live in -:mod:`aces_backend_libvirt.techvault_concerns`, whose shared diagnostic +:mod:`raes_backend_libvirt.techvault_concerns`, whose shared diagnostic factories and validators this module reuses. """ @@ -11,9 +11,9 @@ from collections.abc import Mapping -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.planning import ChangeAction, ProvisioningPlan, ProvisionOp -from aces_contracts.realization_envelope import BackendRealizationEnvelopeModel +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.planning import ChangeAction, ProvisioningPlan, ProvisionOp +from raes_contracts.realization_envelope import BackendRealizationEnvelopeModel from ._payload import ( ACCOUNT_PLACEMENT_RESOURCE_TYPE, diff --git a/implementations/python/packages/aces_backend_libvirt/techvault_probe.py b/implementations/python/packages/raes_backend_libvirt/techvault_probe.py similarity index 100% rename from implementations/python/packages/aces_backend_libvirt/techvault_probe.py rename to implementations/python/packages/raes_backend_libvirt/techvault_probe.py diff --git a/implementations/python/packages/aces_backend_protocols/__init__.py b/implementations/python/packages/raes_backend_protocols/__init__.py similarity index 100% rename from implementations/python/packages/aces_backend_protocols/__init__.py rename to implementations/python/packages/raes_backend_protocols/__init__.py diff --git a/implementations/python/packages/aces_backend_protocols/_domain_topology_binding.py b/implementations/python/packages/raes_backend_protocols/_domain_topology_binding.py similarity index 98% rename from implementations/python/packages/aces_backend_protocols/_domain_topology_binding.py rename to implementations/python/packages/raes_backend_protocols/_domain_topology_binding.py index 4acbac959..347236e9f 100644 --- a/implementations/python/packages/aces_backend_protocols/_domain_topology_binding.py +++ b/implementations/python/packages/raes_backend_protocols/_domain_topology_binding.py @@ -5,7 +5,7 @@ from collections.abc import Mapping, Sequence from dataclasses import dataclass -from aces_contracts.addressing import require_compiled_address +from raes_contracts.addressing import require_compiled_address DOMAIN_NODE_ROLES = frozenset({"controller", "member"}) diff --git a/implementations/python/packages/aces_backend_protocols/account_features.py b/implementations/python/packages/raes_backend_protocols/account_features.py similarity index 96% rename from implementations/python/packages/aces_backend_protocols/account_features.py rename to implementations/python/packages/raes_backend_protocols/account_features.py index 7e418ab7d..fbf8e3d0e 100644 --- a/implementations/python/packages/aces_backend_protocols/account_features.py +++ b/implementations/python/packages/raes_backend_protocols/account_features.py @@ -1,7 +1,7 @@ """Canonical account-feature extraction for the provisioner capability boundary. ``provisioner_account_features`` is the single spec->feature-term mapping shared -by the processor planner gate (``aces_processor.planner._validate_manifest``) and +by the processor planner gate (``raes_processor.planner._validate_manifest``) and the libvirt backend's capability-envelope diagnostics (issue #605), so the two never diverge. It is kept out of ``capabilities`` (which declares *what a backend supports*) because it reads *what a plan's account spec uses* — a plan-payload diff --git a/implementations/python/packages/aces_backend_protocols/backend_manifest.py b/implementations/python/packages/raes_backend_protocols/backend_manifest.py similarity index 98% rename from implementations/python/packages/aces_backend_protocols/backend_manifest.py rename to implementations/python/packages/raes_backend_protocols/backend_manifest.py index 0c9db3831..9a4471979 100644 --- a/implementations/python/packages/aces_backend_protocols/backend_manifest.py +++ b/implementations/python/packages/raes_backend_protocols/backend_manifest.py @@ -5,9 +5,9 @@ from dataclasses import dataclass from typing import TypedDict, TypeVar, Unpack -from aces_contracts.apparatus import ApparatusIdentity, ConceptBinding, RealizationSupportDeclaration -from aces_contracts.manifest_authority import validate_backend_supported_contract_versions -from aces_contracts.realization_envelope import BackendRealizationEnvelopeModel +from raes_contracts.apparatus import ApparatusIdentity, ConceptBinding, RealizationSupportDeclaration +from raes_contracts.manifest_authority import validate_backend_supported_contract_versions +from raes_contracts.realization_envelope import BackendRealizationEnvelopeModel from .capabilities import ( BackendCapabilitySet, diff --git a/implementations/python/packages/aces_backend_protocols/capabilities.py b/implementations/python/packages/raes_backend_protocols/capabilities.py similarity index 98% rename from implementations/python/packages/aces_backend_protocols/capabilities.py rename to implementations/python/packages/raes_backend_protocols/capabilities.py index ec4194e6d..2639ce4a9 100644 --- a/implementations/python/packages/aces_backend_protocols/capabilities.py +++ b/implementations/python/packages/raes_backend_protocols/capabilities.py @@ -2,9 +2,9 @@ from dataclasses import dataclass, field -from aces_contracts.controlled_vocabularies import validate_controlled_vocabulary_scope_values -from aces_contracts.manifest_authority import validate_backend_supported_contract_versions -from aces_contracts.vocabulary import WorkflowFeature, WorkflowStatePredicateFeature +from raes_contracts.controlled_vocabularies import validate_controlled_vocabulary_scope_values +from raes_contracts.manifest_authority import validate_backend_supported_contract_versions +from raes_contracts.vocabulary import WorkflowFeature, WorkflowStatePredicateFeature from . import participant_capabilities as _participant_capabilities from . import provisioner_capabilities as _provisioner_capabilities diff --git a/implementations/python/packages/aces_backend_protocols/capability_admission.py b/implementations/python/packages/raes_backend_protocols/capability_admission.py similarity index 99% rename from implementations/python/packages/aces_backend_protocols/capability_admission.py rename to implementations/python/packages/raes_backend_protocols/capability_admission.py index e39a6b295..52af278dc 100644 --- a/implementations/python/packages/aces_backend_protocols/capability_admission.py +++ b/implementations/python/packages/raes_backend_protocols/capability_admission.py @@ -14,8 +14,8 @@ ) if TYPE_CHECKING: - from aces_contracts.contracts.time_model import TimeModelDeclarationModel - from aces_contracts.contracts.trial_cleanup import TrialCleanupPlanModel + from raes_contracts.contracts.time_model import TimeModelDeclarationModel + from raes_contracts.contracts.trial_cleanup import TrialCleanupPlanModel from .backend_manifest import BackendManifest from .capabilities import ParticipantRuntimeCapabilities, TimeCapabilities diff --git a/implementations/python/packages/aces_backend_protocols/domain_topology.py b/implementations/python/packages/raes_backend_protocols/domain_topology.py similarity index 98% rename from implementations/python/packages/aces_backend_protocols/domain_topology.py rename to implementations/python/packages/raes_backend_protocols/domain_topology.py index c0fb1a751..aab10db4d 100644 --- a/implementations/python/packages/aces_backend_protocols/domain_topology.py +++ b/implementations/python/packages/raes_backend_protocols/domain_topology.py @@ -6,8 +6,8 @@ from dataclasses import dataclass from typing import TYPE_CHECKING -from aces_contracts.diagnostics import Diagnostic, Severity -from aces_contracts.planning import ChangeAction, RuntimeDomain +from raes_contracts.diagnostics import Diagnostic, Severity +from raes_contracts.planning import ChangeAction, RuntimeDomain from ._domain_topology_binding import ( DOMAIN_NODE_ROLES, @@ -16,8 +16,8 @@ ) if TYPE_CHECKING: - from aces_contracts.planning import PlannedResource, PlanOperation, ProvisioningPlan - from aces_contracts.runtime_state import RuntimeSnapshot, SnapshotEntry + from raes_contracts.planning import PlannedResource, PlanOperation, ProvisioningPlan + from raes_contracts.runtime_state import RuntimeSnapshot, SnapshotEntry @dataclass(frozen=True) diff --git a/implementations/python/packages/aces_backend_protocols/manifest.py b/implementations/python/packages/raes_backend_protocols/manifest.py similarity index 99% rename from implementations/python/packages/aces_backend_protocols/manifest.py rename to implementations/python/packages/raes_backend_protocols/manifest.py index ce3d129f2..ff9545895 100644 --- a/implementations/python/packages/aces_backend_protocols/manifest.py +++ b/implementations/python/packages/raes_backend_protocols/manifest.py @@ -4,8 +4,8 @@ from typing import Any -from aces_contracts.apparatus import ApparatusIdentity, ConceptBinding, RealizationSupportDeclaration -from aces_contracts.contracts import ( +from raes_contracts.apparatus import ApparatusIdentity, ConceptBinding, RealizationSupportDeclaration +from raes_contracts.contracts import ( ApparatusIdentityModel, BackendCapabilitiesV2Model, BackendCompatibilityModel, @@ -21,7 +21,7 @@ RealizationSupportDeclarationModel, TimeCapabilitiesModel, ) -from aces_contracts.manifest_authority import BACKEND_SUPPORTED_CONTRACT_IDS +from raes_contracts.manifest_authority import BACKEND_SUPPORTED_CONTRACT_IDS from .capabilities import ( BackendCapabilitySet, diff --git a/implementations/python/packages/aces_backend_protocols/naming.py b/implementations/python/packages/raes_backend_protocols/naming.py similarity index 94% rename from implementations/python/packages/aces_backend_protocols/naming.py rename to implementations/python/packages/raes_backend_protocols/naming.py index a2bfa3904..5f63f60ca 100644 --- a/implementations/python/packages/aces_backend_protocols/naming.py +++ b/implementations/python/packages/raes_backend_protocols/naming.py @@ -5,7 +5,7 @@ import hashlib import re -from aces_contracts.addressing import require_compiled_address +from raes_contracts.addressing import require_compiled_address _UNSAFE_PROVIDER_NAME = re.compile(r"[^a-z0-9_.-]+", re.ASCII) _DIGEST_LENGTH = 12 diff --git a/implementations/python/packages/aces_backend_protocols/participant_action_commit.py b/implementations/python/packages/raes_backend_protocols/participant_action_commit.py similarity index 91% rename from implementations/python/packages/aces_backend_protocols/participant_action_commit.py rename to implementations/python/packages/raes_backend_protocols/participant_action_commit.py index 1ea93b593..0a6182edf 100644 --- a/implementations/python/packages/aces_backend_protocols/participant_action_commit.py +++ b/implementations/python/packages/raes_backend_protocols/participant_action_commit.py @@ -2,12 +2,12 @@ from hashlib import sha256 -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.participant_binding import ( +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.participant_binding import ( ParticipantActionAdmissionRequest, ParticipantActionApplyResult, ) -from aces_contracts.runtime_state import ApplyResult, RuntimeSnapshot +from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot def participant_binding_post_state_digest(request: ParticipantActionAdmissionRequest) -> str: diff --git a/implementations/python/packages/aces_backend_protocols/participant_capabilities.py b/implementations/python/packages/raes_backend_protocols/participant_capabilities.py similarity index 98% rename from implementations/python/packages/aces_backend_protocols/participant_capabilities.py rename to implementations/python/packages/raes_backend_protocols/participant_capabilities.py index 33a7fe824..aceffd091 100644 --- a/implementations/python/packages/aces_backend_protocols/participant_capabilities.py +++ b/implementations/python/packages/raes_backend_protocols/participant_capabilities.py @@ -2,9 +2,9 @@ from dataclasses import dataclass, field -from aces_contracts.addressing import require_compiled_address -from aces_contracts.controlled_vocabularies import validate_controlled_vocabulary_scope_values -from aces_contracts.vocabulary import ParticipantFeatureSupportLevel +from raes_contracts.addressing import require_compiled_address +from raes_contracts.controlled_vocabularies import validate_controlled_vocabulary_scope_values +from raes_contracts.vocabulary import ParticipantFeatureSupportLevel PARTICIPANT_RUNTIME_ROLE_SCOPE = "capabilities.participant_runtime.supported_participant_roles" PARTICIPANT_RUNTIME_BEHAVIOR_FEATURE_SCOPE = "capabilities.participant_runtime.supported_behavior_features" diff --git a/implementations/python/packages/aces_backend_protocols/participant_reset.py b/implementations/python/packages/raes_backend_protocols/participant_reset.py similarity index 92% rename from implementations/python/packages/aces_backend_protocols/participant_reset.py rename to implementations/python/packages/raes_backend_protocols/participant_reset.py index a512ec2a6..af45af025 100644 --- a/implementations/python/packages/aces_backend_protocols/participant_reset.py +++ b/implementations/python/packages/raes_backend_protocols/participant_reset.py @@ -5,9 +5,9 @@ from copy import deepcopy from typing import Protocol -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.participant_episode import ParticipantEpisodeResetRequest -from aces_contracts.runtime_state import ApplyResult, RuntimeSnapshot +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.participant_episode import ParticipantEpisodeResetRequest +from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot class _AtomicResetRuntime(Protocol): diff --git a/implementations/python/packages/aces_backend_protocols/participant_runtime_base.py b/implementations/python/packages/raes_backend_protocols/participant_runtime_base.py similarity index 98% rename from implementations/python/packages/aces_backend_protocols/participant_runtime_base.py rename to implementations/python/packages/raes_backend_protocols/participant_runtime_base.py index 581916c60..9d6b83216 100644 --- a/implementations/python/packages/aces_backend_protocols/participant_runtime_base.py +++ b/implementations/python/packages/raes_backend_protocols/participant_runtime_base.py @@ -1,4 +1,4 @@ -"""Shared participant episode lifecycle base for ACES backends. +"""Shared participant episode lifecycle base for RAES backends. Provides ``BaseParticipantRuntime``, which implements the complete RUN-311 episode state machine. Backend-specific runtimes subclass this and override @@ -11,15 +11,15 @@ from dataclasses import replace from datetime import UTC, datetime -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.participant_binding import ( +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.participant_binding import ( ParticipantActionAdmissionRequest, ParticipantActionApplyResult, ParticipantNativeActionExecution, participant_action_binding_events, participant_behavior_event_payload, ) -from aces_contracts.participant_episode import ( +from raes_contracts.participant_episode import ( ParticipantEpisodeControlAction, ParticipantEpisodeExecutionState, ParticipantEpisodeHistoryEvent, @@ -31,7 +31,7 @@ ParticipantEpisodeTerminalReason, ParticipantEpisodeTerminateRequest, ) -from aces_contracts.runtime_state import ApplyResult, RuntimeSnapshot +from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot from .participant_action_commit import ( as_participant_action_result, @@ -55,7 +55,7 @@ def _now_iso() -> str: class BaseParticipantRuntime: - """Shared RUN-311 episode lifecycle base for ACES participant runtimes. + """Shared RUN-311 episode lifecycle base for RAES participant runtimes. Implements the full episode state machine (initialize, reset, restart, terminate, admit_action) using the RUN-311 invariants that diff --git a/implementations/python/packages/aces_backend_protocols/protocols.py b/implementations/python/packages/raes_backend_protocols/protocols.py similarity index 95% rename from implementations/python/packages/aces_backend_protocols/protocols.py rename to implementations/python/packages/raes_backend_protocols/protocols.py index 17f4f79d0..e02da65fc 100644 --- a/implementations/python/packages/aces_backend_protocols/protocols.py +++ b/implementations/python/packages/raes_backend_protocols/protocols.py @@ -4,20 +4,20 @@ from typing import TYPE_CHECKING, Protocol -from aces_contracts.contracts import ParticipantTemporalRuntimeContextModel -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.participant_binding import ParticipantActionAdmissionRequest, ParticipantActionApplyResult -from aces_contracts.participant_episode import ( +from raes_contracts.contracts import ParticipantTemporalRuntimeContextModel +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.participant_binding import ParticipantActionAdmissionRequest, ParticipantActionApplyResult +from raes_contracts.participant_episode import ( ParticipantEpisodeInitializeRequest, ParticipantEpisodeResetRequest, ParticipantEpisodeRestartRequest, ParticipantEpisodeTerminateRequest, ) -from aces_contracts.planning import EvaluationPlan, OrchestrationPlan, ProvisioningPlan -from aces_contracts.runtime_state import ApplyResult, RuntimeSnapshot +from raes_contracts.planning import EvaluationPlan, OrchestrationPlan, ProvisioningPlan +from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot if TYPE_CHECKING: - from aces_contracts.contracts.time_model import TimeModelDeclarationModel, TimeRuntimeStateModel + from raes_contracts.contracts.time_model import TimeModelDeclarationModel, TimeRuntimeStateModel class Provisioner(Protocol): diff --git a/implementations/python/packages/aces_backend_protocols/provisioner_capabilities.py b/implementations/python/packages/raes_backend_protocols/provisioner_capabilities.py similarity index 98% rename from implementations/python/packages/aces_backend_protocols/provisioner_capabilities.py rename to implementations/python/packages/raes_backend_protocols/provisioner_capabilities.py index e08ca8e7c..44d3f1443 100644 --- a/implementations/python/packages/aces_backend_protocols/provisioner_capabilities.py +++ b/implementations/python/packages/raes_backend_protocols/provisioner_capabilities.py @@ -2,7 +2,7 @@ from dataclasses import dataclass, field -from aces_contracts.controlled_vocabularies import validate_controlled_vocabulary_scope_values +from raes_contracts.controlled_vocabularies import validate_controlled_vocabulary_scope_values PROVISIONER_DOMAIN_PROFILE_SCOPE = "capabilities.provisioner.supported_domain_profiles" PROVISIONER_SERVICE_MATERIALIZATION_PROFILE_SCOPE = ( diff --git a/implementations/python/packages/aces_backend_protocols/service_materialization.py b/implementations/python/packages/raes_backend_protocols/service_materialization.py similarity index 97% rename from implementations/python/packages/aces_backend_protocols/service_materialization.py rename to implementations/python/packages/raes_backend_protocols/service_materialization.py index 86d3754fc..a30fb0f64 100644 --- a/implementations/python/packages/aces_backend_protocols/service_materialization.py +++ b/implementations/python/packages/raes_backend_protocols/service_materialization.py @@ -5,10 +5,10 @@ import re from collections.abc import Mapping, Sequence -from aces_contracts.addressing import require_compiled_address -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.planning import ChangeAction, ProvisioningPlan -from aces_contracts.realization_envelope import ( +from raes_contracts.addressing import require_compiled_address +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.planning import ChangeAction, ProvisioningPlan +from raes_contracts.realization_envelope import ( BackendRealizationEnvelopeModel, ConcernDisposition, ObservationStrength, diff --git a/implementations/python/packages/aces_backend_protocols/time_capabilities.py b/implementations/python/packages/raes_backend_protocols/time_capabilities.py similarity index 98% rename from implementations/python/packages/aces_backend_protocols/time_capabilities.py rename to implementations/python/packages/raes_backend_protocols/time_capabilities.py index e3f3b3528..21c8d6e68 100644 --- a/implementations/python/packages/aces_backend_protocols/time_capabilities.py +++ b/implementations/python/packages/raes_backend_protocols/time_capabilities.py @@ -4,7 +4,7 @@ from dataclasses import dataclass, field -from aces_contracts.manifest_authority import validate_backend_supported_contract_versions +from raes_contracts.manifest_authority import validate_backend_supported_contract_versions TIME_CAPABILITY_REQUIRED_CONTRACTS = frozenset( { diff --git a/implementations/python/packages/raes_backend_stubs/__init__.py b/implementations/python/packages/raes_backend_stubs/__init__.py new file mode 100644 index 000000000..275984884 --- /dev/null +++ b/implementations/python/packages/raes_backend_stubs/__init__.py @@ -0,0 +1 @@ +"""Reference and test backends for RAES SDL.""" diff --git a/implementations/python/packages/aces_backend_stubs/evaluation_support.py b/implementations/python/packages/raes_backend_stubs/evaluation_support.py similarity index 94% rename from implementations/python/packages/aces_backend_stubs/evaluation_support.py rename to implementations/python/packages/raes_backend_stubs/evaluation_support.py index a34ff4581..67291e247 100644 --- a/implementations/python/packages/aces_backend_stubs/evaluation_support.py +++ b/implementations/python/packages/raes_backend_stubs/evaluation_support.py @@ -1,8 +1,8 @@ """Evaluation-operation support for the in-memory reference stub.""" -from aces_contracts.planning import ChangeAction, EvaluationOp, RuntimeDomain -from aces_contracts.runtime_state import SnapshotEntry -from aces_contracts.versions import EVALUATION_STATE_SCHEMA_VERSION +from raes_contracts.planning import ChangeAction, EvaluationOp, RuntimeDomain +from raes_contracts.runtime_state import SnapshotEntry +from raes_contracts.versions import EVALUATION_STATE_SCHEMA_VERSION def _result_payload(op: EvaluationOp, now: str) -> dict[str, object]: diff --git a/implementations/python/packages/aces_backend_stubs/manifest.py b/implementations/python/packages/raes_backend_stubs/manifest.py similarity index 96% rename from implementations/python/packages/aces_backend_stubs/manifest.py rename to implementations/python/packages/raes_backend_stubs/manifest.py index b00c97f86..9c328706d 100644 --- a/implementations/python/packages/aces_backend_stubs/manifest.py +++ b/implementations/python/packages/raes_backend_stubs/manifest.py @@ -3,13 +3,13 @@ This module holds the stub backend's :class:`BackendManifest` factory and its supporting constants, separated from ``stubs.py`` so callers that only need the capability *declaration* -- authoring/inspection surfaces such as the -``aces processor plan`` CLI and the MCP dry-run planning tools -- can import the +``raes processor plan`` CLI and the MCP dry-run planning tools -- can import the manifest without dragging the live stub runtime components (and their -``aces_runtime`` dependency) into the process. It imports only the -capability/contract declaration layers; nothing here touches ``aces_runtime``. +``raes_runtime`` dependency) into the process. It imports only the +capability/contract declaration layers; nothing here touches ``raes_runtime``. ``stubs.py`` re-exports :func:`create_stub_manifest` and the ``REFERENCE_*`` -constants so its historical public surface is unchanged. +constants as the package's public surface. """ from __future__ import annotations @@ -17,7 +17,7 @@ from importlib.metadata import PackageNotFoundError from importlib.metadata import version as distribution_version -from aces_backend_protocols.capabilities import ( +from raes_backend_protocols.capabilities import ( CLEANUP_CAPABILITY_REQUIRED_CONTRACTS, PARTICIPANT_RUNTIME_BEHAVIOR_FEATURE_SCOPE, PARTICIPANT_RUNTIME_CAPABILITY_REQUIRED_CONTRACTS, @@ -36,9 +36,9 @@ WorkflowFeature, WorkflowStatePredicateFeature, ) -from aces_contracts.apparatus import ConceptBinding, RealizationSupportDeclaration -from aces_contracts.manifest_authority import BACKEND_SUPPORTED_CONTRACT_IDS -from aces_contracts.vocabulary import RealizationSupportMode +from raes_contracts.apparatus import ConceptBinding, RealizationSupportDeclaration +from raes_contracts.manifest_authority import BACKEND_SUPPORTED_CONTRACT_IDS +from raes_contracts.vocabulary import RealizationSupportMode REFERENCE_BACKEND_SUPPORTED_CONTRACT_VERSIONS = frozenset(BACKEND_SUPPORTED_CONTRACT_IDS) - {"realization-envelope-v1"} REFERENCE_PARTICIPANT_ROLES = frozenset( diff --git a/implementations/python/packages/aces_backend_stubs/stubs.py b/implementations/python/packages/raes_backend_stubs/stubs.py similarity index 96% rename from implementations/python/packages/aces_backend_stubs/stubs.py rename to implementations/python/packages/raes_backend_stubs/stubs.py index 2e225470b..9ff1a538f 100644 --- a/implementations/python/packages/aces_backend_stubs/stubs.py +++ b/implementations/python/packages/raes_backend_stubs/stubs.py @@ -2,12 +2,12 @@ from datetime import UTC, datetime -from aces_backend_protocols.capabilities import BackendManifest -from aces_backend_protocols.participant_runtime_base import BaseParticipantRuntime -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.planning import ChangeAction, EvaluationPlan, OrchestrationPlan, ProvisioningPlan, RuntimeDomain -from aces_contracts.runtime_state import ApplyResult, RuntimeSnapshot, SnapshotEntry -from aces_runtime.registry import ReferenceTimeRuntime, RuntimeTarget, RuntimeTargetComponents +from raes_backend_protocols.capabilities import BackendManifest +from raes_backend_protocols.participant_runtime_base import BaseParticipantRuntime +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.planning import ChangeAction, EvaluationPlan, OrchestrationPlan, ProvisioningPlan, RuntimeDomain +from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot, SnapshotEntry +from raes_runtime.registry import ReferenceTimeRuntime, RuntimeTarget, RuntimeTargetComponents from .evaluation_support import apply_evaluation_operation from .manifest import ( diff --git a/implementations/python/packages/aces_cli/__init__.py b/implementations/python/packages/raes_cli/__init__.py similarity index 100% rename from implementations/python/packages/aces_cli/__init__.py rename to implementations/python/packages/raes_cli/__init__.py diff --git a/implementations/python/packages/aces_cli/conformance.py b/implementations/python/packages/raes_cli/conformance.py similarity index 87% rename from implementations/python/packages/aces_cli/conformance.py rename to implementations/python/packages/raes_cli/conformance.py index 5b7c560fe..11fdb47dc 100644 --- a/implementations/python/packages/aces_cli/conformance.py +++ b/implementations/python/packages/raes_cli/conformance.py @@ -1,10 +1,4 @@ -"""Backend conformance commands. - -Exposes ``aces conformance backend`` as the canonical CLI surface for the -backend conformance fixture suite. The legacy ``aces_conformance.runner`` -module remains as a thin delegate for back-compat callers -(``python -m aces_conformance.runner``). -""" +"""Backend conformance commands exposed through ``raes conformance backend``.""" from __future__ import annotations @@ -12,7 +6,7 @@ from pathlib import Path import typer -from aces_conformance.conformance import ( +from raes_conformance.conformance import ( BackendCapabilityProfile, BackendConformanceReport, backend_conformance_report_payload, diff --git a/implementations/python/packages/aces_cli/corpus.py b/implementations/python/packages/raes_cli/corpus.py similarity index 97% rename from implementations/python/packages/aces_cli/corpus.py rename to implementations/python/packages/raes_cli/corpus.py index b5c11f403..93b638b53 100644 --- a/implementations/python/packages/aces_cli/corpus.py +++ b/implementations/python/packages/raes_cli/corpus.py @@ -6,7 +6,7 @@ from pathlib import Path import typer -from aces_operations.cross_backend_corpus import ( +from raes_operations.cross_backend_corpus import ( CrossBackendCorpusConfig, build_cross_backend_corpus, write_cross_backend_corpus_artifact, diff --git a/implementations/python/packages/aces_cli/libvirt.py b/implementations/python/packages/raes_cli/libvirt.py similarity index 98% rename from implementations/python/packages/aces_cli/libvirt.py rename to implementations/python/packages/raes_cli/libvirt.py index 266b215f9..818ae8d50 100644 --- a/implementations/python/packages/aces_cli/libvirt.py +++ b/implementations/python/packages/raes_cli/libvirt.py @@ -7,8 +7,8 @@ from urllib.parse import urlsplit import typer -from aces_operations.libvirt_evidence_run import LibvirtEvidenceRunConfig, run_libvirt_evidence_run -from aces_operations.techvault_live import TechVaultLiveConfig, validate_techvault_live +from raes_operations.libvirt_evidence_run import LibvirtEvidenceRunConfig, run_libvirt_evidence_run +from raes_operations.techvault_live import TechVaultLiveConfig, validate_techvault_live _DEFAULT_CONNECTION_URI = "qemu:///system" diff --git a/implementations/python/packages/aces_cli/main.py b/implementations/python/packages/raes_cli/main.py similarity index 94% rename from implementations/python/packages/aces_cli/main.py rename to implementations/python/packages/raes_cli/main.py index 36e405846..273423fc3 100644 --- a/implementations/python/packages/aces_cli/main.py +++ b/implementations/python/packages/raes_cli/main.py @@ -4,7 +4,7 @@ import typer -from aces_cli import conformance, corpus, libvirt, processor, sdl +from raes_cli import conformance, corpus, libvirt, processor, sdl app = typer.Typer( name="raes", diff --git a/implementations/python/packages/aces_cli/processor.py b/implementations/python/packages/raes_cli/processor.py similarity index 94% rename from implementations/python/packages/aces_cli/processor.py rename to implementations/python/packages/raes_cli/processor.py index e12026894..6ffecb1de 100644 --- a/implementations/python/packages/aces_cli/processor.py +++ b/implementations/python/packages/raes_cli/processor.py @@ -8,30 +8,30 @@ from typing import Any import typer -from aces_backend_protocols.manifest import ( +from raes_backend_protocols.manifest import ( BackendManifest, BackendManifestEnvelopeUnsupportedError, backend_manifest_from_v2_model, ) -from aces_backend_stubs.manifest import create_stub_manifest -from aces_contracts.contracts import BackendManifestV2Model -from aces_contracts.diagnostics import diagnostic_payload -from aces_contracts.plan_projection import ( +from raes_backend_stubs.manifest import create_stub_manifest +from raes_contracts.contracts import BackendManifestV2Model +from raes_contracts.diagnostics import diagnostic_payload +from raes_contracts.plan_projection import ( evaluation_plan_model, orchestration_plan_model, provisioning_plan_model, ) -from aces_processor.exploit_path import ( +from raes_processor.exploit_path import ( ANALYSIS_PROFILE as EXPLOIT_PATH_ANALYSIS_PROFILE, ) -from aces_processor.exploit_path import ( +from raes_processor.exploit_path import ( ExploitPathOperationalError, analyze_exploit_path_file, ) -from aces_processor.manifest import reference_processor_manifest_payload -from aces_processor.models import ExecutionPlan -from aces_processor.reference import run_reference_processor -from aces_processor.satisfiability import ( +from raes_processor.manifest import reference_processor_manifest_payload +from raes_processor.models import ExecutionPlan +from raes_processor.reference import run_reference_processor +from raes_processor.satisfiability import ( ANALYSIS_PROFILE, SatisfiabilityOperationalError, analyze_scenario_file, diff --git a/implementations/python/packages/aces_cli/sdl.py b/implementations/python/packages/raes_cli/sdl.py similarity index 98% rename from implementations/python/packages/aces_cli/sdl.py rename to implementations/python/packages/raes_cli/sdl.py index 87f6072ee..e4be9a443 100644 --- a/implementations/python/packages/aces_cli/sdl.py +++ b/implementations/python/packages/raes_cli/sdl.py @@ -81,7 +81,7 @@ def verify_imports( """Verify lockfile, trust policy, and import expansion.""" existing = load_lockfile(path.parent) if existing is None: - raise typer.BadParameter(f"No {LOCKFILE_NAME} found next to {path}; run `aces sdl resolve` first.") + raise typer.BadParameter(f"No {LOCKFILE_NAME} found next to {path}; run `raes sdl resolve` first.") expected = resolve_lock_records(path) if expected.model_dump(mode="python") != existing.model_dump(mode="python"): raise typer.BadParameter("Import lockfile is stale or does not match current resolution.") diff --git a/implementations/python/packages/aces_conformance/__init__.py b/implementations/python/packages/raes_conformance/__init__.py similarity index 100% rename from implementations/python/packages/aces_conformance/__init__.py rename to implementations/python/packages/raes_conformance/__init__.py diff --git a/implementations/python/packages/aces_conformance/_realization_models.py b/implementations/python/packages/raes_conformance/_realization_models.py similarity index 94% rename from implementations/python/packages/aces_conformance/_realization_models.py rename to implementations/python/packages/raes_conformance/_realization_models.py index 667facc0c..fadfe991e 100644 --- a/implementations/python/packages/aces_conformance/_realization_models.py +++ b/implementations/python/packages/raes_conformance/_realization_models.py @@ -6,10 +6,10 @@ from enum import Enum from typing import Protocol -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.planning import ProvisioningPlan -from aces_contracts.realization_envelope import RealizationConcern -from aces_contracts.realization_observation import RealizationObservation +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.planning import ProvisioningPlan +from raes_contracts.realization_envelope import RealizationConcern +from raes_contracts.realization_observation import RealizationObservation class ExecutionBasis(str, Enum): diff --git a/implementations/python/packages/aces_conformance/_realization_validation.py b/implementations/python/packages/raes_conformance/_realization_validation.py similarity index 97% rename from implementations/python/packages/aces_conformance/_realization_validation.py rename to implementations/python/packages/raes_conformance/_realization_validation.py index cc0e7c1f2..ed82f29bd 100644 --- a/implementations/python/packages/aces_conformance/_realization_validation.py +++ b/implementations/python/packages/raes_conformance/_realization_validation.py @@ -2,15 +2,15 @@ from __future__ import annotations -from aces_contracts.diagnostics import Diagnostic, Severity -from aces_contracts.planning import ProvisioningPlan -from aces_contracts.realization_envelope import ( +from raes_contracts.diagnostics import Diagnostic, Severity +from raes_contracts.planning import ProvisioningPlan +from raes_contracts.realization_envelope import ( BackendRealizationEnvelopeModel, ConcernDisposition, ObservationStrength, RealizationConcern, ) -from aces_contracts.realization_observation import RealizationObservation +from raes_contracts.realization_observation import RealizationObservation from ._realization_models import ( ExpectedRealizationObservation, diff --git a/implementations/python/packages/aces_conformance/conformance/__init__.py b/implementations/python/packages/raes_conformance/conformance/__init__.py similarity index 70% rename from implementations/python/packages/aces_conformance/conformance/__init__.py rename to implementations/python/packages/raes_conformance/conformance/__init__.py index 07f4b73b6..a22c40698 100644 --- a/implementations/python/packages/aces_conformance/conformance/__init__.py +++ b/implementations/python/packages/raes_conformance/conformance/__init__.py @@ -7,36 +7,36 @@ from __future__ import annotations -from aces_conformance.conformance.fixture_suite import run_fixture_suite -from aces_conformance.conformance.observability import ( +from raes_conformance.conformance.fixture_suite import run_fixture_suite +from raes_conformance.conformance.observability import ( observability_evidence_conformance_diagnostics, ) -from aces_conformance.conformance.profiles import ( +from raes_conformance.conformance.profiles import ( BackendCapabilityProfile, BackendProfileSelector, fixtures_root, profiles_root, required_contracts, ) -from aces_conformance.conformance.report import ( +from raes_conformance.conformance.report import ( BackendConformanceReport, ConformanceCaseResult, backend_conformance_report_payload, ) -from aces_conformance.conformance.semantics import ( +from raes_conformance.conformance.semantics import ( _fixture_case_diagnostics as _fixture_case_diagnostics, ) -from aces_conformance.conformance.semantics import ( +from raes_conformance.conformance.semantics import ( _semantic_diagnostics as _semantic_diagnostics, ) -from aces_conformance.conformance.target import profile_for_manifest, run_target_conformance -from aces_conformance.conformance.validators import ( +from raes_conformance.conformance.target import profile_for_manifest, run_target_conformance +from raes_conformance.conformance.validators import ( _MODEL_VALIDATORS as _MODEL_VALIDATORS, ) -from aces_conformance.conformance.validators import ( +from raes_conformance.conformance.validators import ( _validate_payload as _validate_payload, ) -from aces_conformance.conformance.validators import ( +from raes_conformance.conformance.validators import ( validate_contract_payload, ) diff --git a/implementations/python/packages/aces_conformance/conformance/diagnostics.py b/implementations/python/packages/raes_conformance/conformance/diagnostics.py similarity index 94% rename from implementations/python/packages/aces_conformance/conformance/diagnostics.py rename to implementations/python/packages/raes_conformance/conformance/diagnostics.py index 03b5fb49b..e8b6f6527 100644 --- a/implementations/python/packages/aces_conformance/conformance/diagnostics.py +++ b/implementations/python/packages/raes_conformance/conformance/diagnostics.py @@ -5,7 +5,7 @@ import json from pathlib import Path -from aces_contracts.diagnostics import Diagnostic, Severity +from raes_contracts.diagnostics import Diagnostic, Severity _SEMANTIC_INVALID_DIAGNOSTIC_CODE = "conformance.semantic-invalid" _OBSERVABILITY_EVIDENCE_INVALID_DIAGNOSTIC_CODE = "conformance.observability-evidence-invalid" diff --git a/implementations/python/packages/aces_conformance/conformance/fixture_suite.py b/implementations/python/packages/raes_conformance/conformance/fixture_suite.py similarity index 91% rename from implementations/python/packages/aces_conformance/conformance/fixture_suite.py rename to implementations/python/packages/raes_conformance/conformance/fixture_suite.py index d8be2a716..77e54fc2e 100644 --- a/implementations/python/packages/aces_conformance/conformance/fixture_suite.py +++ b/implementations/python/packages/raes_conformance/conformance/fixture_suite.py @@ -4,23 +4,23 @@ from pathlib import Path -from aces_contracts.contracts import schema_bundle -from aces_contracts.diagnostics import Diagnostic +from raes_contracts.contracts import schema_bundle +from raes_contracts.diagnostics import Diagnostic -from aces_conformance.conformance.diagnostics import _diagnostic, _load_json -from aces_conformance.conformance.profiles import ( +from raes_conformance.conformance.diagnostics import _diagnostic, _load_json +from raes_conformance.conformance.profiles import ( BackendProfileSelector, _fixture_contract_root, _resolve_required_contracts, _to_profile_id, fixtures_root, ) -from aces_conformance.conformance.report import ( +from raes_conformance.conformance.report import ( BackendConformanceReport, ConformanceCaseResult, _bounded_conformance_claim, ) -from aces_conformance.conformance.semantics import _fixture_case_diagnostics +from raes_conformance.conformance.semantics import _fixture_case_diagnostics def run_fixture_suite( diff --git a/implementations/python/packages/aces_conformance/conformance/observability.py b/implementations/python/packages/raes_conformance/conformance/observability.py similarity index 96% rename from implementations/python/packages/aces_conformance/conformance/observability.py rename to implementations/python/packages/raes_conformance/conformance/observability.py index 2913864b6..f90c668a1 100644 --- a/implementations/python/packages/aces_conformance/conformance/observability.py +++ b/implementations/python/packages/raes_conformance/conformance/observability.py @@ -5,10 +5,10 @@ from collections.abc import Mapping from typing import Any -from aces_contracts.contracts import ExperimentRunModel -from aces_contracts.diagnostics import Diagnostic +from raes_contracts.contracts import ExperimentRunModel +from raes_contracts.diagnostics import Diagnostic -from aces_conformance.conformance.diagnostics import ( +from raes_conformance.conformance.diagnostics import ( _OBSERVABILITY_EVIDENCE_INVALID_DIAGNOSTIC_CODE, _diagnostic, ) diff --git a/implementations/python/packages/aces_conformance/conformance/profiles.py b/implementations/python/packages/raes_conformance/conformance/profiles.py similarity index 97% rename from implementations/python/packages/aces_conformance/conformance/profiles.py rename to implementations/python/packages/raes_conformance/conformance/profiles.py index f36146166..4bd8a2b32 100644 --- a/implementations/python/packages/aces_conformance/conformance/profiles.py +++ b/implementations/python/packages/raes_conformance/conformance/profiles.py @@ -6,17 +6,17 @@ from enum import Enum from pathlib import Path -from aces_contracts.backend_profiles import ( +from raes_contracts.backend_profiles import ( BackendProfileModel, backend_profile_path, backend_profiles_root, load_backend_profile_from_path, ) -from aces_contracts.corpus import FIXTURES, corpus_family_root -from aces_contracts.diagnostics import Diagnostic +from raes_contracts.corpus import FIXTURES, corpus_family_root +from raes_contracts.diagnostics import Diagnostic from pydantic import ValidationError -from aces_conformance.conformance.diagnostics import _diagnostic +from raes_conformance.conformance.diagnostics import _diagnostic class BackendCapabilityProfile(str, Enum): diff --git a/implementations/python/packages/aces_conformance/conformance/report.py b/implementations/python/packages/raes_conformance/conformance/report.py similarity index 95% rename from implementations/python/packages/aces_conformance/conformance/report.py rename to implementations/python/packages/raes_conformance/conformance/report.py index 8d00fbc87..7a810e73e 100644 --- a/implementations/python/packages/aces_conformance/conformance/report.py +++ b/implementations/python/packages/raes_conformance/conformance/report.py @@ -4,12 +4,12 @@ from dataclasses import dataclass, field -from aces_contracts.behavioral_relations import validate_behavioral_claim_binding -from aces_contracts.contracts import BehavioralClaimBindingModel -from aces_contracts.diagnostics import Diagnostic +from raes_contracts.behavioral_relations import validate_behavioral_claim_binding +from raes_contracts.contracts import BehavioralClaimBindingModel +from raes_contracts.diagnostics import Diagnostic -from aces_conformance.conformance.diagnostics import _diagnostic_payload -from aces_conformance.realization import ExecutionBasis +from raes_conformance.conformance.diagnostics import _diagnostic_payload +from raes_conformance.realization import ExecutionBasis @dataclass(frozen=True) diff --git a/implementations/python/packages/aces_conformance/conformance/semantics.py b/implementations/python/packages/raes_conformance/conformance/semantics.py similarity index 90% rename from implementations/python/packages/aces_conformance/conformance/semantics.py rename to implementations/python/packages/raes_conformance/conformance/semantics.py index a59c2e1cc..a7f43653d 100644 --- a/implementations/python/packages/aces_conformance/conformance/semantics.py +++ b/implementations/python/packages/raes_conformance/conformance/semantics.py @@ -4,22 +4,22 @@ from collections.abc import Callable -from aces_contracts.diagnostics import Diagnostic, Severity -from aces_contracts.evaluation import EvaluationExecutionState -from aces_contracts.participant_episode import ( +from raes_contracts.diagnostics import Diagnostic, Severity +from raes_contracts.evaluation import EvaluationExecutionState +from raes_contracts.participant_episode import ( ParticipantEpisodeExecutionState, ParticipantEpisodeHistoryEvent, ) -from aces_contracts.workflow import WorkflowExecutionState -from aces_processor.models import ParticipantBehaviorHistoryEvent +from raes_contracts.workflow import WorkflowExecutionState +from raes_processor.models import ParticipantBehaviorHistoryEvent -from aces_conformance.conformance.diagnostics import _SEMANTIC_INVALID_DIAGNOSTIC_CODE, _diagnostic -from aces_conformance.conformance.observability import observability_evidence_conformance_diagnostics -from aces_conformance.conformance.snapshot_semantics import ( +from raes_conformance.conformance.diagnostics import _SEMANTIC_INVALID_DIAGNOSTIC_CODE, _diagnostic +from raes_conformance.conformance.observability import observability_evidence_conformance_diagnostics +from raes_conformance.conformance.snapshot_semantics import ( _participant_behavior_history_diagnostics, _runtime_snapshot_semantic_diagnostics, ) -from aces_conformance.conformance.validators import _SEMANTIC_CONTEXT_REQUIRED_CONTRACTS, _validate_payload +from raes_conformance.conformance.validators import _SEMANTIC_CONTEXT_REQUIRED_CONTRACTS, _validate_payload def _state_semantic_diagnostics( diff --git a/implementations/python/packages/aces_conformance/conformance/snapshot_semantics.py b/implementations/python/packages/raes_conformance/conformance/snapshot_semantics.py similarity index 96% rename from implementations/python/packages/aces_conformance/conformance/snapshot_semantics.py rename to implementations/python/packages/raes_conformance/conformance/snapshot_semantics.py index c7b7c0b36..0702276ef 100644 --- a/implementations/python/packages/aces_conformance/conformance/snapshot_semantics.py +++ b/implementations/python/packages/raes_conformance/conformance/snapshot_semantics.py @@ -5,30 +5,30 @@ from collections.abc import Mapping from typing import Any -from aces_contracts.contracts import RuntimeSnapshotEnvelopeModel -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.participant_autonomous_state import ( +from raes_contracts.contracts import RuntimeSnapshotEnvelopeModel +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.participant_autonomous_state import ( iter_participant_autonomous_runtime_snapshot_violations, iter_participant_autonomous_state_snapshot_violations, ) -from aces_contracts.participant_concurrency import iter_participant_concurrency_snapshot_violations -from aces_contracts.participant_episode import iter_participant_episode_snapshot_violations -from aces_contracts.participant_shared_state import iter_participant_shared_state_snapshot_violations -from aces_contracts.planning import RuntimeDomain -from aces_contracts.runtime_state import RuntimeSnapshot, SnapshotEntry -from aces_processor.models import ( +from raes_contracts.participant_concurrency import iter_participant_concurrency_snapshot_violations +from raes_contracts.participant_episode import iter_participant_episode_snapshot_violations +from raes_contracts.participant_shared_state import iter_participant_shared_state_snapshot_violations +from raes_contracts.planning import RuntimeDomain +from raes_contracts.runtime_state import RuntimeSnapshot, SnapshotEntry +from raes_processor.models import ( ParticipantActionContractRuntime, ParticipantHistoryAddressScope, ParticipantObservationBoundaryRuntime, iter_participant_behavior_history_violations, iter_participant_behavior_joint_action_violations, ) -from aces_runtime.result_contracts import ( +from raes_runtime.result_contracts import ( evaluation_result_contract_diagnostics, workflow_result_contract_diagnostics, ) -from aces_conformance.conformance.diagnostics import _SEMANTIC_INVALID_DIAGNOSTIC_CODE, _diagnostic +from raes_conformance.conformance.diagnostics import _SEMANTIC_INVALID_DIAGNOSTIC_CODE, _diagnostic def _snapshot_from_envelope(payload: dict[str, Any]) -> RuntimeSnapshot: diff --git a/implementations/python/packages/aces_conformance/conformance/target.py b/implementations/python/packages/raes_conformance/conformance/target.py similarity index 95% rename from implementations/python/packages/aces_conformance/conformance/target.py rename to implementations/python/packages/raes_conformance/conformance/target.py index 6d54cb0a2..49745ebaf 100644 --- a/implementations/python/packages/aces_conformance/conformance/target.py +++ b/implementations/python/packages/raes_conformance/conformance/target.py @@ -6,33 +6,33 @@ from pathlib import Path from typing import Any -from aces_backend_protocols.capabilities import ( +from raes_backend_protocols.capabilities import ( BackendManifest, observation_capability_contract_gaps, participant_runtime_capability_contract_gaps, time_capability_contract_gaps, ) -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.realization_envelope import BackendRealizationEnvelopeModel -from aces_processor.reference import ScenarioInput -from aces_runtime.registry import RuntimeTarget - -from aces_conformance.conformance.diagnostics import _diagnostic -from aces_conformance.conformance.fixture_suite import run_fixture_suite -from aces_conformance.conformance.profiles import ( +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.realization_envelope import BackendRealizationEnvelopeModel +from raes_processor.reference import ScenarioInput +from raes_runtime.registry import RuntimeTarget + +from raes_conformance.conformance.diagnostics import _diagnostic +from raes_conformance.conformance.fixture_suite import run_fixture_suite +from raes_conformance.conformance.profiles import ( BackendCapabilityProfile, BackendProfileSelector, _resolve_required_contracts, _to_known_profile, _to_profile_id, ) -from aces_conformance.conformance.report import ( +from raes_conformance.conformance.report import ( BackendConformanceReport, ConformanceCaseResult, _bounded_conformance_claim, ) -from aces_conformance.conformance.target_probes import _target_adapter_cases -from aces_conformance.realization import ( +from raes_conformance.conformance.target_probes import _target_adapter_cases +from raes_conformance.realization import ( ExecutionBasis, RealizationConformanceHarness, RealizationProbeCase, diff --git a/implementations/python/packages/aces_conformance/conformance/target_probes.py b/implementations/python/packages/raes_conformance/conformance/target_probes.py similarity index 95% rename from implementations/python/packages/aces_conformance/conformance/target_probes.py rename to implementations/python/packages/raes_conformance/conformance/target_probes.py index 2f4ffec63..b2d3b7e1f 100644 --- a/implementations/python/packages/aces_conformance/conformance/target_probes.py +++ b/implementations/python/packages/raes_conformance/conformance/target_probes.py @@ -5,27 +5,27 @@ from textwrap import dedent from typing import Any -from aces_backend_protocols.manifest import backend_manifest_payload -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.participant_episode import ( +from raes_backend_protocols.manifest import backend_manifest_payload +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.participant_episode import ( ParticipantEpisodeTerminalReason, iter_participant_episode_snapshot_violations, ) -from aces_contracts.planning import ProvisioningPlan, RuntimeDomain -from aces_contracts.runtime_state import RuntimeSnapshotEnvelope -from aces_processor.reference import ScenarioInput, run_reference_processor -from aces_runtime.control_plane import RuntimeControlPlane -from aces_runtime.registry import RuntimeTarget - -from aces_conformance.conformance.diagnostics import _SEMANTIC_INVALID_DIAGNOSTIC_CODE, _diagnostic -from aces_conformance.conformance.profiles import ( +from raes_contracts.planning import ProvisioningPlan, RuntimeDomain +from raes_contracts.runtime_state import RuntimeSnapshotEnvelope +from raes_processor.reference import ScenarioInput, run_reference_processor +from raes_runtime.control_plane import RuntimeControlPlane +from raes_runtime.registry import RuntimeTarget + +from raes_conformance.conformance.diagnostics import _SEMANTIC_INVALID_DIAGNOSTIC_CODE, _diagnostic +from raes_conformance.conformance.profiles import ( BackendCapabilityProfile, BackendProfileSelector, _to_known_profile, ) -from aces_conformance.conformance.report import ConformanceCaseResult -from aces_conformance.conformance.semantics import _semantic_diagnostics -from aces_conformance.conformance.validators import _validate_payload +from raes_conformance.conformance.report import ConformanceCaseResult +from raes_conformance.conformance.semantics import _semantic_diagnostics +from raes_conformance.conformance.validators import _validate_payload # Default reference scenario the target-conformance adapter probe drives when the # caller supplies none. Backend-neutral: a single generic linux vm node. diff --git a/implementations/python/packages/aces_conformance/conformance/validators.py b/implementations/python/packages/raes_conformance/conformance/validators.py similarity index 94% rename from implementations/python/packages/aces_conformance/conformance/validators.py rename to implementations/python/packages/raes_conformance/conformance/validators.py index 5a229dcff..3477dfcc2 100644 --- a/implementations/python/packages/aces_conformance/conformance/validators.py +++ b/implementations/python/packages/raes_conformance/conformance/validators.py @@ -2,8 +2,8 @@ from __future__ import annotations -from aces_contracts.behavioral_relations import BehavioralRelationCatalogModel -from aces_contracts.contracts import ( +from raes_contracts.behavioral_relations import BehavioralRelationCatalogModel +from raes_contracts.contracts import ( AssociatedArtifactManifestModel, BackendManifestV2Model, EvaluationHistoryEventModel, @@ -34,15 +34,15 @@ WorkflowExecutionStateModel, WorkflowHistoryEventModel, ) -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.realization_envelope import BackendRealizationEnvelopeModel -from aces_contracts.scientific_completeness import ( +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.realization_envelope import BackendRealizationEnvelopeModel +from raes_contracts.scientific_completeness import ( ScientificCompletenessAssessmentModel, ScientificCompletenessTaxonomyModel, ) -from aces_contracts.validation_profiles import ValidationProfileCatalogModel +from raes_contracts.validation_profiles import ValidationProfileCatalogModel -from aces_conformance.conformance.diagnostics import _diagnostic +from raes_conformance.conformance.diagnostics import _diagnostic _SCHEMA_INVALID_DIAGNOSTIC_CODE = "conformance.schema-invalid" diff --git a/implementations/python/packages/aces_conformance/realization.py b/implementations/python/packages/raes_conformance/realization.py similarity index 98% rename from implementations/python/packages/aces_conformance/realization.py rename to implementations/python/packages/raes_conformance/realization.py index 3fe0f618e..f8c4a8db3 100644 --- a/implementations/python/packages/aces_conformance/realization.py +++ b/implementations/python/packages/raes_conformance/realization.py @@ -6,10 +6,10 @@ import json from dataclasses import dataclass -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.realization_envelope import BackendRealizationEnvelopeModel -from aces_processor.reference import run_reference_processor -from aces_runtime.registry import RuntimeTarget +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.realization_envelope import BackendRealizationEnvelopeModel +from raes_processor.reference import run_reference_processor +from raes_runtime.registry import RuntimeTarget from raes.realization_envelope import ( NegativeProbe, PositiveProbe, diff --git a/implementations/python/packages/aces_conformance/time_semantics.py b/implementations/python/packages/raes_conformance/time_semantics.py similarity index 91% rename from implementations/python/packages/aces_conformance/time_semantics.py rename to implementations/python/packages/raes_conformance/time_semantics.py index 62b9bf48e..696eca44b 100644 --- a/implementations/python/packages/aces_conformance/time_semantics.py +++ b/implementations/python/packages/raes_conformance/time_semantics.py @@ -2,16 +2,16 @@ from __future__ import annotations -from aces_backend_protocols.backend_manifest import BackendManifest -from aces_backend_protocols.capability_admission import time_model_capability_gaps -from aces_contracts.contracts.time_model import ( +from raes_backend_protocols.backend_manifest import BackendManifest +from raes_backend_protocols.capability_admission import time_model_capability_gaps +from raes_contracts.contracts.time_model import ( RealizedTimeModelProvenanceModel, TimeModelDeclarationModel, TimeRuntimeStateModel, validate_realized_time_model, validate_time_runtime_state, ) -from aces_contracts.diagnostics import Diagnostic +from raes_contracts.diagnostics import Diagnostic def _time_diagnostic(code: str, address: str, message: str) -> Diagnostic: diff --git a/implementations/python/packages/raes_contracts/__init__.py b/implementations/python/packages/raes_contracts/__init__.py new file mode 100644 index 000000000..7f021b006 --- /dev/null +++ b/implementations/python/packages/raes_contracts/__init__.py @@ -0,0 +1 @@ +"""Neutral external contract surfaces for RAES.""" diff --git a/implementations/python/packages/aces_contracts/_base.py b/implementations/python/packages/raes_contracts/_base.py similarity index 83% rename from implementations/python/packages/aces_contracts/_base.py rename to implementations/python/packages/raes_contracts/_base.py index 52f180103..9f0396adb 100644 --- a/implementations/python/packages/aces_contracts/_base.py +++ b/implementations/python/packages/raes_contracts/_base.py @@ -1,4 +1,4 @@ -"""Dependency-neutral base primitives for closed ACES contracts.""" +"""Dependency-neutral base primitives for closed RAES contracts.""" from typing import Annotated diff --git a/implementations/python/packages/aces_contracts/_participant_behavior_types.py b/implementations/python/packages/raes_contracts/_participant_behavior_types.py similarity index 99% rename from implementations/python/packages/aces_contracts/_participant_behavior_types.py rename to implementations/python/packages/raes_contracts/_participant_behavior_types.py index 04ddcd921..d368b19fb 100644 --- a/implementations/python/packages/aces_contracts/_participant_behavior_types.py +++ b/implementations/python/packages/raes_contracts/_participant_behavior_types.py @@ -2,7 +2,7 @@ Split out of ``participant_behavior.py`` (file-size governance). The public enums are re-exported from ``participant_behavior``; importers should continue -to use ``aces_contracts.participant_behavior``. +to use ``raes_contracts.participant_behavior``. """ from __future__ import annotations diff --git a/implementations/python/packages/aces_contracts/_validation.py b/implementations/python/packages/raes_contracts/_validation.py similarity index 100% rename from implementations/python/packages/aces_contracts/_validation.py rename to implementations/python/packages/raes_contracts/_validation.py diff --git a/implementations/python/packages/aces_contracts/addressing.py b/implementations/python/packages/raes_contracts/addressing.py similarity index 100% rename from implementations/python/packages/aces_contracts/addressing.py rename to implementations/python/packages/raes_contracts/addressing.py diff --git a/implementations/python/packages/aces_contracts/apparatus.py b/implementations/python/packages/raes_contracts/apparatus.py similarity index 100% rename from implementations/python/packages/aces_contracts/apparatus.py rename to implementations/python/packages/raes_contracts/apparatus.py diff --git a/implementations/python/packages/aces_contracts/associated_artifacts.py b/implementations/python/packages/raes_contracts/associated_artifacts.py similarity index 100% rename from implementations/python/packages/aces_contracts/associated_artifacts.py rename to implementations/python/packages/raes_contracts/associated_artifacts.py diff --git a/implementations/python/packages/aces_contracts/backend_profiles.py b/implementations/python/packages/raes_contracts/backend_profiles.py similarity index 100% rename from implementations/python/packages/aces_contracts/backend_profiles.py rename to implementations/python/packages/raes_contracts/backend_profiles.py diff --git a/implementations/python/packages/aces_contracts/behavioral_relations.py b/implementations/python/packages/raes_contracts/behavioral_relations.py similarity index 100% rename from implementations/python/packages/aces_contracts/behavioral_relations.py rename to implementations/python/packages/raes_contracts/behavioral_relations.py diff --git a/implementations/python/packages/aces_contracts/bounded_domains.py b/implementations/python/packages/raes_contracts/bounded_domains.py similarity index 98% rename from implementations/python/packages/aces_contracts/bounded_domains.py rename to implementations/python/packages/raes_contracts/bounded_domains.py index a20d3c587..68138a79b 100644 --- a/implementations/python/packages/aces_contracts/bounded_domains.py +++ b/implementations/python/packages/raes_contracts/bounded_domains.py @@ -13,7 +13,7 @@ from pydantic import Field, model_validator -from aces_contracts._base import ContractModel, NonEmptyString +from raes_contracts._base import ContractModel, NonEmptyString __all__ = [ "BooleanDomain", diff --git a/implementations/python/packages/aces_contracts/contracts/__init__.py b/implementations/python/packages/raes_contracts/contracts/__init__.py similarity index 99% rename from implementations/python/packages/aces_contracts/contracts/__init__.py rename to implementations/python/packages/raes_contracts/contracts/__init__.py index 87c6e0d52..8fcfcc593 100644 --- a/implementations/python/packages/aces_contracts/contracts/__init__.py +++ b/implementations/python/packages/raes_contracts/contracts/__init__.py @@ -1,4 +1,4 @@ -"""Schema-first external contract models for ACES artifact boundaries.""" +"""Schema-first external contract models for RAES artifact boundaries.""" from __future__ import annotations diff --git a/implementations/python/packages/aces_contracts/contracts/_trial_cleanup_validation.py b/implementations/python/packages/raes_contracts/contracts/_trial_cleanup_validation.py similarity index 100% rename from implementations/python/packages/aces_contracts/contracts/_trial_cleanup_validation.py rename to implementations/python/packages/raes_contracts/contracts/_trial_cleanup_validation.py diff --git a/implementations/python/packages/aces_contracts/contracts/associated_artifacts.py b/implementations/python/packages/raes_contracts/contracts/associated_artifacts.py similarity index 99% rename from implementations/python/packages/aces_contracts/contracts/associated_artifacts.py rename to implementations/python/packages/raes_contracts/contracts/associated_artifacts.py index 57156570d..d167f757c 100644 --- a/implementations/python/packages/aces_contracts/contracts/associated_artifacts.py +++ b/implementations/python/packages/raes_contracts/contracts/associated_artifacts.py @@ -168,7 +168,7 @@ def __get_pydantic_json_schema__( "associated-artifact-parent-set-and-byte-binding", "Full conformance requires matching the concrete parent, recomputing the canonical set digest, " "and binding every checksum and size to an explicitly supplied bounded byte stream.", - validator="aces_contracts.associated_artifacts.validate_associated_artifact_manifest", + validator="raes_contracts.associated_artifacts.validate_associated_artifact_manifest", inputs=[{"contract_id": "associated-artifact-manifest-v1", "instance_path": "#"}], ) return json_schema diff --git a/implementations/python/packages/aces_contracts/contracts/base.py b/implementations/python/packages/raes_contracts/contracts/base.py similarity index 99% rename from implementations/python/packages/aces_contracts/contracts/base.py rename to implementations/python/packages/raes_contracts/contracts/base.py index 9c4b0ce41..ba1feeedb 100644 --- a/implementations/python/packages/aces_contracts/contracts/base.py +++ b/implementations/python/packages/raes_contracts/contracts/base.py @@ -9,7 +9,7 @@ from pydantic import Field, model_validator -from aces_contracts._base import ContractModel, NonEmptyString +from raes_contracts._base import ContractModel, NonEmptyString BehavioralRelationId = Annotated[str, Field(pattern=r"^[a-z][a-z0-9-]*$")] diff --git a/implementations/python/packages/aces_contracts/contracts/bundle.py b/implementations/python/packages/raes_contracts/contracts/bundle.py similarity index 95% rename from implementations/python/packages/aces_contracts/contracts/bundle.py rename to implementations/python/packages/raes_contracts/contracts/bundle.py index 3962e4791..a7e062e8f 100644 --- a/implementations/python/packages/aces_contracts/contracts/bundle.py +++ b/implementations/python/packages/raes_contracts/contracts/bundle.py @@ -1,4 +1,4 @@ -"""Published JSON Schema bundle assembly for external ACES contracts.""" +"""Published JSON Schema bundle assembly for external RAES contracts.""" from __future__ import annotations @@ -99,7 +99,7 @@ def _raw_schema_bundle() -> dict[str, dict[str, Any]]: - from aces_contracts.realization_envelope import BackendRealizationEnvelopeModel + from raes_contracts.realization_envelope import BackendRealizationEnvelopeModel from ..behavioral_relations import BehavioralRelationCatalogModel from ..exploit_path import ExploitPathAnalysisEvidenceModel @@ -209,7 +209,7 @@ def _schema_bundle_template() -> dict[str, dict[str, Any]]: "behavioral-relations-reference-resolution", "Relation map keys, bibliography references, claim-surface relation references, and worked-example keys " "must resolve exactly inside one taxonomy revision.", - validator="aces_contracts.behavioral_relations.BehavioralRelationCatalogModel", + validator="raes_contracts.behavioral_relations.BehavioralRelationCatalogModel", inputs=[{"contract_id": "behavioral-relations-v1", "instance_path": "#"}], ) _add_aces_invariant( @@ -217,7 +217,7 @@ def _schema_bundle_template() -> dict[str, dict[str, Any]]: "study-behavioral-claim-catalog-resolution", "Every study behavioral claim must resolve against the canonical taxonomy revision, include a required " "observation projection, and keep bounded evidence out of universal quantifiers.", - validator="aces_contracts.behavioral_relations.validate_behavioral_claim_binding", + validator="raes_contracts.behavioral_relations.validate_behavioral_claim_binding", inputs=[ {"contract_id": "experiment-study-v1", "instance_path": "#/behavioral_claims"}, {"contract_id": "behavioral-relations-v1", "instance_path": "#"}, @@ -228,7 +228,7 @@ def _schema_bundle_template() -> dict[str, dict[str, Any]]: "scientific-completeness-taxonomy-rectangular", "Concern and profile ids must be unique, and every profile disposition " "map must exactly cover the taxonomy concern set.", - validator="aces_contracts.scientific_completeness.ScientificCompletenessTaxonomyModel", + validator="raes_contracts.scientific_completeness.ScientificCompletenessTaxonomyModel", inputs=[{"contract_id": "scientific-completeness-taxonomy-v1", "instance_path": "#"}], ) _add_aces_invariant( @@ -236,7 +236,7 @@ def _schema_bundle_template() -> dict[str, dict[str, Any]]: "scientific-completeness-behavioral-claim-resolution", "Each profile must carry resolved behavioral claim bindings and disjoint, catalog-resolved nonclaimed " "relation ids.", - validator="aces_contracts.scientific_completeness.CompletenessProfileModel.validate_behavioral_claims", + validator="raes_contracts.scientific_completeness.CompletenessProfileModel.validate_behavioral_claims", inputs=[ {"contract_id": "scientific-completeness-taxonomy-v1", "instance_path": "#/profiles"}, {"contract_id": "behavioral-relations-v1", "instance_path": "#"}, @@ -248,7 +248,7 @@ def _schema_bundle_template() -> dict[str, dict[str, Any]]: "Concern ids must be unique and each delivery status must carry its " "required executable evidence, external binding, issue refs, or " "exclusion rationale.", - validator="aces_contracts.scientific_completeness.ScientificCompletenessAssessmentModel", + validator="raes_contracts.scientific_completeness.ScientificCompletenessAssessmentModel", inputs=[{"contract_id": "scientific-completeness-assessment-v1", "instance_path": "#"}], ) _add_aces_invariant( @@ -257,7 +257,7 @@ def _schema_bundle_template() -> dict[str, dict[str, Any]]: "Every fact version resolves to a declaration, every binding event resolves to its compiled sink and " "optional immutable fact version with matching scope, sensitivity, provenance, redaction, and sink policy, " "and every projection exactly matches the immutable version it discloses.", - validator="aces_contracts.contracts.runtime_facts.RuntimeFactBindingPlaneModel._validate_references", + validator="raes_contracts.contracts.runtime_facts.RuntimeFactBindingPlaneModel._validate_references", inputs=[{"contract_id": "runtime-fact-binding-plane-v1", "instance_path": "#"}], ) _add_aces_invariant( @@ -265,7 +265,7 @@ def _schema_bundle_template() -> dict[str, dict[str, Any]]: "scientific-completeness-taxonomy-assessment-join", "Assessment family, taxonomy revision, and concern ids must exactly " "match the joined taxonomy before completeness is computed.", - validator="aces_contracts.scientific_completeness.evaluate_profile_completeness", + validator="raes_contracts.scientific_completeness.evaluate_profile_completeness", inputs=[ {"contract_id": "scientific-completeness-taxonomy-v1", "instance_path": "#"}, {"contract_id": "scientific-completeness-assessment-v1", "instance_path": "#"}, @@ -277,7 +277,7 @@ def _schema_bundle_template() -> dict[str, dict[str, Any]]: "Strength ranks and term ids must be unique, profile identities must " "be unique, required and optional gates must be disjoint, and every " "profile reference must resolve within the catalog.", - validator=("aces_contracts.validation_profiles.ValidationProfileCatalogModel"), + validator=("raes_contracts.validation_profiles.ValidationProfileCatalogModel"), inputs=[ { "contract_id": "validation-profile-catalog-v1", @@ -309,7 +309,7 @@ def schema_bundle() -> dict[str, dict[str, Any]]: """Return an isolated copy of the repo-published external contract schemas. Generating the complete bundle is expensive because it traverses every - Pydantic contract model and attaches the governed ACES annotations. The + Pydantic contract model and attaches the governed RAES annotations. The generated template is process-stable, so build it once while preserving the public function's historical fresh-dictionary semantics for callers. """ diff --git a/implementations/python/packages/aces_contracts/contracts/capabilities.py b/implementations/python/packages/raes_contracts/contracts/capabilities.py similarity index 100% rename from implementations/python/packages/aces_contracts/contracts/capabilities.py rename to implementations/python/packages/raes_contracts/contracts/capabilities.py diff --git a/implementations/python/packages/aces_contracts/contracts/catalogs.py b/implementations/python/packages/raes_contracts/contracts/catalogs.py similarity index 100% rename from implementations/python/packages/aces_contracts/contracts/catalogs.py rename to implementations/python/packages/raes_contracts/contracts/catalogs.py diff --git a/implementations/python/packages/aces_contracts/contracts/execution_state.py b/implementations/python/packages/raes_contracts/contracts/execution_state.py similarity index 100% rename from implementations/python/packages/aces_contracts/contracts/execution_state.py rename to implementations/python/packages/raes_contracts/contracts/execution_state.py diff --git a/implementations/python/packages/aces_contracts/contracts/experiment_analysis.py b/implementations/python/packages/raes_contracts/contracts/experiment_analysis.py similarity index 100% rename from implementations/python/packages/aces_contracts/contracts/experiment_analysis.py rename to implementations/python/packages/raes_contracts/contracts/experiment_analysis.py diff --git a/implementations/python/packages/aces_contracts/contracts/experiment_apparatus.py b/implementations/python/packages/raes_contracts/contracts/experiment_apparatus.py similarity index 99% rename from implementations/python/packages/aces_contracts/contracts/experiment_apparatus.py rename to implementations/python/packages/raes_contracts/contracts/experiment_apparatus.py index 0d8b53a5b..6e259909a 100644 --- a/implementations/python/packages/aces_contracts/contracts/experiment_apparatus.py +++ b/implementations/python/packages/raes_contracts/contracts/experiment_apparatus.py @@ -204,7 +204,7 @@ def __get_pydantic_json_schema__( "canonical-apparatus-manifest-selected", "The canonical processor and backend component manifest_ref values must be present in selected_manifests; " "digest-qualified selected manifests must be canonical component manifests.", - validator="aces_contracts.contracts.ExperimentApparatusContextModel._validate_instrument_context", + validator="raes_contracts.contracts.ExperimentApparatusContextModel._validate_instrument_context", inputs=[{"contract_id": "experiment-apparatus-context-v1", "instance_path": "#"}], ) _add_aces_invariant( @@ -212,7 +212,7 @@ def __get_pydantic_json_schema__( "apparatus-manifest-payload-identity-valid", "Canonical processor and backend manifest_ref values must resolve to manifest payloads with matching " "identities and mutual compatibility declarations.", - validator="aces_contracts.contracts.validate_experiment_apparatus_context_against_manifests", + validator="raes_contracts.contracts.validate_experiment_apparatus_context_against_manifests", inputs=[ {"contract_id": "experiment-apparatus-context-v1", "instance_path": "#"}, {"contract_id": "processor-manifest-v2", "instance_path": "#"}, diff --git a/implementations/python/packages/aces_contracts/contracts/experiment_artifacts.py b/implementations/python/packages/raes_contracts/contracts/experiment_artifacts.py similarity index 100% rename from implementations/python/packages/aces_contracts/contracts/experiment_artifacts.py rename to implementations/python/packages/raes_contracts/contracts/experiment_artifacts.py diff --git a/implementations/python/packages/aces_contracts/contracts/experiment_capture.py b/implementations/python/packages/raes_contracts/contracts/experiment_capture.py similarity index 98% rename from implementations/python/packages/aces_contracts/contracts/experiment_capture.py rename to implementations/python/packages/raes_contracts/contracts/experiment_capture.py index fbd0dd14d..3287e3b2a 100644 --- a/implementations/python/packages/aces_contracts/contracts/experiment_capture.py +++ b/implementations/python/packages/raes_contracts/contracts/experiment_capture.py @@ -78,7 +78,7 @@ def __get_pydantic_json_schema__( json_schema, "capture-window-interval-valid", "Capture window ends_at must not precede starts_at when both timestamps are present.", - validator="aces_contracts.contracts.ExperimentCaptureWindowModel._validate_capture_window", + validator="raes_contracts.contracts.ExperimentCaptureWindowModel._validate_capture_window", inputs=[{"contract_id": "experiment-capture-spec-v1", "instance_path": "#/capture_windows"}], ) return json_schema @@ -161,7 +161,7 @@ def __get_pydantic_json_schema__( "capture-requirement-key-matches-requirement-id", "Every capture_requirements object key must match the embedded requirement_id value, and window_refs " "must resolve to declared capture_windows.", - validator="aces_contracts.contracts.ExperimentCaptureSpecModel._validate_capture_spec", + validator="raes_contracts.contracts.ExperimentCaptureSpecModel._validate_capture_spec", inputs=[{"contract_id": "experiment-capture-spec-v1", "instance_path": "#"}], ) _add_aces_plane(json_schema, "experiment-capture-spec-v1") diff --git a/implementations/python/packages/aces_contracts/contracts/experiment_conditions.py b/implementations/python/packages/raes_contracts/contracts/experiment_conditions.py similarity index 100% rename from implementations/python/packages/aces_contracts/contracts/experiment_conditions.py rename to implementations/python/packages/raes_contracts/contracts/experiment_conditions.py diff --git a/implementations/python/packages/aces_contracts/contracts/experiment_disclosure.py b/implementations/python/packages/raes_contracts/contracts/experiment_disclosure.py similarity index 99% rename from implementations/python/packages/aces_contracts/contracts/experiment_disclosure.py rename to implementations/python/packages/raes_contracts/contracts/experiment_disclosure.py index a19ca8fe9..d6c1c0ee3 100644 --- a/implementations/python/packages/aces_contracts/contracts/experiment_disclosure.py +++ b/implementations/python/packages/raes_contracts/contracts/experiment_disclosure.py @@ -191,7 +191,7 @@ def __get_pydantic_json_schema__( "Augmentation disclosures must keep environment-visible, participant-visible, and " "comparability-relevant semantics explicit and must use processor/backend authority.", validator=( - "aces_contracts.contracts.ExperimentAugmentationDisclosureModel._validate_augmentation_disclosure" + "raes_contracts.contracts.ExperimentAugmentationDisclosureModel._validate_augmentation_disclosure" ), inputs=[{"contract_id": "experiment-run-v1", "instance_path": "#/augmentation_disclosures"}], ) @@ -250,7 +250,7 @@ def __get_pydantic_json_schema__( json_schema, "metric-definition-key-matches-metric-id", "Every metric_definitions object key must match the embedded metric_id value.", - validator="aces_contracts.contracts.ExperimentEvaluationProtocolModel._validate_metric_definition_keys", + validator="raes_contracts.contracts.ExperimentEvaluationProtocolModel._validate_metric_definition_keys", inputs=[{"contract_id": "experiment-task-v1", "instance_path": "#/evaluation_protocol"}], ) return json_schema @@ -440,7 +440,7 @@ def __get_pydantic_json_schema__( "Every allowed processor/backend identity reference must have a matching required manifest ref_id " "with matching manifest id, subject identity, and manifest schema version.", validator=( - "aces_contracts.contracts.ExperimentApparatusConstraintModel._validate_allowed_identity_manifest_refs" + "raes_contracts.contracts.ExperimentApparatusConstraintModel._validate_allowed_identity_manifest_refs" ), inputs=[{"contract_id": "experiment-task-v1", "instance_path": "#/apparatus_constraints"}], ) diff --git a/implementations/python/packages/aces_contracts/contracts/experiment_evidence.py b/implementations/python/packages/raes_contracts/contracts/experiment_evidence.py similarity index 97% rename from implementations/python/packages/aces_contracts/contracts/experiment_evidence.py rename to implementations/python/packages/raes_contracts/contracts/experiment_evidence.py index c09a49b61..155ad536b 100644 --- a/implementations/python/packages/aces_contracts/contracts/experiment_evidence.py +++ b/implementations/python/packages/raes_contracts/contracts/experiment_evidence.py @@ -75,14 +75,14 @@ def __get_pydantic_json_schema__( "evidence-record-raw-content-present", "Evidence records must carry raw content as an artifact reference, content URI with checksum, or bounded " "payload summary; redacted/withheld records must disclose loss.", - validator="aces_contracts.contracts.ExperimentEvidenceRecordModel._validate_evidence_record", + validator="raes_contracts.contracts.ExperimentEvidenceRecordModel._validate_evidence_record", inputs=[{"contract_id": "experiment-evidence-record-v1", "instance_path": "#"}], ) _add_aces_invariant( json_schema, "evidence-record-captured-at-valid", "captured_at must be a valid RFC 3339 date-time.", - validator="aces_contracts.contracts.ExperimentEvidenceRecordModel._validate_evidence_record", + validator="raes_contracts.contracts.ExperimentEvidenceRecordModel._validate_evidence_record", inputs=[{"contract_id": "experiment-evidence-record-v1", "instance_path": "#/captured_at"}], ) # SEM-216 B4: redacted or withheld evidence records must disclose redaction/loss at the @@ -160,14 +160,14 @@ def __get_pydantic_json_schema__( json_schema, "derived-measure-reported-value-present", "Reported derived measures must include a value; missing/withheld/not-applicable measures must not.", - validator="aces_contracts.contracts.ExperimentDerivedMeasureModel._validate_derived_measure", + validator="raes_contracts.contracts.ExperimentDerivedMeasureModel._validate_derived_measure", inputs=[{"contract_id": "experiment-derived-measure-v1", "instance_path": "#"}], ) _add_aces_invariant( json_schema, "derived-measure-generated-at-valid", "generated_at must be a valid RFC 3339 date-time.", - validator="aces_contracts.contracts.ExperimentDerivedMeasureModel._validate_derived_measure", + validator="raes_contracts.contracts.ExperimentDerivedMeasureModel._validate_derived_measure", inputs=[{"contract_id": "experiment-derived-measure-v1", "instance_path": "#/generated_at"}], ) _add_aces_plane(json_schema, "experiment-derived-measure-v1") @@ -206,7 +206,7 @@ def __get_pydantic_json_schema__( "run-traceability-refs-unique", "Run provenance traceability references must be duplicate-free, and claim refs must be grounded by " "at least one derived measure ref.", - validator="aces_contracts.contracts.ExperimentRunTraceabilityModel._validate_run_traceability", + validator="raes_contracts.contracts.ExperimentRunTraceabilityModel._validate_run_traceability", inputs=[{"contract_id": "experiment-run-v1", "instance_path": "#/traceability"}], ) return json_schema @@ -296,7 +296,7 @@ def __get_pydantic_json_schema__( "Every realized-form disclosure must name a realized reference or value summary and use the right " "processor/backend realization authority for processor-realized and backend-realized concerns.", validator=( - "aces_contracts.contracts.ExperimentRealizedFormDisclosureModel._validate_realized_form_disclosure" + "raes_contracts.contracts.ExperimentRealizedFormDisclosureModel._validate_realized_form_disclosure" ), inputs=[{"contract_id": "experiment-run-v1", "instance_path": "#/realized_form_disclosures"}], ) diff --git a/implementations/python/packages/aces_contracts/contracts/experiment_manifest_references.py b/implementations/python/packages/raes_contracts/contracts/experiment_manifest_references.py similarity index 99% rename from implementations/python/packages/aces_contracts/contracts/experiment_manifest_references.py rename to implementations/python/packages/raes_contracts/contracts/experiment_manifest_references.py index 8b2bf0421..b9ca6bd00 100644 --- a/implementations/python/packages/aces_contracts/contracts/experiment_manifest_references.py +++ b/implementations/python/packages/raes_contracts/contracts/experiment_manifest_references.py @@ -139,7 +139,7 @@ def __get_pydantic_json_schema__( "manifest-reference-digest-scope-valid", "Manifest digest qualifiers are limited to processor/backend manifest refs that can be checked " "against concrete manifest payload digests; manifest path qualifiers are not accepted in v1.", - validator="aces_contracts.contracts.ExperimentManifestReferenceModel._validate_manifest_reference_scope", + validator="raes_contracts.contracts.ExperimentManifestReferenceModel._validate_manifest_reference_scope", inputs=[ {"contract_id": "experiment-task-v1", "instance_path": _MANIFEST_REFERENCE_DEFS_POINTER}, { diff --git a/implementations/python/packages/aces_contracts/contracts/experiment_references.py b/implementations/python/packages/raes_contracts/contracts/experiment_references.py similarity index 99% rename from implementations/python/packages/aces_contracts/contracts/experiment_references.py rename to implementations/python/packages/raes_contracts/contracts/experiment_references.py index 2d16abd25..4de47db3c 100644 --- a/implementations/python/packages/aces_contracts/contracts/experiment_references.py +++ b/implementations/python/packages/raes_contracts/contracts/experiment_references.py @@ -12,7 +12,7 @@ class ExperimentReferenceModel(ContractModel): - """Typed reference to an experiment-core or adjacent ACES artifact.""" + """Typed reference to an experiment-core or adjacent RAES artifact.""" ref_kind: Literal[ "processor", diff --git a/implementations/python/packages/aces_contracts/contracts/experiment_run.py b/implementations/python/packages/raes_contracts/contracts/experiment_run.py similarity index 99% rename from implementations/python/packages/aces_contracts/contracts/experiment_run.py rename to implementations/python/packages/raes_contracts/contracts/experiment_run.py index 965a640e9..60facbc1f 100644 --- a/implementations/python/packages/aces_contracts/contracts/experiment_run.py +++ b/implementations/python/packages/raes_contracts/contracts/experiment_run.py @@ -63,7 +63,7 @@ from .validation_disclosure import ValidationBasisDisclosureModel, validate_carrier_validation_basis_disclosures from .validators import _validate_unique_string_values -_ARCHIVAL_RUN_VALIDATOR = "aces_contracts.contracts.ExperimentRunModel._validate_archival_run" +_ARCHIVAL_RUN_VALIDATOR = "raes_contracts.contracts.ExperimentRunModel._validate_archival_run" class ExperimentResultSummaryModel(ContractModel): @@ -226,7 +226,7 @@ def __get_pydantic_json_schema__( "Every stochastic_draws control_id must resolve to a stochastic_controls control_id with an " "executable_binding on the same run, and each draw's address.namespace and transform_id/" "transform_version must match that binding's namespace and admitted profile transforms.", - validator="aces_contracts.contracts.validate_experiment_run_against_task", + validator="raes_contracts.contracts.validate_experiment_run_against_task", inputs=[{"contract_id": "experiment-run-v1", "instance_path": "#/stochastic_draws"}], ) _add_aces_invariant( @@ -241,7 +241,7 @@ def __get_pydantic_json_schema__( "task-run-protocol-binding-valid", "Run apparatus, result metric ids, and concrete evidence artifacts must satisfy the " "referenced task protocol.", - validator="aces_contracts.contracts.validate_experiment_run_against_task", + validator="raes_contracts.contracts.validate_experiment_run_against_task", inputs=[ {"contract_id": "experiment-task-v1", "instance_path": "#"}, {"contract_id": "experiment-run-v1", "instance_path": "#"}, diff --git a/implementations/python/packages/aces_contracts/contracts/experiment_run_stochastic.py b/implementations/python/packages/raes_contracts/contracts/experiment_run_stochastic.py similarity index 98% rename from implementations/python/packages/aces_contracts/contracts/experiment_run_stochastic.py rename to implementations/python/packages/raes_contracts/contracts/experiment_run_stochastic.py index e1c40dec5..6845f73f6 100644 --- a/implementations/python/packages/aces_contracts/contracts/experiment_run_stochastic.py +++ b/implementations/python/packages/raes_contracts/contracts/experiment_run_stochastic.py @@ -97,7 +97,7 @@ def _validate_run_stochastic_draw_control_refs(run: ExperimentRunModel) -> None: outcome from a transform the profile never defined). """ - # Deferred import: ``random_stream_profiles`` sits in ``aces_contracts`` (the parent package) and + # Deferred import: ``random_stream_profiles`` sits in ``raes_contracts`` (the parent package) and # imports from ``.contracts`` (this package's ``__init__``), so importing it at module scope here # would create a circular import during ``contracts/__init__.py``'s own load. The same pattern is # used for the other corpus-backed loaders consumed from within ``contracts/*.py`` diff --git a/implementations/python/packages/aces_contracts/contracts/experiment_spec.py b/implementations/python/packages/raes_contracts/contracts/experiment_spec.py similarity index 98% rename from implementations/python/packages/aces_contracts/contracts/experiment_spec.py rename to implementations/python/packages/raes_contracts/contracts/experiment_spec.py index c68ced4ef..c3b9a52b2 100644 --- a/implementations/python/packages/aces_contracts/contracts/experiment_spec.py +++ b/implementations/python/packages/raes_contracts/contracts/experiment_spec.py @@ -29,7 +29,7 @@ from .schema_invariants import _add_aces_invariant, _add_carrier_validation_basis_disclosure_invariant from .validation_disclosure import ValidationBasisDisclosureModel, validate_carrier_validation_basis_disclosures -_STUDY_AGAINST_TASKS_AND_RUNS_VALIDATOR = "aces_contracts.contracts.validate_experiment_study_against_tasks_and_runs" +_STUDY_AGAINST_TASKS_AND_RUNS_VALIDATOR = "raes_contracts.contracts.validate_experiment_study_against_tasks_and_runs" class ExperimentStudyModel(ContractModel): @@ -162,7 +162,7 @@ def __get_pydantic_json_schema__( "claim-bearing-study-analysis-plan-required", "Study and benchmark records must include research questions, revisioned behavioral claim bindings, run " "allocation, a substantive analysis plan, and validity notes.", - validator="aces_contracts.contracts.ExperimentStudyModel._validate_claim_bearing_study", + validator="raes_contracts.contracts.ExperimentStudyModel._validate_claim_bearing_study", inputs=[{"contract_id": "experiment-study-v1", "instance_path": "#"}], ) _add_aces_invariant( @@ -311,7 +311,7 @@ def __get_pydantic_json_schema__( "run-plan-exactly-one-run-count-source", "A run plan must declare exactly one of allocation or target_run_count, and every red-variant " "selection map key must equal its embedded variant_id.", - validator="aces_contracts.contracts.ExperimentRunPlanModel._validate_run_plan", + validator="raes_contracts.contracts.ExperimentRunPlanModel._validate_run_plan", inputs=[{"contract_id": "experiment-authoring-input-v1", "instance_path": "#/run_plan"}], ) return json_schema @@ -367,7 +367,7 @@ def __get_pydantic_json_schema__( "experiment-spec-blocking-factors-declared", "When a run plan declares an allocation with blocking factors, every blocking factor must be a " "declared experiment-spec factor.", - validator="aces_contracts.contracts.ExperimentSpecModel._validate_experiment_spec", + validator="raes_contracts.contracts.ExperimentSpecModel._validate_experiment_spec", inputs=[{"contract_id": "experiment-authoring-input-v1", "instance_path": "#"}], ) return json_schema diff --git a/implementations/python/packages/aces_contracts/contracts/experiment_study.py b/implementations/python/packages/raes_contracts/contracts/experiment_study.py similarity index 99% rename from implementations/python/packages/aces_contracts/contracts/experiment_study.py rename to implementations/python/packages/raes_contracts/contracts/experiment_study.py index e095d6550..a12b7a436 100644 --- a/implementations/python/packages/aces_contracts/contracts/experiment_study.py +++ b/implementations/python/packages/raes_contracts/contracts/experiment_study.py @@ -235,7 +235,7 @@ def __get_pydantic_json_schema__( "run-allocation-condition-assignments-valid", "Run-allocation compared_conditions, condition_assignments keys, embedded condition ids, blocking " "factor ids, factor-level combinations, and run-level criteria signatures must be internally coherent.", - validator="aces_contracts.contracts.ExperimentRunAllocationPlanModel._validate_condition_assignments", + validator="raes_contracts.contracts.ExperimentRunAllocationPlanModel._validate_condition_assignments", inputs=[{"contract_id": "experiment-study-v1", "instance_path": "#/run_allocation"}], ) return json_schema @@ -306,7 +306,7 @@ def __get_pydantic_json_schema__( "analysis-plan-substantive-methods-required", "Analysis plans must name metrics plus structured statistical, uncertainty, multiplicity, " "and missing-data policies.", - validator="aces_contracts.contracts.ExperimentAnalysisPlanModel._validate_primary_metric", + validator="raes_contracts.contracts.ExperimentAnalysisPlanModel._validate_primary_metric", inputs=[{"contract_id": "experiment-study-v1", "instance_path": "#/analysis_plan"}], ) return json_schema diff --git a/implementations/python/packages/aces_contracts/contracts/manifests.py b/implementations/python/packages/raes_contracts/contracts/manifests.py similarity index 100% rename from implementations/python/packages/aces_contracts/contracts/manifests.py rename to implementations/python/packages/raes_contracts/contracts/manifests.py diff --git a/implementations/python/packages/aces_contracts/contracts/participant_context.py b/implementations/python/packages/raes_contracts/contracts/participant_context.py similarity index 98% rename from implementations/python/packages/aces_contracts/contracts/participant_context.py rename to implementations/python/packages/raes_contracts/contracts/participant_context.py index 076efd6ec..f4e22f876 100644 --- a/implementations/python/packages/aces_contracts/contracts/participant_context.py +++ b/implementations/python/packages/raes_contracts/contracts/participant_context.py @@ -271,14 +271,14 @@ def __get_pydantic_json_schema__( } ) # SEM-216 relational obligations that standard JSON Schema cannot express are published - # as ACES semantic invariants so schema-only consumers see the full portable contract and + # as RAES semantic invariants so schema-only consumers see the full portable contract and # the validator that enforces it (mirrors the experiment-core x-aces-invariants pattern). _add_aces_invariant( json_schema, "context-view-sem216-archival-source-mediated", "Participant-visible context views drawing on an archival evidence_record or derived_measure " "source layer must mediate that source through transformation.input_source_ids.", - validator="aces_contracts.contracts.ParticipantContextViewModel._validate_sem216_audience_boundary", + validator="raes_contracts.contracts.ParticipantContextViewModel._validate_sem216_audience_boundary", inputs=[{"contract_id": "participant-context-view-v1", "instance_path": "#"}], ) _add_aces_invariant( @@ -286,7 +286,7 @@ def __get_pydantic_json_schema__( "context-view-sem216-payload-not-raw-archival", "Participant-visible context views must not set payload_ref to a raw archival evidence_record or " "derived_measure source ref; payload_ref must identify the transformed, redacted view output.", - validator="aces_contracts.contracts.ParticipantContextViewModel._validate_sem216_audience_boundary", + validator="raes_contracts.contracts.ParticipantContextViewModel._validate_sem216_audience_boundary", inputs=[{"contract_id": "participant-context-view-v1", "instance_path": "#/payload_ref"}], ) return json_schema diff --git a/implementations/python/packages/aces_contracts/contracts/participant_control.py b/implementations/python/packages/raes_contracts/contracts/participant_control.py similarity index 99% rename from implementations/python/packages/aces_contracts/contracts/participant_control.py rename to implementations/python/packages/raes_contracts/contracts/participant_control.py index f6d883092..65cc7951e 100644 --- a/implementations/python/packages/aces_contracts/contracts/participant_control.py +++ b/implementations/python/packages/raes_contracts/contracts/participant_control.py @@ -298,7 +298,7 @@ def __get_pydantic_json_schema__( "participant-control-occurrence-context-agreement", "Every occurrence must resolve one matching compiled ACT-617 declaration and preserve participant, " "episode, controller, authority, policy revision, order, proposal, target, and semantic identity joins.", - validator="aces_contracts.contracts.validate_participant_control_occurrence_context", + validator="raes_contracts.contracts.validate_participant_control_occurrence_context", inputs=[{"contract_id": "participant-control-occurrence-v1", "instance_path": "#"}], ) _add_aces_invariant( @@ -306,7 +306,7 @@ def __get_pydantic_json_schema__( "participant-control-occurrence-not-lifecycle-evidence", "Proposal, approval, denial, direction, intervention, handoff, override, and cancellation remain " "distinct from action admission, execution, delivery, observation, and audit evidence.", - validator="aces_contracts.contracts.ParticipantControlOccurrenceModel", + validator="raes_contracts.contracts.ParticipantControlOccurrenceModel", inputs=[{"contract_id": "participant-control-occurrence-v1", "instance_path": "#"}], ) return json_schema diff --git a/implementations/python/packages/aces_contracts/contracts/participant_control_validation.py b/implementations/python/packages/raes_contracts/contracts/participant_control_validation.py similarity index 100% rename from implementations/python/packages/aces_contracts/contracts/participant_control_validation.py rename to implementations/python/packages/raes_contracts/contracts/participant_control_validation.py diff --git a/implementations/python/packages/aces_contracts/contracts/participant_decision_surface.py b/implementations/python/packages/raes_contracts/contracts/participant_decision_surface.py similarity index 99% rename from implementations/python/packages/aces_contracts/contracts/participant_decision_surface.py rename to implementations/python/packages/raes_contracts/contracts/participant_decision_surface.py index 3098f520c..e723c2acb 100644 --- a/implementations/python/packages/aces_contracts/contracts/participant_decision_surface.py +++ b/implementations/python/packages/raes_contracts/contracts/participant_decision_surface.py @@ -375,7 +375,7 @@ def __get_pydantic_json_schema__( "decision-surface-entry-reference-agreement", "Candidate, constrained-form, and open-ended action references must resolve to action entries and " "their governed selection shapes.", - validator="aces_contracts.contracts.ParticipantDecisionSurfaceModel._validate_surface_relations", + validator="raes_contracts.contracts.ParticipantDecisionSurfaceModel._validate_surface_relations", inputs=[{"contract_id": "participant-decision-surface-v1", "instance_path": "#"}], ) _add_aces_invariant( @@ -383,7 +383,7 @@ def __get_pydantic_json_schema__( "decision-surface-presentation-not-lifecycle-evidence", "Surface membership or presentation carries no selection, admission, execution, result, or outcome fact; " "those facts remain in their existing lifecycle contracts.", - validator="aces_contracts.contracts.ParticipantDecisionSurfaceModel", + validator="raes_contracts.contracts.ParticipantDecisionSurfaceModel", inputs=[{"contract_id": "participant-decision-surface-v1", "instance_path": "#"}], ) _add_aces_invariant( @@ -392,7 +392,7 @@ def __get_pydantic_json_schema__( "Every serialized context, action, and affordance reference must have one participant-, audience-, " "order-, immutable-policy-, authorization-, marking-, evidence-, and provenance-bound exposure decision; " "realized delivery is an optional item- and delivery-authorization-bound occurrence.", - validator="aces_contracts.contracts.ParticipantDecisionSurfaceModel._validate_surface_relations", + validator="raes_contracts.contracts.ParticipantDecisionSurfaceModel._validate_surface_relations", inputs=[{"contract_id": "participant-decision-surface-v1", "instance_path": "#/exposure_bindings"}], ) return json_schema diff --git a/implementations/python/packages/aces_contracts/contracts/participant_decision_surface_exposure.py b/implementations/python/packages/raes_contracts/contracts/participant_decision_surface_exposure.py similarity index 100% rename from implementations/python/packages/aces_contracts/contracts/participant_decision_surface_exposure.py rename to implementations/python/packages/raes_contracts/contracts/participant_decision_surface_exposure.py diff --git a/implementations/python/packages/aces_contracts/contracts/participant_envelopes.py b/implementations/python/packages/raes_contracts/contracts/participant_envelopes.py similarity index 99% rename from implementations/python/packages/aces_contracts/contracts/participant_envelopes.py rename to implementations/python/packages/raes_contracts/contracts/participant_envelopes.py index c79623fbc..8e816b6bc 100644 --- a/implementations/python/packages/aces_contracts/contracts/participant_envelopes.py +++ b/implementations/python/packages/raes_contracts/contracts/participant_envelopes.py @@ -38,7 +38,7 @@ class EventClassificationModel(ContractModel): - """ACES-native normalized event classification tuple (ADR-054).""" + """RAES-native normalized event classification tuple (ADR-054).""" category_uid: int category_name: NonEmptyString diff --git a/implementations/python/packages/aces_contracts/contracts/participant_manifests.py b/implementations/python/packages/raes_contracts/contracts/participant_manifests.py similarity index 100% rename from implementations/python/packages/aces_contracts/contracts/participant_manifests.py rename to implementations/python/packages/raes_contracts/contracts/participant_manifests.py diff --git a/implementations/python/packages/aces_contracts/contracts/participant_runtime.py b/implementations/python/packages/raes_contracts/contracts/participant_runtime.py similarity index 100% rename from implementations/python/packages/aces_contracts/contracts/participant_runtime.py rename to implementations/python/packages/raes_contracts/contracts/participant_runtime.py diff --git a/implementations/python/packages/aces_contracts/contracts/participant_views.py b/implementations/python/packages/raes_contracts/contracts/participant_views.py similarity index 100% rename from implementations/python/packages/aces_contracts/contracts/participant_views.py rename to implementations/python/packages/raes_contracts/contracts/participant_views.py diff --git a/implementations/python/packages/aces_contracts/contracts/random_stream.py b/implementations/python/packages/raes_contracts/contracts/random_stream.py similarity index 96% rename from implementations/python/packages/aces_contracts/contracts/random_stream.py rename to implementations/python/packages/raes_contracts/contracts/random_stream.py index 01dd3ed0d..cfaf03468 100644 --- a/implementations/python/packages/aces_contracts/contracts/random_stream.py +++ b/implementations/python/packages/raes_contracts/contracts/random_stream.py @@ -1,8 +1,8 @@ """EXP-718 versioned random-stream contracts: profile shape, control binding, and draw provenance. -Builds strictly within ``aces_contracts`` (ADR-036's portable DTO/profile-shape -bucket): selection/compilation (``aces_processor``) and live execution -(``aces_runtime``) are out of scope here (#787-#791). See +Builds strictly within ``raes_contracts`` (ADR-036's portable DTO/profile-shape +bucket): selection/compilation (``raes_processor``) and live execution +(``raes_runtime``) are out of scope here (#787-#791). See ``docs/decisions/issue-274-exp-718-controlled-randomness-preflight.md`` and ADR-084 Section 5 / ``specs/formal/scenario-variation-trial-realization`` SVR-012 through SVR-017 for the governing invariants: @@ -151,7 +151,7 @@ def __get_pydantic_json_schema__( json_schema, "random-stream-address-draw-purpose-governed", "draw_purpose must be a term from the random_streams.draw_purpose controlled vocabulary.", - validator="aces_contracts.contracts.random_stream.StreamAddressModel._validate_draw_purpose", + validator="raes_contracts.contracts.random_stream.StreamAddressModel._validate_draw_purpose", inputs=[{"contract_id": "controlled-vocabularies-v1", "instance_path": "#"}], ) return json_schema @@ -253,7 +253,7 @@ def __get_pydantic_json_schema__( json_schema, "random-stream-profile-transform-keys-match", "transforms dict keys must match each entry's embedded transform_id.", - validator="aces_contracts.contracts.random_stream.RandomStreamProfileModel._validate_transform_keys", + validator="raes_contracts.contracts.random_stream.RandomStreamProfileModel._validate_transform_keys", inputs=[{"contract_id": "random-stream-profile-v1", "instance_path": "#/transforms"}], ) return json_schema @@ -303,7 +303,7 @@ def __get_pydantic_json_schema__( "random-stream-draw-record-local-coordinate-matches-address", "local_coordinate must match address.local_coordinate.", validator=( - "aces_contracts.contracts.random_stream.RandomStreamDrawRecordModel." + "raes_contracts.contracts.random_stream.RandomStreamDrawRecordModel." "_validate_local_coordinate_matches_address" ), inputs=[{"contract_id": "experiment-run-v1", "instance_path": "#/stochastic_draws"}], @@ -313,7 +313,7 @@ def __get_pydantic_json_schema__( "random-stream-draw-record-outcome-matches-exhaustion", "outcome must be present exactly when rejection_exhausted is false, and absent when true.", validator=( - "aces_contracts.contracts.random_stream.RandomStreamDrawRecordModel." + "raes_contracts.contracts.random_stream.RandomStreamDrawRecordModel." "_validate_outcome_matches_exhaustion" ), inputs=[{"contract_id": "experiment-run-v1", "instance_path": "#/stochastic_draws"}], diff --git a/implementations/python/packages/aces_contracts/contracts/realization_plans.py b/implementations/python/packages/raes_contracts/contracts/realization_plans.py similarity index 100% rename from implementations/python/packages/aces_contracts/contracts/realization_plans.py rename to implementations/python/packages/raes_contracts/contracts/realization_plans.py diff --git a/implementations/python/packages/aces_contracts/contracts/reusable_assets.py b/implementations/python/packages/raes_contracts/contracts/reusable_assets.py similarity index 99% rename from implementations/python/packages/aces_contracts/contracts/reusable_assets.py rename to implementations/python/packages/raes_contracts/contracts/reusable_assets.py index df8a7e4a9..be979bd16 100644 --- a/implementations/python/packages/aces_contracts/contracts/reusable_assets.py +++ b/implementations/python/packages/raes_contracts/contracts/reusable_assets.py @@ -97,7 +97,7 @@ def _event_stream_schema(title: str, item_schema: dict[str, Any]) -> dict[str, A class ReusableAssetEvidenceRequirementModel(ContractModel): """One evidence-class expectation an asset family must satisfy. - ``mechanism_ref`` names the *existing* ACES mechanism that carries the + ``mechanism_ref`` names the *existing* RAES mechanism that carries the evidence (e.g. ``aces.lock.json`` digest pins, ``ExperimentChecksumModel``, ``controlled-vocabularies-v1.source``). GOV-913 declares policy over the incumbent mechanisms; it does not introduce a parallel evidence store, so @@ -304,7 +304,7 @@ class ReusableAssetTrustPolicyModel(ContractModel): A declarative, expectation-based policy: it declares, per asset family, the integrity/authenticity/provenance/governance evidence the ecosystem requires, - referencing the existing ACES mechanisms that carry that evidence. It is not a + referencing the existing RAES mechanisms that carry that evidence. It is not a per-asset trust record and it invents no cryptography. See ``specs/authority/reusable-asset-trust-integrity.md`` (normative) and ADR-071. """ diff --git a/implementations/python/packages/aces_contracts/contracts/runtime_facts.py b/implementations/python/packages/raes_contracts/contracts/runtime_facts.py similarity index 100% rename from implementations/python/packages/aces_contracts/contracts/runtime_facts.py rename to implementations/python/packages/raes_contracts/contracts/runtime_facts.py diff --git a/implementations/python/packages/aces_contracts/contracts/schema_constraints.py b/implementations/python/packages/raes_contracts/contracts/schema_constraints.py similarity index 98% rename from implementations/python/packages/aces_contracts/contracts/schema_constraints.py rename to implementations/python/packages/raes_contracts/contracts/schema_constraints.py index 5839770b2..9e1881ba8 100644 --- a/implementations/python/packages/aces_contracts/contracts/schema_constraints.py +++ b/implementations/python/packages/raes_contracts/contracts/schema_constraints.py @@ -1,4 +1,4 @@ -"""JSON-schema identifier/plan constraint helpers and ACES semantic-invariant models.""" +"""JSON-schema identifier/plan constraint helpers and RAES semantic-invariant models.""" from __future__ import annotations @@ -329,7 +329,7 @@ def _attach_plan_identity_constraints(contract_id: str, json_schema: dict[str, A class AcesSemanticInvariantInputModel(ContractModel): - """Input contract and instance path required by one ACES semantic invariant.""" + """Input contract and instance path required by one RAES semantic invariant.""" contract_id: NonEmptyString instance_path: JsonInstancePathString @@ -346,7 +346,7 @@ class AcesSemanticInvariantEntryModel(ContractModel): class AcesSemanticInvariantProfileModel(ContractModel): - """Published shape for ACES semantic-invariant annotations.""" + """Published shape for RAES semantic-invariant annotations.""" schema_version: Literal[_ACES_SEMANTIC_INVARIANTS_SCHEMA_VERSION] profile_id: Literal["aces-semantic-invariants-v1"] @@ -358,7 +358,7 @@ class AcesSemanticInvariantProfileModel(ContractModel): class AcesSemanticInvariantProfileReferenceModel(ContractModel): - """Host-schema reference to the ACES semantic-invariant profile.""" + """Host-schema reference to the RAES semantic-invariant profile.""" id: Literal["aces-semantic-invariants-v1"] uri: Literal["https://aces.dev/schemas/semantic-invariants/v1"] @@ -456,7 +456,7 @@ def _published_contract_ids() -> frozenset[str]: def validate_aces_semantic_invariant_annotations(contract_id: str, json_schema: dict[str, Any]) -> None: - """Validate ACES semantic-invariant metadata on a published JSON Schema.""" + """Validate RAES semantic-invariant metadata on a published JSON Schema.""" _validate_aces_semantic_invariant_annotations( contract_id=contract_id, diff --git a/implementations/python/packages/aces_contracts/contracts/schema_invariants.py b/implementations/python/packages/raes_contracts/contracts/schema_invariants.py similarity index 96% rename from implementations/python/packages/aces_contracts/contracts/schema_invariants.py rename to implementations/python/packages/raes_contracts/contracts/schema_invariants.py index ede1102f2..307bf16ed 100644 --- a/implementations/python/packages/aces_contracts/contracts/schema_invariants.py +++ b/implementations/python/packages/raes_contracts/contracts/schema_invariants.py @@ -1,4 +1,4 @@ -"""ACES semantic-invariant JSON-schema attach helpers and reported-value constraints.""" +"""RAES semantic-invariant JSON-schema attach helpers and reported-value constraints.""" from __future__ import annotations @@ -79,14 +79,14 @@ def _attach_experiment_datetime_invariants(contract_id: str, json_schema: dict[s "task-archival-times-rfc3339-valid", "Task artifact_refs created_at values must be valid RFC 3339 date-times, including only known " "valid UTC leap-second instants.", - "aces_contracts.contracts.validate_experiment_task_archival_datetimes", + "raes_contracts.contracts.validate_experiment_task_archival_datetimes", [{"contract_id": "experiment-task-v1", "instance_path": "#/artifact_refs"}], ), "experiment-apparatus-context-v1": ( "apparatus-archival-times-rfc3339-valid", "Apparatus declared_at and observed_setup_evidence created_at values must be valid RFC 3339 " "date-times, including only known valid UTC leap-second instants.", - "aces_contracts.contracts.validate_experiment_apparatus_context_archival_datetimes", + "raes_contracts.contracts.validate_experiment_apparatus_context_archival_datetimes", [ {"contract_id": "experiment-apparatus-context-v1", "instance_path": "#/declared_at"}, {"contract_id": "experiment-apparatus-context-v1", "instance_path": "#/observed_setup_evidence"}, @@ -96,7 +96,7 @@ def _attach_experiment_datetime_invariants(contract_id: str, json_schema: dict[s "run-archival-times-rfc3339-valid", "Run started_at, ended_at, invalidation invalidated_at, and evidence_artifacts created_at values " "must be valid RFC 3339 date-times, including only known valid UTC leap-second instants.", - "aces_contracts.contracts.validate_experiment_run_archival_datetimes", + "raes_contracts.contracts.validate_experiment_run_archival_datetimes", [ {"contract_id": "experiment-run-v1", "instance_path": "#/started_at"}, {"contract_id": "experiment-run-v1", "instance_path": "#/ended_at"}, @@ -108,7 +108,7 @@ def _attach_experiment_datetime_invariants(contract_id: str, json_schema: dict[s "study-archival-times-rfc3339-valid", "Study report_artifacts and export_artifacts created_at values must be valid RFC 3339 date-times, " "including only known valid UTC leap-second instants.", - "aces_contracts.contracts.validate_experiment_study_archival_datetimes", + "raes_contracts.contracts.validate_experiment_study_archival_datetimes", [ {"contract_id": "experiment-study-v1", "instance_path": "#/report_artifacts"}, {"contract_id": "experiment-study-v1", "instance_path": "#/export_artifacts"}, @@ -178,7 +178,7 @@ def _add_carrier_validation_basis_disclosure_invariant( f"{carrier_label}-validation-basis-disclosure-identity-matches", f"Every validation_basis_disclosures entry must declare subject_kind={subject_kind!r} and a subject_ref " f"matching this {carrier_label}'s {carrier_label}_id/{carrier_label}_version.", - validator="aces_contracts.contracts.validation_disclosure.validate_carrier_validation_basis_disclosures", + validator="raes_contracts.contracts.validation_disclosure.validate_carrier_validation_basis_disclosures", inputs=[{"contract_id": contract_id, "instance_path": _CARRIER_DISCLOSURES_INSTANCE_PATH}], ) diff --git a/implementations/python/packages/aces_contracts/contracts/semantic_profiles.py b/implementations/python/packages/raes_contracts/contracts/semantic_profiles.py similarity index 100% rename from implementations/python/packages/aces_contracts/contracts/semantic_profiles.py rename to implementations/python/packages/raes_contracts/contracts/semantic_profiles.py diff --git a/implementations/python/packages/aces_contracts/contracts/time_model.py b/implementations/python/packages/raes_contracts/contracts/time_model.py similarity index 100% rename from implementations/python/packages/aces_contracts/contracts/time_model.py rename to implementations/python/packages/raes_contracts/contracts/time_model.py diff --git a/implementations/python/packages/aces_contracts/contracts/trial_cleanup.py b/implementations/python/packages/raes_contracts/contracts/trial_cleanup.py similarity index 99% rename from implementations/python/packages/aces_contracts/contracts/trial_cleanup.py rename to implementations/python/packages/raes_contracts/contracts/trial_cleanup.py index 1ebe8a653..c59e4dcc4 100644 --- a/implementations/python/packages/aces_contracts/contracts/trial_cleanup.py +++ b/implementations/python/packages/raes_contracts/contracts/trial_cleanup.py @@ -231,7 +231,7 @@ def __get_pydantic_json_schema__(cls, core_schema: CoreSchema, handler: GetJsonS "Cleanup boundary and dependency references resolve, ordering is acyclic, required cleanup is " "verifiable, and retries after non-idempotent effects declare required retry-triggered reset " "obligations covering the affected boundaries or compensation.", - validator="aces_contracts.contracts.TrialCleanupPlanModel._validate_plan", + validator="raes_contracts.contracts.TrialCleanupPlanModel._validate_plan", inputs=[{"contract_id": "trial-cleanup-plan-v1", "instance_path": "#"}], ) return json_schema @@ -320,7 +320,7 @@ def __get_pydantic_json_schema__(cls, core_schema: CoreSchema, handler: GetJsonS "trial-cleanup-receipt-binds-plan-and-required-outcomes", "A cleanup receipt keeps attempt identity distinct, reports cleanup independently from trial outcome, " "covers every triggered required obligation, and permits clean-state claims only after verified success.", - validator="aces_contracts.contracts.validate_trial_cleanup_receipt", + validator="raes_contracts.contracts.validate_trial_cleanup_receipt", inputs=[ {"contract_id": "trial-cleanup-plan-v1", "instance_path": "#"}, {"contract_id": "trial-cleanup-receipt-v1", "instance_path": "#"}, @@ -455,7 +455,7 @@ def __get_pydantic_json_schema__(cls, core_schema: CoreSchema, handler: GetJsonS "scheduler-isolation-serial-default-and-complete-parallel-proof", "Scheduling defaults to serial; bounded parallelism requires independent evidence for range, capacity, " "ports, storage, control-plane locks, and cleanup.", - validator="aces_contracts.contracts.SchedulerIsolationProofModel._validate_isolation", + validator="raes_contracts.contracts.SchedulerIsolationProofModel._validate_isolation", inputs=[{"contract_id": "scheduler-isolation-proof-v1", "instance_path": "#"}], ) return json_schema diff --git a/implementations/python/packages/aces_contracts/contracts/validation_disclosure.py b/implementations/python/packages/raes_contracts/contracts/validation_disclosure.py similarity index 97% rename from implementations/python/packages/aces_contracts/contracts/validation_disclosure.py rename to implementations/python/packages/raes_contracts/contracts/validation_disclosure.py index 7e4dc9fc9..f29e62cdc 100644 --- a/implementations/python/packages/aces_contracts/contracts/validation_disclosure.py +++ b/implementations/python/packages/raes_contracts/contracts/validation_disclosure.py @@ -3,7 +3,7 @@ Records the exact governed validation/admission profile used for one concrete subject, the achieved strength, gate-result rows, and limitations. Joins the ASR-511 catalog by ``(profile_id, profile_version, subject_kind)`` via -:func:`aces_contracts.validation_profiles.select_validation_profile` -- never a +:func:`raes_contracts.validation_profiles.select_validation_profile` -- never a second loader or a carrier-specific enum. Scenario/scenario-snapshot subjects are referenced (``subject_ref``) using their existing stable identity/version/ digest semantics -- this module never modifies the SDL snapshot contract or @@ -12,9 +12,9 @@ ``augmentation_disclosures`` idiom. The gate-result/limitation row shapes and the ADR-072 strength-ordering gate -vocabulary live in :mod:`aces_contracts.contracts.validation_disclosure_gates`; +vocabulary live in :mod:`raes_contracts.contracts.validation_disclosure_gates`; the subject/producer reference shapes live in -:mod:`aces_contracts.contracts.validation_subject_reference`. Both were split +:mod:`raes_contracts.contracts.validation_subject_reference`. Both were split out of this module (issue #259) to keep each file under the repo's 500-line source-file cap -- this module re-imports what it needs from them, so the public surface (including this module's own ``__all__``) is unchanged. @@ -47,8 +47,8 @@ ) if TYPE_CHECKING: - # Deferred: aces_contracts.validation_profiles imports back from this - # package (aces_contracts.contracts), so the runtime lookup happens + # Deferred: raes_contracts.validation_profiles imports back from this + # package (raes_contracts.contracts), so the runtime lookup happens # inside the model_validator method body, not at module import time. # PEP 563 (``from __future__ import annotations``) means these type-only # hints are never evaluated at runtime, so this import is safe here. @@ -253,7 +253,7 @@ def __get_pydantic_json_schema__( json_schema = handler(core_schema) json_schema = handler.resolve_ref_schema(json_schema) validator = ( - "aces_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel." + "raes_contracts.contracts.validation_disclosure.ValidationBasisDisclosureModel." "_validate_validation_basis_disclosure" ) inputs = [ diff --git a/implementations/python/packages/aces_contracts/contracts/validation_disclosure_gates.py b/implementations/python/packages/raes_contracts/contracts/validation_disclosure_gates.py similarity index 98% rename from implementations/python/packages/aces_contracts/contracts/validation_disclosure_gates.py rename to implementations/python/packages/raes_contracts/contracts/validation_disclosure_gates.py index faec8275d..69b55cbfe 100644 --- a/implementations/python/packages/aces_contracts/contracts/validation_disclosure_gates.py +++ b/implementations/python/packages/raes_contracts/contracts/validation_disclosure_gates.py @@ -19,7 +19,7 @@ from .experiment_manifest_references import ExperimentEvidenceRecordReferenceModel # Diagnostic code references are bounded identifiers, matching -# ``aces_contracts.diagnostics.DiagnosticModel.code`` exactly, so a disclosure +# ``raes_contracts.diagnostics.DiagnosticModel.code`` exactly, so a disclosure # can point at a governed diagnostic without inlining its message or payload. DiagnosticCodeRef = Annotated[str, Field(pattern=r"^[a-z0-9]+(?:[.-][a-z0-9]+)*$", max_length=128)] diff --git a/implementations/python/packages/aces_contracts/contracts/validation_subject_reference.py b/implementations/python/packages/raes_contracts/contracts/validation_subject_reference.py similarity index 100% rename from implementations/python/packages/aces_contracts/contracts/validation_subject_reference.py rename to implementations/python/packages/raes_contracts/contracts/validation_subject_reference.py diff --git a/implementations/python/packages/aces_contracts/contracts/validators.py b/implementations/python/packages/raes_contracts/contracts/validators.py similarity index 100% rename from implementations/python/packages/aces_contracts/contracts/validators.py rename to implementations/python/packages/raes_contracts/contracts/validators.py diff --git a/implementations/python/packages/aces_contracts/contracts/vocabulary_sources.py b/implementations/python/packages/raes_contracts/contracts/vocabulary_sources.py similarity index 100% rename from implementations/python/packages/aces_contracts/contracts/vocabulary_sources.py rename to implementations/python/packages/raes_contracts/contracts/vocabulary_sources.py diff --git a/implementations/python/packages/aces_contracts/controlled_vocabularies.py b/implementations/python/packages/raes_contracts/controlled_vocabularies.py similarity index 100% rename from implementations/python/packages/aces_contracts/controlled_vocabularies.py rename to implementations/python/packages/raes_contracts/controlled_vocabularies.py diff --git a/implementations/python/packages/aces_contracts/corpus.py b/implementations/python/packages/raes_contracts/corpus.py similarity index 94% rename from implementations/python/packages/aces_contracts/corpus.py rename to implementations/python/packages/raes_contracts/corpus.py index d37cb22d4..aad20652e 100644 --- a/implementations/python/packages/aces_contracts/corpus.py +++ b/implementations/python/packages/raes_contracts/corpus.py @@ -1,4 +1,4 @@ -"""Single seam for resolving the published ACES contract corpus. +"""Single seam for resolving the published RAES contract corpus. The ``contracts/`` tree at the repository root is the hand-governed normative authority (ADR-009): published schemas, the fixture conformance corpus, backend @@ -7,7 +7,7 @@ reconstructing a repository path, so: * an **installed distribution** finds the corpus shipped as package data under - ``aces_contracts/_corpus`` (see the wheel/sdist ``force-include`` in + ``raes_contracts/_corpus`` (see the wheel/sdist ``force-include`` in ``implementations/python/pyproject.toml``), resolved via ``importlib.resources`` so it is install-layout independent; and * a **source / editable checkout** finds the in-repo ``contracts/`` authority. @@ -27,7 +27,7 @@ from functools import cache from pathlib import Path -_CORPUS_PACKAGE = "aces_contracts" +_CORPUS_PACKAGE = "raes_contracts" _BUNDLED_DIRNAME = "_corpus" _REPO_MARKER = ".ground-control.yaml" _CONTRACTS_DIRNAME = "contracts" @@ -47,7 +47,7 @@ def _bundled_corpus_root() -> Path | None: """Return the packaged corpus root when the distribution bundles it. For an installed (unpacked) wheel/sdist the ``force-include`` lands the - corpus at ``aces_contracts/_corpus``. ``importlib.resources.files`` returns + corpus at ``raes_contracts/_corpus``. ``importlib.resources.files`` returns a concrete filesystem path for such installs, which the corpus loaders need for directory traversal (``glob``). Returns ``None`` when the package ships without bundled data (the source/editable layout), so the caller can fall @@ -100,7 +100,7 @@ def corpus_root() -> Path: if source is not None: return source raise RuntimeError( - "ACES contract corpus is unavailable: the installed distribution does " + "RAES contract corpus is unavailable: the installed distribution does " f"not bundle '{_CORPUS_PACKAGE}/{_BUNDLED_DIRNAME}' and no source " f"checkout ('{_REPO_MARKER}' + '{_CONTRACTS_DIRNAME}/') was found above " f"{__file__}. Reinstall a wheel built with the corpus force-include, or " diff --git a/implementations/python/packages/aces_contracts/diagnostics.py b/implementations/python/packages/raes_contracts/diagnostics.py similarity index 100% rename from implementations/python/packages/aces_contracts/diagnostics.py rename to implementations/python/packages/raes_contracts/diagnostics.py diff --git a/implementations/python/packages/aces_contracts/evaluation.py b/implementations/python/packages/raes_contracts/evaluation.py similarity index 99% rename from implementations/python/packages/aces_contracts/evaluation.py rename to implementations/python/packages/raes_contracts/evaluation.py index 25e66d35c..8f8e3ba6f 100644 --- a/implementations/python/packages/aces_contracts/evaluation.py +++ b/implementations/python/packages/raes_contracts/evaluation.py @@ -7,7 +7,7 @@ from enum import Enum from typing import Any -from aces_contracts._validation import ( +from raes_contracts._validation import ( enum_value, require_dict, require_non_empty_string, @@ -17,7 +17,7 @@ require_optional_string, require_strings, ) -from aces_contracts.versions import EVALUATION_STATE_SCHEMA_VERSION +from raes_contracts.versions import EVALUATION_STATE_SCHEMA_VERSION class EvaluationResultStatus(str, Enum): diff --git a/implementations/python/packages/aces_contracts/experiment_spec.py b/implementations/python/packages/raes_contracts/experiment_spec.py similarity index 98% rename from implementations/python/packages/aces_contracts/experiment_spec.py rename to implementations/python/packages/raes_contracts/experiment_spec.py index 4aaf9d4e3..1b8701147 100644 --- a/implementations/python/packages/aces_contracts/experiment_spec.py +++ b/implementations/python/packages/raes_contracts/experiment_spec.py @@ -18,7 +18,7 @@ from .contracts import ExperimentSpecModel -log = logging.getLogger("aces.experiment_spec") +log = logging.getLogger("raes.experiment_spec") class ExperimentSpecError(Exception): diff --git a/implementations/python/packages/aces_contracts/exploit_path.py b/implementations/python/packages/raes_contracts/exploit_path.py similarity index 98% rename from implementations/python/packages/aces_contracts/exploit_path.py rename to implementations/python/packages/raes_contracts/exploit_path.py index 3630e9ece..d41712134 100644 --- a/implementations/python/packages/aces_contracts/exploit_path.py +++ b/implementations/python/packages/raes_contracts/exploit_path.py @@ -90,7 +90,7 @@ def _validate_canonical_members(self) -> AttackTransitionModel: class AttackGraphBindingModel(ContractModel): - """Governed binding from an admitted ACES snapshot concept to graph content.""" + """Governed binding from an admitted RAES snapshot concept to graph content.""" binding_id: ExploitPathId concept_kind: str = Field(min_length=1, max_length=128, pattern=r"^[a-z][a-z0-9-]*$") @@ -100,7 +100,7 @@ class AttackGraphBindingModel(ContractModel): class NormalizedAttackGraphModel(ContractModel): - """Closed normalized attack graph derived from governed ACES bindings.""" + """Closed normalized attack graph derived from governed RAES bindings.""" profile: Literal["aces-attack-graph/v1"] binding_profile: Literal["aces-sdl-snapshot-attack-binding/v1"] @@ -340,7 +340,7 @@ def __get_pydantic_json_schema__( "exploit-path-evidence-digest-joins", "The snapshot, normalized graph, query, search configuration, witness final state, and unsupported " "reason code joins must validate against their canonical contract digests and diagnostics.", - validator="aces_contracts.exploit_path.ExploitPathAnalysisEvidenceModel._validate_evidence_joins", + validator="raes_contracts.exploit_path.ExploitPathAnalysisEvidenceModel._validate_evidence_joins", inputs=[{"contract_id": "exploit-path-analysis-evidence-v1", "instance_path": "#"}], ) return json_schema diff --git a/implementations/python/packages/aces_contracts/manifest_authority.py b/implementations/python/packages/raes_contracts/manifest_authority.py similarity index 100% rename from implementations/python/packages/aces_contracts/manifest_authority.py rename to implementations/python/packages/raes_contracts/manifest_authority.py diff --git a/implementations/python/packages/aces_contracts/participant_autonomous_state.py b/implementations/python/packages/raes_contracts/participant_autonomous_state.py similarity index 98% rename from implementations/python/packages/aces_contracts/participant_autonomous_state.py rename to implementations/python/packages/raes_contracts/participant_autonomous_state.py index 4d94b74c8..e03b77650 100644 --- a/implementations/python/packages/aces_contracts/participant_autonomous_state.py +++ b/implementations/python/packages/raes_contracts/participant_autonomous_state.py @@ -5,8 +5,8 @@ import re from collections.abc import Iterator, Mapping -from aces_contracts.addressing import require_compiled_address -from aces_contracts.contracts.participant_runtime import ParticipantAutonomousExecutionStateModel +from raes_contracts.addressing import require_compiled_address +from raes_contracts.contracts.participant_runtime import ParticipantAutonomousExecutionStateModel _SNAPSHOT_FIELD = "runtime.snapshot.participant-autonomous-execution-states" _SHA256_DIGEST = re.compile(r"sha256:[0-9a-f]{64}", re.ASCII) diff --git a/implementations/python/packages/aces_contracts/participant_behavior.py b/implementations/python/packages/raes_contracts/participant_behavior.py similarity index 100% rename from implementations/python/packages/aces_contracts/participant_behavior.py rename to implementations/python/packages/raes_contracts/participant_behavior.py diff --git a/implementations/python/packages/aces_contracts/participant_binding.py b/implementations/python/packages/raes_contracts/participant_binding.py similarity index 100% rename from implementations/python/packages/aces_contracts/participant_binding.py rename to implementations/python/packages/raes_contracts/participant_binding.py diff --git a/implementations/python/packages/aces_contracts/participant_concurrency.py b/implementations/python/packages/raes_contracts/participant_concurrency.py similarity index 100% rename from implementations/python/packages/aces_contracts/participant_concurrency.py rename to implementations/python/packages/raes_contracts/participant_concurrency.py diff --git a/implementations/python/packages/aces_contracts/participant_concurrency_time.py b/implementations/python/packages/raes_contracts/participant_concurrency_time.py similarity index 100% rename from implementations/python/packages/aces_contracts/participant_concurrency_time.py rename to implementations/python/packages/raes_contracts/participant_concurrency_time.py diff --git a/implementations/python/packages/aces_contracts/participant_episode.py b/implementations/python/packages/raes_contracts/participant_episode.py similarity index 99% rename from implementations/python/packages/aces_contracts/participant_episode.py rename to implementations/python/packages/raes_contracts/participant_episode.py index ad77c0b80..05194a3eb 100644 --- a/implementations/python/packages/aces_contracts/participant_episode.py +++ b/implementations/python/packages/raes_contracts/participant_episode.py @@ -7,7 +7,7 @@ from enum import Enum from typing import Any -from aces_contracts._validation import ( +from raes_contracts._validation import ( enum_value, optional_enum_value, require_dict, @@ -15,7 +15,7 @@ require_non_negative_int, require_optional_non_empty_string, ) -from aces_contracts.versions import PARTICIPANT_EPISODE_STATE_SCHEMA_VERSION +from raes_contracts.versions import PARTICIPANT_EPISODE_STATE_SCHEMA_VERSION class ParticipantEpisodeStatus(str, Enum): @@ -362,7 +362,7 @@ def iter_participant_episode_snapshot_violations( participant_episode_results: object, participant_episode_history: object, ) -> Iterator[tuple[str, str]]: - from aces_contracts.participant_episode_snapshot import ( + from raes_contracts.participant_episode_snapshot import ( iter_participant_episode_snapshot_violations as _iter_snapshot_violations, ) diff --git a/implementations/python/packages/aces_contracts/participant_episode_snapshot.py b/implementations/python/packages/raes_contracts/participant_episode_snapshot.py similarity index 99% rename from implementations/python/packages/aces_contracts/participant_episode_snapshot.py rename to implementations/python/packages/raes_contracts/participant_episode_snapshot.py index 6fe627a73..9e886be11 100644 --- a/implementations/python/packages/aces_contracts/participant_episode_snapshot.py +++ b/implementations/python/packages/raes_contracts/participant_episode_snapshot.py @@ -4,7 +4,7 @@ from collections.abc import Iterator, Mapping -from aces_contracts.participant_episode import ( +from raes_contracts.participant_episode import ( PARTICIPANT_EPISODE_TERMINAL_EVENTS, ParticipantEpisodeExecutionState, ParticipantEpisodeHistoryEvent, diff --git a/implementations/python/packages/aces_contracts/participant_shared_state.py b/implementations/python/packages/raes_contracts/participant_shared_state.py similarity index 100% rename from implementations/python/packages/aces_contracts/participant_shared_state.py rename to implementations/python/packages/raes_contracts/participant_shared_state.py diff --git a/implementations/python/packages/aces_contracts/plan_projection.py b/implementations/python/packages/raes_contracts/plan_projection.py similarity index 96% rename from implementations/python/packages/aces_contracts/plan_projection.py rename to implementations/python/packages/raes_contracts/plan_projection.py index d344c5909..465cb1ad4 100644 --- a/implementations/python/packages/aces_contracts/plan_projection.py +++ b/implementations/python/packages/raes_contracts/plan_projection.py @@ -1,8 +1,8 @@ """Project internal plan dataclasses into published plan contract models (issue #609). Forward counterpart of the reverse converters in -``aces_runtime.control_plane_api_models``: maps the in-memory -``aces_contracts.planning`` plan dataclasses the planner produces into the +``raes_runtime.control_plane_api_models``: maps the in-memory +``raes_contracts.planning`` plan dataclasses the planner produces into the published ``ProvisioningPlanModel`` / ``OrchestrationPlanModel`` / ``EvaluationPlanModel`` contract models. Constructing each model runs its closed-world (``extra="forbid"``) validators -- unique operation addresses, diff --git a/implementations/python/packages/aces_contracts/planning.py b/implementations/python/packages/raes_contracts/planning.py similarity index 97% rename from implementations/python/packages/aces_contracts/planning.py rename to implementations/python/packages/raes_contracts/planning.py index eca319e21..a9f151872 100644 --- a/implementations/python/packages/aces_contracts/planning.py +++ b/implementations/python/packages/raes_contracts/planning.py @@ -6,11 +6,11 @@ from enum import Enum from typing import TYPE_CHECKING, Any -from aces_contracts.addressing import require_compiled_address -from aces_contracts.diagnostics import Diagnostic +from raes_contracts.addressing import require_compiled_address +from raes_contracts.diagnostics import Diagnostic if TYPE_CHECKING: - from aces_contracts.contracts import RealizationEnvelopeIdentityModel + from raes_contracts.contracts import RealizationEnvelopeIdentityModel class RuntimeDomain(str, Enum): diff --git a/implementations/python/packages/aces_contracts/provenance.py b/implementations/python/packages/raes_contracts/provenance.py similarity index 97% rename from implementations/python/packages/aces_contracts/provenance.py rename to implementations/python/packages/raes_contracts/provenance.py index abda0a195..927522ca5 100644 --- a/implementations/python/packages/aces_contracts/provenance.py +++ b/implementations/python/packages/raes_contracts/provenance.py @@ -148,13 +148,13 @@ def validate_claim_dimensions(self) -> LineageClaimModel: def _validate_native_dimensions(self) -> None: if self.source_refs or self.source_boundaries: - raise ValueError("ACES-native claims must not name an external source boundary") + raise ValueError("RAES-native claims must not name an external source boundary") if not self.internal_authority_refs: - raise ValueError("ACES-native claims require internal authority refs") + raise ValueError("RAES-native claims require internal authority refs") if self.compatibility is not CompatibilityStatus.NOT_APPLICABLE: - raise ValueError("ACES-native claims have no source compatibility relation") + raise ValueError("RAES-native claims have no source compatibility relation") if self.compatibility_direction is not CompatibilityDirection.NOT_APPLICABLE: - raise ValueError("ACES-native claims have no source compatibility direction") + raise ValueError("RAES-native claims have no source compatibility direction") def _validate_external_dimensions(self) -> None: if not self.source_refs or not self.source_boundaries or not self.citation_refs: @@ -164,7 +164,7 @@ def _validate_external_dimensions(self) -> None: if self.classification is LineageClassification.ADOPTED_SEMANTICS and self.plane is not LineagePlane.SEMANTICS: raise ValueError("adopted_semantics is valid only on the semantics plane") if self.compatibility_direction is not CompatibilityDirection.ACES_RELATIVE_TO_SOURCE: - raise ValueError("non-native claims assess ACES relative to the named source") + raise ValueError("non-native claims assess RAES relative to the named source") class LineageSubjectModel(ContractModel): diff --git a/implementations/python/packages/aces_contracts/random_stream_engine.py b/implementations/python/packages/raes_contracts/random_stream_engine.py similarity index 100% rename from implementations/python/packages/aces_contracts/random_stream_engine.py rename to implementations/python/packages/raes_contracts/random_stream_engine.py diff --git a/implementations/python/packages/aces_contracts/random_stream_profiles.py b/implementations/python/packages/raes_contracts/random_stream_profiles.py similarity index 100% rename from implementations/python/packages/aces_contracts/random_stream_profiles.py rename to implementations/python/packages/raes_contracts/random_stream_profiles.py diff --git a/implementations/python/packages/aces_contracts/realization_envelope.py b/implementations/python/packages/raes_contracts/realization_envelope.py similarity index 97% rename from implementations/python/packages/aces_contracts/realization_envelope.py rename to implementations/python/packages/raes_contracts/realization_envelope.py index 94fa0b1a2..49e695c2f 100644 --- a/implementations/python/packages/aces_contracts/realization_envelope.py +++ b/implementations/python/packages/raes_contracts/realization_envelope.py @@ -28,7 +28,7 @@ from pydantic import Field, model_validator -from aces_contracts.bounded_domains import ( +from raes_contracts.bounded_domains import ( BooleanDomain, DomainDescriptor, DomainScalar, @@ -41,9 +41,9 @@ scalar_in_domain, scalar_matches_numeric_type, ) -from aces_contracts.contracts import ContractModel, NonEmptyString, RealizationEnvelopeIdentityModel -from aces_contracts.versions import REALIZATION_ENVELOPE_SCHEMA_VERSION -from aces_contracts.vocabulary import Closure +from raes_contracts.contracts import ContractModel, NonEmptyString, RealizationEnvelopeIdentityModel +from raes_contracts.versions import REALIZATION_ENVELOPE_SCHEMA_VERSION +from raes_contracts.vocabulary import Closure __all__ = [ "BackendRealizationEnvelopeModel", @@ -300,7 +300,7 @@ def _is_singleton_domain(descriptor: DomainDescriptor) -> bool: # Import after the expression types are defined: the carrier embeds # RealizationEnvelopeModel and this module preserves the original public API. -from aces_contracts.realization_envelope_carrier import ( +from raes_contracts.realization_envelope_carrier import ( BackendRealizationEnvelopeModel, ConcernDisposition, IntegerBoundsModel, diff --git a/implementations/python/packages/aces_contracts/realization_envelope_carrier.py b/implementations/python/packages/raes_contracts/realization_envelope_carrier.py similarity index 98% rename from implementations/python/packages/aces_contracts/realization_envelope_carrier.py rename to implementations/python/packages/raes_contracts/realization_envelope_carrier.py index 24d2c343c..ce688ee28 100644 --- a/implementations/python/packages/aces_contracts/realization_envelope_carrier.py +++ b/implementations/python/packages/raes_contracts/realization_envelope_carrier.py @@ -12,8 +12,8 @@ from pydantic.json_schema import JsonSchemaValue from pydantic_core import CoreSchema -from aces_contracts.contracts import ContractModel, NonEmptyString, RealizationEnvelopeIdentityModel -from aces_contracts.realization_envelope import RealizationEnvelopeModel +from raes_contracts.contracts import ContractModel, NonEmptyString, RealizationEnvelopeIdentityModel +from raes_contracts.realization_envelope import RealizationEnvelopeModel DigestString = Annotated[str, Field(pattern=r"^sha256:[a-f0-9]{64}$")] @@ -286,7 +286,7 @@ def __get_pydantic_json_schema__( "and all cross-field realization disclosure semantics must validate together." ), "level": "error", - "validator": "aces_contracts.realization_envelope.validate_backend_realization_envelope", + "validator": "raes_contracts.realization_envelope.validate_backend_realization_envelope", "inputs": [{"contract_id": "realization-envelope-v1", "instance_path": "#"}], } ] diff --git a/implementations/python/packages/aces_contracts/realization_observation.py b/implementations/python/packages/raes_contracts/realization_observation.py similarity index 93% rename from implementations/python/packages/aces_contracts/realization_observation.py rename to implementations/python/packages/raes_contracts/realization_observation.py index 68fed6846..51da8b5ba 100644 --- a/implementations/python/packages/aces_contracts/realization_observation.py +++ b/implementations/python/packages/raes_contracts/realization_observation.py @@ -4,7 +4,7 @@ from dataclasses import dataclass -from aces_contracts.realization_envelope import ObservationStrength, RealizationConcern +from raes_contracts.realization_envelope import ObservationStrength, RealizationConcern @dataclass(frozen=True) diff --git a/implementations/python/packages/aces_contracts/reference_models.py b/implementations/python/packages/raes_contracts/reference_models.py similarity index 100% rename from implementations/python/packages/aces_contracts/reference_models.py rename to implementations/python/packages/raes_contracts/reference_models.py diff --git a/implementations/python/packages/aces_contracts/runtime_state.py b/implementations/python/packages/raes_contracts/runtime_state.py similarity index 95% rename from implementations/python/packages/aces_contracts/runtime_state.py rename to implementations/python/packages/raes_contracts/runtime_state.py index d127e01d0..63b930289 100644 --- a/implementations/python/packages/aces_contracts/runtime_state.py +++ b/implementations/python/packages/raes_contracts/runtime_state.py @@ -9,15 +9,15 @@ from raes.explicitness import ExplicitnessClass, ExplicitnessProvenance -from aces_contracts.addressing import require_compiled_address -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.participant_autonomous_state import require_participant_autonomous_state_snapshot -from aces_contracts.planning import RuntimeDomain -from aces_contracts.versions import OPERATION_SCHEMA_VERSION, RUNTIME_SNAPSHOT_SCHEMA_VERSION +from raes_contracts.addressing import require_compiled_address +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.participant_autonomous_state import require_participant_autonomous_state_snapshot +from raes_contracts.planning import RuntimeDomain +from raes_contracts.versions import OPERATION_SCHEMA_VERSION, RUNTIME_SNAPSHOT_SCHEMA_VERSION if TYPE_CHECKING: - from aces_contracts.contracts import RealizationEnvelopeIdentityModel - from aces_contracts.contracts.time_model import TimeRuntimeStateModel + from raes_contracts.contracts import RealizationEnvelopeIdentityModel + from raes_contracts.contracts.time_model import TimeRuntimeStateModel class OperationState(str, Enum): @@ -264,7 +264,7 @@ def _identity_update( key: str, current: RealizationEnvelopeIdentityModel | None, ) -> RealizationEnvelopeIdentityModel | None: - from aces_contracts.contracts import RealizationEnvelopeIdentityModel + from raes_contracts.contracts import RealizationEnvelopeIdentityModel raw = updates.get(key) if raw is None: @@ -279,7 +279,7 @@ def _time_model_state_update( key: str, current: TimeRuntimeStateModel | None, ) -> TimeRuntimeStateModel | None: - from aces_contracts.contracts.time_model import TimeRuntimeStateModel + from raes_contracts.contracts.time_model import TimeRuntimeStateModel if key not in updates: return current diff --git a/implementations/python/packages/aces_contracts/satisfiability.py b/implementations/python/packages/raes_contracts/satisfiability.py similarity index 99% rename from implementations/python/packages/aces_contracts/satisfiability.py rename to implementations/python/packages/raes_contracts/satisfiability.py index c51f58bb7..4876bc624 100644 --- a/implementations/python/packages/aces_contracts/satisfiability.py +++ b/implementations/python/packages/raes_contracts/satisfiability.py @@ -105,7 +105,7 @@ def _validate_values(self) -> ConstraintClauseModel: class NormalizedConstraintModel(ContractModel): - """Solver-neutral normalized ACES finite-domain constraint model.""" + """Solver-neutral normalized RAES finite-domain constraint model.""" profile: Literal["aces-finite-domain-constraints/v1"] theory_profile: Literal["aces-finite-domain-theory/v1"] diff --git a/implementations/python/packages/aces_contracts/scientific_completeness.py b/implementations/python/packages/raes_contracts/scientific_completeness.py similarity index 100% rename from implementations/python/packages/aces_contracts/scientific_completeness.py rename to implementations/python/packages/raes_contracts/scientific_completeness.py diff --git a/implementations/python/packages/aces_contracts/semantic_binding_effects.py b/implementations/python/packages/raes_contracts/semantic_binding_effects.py similarity index 97% rename from implementations/python/packages/aces_contracts/semantic_binding_effects.py rename to implementations/python/packages/raes_contracts/semantic_binding_effects.py index 47e130e3f..54ce0abc3 100644 --- a/implementations/python/packages/aces_contracts/semantic_binding_effects.py +++ b/implementations/python/packages/raes_contracts/semantic_binding_effects.py @@ -18,7 +18,7 @@ class ExternalKnowledgeBindingEffect(str, Enum): - """Portable SEM-217 effects a binding may have on native ACES meaning.""" + """Portable SEM-217 effects a binding may have on native RAES meaning.""" ANNOTATES = "annotates" CONSTRAINS = "constrains" @@ -48,7 +48,7 @@ def uco_alignment_binding_effects( ) -> dict[str, SemanticBindingEffectRecord]: """Resolve SEM-217 effects for the checked-in UCO alignment catalog. - UCO class links always annotate the native ACES family with reviewed + UCO class links always annotate the native RAES family with reviewed external evidence. Adopted families additionally align with UCO meaning; adapted families refine it and must carry explicit divergences. """ diff --git a/implementations/python/packages/aces_contracts/semantic_profiles.py b/implementations/python/packages/raes_contracts/semantic_profiles.py similarity index 100% rename from implementations/python/packages/aces_contracts/semantic_profiles.py rename to implementations/python/packages/raes_contracts/semantic_profiles.py diff --git a/implementations/python/packages/aces_contracts/uco_alignment.py b/implementations/python/packages/raes_contracts/uco_alignment.py similarity index 100% rename from implementations/python/packages/aces_contracts/uco_alignment.py rename to implementations/python/packages/raes_contracts/uco_alignment.py diff --git a/implementations/python/packages/aces_contracts/validation_profiles.py b/implementations/python/packages/raes_contracts/validation_profiles.py similarity index 100% rename from implementations/python/packages/aces_contracts/validation_profiles.py rename to implementations/python/packages/raes_contracts/validation_profiles.py diff --git a/implementations/python/packages/aces_contracts/versions.py b/implementations/python/packages/raes_contracts/versions.py similarity index 100% rename from implementations/python/packages/aces_contracts/versions.py rename to implementations/python/packages/raes_contracts/versions.py diff --git a/implementations/python/packages/aces_contracts/vocabulary.py b/implementations/python/packages/raes_contracts/vocabulary.py similarity index 97% rename from implementations/python/packages/aces_contracts/vocabulary.py rename to implementations/python/packages/raes_contracts/vocabulary.py index 83141479f..6953c31a1 100644 --- a/implementations/python/packages/aces_contracts/vocabulary.py +++ b/implementations/python/packages/raes_contracts/vocabulary.py @@ -1,4 +1,4 @@ -"""Public vocabulary used by external ACES contracts.""" +"""Public vocabulary used by external RAES contracts.""" from enum import Enum from typing import Annotated diff --git a/implementations/python/packages/aces_contracts/workflow.py b/implementations/python/packages/raes_contracts/workflow.py similarity index 99% rename from implementations/python/packages/aces_contracts/workflow.py rename to implementations/python/packages/raes_contracts/workflow.py index ffe5429ea..b4dd232e1 100644 --- a/implementations/python/packages/aces_contracts/workflow.py +++ b/implementations/python/packages/raes_contracts/workflow.py @@ -10,7 +10,7 @@ from raes.semantics.workflow import WorkflowStepSemanticContract from raes.semantics.workflow import validate_workflow_step_result as _validate_workflow_step_result -from aces_contracts._validation import ( +from raes_contracts._validation import ( enum_value, optional_enum_value, require_dict, @@ -20,7 +20,7 @@ require_string, require_strings, ) -from aces_contracts.versions import WORKFLOW_STATE_SCHEMA_VERSION +from raes_contracts.versions import WORKFLOW_STATE_SCHEMA_VERSION class WorkflowStepLifecycle(str, Enum): diff --git a/implementations/python/packages/aces_mcp/__init__.py b/implementations/python/packages/raes_mcp/__init__.py similarity index 100% rename from implementations/python/packages/aces_mcp/__init__.py rename to implementations/python/packages/raes_mcp/__init__.py diff --git a/implementations/python/packages/raes_mcp/__main__.py b/implementations/python/packages/raes_mcp/__main__.py new file mode 100644 index 000000000..c403395bb --- /dev/null +++ b/implementations/python/packages/raes_mcp/__main__.py @@ -0,0 +1,6 @@ +"""Entry point: ``python -m raes_mcp``.""" + +from raes_mcp.server import main + +if __name__ == "__main__": + main() diff --git a/implementations/python/packages/aces_mcp/server.py b/implementations/python/packages/raes_mcp/server.py similarity index 84% rename from implementations/python/packages/aces_mcp/server.py rename to implementations/python/packages/raes_mcp/server.py index 79a6feedc..54bb66683 100644 --- a/implementations/python/packages/aces_mcp/server.py +++ b/implementations/python/packages/raes_mcp/server.py @@ -1,7 +1,7 @@ """RAES SDL MCP Server - tools for understanding, authoring, and validating SDL scenarios. Launch via: - python -m aces_mcp + python -m raes_mcp # or raes-mcp """ @@ -10,13 +10,13 @@ from mcp.server.fastmcp import FastMCP -from aces_mcp.tools.authoring import register as register_authoring_tools -from aces_mcp.tools.completeness import register as register_completeness_tools -from aces_mcp.tools.experiment_authoring import register as register_experiment_authoring_tools -from aces_mcp.tools.inspection import register as register_inspection_tools -from aces_mcp.tools.language_service import register as register_language_service_tools -from aces_mcp.tools.operations import register as register_operation_tools -from aces_mcp.tools.reference import register as register_reference_tools +from raes_mcp.tools.authoring import register as register_authoring_tools +from raes_mcp.tools.completeness import register as register_completeness_tools +from raes_mcp.tools.experiment_authoring import register as register_experiment_authoring_tools +from raes_mcp.tools.inspection import register as register_inspection_tools +from raes_mcp.tools.language_service import register as register_language_service_tools +from raes_mcp.tools.operations import register as register_operation_tools +from raes_mcp.tools.reference import register as register_reference_tools _INSTRUCTIONS = """\ You are connected to the Reproducible Agentic Environments System (RAES) diff --git a/implementations/python/packages/aces_mcp/tools/__init__.py b/implementations/python/packages/raes_mcp/tools/__init__.py similarity index 100% rename from implementations/python/packages/aces_mcp/tools/__init__.py rename to implementations/python/packages/raes_mcp/tools/__init__.py diff --git a/implementations/python/packages/aces_mcp/tools/authoring.py b/implementations/python/packages/raes_mcp/tools/authoring.py similarity index 100% rename from implementations/python/packages/aces_mcp/tools/authoring.py rename to implementations/python/packages/raes_mcp/tools/authoring.py diff --git a/implementations/python/packages/aces_mcp/tools/completeness.py b/implementations/python/packages/raes_mcp/tools/completeness.py similarity index 96% rename from implementations/python/packages/aces_mcp/tools/completeness.py rename to implementations/python/packages/raes_mcp/tools/completeness.py index db365244c..1657040c9 100644 --- a/implementations/python/packages/aces_mcp/tools/completeness.py +++ b/implementations/python/packages/raes_mcp/tools/completeness.py @@ -7,10 +7,10 @@ from mcp.server.fastmcp import FastMCP -from aces_mcp.tools.operation_support import json_response +from raes_mcp.tools.operation_support import json_response if TYPE_CHECKING: - from aces_contracts.scientific_completeness import CompletenessProfileModel, ProfileCompletenessResult + from raes_contracts.scientific_completeness import CompletenessProfileModel, ProfileCompletenessResult def _authoring_tools(profile_id: str) -> list[str]: @@ -52,7 +52,7 @@ def _profile_summary( def intended_use_profiles(profile_id: str = "") -> dict[str, Any]: """Return the canonical profile catalog or one selected profile.""" - from aces_contracts.scientific_completeness import ( + from raes_contracts.scientific_completeness import ( evaluate_profile_completeness, load_scientific_completeness_assessment, load_scientific_completeness_taxonomy, diff --git a/implementations/python/packages/aces_mcp/tools/experiment_authoring.py b/implementations/python/packages/raes_mcp/tools/experiment_authoring.py similarity index 99% rename from implementations/python/packages/aces_mcp/tools/experiment_authoring.py rename to implementations/python/packages/raes_mcp/tools/experiment_authoring.py index 9dea28701..559197b75 100644 --- a/implementations/python/packages/aces_mcp/tools/experiment_authoring.py +++ b/implementations/python/packages/raes_mcp/tools/experiment_authoring.py @@ -40,7 +40,7 @@ def _run_experiment_validate(spec_content: str) -> str: if len(spec_content.encode("utf-8", errors="replace")) > _MAX_INPUT_BYTES: return f"INPUT TOO LARGE — limit is {_MAX_INPUT_BYTES} bytes." - from aces_contracts.experiment_spec import ( + from raes_contracts.experiment_spec import ( ExperimentSpecValidationError, parse_experiment_spec, ) diff --git a/implementations/python/packages/aces_mcp/tools/inspection.py b/implementations/python/packages/raes_mcp/tools/inspection.py similarity index 100% rename from implementations/python/packages/aces_mcp/tools/inspection.py rename to implementations/python/packages/raes_mcp/tools/inspection.py diff --git a/implementations/python/packages/aces_mcp/tools/language_service.py b/implementations/python/packages/raes_mcp/tools/language_service.py similarity index 98% rename from implementations/python/packages/aces_mcp/tools/language_service.py rename to implementations/python/packages/raes_mcp/tools/language_service.py index 44c1fb1a3..cb7db9004 100644 --- a/implementations/python/packages/aces_mcp/tools/language_service.py +++ b/implementations/python/packages/raes_mcp/tools/language_service.py @@ -13,7 +13,7 @@ language_references, ) -from aces_mcp.tools.operation_support import json_response +from raes_mcp.tools.operation_support import json_response def register(mcp: FastMCP) -> None: diff --git a/implementations/python/packages/aces_mcp/tools/operation_support.py b/implementations/python/packages/raes_mcp/tools/operation_support.py similarity index 99% rename from implementations/python/packages/aces_mcp/tools/operation_support.py rename to implementations/python/packages/raes_mcp/tools/operation_support.py index 99e873fca..547885130 100644 --- a/implementations/python/packages/aces_mcp/tools/operation_support.py +++ b/implementations/python/packages/raes_mcp/tools/operation_support.py @@ -41,7 +41,7 @@ def compile_pipeline( if size_error is not None: return {"error": json.loads(size_error), "stages": [], "scenario": None, "model": None} - from aces_processor.compiler import compile_runtime_model + from raes_processor.compiler import compile_runtime_model from raes import ( SDLInstantiationError, SDLMigrationPolicy, diff --git a/implementations/python/packages/aces_mcp/tools/operations.py b/implementations/python/packages/raes_mcp/tools/operations.py similarity index 95% rename from implementations/python/packages/aces_mcp/tools/operations.py rename to implementations/python/packages/raes_mcp/tools/operations.py index a156ab97a..e54e4dc0e 100644 --- a/implementations/python/packages/aces_mcp/tools/operations.py +++ b/implementations/python/packages/raes_mcp/tools/operations.py @@ -8,7 +8,7 @@ from mcp.server.fastmcp import FastMCP -from aces_mcp.tools.operation_support import ( +from raes_mcp.tools.operation_support import ( claim_assessment, compile_pipeline, design_notes, @@ -114,9 +114,9 @@ def _tool_surface_payload() -> dict[str, object]: def _reference_manifest_payload() -> dict[str, object]: - from aces_backend_protocols.manifest import backend_manifest_payload - from aces_backend_stubs.stubs import create_stub_manifest - from aces_processor.manifest import reference_processor_manifest_payload + from raes_backend_protocols.manifest import backend_manifest_payload + from raes_backend_stubs.stubs import create_stub_manifest + from raes_processor.manifest import reference_processor_manifest_payload backend = backend_manifest_payload(create_stub_manifest()) processor = reference_processor_manifest_payload() @@ -266,8 +266,8 @@ def sdl_plan( if pipeline["error"] is not None: return json_response(pipeline["error"]) - from aces_backend_stubs.stubs import create_stub_manifest - from aces_processor.planner import plan + from raes_backend_stubs.stubs import create_stub_manifest + from raes_processor.planner import plan manifest = create_stub_manifest() execution_plan = plan(pipeline["model"], manifest) @@ -321,8 +321,8 @@ def sdl_design_assessment( if pipeline["error"] is not None: return json_response(pipeline["error"]) - from aces_backend_stubs.stubs import create_stub_manifest - from aces_processor.planner import plan + from raes_backend_stubs.stubs import create_stub_manifest + from raes_processor.planner import plan scenario = pipeline["scenario"] model = pipeline["model"] @@ -361,8 +361,8 @@ def sdl_claims_assessment( if pipeline["error"] is not None: return json_response(pipeline["error"]) - from aces_backend_stubs.stubs import create_stub_manifest - from aces_processor.planner import plan + from raes_backend_stubs.stubs import create_stub_manifest + from raes_processor.planner import plan scenario = pipeline["scenario"] model = pipeline["model"] diff --git a/implementations/python/packages/aces_mcp/tools/reference.py b/implementations/python/packages/raes_mcp/tools/reference.py similarity index 100% rename from implementations/python/packages/aces_mcp/tools/reference.py rename to implementations/python/packages/raes_mcp/tools/reference.py diff --git a/implementations/python/packages/raes_operations/__init__.py b/implementations/python/packages/raes_operations/__init__.py new file mode 100644 index 000000000..8fa490868 --- /dev/null +++ b/implementations/python/packages/raes_operations/__init__.py @@ -0,0 +1 @@ +"""Operational RAES workflows that coordinate runtime and backend packages.""" diff --git a/implementations/python/packages/aces_operations/_cross_backend_corpus_backend_runs.py b/implementations/python/packages/raes_operations/_cross_backend_corpus_backend_runs.py similarity index 97% rename from implementations/python/packages/aces_operations/_cross_backend_corpus_backend_runs.py rename to implementations/python/packages/raes_operations/_cross_backend_corpus_backend_runs.py index 2ff563181..abaf79c46 100644 --- a/implementations/python/packages/aces_operations/_cross_backend_corpus_backend_runs.py +++ b/implementations/python/packages/raes_operations/_cross_backend_corpus_backend_runs.py @@ -4,8 +4,8 @@ realization of the authored reference scenario. Two descriptors -- one libvirt, one APTL -- are the ``backend_runs`` of the cross-backend invariant ledger. -Only stable ACES-side facts cross into a descriptor: the authored scenario -identity/digest, the compiled ACES address sets, backend id + capability profile, +Only stable RAES-side facts cross into a descriptor: the authored scenario +identity/digest, the compiled RAES address sets, backend id + capability profile, topology basis + network-attachment matrix, per-surface evidence coverage, and disclosed limitations. Backend-private semantics (libvirt domain UUIDs/XML, QEMU command lines, host paths; APTL container ids, Compose service names, Docker @@ -18,7 +18,7 @@ (``examples/scenarios/enterprise-participant-evidence-loop.README.md`` + Brad-Edwards/aptl#558) marked ``external-summarized``; when an operator supplies a real APTL evidence export, the same descriptor is built from that file's allowlisted portable fields and marked -``external-artifact-summarized``. ACES never imports APTL-private schemas. +``external-artifact-summarized``. RAES never imports APTL-private schemas. """ from __future__ import annotations @@ -122,7 +122,7 @@ def build_libvirt_backend_run(artifact: Mapping[str, Any]) -> dict[str, Any]: "evidence_locator": { "kind": "regenerable-artifact", "schema": str(artifact.get("schema", "")), - "command": "aces libvirt evidence validate", + "command": "raes libvirt evidence validate", }, "backend_manifest": _backend_identity(artifact), "capability_profile": _mapping(backend.get("capability_profile")), @@ -173,7 +173,7 @@ def _aptl_summary_descriptor(scenario: Mapping[str, Any], address_sets: Mapping[ ], "limitations": [ "APTL evidence is summarized and linked, not re-executed in this repository or embedded here.", - "The authored scenario identity is the ACES-side authored digest both backends consume; byte-level " + "The authored scenario identity is the RAES-side authored digest both backends consume; byte-level " f"confirmation against the APTL export ({_APTL_EVIDENCE_ISSUE}) is external to this repository.", "No APTL-private container ids, Compose service names, Docker inspect payloads, or raw Wazuh rule " "bodies are recorded as portable semantics.", @@ -217,7 +217,7 @@ def _apply_export_addresses( export_sets = {cls: sorted(str(a) for a in _sequence(export_addresses.get(cls))) for cls in aces_sets} descriptor["compiled_address_sets"] = export_sets return [ - f"APTL export compiled_address_sets[{cls}] differs from the compiled ACES address set" + f"APTL export compiled_address_sets[{cls}] differs from the compiled RAES address set" for cls in aces_sets if export_sets[cls] != aces_sets[cls] ] @@ -241,7 +241,7 @@ def _aptl_from_export( Only ``_APTL_PORTABLE_KEYS`` are read; everything else (including any backend-private field) is ignored. The authored scenario identity/addresses come from the export when it supplies them, so a divergent export honestly fails - rather than silently inheriting the ACES-side values. + rather than silently inheriting the RAES-side values. """ descriptor = _aptl_summary_descriptor(scenario, address_sets) descriptor["evidence_provenance"] = "external-artifact-summarized" diff --git a/implementations/python/packages/aces_operations/_cross_backend_corpus_ledger.py b/implementations/python/packages/raes_operations/_cross_backend_corpus_ledger.py similarity index 98% rename from implementations/python/packages/aces_operations/_cross_backend_corpus_ledger.py rename to implementations/python/packages/raes_operations/_cross_backend_corpus_ledger.py index 356d36343..31e56d5ce 100644 --- a/implementations/python/packages/aces_operations/_cross_backend_corpus_ledger.py +++ b/implementations/python/packages/raes_operations/_cross_backend_corpus_ledger.py @@ -5,7 +5,7 @@ issue #600 acceptance criteria: * ``preserved_invariants`` -- facts held identical across both backends (authored - scenario digest, compiled ACES address sets, recorded evidence surfaces), each + scenario digest, compiled RAES address sets, recorded evidence surfaces), each annotated with the per-backend basis (verified-in-artifact vs external-summarized) so an external summary is never presented as an independently verified fact; * ``realization_differences`` -- where the two realizations legitimately differ @@ -23,7 +23,7 @@ from collections.abc import Mapping, Sequence from typing import Any -from aces_operations._cross_backend_corpus_backend_runs import ACCEPTED_EVIDENCE_SURFACES +from raes_operations._cross_backend_corpus_backend_runs import ACCEPTED_EVIDENCE_SURFACES _ADDRESS_CLASSES: tuple[str, ...] = ( "participant_behaviors", diff --git a/implementations/python/packages/aces_operations/_cross_backend_corpus_validation.py b/implementations/python/packages/raes_operations/_cross_backend_corpus_validation.py similarity index 98% rename from implementations/python/packages/aces_operations/_cross_backend_corpus_validation.py rename to implementations/python/packages/raes_operations/_cross_backend_corpus_validation.py index b1191a9ab..cf05f2c9a 100644 --- a/implementations/python/packages/aces_operations/_cross_backend_corpus_validation.py +++ b/implementations/python/packages/raes_operations/_cross_backend_corpus_validation.py @@ -13,7 +13,7 @@ from collections.abc import Mapping from typing import Any -from aces_operations._evidence_run_validation import redaction_violations +from raes_operations._evidence_run_validation import redaction_violations CORPUS_SCHEMA = "aces.cross-backend-evidence-corpus/v1" diff --git a/implementations/python/packages/aces_operations/_evidence_run_artifact.py b/implementations/python/packages/raes_operations/_evidence_run_artifact.py similarity index 97% rename from implementations/python/packages/aces_operations/_evidence_run_artifact.py rename to implementations/python/packages/raes_operations/_evidence_run_artifact.py index cbb4f5076..f617b7e02 100644 --- a/implementations/python/packages/aces_operations/_evidence_run_artifact.py +++ b/implementations/python/packages/raes_operations/_evidence_run_artifact.py @@ -5,8 +5,8 @@ native substrate snapshot. Section builders only read duck-typed runtime-layer objects and copy allowlisted, bounded fields, so no raw libvirt/backend internals reach the artifact. The backend section embeds the canonical ``BackendManifestV2`` -payload rendered by the pure ``aces_backend_protocols`` manifest/capability helpers -(ADR-036 allows ``aces_operations`` those two side-effect-free renderers) so the +payload rendered by the pure ``raes_backend_protocols`` manifest/capability helpers +(ADR-036 allows ``raes_operations`` those two side-effect-free renderers) so the evidence carries the same backend contract the rest of the stack uses, not a hand-rolled summary. Split from ``libvirt_evidence_run`` to keep each module under the ADR-015 source-size cap. @@ -20,19 +20,19 @@ from pathlib import Path from typing import Any -from aces_backend_libvirt.techvault_native import expected_surface -from aces_backend_protocols.capabilities import ( +from raes_backend_libvirt.techvault_native import expected_surface +from raes_backend_protocols.capabilities import ( observation_capability_contract_gaps, participant_runtime_capability_contract_gaps, ) -from aces_backend_protocols.manifest import backend_manifest_payload -from aces_contracts.contracts import ( +from raes_backend_protocols.manifest import backend_manifest_payload +from raes_contracts.contracts import ( EvaluationHistoryEventModel, EvaluationResultStateModel, ExperimentRealizedFormDisclosureModel, ) -from aces_operations._evidence_run_types import ( +from raes_operations._evidence_run_types import ( BackendManifest, CompiledModel, EvidenceArtifactInputs, @@ -40,7 +40,7 @@ RealizedNetwork, TerminalSnapshot, ) -from aces_operations.run_artifacts import portable_artifact_ref +from raes_operations.run_artifacts import portable_artifact_ref EVIDENCE_RUN_SCHEMA = "aces.libvirt.scenario-evidence-run/v1" _LIBVIRT_BACKEND_NAME = "libvirt-qemu" @@ -55,7 +55,7 @@ "No Wazuh detection-quality claim.", "No model-defense robustness claim.", "No byte-equivalence or application-internals equivalence claim between libvirt appliances and APTL containers.", - "No full semantic-equivalence claim beyond the invariant ledger in Brad-Edwards/aces#600.", + "No full semantic-equivalence claim beyond the invariant ledger in RAESystem/rae#600.", ) @@ -586,7 +586,7 @@ def _invariant_ledger_refs(model: CompiledModel, scenario_section: Mapping[str, "evaluator_outcome", ], "note": ( - "Stable ACES addresses and evidence refs for the Brad-Edwards/aces#600 cross-backend invariant ledger; " + "Stable RAES addresses and evidence refs for the RAESystem/rae#600 cross-backend invariant ledger; " "no libvirt domain UUIDs, host paths, or APTL-private identifiers." ), } diff --git a/implementations/python/packages/aces_operations/_evidence_run_native.py b/implementations/python/packages/raes_operations/_evidence_run_native.py similarity index 97% rename from implementations/python/packages/aces_operations/_evidence_run_native.py rename to implementations/python/packages/raes_operations/_evidence_run_native.py index 01fa2d4e8..e97c726fe 100644 --- a/implementations/python/packages/aces_operations/_evidence_run_native.py +++ b/implementations/python/packages/raes_operations/_evidence_run_native.py @@ -16,11 +16,11 @@ from pathlib import Path from typing import Any -from aces_backend_libvirt.techvault_native import TechVaultNativeLibvirtDriver -from aces_runtime.control_plane import RuntimeControlPlane +from raes_backend_libvirt.techvault_native import TechVaultNativeLibvirtDriver +from raes_runtime.control_plane import RuntimeControlPlane -from aces_operations._evidence_run_types import EvidenceCheck, ExecutionPlan, LibvirtEvidenceRunConfig -from aces_operations._techvault_cleanup import cleanup_native_snapshot +from raes_operations._evidence_run_types import EvidenceCheck, ExecutionPlan, LibvirtEvidenceRunConfig +from raes_operations._techvault_cleanup import cleanup_native_snapshot def _run_native_mode( @@ -79,7 +79,7 @@ def _default_native_driver_factory( def factory() -> TechVaultNativeLibvirtDriver: if mode == "guest-certified": - from aces_backend_libvirt.guest_certified_driver import GuestCertifiedLibvirtDriver + from raes_backend_libvirt.guest_certified_driver import GuestCertifiedLibvirtDriver return GuestCertifiedLibvirtDriver( state_dir=state_dir, diff --git a/implementations/python/packages/aces_operations/_evidence_run_realization.py b/implementations/python/packages/raes_operations/_evidence_run_realization.py similarity index 100% rename from implementations/python/packages/aces_operations/_evidence_run_realization.py rename to implementations/python/packages/raes_operations/_evidence_run_realization.py diff --git a/implementations/python/packages/aces_operations/_evidence_run_types.py b/implementations/python/packages/raes_operations/_evidence_run_types.py similarity index 96% rename from implementations/python/packages/aces_operations/_evidence_run_types.py rename to implementations/python/packages/raes_operations/_evidence_run_types.py index d8bc8a0c5..b1afdef4a 100644 --- a/implementations/python/packages/aces_operations/_evidence_run_types.py +++ b/implementations/python/packages/raes_operations/_evidence_run_types.py @@ -4,8 +4,8 @@ builder and producer read — the compiled model, its node/network/boundary deployments, the participant behaviors and action contracts, the terminal snapshot, and the execution plan. They are structural (no ``isinstance`` use), so they give a -more specific type than ``Any`` *without* importing the concrete ``aces_processor`` -model classes, which ADR-036 walls off from ``aces_operations``. ``BackendManifest`` +more specific type than ``Any`` *without* importing the concrete ``raes_processor`` +model classes, which ADR-036 walls off from ``raes_operations``. ``BackendManifest`` is imported from the allowed pure-capabilities module. Kept in a separate module so ``_evidence_run_artifact`` stays under the ADR-015 @@ -19,7 +19,7 @@ from pathlib import Path from typing import Any, Literal, Protocol -from aces_backend_protocols.capabilities import BackendManifest +from raes_backend_protocols.capabilities import BackendManifest __all__ = [ "ActionContract", diff --git a/implementations/python/packages/aces_operations/_evidence_run_validation.py b/implementations/python/packages/raes_operations/_evidence_run_validation.py similarity index 97% rename from implementations/python/packages/aces_operations/_evidence_run_validation.py rename to implementations/python/packages/raes_operations/_evidence_run_validation.py index 8951f2d0e..4b4e72a77 100644 --- a/implementations/python/packages/aces_operations/_evidence_run_validation.py +++ b/implementations/python/packages/raes_operations/_evidence_run_validation.py @@ -14,7 +14,7 @@ from collections.abc import Mapping from typing import Any -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( BackendManifestV2Model, EvaluationHistoryEventModel, EvaluationResultStateModel, @@ -22,8 +22,8 @@ ) from pydantic import BaseModel -from aces_operations._evidence_run_artifact import EVIDENCE_RUN_SCHEMA -from aces_operations._evidence_run_realization import _validate_realization_sources +from raes_operations._evidence_run_artifact import EVIDENCE_RUN_SCHEMA +from raes_operations._evidence_run_realization import _validate_realization_sources # Redaction gate: substrings/patterns that must never appear in the artifact. _FORBIDDEN_REDACTION_PATTERNS: tuple[tuple[re.Pattern[str], str], ...] = ( diff --git a/implementations/python/packages/aces_operations/_techvault_cleanup.py b/implementations/python/packages/raes_operations/_techvault_cleanup.py similarity index 96% rename from implementations/python/packages/aces_operations/_techvault_cleanup.py rename to implementations/python/packages/raes_operations/_techvault_cleanup.py index 16c9e8c8d..6adeb0224 100644 --- a/implementations/python/packages/aces_operations/_techvault_cleanup.py +++ b/implementations/python/packages/raes_operations/_techvault_cleanup.py @@ -4,7 +4,7 @@ from collections.abc import Mapping, Sequence -from aces_backend_libvirt.techvault_native import TechVaultNativeLibvirtDriver +from raes_backend_libvirt.techvault_native import TechVaultNativeLibvirtDriver def cleanup_native_snapshot( diff --git a/implementations/python/packages/aces_operations/cross_backend_corpus.py b/implementations/python/packages/raes_operations/cross_backend_corpus.py similarity index 90% rename from implementations/python/packages/aces_operations/cross_backend_corpus.py rename to implementations/python/packages/raes_operations/cross_backend_corpus.py index 7b6b490d7..7290b2069 100644 --- a/implementations/python/packages/aces_operations/cross_backend_corpus.py +++ b/implementations/python/packages/raes_operations/cross_backend_corpus.py @@ -1,6 +1,6 @@ """Cross-backend evidence corpus producer (issue #600). -Assembles the backend-paired demonstration corpus for the ACES reference +Assembles the backend-paired demonstration corpus for the RAES reference scenario: one libvirt reference-backend realization and one APTL realization of the *same authored scenario*, compared through an inspectable cross-backend invariant ledger (``aces.cross-backend-evidence-corpus/v1``). @@ -18,7 +18,7 @@ ``examples/corpus/reference-demonstration/`` is drift-testable. The full timestamped libvirt evidence stays in its own regenerable run archive. -ADR-036 module boundary: this orchestrates only ``aces_operations`` producers and +ADR-036 module boundary: this orchestrates only ``raes_operations`` producers and the shared ``run_artifacts`` writer; assembly/ledger/validation live in the ``_cross_backend_corpus_*`` modules to stay under the ADR-015 source-size cap. """ @@ -29,18 +29,18 @@ from pathlib import Path from typing import Any -from aces_operations._cross_backend_corpus_backend_runs import build_aptl_backend_run, build_libvirt_backend_run -from aces_operations._cross_backend_corpus_ledger import build_invariant_ledger -from aces_operations._cross_backend_corpus_validation import ( +from raes_operations._cross_backend_corpus_backend_runs import build_aptl_backend_run, build_libvirt_backend_run +from raes_operations._cross_backend_corpus_ledger import build_invariant_ledger +from raes_operations._cross_backend_corpus_validation import ( CORPUS_SCHEMA, validate_cross_backend_corpus_artifact, ) -from aces_operations.libvirt_evidence_run import ( +from raes_operations.libvirt_evidence_run import ( EvidenceCheck, LibvirtEvidenceRunConfig, run_libvirt_evidence_run, ) -from aces_operations.run_artifacts import atomic_write_json_artifact +from raes_operations.run_artifacts import atomic_write_json_artifact __all__ = [ "CORPUS_SCHEMA", @@ -61,17 +61,17 @@ ) _LINKS: dict[str, str] = { - "issue": "Brad-Edwards/aces#600", - "authored_scenario_issue": "Brad-Edwards/aces#598", - "libvirt_participant_runtime": "Brad-Edwards/aces#614", - "libvirt_evidence": "Brad-Edwards/aces#615", + "issue": "RAESystem/rae#600", + "authored_scenario_issue": "RAESystem/rae#598", + "libvirt_participant_runtime": "RAESystem/rae#614", + "libvirt_evidence": "RAESystem/rae#615", "aptl_evidence": "Brad-Edwards/aptl#558", } _REDACTION_PROVENANCE: dict[str, Any] = { "policy": ( - "The corpus copies only portable, bounded ACES-side facts from each backend run: authored scenario " - "identity/digest, compiled ACES address sets, backend id/capability profile, topology basis and network " + "The corpus copies only portable, bounded RAES-side facts from each backend run: authored scenario " + "identity/digest, compiled RAES address sets, backend id/capability profile, topology basis and network " "attachment matrix, per-surface evidence coverage, and disclosed limitations. Backend-private semantics are " "never recorded." ), @@ -143,7 +143,7 @@ def _assemble_corpus( "corpus": { "name": "enterprise-participant-evidence-loop-n2", "claim": ( - "n=2 independent backend realizations (libvirt reference backend + APTL) of the same authored ACES " + "n=2 independent backend realizations (libvirt reference backend + APTL) of the same authored RAES " "reference scenario, compared through an inspectable invariant ledger." ), }, diff --git a/implementations/python/packages/aces_operations/deterministic_participant_fixtures.py b/implementations/python/packages/raes_operations/deterministic_participant_fixtures.py similarity index 96% rename from implementations/python/packages/aces_operations/deterministic_participant_fixtures.py rename to implementations/python/packages/raes_operations/deterministic_participant_fixtures.py index 33e891f0e..1ad8afcc2 100644 --- a/implementations/python/packages/aces_operations/deterministic_participant_fixtures.py +++ b/implementations/python/packages/raes_operations/deterministic_participant_fixtures.py @@ -1,9 +1,9 @@ """Deterministic participant-proof fixtures shared across the libvirt participant proof and the libvirt scenario-evidence producer. -This module builds from ``aces_contracts`` plus the shared structural ``Protocol`` -types in ``_evidence_run_types`` only (ADR-036: ``aces_operations`` never imports -``aces_processor`` or ``aces_backend_libvirt`` internals — the structural types name +This module builds from ``raes_contracts`` plus the shared structural ``Protocol`` +types in ``_evidence_run_types`` only (ADR-036: ``raes_operations`` never imports +``raes_processor`` or ``raes_backend_libvirt`` internals — the structural types name the compiled-model shapes without importing the concrete processor classes). It builds the deterministic participant-implementation manifest, selection, typed action result, and admission request from compiled-model objects passed in by the @@ -20,14 +20,14 @@ from collections.abc import Mapping -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( ParticipantActionResultModel, ParticipantImplementationManifestModel, ParticipantImplementationSelectionModel, ) -from aces_contracts.participant_binding import ParticipantActionAdmissionRequest +from raes_contracts.participant_binding import ParticipantActionAdmissionRequest -from aces_operations._evidence_run_types import ActionContract, ObservationBoundary, ParticipantBehavior +from raes_operations._evidence_run_types import ActionContract, ObservationBoundary, ParticipantBehavior AGENT_IDENTITY = {"name": "libvirt-deterministic-agent", "version": "1.0.0"} MANIFEST_REF = "contracts/fixtures/participant-implementation-manifest/libvirt-deterministic.json" diff --git a/implementations/python/packages/aces_operations/libvirt_evidence_run.py b/implementations/python/packages/raes_operations/libvirt_evidence_run.py similarity index 92% rename from implementations/python/packages/aces_operations/libvirt_evidence_run.py rename to implementations/python/packages/raes_operations/libvirt_evidence_run.py index ae00bbe3d..48fd3fea6 100644 --- a/implementations/python/packages/aces_operations/libvirt_evidence_run.py +++ b/implementations/python/packages/raes_operations/libvirt_evidence_run.py @@ -1,6 +1,6 @@ """Libvirt evidence-run evaluator-evidence artifact producer. -Composes existing ACES surfaces — the libvirt participant runtime (issue #614, via +Composes existing RAES surfaces — the libvirt participant runtime (issue #614, via the runtime control plane), the native libvirt substrate realization (issue #601), the backend manifest, and the experiment/evaluation contracts — into one stable, validated run artifact (``aces.libvirt.scenario-evidence-run/v1``) that carries @@ -9,10 +9,10 @@ published-contract payloads and bounded summaries; it is NOT a new published contract. -ADR-036 module boundary: ``aces_operations`` orchestrates the libvirt backend only -through ``aces_backend_libvirt.target`` / ``aces_backend_libvirt.techvault_native``, -the ``aces_runtime`` control plane / manager, ``raes.parser``, and -``aces_contracts``. It never imports the processor or backend internals; the +ADR-036 module boundary: ``raes_operations`` orchestrates the libvirt backend only +through ``raes_backend_libvirt.target`` / ``raes_backend_libvirt.techvault_native``, +the ``raes_runtime`` control plane / manager, ``raes.parser``, and +``raes_contracts``. It never imports the processor or backend internals; the compiled runtime model is read from ``ExecutionPlan.model`` (a runtime-layer output). Deep processor-iterator validation of the participant proof is performed by the issue #614 test suite, not by this shipped producer. @@ -41,27 +41,27 @@ from pathlib import Path from typing import Any -from aces_backend_libvirt.target import create_libvirt_target -from aces_backend_libvirt.techvault_native import TechVaultNativeLibvirtDriver -from aces_runtime.control_plane import RuntimeControlPlane -from aces_runtime.manager import RuntimeManager +from raes_backend_libvirt.target import create_libvirt_target +from raes_backend_libvirt.techvault_native import TechVaultNativeLibvirtDriver +from raes_runtime.control_plane import RuntimeControlPlane +from raes_runtime.manager import RuntimeManager from raes.parser import parse_sdl_file -from aces_operations._evidence_run_artifact import EVIDENCE_RUN_SCHEMA, assemble_artifact -from aces_operations._evidence_run_native import _default_native_driver_factory, _run_native_mode -from aces_operations._evidence_run_types import ( +from raes_operations._evidence_run_artifact import EVIDENCE_RUN_SCHEMA, assemble_artifact +from raes_operations._evidence_run_native import _default_native_driver_factory, _run_native_mode +from raes_operations._evidence_run_types import ( CompiledModel, EvidenceArtifactInputs, EvidenceCheck, LibvirtEvidenceRunConfig, ParticipantBehavior, ) -from aces_operations._evidence_run_validation import validate_libvirt_evidence_run_artifact -from aces_operations.deterministic_participant_fixtures import ( +from raes_operations._evidence_run_validation import validate_libvirt_evidence_run_artifact +from raes_operations.deterministic_participant_fixtures import ( build_participant_admission_request, iter_admission_pairs, ) -from aces_operations.run_artifacts import atomic_write_json_artifact, is_valid_run_id_label, run_artifact_path +from raes_operations.run_artifacts import atomic_write_json_artifact, is_valid_run_id_label, run_artifact_path __all__ = [ "EVIDENCE_RUN_SCHEMA", diff --git a/implementations/python/packages/aces_operations/realization_conformance.py b/implementations/python/packages/raes_operations/realization_conformance.py similarity index 85% rename from implementations/python/packages/aces_operations/realization_conformance.py rename to implementations/python/packages/raes_operations/realization_conformance.py index d52e18435..e0b751b8a 100644 --- a/implementations/python/packages/aces_operations/realization_conformance.py +++ b/implementations/python/packages/raes_operations/realization_conformance.py @@ -5,8 +5,8 @@ from collections.abc import Mapping from pathlib import Path -from aces_operations._evidence_run_validation import redaction_violations -from aces_operations.run_artifacts import atomic_write_json_artifact, run_artifact_path +from raes_operations._evidence_run_validation import redaction_violations +from raes_operations.run_artifacts import atomic_write_json_artifact, run_artifact_path def write_backend_conformance_report( diff --git a/implementations/python/packages/aces_operations/run_artifacts.py b/implementations/python/packages/raes_operations/run_artifacts.py similarity index 100% rename from implementations/python/packages/aces_operations/run_artifacts.py rename to implementations/python/packages/raes_operations/run_artifacts.py diff --git a/implementations/python/packages/aces_operations/techvault_live.py b/implementations/python/packages/raes_operations/techvault_live.py similarity index 95% rename from implementations/python/packages/aces_operations/techvault_live.py rename to implementations/python/packages/raes_operations/techvault_live.py index 0a45c2063..e8d14ca2d 100644 --- a/implementations/python/packages/aces_operations/techvault_live.py +++ b/implementations/python/packages/raes_operations/techvault_live.py @@ -1,4 +1,4 @@ -"""Native ACES/libvirt live validation for TechVault scenarios.""" +"""Native RAES/libvirt live validation for TechVault scenarios.""" from __future__ import annotations @@ -11,15 +11,15 @@ from pathlib import Path from typing import Any -from aces_backend_libvirt.target import create_libvirt_target -from aces_backend_libvirt.techvault_native import TechVaultNativeLibvirtDriver, expected_surface -from aces_runtime.control_plane import RuntimeControlPlane -from aces_runtime.manager import RuntimeManager +from raes_backend_libvirt.target import create_libvirt_target +from raes_backend_libvirt.techvault_native import TechVaultNativeLibvirtDriver, expected_surface +from raes_runtime.control_plane import RuntimeControlPlane +from raes_runtime.manager import RuntimeManager from raes.parser import parse_sdl_file -from aces_operations._evidence_run_validation import redaction_violations -from aces_operations._techvault_cleanup import cleanup_native_snapshot -from aces_operations.run_artifacts import ( +from raes_operations._evidence_run_validation import redaction_violations +from raes_operations._techvault_cleanup import cleanup_native_snapshot +from raes_operations.run_artifacts import ( atomic_write_json_artifact, is_valid_run_id_label, portable_artifact_ref, @@ -32,7 +32,7 @@ @dataclass(frozen=True) class LiveCheck: - """One ACES/libvirt TechVault live check.""" + """One RAES/libvirt TechVault live check.""" name: str passed: bool @@ -41,7 +41,7 @@ class LiveCheck: @dataclass(frozen=True) class TechVaultLiveReport: - """Rendered outcome for the native ACES/libvirt TechVault live gate.""" + """Rendered outcome for the native RAES/libvirt TechVault live gate.""" scenario: str output_dir: str @@ -55,7 +55,7 @@ def passed(self) -> bool: def render(self) -> str: status = "PASS" if self.passed else "FAIL" - lines = [f"ACES/libvirt native TechVault live gate -- scenario={self.scenario} run_id={self.run_id}: {status}"] + lines = [f"RAES/libvirt native TechVault live gate -- scenario={self.scenario} run_id={self.run_id}: {status}"] for check in self.checks: marker = "ok" if check.passed else "FAIL" lines.append(f" [{marker}] {check.name}") @@ -68,7 +68,7 @@ def render(self) -> str: @dataclass(frozen=True) class TechVaultLiveConfig: - """Runtime controls for the native ACES/libvirt TechVault live gate.""" + """Runtime controls for the native RAES/libvirt TechVault live gate.""" connection_uri: str = "qemu:///system" @@ -81,7 +81,7 @@ def validate_techvault_live( config: TechVaultLiveConfig | None = None, driver_factory: Callable[[], TechVaultNativeLibvirtDriver] | None = None, ) -> TechVaultLiveReport: - """Boot and validate a TechVault SDL through native ACES/libvirt.""" + """Boot and validate a TechVault SDL through native RAES/libvirt.""" settings = config or TechVaultLiveConfig() output_dir = project_dir diff --git a/implementations/python/packages/aces_processor/__init__.py b/implementations/python/packages/raes_processor/__init__.py similarity index 100% rename from implementations/python/packages/aces_processor/__init__.py rename to implementations/python/packages/raes_processor/__init__.py diff --git a/implementations/python/packages/aces_processor/capabilities.py b/implementations/python/packages/raes_processor/capabilities.py similarity index 96% rename from implementations/python/packages/aces_processor/capabilities.py rename to implementations/python/packages/raes_processor/capabilities.py index e4888330d..2ad98320e 100644 --- a/implementations/python/packages/aces_processor/capabilities.py +++ b/implementations/python/packages/raes_processor/capabilities.py @@ -4,12 +4,12 @@ from dataclasses import dataclass -from aces_contracts.apparatus import ApparatusIdentity, ConceptBinding -from aces_contracts.manifest_authority import ( +from raes_contracts.apparatus import ApparatusIdentity, ConceptBinding +from raes_contracts.manifest_authority import ( validate_processor_supported_contract_versions, validate_processor_supported_sdl_versions, ) -from aces_contracts.vocabulary import ProcessorFeature +from raes_contracts.vocabulary import ProcessorFeature @dataclass(frozen=True) diff --git a/implementations/python/packages/aces_processor/compiler/__init__.py b/implementations/python/packages/raes_processor/compiler/__init__.py similarity index 85% rename from implementations/python/packages/aces_processor/compiler/__init__.py rename to implementations/python/packages/raes_processor/compiler/__init__.py index a18efc23f..a43ae011e 100644 --- a/implementations/python/packages/aces_processor/compiler/__init__.py +++ b/implementations/python/packages/raes_processor/compiler/__init__.py @@ -2,7 +2,7 @@ Public facade for the compiler package. The compilation logic is split across package-private submodules (foundations -> domain compilers -> pipeline); this -module re-exports the stable public API so ``aces_processor.compiler`` keeps its +module re-exports the stable public API so ``raes_processor.compiler`` keeps its external contract. """ diff --git a/implementations/python/packages/aces_processor/compiler/_mixed_control.py b/implementations/python/packages/raes_processor/compiler/_mixed_control.py similarity index 100% rename from implementations/python/packages/aces_processor/compiler/_mixed_control.py rename to implementations/python/packages/raes_processor/compiler/_mixed_control.py diff --git a/implementations/python/packages/aces_processor/compiler/addresses.py b/implementations/python/packages/raes_processor/compiler/addresses.py similarity index 98% rename from implementations/python/packages/aces_processor/compiler/addresses.py rename to implementations/python/packages/raes_processor/compiler/addresses.py index a0380417a..baf4fb77e 100644 --- a/implementations/python/packages/aces_processor/compiler/addresses.py +++ b/implementations/python/packages/raes_processor/compiler/addresses.py @@ -2,7 +2,7 @@ from collections.abc import Mapping -from aces_backend_protocols.domain_topology import DomainTopologyBinding +from raes_backend_protocols.domain_topology import DomainTopologyBinding from raes.nodes import NodeType from raes.scenario import InstantiatedScenario, Scenario from raes.semantics.domain_topology import ( diff --git a/implementations/python/packages/aces_processor/compiler/alias_index.py b/implementations/python/packages/raes_processor/compiler/alias_index.py similarity index 100% rename from implementations/python/packages/aces_processor/compiler/alias_index.py rename to implementations/python/packages/raes_processor/compiler/alias_index.py diff --git a/implementations/python/packages/aces_processor/compiler/evaluation.py b/implementations/python/packages/raes_processor/compiler/evaluation.py similarity index 100% rename from implementations/python/packages/aces_processor/compiler/evaluation.py rename to implementations/python/packages/raes_processor/compiler/evaluation.py diff --git a/implementations/python/packages/aces_processor/compiler/objectives.py b/implementations/python/packages/raes_processor/compiler/objectives.py similarity index 100% rename from implementations/python/packages/aces_processor/compiler/objectives.py rename to implementations/python/packages/raes_processor/compiler/objectives.py diff --git a/implementations/python/packages/aces_processor/compiler/orchestration.py b/implementations/python/packages/raes_processor/compiler/orchestration.py similarity index 100% rename from implementations/python/packages/aces_processor/compiler/orchestration.py rename to implementations/python/packages/raes_processor/compiler/orchestration.py diff --git a/implementations/python/packages/aces_processor/compiler/participant_behaviors.py b/implementations/python/packages/raes_processor/compiler/participant_behaviors.py similarity index 100% rename from implementations/python/packages/aces_processor/compiler/participant_behaviors.py rename to implementations/python/packages/raes_processor/compiler/participant_behaviors.py diff --git a/implementations/python/packages/aces_processor/compiler/participant_contracts.py b/implementations/python/packages/raes_processor/compiler/participant_contracts.py similarity index 100% rename from implementations/python/packages/aces_processor/compiler/participant_contracts.py rename to implementations/python/packages/raes_processor/compiler/participant_contracts.py diff --git a/implementations/python/packages/aces_processor/compiler/pipeline.py b/implementations/python/packages/raes_processor/compiler/pipeline.py similarity index 100% rename from implementations/python/packages/aces_processor/compiler/pipeline.py rename to implementations/python/packages/raes_processor/compiler/pipeline.py diff --git a/implementations/python/packages/aces_processor/compiler/placement.py b/implementations/python/packages/raes_processor/compiler/placement.py similarity index 100% rename from implementations/python/packages/aces_processor/compiler/placement.py rename to implementations/python/packages/raes_processor/compiler/placement.py diff --git a/implementations/python/packages/aces_processor/compiler/provisioning.py b/implementations/python/packages/raes_processor/compiler/provisioning.py similarity index 99% rename from implementations/python/packages/aces_processor/compiler/provisioning.py rename to implementations/python/packages/raes_processor/compiler/provisioning.py index bf518f848..ef32b7df2 100644 --- a/implementations/python/packages/aces_processor/compiler/provisioning.py +++ b/implementations/python/packages/raes_processor/compiler/provisioning.py @@ -3,7 +3,7 @@ from dataclasses import dataclass from typing import Any -from aces_backend_protocols.domain_topology import DomainTopologyBinding +from raes_backend_protocols.domain_topology import DomainTopologyBinding from raes.entities import flatten_entities from raes.features import Feature from raes.nodes import Node, NodeType diff --git a/implementations/python/packages/aces_processor/compiler/realization_requirements.py b/implementations/python/packages/raes_processor/compiler/realization_requirements.py similarity index 100% rename from implementations/python/packages/aces_processor/compiler/realization_requirements.py rename to implementations/python/packages/raes_processor/compiler/realization_requirements.py diff --git a/implementations/python/packages/aces_processor/compiler/ref_resolution.py b/implementations/python/packages/raes_processor/compiler/ref_resolution.py similarity index 100% rename from implementations/python/packages/aces_processor/compiler/ref_resolution.py rename to implementations/python/packages/raes_processor/compiler/ref_resolution.py diff --git a/implementations/python/packages/aces_processor/compiler/stateful_resources.py b/implementations/python/packages/raes_processor/compiler/stateful_resources.py similarity index 100% rename from implementations/python/packages/aces_processor/compiler/stateful_resources.py rename to implementations/python/packages/raes_processor/compiler/stateful_resources.py diff --git a/implementations/python/packages/aces_processor/compiler/support.py b/implementations/python/packages/raes_processor/compiler/support.py similarity index 92% rename from implementations/python/packages/aces_processor/compiler/support.py rename to implementations/python/packages/raes_processor/compiler/support.py index a63b06fe3..6f69d1203 100644 --- a/implementations/python/packages/aces_processor/compiler/support.py +++ b/implementations/python/packages/raes_processor/compiler/support.py @@ -2,7 +2,7 @@ from typing import Any -from aces_contracts.addressing import render_compiled_address +from raes_contracts.addressing import render_compiled_address def _dump(model: object) -> dict[str, Any]: diff --git a/implementations/python/packages/aces_processor/compiler/time_model.py b/implementations/python/packages/raes_processor/compiler/time_model.py similarity index 99% rename from implementations/python/packages/aces_processor/compiler/time_model.py rename to implementations/python/packages/raes_processor/compiler/time_model.py index 58c757d5d..30bbdb250 100644 --- a/implementations/python/packages/aces_processor/compiler/time_model.py +++ b/implementations/python/packages/raes_processor/compiler/time_model.py @@ -1,7 +1,7 @@ """Compile authored shared time declarations into canonical runtime metadata.""" -from aces_contracts.addressing import render_compiled_address -from aces_contracts.contracts.time_model import ( +from raes_contracts.addressing import render_compiled_address +from raes_contracts.contracts.time_model import ( ClockDeclarationModel, ExactRatioModel, TemporalConstraintDeclarationModel, diff --git a/implementations/python/packages/aces_processor/compiler/view_relations.py b/implementations/python/packages/raes_processor/compiler/view_relations.py similarity index 100% rename from implementations/python/packages/aces_processor/compiler/view_relations.py rename to implementations/python/packages/raes_processor/compiler/view_relations.py diff --git a/implementations/python/packages/aces_processor/compiler/workflow_steps.py b/implementations/python/packages/raes_processor/compiler/workflow_steps.py similarity index 99% rename from implementations/python/packages/aces_processor/compiler/workflow_steps.py rename to implementations/python/packages/raes_processor/compiler/workflow_steps.py index f1d71add7..a616934dc 100644 --- a/implementations/python/packages/aces_processor/compiler/workflow_steps.py +++ b/implementations/python/packages/raes_processor/compiler/workflow_steps.py @@ -2,7 +2,7 @@ from dataclasses import dataclass, field -from aces_backend_protocols.capabilities import ( +from raes_backend_protocols.capabilities import ( WorkflowFeature, WorkflowStatePredicateFeature, ) diff --git a/implementations/python/packages/aces_processor/compiler/workflows.py b/implementations/python/packages/raes_processor/compiler/workflows.py similarity index 98% rename from implementations/python/packages/aces_processor/compiler/workflows.py rename to implementations/python/packages/raes_processor/compiler/workflows.py index 5958c741f..748b2ad2c 100644 --- a/implementations/python/packages/aces_processor/compiler/workflows.py +++ b/implementations/python/packages/raes_processor/compiler/workflows.py @@ -2,7 +2,7 @@ from typing import Any -from aces_contracts.versions import WORKFLOW_STATE_SCHEMA_VERSION +from raes_contracts.versions import WORKFLOW_STATE_SCHEMA_VERSION from raes.orchestration import Workflow, WorkflowStepType from raes.scenario import InstantiatedScenario diff --git a/implementations/python/packages/aces_processor/exploit_path/__init__.py b/implementations/python/packages/raes_processor/exploit_path/__init__.py similarity index 100% rename from implementations/python/packages/aces_processor/exploit_path/__init__.py rename to implementations/python/packages/raes_processor/exploit_path/__init__.py diff --git a/implementations/python/packages/aces_processor/exploit_path/_diagnostics.py b/implementations/python/packages/raes_processor/exploit_path/_diagnostics.py similarity index 94% rename from implementations/python/packages/aces_processor/exploit_path/_diagnostics.py rename to implementations/python/packages/raes_processor/exploit_path/_diagnostics.py index 76edcd681..a52135f7e 100644 --- a/implementations/python/packages/aces_processor/exploit_path/_diagnostics.py +++ b/implementations/python/packages/raes_processor/exploit_path/_diagnostics.py @@ -4,8 +4,8 @@ from collections.abc import Iterable -from aces_contracts.diagnostics import DiagnosticModel -from aces_contracts.exploit_path import MAX_EXPLOIT_PATH_DIAGNOSTICS +from raes_contracts.diagnostics import DiagnosticModel +from raes_contracts.exploit_path import MAX_EXPLOIT_PATH_DIAGNOSTICS SUPPORTED_TRANSITION_SEMANTICS = "monotonic-additive/v1" BOUND_EXCEEDED_CODE = "exploit-path.analysis-bound-exceeded" diff --git a/implementations/python/packages/aces_processor/exploit_path/_preflight.py b/implementations/python/packages/raes_processor/exploit_path/_preflight.py similarity index 97% rename from implementations/python/packages/aces_processor/exploit_path/_preflight.py rename to implementations/python/packages/raes_processor/exploit_path/_preflight.py index fbb223526..e83f22d60 100644 --- a/implementations/python/packages/aces_processor/exploit_path/_preflight.py +++ b/implementations/python/packages/raes_processor/exploit_path/_preflight.py @@ -2,8 +2,8 @@ from __future__ import annotations -from aces_contracts.diagnostics import DiagnosticModel -from aces_contracts.exploit_path import ( +from raes_contracts.diagnostics import DiagnosticModel +from raes_contracts.exploit_path import ( AttackTransitionModel, ExploitPathAnalysisInputModel, ExploitPathQueryModel, @@ -88,7 +88,7 @@ def _required_binding_diagnostics( diagnostic( BINDING_MISSING_CODE, f"/normalized_graph/{target_kind}s/{pointer(target_id)}", - "The normalized graph target lacks a governed ACES binding.", + "The normalized graph target lacks a governed RAES binding.", ) ) elif len(ids) > 1: @@ -96,7 +96,7 @@ def _required_binding_diagnostics( diagnostic( BINDING_AMBIGUOUS_CODE, f"/normalized_graph/bindings/{pointer(ids[0])}", - "The normalized graph target has multiple governed ACES bindings.", + "The normalized graph target has multiple governed RAES bindings.", ) ) return tuple(diagnostics) diff --git a/implementations/python/packages/aces_processor/exploit_path/_search.py b/implementations/python/packages/raes_processor/exploit_path/_search.py similarity index 99% rename from implementations/python/packages/aces_processor/exploit_path/_search.py rename to implementations/python/packages/raes_processor/exploit_path/_search.py index 186cf5128..037165b3e 100644 --- a/implementations/python/packages/aces_processor/exploit_path/_search.py +++ b/implementations/python/packages/raes_processor/exploit_path/_search.py @@ -5,8 +5,8 @@ from collections import deque from dataclasses import dataclass -from aces_contracts.diagnostics import DiagnosticModel -from aces_contracts.exploit_path import ( +from raes_contracts.diagnostics import DiagnosticModel +from raes_contracts.exploit_path import ( MAX_EXPLOIT_PATH_BLOCKED_TRANSITIONS, MAX_EXPLOIT_PATH_DIAGNOSTICS, MAX_EXPLOIT_PATH_EXPLORED_STATES, diff --git a/implementations/python/packages/aces_processor/exploit_path/_service.py b/implementations/python/packages/raes_processor/exploit_path/_service.py similarity index 98% rename from implementations/python/packages/aces_processor/exploit_path/_service.py rename to implementations/python/packages/raes_processor/exploit_path/_service.py index 298bd48c2..84f15d443 100644 --- a/implementations/python/packages/aces_processor/exploit_path/_service.py +++ b/implementations/python/packages/raes_processor/exploit_path/_service.py @@ -7,14 +7,14 @@ from json import JSONDecodeError from pathlib import Path -from aces_contracts.exploit_path import ( +from raes_contracts.exploit_path import ( ExploitPathAnalysisEvidenceModel, ExploitPathAnalysisInputModel, ExploitPathOutcome, ExploitPathSearchConfigurationModel, UnsupportedExploitPathAnalysisModel, ) -from aces_contracts.satisfiability import SourceArtifactIdentityModel, canonical_contract_digest +from raes_contracts.satisfiability import SourceArtifactIdentityModel, canonical_contract_digest from pydantic import ValidationError from ._diagnostics import ( diff --git a/implementations/python/packages/aces_processor/manifest.py b/implementations/python/packages/raes_processor/manifest.py similarity index 94% rename from implementations/python/packages/aces_processor/manifest.py rename to implementations/python/packages/raes_processor/manifest.py index 31fc47acc..e85d5d59c 100644 --- a/implementations/python/packages/aces_processor/manifest.py +++ b/implementations/python/packages/raes_processor/manifest.py @@ -6,17 +6,17 @@ from importlib.metadata import version as distribution_version from typing import Any -from aces_contracts.apparatus import ConceptBinding -from aces_contracts.contracts import ( +from raes_contracts.apparatus import ConceptBinding +from raes_contracts.contracts import ( ApparatusIdentityModel, ConceptBindingEntryModel, ProcessorCapabilitiesV2Model, ProcessorCompatibilityModel, ProcessorManifestV2Model, ) -from aces_contracts.vocabulary import ProcessorFeature +from raes_contracts.vocabulary import ProcessorFeature -from aces_processor.capabilities import ProcessorCapabilitySet, ProcessorManifest +from raes_processor.capabilities import ProcessorCapabilitySet, ProcessorManifest REFERENCE_PROCESSOR_NAME = "aces-reference-processor" REFERENCE_SUPPORTED_CONTRACT_VERSIONS_V2 = ( diff --git a/implementations/python/packages/aces_processor/models/__init__.py b/implementations/python/packages/raes_processor/models/__init__.py similarity index 72% rename from implementations/python/packages/aces_processor/models/__init__.py rename to implementations/python/packages/raes_processor/models/__init__.py index 9c61e34e6..6df011867 100644 --- a/implementations/python/packages/aces_processor/models/__init__.py +++ b/implementations/python/packages/raes_processor/models/__init__.py @@ -11,83 +11,83 @@ the current ``RuntimeSnapshot`` and emits a composite ``ExecutionPlan``. """ -from aces_contracts.diagnostics import Diagnostic as Diagnostic -from aces_contracts.diagnostics import Severity as Severity -from aces_contracts.evaluation import EvaluationExecutionContract as EvaluationExecutionContract -from aces_contracts.evaluation import EvaluationExecutionState as EvaluationExecutionState -from aces_contracts.evaluation import EvaluationHistoryEvent as EvaluationHistoryEvent -from aces_contracts.evaluation import EvaluationHistoryEventType as EvaluationHistoryEventType -from aces_contracts.evaluation import EvaluationResultContract as EvaluationResultContract -from aces_contracts.evaluation import EvaluationResultStatus as EvaluationResultStatus -from aces_contracts.evaluation import validate_evaluation_result as validate_evaluation_result -from aces_contracts.participant_behavior import ( +from raes_contracts.diagnostics import Diagnostic as Diagnostic +from raes_contracts.diagnostics import Severity as Severity +from raes_contracts.evaluation import EvaluationExecutionContract as EvaluationExecutionContract +from raes_contracts.evaluation import EvaluationExecutionState as EvaluationExecutionState +from raes_contracts.evaluation import EvaluationHistoryEvent as EvaluationHistoryEvent +from raes_contracts.evaluation import EvaluationHistoryEventType as EvaluationHistoryEventType +from raes_contracts.evaluation import EvaluationResultContract as EvaluationResultContract +from raes_contracts.evaluation import EvaluationResultStatus as EvaluationResultStatus +from raes_contracts.evaluation import validate_evaluation_result as validate_evaluation_result +from raes_contracts.participant_behavior import ( ParticipantActionPreconditionStatus as ParticipantActionPreconditionStatus, ) -from aces_contracts.participant_behavior import ParticipantActionResultStatus as ParticipantActionResultStatus -from aces_contracts.participant_behavior import ParticipantAdmissionDisposition as ParticipantAdmissionDisposition -from aces_contracts.participant_behavior import ( +from raes_contracts.participant_behavior import ParticipantActionResultStatus as ParticipantActionResultStatus +from raes_contracts.participant_behavior import ParticipantAdmissionDisposition as ParticipantAdmissionDisposition +from raes_contracts.participant_behavior import ( ParticipantBehaviorHistoryEventType as ParticipantBehaviorHistoryEventType, ) -from aces_contracts.participant_behavior import ParticipantLifecycleOperationState as ParticipantLifecycleOperationState -from aces_contracts.participant_behavior import ParticipantObservationStatus as ParticipantObservationStatus -from aces_contracts.participant_behavior import ParticipantPhaseRealization as ParticipantPhaseRealization -from aces_contracts.participant_behavior import ParticipantRuntimeLifecyclePhase as ParticipantRuntimeLifecyclePhase -from aces_contracts.participant_behavior import ( +from raes_contracts.participant_behavior import ParticipantLifecycleOperationState as ParticipantLifecycleOperationState +from raes_contracts.participant_behavior import ParticipantObservationStatus as ParticipantObservationStatus +from raes_contracts.participant_behavior import ParticipantPhaseRealization as ParticipantPhaseRealization +from raes_contracts.participant_behavior import ParticipantRuntimeLifecyclePhase as ParticipantRuntimeLifecyclePhase +from raes_contracts.participant_behavior import ( participant_lifecycle_field_violation_messages as participant_lifecycle_field_violation_messages, ) -from aces_contracts.participant_episode import ParticipantEpisodeControlAction as ParticipantEpisodeControlAction -from aces_contracts.participant_episode import ParticipantEpisodeExecutionState as ParticipantEpisodeExecutionState -from aces_contracts.participant_episode import ParticipantEpisodeHistoryEvent as ParticipantEpisodeHistoryEvent -from aces_contracts.participant_episode import ParticipantEpisodeHistoryEventType as ParticipantEpisodeHistoryEventType -from aces_contracts.participant_episode import ( +from raes_contracts.participant_episode import ParticipantEpisodeControlAction as ParticipantEpisodeControlAction +from raes_contracts.participant_episode import ParticipantEpisodeExecutionState as ParticipantEpisodeExecutionState +from raes_contracts.participant_episode import ParticipantEpisodeHistoryEvent as ParticipantEpisodeHistoryEvent +from raes_contracts.participant_episode import ParticipantEpisodeHistoryEventType as ParticipantEpisodeHistoryEventType +from raes_contracts.participant_episode import ( ParticipantEpisodeInitializeRequest as ParticipantEpisodeInitializeRequest, ) -from aces_contracts.participant_episode import ParticipantEpisodeResetRequest as ParticipantEpisodeResetRequest -from aces_contracts.participant_episode import ParticipantEpisodeRestartRequest as ParticipantEpisodeRestartRequest -from aces_contracts.participant_episode import ParticipantEpisodeStatus as ParticipantEpisodeStatus -from aces_contracts.participant_episode import ParticipantEpisodeTerminalReason as ParticipantEpisodeTerminalReason -from aces_contracts.participant_episode import ParticipantEpisodeTerminateRequest as ParticipantEpisodeTerminateRequest -from aces_contracts.participant_episode import ( +from raes_contracts.participant_episode import ParticipantEpisodeResetRequest as ParticipantEpisodeResetRequest +from raes_contracts.participant_episode import ParticipantEpisodeRestartRequest as ParticipantEpisodeRestartRequest +from raes_contracts.participant_episode import ParticipantEpisodeStatus as ParticipantEpisodeStatus +from raes_contracts.participant_episode import ParticipantEpisodeTerminalReason as ParticipantEpisodeTerminalReason +from raes_contracts.participant_episode import ParticipantEpisodeTerminateRequest as ParticipantEpisodeTerminateRequest +from raes_contracts.participant_episode import ( iter_participant_episode_snapshot_violations as iter_participant_episode_snapshot_violations, ) -from aces_contracts.planning import ChangeAction as ChangeAction -from aces_contracts.planning import EvaluationOp as EvaluationOp -from aces_contracts.planning import EvaluationPlan as EvaluationPlan -from aces_contracts.planning import OrchestrationOp as OrchestrationOp -from aces_contracts.planning import OrchestrationPlan as OrchestrationPlan -from aces_contracts.planning import PlannedResource as PlannedResource -from aces_contracts.planning import PlanOperation as PlanOperation -from aces_contracts.planning import ProvisioningPlan as ProvisioningPlan -from aces_contracts.planning import ProvisionOp as ProvisionOp -from aces_contracts.planning import RuntimeDomain as RuntimeDomain -from aces_contracts.runtime_state import ApplyResult as ApplyResult -from aces_contracts.runtime_state import OperationReceipt as OperationReceipt -from aces_contracts.runtime_state import OperationState as OperationState -from aces_contracts.runtime_state import OperationStatus as OperationStatus -from aces_contracts.runtime_state import RealizationProvenanceEntry as RealizationProvenanceEntry -from aces_contracts.runtime_state import RuntimeSnapshot as RuntimeSnapshot -from aces_contracts.runtime_state import RuntimeSnapshotEnvelope as RuntimeSnapshotEnvelope -from aces_contracts.runtime_state import SnapshotEntry as SnapshotEntry -from aces_contracts.versions import EVALUATION_STATE_SCHEMA_VERSION as EVALUATION_STATE_SCHEMA_VERSION -from aces_contracts.versions import OPERATION_SCHEMA_VERSION as OPERATION_SCHEMA_VERSION -from aces_contracts.versions import PARTICIPANT_EPISODE_STATE_SCHEMA_VERSION as PARTICIPANT_EPISODE_STATE_SCHEMA_VERSION -from aces_contracts.versions import RUNTIME_SNAPSHOT_SCHEMA_VERSION as RUNTIME_SNAPSHOT_SCHEMA_VERSION -from aces_contracts.versions import WORKFLOW_STATE_SCHEMA_VERSION as WORKFLOW_STATE_SCHEMA_VERSION -from aces_contracts.workflow import WorkflowCancellationRequest as WorkflowCancellationRequest -from aces_contracts.workflow import WorkflowCompensationStatus as WorkflowCompensationStatus -from aces_contracts.workflow import WorkflowExecutionContract as WorkflowExecutionContract -from aces_contracts.workflow import WorkflowExecutionState as WorkflowExecutionState -from aces_contracts.workflow import WorkflowHistoryEvent as WorkflowHistoryEvent -from aces_contracts.workflow import WorkflowHistoryEventType as WorkflowHistoryEventType -from aces_contracts.workflow import WorkflowResultContract as WorkflowResultContract -from aces_contracts.workflow import WorkflowStatus as WorkflowStatus -from aces_contracts.workflow import WorkflowStepExecutionState as WorkflowStepExecutionState -from aces_contracts.workflow import WorkflowStepLifecycle as WorkflowStepLifecycle -from aces_contracts.workflow import WorkflowStepOutcome as WorkflowStepOutcome -from aces_contracts.workflow import validate_workflow_step_result_contract as validate_workflow_step_result_contract +from raes_contracts.planning import ChangeAction as ChangeAction +from raes_contracts.planning import EvaluationOp as EvaluationOp +from raes_contracts.planning import EvaluationPlan as EvaluationPlan +from raes_contracts.planning import OrchestrationOp as OrchestrationOp +from raes_contracts.planning import OrchestrationPlan as OrchestrationPlan +from raes_contracts.planning import PlannedResource as PlannedResource +from raes_contracts.planning import PlanOperation as PlanOperation +from raes_contracts.planning import ProvisioningPlan as ProvisioningPlan +from raes_contracts.planning import ProvisionOp as ProvisionOp +from raes_contracts.planning import RuntimeDomain as RuntimeDomain +from raes_contracts.runtime_state import ApplyResult as ApplyResult +from raes_contracts.runtime_state import OperationReceipt as OperationReceipt +from raes_contracts.runtime_state import OperationState as OperationState +from raes_contracts.runtime_state import OperationStatus as OperationStatus +from raes_contracts.runtime_state import RealizationProvenanceEntry as RealizationProvenanceEntry +from raes_contracts.runtime_state import RuntimeSnapshot as RuntimeSnapshot +from raes_contracts.runtime_state import RuntimeSnapshotEnvelope as RuntimeSnapshotEnvelope +from raes_contracts.runtime_state import SnapshotEntry as SnapshotEntry +from raes_contracts.versions import EVALUATION_STATE_SCHEMA_VERSION as EVALUATION_STATE_SCHEMA_VERSION +from raes_contracts.versions import OPERATION_SCHEMA_VERSION as OPERATION_SCHEMA_VERSION +from raes_contracts.versions import PARTICIPANT_EPISODE_STATE_SCHEMA_VERSION as PARTICIPANT_EPISODE_STATE_SCHEMA_VERSION +from raes_contracts.versions import RUNTIME_SNAPSHOT_SCHEMA_VERSION as RUNTIME_SNAPSHOT_SCHEMA_VERSION +from raes_contracts.versions import WORKFLOW_STATE_SCHEMA_VERSION as WORKFLOW_STATE_SCHEMA_VERSION +from raes_contracts.workflow import WorkflowCancellationRequest as WorkflowCancellationRequest +from raes_contracts.workflow import WorkflowCompensationStatus as WorkflowCompensationStatus +from raes_contracts.workflow import WorkflowExecutionContract as WorkflowExecutionContract +from raes_contracts.workflow import WorkflowExecutionState as WorkflowExecutionState +from raes_contracts.workflow import WorkflowHistoryEvent as WorkflowHistoryEvent +from raes_contracts.workflow import WorkflowHistoryEventType as WorkflowHistoryEventType +from raes_contracts.workflow import WorkflowResultContract as WorkflowResultContract +from raes_contracts.workflow import WorkflowStatus as WorkflowStatus +from raes_contracts.workflow import WorkflowStepExecutionState as WorkflowStepExecutionState +from raes_contracts.workflow import WorkflowStepLifecycle as WorkflowStepLifecycle +from raes_contracts.workflow import WorkflowStepOutcome as WorkflowStepOutcome +from raes_contracts.workflow import validate_workflow_step_result_contract as validate_workflow_step_result_contract from raes.participant_temporal_semantics import ParticipantTemporalState as ParticipantTemporalState -from aces_processor.semantics.realization import CompiledRealizationRequirement as CompiledRealizationRequirement +from raes_processor.semantics.realization import CompiledRealizationRequirement as CompiledRealizationRequirement from .action_results import ( ParticipantActionEffectResult, diff --git a/implementations/python/packages/aces_processor/models/action_results.py b/implementations/python/packages/raes_processor/models/action_results.py similarity index 99% rename from implementations/python/packages/aces_processor/models/action_results.py rename to implementations/python/packages/raes_processor/models/action_results.py index 0d777baed..03706b58a 100644 --- a/implementations/python/packages/aces_processor/models/action_results.py +++ b/implementations/python/packages/raes_processor/models/action_results.py @@ -4,7 +4,7 @@ from dataclasses import dataclass from typing import Any -from aces_contracts.participant_behavior import ParticipantActionPreconditionStatus, ParticipantActionResultStatus +from raes_contracts.participant_behavior import ParticipantActionPreconditionStatus, ParticipantActionResultStatus from raes.participant_behavior import ParticipantEffectClass, ParticipantFailureClass, ParticipantPreconditionClass from .behavior_resources import ( diff --git a/implementations/python/packages/aces_processor/models/attribution.py b/implementations/python/packages/raes_processor/models/attribution.py similarity index 100% rename from implementations/python/packages/aces_processor/models/attribution.py rename to implementations/python/packages/raes_processor/models/attribution.py diff --git a/implementations/python/packages/aces_processor/models/behavior_anchor_checks.py b/implementations/python/packages/raes_processor/models/behavior_anchor_checks.py similarity index 99% rename from implementations/python/packages/aces_processor/models/behavior_anchor_checks.py rename to implementations/python/packages/raes_processor/models/behavior_anchor_checks.py index b7a36f315..c97a398e8 100644 --- a/implementations/python/packages/aces_processor/models/behavior_anchor_checks.py +++ b/implementations/python/packages/raes_processor/models/behavior_anchor_checks.py @@ -3,8 +3,8 @@ from collections.abc import Iterable, Iterator, Mapping from typing import Any -from aces_contracts.participant_behavior import ParticipantBehaviorHistoryEventType -from aces_contracts.participant_episode import ParticipantEpisodeHistoryEvent +from raes_contracts.participant_behavior import ParticipantBehaviorHistoryEventType +from raes_contracts.participant_episode import ParticipantEpisodeHistoryEvent from .behavior_anchor_index import ( _participant_behavior_history_anchor_indexes, diff --git a/implementations/python/packages/aces_processor/models/behavior_anchor_index.py b/implementations/python/packages/raes_processor/models/behavior_anchor_index.py similarity index 97% rename from implementations/python/packages/aces_processor/models/behavior_anchor_index.py rename to implementations/python/packages/raes_processor/models/behavior_anchor_index.py index b511f0652..30dfb00c3 100644 --- a/implementations/python/packages/aces_processor/models/behavior_anchor_index.py +++ b/implementations/python/packages/raes_processor/models/behavior_anchor_index.py @@ -3,7 +3,7 @@ from collections.abc import Iterable, Mapping from typing import Any -from aces_contracts.participant_behavior import ParticipantBehaviorHistoryEventType +from raes_contracts.participant_behavior import ParticipantBehaviorHistoryEventType from .history_event import ParticipantBehaviorHistoryEvent diff --git a/implementations/python/packages/aces_processor/models/behavior_grounding_checks.py b/implementations/python/packages/raes_processor/models/behavior_grounding_checks.py similarity index 99% rename from implementations/python/packages/aces_processor/models/behavior_grounding_checks.py rename to implementations/python/packages/raes_processor/models/behavior_grounding_checks.py index 3711e0642..8479f4bbf 100644 --- a/implementations/python/packages/aces_processor/models/behavior_grounding_checks.py +++ b/implementations/python/packages/raes_processor/models/behavior_grounding_checks.py @@ -2,8 +2,8 @@ from collections.abc import Iterable, Iterator, Mapping -from aces_contracts.participant_behavior import ParticipantBehaviorHistoryEventType -from aces_contracts.participant_episode import ParticipantEpisodeHistoryEvent +from raes_contracts.participant_behavior import ParticipantBehaviorHistoryEventType +from raes_contracts.participant_episode import ParticipantEpisodeHistoryEvent from raes.participant_outcome_semantics import OutcomeInterpretationSourceLayer from .behavior_ref_checks import ( diff --git a/implementations/python/packages/aces_processor/models/behavior_history_violations.py b/implementations/python/packages/raes_processor/models/behavior_history_violations.py similarity index 99% rename from implementations/python/packages/aces_processor/models/behavior_history_violations.py rename to implementations/python/packages/raes_processor/models/behavior_history_violations.py index 142be418c..b0de26a4f 100644 --- a/implementations/python/packages/aces_processor/models/behavior_history_violations.py +++ b/implementations/python/packages/raes_processor/models/behavior_history_violations.py @@ -4,7 +4,7 @@ from dataclasses import dataclass from typing import Any -from aces_contracts.participant_behavior import ParticipantBehaviorHistoryEventType, ParticipantObservationStatus +from raes_contracts.participant_behavior import ParticipantBehaviorHistoryEventType, ParticipantObservationStatus from .behavior_anchor_checks import ( _participant_behavior_action_result_ref_authorization_violations_for_events, diff --git a/implementations/python/packages/aces_processor/models/behavior_ref_checks.py b/implementations/python/packages/raes_processor/models/behavior_ref_checks.py similarity index 99% rename from implementations/python/packages/aces_processor/models/behavior_ref_checks.py rename to implementations/python/packages/raes_processor/models/behavior_ref_checks.py index e2ce5c245..39fef7d8a 100644 --- a/implementations/python/packages/aces_processor/models/behavior_ref_checks.py +++ b/implementations/python/packages/raes_processor/models/behavior_ref_checks.py @@ -3,7 +3,7 @@ from collections.abc import Iterable, Mapping from typing import Any -from aces_contracts.participant_behavior import ParticipantBehaviorHistoryEventType +from raes_contracts.participant_behavior import ParticipantBehaviorHistoryEventType from raes.participant_attribution_semantics import ParticipantAttributionCandidateKind from .attribution import ParticipantAttributionCandidate, ParticipantAttributionEdge diff --git a/implementations/python/packages/aces_processor/models/behavior_resources.py b/implementations/python/packages/raes_processor/models/behavior_resources.py similarity index 98% rename from implementations/python/packages/aces_processor/models/behavior_resources.py rename to implementations/python/packages/raes_processor/models/behavior_resources.py index 095ecdfe2..be9ea61be 100644 --- a/implementations/python/packages/aces_processor/models/behavior_resources.py +++ b/implementations/python/packages/raes_processor/models/behavior_resources.py @@ -4,10 +4,10 @@ from dataclasses import dataclass, field from typing import Any -from aces_backend_protocols.capabilities import WorkflowFeature, WorkflowStatePredicateFeature -from aces_contracts.participant_behavior import ParticipantObservationStatus -from aces_contracts.versions import WORKFLOW_STATE_SCHEMA_VERSION -from aces_contracts.workflow import WorkflowExecutionContract, WorkflowResultContract, WorkflowStepOutcome +from raes_backend_protocols.capabilities import WorkflowFeature, WorkflowStatePredicateFeature +from raes_contracts.participant_behavior import ParticipantObservationStatus +from raes_contracts.versions import WORKFLOW_STATE_SCHEMA_VERSION +from raes_contracts.workflow import WorkflowExecutionContract, WorkflowResultContract, WorkflowStepOutcome from raes.semantics.workflow import WorkflowStepSemanticContract from .resources import ResolvedResource diff --git a/implementations/python/packages/aces_processor/models/decision_surface.py b/implementations/python/packages/raes_processor/models/decision_surface.py similarity index 99% rename from implementations/python/packages/aces_processor/models/decision_surface.py rename to implementations/python/packages/raes_processor/models/decision_surface.py index 60345168d..33fbff2a2 100644 --- a/implementations/python/packages/aces_processor/models/decision_surface.py +++ b/implementations/python/packages/raes_processor/models/decision_surface.py @@ -5,7 +5,7 @@ from collections.abc import Mapping, Sequence from dataclasses import dataclass -from aces_contracts.contracts import ParticipantDecisionSurfaceModel +from raes_contracts.contracts import ParticipantDecisionSurfaceModel from .behavior_anchor_checks import participant_observation_effective_relation from .behavior_anchor_index import _participant_behavior_history_anchor_indexes diff --git a/implementations/python/packages/aces_processor/models/history_event.py b/implementations/python/packages/raes_processor/models/history_event.py similarity index 99% rename from implementations/python/packages/aces_processor/models/history_event.py rename to implementations/python/packages/raes_processor/models/history_event.py index f6d7346ae..d889f89b5 100644 --- a/implementations/python/packages/aces_processor/models/history_event.py +++ b/implementations/python/packages/raes_processor/models/history_event.py @@ -4,7 +4,7 @@ from dataclasses import dataclass, field from typing import Any -from aces_contracts.participant_behavior import ( +from raes_contracts.participant_behavior import ( ParticipantActionResultStatus, ParticipantAdmissionDisposition, ParticipantBehaviorHistoryEventType, diff --git a/implementations/python/packages/aces_processor/models/history_event_grounding.py b/implementations/python/packages/raes_processor/models/history_event_grounding.py similarity index 100% rename from implementations/python/packages/aces_processor/models/history_event_grounding.py rename to implementations/python/packages/raes_processor/models/history_event_grounding.py diff --git a/implementations/python/packages/aces_processor/models/history_event_payloads.py b/implementations/python/packages/raes_processor/models/history_event_payloads.py similarity index 98% rename from implementations/python/packages/aces_processor/models/history_event_payloads.py rename to implementations/python/packages/raes_processor/models/history_event_payloads.py index 5935f3594..304d2be46 100644 --- a/implementations/python/packages/aces_processor/models/history_event_payloads.py +++ b/implementations/python/packages/raes_processor/models/history_event_payloads.py @@ -3,7 +3,7 @@ from collections.abc import Iterable, Mapping from typing import Any -from aces_contracts.participant_behavior import ( +from raes_contracts.participant_behavior import ( ParticipantAdmissionDisposition, ParticipantBehaviorHistoryEventType, ParticipantLifecycleOperationState, diff --git a/implementations/python/packages/aces_processor/models/outcome.py b/implementations/python/packages/raes_processor/models/outcome.py similarity index 100% rename from implementations/python/packages/aces_processor/models/outcome.py rename to implementations/python/packages/raes_processor/models/outcome.py diff --git a/implementations/python/packages/aces_processor/models/outcome_interpretation_validation.py b/implementations/python/packages/raes_processor/models/outcome_interpretation_validation.py similarity index 100% rename from implementations/python/packages/aces_processor/models/outcome_interpretation_validation.py rename to implementations/python/packages/raes_processor/models/outcome_interpretation_validation.py diff --git a/implementations/python/packages/aces_processor/models/participant_exposure.py b/implementations/python/packages/raes_processor/models/participant_exposure.py similarity index 99% rename from implementations/python/packages/aces_processor/models/participant_exposure.py rename to implementations/python/packages/raes_processor/models/participant_exposure.py index 6058a1d28..e084edae2 100644 --- a/implementations/python/packages/aces_processor/models/participant_exposure.py +++ b/implementations/python/packages/raes_processor/models/participant_exposure.py @@ -4,8 +4,8 @@ from collections.abc import Iterable, Mapping, Sequence -from aces_contracts.contracts import ParticipantExposurePolicyModel -from aces_contracts.participant_behavior import ParticipantBehaviorHistoryEventType +from raes_contracts.contracts import ParticipantExposurePolicyModel +from raes_contracts.participant_behavior import ParticipantBehaviorHistoryEventType from .behavior_resources import _PARTICIPANT_VISIBLE_VIEW_DISPOSITIONS from .history_event import ParticipantBehaviorHistoryEvent diff --git a/implementations/python/packages/aces_processor/models/participant_exposure_authority.py b/implementations/python/packages/raes_processor/models/participant_exposure_authority.py similarity index 98% rename from implementations/python/packages/aces_processor/models/participant_exposure_authority.py rename to implementations/python/packages/raes_processor/models/participant_exposure_authority.py index 77e4262e5..701a01b45 100644 --- a/implementations/python/packages/aces_processor/models/participant_exposure_authority.py +++ b/implementations/python/packages/raes_processor/models/participant_exposure_authority.py @@ -6,7 +6,7 @@ from dataclasses import dataclass from typing import Protocol -from aces_contracts.contracts import ParticipantImplementationSelectionModel +from raes_contracts.contracts import ParticipantImplementationSelectionModel @dataclass(frozen=True) diff --git a/implementations/python/packages/aces_processor/models/participant_exposure_policy.py b/implementations/python/packages/raes_processor/models/participant_exposure_policy.py similarity index 99% rename from implementations/python/packages/aces_processor/models/participant_exposure_policy.py rename to implementations/python/packages/raes_processor/models/participant_exposure_policy.py index 5d9cd4896..db3493e07 100644 --- a/implementations/python/packages/aces_processor/models/participant_exposure_policy.py +++ b/implementations/python/packages/raes_processor/models/participant_exposure_policy.py @@ -4,7 +4,7 @@ from collections.abc import Sequence -from aces_contracts.contracts import ParticipantExposurePolicyModel +from raes_contracts.contracts import ParticipantExposurePolicyModel from .participant_exposure_authority import ( ParticipantExposureApparatusResolver, diff --git a/implementations/python/packages/aces_processor/models/resources.py b/implementations/python/packages/raes_processor/models/resources.py similarity index 98% rename from implementations/python/packages/aces_processor/models/resources.py rename to implementations/python/packages/raes_processor/models/resources.py index 599e1c0c3..11e0a2746 100644 --- a/implementations/python/packages/aces_processor/models/resources.py +++ b/implementations/python/packages/raes_processor/models/resources.py @@ -4,11 +4,11 @@ from dataclasses import dataclass, field from typing import TYPE_CHECKING, Any -from aces_backend_protocols.domain_topology import DomainTopologyBinding -from aces_contracts.addressing import require_compiled_address -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.evaluation import EvaluationExecutionContract, EvaluationResultContract -from aces_contracts.participant_episode import PARTICIPANT_EPISODE_CONTROL_EVENTS, PARTICIPANT_EPISODE_TERMINAL_EVENTS +from raes_backend_protocols.domain_topology import DomainTopologyBinding +from raes_contracts.addressing import require_compiled_address +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.evaluation import EvaluationExecutionContract, EvaluationResultContract +from raes_contracts.participant_episode import PARTICIPANT_EPISODE_CONTROL_EVENTS, PARTICIPANT_EPISODE_TERMINAL_EVENTS from raes.participant_behavior import ParticipantFailureClass if TYPE_CHECKING: diff --git a/implementations/python/packages/aces_processor/models/runtime_model.py b/implementations/python/packages/raes_processor/models/runtime_model.py similarity index 95% rename from implementations/python/packages/aces_processor/models/runtime_model.py rename to implementations/python/packages/raes_processor/models/runtime_model.py index ae8e8518a..a9d7ba90b 100644 --- a/implementations/python/packages/aces_processor/models/runtime_model.py +++ b/implementations/python/packages/raes_processor/models/runtime_model.py @@ -3,15 +3,15 @@ from dataclasses import asdict, dataclass, field from typing import Any -from aces_backend_protocols.capabilities import BackendManifest -from aces_contracts.addressing import require_compiled_address -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.evaluation import EvaluationExecutionContract, EvaluationResultContract -from aces_contracts.planning import EvaluationPlan, OrchestrationPlan, ProvisioningPlan -from aces_contracts.runtime_state import RuntimeSnapshot +from raes_backend_protocols.capabilities import BackendManifest +from raes_contracts.addressing import require_compiled_address +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.evaluation import EvaluationExecutionContract, EvaluationResultContract +from raes_contracts.planning import EvaluationPlan, OrchestrationPlan, ProvisioningPlan +from raes_contracts.runtime_state import RuntimeSnapshot from raes.scenario import InstantiatedScenario -from aces_processor.semantics.realization import CompiledRealizationRequirement +from raes_processor.semantics.realization import CompiledRealizationRequirement from .behavior_resources import ( EventRuntime, diff --git a/implementations/python/packages/aces_processor/models/temporal.py b/implementations/python/packages/raes_processor/models/temporal.py similarity index 100% rename from implementations/python/packages/aces_processor/models/temporal.py rename to implementations/python/packages/raes_processor/models/temporal.py diff --git a/implementations/python/packages/aces_processor/models/time_model.py b/implementations/python/packages/raes_processor/models/time_model.py similarity index 98% rename from implementations/python/packages/aces_processor/models/time_model.py rename to implementations/python/packages/raes_processor/models/time_model.py index e6792abe5..8d1ec0f47 100644 --- a/implementations/python/packages/aces_processor/models/time_model.py +++ b/implementations/python/packages/raes_processor/models/time_model.py @@ -2,7 +2,7 @@ from dataclasses import dataclass -from aces_contracts.addressing import require_compiled_address +from raes_contracts.addressing import require_compiled_address @dataclass(frozen=True) diff --git a/implementations/python/packages/aces_processor/planner/__init__.py b/implementations/python/packages/raes_processor/planner/__init__.py similarity index 100% rename from implementations/python/packages/aces_processor/planner/__init__.py rename to implementations/python/packages/raes_processor/planner/__init__.py diff --git a/implementations/python/packages/aces_processor/planner/capability_domains.py b/implementations/python/packages/raes_processor/planner/capability_domains.py similarity index 99% rename from implementations/python/packages/aces_processor/planner/capability_domains.py rename to implementations/python/packages/raes_processor/planner/capability_domains.py index fbc953e7d..5468fd5ec 100644 --- a/implementations/python/packages/aces_processor/planner/capability_domains.py +++ b/implementations/python/packages/raes_processor/planner/capability_domains.py @@ -1,6 +1,6 @@ """Finite-variable capability-domain validation for provisioner gates.""" -from aces_backend_protocols.account_features import provisioner_account_features +from raes_backend_protocols.account_features import provisioner_account_features from raes.infrastructure import MINIMUM_NODE_COUNT from raes.nodes import OSFamily from raes.value_parsing import extract_variable_name, parse_enum_or_var, parse_int_or_var diff --git a/implementations/python/packages/aces_processor/planner/core.py b/implementations/python/packages/raes_processor/planner/core.py similarity index 94% rename from implementations/python/packages/aces_processor/planner/core.py rename to implementations/python/packages/raes_processor/planner/core.py index f8c388b0c..1fc40d19e 100644 --- a/implementations/python/packages/aces_processor/planner/core.py +++ b/implementations/python/packages/raes_processor/planner/core.py @@ -2,14 +2,14 @@ from dataclasses import replace -from aces_backend_protocols.capabilities import BackendManifest -from aces_backend_protocols.capability_admission import ( +from raes_backend_protocols.capabilities import BackendManifest +from raes_backend_protocols.capability_admission import ( participant_autonomous_execution_capability_gaps, time_model_capability_gaps, ) -from aces_backend_protocols.domain_topology import domain_topology_plan_diagnostics -from aces_backend_protocols.service_materialization import service_materialization_plan_diagnostics -from aces_contracts.diagnostics import Diagnostic +from raes_backend_protocols.domain_topology import domain_topology_plan_diagnostics +from raes_backend_protocols.service_materialization import service_materialization_plan_diagnostics +from raes_contracts.diagnostics import Diagnostic from raes.realization_envelope import member from ..compiler.time_model import time_model_contract_model diff --git a/implementations/python/packages/aces_processor/planner/manifest_validation.py b/implementations/python/packages/raes_processor/planner/manifest_validation.py similarity index 99% rename from implementations/python/packages/aces_processor/planner/manifest_validation.py rename to implementations/python/packages/raes_processor/planner/manifest_validation.py index 67eeaca45..9d0013310 100644 --- a/implementations/python/packages/aces_processor/planner/manifest_validation.py +++ b/implementations/python/packages/raes_processor/planner/manifest_validation.py @@ -1,6 +1,6 @@ """Backend-manifest capability validation for compiled runtime models.""" -from aces_backend_protocols.capabilities import BackendManifest, OrchestratorCapabilities, ProvisionerCapabilities +from raes_backend_protocols.capabilities import BackendManifest, OrchestratorCapabilities, ProvisionerCapabilities from ..models import Diagnostic, RuntimeModel from .capability_domains import _account_features, _resource_count_upper_bound, _validate_node_os_family diff --git a/implementations/python/packages/aces_processor/planner/operations.py b/implementations/python/packages/raes_processor/planner/operations.py similarity index 98% rename from implementations/python/packages/aces_processor/planner/operations.py rename to implementations/python/packages/raes_processor/planner/operations.py index 06bad8fc5..14aeda4e1 100644 --- a/implementations/python/packages/aces_processor/planner/operations.py +++ b/implementations/python/packages/raes_processor/planner/operations.py @@ -1,6 +1,6 @@ """Domain plan construction from reconciled resources and actions.""" -from aces_backend_protocols.capabilities import BackendManifest +from raes_backend_protocols.capabilities import BackendManifest from ..models import ( ChangeAction, diff --git a/implementations/python/packages/aces_processor/planner/ordering.py b/implementations/python/packages/raes_processor/planner/ordering.py similarity index 100% rename from implementations/python/packages/aces_processor/planner/ordering.py rename to implementations/python/packages/raes_processor/planner/ordering.py diff --git a/implementations/python/packages/aces_processor/planner/resources.py b/implementations/python/packages/raes_processor/planner/resources.py similarity index 100% rename from implementations/python/packages/aces_processor/planner/resources.py rename to implementations/python/packages/raes_processor/planner/resources.py diff --git a/implementations/python/packages/aces_processor/reference.py b/implementations/python/packages/raes_processor/reference.py similarity index 91% rename from implementations/python/packages/aces_processor/reference.py rename to implementations/python/packages/raes_processor/reference.py index 842a83b0f..97294b55e 100644 --- a/implementations/python/packages/aces_processor/reference.py +++ b/implementations/python/packages/raes_processor/reference.py @@ -2,15 +2,15 @@ The reference processor realizes the normative processing model: it carries SDL authoring input through instantiation, compilation, and planning to a portable -:class:`~aces_processor.models.ExecutionPlan`, and exposes the published +:class:`~raes_processor.models.ExecutionPlan`, and exposes the published processor manifest. Per ADR-008 the processor is the semantics-bearing layer between SDL authoring and backend realization, so its responsibility ends at the execution plan; live backend realization (apply) is the runtime's job. End-to-end execution is realized by composing this plan with the reference runtime -(``aces_runtime``) and is proven by ``aces_conformance`` and the RUN-313 tests. +(``raes_runtime``) and is proven by ``raes_conformance`` and the RUN-313 tests. Import layering (ADR-036 / ``tools/policy/adr_policy.yaml``): this module imports -only the lower SDL/processor/contract layers. It must not import ``aces_runtime``; +only the lower SDL/processor/contract layers. It must not import ``raes_runtime``; that one-directional boundary is why the reference processor stops at the plan. """ @@ -21,19 +21,19 @@ from pathlib import Path from typing import Any -from aces_backend_protocols.capabilities import BackendManifest -from aces_contracts.diagnostics import Diagnostic +from raes_backend_protocols.capabilities import BackendManifest +from raes_contracts.diagnostics import Diagnostic from raes.parser import parse_sdl, parse_sdl_file from raes.scenario import ExpandedScenario, InstantiatedScenario, Scenario -from aces_processor.compiler import compile_scenario_runtime_model -from aces_processor.manifest import ( +from raes_processor.compiler import compile_scenario_runtime_model +from raes_processor.manifest import ( REFERENCE_PROCESSOR_NAME, REFERENCE_SUPPORTED_CONTRACT_VERSIONS_V2, reference_processor_manifest_payload, ) -from aces_processor.models import ExecutionPlan, RuntimeModel, RuntimeSnapshot -from aces_processor.planner import plan as _plan +from raes_processor.models import ExecutionPlan, RuntimeModel, RuntimeSnapshot +from raes_processor.planner import plan as _plan __all__ = [ "ReferenceProcessor", diff --git a/implementations/python/packages/aces_processor/satisfiability/__init__.py b/implementations/python/packages/raes_processor/satisfiability/__init__.py similarity index 100% rename from implementations/python/packages/aces_processor/satisfiability/__init__.py rename to implementations/python/packages/raes_processor/satisfiability/__init__.py diff --git a/implementations/python/packages/aces_processor/satisfiability/_service.py b/implementations/python/packages/raes_processor/satisfiability/_service.py similarity index 99% rename from implementations/python/packages/aces_processor/satisfiability/_service.py rename to implementations/python/packages/raes_processor/satisfiability/_service.py index 5354eb7e8..12f6687a2 100644 --- a/implementations/python/packages/aces_processor/satisfiability/_service.py +++ b/implementations/python/packages/raes_processor/satisfiability/_service.py @@ -7,7 +7,7 @@ from pathlib import Path import z3 -from aces_contracts.satisfiability import ( +from raes_contracts.satisfiability import ( SatisfiabilityOutcome, SatisfiableWitnessModel, ScenarioSatisfiabilityEvidenceModel, diff --git a/implementations/python/packages/aces_processor/satisfiability/_solver.py b/implementations/python/packages/raes_processor/satisfiability/_solver.py similarity index 98% rename from implementations/python/packages/aces_processor/satisfiability/_solver.py rename to implementations/python/packages/raes_processor/satisfiability/_solver.py index 8d75d6760..70554d585 100644 --- a/implementations/python/packages/aces_processor/satisfiability/_solver.py +++ b/implementations/python/packages/raes_processor/satisfiability/_solver.py @@ -5,7 +5,7 @@ from dataclasses import dataclass import z3 -from aces_contracts.satisfiability import NormalizedConstraintModel, SatisfiabilityOutcome +from raes_contracts.satisfiability import NormalizedConstraintModel, SatisfiabilityOutcome class SolverOperationalError(RuntimeError): diff --git a/implementations/python/packages/aces_processor/satisfiability/_translation.py b/implementations/python/packages/raes_processor/satisfiability/_translation.py similarity index 99% rename from implementations/python/packages/aces_processor/satisfiability/_translation.py rename to implementations/python/packages/raes_processor/satisfiability/_translation.py index 44bdd193b..44b6c6cea 100644 --- a/implementations/python/packages/aces_processor/satisfiability/_translation.py +++ b/implementations/python/packages/raes_processor/satisfiability/_translation.py @@ -8,8 +8,8 @@ from typing import cast import rfc8785 -from aces_contracts.diagnostics import DiagnosticModel -from aces_contracts.satisfiability import ( +from raes_contracts.diagnostics import DiagnosticModel +from raes_contracts.satisfiability import ( ConstraintClauseKind, ConstraintClauseModel, ConstraintSort, diff --git a/implementations/python/packages/aces_processor/semantics/__init__.py b/implementations/python/packages/raes_processor/semantics/__init__.py similarity index 100% rename from implementations/python/packages/aces_processor/semantics/__init__.py rename to implementations/python/packages/raes_processor/semantics/__init__.py diff --git a/implementations/python/packages/aces_processor/semantics/planner.py b/implementations/python/packages/raes_processor/semantics/planner.py similarity index 99% rename from implementations/python/packages/aces_processor/semantics/planner.py rename to implementations/python/packages/raes_processor/semantics/planner.py index f1e6a197a..b246a16d4 100644 --- a/implementations/python/packages/aces_processor/semantics/planner.py +++ b/implementations/python/packages/raes_processor/semantics/planner.py @@ -8,7 +8,7 @@ from enum import Enum from typing import Protocol, TypeVar -from aces_contracts.addressing import require_compiled_address +from raes_contracts.addressing import require_compiled_address class DependencyKind(str, Enum): diff --git a/implementations/python/packages/aces_processor/semantics/realization.py b/implementations/python/packages/raes_processor/semantics/realization.py similarity index 97% rename from implementations/python/packages/aces_processor/semantics/realization.py rename to implementations/python/packages/raes_processor/semantics/realization.py index cc0a0aa70..2c32c3b75 100644 --- a/implementations/python/packages/aces_processor/semantics/realization.py +++ b/implementations/python/packages/raes_processor/semantics/realization.py @@ -9,23 +9,23 @@ from collections.abc import Callable, Iterable, Mapping from dataclasses import dataclass, replace -from aces_backend_protocols.capabilities import BackendManifest -from aces_contracts.addressing import require_compiled_address -from aces_contracts.apparatus import ( +from raes_backend_protocols.capabilities import BackendManifest +from raes_contracts.addressing import require_compiled_address +from raes_contracts.apparatus import ( DECLARED_CAPABILITY_MATCH_REQUIREMENT_KIND, RUNTIME_REALIZATION_DOMAIN, ) -from aces_contracts.diagnostics import Diagnostic, Severity -from aces_contracts.planning import ChangeAction, ProvisioningPlan, ProvisionOp -from aces_contracts.realization_envelope import ( +from raes_contracts.diagnostics import Diagnostic, Severity +from raes_contracts.planning import ChangeAction, ProvisioningPlan, ProvisionOp +from raes_contracts.realization_envelope import ( ClosureOverlay, EnvelopeBinding, EnvelopeScope, Posture, RealizationEnvelopeModel, ) -from aces_contracts.runtime_state import RealizationProvenanceEntry, RuntimeSnapshot -from aces_contracts.vocabulary import Closure, RealizationSupportMode +from raes_contracts.runtime_state import RealizationProvenanceEntry, RuntimeSnapshot +from raes_contracts.vocabulary import Closure, RealizationSupportMode from raes.explicitness import ExplicitnessClass, ExplicitnessProvenance from raes.realization_envelope import effective_constraints, subsumes, tokenize_path @@ -47,7 +47,7 @@ _MISSING_CONCERN_VALUE = object() # The single coarse realization domain string already published by backend -# manifests (see ``aces_backend_stubs.stubs``). Kept opaque per the SEM-218 +# manifests (see ``raes_backend_stubs.stubs``). Kept opaque per the SEM-218 # extensibility seam. REALIZATION_DOMAIN = RUNTIME_REALIZATION_DOMAIN @@ -398,7 +398,7 @@ def realization_disclosure( This is the runtime sibling of ``realization_support_diagnostics``: the planner gate rejects an unrealizable exact requirement before deployment; this gate rejects a backend that realized one dishonestly. The runtime - adapter (``aces_runtime``) invokes it at the backend-call boundary. + adapter (``raes_runtime``) invokes it at the backend-call boundary. """ diagnostics: list[Diagnostic] = [] diff --git a/implementations/python/packages/aces_reference_backend/__init__.py b/implementations/python/packages/raes_reference_backend/__init__.py similarity index 91% rename from implementations/python/packages/aces_reference_backend/__init__.py rename to implementations/python/packages/raes_reference_backend/__init__.py index 345eb2cc8..cf232a9ed 100644 --- a/implementations/python/packages/aces_reference_backend/__init__.py +++ b/implementations/python/packages/raes_reference_backend/__init__.py @@ -1,14 +1,14 @@ """Reference emulation backend (RUN-314). A concrete, container-backed reference backend implementing the four -``aces_backend_protocols.protocols`` roles (Provisioner, Orchestrator, +``raes_backend_protocols.protocols`` roles (Provisioner, Orchestrator, Evaluator, ParticipantRuntime). It publishes identity/capability through the standard ``BackendManifest`` and registers on the existing ``BackendRegistry`` descriptor seam under the name ``reference-emulation``. The default driver is the hermetic in-process driver; an opt-in OCI driver realizes plans against a real container runtime (docker/podman). Only -portable ACES facts ever reach manifests, snapshots, diagnostics, or +portable RAES facts ever reach manifests, snapshots, diagnostics, or conformance reports -- never container/VM/network ids, host paths, environment, credentials, argv, or backend-native reprs. """ diff --git a/implementations/python/packages/aces_reference_backend/driver.py b/implementations/python/packages/raes_reference_backend/driver.py similarity index 86% rename from implementations/python/packages/aces_reference_backend/driver.py rename to implementations/python/packages/raes_reference_backend/driver.py index 4b5341c0b..bc7d11407 100644 --- a/implementations/python/packages/aces_reference_backend/driver.py +++ b/implementations/python/packages/raes_reference_backend/driver.py @@ -1,8 +1,8 @@ """Portable driver boundary for the reference emulation backend (RUN-314). The ``DeploymentDriver`` protocol is the host-process / emulator boundary. -Specs describe what to realize in portable ACES terms; handles describe -what was realized in portable ACES terms. No spec or handle carries a +Specs describe what to realize in portable RAES terms; handles describe +what was realized in portable RAES terms. No spec or handle carries a container/VM/network id, host path, environment, credential, argv, or any backend-native repr -- only references, digests, and labels that are safe to surface in a snapshot, diagnostic, or conformance report. @@ -18,14 +18,14 @@ from dataclasses import dataclass, field from typing import Protocol -from aces_contracts.diagnostics import Diagnostic +from raes_contracts.diagnostics import Diagnostic @dataclass(frozen=True) class NetworkSpec: """Portable description of a network to realize. - ``address`` is the ACES resource address. ``labels`` carries only + ``address`` is the RAES resource address. ``labels`` carries only non-sensitive classification labels (e.g. ``{"internal": "true"}``). """ @@ -54,7 +54,7 @@ class ContainerSpec: """Portable description of a container to realize. ``image_ref`` is a portable image reference (a name/tag or digest), not - a pulled local image id. ``networks`` are ACES network resource + a pulled local image id. ``networks`` are RAES network resource addresses. ``services`` preserves authored node-local transport binding descriptors without granting reachability or host publication. ``labels`` carries only non-sensitive classification labels. @@ -73,7 +73,7 @@ class ContainerSpec: class NetworkHandle: """Portable result of realizing a network. - Carries the ACES ``address`` and a ``realized`` flag only. A real driver + Carries the RAES ``address`` and a ``realized`` flag only. A real driver must NOT place the backend-native network id here. """ @@ -85,7 +85,7 @@ class NetworkHandle: class ContainerHandle: """Portable result of realizing a container. - Carries the ACES ``address`` and a ``realized`` flag only. A real driver + Carries the RAES ``address`` and a ``realized`` flag only. A real driver must NOT place the backend-native container id, inspect payload, or host path here. """ @@ -126,9 +126,9 @@ def destroy( networks: tuple[str, ...], containers: tuple[str, ...], ) -> DriverResult: - """Destroy the realized resources for the given ACES addresses.""" + """Destroy the realized resources for the given RAES addresses.""" ... def realized_addresses(self) -> frozenset[str]: - """Return the set of ACES addresses currently realized by this driver.""" + """Return the set of RAES addresses currently realized by this driver.""" ... diff --git a/implementations/python/packages/aces_reference_backend/drivers/__init__.py b/implementations/python/packages/raes_reference_backend/drivers/__init__.py similarity index 100% rename from implementations/python/packages/aces_reference_backend/drivers/__init__.py rename to implementations/python/packages/raes_reference_backend/drivers/__init__.py diff --git a/implementations/python/packages/aces_reference_backend/drivers/inprocess.py b/implementations/python/packages/raes_reference_backend/drivers/inprocess.py similarity index 95% rename from implementations/python/packages/aces_reference_backend/drivers/inprocess.py rename to implementations/python/packages/raes_reference_backend/drivers/inprocess.py index 21895030e..8890657b6 100644 --- a/implementations/python/packages/aces_reference_backend/drivers/inprocess.py +++ b/implementations/python/packages/raes_reference_backend/drivers/inprocess.py @@ -4,16 +4,16 @@ synthesizes portable handles. No subprocess, no container runtime, no IO -- so it is safe in CI and in the default conformance/apply path. It keeps a private ledger of recorded ops (for test assertions) and a private set of -realized ACES addresses; neither leaks into any portable artifact. +realized RAES addresses; neither leaks into any portable artifact. """ from __future__ import annotations from dataclasses import dataclass, field -from aces_contracts.diagnostics import Diagnostic, Severity +from raes_contracts.diagnostics import Diagnostic, Severity -from aces_reference_backend.driver import ( +from raes_reference_backend.driver import ( ContainerHandle, ContainerSpec, DriverResult, diff --git a/implementations/python/packages/aces_reference_backend/drivers/oci.py b/implementations/python/packages/raes_reference_backend/drivers/oci.py similarity index 98% rename from implementations/python/packages/aces_reference_backend/drivers/oci.py rename to implementations/python/packages/raes_reference_backend/drivers/oci.py index 415689680..a84bf2bad 100644 --- a/implementations/python/packages/aces_reference_backend/drivers/oci.py +++ b/implementations/python/packages/raes_reference_backend/drivers/oci.py @@ -11,7 +11,7 @@ argv. - Backend-native output (container ids, daemon inspect payloads, raw stderr) is consumed privately and NEVER placed into the returned portable - handles or diagnostics. Diagnostics carry the ACES address and a fixed + handles or diagnostics. Diagnostics carry the RAES address and a fixed message only. The actual subprocess call is the only impure leaf; it is injected as @@ -26,10 +26,10 @@ from collections.abc import Callable from dataclasses import dataclass -from aces_backend_protocols.naming import provider_resource_name -from aces_contracts.diagnostics import Diagnostic, Severity +from raes_backend_protocols.naming import provider_resource_name +from raes_contracts.diagnostics import Diagnostic, Severity -from aces_reference_backend.driver import ( +from raes_reference_backend.driver import ( ContainerHandle, ContainerSpec, DriverResult, @@ -126,14 +126,14 @@ def __init__( self._keep_alive = tuple(keep_alive) self._image_policy = image_policy self._realized: set[str] = set() - # ACES address -> the runtime object name realize() used, so destroy() + # RAES address -> the runtime object name realize() used, so destroy() # removes exactly what was created even when a payload pinned an # explicit name that differs from the address's last segment. self._names: dict[str, str] = {} # Native identifiers never cross the portable driver boundary. They are # retained only so namespace joins can prove that the current runtime # object is the exact container this driver created in this realize() - # transaction, rather than trusting a stale ACES address/name mapping. + # transaction, rather than trusting a stale RAES address/name mapping. self._native_ids: dict[str, str] = {} def _label_args(self, address: str) -> list[str]: diff --git a/implementations/python/packages/aces_reference_backend/evaluator.py b/implementations/python/packages/raes_reference_backend/evaluator.py similarity index 96% rename from implementations/python/packages/aces_reference_backend/evaluator.py rename to implementations/python/packages/raes_reference_backend/evaluator.py index a2b04c6e7..483083518 100644 --- a/implementations/python/packages/aces_reference_backend/evaluator.py +++ b/implementations/python/packages/raes_reference_backend/evaluator.py @@ -4,9 +4,9 @@ from datetime import UTC, datetime -from aces_contracts.planning import ChangeAction, EvaluationOp, EvaluationPlan, RuntimeDomain -from aces_contracts.runtime_state import ApplyResult, RuntimeSnapshot, SnapshotEntry -from aces_contracts.versions import EVALUATION_STATE_SCHEMA_VERSION +from raes_contracts.planning import ChangeAction, EvaluationOp, EvaluationPlan, RuntimeDomain +from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot, SnapshotEntry +from raes_contracts.versions import EVALUATION_STATE_SCHEMA_VERSION def _now_iso() -> str: diff --git a/implementations/python/packages/aces_reference_backend/manifest.py b/implementations/python/packages/raes_reference_backend/manifest.py similarity index 98% rename from implementations/python/packages/aces_reference_backend/manifest.py rename to implementations/python/packages/raes_reference_backend/manifest.py index f21ebb921..5c597db3b 100644 --- a/implementations/python/packages/aces_reference_backend/manifest.py +++ b/implementations/python/packages/raes_reference_backend/manifest.py @@ -14,7 +14,7 @@ from importlib.metadata import PackageNotFoundError from importlib.metadata import version as distribution_version -from aces_backend_protocols.capabilities import ( +from raes_backend_protocols.capabilities import ( CLEANUP_CAPABILITY_REQUIRED_CONTRACTS, PARTICIPANT_RUNTIME_BEHAVIOR_FEATURE_SCOPE, PARTICIPANT_RUNTIME_CAPABILITY_REQUIRED_CONTRACTS, @@ -33,9 +33,9 @@ WorkflowFeature, WorkflowStatePredicateFeature, ) -from aces_contracts.apparatus import ConceptBinding, RealizationSupportDeclaration -from aces_contracts.manifest_authority import BACKEND_SUPPORTED_CONTRACT_IDS -from aces_contracts.vocabulary import RealizationSupportMode +from raes_contracts.apparatus import ConceptBinding, RealizationSupportDeclaration +from raes_contracts.manifest_authority import BACKEND_SUPPORTED_CONTRACT_IDS +from raes_contracts.vocabulary import RealizationSupportMode REFERENCE_BACKEND_NAME = "reference-emulation" REFERENCE_BACKEND_SUPPORTED_CONTRACT_VERSIONS = frozenset( diff --git a/implementations/python/packages/aces_reference_backend/orchestrator.py b/implementations/python/packages/raes_reference_backend/orchestrator.py similarity index 97% rename from implementations/python/packages/aces_reference_backend/orchestrator.py rename to implementations/python/packages/raes_reference_backend/orchestrator.py index 3e3d4dbba..55a5f048f 100644 --- a/implementations/python/packages/aces_reference_backend/orchestrator.py +++ b/implementations/python/packages/raes_reference_backend/orchestrator.py @@ -11,8 +11,8 @@ from datetime import UTC, datetime -from aces_contracts.planning import ChangeAction, OrchestrationPlan, RuntimeDomain -from aces_contracts.runtime_state import ApplyResult, RuntimeSnapshot, SnapshotEntry +from raes_contracts.planning import ChangeAction, OrchestrationPlan, RuntimeDomain +from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot, SnapshotEntry _QUEUED_RESOURCE_TYPES = frozenset({"event", "script", "story", "workflow"}) diff --git a/implementations/python/packages/aces_reference_backend/participant_runtime.py b/implementations/python/packages/raes_reference_backend/participant_runtime.py similarity index 93% rename from implementations/python/packages/aces_reference_backend/participant_runtime.py rename to implementations/python/packages/raes_reference_backend/participant_runtime.py index e160b1238..866b4e3f8 100644 --- a/implementations/python/packages/aces_reference_backend/participant_runtime.py +++ b/implementations/python/packages/raes_reference_backend/participant_runtime.py @@ -9,7 +9,7 @@ from __future__ import annotations -from aces_backend_protocols.participant_runtime_base import BaseParticipantRuntime +from raes_backend_protocols.participant_runtime_base import BaseParticipantRuntime class ReferenceParticipantRuntime(BaseParticipantRuntime): diff --git a/implementations/python/packages/aces_reference_backend/provisioner.py b/implementations/python/packages/raes_reference_backend/provisioner.py similarity index 95% rename from implementations/python/packages/aces_reference_backend/provisioner.py rename to implementations/python/packages/raes_reference_backend/provisioner.py index b4b218831..36be9b770 100644 --- a/implementations/python/packages/aces_reference_backend/provisioner.py +++ b/implementations/python/packages/raes_reference_backend/provisioner.py @@ -11,9 +11,9 @@ from __future__ import annotations -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.planning import ChangeAction, ProvisioningPlan, RuntimeDomain -from aces_contracts.runtime_state import ApplyResult, RuntimeSnapshot, SnapshotEntry +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.planning import ChangeAction, ProvisioningPlan, RuntimeDomain +from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot, SnapshotEntry from .driver import DeploymentDriver from .realization import ( diff --git a/implementations/python/packages/aces_reference_backend/realization.py b/implementations/python/packages/raes_reference_backend/realization.py similarity index 97% rename from implementations/python/packages/aces_reference_backend/realization.py rename to implementations/python/packages/raes_reference_backend/realization.py index 96e97070f..d23cfed6b 100644 --- a/implementations/python/packages/aces_reference_backend/realization.py +++ b/implementations/python/packages/raes_reference_backend/realization.py @@ -1,6 +1,6 @@ """Pure interpretation of provisioning plans for the reference backend. -``interpret_provisioning_plan`` maps an ACES ``ProvisioningPlan`` into a +``interpret_provisioning_plan`` maps an RAES ``ProvisioningPlan`` into a driver-agnostic :class:`Realization` of portable network/container specs plus placement records, with diagnostics for unsupported resource types or malformed payloads. It is pure (no driver, no IO) so the provisioner can @@ -13,9 +13,9 @@ from collections.abc import Mapping from dataclasses import dataclass -from aces_backend_protocols.naming import provider_resource_name -from aces_contracts.diagnostics import Diagnostic, Severity -from aces_contracts.planning import PlannedResource, ProvisioningPlan, RuntimeDomain +from raes_backend_protocols.naming import provider_resource_name +from raes_contracts.diagnostics import Diagnostic, Severity +from raes_contracts.planning import PlannedResource, ProvisioningPlan, RuntimeDomain from .driver import ContainerSpec, NetworkSpec, ServiceSpec @@ -55,7 +55,7 @@ class Realization: def interpret_provisioning_plan(plan: ProvisioningPlan) -> Realization: - """Interpret an ACES provisioning plan as a portable realization. + """Interpret an RAES provisioning plan as a portable realization. Networks are interpreted before nodes so a container's network references (authored by name or address) resolve to the network resource *address* — diff --git a/implementations/python/packages/aces_reference_backend/target.py b/implementations/python/packages/raes_reference_backend/target.py similarity index 95% rename from implementations/python/packages/aces_reference_backend/target.py rename to implementations/python/packages/raes_reference_backend/target.py index 60ff7b297..34eb41655 100644 --- a/implementations/python/packages/aces_reference_backend/target.py +++ b/implementations/python/packages/raes_reference_backend/target.py @@ -8,8 +8,8 @@ from __future__ import annotations -from aces_backend_protocols.capabilities import BackendManifest -from aces_runtime.registry import BackendRegistry, ReferenceTimeRuntime, RuntimeTarget, RuntimeTargetComponents +from raes_backend_protocols.capabilities import BackendManifest +from raes_runtime.registry import BackendRegistry, ReferenceTimeRuntime, RuntimeTarget, RuntimeTargetComponents from .driver import DeploymentDriver from .drivers.inprocess import InProcessDriver diff --git a/implementations/python/packages/aces_runtime/__init__.py b/implementations/python/packages/raes_runtime/__init__.py similarity index 93% rename from implementations/python/packages/aces_runtime/__init__.py rename to implementations/python/packages/raes_runtime/__init__.py index 36de7c98a..8fe092c24 100644 --- a/implementations/python/packages/aces_runtime/__init__.py +++ b/implementations/python/packages/raes_runtime/__init__.py @@ -1,4 +1,4 @@ -"""Live runtime control surfaces for ACES SDL.""" +"""Live runtime control surfaces for RAES SDL.""" from .control_plane import RuntimeControlPlane from .manager import RuntimeManager diff --git a/implementations/python/packages/aces_runtime/apply_failure.py b/implementations/python/packages/raes_runtime/apply_failure.py similarity index 94% rename from implementations/python/packages/aces_runtime/apply_failure.py rename to implementations/python/packages/raes_runtime/apply_failure.py index 302f184da..4b3b1355a 100644 --- a/implementations/python/packages/aces_runtime/apply_failure.py +++ b/implementations/python/packages/raes_runtime/apply_failure.py @@ -1,7 +1,7 @@ """Apply failure synthesis and service rollback operations.""" -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.runtime_state import ApplyResult, RuntimeSnapshot +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot from .backend_calls import _call_backend_apply from .diagnostics import _failure_diagnostic, _has_error_diagnostic diff --git a/implementations/python/packages/aces_runtime/backend_calls.py b/implementations/python/packages/raes_runtime/backend_calls.py similarity index 96% rename from implementations/python/packages/aces_runtime/backend_calls.py rename to implementations/python/packages/raes_runtime/backend_calls.py index bb865fb38..c9d59e477 100644 --- a/implementations/python/packages/aces_runtime/backend_calls.py +++ b/implementations/python/packages/raes_runtime/backend_calls.py @@ -5,13 +5,13 @@ from collections.abc import Callable, Iterable from copy import deepcopy -from aces_contracts.addressing import require_compiled_address -from aces_contracts.contracts.time_model import validate_time_runtime_transition -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.planning import ProvisioningPlan -from aces_contracts.runtime_state import ApplyResult, RealizationProvenanceEntry, RuntimeSnapshot -from aces_processor.models import CompiledRealizationRequirement -from aces_processor.planner import realization_disclosure +from raes_contracts.addressing import require_compiled_address +from raes_contracts.contracts.time_model import validate_time_runtime_transition +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.planning import ProvisioningPlan +from raes_contracts.runtime_state import ApplyResult, RealizationProvenanceEntry, RuntimeSnapshot +from raes_processor.models import CompiledRealizationRequirement +from raes_processor.planner import realization_disclosure from .diagnostics import _failure_diagnostic from .evaluation_result_contracts import evaluation_result_contract_diagnostics diff --git a/implementations/python/packages/aces_runtime/control_plane.py b/implementations/python/packages/raes_runtime/control_plane.py similarity index 98% rename from implementations/python/packages/aces_runtime/control_plane.py rename to implementations/python/packages/raes_runtime/control_plane.py index dafee4065..691a287b3 100644 --- a/implementations/python/packages/aces_runtime/control_plane.py +++ b/implementations/python/packages/raes_runtime/control_plane.py @@ -11,15 +11,15 @@ from datetime import UTC, datetime from uuid import uuid4 -from aces_backend_protocols.backend_manifest import BackendManifest -from aces_backend_protocols.domain_topology import domain_topology_plan_diagnostics -from aces_backend_protocols.service_materialization import service_materialization_plan_diagnostics -from aces_contracts.apparatus import ( +from raes_backend_protocols.backend_manifest import BackendManifest +from raes_backend_protocols.domain_topology import domain_topology_plan_diagnostics +from raes_backend_protocols.service_materialization import service_materialization_plan_diagnostics +from raes_contracts.apparatus import ( DECLARED_CAPABILITY_MATCH_REQUIREMENT_KIND, RUNTIME_REALIZATION_DOMAIN, ) -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.planning import ( +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.planning import ( EvaluationPlan, OrchestrationPlan, PlanOperation, @@ -27,14 +27,14 @@ RuntimeDomain, require_plan_operation_identity, ) -from aces_contracts.runtime_state import ( +from raes_contracts.runtime_state import ( OperationReceipt, OperationState, OperationStatus, RuntimeSnapshot, RuntimeSnapshotEnvelope, ) -from aces_contracts.workflow import ( +from raes_contracts.workflow import ( WorkflowCompensationStatus, WorkflowExecutionState, WorkflowHistoryEvent, diff --git a/implementations/python/packages/aces_runtime/control_plane_api.py b/implementations/python/packages/raes_runtime/control_plane_api.py similarity index 99% rename from implementations/python/packages/aces_runtime/control_plane_api.py rename to implementations/python/packages/raes_runtime/control_plane_api.py index 00d936be9..f16b9614f 100644 --- a/implementations/python/packages/aces_runtime/control_plane_api.py +++ b/implementations/python/packages/raes_runtime/control_plane_api.py @@ -8,7 +8,7 @@ from importlib.metadata import version as distribution_version from typing import Annotated -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( EvaluationPlanModel, OperationReceiptModel, OperationStatusModel, @@ -17,8 +17,8 @@ RuntimeSnapshotEnvelopeModel, WorkflowCancellationRequestModel, ) -from aces_contracts.participant_episode import ParticipantEpisodeTerminalReason -from aces_contracts.runtime_state import OperationReceipt +from raes_contracts.participant_episode import ParticipantEpisodeTerminalReason +from raes_contracts.runtime_state import OperationReceipt from fastapi import Depends, FastAPI, HTTPException, Request, Response from fastapi.responses import JSONResponse diff --git a/implementations/python/packages/aces_runtime/control_plane_api_guards.py b/implementations/python/packages/raes_runtime/control_plane_api_guards.py similarity index 100% rename from implementations/python/packages/aces_runtime/control_plane_api_guards.py rename to implementations/python/packages/raes_runtime/control_plane_api_guards.py diff --git a/implementations/python/packages/aces_runtime/control_plane_api_models.py b/implementations/python/packages/raes_runtime/control_plane_api_models.py similarity index 96% rename from implementations/python/packages/aces_runtime/control_plane_api_models.py rename to implementations/python/packages/raes_runtime/control_plane_api_models.py index 1a1eea8c5..a7440b1c9 100644 --- a/implementations/python/packages/aces_runtime/control_plane_api_models.py +++ b/implementations/python/packages/raes_runtime/control_plane_api_models.py @@ -6,16 +6,16 @@ from dataclasses import asdict from typing import Any -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( EvaluationPlanModel, OperationStatusModel, OrchestrationPlanModel, ProvisioningPlanModel, RuntimeSnapshotEnvelopeModel, ) -from aces_contracts.diagnostics import Diagnostic, Severity -from aces_contracts.participant_episode import ParticipantEpisodeTerminalReason -from aces_contracts.planning import ( +from raes_contracts.diagnostics import Diagnostic, Severity +from raes_contracts.participant_episode import ParticipantEpisodeTerminalReason +from raes_contracts.planning import ( ChangeAction, EvaluationOp, EvaluationPlan, @@ -24,7 +24,7 @@ ProvisioningPlan, ProvisionOp, ) -from aces_contracts.runtime_state import OperationStatus, RuntimeSnapshotEnvelope +from raes_contracts.runtime_state import OperationStatus, RuntimeSnapshotEnvelope from fastapi import Request from pydantic import BaseModel, ConfigDict, Field diff --git a/implementations/python/packages/aces_runtime/control_plane_api_participant_retrieval.py b/implementations/python/packages/raes_runtime/control_plane_api_participant_retrieval.py similarity index 98% rename from implementations/python/packages/aces_runtime/control_plane_api_participant_retrieval.py rename to implementations/python/packages/raes_runtime/control_plane_api_participant_retrieval.py index 5a51f6e58..ef4364f8b 100644 --- a/implementations/python/packages/aces_runtime/control_plane_api_participant_retrieval.py +++ b/implementations/python/packages/raes_runtime/control_plane_api_participant_retrieval.py @@ -4,7 +4,7 @@ from typing import Annotated -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( ParticipantContextViewModel, ParticipantHistoryViewModel, ParticipantStatusViewModel, diff --git a/implementations/python/packages/aces_runtime/control_plane_execution.py b/implementations/python/packages/raes_runtime/control_plane_execution.py similarity index 97% rename from implementations/python/packages/aces_runtime/control_plane_execution.py rename to implementations/python/packages/raes_runtime/control_plane_execution.py index 9b35fd008..b08f43353 100644 --- a/implementations/python/packages/aces_runtime/control_plane_execution.py +++ b/implementations/python/packages/raes_runtime/control_plane_execution.py @@ -7,9 +7,9 @@ from datetime import UTC, datetime from uuid import uuid4 -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.planning import RuntimeDomain -from aces_contracts.runtime_state import OperationReceipt, OperationState, OperationStatus, RuntimeSnapshot +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.planning import RuntimeDomain +from raes_contracts.runtime_state import OperationReceipt, OperationState, OperationStatus, RuntimeSnapshot from .backend_calls import _call_backend_apply from .control_plane_store import ControlPlaneOperationRecord diff --git a/implementations/python/packages/aces_runtime/control_plane_security.py b/implementations/python/packages/raes_runtime/control_plane_security.py similarity index 100% rename from implementations/python/packages/aces_runtime/control_plane_security.py rename to implementations/python/packages/raes_runtime/control_plane_security.py diff --git a/implementations/python/packages/aces_runtime/control_plane_store.py b/implementations/python/packages/raes_runtime/control_plane_store.py similarity index 98% rename from implementations/python/packages/aces_runtime/control_plane_store.py rename to implementations/python/packages/raes_runtime/control_plane_store.py index 16d92c393..9385836c0 100644 --- a/implementations/python/packages/aces_runtime/control_plane_store.py +++ b/implementations/python/packages/raes_runtime/control_plane_store.py @@ -10,12 +10,12 @@ from pathlib import Path from typing import Any, Protocol -from aces_contracts.contracts import RealizationEnvelopeIdentityModel -from aces_contracts.contracts.time_model import TimeRuntimeStateModel -from aces_contracts.diagnostics import Diagnostic, Severity -from aces_contracts.participant_autonomous_state import require_participant_autonomous_runtime_snapshot -from aces_contracts.planning import RuntimeDomain -from aces_contracts.runtime_state import ( +from raes_contracts.contracts import RealizationEnvelopeIdentityModel +from raes_contracts.contracts.time_model import TimeRuntimeStateModel +from raes_contracts.diagnostics import Diagnostic, Severity +from raes_contracts.participant_autonomous_state import require_participant_autonomous_runtime_snapshot +from raes_contracts.planning import RuntimeDomain +from raes_contracts.runtime_state import ( ExplicitnessClass, ExplicitnessProvenance, OperationReceipt, diff --git a/implementations/python/packages/aces_runtime/control_plane_timeouts.py b/implementations/python/packages/raes_runtime/control_plane_timeouts.py similarity index 96% rename from implementations/python/packages/aces_runtime/control_plane_timeouts.py rename to implementations/python/packages/raes_runtime/control_plane_timeouts.py index d7b30baeb..6d9f0dfc1 100644 --- a/implementations/python/packages/aces_runtime/control_plane_timeouts.py +++ b/implementations/python/packages/raes_runtime/control_plane_timeouts.py @@ -2,9 +2,9 @@ from __future__ import annotations -from aces_contracts.planning import RuntimeDomain -from aces_contracts.runtime_state import RuntimeSnapshot, SnapshotEntry -from aces_contracts.workflow import ( +from raes_contracts.planning import RuntimeDomain +from raes_contracts.runtime_state import RuntimeSnapshot, SnapshotEntry +from raes_contracts.workflow import ( WorkflowCompensationStatus, WorkflowExecutionState, WorkflowHistoryEvent, diff --git a/implementations/python/packages/aces_runtime/control_plane_workflows.py b/implementations/python/packages/raes_runtime/control_plane_workflows.py similarity index 98% rename from implementations/python/packages/aces_runtime/control_plane_workflows.py rename to implementations/python/packages/raes_runtime/control_plane_workflows.py index 5e86163f6..951204c57 100644 --- a/implementations/python/packages/aces_runtime/control_plane_workflows.py +++ b/implementations/python/packages/raes_runtime/control_plane_workflows.py @@ -4,8 +4,8 @@ from datetime import UTC, datetime -from aces_contracts.runtime_state import RuntimeSnapshot -from aces_contracts.workflow import ( +from raes_contracts.runtime_state import RuntimeSnapshot +from raes_contracts.workflow import ( WorkflowCompensationStatus, WorkflowExecutionContract, WorkflowExecutionState, diff --git a/implementations/python/packages/aces_runtime/diagnostics.py b/implementations/python/packages/raes_runtime/diagnostics.py similarity index 93% rename from implementations/python/packages/aces_runtime/diagnostics.py rename to implementations/python/packages/raes_runtime/diagnostics.py index 75149c95e..1ba84fd7c 100644 --- a/implementations/python/packages/aces_runtime/diagnostics.py +++ b/implementations/python/packages/raes_runtime/diagnostics.py @@ -4,7 +4,7 @@ from datetime import UTC, datetime -from aces_contracts.diagnostics import Diagnostic +from raes_contracts.diagnostics import Diagnostic def _has_error_diagnostic(diagnostics: list[Diagnostic]) -> bool: diff --git a/implementations/python/packages/aces_runtime/evaluation_result_contracts.py b/implementations/python/packages/raes_runtime/evaluation_result_contracts.py similarity index 98% rename from implementations/python/packages/aces_runtime/evaluation_result_contracts.py rename to implementations/python/packages/raes_runtime/evaluation_result_contracts.py index 62f41be3a..83689a2fe 100644 --- a/implementations/python/packages/aces_runtime/evaluation_result_contracts.py +++ b/implementations/python/packages/raes_runtime/evaluation_result_contracts.py @@ -4,8 +4,8 @@ from dataclasses import dataclass -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.evaluation import ( +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.evaluation import ( EvaluationExecutionContract, EvaluationExecutionState, EvaluationHistoryEvent, @@ -14,8 +14,8 @@ EvaluationResultStatus, validate_evaluation_result, ) -from aces_contracts.planning import RuntimeDomain -from aces_contracts.runtime_state import RuntimeSnapshot, SnapshotEntry +from raes_contracts.planning import RuntimeDomain +from raes_contracts.runtime_state import RuntimeSnapshot, SnapshotEntry from .diagnostics import _failure_diagnostic, _parse_timestamp diff --git a/implementations/python/packages/aces_runtime/manager.py b/implementations/python/packages/raes_runtime/manager.py similarity index 97% rename from implementations/python/packages/aces_runtime/manager.py rename to implementations/python/packages/raes_runtime/manager.py index d128bb386..3b20fcc4d 100644 --- a/implementations/python/packages/aces_runtime/manager.py +++ b/implementations/python/packages/raes_runtime/manager.py @@ -2,13 +2,13 @@ from dataclasses import dataclass -from aces_contracts.contracts.time_model import TimeModelDeclarationModel -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.planning import ChangeAction, ProvisioningPlan, ProvisionOp, RuntimeDomain -from aces_contracts.runtime_state import ApplyResult, RuntimeSnapshot -from aces_processor.compiler import compile_scenario_runtime_model -from aces_processor.models import ExecutionPlan -from aces_processor.planner import plan, snapshot_delete_order +from raes_contracts.contracts.time_model import TimeModelDeclarationModel +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.planning import ChangeAction, ProvisioningPlan, ProvisionOp, RuntimeDomain +from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot +from raes_processor.compiler import compile_scenario_runtime_model +from raes_processor.models import ExecutionPlan +from raes_processor.planner import plan, snapshot_delete_order from .apply_failure import maybe_synthesize_failure, rollback_services from .backend_calls import _call_backend_apply, _call_backend_diagnostics diff --git a/implementations/python/packages/aces_runtime/operational_apparatus.py b/implementations/python/packages/raes_runtime/operational_apparatus.py similarity index 97% rename from implementations/python/packages/aces_runtime/operational_apparatus.py rename to implementations/python/packages/raes_runtime/operational_apparatus.py index 63a4cdbbe..d7558c9cd 100644 --- a/implementations/python/packages/aces_runtime/operational_apparatus.py +++ b/implementations/python/packages/raes_runtime/operational_apparatus.py @@ -4,8 +4,8 @@ from typing import Any -from aces_contracts.planning import RuntimeDomain -from aces_contracts.runtime_state import OperationState, RuntimeSnapshot +from raes_contracts.planning import RuntimeDomain +from raes_contracts.runtime_state import OperationState, RuntimeSnapshot from .control_plane_store import AuditEvent, ControlPlaneOperationRecord diff --git a/implementations/python/packages/aces_runtime/participant_action_validation.py b/implementations/python/packages/raes_runtime/participant_action_validation.py similarity index 97% rename from implementations/python/packages/aces_runtime/participant_action_validation.py rename to implementations/python/packages/raes_runtime/participant_action_validation.py index a2596e09b..26df050db 100644 --- a/implementations/python/packages/aces_runtime/participant_action_validation.py +++ b/implementations/python/packages/raes_runtime/participant_action_validation.py @@ -3,14 +3,14 @@ from dataclasses import replace from typing import cast -from aces_contracts.contracts import ParticipantBehaviorHistoryEventModel -from aces_contracts.participant_binding import ( +from raes_contracts.contracts import ParticipantBehaviorHistoryEventModel +from raes_contracts.participant_binding import ( ParticipantActionAdmissionRequest, ParticipantActionApplyResult, participant_action_admission_request_violations, participant_implementation_actor_provenance, ) -from aces_contracts.runtime_state import RuntimeSnapshot +from raes_contracts.runtime_state import RuntimeSnapshot _TERMINAL_ACTION_STATUSES = frozenset({"succeeded", "failed", "partial_success", "rejected", "withheld"}) diff --git a/implementations/python/packages/aces_runtime/participant_clock_driver.py b/implementations/python/packages/raes_runtime/participant_clock_driver.py similarity index 97% rename from implementations/python/packages/aces_runtime/participant_clock_driver.py rename to implementations/python/packages/raes_runtime/participant_clock_driver.py index 900d33c38..32af2170b 100644 --- a/implementations/python/packages/aces_runtime/participant_clock_driver.py +++ b/implementations/python/packages/raes_runtime/participant_clock_driver.py @@ -8,9 +8,9 @@ from dataclasses import dataclass from fractions import Fraction -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.runtime_state import ApplyResult, RuntimeSnapshot -from aces_processor.models import CompiledTimeModel, ParticipantAutonomousExecutionRuntime +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot +from raes_processor.models import CompiledTimeModel, ParticipantAutonomousExecutionRuntime _UNEXPECTED_FAILURES = (Exception,) diff --git a/implementations/python/packages/aces_runtime/participant_control.py b/implementations/python/packages/raes_runtime/participant_control.py similarity index 97% rename from implementations/python/packages/aces_runtime/participant_control.py rename to implementations/python/packages/raes_runtime/participant_control.py index 311d9745e..9c8de66eb 100644 --- a/implementations/python/packages/aces_runtime/participant_control.py +++ b/implementations/python/packages/raes_runtime/participant_control.py @@ -2,23 +2,23 @@ from __future__ import annotations -from aces_contracts.contracts import ParticipantDecisionSurfaceModel, ParticipantDecisionSurfaceSelectionModel -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.participant_binding import ( +from raes_contracts.contracts import ParticipantDecisionSurfaceModel, ParticipantDecisionSurfaceSelectionModel +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.participant_binding import ( ParticipantActionAdmissionRequest, ParticipantDecisionSurfaceBindingResolvers, bind_participant_decision_surface_selection, ) -from aces_contracts.participant_episode import ( +from raes_contracts.participant_episode import ( ParticipantEpisodeInitializeRequest, ParticipantEpisodeResetRequest, ParticipantEpisodeRestartRequest, ParticipantEpisodeTerminalReason, ParticipantEpisodeTerminateRequest, ) -from aces_contracts.planning import RuntimeDomain -from aces_contracts.runtime_state import OperationReceipt -from aces_processor.models import ParticipantBehaviorRuntime +from raes_contracts.planning import RuntimeDomain +from raes_contracts.runtime_state import OperationReceipt +from raes_processor.models import ParticipantBehaviorRuntime from .control_plane_execution import execute_participant_action diff --git a/implementations/python/packages/aces_runtime/participant_execution_control.py b/implementations/python/packages/raes_runtime/participant_execution_control.py similarity index 97% rename from implementations/python/packages/aces_runtime/participant_execution_control.py rename to implementations/python/packages/raes_runtime/participant_execution_control.py index 542bc8db9..aa323114b 100644 --- a/implementations/python/packages/aces_runtime/participant_execution_control.py +++ b/implementations/python/packages/raes_runtime/participant_execution_control.py @@ -5,17 +5,17 @@ import threading from typing import TYPE_CHECKING -from aces_contracts.contracts import ParticipantAutonomousExecutionStateModel -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.participant_episode import ParticipantEpisodeResetRequest -from aces_contracts.runtime_state import ApplyResult +from raes_contracts.contracts import ParticipantAutonomousExecutionStateModel +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.participant_episode import ParticipantEpisodeResetRequest +from raes_contracts.runtime_state import ApplyResult from .diagnostics import _has_error_diagnostic from .participant_clock_driver import ParticipantClockDriver from .participant_scheduler import ParticipantScheduler if TYPE_CHECKING: - from aces_processor.models import ExecutionPlan + from raes_processor.models import ExecutionPlan from .manager import _RuntimeApplyState diff --git a/implementations/python/packages/aces_runtime/participant_result_contracts.py b/implementations/python/packages/raes_runtime/participant_result_contracts.py similarity index 93% rename from implementations/python/packages/aces_runtime/participant_result_contracts.py rename to implementations/python/packages/raes_runtime/participant_result_contracts.py index e065eceac..fbc6e1bd7 100644 --- a/implementations/python/packages/aces_runtime/participant_result_contracts.py +++ b/implementations/python/packages/raes_runtime/participant_result_contracts.py @@ -2,21 +2,21 @@ from __future__ import annotations -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.participant_behavior import ( +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.participant_behavior import ( iter_participant_behavior_snapshot_violations, iter_participant_runtime_history_transition_violations, ) -from aces_contracts.participant_concurrency import ( +from raes_contracts.participant_concurrency import ( iter_participant_concurrency_snapshot_violations, iter_participant_concurrency_transition_violations, ) -from aces_contracts.participant_episode import iter_participant_episode_snapshot_violations -from aces_contracts.participant_shared_state import ( +from raes_contracts.participant_episode import iter_participant_episode_snapshot_violations +from raes_contracts.participant_shared_state import ( iter_participant_shared_state_history_transition_violations, iter_participant_shared_state_snapshot_violations, ) -from aces_contracts.runtime_state import RuntimeSnapshot +from raes_contracts.runtime_state import RuntimeSnapshot from .diagnostics import _failure_diagnostic diff --git a/implementations/python/packages/aces_runtime/participant_retrieval.py b/implementations/python/packages/raes_runtime/participant_retrieval.py similarity index 98% rename from implementations/python/packages/aces_runtime/participant_retrieval.py rename to implementations/python/packages/raes_runtime/participant_retrieval.py index 719d3d9b0..646b2c7b4 100644 --- a/implementations/python/packages/aces_runtime/participant_retrieval.py +++ b/implementations/python/packages/raes_runtime/participant_retrieval.py @@ -5,13 +5,13 @@ from collections.abc import Mapping from datetime import UTC, datetime -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( ParticipantContextViewModel, ParticipantHistoryViewModel, ParticipantStatusViewModel, ) -from aces_contracts.planning import RuntimeDomain -from aces_contracts.runtime_state import OperationState, RuntimeSnapshot +from raes_contracts.planning import RuntimeDomain +from raes_contracts.runtime_state import OperationState, RuntimeSnapshot from .control_plane_store import ControlPlaneOperationRecord diff --git a/implementations/python/packages/aces_runtime/participant_scheduler.py b/implementations/python/packages/raes_runtime/participant_scheduler.py similarity index 97% rename from implementations/python/packages/aces_runtime/participant_scheduler.py rename to implementations/python/packages/raes_runtime/participant_scheduler.py index 735bb67e7..169da0c2a 100644 --- a/implementations/python/packages/aces_runtime/participant_scheduler.py +++ b/implementations/python/packages/raes_runtime/participant_scheduler.py @@ -7,14 +7,14 @@ from collections.abc import Iterable from dataclasses import asdict -from aces_contracts.contracts import ParticipantAutonomousExecutionStateModel -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.participant_episode import ( +from raes_contracts.contracts import ParticipantAutonomousExecutionStateModel +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.participant_episode import ( ParticipantEpisodeInitializeRequest, ParticipantEpisodeResetRequest, ) -from aces_contracts.runtime_state import ApplyResult, RuntimeSnapshot -from aces_processor.models import CompiledTimeModel, ParticipantAutonomousExecutionRuntime +from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot +from raes_processor.models import CompiledTimeModel, ParticipantAutonomousExecutionRuntime from .participant_scheduler_operations import ( SchedulerRunState, diff --git a/implementations/python/packages/aces_runtime/participant_scheduler_operations.py b/implementations/python/packages/raes_runtime/participant_scheduler_operations.py similarity index 97% rename from implementations/python/packages/aces_runtime/participant_scheduler_operations.py rename to implementations/python/packages/raes_runtime/participant_scheduler_operations.py index f31dfdfac..9e7d03d9f 100644 --- a/implementations/python/packages/aces_runtime/participant_scheduler_operations.py +++ b/implementations/python/packages/raes_runtime/participant_scheduler_operations.py @@ -5,14 +5,14 @@ from dataclasses import dataclass, replace from typing import cast -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( ParticipantAutonomousExecutionStateModel, ParticipantTemporalRuntimeContextModel, ) -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.participant_binding import ParticipantActionAdmissionRequest -from aces_contracts.runtime_state import ApplyResult, RuntimeSnapshot -from aces_processor.models import CompiledTimeModel, ParticipantAutonomousExecutionRuntime +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.participant_binding import ParticipantActionAdmissionRequest +from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot +from raes_processor.models import CompiledTimeModel, ParticipantAutonomousExecutionRuntime from .participant_action_validation import autonomous_action_result_violation diff --git a/implementations/python/packages/aces_runtime/proposition_truth_contracts.py b/implementations/python/packages/raes_runtime/proposition_truth_contracts.py similarity index 95% rename from implementations/python/packages/aces_runtime/proposition_truth_contracts.py rename to implementations/python/packages/raes_runtime/proposition_truth_contracts.py index 834c2a607..68ac22d9b 100644 --- a/implementations/python/packages/aces_runtime/proposition_truth_contracts.py +++ b/implementations/python/packages/raes_runtime/proposition_truth_contracts.py @@ -2,9 +2,9 @@ from __future__ import annotations -from aces_contracts.contracts import PropositionTruthResultModel -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.runtime_state import RuntimeSnapshot +from raes_contracts.contracts import PropositionTruthResultModel +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.runtime_state import RuntimeSnapshot from pydantic import ValidationError from .diagnostics import _failure_diagnostic diff --git a/implementations/python/packages/aces_runtime/registry.py b/implementations/python/packages/raes_runtime/registry.py similarity index 98% rename from implementations/python/packages/aces_runtime/registry.py rename to implementations/python/packages/raes_runtime/registry.py index 7e08b2f63..0773913c4 100644 --- a/implementations/python/packages/aces_runtime/registry.py +++ b/implementations/python/packages/raes_runtime/registry.py @@ -5,15 +5,15 @@ from inspect import Signature, signature from typing import Any -from aces_backend_protocols.capabilities import BackendManifest -from aces_backend_protocols.protocols import ( +from raes_backend_protocols.capabilities import BackendManifest +from raes_backend_protocols.protocols import ( Evaluator, Orchestrator, ParticipantRuntime, Provisioner, TimeRuntime, ) -from aces_contracts.participant_binding import ParticipantActionAdmissionRequest +from raes_contracts.participant_binding import ParticipantActionAdmissionRequest from . import time_coordinator as _time_coordinator from .registry_probes import sample_participant_action_admission_request diff --git a/implementations/python/packages/aces_runtime/registry_probes.py b/implementations/python/packages/raes_runtime/registry_probes.py similarity index 97% rename from implementations/python/packages/aces_runtime/registry_probes.py rename to implementations/python/packages/raes_runtime/registry_probes.py index ed9bbf62a..e4699aa4b 100644 --- a/implementations/python/packages/aces_runtime/registry_probes.py +++ b/implementations/python/packages/raes_runtime/registry_probes.py @@ -1,10 +1,10 @@ """Typed probe values used to inspect runtime-target method signatures.""" -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( ParticipantImplementationManifestModel, ParticipantImplementationSelectionModel, ) -from aces_contracts.participant_binding import ParticipantActionAdmissionRequest +from raes_contracts.participant_binding import ParticipantActionAdmissionRequest def sample_participant_action_admission_request() -> ParticipantActionAdmissionRequest: diff --git a/implementations/python/packages/aces_runtime/result_contracts.py b/implementations/python/packages/raes_runtime/result_contracts.py similarity index 100% rename from implementations/python/packages/aces_runtime/result_contracts.py rename to implementations/python/packages/raes_runtime/result_contracts.py diff --git a/implementations/python/packages/aces_runtime/runtime_fact_binding_policy.py b/implementations/python/packages/raes_runtime/runtime_fact_binding_policy.py similarity index 99% rename from implementations/python/packages/aces_runtime/runtime_fact_binding_policy.py rename to implementations/python/packages/raes_runtime/runtime_fact_binding_policy.py index c201ed0bf..3e119450d 100644 --- a/implementations/python/packages/aces_runtime/runtime_fact_binding_policy.py +++ b/implementations/python/packages/raes_runtime/runtime_fact_binding_policy.py @@ -5,7 +5,7 @@ from datetime import datetime from enum import Enum -from aces_contracts.contracts.runtime_facts import ( +from raes_contracts.contracts.runtime_facts import ( RuntimeFactAbsenceDisposition, RuntimeFactAudience, RuntimeFactBindingDisposition, diff --git a/implementations/python/packages/aces_runtime/runtime_fact_bindings.py b/implementations/python/packages/raes_runtime/runtime_fact_bindings.py similarity index 99% rename from implementations/python/packages/aces_runtime/runtime_fact_bindings.py rename to implementations/python/packages/raes_runtime/runtime_fact_bindings.py index 75e228ea2..e00cfa5c2 100644 --- a/implementations/python/packages/aces_runtime/runtime_fact_bindings.py +++ b/implementations/python/packages/raes_runtime/runtime_fact_bindings.py @@ -5,7 +5,7 @@ from collections.abc import Callable, Iterable from dataclasses import dataclass, field -from aces_contracts.contracts.runtime_facts import ( +from raes_contracts.contracts.runtime_facts import ( RuntimeFactBindingDisposition, RuntimeFactBindingEventModel, RuntimeFactBindingRequestModel, @@ -16,7 +16,7 @@ RuntimeFactSourceKind, RuntimeFactVersionModel, ) -from aces_contracts.diagnostics import Diagnostic +from raes_contracts.diagnostics import Diagnostic from .runtime_fact_binding_policy import ( RuntimeFactActionDisposition, diff --git a/implementations/python/packages/aces_runtime/runtime_fact_dispatch.py b/implementations/python/packages/raes_runtime/runtime_fact_dispatch.py similarity index 99% rename from implementations/python/packages/aces_runtime/runtime_fact_dispatch.py rename to implementations/python/packages/raes_runtime/runtime_fact_dispatch.py index 4481c28dc..a954c5e01 100644 --- a/implementations/python/packages/aces_runtime/runtime_fact_dispatch.py +++ b/implementations/python/packages/raes_runtime/runtime_fact_dispatch.py @@ -7,7 +7,7 @@ from datetime import datetime from types import MappingProxyType -from aces_contracts.contracts.runtime_facts import ( +from raes_contracts.contracts.runtime_facts import ( RuntimeFactBindingDisposition, RuntimeFactBindingSelectionModel, RuntimeFactSinkModel, diff --git a/implementations/python/packages/aces_runtime/time_control.py b/implementations/python/packages/raes_runtime/time_control.py similarity index 96% rename from implementations/python/packages/aces_runtime/time_control.py rename to implementations/python/packages/raes_runtime/time_control.py index 9de67a4bc..af2b7205d 100644 --- a/implementations/python/packages/aces_runtime/time_control.py +++ b/implementations/python/packages/raes_runtime/time_control.py @@ -4,17 +4,17 @@ from typing import TYPE_CHECKING, cast -from aces_backend_protocols.protocols import CoordinatedParticipantTimeRuntime -from aces_contracts.contracts.time_model import TimeRuntimeStateModel, validate_time_runtime_state -from aces_contracts.participant_autonomous_state import require_participant_autonomous_runtime_snapshot -from aces_contracts.runtime_state import ApplyResult -from aces_processor.compiler.time_model import time_model_contract_model +from raes_backend_protocols.protocols import CoordinatedParticipantTimeRuntime +from raes_contracts.contracts.time_model import TimeRuntimeStateModel, validate_time_runtime_state +from raes_contracts.participant_autonomous_state import require_participant_autonomous_runtime_snapshot +from raes_contracts.runtime_state import ApplyResult +from raes_processor.compiler.time_model import time_model_contract_model from .backend_calls import _call_backend_apply from .diagnostics import _failure_diagnostic, _has_error_diagnostic if TYPE_CHECKING: - from aces_processor.models import ExecutionPlan + from raes_processor.models import ExecutionPlan from .manager import _RuntimeApplyState diff --git a/implementations/python/packages/aces_runtime/time_coordinator.py b/implementations/python/packages/raes_runtime/time_coordinator.py similarity index 97% rename from implementations/python/packages/aces_runtime/time_coordinator.py rename to implementations/python/packages/raes_runtime/time_coordinator.py index 03f71e47f..9fd333487 100644 --- a/implementations/python/packages/aces_runtime/time_coordinator.py +++ b/implementations/python/packages/raes_runtime/time_coordinator.py @@ -1,4 +1,4 @@ -"""Reference coordinator for the shared ACES time lifecycle.""" +"""Reference coordinator for the shared RAES time lifecycle.""" from __future__ import annotations @@ -6,19 +6,19 @@ from enum import Enum from fractions import Fraction -from aces_backend_protocols.protocols import CoordinatedParticipantResetRuntime -from aces_contracts.contracts.time_model import ( +from raes_backend_protocols.protocols import CoordinatedParticipantResetRuntime +from raes_contracts.contracts.time_model import ( ClockTransitionEventModel, RuntimeClockStateModel, TimeCoordinateModel, TimeModelDeclarationModel, TimeRuntimeStateModel, ) -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.participant_episode import ParticipantEpisodeResetRequest -from aces_contracts.runtime_state import ApplyResult, RuntimeSnapshot -from aces_processor.compiler.time_model import compiled_time_model_from_contract, time_model_contract_model -from aces_processor.models.time_model import ( +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.participant_episode import ParticipantEpisodeResetRequest +from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot +from raes_processor.compiler.time_model import compiled_time_model_from_contract, time_model_contract_model +from raes_processor.models.time_model import ( CompiledClock, CompiledTimeDomainMapping, CompiledTimeModel, diff --git a/implementations/python/packages/aces_runtime/workflow_result_contract_checks.py b/implementations/python/packages/raes_runtime/workflow_result_contract_checks.py similarity index 99% rename from implementations/python/packages/aces_runtime/workflow_result_contract_checks.py rename to implementations/python/packages/raes_runtime/workflow_result_contract_checks.py index 109012697..c6f2f7bc1 100644 --- a/implementations/python/packages/aces_runtime/workflow_result_contract_checks.py +++ b/implementations/python/packages/raes_runtime/workflow_result_contract_checks.py @@ -5,10 +5,10 @@ from dataclasses import dataclass from datetime import datetime -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.planning import RuntimeDomain -from aces_contracts.runtime_state import RuntimeSnapshot, SnapshotEntry -from aces_contracts.workflow import ( +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.planning import RuntimeDomain +from raes_contracts.runtime_state import RuntimeSnapshot, SnapshotEntry +from raes_contracts.workflow import ( WorkflowCompensationStatus, WorkflowExecutionContract, WorkflowExecutionState, diff --git a/implementations/python/packages/aces_runtime/workflow_result_contract_compensation.py b/implementations/python/packages/raes_runtime/workflow_result_contract_compensation.py similarity index 97% rename from implementations/python/packages/aces_runtime/workflow_result_contract_compensation.py rename to implementations/python/packages/raes_runtime/workflow_result_contract_compensation.py index 825169d09..5aeb94fa9 100644 --- a/implementations/python/packages/aces_runtime/workflow_result_contract_compensation.py +++ b/implementations/python/packages/raes_runtime/workflow_result_contract_compensation.py @@ -5,8 +5,8 @@ from collections.abc import Callable from typing import TYPE_CHECKING -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.workflow import WorkflowCompensationStatus, WorkflowHistoryEvent, WorkflowHistoryEventType +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.workflow import WorkflowCompensationStatus, WorkflowHistoryEvent, WorkflowHistoryEventType if TYPE_CHECKING: from .workflow_result_contract_checks import _WorkflowContext diff --git a/implementations/python/packages/aces_runtime/workflow_result_contract_context.py b/implementations/python/packages/raes_runtime/workflow_result_contract_context.py similarity index 94% rename from implementations/python/packages/aces_runtime/workflow_result_contract_context.py rename to implementations/python/packages/raes_runtime/workflow_result_contract_context.py index 1a585fe13..9673552b4 100644 --- a/implementations/python/packages/aces_runtime/workflow_result_contract_context.py +++ b/implementations/python/packages/raes_runtime/workflow_result_contract_context.py @@ -4,9 +4,9 @@ from collections.abc import Callable -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.runtime_state import SnapshotEntry -from aces_contracts.workflow import WorkflowExecutionContract, WorkflowResultContract +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.runtime_state import SnapshotEntry +from raes_contracts.workflow import WorkflowExecutionContract, WorkflowResultContract def compiled_workflow_contracts( diff --git a/implementations/python/packages/aces_runtime/workflow_result_contracts.py b/implementations/python/packages/raes_runtime/workflow_result_contracts.py similarity index 100% rename from implementations/python/packages/aces_runtime/workflow_result_contracts.py rename to implementations/python/packages/raes_runtime/workflow_result_contracts.py diff --git a/implementations/python/pyproject.toml b/implementations/python/pyproject.toml index 93b6a62bf..f12402bda 100644 --- a/implementations/python/pyproject.toml +++ b/implementations/python/pyproject.toml @@ -50,12 +50,12 @@ docs = [ ] [project.scripts] -raes = "aces.cli.main:app" -raes-mcp = "aces_mcp.server:main" +raes = "raes_cli.main:app" +raes-mcp = "raes_mcp.server:main" # Version is sourced from the dedicated RAES package file below. Release Please # rewrites that file, keeping routine release bumps out of this package metadata; -# `aces.__version__` derives from the installed distribution metadata. +# `raes.__version__` derives from the installed distribution metadata. [tool.hatch.version] path = "packages/raes/_version.py" @@ -68,29 +68,28 @@ path = "hatch_build.py" [tool.hatch.build.targets.wheel] packages = [ - "src/aces", - "packages/aces_contracts", - "packages/aces_backend_protocols", - "packages/aces_backend_stubs", - "packages/aces_backend_libvirt", - "packages/aces_operations", - "packages/aces_reference_backend", - "packages/aces_cli", - "packages/aces_conformance", - "packages/aces_mcp", - "packages/aces_processor", - "packages/aces_runtime", + "packages/raes_contracts", + "packages/raes_backend_protocols", + "packages/raes_backend_stubs", + "packages/raes_backend_libvirt", + "packages/raes_operations", + "packages/raes_reference_backend", + "packages/raes_cli", + "packages/raes_conformance", + "packages/raes_mcp", + "packages/raes_processor", + "packages/raes_runtime", "packages/raes", ] # Ship the published contract corpus (the ADR-009 normative authority at the # repo-root `contracts/` tree) as package data so conformance + SDL semantic # validation work from an installed wheel. The corpus is resolved at runtime -# via `importlib.resources` in `aces_contracts.corpus`; `contracts/` stays the +# via `importlib.resources` in `raes_contracts.corpus`; `contracts/` stays the # single source of truth — this is a build-time distribution copy only. # # A custom build hook (hatch_build.py) force-includes the corpus into the wheel -# at `aces_contracts/_corpus`, resolving it from the source checkout +# at `raes_contracts/_corpus`, resolving it from the source checkout # (`../../contracts`) or from the corpus vendored into the sdist below — so both # a direct wheel build and `uv build`'s sdist→wheel path produce a wheel that # contains the corpus. The sdist vendors the corpus at top-level `_corpus/`. @@ -115,18 +114,17 @@ timeout = 120 [tool.coverage.run] source = [ - "aces", - "aces_contracts", - "aces_backend_protocols", - "aces_backend_stubs", - "aces_backend_libvirt", - "aces_operations", - "aces_reference_backend", - "aces_cli", - "aces_conformance", - "aces_mcp", - "aces_processor", - "aces_runtime", + "raes_contracts", + "raes_backend_protocols", + "raes_backend_stubs", + "raes_backend_libvirt", + "raes_operations", + "raes_reference_backend", + "raes_cli", + "raes_conformance", + "raes_mcp", + "raes_processor", + "raes_runtime", "raes", ] @@ -168,8 +166,8 @@ ignore = [ [tool.ruff.lint.per-file-ignores] "tests/**" = ["S101", "S105", "S106", "S108", "E402", "SIM105", "F841"] -"packages/aces_cli/**" = ["B008"] # typer requires function calls in defaults -"packages/aces_runtime/control_plane_api.py" = ["B008"] # fastapi Depends() pattern -"packages/aces_runtime/control_plane.py" = ["S112"] # intentional exception suppression +"packages/raes_cli/**" = ["B008"] # typer requires function calls in defaults +"packages/raes_runtime/control_plane_api.py" = ["B008"] # fastapi Depends() pattern +"packages/raes_runtime/control_plane.py" = ["S112"] # intentional exception suppression "packages/raes/module_registry.py" = ["S310", "S202"] # explicit OCI URL fetch and tarball extract -"packages/aces_contracts/realization_envelope.py" = ["E402"] # late import breaks a carrier dependency cycle +"packages/raes_contracts/realization_envelope.py" = ["E402"] # late import breaks a carrier dependency cycle diff --git a/implementations/python/src/aces/__init__.py b/implementations/python/src/aces/__init__.py deleted file mode 100644 index 2a0e6f55d..000000000 --- a/implementations/python/src/aces/__init__.py +++ /dev/null @@ -1,11 +0,0 @@ -"""Backward-compatible ACES namespace.""" - -from aces._compat import package_version - -# Derived from the installed distribution metadata. The version source of truth -# is `packages/raes/_version.py`, bumped by release-please (#684). The -# not-installed fallback is the honest PEP 440 sentinel `0.0.0+unknown` -# (GOV-901): an uninstalled namespace must not imply a real released version. -__version__ = package_version("raes", default="0.0.0+unknown") - -__all__ = ["__version__"] diff --git a/implementations/python/src/aces/_compat.py b/implementations/python/src/aces/_compat.py deleted file mode 100644 index 954eb7bd5..000000000 --- a/implementations/python/src/aces/_compat.py +++ /dev/null @@ -1,42 +0,0 @@ -"""Helpers for transitional ``aces.*`` compatibility modules.""" - -from __future__ import annotations - -from importlib import import_module -from importlib.metadata import PackageNotFoundError, version -from typing import Any - - -def package_version(distribution: str, default: str) -> str: - """Return an installed package version with a local fallback.""" - - try: - return version(distribution) - except PackageNotFoundError: - return default - - -def reexport(namespace: dict[str, Any], target: str) -> None: - """Populate ``namespace`` with the symbols from ``target``.""" - - module = import_module(target) - - for name, value in module.__dict__.items(): - if name in { - "__builtins__", - "__cached__", - "__file__", - "__loader__", - "__name__", - "__package__", - "__path__", - "__spec__", - }: - continue - namespace[name] = value - - namespace["__doc__"] = module.__doc__ - namespace["__target_module__"] = target - namespace["__all__"] = list( - getattr(module, "__all__", [name for name in module.__dict__ if not name.startswith("_")]) - ) diff --git a/implementations/python/src/aces/backends/__init__.py b/implementations/python/src/aces/backends/__init__.py deleted file mode 100644 index b99e2b776..000000000 --- a/implementations/python/src/aces/backends/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""Compatibility package for backend helpers.""" diff --git a/implementations/python/src/aces/backends/stubs.py b/implementations/python/src/aces/backends/stubs.py deleted file mode 100644 index 22c048e87..000000000 --- a/implementations/python/src/aces/backends/stubs.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "aces_backend_stubs.stubs") - -del _reexport diff --git a/implementations/python/src/aces/cli/__init__.py b/implementations/python/src/aces/cli/__init__.py deleted file mode 100644 index e0be503c5..000000000 --- a/implementations/python/src/aces/cli/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""Compatibility package for CLI entry points.""" diff --git a/implementations/python/src/aces/cli/main.py b/implementations/python/src/aces/cli/main.py deleted file mode 100644 index 04d9eea46..000000000 --- a/implementations/python/src/aces/cli/main.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "aces_cli.main") - -del _reexport diff --git a/implementations/python/src/aces/cli/sdl.py b/implementations/python/src/aces/cli/sdl.py deleted file mode 100644 index 78901cb72..000000000 --- a/implementations/python/src/aces/cli/sdl.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "aces_cli.sdl") - -del _reexport diff --git a/implementations/python/src/aces/core/__init__.py b/implementations/python/src/aces/core/__init__.py deleted file mode 100644 index 64e1e795e..000000000 --- a/implementations/python/src/aces/core/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""Compatibility package for core ACES modules.""" diff --git a/implementations/python/src/aces/core/runtime/__init__.py b/implementations/python/src/aces/core/runtime/__init__.py deleted file mode 100644 index 9c27c3c9c..000000000 --- a/implementations/python/src/aces/core/runtime/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""Backward-compatible runtime namespace.""" diff --git a/implementations/python/src/aces/core/runtime/capabilities.py b/implementations/python/src/aces/core/runtime/capabilities.py deleted file mode 100644 index 0f03287ef..000000000 --- a/implementations/python/src/aces/core/runtime/capabilities.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "aces_backend_protocols.capabilities") - -del _reexport diff --git a/implementations/python/src/aces/core/runtime/compiler.py b/implementations/python/src/aces/core/runtime/compiler.py deleted file mode 100644 index 8ff4a413c..000000000 --- a/implementations/python/src/aces/core/runtime/compiler.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "aces_processor.compiler") - -del _reexport diff --git a/implementations/python/src/aces/core/runtime/conformance.py b/implementations/python/src/aces/core/runtime/conformance.py deleted file mode 100644 index 7d86dcd55..000000000 --- a/implementations/python/src/aces/core/runtime/conformance.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "aces_conformance.conformance") - -del _reexport diff --git a/implementations/python/src/aces/core/runtime/contracts.py b/implementations/python/src/aces/core/runtime/contracts.py deleted file mode 100644 index eb2a57c8c..000000000 --- a/implementations/python/src/aces/core/runtime/contracts.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "aces_contracts.contracts") - -del _reexport diff --git a/implementations/python/src/aces/core/runtime/control_plane.py b/implementations/python/src/aces/core/runtime/control_plane.py deleted file mode 100644 index cc9fb2263..000000000 --- a/implementations/python/src/aces/core/runtime/control_plane.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "aces_runtime.control_plane") - -del _reexport diff --git a/implementations/python/src/aces/core/runtime/control_plane_api.py b/implementations/python/src/aces/core/runtime/control_plane_api.py deleted file mode 100644 index 30421a934..000000000 --- a/implementations/python/src/aces/core/runtime/control_plane_api.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "aces_runtime.control_plane_api") - -del _reexport diff --git a/implementations/python/src/aces/core/runtime/control_plane_security.py b/implementations/python/src/aces/core/runtime/control_plane_security.py deleted file mode 100644 index 3bf295b15..000000000 --- a/implementations/python/src/aces/core/runtime/control_plane_security.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "aces_runtime.control_plane_security") - -del _reexport diff --git a/implementations/python/src/aces/core/runtime/control_plane_store.py b/implementations/python/src/aces/core/runtime/control_plane_store.py deleted file mode 100644 index dea809e3c..000000000 --- a/implementations/python/src/aces/core/runtime/control_plane_store.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "aces_runtime.control_plane_store") - -del _reexport diff --git a/implementations/python/src/aces/core/runtime/manager.py b/implementations/python/src/aces/core/runtime/manager.py deleted file mode 100644 index 3ff071a5b..000000000 --- a/implementations/python/src/aces/core/runtime/manager.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "aces_runtime.manager") - -del _reexport diff --git a/implementations/python/src/aces/core/runtime/models.py b/implementations/python/src/aces/core/runtime/models.py deleted file mode 100644 index 719a83e26..000000000 --- a/implementations/python/src/aces/core/runtime/models.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "aces_processor.models") - -del _reexport diff --git a/implementations/python/src/aces/core/runtime/planner.py b/implementations/python/src/aces/core/runtime/planner.py deleted file mode 100644 index d94c9d5f1..000000000 --- a/implementations/python/src/aces/core/runtime/planner.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "aces_processor.planner") - -del _reexport diff --git a/implementations/python/src/aces/core/runtime/protocols.py b/implementations/python/src/aces/core/runtime/protocols.py deleted file mode 100644 index b4501552f..000000000 --- a/implementations/python/src/aces/core/runtime/protocols.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "aces_backend_protocols.protocols") - -del _reexport diff --git a/implementations/python/src/aces/core/runtime/registry.py b/implementations/python/src/aces/core/runtime/registry.py deleted file mode 100644 index 2c1053ebb..000000000 --- a/implementations/python/src/aces/core/runtime/registry.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "aces_runtime.registry") - -del _reexport diff --git a/implementations/python/src/aces/core/scenarios.py b/implementations/python/src/aces/core/scenarios.py deleted file mode 100644 index bbab7bb26..000000000 --- a/implementations/python/src/aces/core/scenarios.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes.scenarios") - -del _reexport diff --git a/implementations/python/src/aces/core/sdl/__init__.py b/implementations/python/src/aces/core/sdl/__init__.py deleted file mode 100644 index ce80b6248..000000000 --- a/implementations/python/src/aces/core/sdl/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -"""Backward-compatible SDL namespace.""" - -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes") - -del _reexport diff --git a/implementations/python/src/aces/core/sdl/_base.py b/implementations/python/src/aces/core/sdl/_base.py deleted file mode 100644 index 5fe3c8c05..000000000 --- a/implementations/python/src/aces/core/sdl/_base.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes._base") - -del _reexport diff --git a/implementations/python/src/aces/core/sdl/_errors.py b/implementations/python/src/aces/core/sdl/_errors.py deleted file mode 100644 index bcfd557eb..000000000 --- a/implementations/python/src/aces/core/sdl/_errors.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes._errors") - -del _reexport diff --git a/implementations/python/src/aces/core/sdl/_source.py b/implementations/python/src/aces/core/sdl/_source.py deleted file mode 100644 index 57ff5e365..000000000 --- a/implementations/python/src/aces/core/sdl/_source.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes._source") - -del _reexport diff --git a/implementations/python/src/aces/core/sdl/accounts.py b/implementations/python/src/aces/core/sdl/accounts.py deleted file mode 100644 index 23284f608..000000000 --- a/implementations/python/src/aces/core/sdl/accounts.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes.accounts") - -del _reexport diff --git a/implementations/python/src/aces/core/sdl/agents.py b/implementations/python/src/aces/core/sdl/agents.py deleted file mode 100644 index 7a210309c..000000000 --- a/implementations/python/src/aces/core/sdl/agents.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes.agents") - -del _reexport diff --git a/implementations/python/src/aces/core/sdl/composition.py b/implementations/python/src/aces/core/sdl/composition.py deleted file mode 100644 index 1c63d86b5..000000000 --- a/implementations/python/src/aces/core/sdl/composition.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes.composition") - -del _reexport diff --git a/implementations/python/src/aces/core/sdl/conditions.py b/implementations/python/src/aces/core/sdl/conditions.py deleted file mode 100644 index 4fc08f13f..000000000 --- a/implementations/python/src/aces/core/sdl/conditions.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes.conditions") - -del _reexport diff --git a/implementations/python/src/aces/core/sdl/content.py b/implementations/python/src/aces/core/sdl/content.py deleted file mode 100644 index fb1bf0311..000000000 --- a/implementations/python/src/aces/core/sdl/content.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes.content") - -del _reexport diff --git a/implementations/python/src/aces/core/sdl/entities.py b/implementations/python/src/aces/core/sdl/entities.py deleted file mode 100644 index 0e2cd191e..000000000 --- a/implementations/python/src/aces/core/sdl/entities.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes.entities") - -del _reexport diff --git a/implementations/python/src/aces/core/sdl/features.py b/implementations/python/src/aces/core/sdl/features.py deleted file mode 100644 index b64573270..000000000 --- a/implementations/python/src/aces/core/sdl/features.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes.features") - -del _reexport diff --git a/implementations/python/src/aces/core/sdl/infrastructure.py b/implementations/python/src/aces/core/sdl/infrastructure.py deleted file mode 100644 index 2515dfd82..000000000 --- a/implementations/python/src/aces/core/sdl/infrastructure.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes.infrastructure") - -del _reexport diff --git a/implementations/python/src/aces/core/sdl/instantiate.py b/implementations/python/src/aces/core/sdl/instantiate.py deleted file mode 100644 index e3fa2bf90..000000000 --- a/implementations/python/src/aces/core/sdl/instantiate.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes.instantiate") - -del _reexport diff --git a/implementations/python/src/aces/core/sdl/module_registry.py b/implementations/python/src/aces/core/sdl/module_registry.py deleted file mode 100644 index 35a85f02d..000000000 --- a/implementations/python/src/aces/core/sdl/module_registry.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes.module_registry") - -del _reexport diff --git a/implementations/python/src/aces/core/sdl/nodes.py b/implementations/python/src/aces/core/sdl/nodes.py deleted file mode 100644 index 53026fb65..000000000 --- a/implementations/python/src/aces/core/sdl/nodes.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes.nodes") - -del _reexport diff --git a/implementations/python/src/aces/core/sdl/objectives.py b/implementations/python/src/aces/core/sdl/objectives.py deleted file mode 100644 index 27e7d6a0f..000000000 --- a/implementations/python/src/aces/core/sdl/objectives.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes.objectives") - -del _reexport diff --git a/implementations/python/src/aces/core/sdl/orchestration.py b/implementations/python/src/aces/core/sdl/orchestration.py deleted file mode 100644 index 6100af24c..000000000 --- a/implementations/python/src/aces/core/sdl/orchestration.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes.orchestration") - -del _reexport diff --git a/implementations/python/src/aces/core/sdl/parser.py b/implementations/python/src/aces/core/sdl/parser.py deleted file mode 100644 index 89d7787bf..000000000 --- a/implementations/python/src/aces/core/sdl/parser.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes.parser") - -del _reexport diff --git a/implementations/python/src/aces/core/sdl/relationships.py b/implementations/python/src/aces/core/sdl/relationships.py deleted file mode 100644 index d3b06baf9..000000000 --- a/implementations/python/src/aces/core/sdl/relationships.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes.relationships") - -del _reexport diff --git a/implementations/python/src/aces/core/sdl/scenario.py b/implementations/python/src/aces/core/sdl/scenario.py deleted file mode 100644 index a81a8ee8e..000000000 --- a/implementations/python/src/aces/core/sdl/scenario.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes.scenario") - -del _reexport diff --git a/implementations/python/src/aces/core/sdl/validator.py b/implementations/python/src/aces/core/sdl/validator.py deleted file mode 100644 index 44ef7333d..000000000 --- a/implementations/python/src/aces/core/sdl/validator.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes.validator") - -del _reexport diff --git a/implementations/python/src/aces/core/sdl/variables.py b/implementations/python/src/aces/core/sdl/variables.py deleted file mode 100644 index de4d70007..000000000 --- a/implementations/python/src/aces/core/sdl/variables.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes.variables") - -del _reexport diff --git a/implementations/python/src/aces/core/sdl/vulnerabilities.py b/implementations/python/src/aces/core/sdl/vulnerabilities.py deleted file mode 100644 index b76bb684a..000000000 --- a/implementations/python/src/aces/core/sdl/vulnerabilities.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes.vulnerabilities") - -del _reexport diff --git a/implementations/python/src/aces/core/semantics/__init__.py b/implementations/python/src/aces/core/semantics/__init__.py deleted file mode 100644 index 642bc633f..000000000 --- a/implementations/python/src/aces/core/semantics/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""Backward-compatible semantics namespace.""" diff --git a/implementations/python/src/aces/core/semantics/assessment.py b/implementations/python/src/aces/core/semantics/assessment.py deleted file mode 100644 index 67715ae94..000000000 --- a/implementations/python/src/aces/core/semantics/assessment.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes.semantics.assessment") - -del _reexport diff --git a/implementations/python/src/aces/core/semantics/objective_semantics.py b/implementations/python/src/aces/core/semantics/objective_semantics.py deleted file mode 100644 index 31d68bab7..000000000 --- a/implementations/python/src/aces/core/semantics/objective_semantics.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes.semantics.objective_semantics") - -del _reexport diff --git a/implementations/python/src/aces/core/semantics/objectives.py b/implementations/python/src/aces/core/semantics/objectives.py deleted file mode 100644 index b1cc4e300..000000000 --- a/implementations/python/src/aces/core/semantics/objectives.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes.semantics.objectives") - -del _reexport diff --git a/implementations/python/src/aces/core/semantics/planner.py b/implementations/python/src/aces/core/semantics/planner.py deleted file mode 100644 index 1a7bec78e..000000000 --- a/implementations/python/src/aces/core/semantics/planner.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "aces_processor.semantics.planner") - -del _reexport diff --git a/implementations/python/src/aces/core/semantics/workflow.py b/implementations/python/src/aces/core/semantics/workflow.py deleted file mode 100644 index 123da19eb..000000000 --- a/implementations/python/src/aces/core/semantics/workflow.py +++ /dev/null @@ -1,5 +0,0 @@ -from aces._compat import reexport as _reexport - -_reexport(globals(), "raes.semantics.workflow") - -del _reexport diff --git a/implementations/python/tests/libvirt_conformance_fixtures.py b/implementations/python/tests/libvirt_conformance_fixtures.py index 9a5aed60d..27aeab4d5 100644 --- a/implementations/python/tests/libvirt_conformance_fixtures.py +++ b/implementations/python/tests/libvirt_conformance_fixtures.py @@ -19,7 +19,7 @@ from dataclasses import dataclass, field -from aces_backend_libvirt.driver import ( +from raes_backend_libvirt.driver import ( DomainHandle, DomainSpec, DriverResult, diff --git a/implementations/python/tests/libvirt_participant_fixtures.py b/implementations/python/tests/libvirt_participant_fixtures.py index c597e6a14..8184a0b9e 100644 --- a/implementations/python/tests/libvirt_participant_fixtures.py +++ b/implementations/python/tests/libvirt_participant_fixtures.py @@ -2,16 +2,16 @@ The deterministic participant-implementation manifest, selection, action-result, and admission helpers now live in -``aces_operations.deterministic_participant_fixtures`` (contracts-only, importable +``raes_operations.deterministic_participant_fixtures`` (contracts-only, importable by both the tests and the shipped scenario-evidence producer). This module re-exports them for the existing acceptance tests and adds the test-only ``NullLibvirtDriver`` -(which depends on ``aces_backend_libvirt`` and so cannot live in the operations +(which depends on ``raes_backend_libvirt`` and so cannot live in the operations package under the ADR-036 module boundary). """ from __future__ import annotations -from aces_operations.deterministic_participant_fixtures import ( +from raes_operations.deterministic_participant_fixtures import ( AGENT_IDENTITY, MANIFEST_DIGEST, MANIFEST_REF, @@ -44,12 +44,12 @@ class NullLibvirtDriver: """No-op libvirt driver for structural tests that never call realize().""" def realize(self, *, networks, domains): - from aces_backend_libvirt.driver import DriverResult + from raes_backend_libvirt.driver import DriverResult return DriverResult() def destroy(self, *, networks, domains): - from aces_backend_libvirt.driver import DriverResult + from raes_backend_libvirt.driver import DriverResult return DriverResult() diff --git a/implementations/python/tests/libvirt_participant_proof.py b/implementations/python/tests/libvirt_participant_proof.py index 0aed8416b..c62918f62 100644 --- a/implementations/python/tests/libvirt_participant_proof.py +++ b/implementations/python/tests/libvirt_participant_proof.py @@ -11,7 +11,7 @@ validation iterators with the libvirt backend runtime, a cross-layer composition the ADR-036 module boundaries reserve for tests. The deterministic manifest/selection/action-result/admission fixtures are shared with the shipped -scenario-evidence producer via ``aces_operations.deterministic_participant_fixtures``. +scenario-evidence producer via ``raes_operations.deterministic_participant_fixtures``. """ from __future__ import annotations @@ -19,20 +19,20 @@ from dataclasses import dataclass from pathlib import Path -from aces_backend_libvirt.manifest import create_libvirt_manifest -from aces_backend_libvirt.participant_runtime import LibvirtParticipantRuntime -from aces_backend_libvirt.provisioner import LibvirtProvisioner -from aces_operations.deterministic_participant_fixtures import ( +from raes_backend_libvirt.manifest import create_libvirt_manifest +from raes_backend_libvirt.participant_runtime import LibvirtParticipantRuntime +from raes_backend_libvirt.provisioner import LibvirtProvisioner +from raes_operations.deterministic_participant_fixtures import ( build_participant_admission_request, iter_admission_pairs, ) -from aces_processor.compiler import compile_runtime_model -from aces_processor.models import ( +from raes_processor.compiler import compile_runtime_model +from raes_processor.models import ( iter_participant_behavior_history_violations, iter_participant_episode_snapshot_violations, ) -from aces_runtime.control_plane import RuntimeControlPlane -from aces_runtime.registry import RuntimeTarget +from raes_runtime.control_plane import RuntimeControlPlane +from raes_runtime.registry import RuntimeTarget from libvirt_participant_fixtures import NullLibvirtDriver from raes.parser import parse_sdl diff --git a/implementations/python/tests/test_act_617_mixed_control.py b/implementations/python/tests/test_act_617_mixed_control.py index 53622f274..0a8612174 100644 --- a/implementations/python/tests/test_act_617_mixed_control.py +++ b/implementations/python/tests/test_act_617_mixed_control.py @@ -7,7 +7,7 @@ from pathlib import Path import pytest -from aces_processor.compiler import compile_runtime_model +from raes_processor.compiler import compile_runtime_model from raes._errors import SDLParseError, SDLValidationError from raes.instantiate import instantiate_scenario from raes.parser import parse_sdl, parse_sdl_file diff --git a/implementations/python/tests/test_agent_inventory_skill.py b/implementations/python/tests/test_agent_inventory_skill.py index 3dbe92c60..bc263e196 100644 --- a/implementations/python/tests/test_agent_inventory_skill.py +++ b/implementations/python/tests/test_agent_inventory_skill.py @@ -3,10 +3,10 @@ from pathlib import Path REPO_ROOT = Path(__file__).resolve().parents[3] -CLAUDE_SKILL_DIR = REPO_ROOT / ".claude" / "skills" / "aces-asset-inventory-capture" -CODEX_SKILL_DIR = REPO_ROOT / ".codex-skills" / "aces-asset-inventory-capture" -GAP_CLAUDE_SKILL_DIR = REPO_ROOT / ".claude" / "skills" / "aces-gap-remediation-implement" -GAP_CODEX_SKILL_DIR = REPO_ROOT / ".codex-skills" / "aces-gap-remediation-implement" +CLAUDE_SKILL_DIR = REPO_ROOT / ".claude" / "skills" / "raes-asset-inventory-capture" +CODEX_SKILL_DIR = REPO_ROOT / ".codex-skills" / "raes-asset-inventory-capture" +GAP_CLAUDE_SKILL_DIR = REPO_ROOT / ".claude" / "skills" / "raes-gap-remediation-implement" +GAP_CODEX_SKILL_DIR = REPO_ROOT / ".codex-skills" / "raes-gap-remediation-implement" SKILL_PATHS = ( CLAUDE_SKILL_DIR / "SKILL.md", CODEX_SKILL_DIR / "SKILL.md", @@ -31,11 +31,11 @@ def test_asset_inventory_skill_is_cross_agent_and_discoverable_by_codex() -> Non assert "TODO" not in codex_skill assert claude_skill == codex_skill assert "from either Claude Code or Codex" in claude_skill - assert "aces-asset-inventory-capture" in codex_rules - assert ".codex-skills/aces-asset-inventory-capture/SKILL.md" in codex_rules - assert ".claude/skills/aces-asset-inventory-capture/SKILL.md" in codex_rules - assert "~/.codex/skills/aces-asset-inventory-capture" in codex_rules - assert "~/.claude/skills/aces-asset-inventory-capture" in codex_rules + assert "raes-asset-inventory-capture" in codex_rules + assert ".codex-skills/raes-asset-inventory-capture/SKILL.md" in codex_rules + assert ".claude/skills/raes-asset-inventory-capture/SKILL.md" in codex_rules + assert "~/.codex/skills/raes-asset-inventory-capture" in codex_rules + assert "~/.claude/skills/raes-asset-inventory-capture" in codex_rules def test_asset_inventory_skill_metadata_is_agent_runnable() -> None: @@ -43,10 +43,10 @@ def test_asset_inventory_skill_metadata_is_agent_runnable() -> None: skill = skill_path.read_text(encoding="utf-8") openai_yaml = (skill_path.parent / "agents" / "openai.yaml").read_text(encoding="utf-8") - assert "name: aces-asset-inventory-capture" in skill + assert "name: raes-asset-inventory-capture" in skill assert "description: Run the ACES asset inventory methodology" in skill assert "default_prompt:" in openai_yaml - assert "$aces-asset-inventory-capture" in openai_yaml + assert "$raes-asset-inventory-capture" in openai_yaml def test_asset_inventory_skill_encodes_methodology_tool_baseline() -> None: @@ -176,11 +176,11 @@ def test_gap_remediation_skill_is_cross_agent_and_discoverable_by_codex() -> Non assert "TODO" not in claude_skill assert "TODO" not in codex_skill assert claude_skill == codex_skill - assert "aces-gap-remediation-implement" in codex_rules - assert ".codex-skills/aces-gap-remediation-implement/SKILL.md" in codex_rules - assert ".claude/skills/aces-gap-remediation-implement/SKILL.md" in codex_rules - assert "~/.codex/skills/aces-gap-remediation-implement" in codex_rules - assert "~/.claude/skills/aces-gap-remediation-implement" in codex_rules + assert "raes-gap-remediation-implement" in codex_rules + assert ".codex-skills/raes-gap-remediation-implement/SKILL.md" in codex_rules + assert ".claude/skills/raes-gap-remediation-implement/SKILL.md" in codex_rules + assert "~/.codex/skills/raes-gap-remediation-implement" in codex_rules + assert "~/.claude/skills/raes-gap-remediation-implement" in codex_rules def test_gap_remediation_skill_metadata_is_agent_runnable() -> None: @@ -188,10 +188,10 @@ def test_gap_remediation_skill_metadata_is_agent_runnable() -> None: skill = skill_path.read_text(encoding="utf-8") openai_yaml = (skill_path.parent / "agents" / "openai.yaml").read_text(encoding="utf-8") - assert "name: aces-gap-remediation-implement" in skill + assert "name: raes-gap-remediation-implement" in skill assert "description: Architecture-first overlay" in skill assert "default_prompt:" in openai_yaml - assert "$aces-gap-remediation-implement" in openai_yaml + assert "$raes-gap-remediation-implement" in openai_yaml def test_gap_remediation_skill_encodes_overlay_contract() -> None: diff --git a/implementations/python/tests/test_api_409_participant_control_occurrences.py b/implementations/python/tests/test_api_409_participant_control_occurrences.py index 906652e59..5785bd67b 100644 --- a/implementations/python/tests/test_api_409_participant_control_occurrences.py +++ b/implementations/python/tests/test_api_409_participant_control_occurrences.py @@ -6,13 +6,13 @@ from pathlib import Path import pytest -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( ParticipantControlDeclarationModel, ParticipantControlOccurrenceModel, schema_bundle, validate_participant_control_occurrence_context, ) -from aces_contracts.contracts.participant_control import ParticipantControlTargetContextModel +from raes_contracts.contracts.participant_control import ParticipantControlTargetContextModel from jsonschema import Draft202012Validator from pydantic import ValidationError diff --git a/implementations/python/tests/test_api_421_time_contracts.py b/implementations/python/tests/test_api_421_time_contracts.py index 848509145..760f50afb 100644 --- a/implementations/python/tests/test_api_421_time_contracts.py +++ b/implementations/python/tests/test_api_421_time_contracts.py @@ -6,22 +6,22 @@ from pathlib import Path import pytest -from aces_backend_protocols.capability_admission import time_model_capability_gaps -from aces_backend_stubs.stubs import create_stub_manifest, create_stub_target -from aces_conformance.time_semantics import time_model_conformance_diagnostics -from aces_contracts.contracts.time_model import ( +from raes_backend_protocols.capability_admission import time_model_capability_gaps +from raes_backend_stubs.stubs import create_stub_manifest, create_stub_target +from raes_conformance.time_semantics import time_model_conformance_diagnostics +from raes_contracts.contracts.time_model import ( RealizedTimeModelProvenanceModel, TimeApparatusBindingModel, TimeModelDeclarationModel, TimeRuntimeStateModel, validate_time_runtime_transition, ) -from aces_processor.compiler import compile_runtime_model -from aces_processor.compiler.time_model import ( +from raes_processor.compiler import compile_runtime_model +from raes_processor.compiler.time_model import ( compiled_time_model_from_contract, time_model_contract_model, ) -from aces_runtime import RuntimeManager +from raes_runtime import RuntimeManager from raes.parser import parse_sdl REPO_ROOT = Path(__file__).resolve().parents[3] diff --git a/implementations/python/tests/test_associated_artifact_manifests.py b/implementations/python/tests/test_associated_artifact_manifests.py index 7a10fa6ad..210636e4f 100644 --- a/implementations/python/tests/test_associated_artifact_manifests.py +++ b/implementations/python/tests/test_associated_artifact_manifests.py @@ -8,14 +8,14 @@ from pathlib import Path import pytest -from aces_conformance.conformance import _MODEL_VALIDATORS, _fixture_case_diagnostics -from aces_contracts.associated_artifacts import ( +from raes_conformance.conformance import _MODEL_VALIDATORS, _fixture_case_diagnostics +from raes_contracts.associated_artifacts import ( AssociatedArtifactValidationLimits, associated_artifact_set_digest, load_associated_artifact_manifest_json, validate_associated_artifact_manifest, ) -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( REUSABLE_ASSET_FAMILIES, AssociatedArtifactManifestModel, ExperimentApparatusContextModel, @@ -25,7 +25,7 @@ ExperimentTaskModel, schema_bundle, ) -from aces_contracts.versions import ASSOCIATED_ARTIFACT_MANIFEST_SCHEMA_VERSION +from raes_contracts.versions import ASSOCIATED_ARTIFACT_MANIFEST_SCHEMA_VERSION from pydantic import ValidationError from raes import canonical_sdl_digest, parse_sdl diff --git a/implementations/python/tests/test_authored_domain_topology.py b/implementations/python/tests/test_authored_domain_topology.py index 8b79e63d6..05f0f7a72 100644 --- a/implementations/python/tests/test_authored_domain_topology.py +++ b/implementations/python/tests/test_authored_domain_topology.py @@ -9,20 +9,20 @@ import pytest import yaml -from aces_backend_libvirt.capability_envelope import capability_envelope_diagnostics -from aces_backend_libvirt.manifest import LIBVIRT_PROVISIONER_CAPABILITIES -from aces_backend_protocols.backend_manifest import BackendManifest -from aces_backend_protocols.domain_topology import domain_topology_plan_diagnostics -from aces_backend_stubs.stubs import create_stub_manifest, create_stub_target -from aces_contracts.contracts import schema_bundle -from aces_contracts.planning import ProvisioningPlan, ProvisionOp, RuntimeDomain -from aces_contracts.runtime_state import RuntimeSnapshot, SnapshotEntry -from aces_processor.compiler import compile_runtime_model -from aces_processor.models import resource_payload -from aces_processor.planner import plan -from aces_processor.semantics.realization import realization_disclosure -from aces_reference_backend import create_reference_backend_manifest -from aces_runtime.control_plane import RuntimeControlPlane +from raes_backend_libvirt.capability_envelope import capability_envelope_diagnostics +from raes_backend_libvirt.manifest import LIBVIRT_PROVISIONER_CAPABILITIES +from raes_backend_protocols.backend_manifest import BackendManifest +from raes_backend_protocols.domain_topology import domain_topology_plan_diagnostics +from raes_backend_stubs.stubs import create_stub_manifest, create_stub_target +from raes_contracts.contracts import schema_bundle +from raes_contracts.planning import ProvisioningPlan, ProvisionOp, RuntimeDomain +from raes_contracts.runtime_state import RuntimeSnapshot, SnapshotEntry +from raes_processor.compiler import compile_runtime_model +from raes_processor.models import resource_payload +from raes_processor.planner import plan +from raes_processor.semantics.realization import realization_disclosure +from raes_reference_backend import create_reference_backend_manifest +from raes_runtime.control_plane import RuntimeControlPlane from jsonschema import Draft202012Validator from raes import SDLParseError, SDLValidationError, parse_sdl, parse_sdl_file from raes.language_service import language_completions diff --git a/implementations/python/tests/test_authority_boundary.py b/implementations/python/tests/test_authority_boundary.py index 42bec3281..ca7d86bb8 100644 --- a/implementations/python/tests/test_authority_boundary.py +++ b/implementations/python/tests/test_authority_boundary.py @@ -733,7 +733,7 @@ def test_dotfiles_and_hidden_dirs_are_not_unclassified(tmp_path: Path) -> None: def test_schema_outside_normative_root_is_flagged(tmp_path: Path) -> None: seeded = _seed_repo( tmp_path, - extra_files={"implementations/python/packages/aces_processor/leaked.schema.json": "{}"}, + extra_files={"implementations/python/packages/raes_processor/leaked.schema.json": "{}"}, ) failures = evaluate_authority_boundary(seeded) assert _flagged(failures, "authority-boundary-schema-misplaced") diff --git a/implementations/python/tests/test_backend_conformance_cli.py b/implementations/python/tests/test_backend_conformance_cli.py index 2653d676c..ac87d5d91 100644 --- a/implementations/python/tests/test_backend_conformance_cli.py +++ b/implementations/python/tests/test_backend_conformance_cli.py @@ -7,8 +7,8 @@ from pathlib import Path import pytest -from aces_cli.main import app -from aces_conformance.conformance import fixtures_root +from raes_cli.main import app +from raes_conformance.conformance import fixtures_root from typer.testing import CliRunner diff --git a/implementations/python/tests/test_backend_manifest.py b/implementations/python/tests/test_backend_manifest.py index 307e96d70..56f77595b 100644 --- a/implementations/python/tests/test_backend_manifest.py +++ b/implementations/python/tests/test_backend_manifest.py @@ -7,7 +7,7 @@ from pathlib import Path import pytest -from aces_backend_protocols.capabilities import ( +from raes_backend_protocols.capabilities import ( OBSERVATION_CAPABILITY_CAPTURE_KIND_SCOPE, OBSERVATION_CAPABILITY_CHANNEL_KIND_SCOPE, OBSERVATION_CAPABILITY_SEALING_MODE_SCOPE, @@ -24,11 +24,11 @@ observation_capability_contract_gaps, participant_runtime_capability_contract_gaps, ) -from aces_backend_protocols.manifest import backend_manifest_payload -from aces_backend_stubs.stubs import create_stub_manifest -from aces_contracts.contracts import BackendManifestV2Model -from aces_contracts.manifest_authority import BACKEND_SUPPORTED_CONTRACT_IDS -from aces_contracts.vocabulary import ( +from raes_backend_protocols.manifest import backend_manifest_payload +from raes_backend_stubs.stubs import create_stub_manifest +from raes_contracts.contracts import BackendManifestV2Model +from raes_contracts.manifest_authority import BACKEND_SUPPORTED_CONTRACT_IDS +from raes_contracts.vocabulary import ( ParticipantFeatureSupportLevel, WorkflowFeature, WorkflowStatePredicateFeature, @@ -602,7 +602,7 @@ def test_backend_manifest_v2_rejects_below_exact_feature_support_without_disclos def test_backend_manifest_v2_schema_publishes_feature_support_disclosure_rule(): - from aces_contracts.contracts import schema_bundle + from raes_contracts.contracts import schema_bundle schema = schema_bundle()["backend-manifest-v2"] feature_support_schema = schema["$defs"]["ParticipantFeatureSupportModel"] diff --git a/implementations/python/tests/test_backend_manifest_v2_adapter.py b/implementations/python/tests/test_backend_manifest_v2_adapter.py index 2807465cf..a558873c1 100644 --- a/implementations/python/tests/test_backend_manifest_v2_adapter.py +++ b/implementations/python/tests/test_backend_manifest_v2_adapter.py @@ -11,12 +11,12 @@ from __future__ import annotations import pytest -from aces_backend_protocols.manifest import ( +from raes_backend_protocols.manifest import ( backend_manifest_from_v2_model, backend_manifest_v2_model, ) -from aces_backend_stubs.manifest import create_stub_manifest -from aces_contracts.contracts import BackendManifestV2Model +from raes_backend_stubs.manifest import create_stub_manifest +from raes_contracts.contracts import BackendManifestV2Model def test_round_trips_the_full_stub_manifest() -> None: diff --git a/implementations/python/tests/test_backend_profiles.py b/implementations/python/tests/test_backend_profiles.py index 4091a1936..fe65e676c 100644 --- a/implementations/python/tests/test_backend_profiles.py +++ b/implementations/python/tests/test_backend_profiles.py @@ -6,14 +6,14 @@ from pathlib import Path import pytest -from aces_contracts.backend_profiles import ( +from raes_contracts.backend_profiles import ( BackendProfileModel, backend_profile_path, backend_profiles_root, load_backend_profile, load_backend_profile_from_path, ) -from aces_contracts.manifest_authority import BACKEND_SUPPORTED_CONTRACT_IDS +from raes_contracts.manifest_authority import BACKEND_SUPPORTED_CONTRACT_IDS from pydantic import ValidationError REPO_ROOT = Path(__file__).resolve().parents[3] diff --git a/implementations/python/tests/test_backend_protocols_account_features.py b/implementations/python/tests/test_backend_protocols_account_features.py index 8a4fbad74..841da61e7 100644 --- a/implementations/python/tests/test_backend_protocols_account_features.py +++ b/implementations/python/tests/test_backend_protocols_account_features.py @@ -7,7 +7,7 @@ from __future__ import annotations -from aces_backend_protocols.account_features import provisioner_account_features +from raes_backend_protocols.account_features import provisioner_account_features def test_empty_spec_uses_no_features(): diff --git a/implementations/python/tests/test_behavioral_relation_claims.py b/implementations/python/tests/test_behavioral_relation_claims.py index bc2e43eca..05386a090 100644 --- a/implementations/python/tests/test_behavioral_relation_claims.py +++ b/implementations/python/tests/test_behavioral_relation_claims.py @@ -4,7 +4,7 @@ from copy import deepcopy -from aces_contracts.behavioral_relations import load_behavioral_relation_catalog +from raes_contracts.behavioral_relations import load_behavioral_relation_catalog from tools.check_behavioral_relation_claims import ( _validate_claim_text, _validate_structured_bindings, diff --git a/implementations/python/tests/test_behavioral_relations.py b/implementations/python/tests/test_behavioral_relations.py index 7e8b0ebbb..9bd2d00f6 100644 --- a/implementations/python/tests/test_behavioral_relations.py +++ b/implementations/python/tests/test_behavioral_relations.py @@ -8,18 +8,18 @@ from pathlib import Path import pytest -from aces_conformance.conformance import _fixture_case_diagnostics -from aces_contracts.behavioral_relations import ( +from raes_conformance.conformance import _fixture_case_diagnostics +from raes_contracts.behavioral_relations import ( ExampleTransitionModel, ExampleTransitionSystemModel, load_behavioral_relation_catalog, ) -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( BehavioralClaimBindingModel, ExperimentStudyModel, schema_bundle, ) -from aces_contracts.scientific_completeness import load_scientific_completeness_taxonomy +from raes_contracts.scientific_completeness import load_scientific_completeness_taxonomy from hypothesis import assume, given, settings from hypothesis import strategies as st from pydantic import ValidationError diff --git a/implementations/python/tests/test_concept_authority.py b/implementations/python/tests/test_concept_authority.py index 5119a6069..932b65ff0 100644 --- a/implementations/python/tests/test_concept_authority.py +++ b/implementations/python/tests/test_concept_authority.py @@ -6,14 +6,14 @@ from pathlib import Path import pytest -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( BackendManifestV2Model, ConceptBindingEntryModel, ConceptFamilyCatalogModel, ConceptFamilyDefinitionModel, ProcessorManifestV2Model, ) -from aces_contracts.vocabulary import ( +from raes_contracts.vocabulary import ( ConceptProvenanceCategory, ) from pydantic import ValidationError diff --git a/implementations/python/tests/test_conformance_facade_parity.py b/implementations/python/tests/test_conformance_facade_parity.py index 84b5df2b1..fdfe1c070 100644 --- a/implementations/python/tests/test_conformance_facade_parity.py +++ b/implementations/python/tests/test_conformance_facade_parity.py @@ -1,16 +1,16 @@ -"""Facade-parity contract for the ``aces_conformance.conformance`` package (issue #46). +"""Facade-parity contract for the ``raes_conformance.conformance`` package (issue #46). The module was split into subdomain modules behind an API-stable re-export facade. These tests pin the public export surface, the four private hooks that -external code imports directly, singular object identity through the re-export, -and the dynamic ``aces.core.runtime.conformance`` compatibility wrapper — so a -future internal reshuffle cannot silently drop, fork, or over-export a name. +external code imports directly, and singular object identity through the +re-export so a future internal reshuffle cannot silently drop, fork, or +over-export a name. """ from __future__ import annotations -import aces_conformance.conformance as facade -from aces_conformance.conformance import ( +import raes_conformance.conformance as facade +from raes_conformance.conformance import ( fixture_suite, observability, profiles, @@ -20,8 +20,6 @@ validators, ) -import aces.core.runtime.conformance as compat - _PUBLIC_EXPORTS = { "BackendCapabilityProfile", "BackendConformanceReport", @@ -82,8 +80,3 @@ def test_private_hooks_are_importable_and_singular(): def test_private_hooks_excluded_from_star_exports(): assert not (set(_PRIVATE_HOOKS) & set(facade.__all__)) - - -def test_compat_wrapper_reexports_identical_objects(): - for name in _PUBLIC_EXPORTS | set(_PRIVATE_HOOKS): - assert getattr(compat, name) is getattr(facade, name), name diff --git a/implementations/python/tests/test_controlled_vocabularies.py b/implementations/python/tests/test_controlled_vocabularies.py index c5e445c24..20d4d0ef6 100644 --- a/implementations/python/tests/test_controlled_vocabularies.py +++ b/implementations/python/tests/test_controlled_vocabularies.py @@ -6,20 +6,20 @@ from pathlib import Path import pytest -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( AtlasTacticsSourceModel, AttackEnterpriseTacticsSourceModel, ControlledVocabularyCatalogModel, NistCsfDefensiveCategorySourceModel, schema_bundle, ) -from aces_contracts.controlled_vocabularies import ( +from raes_contracts.controlled_vocabularies import ( controlled_vocabulary_catalog_path, load_controlled_vocabulary_catalog, validate_controlled_vocabulary_scope_values, validate_controlled_vocabulary_value, ) -from aces_contracts.vocabulary import ( +from raes_contracts.vocabulary import ( ConceptProvenanceCategory, ParticipantFeatureSupportLevel, ProcessorFeature, diff --git a/implementations/python/tests/test_corpus_packaging.py b/implementations/python/tests/test_corpus_packaging.py index cd66d5da3..3513bae61 100644 --- a/implementations/python/tests/test_corpus_packaging.py +++ b/implementations/python/tests/test_corpus_packaging.py @@ -30,17 +30,17 @@ REPO_ROOT = PROJECT_ROOT.parents[1] REPO_CONTRACTS = REPO_ROOT / "contracts" -_CORPUS_PREFIX = "aces_contracts/_corpus/" +_CORPUS_PREFIX = "raes_contracts/_corpus/" _FAMILY_PROBES = { - "profiles": "aces_contracts/_corpus/profiles/backend/provisioning-only.json", - "scientific-completeness": "aces_contracts/_corpus/profiles/scientific-completeness/scientific-scenario-completeness-rev1.json", - "fixtures": "aces_contracts/_corpus/fixtures/", - "concept-authority": "aces_contracts/_corpus/concept-authority/behavioral-relations-v1.json", - "schemas": "aces_contracts/_corpus/schemas/", - "provenance": "aces_contracts/_corpus/provenance/sdl-lineage-ledger-v1.json", + "profiles": "raes_contracts/_corpus/profiles/backend/provisioning-only.json", + "scientific-completeness": "raes_contracts/_corpus/profiles/scientific-completeness/scientific-scenario-completeness-rev1.json", + "fixtures": "raes_contracts/_corpus/fixtures/", + "concept-authority": "raes_contracts/_corpus/concept-authority/behavioral-relations-v1.json", + "schemas": "raes_contracts/_corpus/schemas/", + "provenance": "raes_contracts/_corpus/provenance/sdl-lineage-ledger-v1.json", } -_NOTICE_PATH = "aces_contracts/_corpus/provenance/THIRD_PARTY_NOTICES.md" +_NOTICE_PATH = "raes_contracts/_corpus/provenance/THIRD_PARTY_NOTICES.md" _UV = shutil.which("uv") requires_uv = pytest.mark.skipif(_UV is None, reason="uv toolchain not available") @@ -95,7 +95,7 @@ def test_built_wheel_bundles_each_corpus_family(built_wheel: Path, family: str): with zipfile.ZipFile(built_wheel) as zf: names = zf.namelist() corpus_names = [n for n in names if n.startswith(_CORPUS_PREFIX)] - assert corpus_names, "wheel ships no aces_contracts/_corpus payload at all" + assert corpus_names, "wheel ships no raes_contracts/_corpus payload at all" probe = _FAMILY_PROBES[family] assert any(n == probe or n.startswith(probe) for n in names), ( f"corpus family {family!r} ({probe}) missing from wheel" @@ -112,13 +112,17 @@ def test_built_wheel_includes_third_party_notice(built_wheel: Path): @requires_uv def test_installed_wheel_hard_cuts_sdl_import_namespace(installed_python: Path, tmp_path: Path): - """The wheel exposes ``raes`` and contains no importable ``aces_sdl`` residue.""" + """The wheel exposes RAES owners and contains no importable ACES residue.""" script = ( "import importlib.util\n" "import raes\n" "assert raes.parse_sdl\n" - "assert importlib.util.find_spec('aces_sdl') is None\n" + "retired = ('aces', 'aces_sdl', 'aces_backend_libvirt', " + "'aces_backend_protocols', 'aces_backend_stubs', 'aces_cli', " + "'aces_conformance', 'aces_contracts', 'aces_mcp', 'aces_operations', " + "'aces_processor', 'aces_reference_backend', 'aces_runtime')\n" + "assert all(importlib.util.find_spec(name) is None for name in retired)\n" ) result = _run( [str(installed_python), "-c", script], @@ -136,7 +140,7 @@ def test_corpus_discoverable_via_importlib_resources_from_installed_wheel(instal script = ( "import json\n" - "from aces_contracts.corpus import corpus_root, corpus_family_root\n" + "from raes_contracts.corpus import corpus_root, corpus_family_root\n" "root = corpus_root()\n" "print(json.dumps({\n" " 'root': str(root),\n" @@ -188,7 +192,7 @@ def test_sdl_semantic_validation_loads_corpus_from_installed_wheel(installed_pyt from the installed wheel with no source checkout.""" script = ( - "from aces_contracts.controlled_vocabularies import load_controlled_vocabulary_catalog\n" + "from raes_contracts.controlled_vocabularies import load_controlled_vocabulary_catalog\n" "catalog = load_controlled_vocabulary_catalog()\n" "assert catalog.vocabularies, 'no controlled vocabularies loaded'\n" "print(len(catalog.vocabularies))\n" diff --git a/implementations/python/tests/test_corpus_resources.py b/implementations/python/tests/test_corpus_resources.py index 83dfb0fcb..2f71cfe9f 100644 --- a/implementations/python/tests/test_corpus_resources.py +++ b/implementations/python/tests/test_corpus_resources.py @@ -2,7 +2,7 @@ The published ``contracts/`` tree is the hand-governed normative authority (ADR-009). Every corpus loader must resolve through the single -``aces_contracts.corpus`` seam so the corpus is reachable from an installed +``raes_contracts.corpus`` seam so the corpus is reachable from an installed distribution (where it ships as package data) without each loader reconstructing a ``Path(__file__).parents[N]`` repository path. """ @@ -19,7 +19,7 @@ def test_corpus_root_resolves_to_an_existing_directory(): - from aces_contracts.corpus import corpus_root + from raes_contracts.corpus import corpus_root root = corpus_root() assert isinstance(root, Path) @@ -29,7 +29,7 @@ def test_corpus_root_resolves_to_an_existing_directory(): def test_corpus_root_matches_repo_contracts_in_source_checkout(): """In a source checkout the seam resolves to the in-repo authority tree.""" - from aces_contracts.corpus import corpus_root + from raes_contracts.corpus import corpus_root assert corpus_root() == CONTRACTS_ROOT @@ -44,7 +44,7 @@ def test_corpus_root_matches_repo_contracts_in_source_checkout(): ], ) def test_corpus_family_root_resolves_each_normative_family(family: str, probe: str | None): - from aces_contracts.corpus import corpus_family_root + from raes_contracts.corpus import corpus_family_root family_root = corpus_family_root(family) assert family_root == CONTRACTS_ROOT / family @@ -54,7 +54,7 @@ def test_corpus_family_root_resolves_each_normative_family(family: str, probe: s def test_family_constants_match_authority_boundary_families(): - from aces_contracts import corpus + from raes_contracts import corpus assert corpus.PROFILES == "profiles" assert corpus.FIXTURES == "fixtures" @@ -63,22 +63,22 @@ def test_family_constants_match_authority_boundary_families(): def test_backend_profiles_loader_routes_through_seam(): - from aces_contracts.backend_profiles import backend_profiles_root - from aces_contracts.corpus import corpus_family_root + from raes_contracts.backend_profiles import backend_profiles_root + from raes_contracts.corpus import corpus_family_root assert backend_profiles_root() == corpus_family_root("profiles") / "backend" def test_semantic_profiles_loader_routes_through_seam(): - from aces_contracts.corpus import corpus_family_root - from aces_contracts.semantic_profiles import semantic_profiles_root + from raes_contracts.corpus import corpus_family_root + from raes_contracts.semantic_profiles import semantic_profiles_root assert semantic_profiles_root() == corpus_family_root("profiles") / "semantic" def test_controlled_vocabulary_loader_routes_through_seam(): - from aces_contracts.controlled_vocabularies import controlled_vocabulary_catalog_path - from aces_contracts.corpus import corpus_family_root + from raes_contracts.controlled_vocabularies import controlled_vocabulary_catalog_path + from raes_contracts.corpus import corpus_family_root assert controlled_vocabulary_catalog_path() == ( corpus_family_root("concept-authority") / "controlled-vocabularies-v1.json" @@ -86,22 +86,22 @@ def test_controlled_vocabulary_loader_routes_through_seam(): def test_reference_model_loader_routes_through_seam(): - from aces_contracts.corpus import corpus_family_root - from aces_contracts.reference_models import reference_model_catalog_path + from raes_contracts.corpus import corpus_family_root + from raes_contracts.reference_models import reference_model_catalog_path assert reference_model_catalog_path() == (corpus_family_root("concept-authority") / "reference-models-v1.json") def test_uco_alignment_loader_routes_through_seam(): - from aces_contracts.corpus import corpus_family_root - from aces_contracts.uco_alignment import uco_alignment_catalog_path + from raes_contracts.corpus import corpus_family_root + from raes_contracts.uco_alignment import uco_alignment_catalog_path assert uco_alignment_catalog_path() == (corpus_family_root("concept-authority") / "uco-alignment-v1.json") def test_fixtures_root_routes_through_seam(): - from aces_conformance.conformance import fixtures_root - from aces_contracts.corpus import corpus_family_root + from raes_conformance.conformance import fixtures_root + from raes_contracts.corpus import corpus_family_root assert fixtures_root() == corpus_family_root("fixtures") @@ -109,13 +109,13 @@ def test_fixtures_root_routes_through_seam(): @pytest.mark.parametrize( "module_name", [ - "aces_contracts.backend_profiles", - "aces_contracts.semantic_profiles", - "aces_contracts.controlled_vocabularies", - "aces_contracts.reference_models", - "aces_contracts.uco_alignment", - "aces_contracts.contracts", - "aces_conformance.conformance", + "raes_contracts.backend_profiles", + "raes_contracts.semantic_profiles", + "raes_contracts.controlled_vocabularies", + "raes_contracts.reference_models", + "raes_contracts.uco_alignment", + "raes_contracts.contracts", + "raes_conformance.conformance", ], ) def test_no_loader_keeps_a_parents_based_repo_root(module_name: str): @@ -126,7 +126,7 @@ def test_no_loader_keeps_a_parents_based_repo_root(module_name: str): module = importlib.import_module(module_name) assert not hasattr(module, "_repo_root"), ( f"{module_name} still defines a parents[N]-based _repo_root; " - "resolve the corpus through aces_contracts.corpus instead." + "resolve the corpus through raes_contracts.corpus instead." ) @@ -135,7 +135,7 @@ def test_bundled_corpus_takes_precedence_over_source_checkout(monkeypatch, tmp_p when both a bundled corpus and a source checkout are visible, bundled wins, so the installed wheel is what gets exercised.""" - from aces_contracts import corpus + from raes_contracts import corpus bundled = tmp_path / "_corpus" bundled.mkdir() @@ -151,7 +151,7 @@ def test_corpus_root_raises_when_no_corpus_is_available(monkeypatch): """A missing packaged corpus must surface as a hard error, never a silent empty corpus that would make conformance/validation pass vacuously.""" - from aces_contracts import corpus + from raes_contracts import corpus monkeypatch.setattr(corpus, "_bundled_corpus_root", lambda: None) monkeypatch.setattr(corpus, "_source_checkout_corpus_root", lambda: None) diff --git a/implementations/python/tests/test_cross_backend_corpus.py b/implementations/python/tests/test_cross_backend_corpus.py index 42570c8e0..0dc3e258e 100644 --- a/implementations/python/tests/test_cross_backend_corpus.py +++ b/implementations/python/tests/test_cross_backend_corpus.py @@ -13,13 +13,13 @@ import json from pathlib import Path -from aces_operations.cross_backend_corpus import ( +from raes_operations.cross_backend_corpus import ( CORPUS_SCHEMA, CrossBackendCorpusConfig, build_cross_backend_corpus, validate_cross_backend_corpus_artifact, ) -from aces_operations.run_artifacts import serialize_run_artifact +from raes_operations.run_artifacts import serialize_run_artifact from paths import EXAMPLES_DIR _REFERENCE_SCENARIO = EXAMPLES_DIR / "enterprise-participant-evidence-loop.sdl.yaml" diff --git a/implementations/python/tests/test_deprecation_lifecycle.py b/implementations/python/tests/test_deprecation_lifecycle.py index 727c53f4f..11cc3277f 100644 --- a/implementations/python/tests/test_deprecation_lifecycle.py +++ b/implementations/python/tests/test_deprecation_lifecycle.py @@ -47,12 +47,13 @@ def _good_ledger() -> dict: "id": "aces-compat-namespace", "surface_class": "python-distribution", "identifier": "implementations/python/src/aces/ (legacy aces.* namespace)", - "status": "deprecated", + "status": "removed", "first_notice": "ADR-010 (example)", "replacement": "the owning packages under implementations/python/packages/", - "migration_reference": "docs/decisions/adrs/adr-010-...md", - "notice_window": "supported through the pre-1.0 series", - "verification_evidence": "check_repo_policy.py enforces wrapper-only + import ban", + "migration_reference": "docs/migration/raes-rename.md", + "notice_window": "removed at the 1.0 hard cut", + "verification_evidence": "the wheel excludes src/aces and policy rejects its reintroduction", + "removal_record": "RAES 1.0 removes the aces compatibility namespace.", }, { "id": "sdl-import-path-field", diff --git a/implementations/python/tests/test_domain_controller_placement.py b/implementations/python/tests/test_domain_controller_placement.py index 889cbde54..7cdee10d6 100644 --- a/implementations/python/tests/test_domain_controller_placement.py +++ b/implementations/python/tests/test_domain_controller_placement.py @@ -14,28 +14,28 @@ import pytest import yaml -from aces_backend_libvirt.realization import interpret_provisioning_plan as interpret_libvirt_plan -from aces_backend_protocols.backend_manifest import BackendManifest -from aces_backend_protocols.domain_topology import DomainTopologyBinding, domain_topology_plan_diagnostics -from aces_backend_stubs.stubs import create_stub_manifest -from aces_conformance._realization_validation import operation_inventory_diagnostics -from aces_conformance.realization import RealizationProbeEvidence -from aces_contracts.contracts import ProvisioningPlanModel, schema_bundle -from aces_contracts.plan_projection import provisioning_plan_model -from aces_contracts.planning import ( +from raes_backend_libvirt.realization import interpret_provisioning_plan as interpret_libvirt_plan +from raes_backend_protocols.backend_manifest import BackendManifest +from raes_backend_protocols.domain_topology import DomainTopologyBinding, domain_topology_plan_diagnostics +from raes_backend_stubs.stubs import create_stub_manifest +from raes_conformance._realization_validation import operation_inventory_diagnostics +from raes_conformance.realization import RealizationProbeEvidence +from raes_contracts.contracts import ProvisioningPlanModel, schema_bundle +from raes_contracts.plan_projection import provisioning_plan_model +from raes_contracts.planning import ( PLAN_RESOURCE_TYPES_BY_DOMAIN, ChangeAction, ProvisioningPlan, ProvisionOp, RuntimeDomain, ) -from aces_contracts.realization_envelope import ObservationStrength, RealizationConcern -from aces_contracts.runtime_state import RuntimeSnapshot, SnapshotEntry -from aces_processor.compiler import compile_runtime_model -from aces_processor.models import DomainControllerPlacement, resource_payload -from aces_processor.planner import plan -from aces_processor.semantics.realization import realization_disclosure -from aces_reference_backend import interpret_provisioning_plan as interpret_reference_plan +from raes_contracts.realization_envelope import ObservationStrength, RealizationConcern +from raes_contracts.runtime_state import RuntimeSnapshot, SnapshotEntry +from raes_processor.compiler import compile_runtime_model +from raes_processor.models import DomainControllerPlacement, resource_payload +from raes_processor.planner import plan +from raes_processor.semantics.realization import realization_disclosure +from raes_reference_backend import interpret_provisioning_plan as interpret_reference_plan from jsonschema import Draft202012Validator from raes import parse_sdl diff --git a/implementations/python/tests/test_dsl_115_authoring_specificity.py b/implementations/python/tests/test_dsl_115_authoring_specificity.py index e3fbc6310..a85f3b38a 100644 --- a/implementations/python/tests/test_dsl_115_authoring_specificity.py +++ b/implementations/python/tests/test_dsl_115_authoring_specificity.py @@ -4,7 +4,7 @@ import textwrap -from aces_contracts.contracts import ExperimentReferenceModel +from raes_contracts.contracts import ExperimentReferenceModel from raes import parse_sdl from raes.explicitness import ExplicitnessClass, classify_authoring_specificity diff --git a/implementations/python/tests/test_dsl_437_benign_participant_execution.py b/implementations/python/tests/test_dsl_437_benign_participant_execution.py index 258db1ce6..374cf6c17 100644 --- a/implementations/python/tests/test_dsl_437_benign_participant_execution.py +++ b/implementations/python/tests/test_dsl_437_benign_participant_execution.py @@ -9,35 +9,35 @@ import pytest import yaml -from aces_backend_protocols.capability_admission import participant_autonomous_execution_capability_gaps -from aces_backend_protocols.participant_runtime_base import BaseParticipantRuntime -from aces_backend_stubs.manifest import create_stub_manifest -from aces_backend_stubs.stubs import create_stub_target -from aces_contracts.contracts import ( +from raes_backend_protocols.capability_admission import participant_autonomous_execution_capability_gaps +from raes_backend_protocols.participant_runtime_base import BaseParticipantRuntime +from raes_backend_stubs.manifest import create_stub_manifest +from raes_backend_stubs.stubs import create_stub_target +from raes_contracts.contracts import ( ParticipantActionResultModel, ParticipantAutonomousExecutionStateModel, ParticipantImplementationManifestModel, ParticipantImplementationSelectionModel, RuntimeSnapshotEnvelopeModel, ) -from aces_contracts.contracts.time_model import TimeRuntimeStateModel -from aces_contracts.participant_binding import ( +from raes_contracts.contracts.time_model import TimeRuntimeStateModel +from raes_contracts.participant_binding import ( ParticipantActionAdmissionRequest, ParticipantActionApplyResult, ParticipantNativeActionExecution, ) -from aces_contracts.participant_episode import ( +from raes_contracts.participant_episode import ( ParticipantEpisodeInitializeRequest, ParticipantEpisodeResetRequest, ) -from aces_contracts.runtime_state import ApplyResult, RuntimeSnapshot -from aces_processor.compiler import compile_runtime_model -from aces_processor.compiler.time_model import time_model_contract_model -from aces_processor.planner import plan -from aces_runtime.manager import RuntimeManager -from aces_runtime.participant_clock_driver import ParticipantClockDriver -from aces_runtime.participant_scheduler import ParticipantScheduler -from aces_runtime.time_coordinator import ReferenceTimeRuntime, TimeCoordinator +from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot +from raes_processor.compiler import compile_runtime_model +from raes_processor.compiler.time_model import time_model_contract_model +from raes_processor.planner import plan +from raes_runtime.manager import RuntimeManager +from raes_runtime.participant_clock_driver import ParticipantClockDriver +from raes_runtime.participant_scheduler import ParticipantScheduler +from raes_runtime.time_coordinator import ReferenceTimeRuntime, TimeCoordinator from raes._errors import SDLValidationError from raes.parser import parse_sdl from raes.participant_behavior import ParticipantFailureClass diff --git a/implementations/python/tests/test_dsl_437_evaluation_authority.py b/implementations/python/tests/test_dsl_437_evaluation_authority.py index e6fbc96ab..12e750706 100644 --- a/implementations/python/tests/test_dsl_437_evaluation_authority.py +++ b/implementations/python/tests/test_dsl_437_evaluation_authority.py @@ -4,7 +4,7 @@ import pytest import yaml -from aces_processor.compiler import compile_runtime_model +from raes_processor.compiler import compile_runtime_model from raes._errors import SDLValidationError from raes.parser import parse_sdl from test_dsl_437_benign_participant_execution import _scenario_yaml diff --git a/implementations/python/tests/test_dsl_437_snapshot_durability_conformance.py b/implementations/python/tests/test_dsl_437_snapshot_durability_conformance.py index 59e6e0860..0400a5c4b 100644 --- a/implementations/python/tests/test_dsl_437_snapshot_durability_conformance.py +++ b/implementations/python/tests/test_dsl_437_snapshot_durability_conformance.py @@ -6,11 +6,11 @@ from pathlib import Path import pytest -from aces_conformance.conformance import _semantic_diagnostics -from aces_conformance.conformance.snapshot_semantics import _snapshot_from_envelope -from aces_contracts.contracts.time_model import TimeRuntimeStateModel -from aces_contracts.runtime_state import RuntimeSnapshot -from aces_runtime.control_plane_store import InMemoryControlPlaneStore, LocalControlPlaneStore +from raes_conformance.conformance import _semantic_diagnostics +from raes_conformance.conformance.snapshot_semantics import _snapshot_from_envelope +from raes_contracts.contracts.time_model import TimeRuntimeStateModel +from raes_contracts.runtime_state import RuntimeSnapshot +from raes_runtime.control_plane_store import InMemoryControlPlaneStore, LocalControlPlaneStore POLICY_ADDRESS = "participant.autonomous-execution.green-users" PARTICIPANT_ADDRESS = "participant.behavior.green-user" diff --git a/implementations/python/tests/test_enterprise_deployment_tenancy.py b/implementations/python/tests/test_enterprise_deployment_tenancy.py index 7f1276826..52b74142e 100644 --- a/implementations/python/tests/test_enterprise_deployment_tenancy.py +++ b/implementations/python/tests/test_enterprise_deployment_tenancy.py @@ -8,8 +8,8 @@ import pytest import yaml -from aces_contracts.contracts import schema_bundle -from aces_processor.compiler import compile_runtime_model +from raes_contracts.contracts import schema_bundle +from raes_processor.compiler import compile_runtime_model from jsonschema import Draft202012Validator from raes import SDLParseError, SDLValidationError, parse_sdl, parse_sdl_file diff --git a/implementations/python/tests/test_example_schema_conformance.py b/implementations/python/tests/test_example_schema_conformance.py index 9d2a76acd..7f30ae293 100644 --- a/implementations/python/tests/test_example_schema_conformance.py +++ b/implementations/python/tests/test_example_schema_conformance.py @@ -4,7 +4,7 @@ Pydantic parser, but Pydantic acceptance is not published-schema conformance, and the worked examples are the proof artifacts third parties read. This suite serializes each example with the canonical, contract-shaped publication serialization -(``model_dump(mode="json", by_alias=True)`` — the same flags ``aces_processor/compiler.py`` +(``model_dump(mode="json", by_alias=True)`` — the same flags ``raes_processor/compiler.py`` uses) and validates the result against the *checked-in* published schema ``contracts/schemas/sdl/sdl-authoring-input-v1.json`` with ``Draft202012Validator``. @@ -27,8 +27,8 @@ from typing import Any, Protocol import pytest -from aces_contracts.corpus import corpus_family_root -from aces_contracts.experiment_spec import load_experiment_spec +from raes_contracts.corpus import corpus_family_root +from raes_contracts.experiment_spec import load_experiment_spec from jsonschema import Draft202012Validator from paths import EXAMPLES_DIR, EXPERIMENTS_DIR from raes import load_sdl_fragment diff --git a/implementations/python/tests/test_experiment_authoring.py b/implementations/python/tests/test_experiment_authoring.py index 284a7afd7..b64e02287 100644 --- a/implementations/python/tests/test_experiment_authoring.py +++ b/implementations/python/tests/test_experiment_authoring.py @@ -6,14 +6,14 @@ from pathlib import Path import pytest -from aces_contracts.contracts import ExperimentSpecModel -from aces_contracts.experiment_spec import ( +from raes_contracts.contracts import ExperimentSpecModel +from raes_contracts.experiment_spec import ( ExperimentSpecValidationError, find_experiment_specs, load_experiment_spec, parse_experiment_spec, ) -from aces_mcp.tools.experiment_authoring import ( +from raes_mcp.tools.experiment_authoring import ( _MAX_INPUT_BYTES, _run_experiment_get_example, _run_experiment_scaffold, diff --git a/implementations/python/tests/test_exploit_path_analysis.py b/implementations/python/tests/test_exploit_path_analysis.py index d1aa98b7d..c162acdd4 100644 --- a/implementations/python/tests/test_exploit_path_analysis.py +++ b/implementations/python/tests/test_exploit_path_analysis.py @@ -6,13 +6,13 @@ from pathlib import Path import pytest -from aces_contracts.contracts import schema_bundle -from aces_contracts.exploit_path import ( +from raes_contracts.contracts import schema_bundle +from raes_contracts.exploit_path import ( ExploitPathAnalysisEvidenceModel, ExploitPathAnalysisInputModel, ExploitPathOutcome, ) -from aces_processor.exploit_path import ( +from raes_processor.exploit_path import ( ExploitPathEvidenceError, analyze_exploit_path_file, replay_exploit_path_evidence, diff --git a/implementations/python/tests/test_exploit_path_cli.py b/implementations/python/tests/test_exploit_path_cli.py index 68c1b604b..2b7e3cec8 100644 --- a/implementations/python/tests/test_exploit_path_cli.py +++ b/implementations/python/tests/test_exploit_path_cli.py @@ -5,7 +5,7 @@ import json from pathlib import Path -from aces_cli.main import app +from raes_cli.main import app from test_exploit_path_analysis import _analysis_input, _graph, _write_input from typer.testing import CliRunner diff --git a/implementations/python/tests/test_fm2_semantics.py b/implementations/python/tests/test_fm2_semantics.py index 4d04adf29..9c1547b23 100644 --- a/implementations/python/tests/test_fm2_semantics.py +++ b/implementations/python/tests/test_fm2_semantics.py @@ -6,11 +6,11 @@ import pytest -from aces.backends.stubs import create_stub_manifest -from aces.core.runtime.compiler import compile_runtime_model -from aces.core.runtime.models import RuntimeDomain, RuntimeSnapshot, SnapshotEntry -from aces.core.runtime.planner import plan -from aces.core.sdl import SDLInstantiationError, SDLValidationError, parse_sdl +from raes_backend_stubs.stubs import create_stub_manifest +from raes_processor.compiler import compile_runtime_model +from raes_processor.models import RuntimeDomain, RuntimeSnapshot, SnapshotEntry +from raes_processor.planner import plan +from raes import SDLInstantiationError, SDLValidationError, parse_sdl def _scenario(yaml_str: str): diff --git a/implementations/python/tests/test_initial_service_state.py b/implementations/python/tests/test_initial_service_state.py index 8f64329d2..f187de35e 100644 --- a/implementations/python/tests/test_initial_service_state.py +++ b/implementations/python/tests/test_initial_service_state.py @@ -8,18 +8,18 @@ import pytest import yaml -from aces_backend_protocols.backend_manifest import BackendManifest -from aces_contracts.planning import ChangeAction, ProvisioningPlan, ProvisionOp, RuntimeDomain -from aces_contracts.runtime_state import RuntimeSnapshot, SnapshotEntry -from aces_processor.compiler import compile_scenario_runtime_model -from aces_processor.models import resource_payload -from aces_processor.planner import plan -from aces_processor.semantics.realization import realization_disclosure -from aces_runtime.control_plane import RuntimeControlPlane -from aces_runtime.registry import RuntimeTarget +from raes_backend_protocols.backend_manifest import BackendManifest +from raes_contracts.planning import ChangeAction, ProvisioningPlan, ProvisionOp, RuntimeDomain +from raes_contracts.runtime_state import RuntimeSnapshot, SnapshotEntry +from raes_processor.compiler import compile_scenario_runtime_model +from raes_processor.models import resource_payload +from raes_processor.planner import plan +from raes_processor.semantics.realization import realization_disclosure +from raes_runtime.control_plane import RuntimeControlPlane +from raes_runtime.registry import RuntimeTarget from raes import SDLValidationError, parse_sdl, parse_sdl_file -from aces.backends.stubs import create_stub_manifest, create_stub_target +from raes_backend_stubs.stubs import create_stub_manifest, create_stub_target def _scenario(*replacements: tuple[str, str]): diff --git a/implementations/python/tests/test_instantiated_scenario_schema.py b/implementations/python/tests/test_instantiated_scenario_schema.py index 410df1040..658aa7834 100644 --- a/implementations/python/tests/test_instantiated_scenario_schema.py +++ b/implementations/python/tests/test_instantiated_scenario_schema.py @@ -13,7 +13,7 @@ from pathlib import Path import pytest -from aces_contracts.contracts import schema_bundle +from raes_contracts.contracts import schema_bundle from jsonschema import Draft202012Validator from pydantic import ValidationError from raes._base import VARIABLE_TOKEN_PATTERN diff --git a/implementations/python/tests/test_libvirt_backend_cli.py b/implementations/python/tests/test_libvirt_backend_cli.py index 89ccac861..6faf2e091 100644 --- a/implementations/python/tests/test_libvirt_backend_cli.py +++ b/implementations/python/tests/test_libvirt_backend_cli.py @@ -4,9 +4,9 @@ from dataclasses import dataclass -from aces_cli.main import app -from aces_operations.libvirt_evidence_run import LibvirtEvidenceRunConfig -from aces_operations.techvault_live import TechVaultLiveConfig +from raes_cli.main import app +from raes_operations.libvirt_evidence_run import LibvirtEvidenceRunConfig +from raes_operations.techvault_live import TechVaultLiveConfig from typer.testing import CliRunner @@ -25,7 +25,7 @@ def _validate(**kwargs): calls.append(kwargs) return _Report() - monkeypatch.setattr("aces_cli.libvirt.validate_techvault_live", _validate) + monkeypatch.setattr("raes_cli.libvirt.validate_techvault_live", _validate) scenario = tmp_path / "scenario.sdl.yaml" scenario.write_text("name: cli\n", encoding="utf-8") runner = CliRunner() @@ -64,7 +64,7 @@ def _validate(**kwargs): def test_libvirt_techvault_validate_live_cli_returns_failure_exit(monkeypatch, tmp_path): monkeypatch.setattr( - "aces_cli.libvirt.validate_techvault_live", + "raes_cli.libvirt.validate_techvault_live", lambda **_kwargs: _Report(passed=False), ) scenario = tmp_path / "scenario.sdl.yaml" @@ -97,7 +97,7 @@ def _validate(**kwargs): calls.append(kwargs) return _Report() - monkeypatch.setattr("aces_cli.libvirt.validate_techvault_live", _validate) + monkeypatch.setattr("raes_cli.libvirt.validate_techvault_live", _validate) scenario = tmp_path / "scenario.sdl.yaml" scenario.write_text("name: cli\n", encoding="utf-8") @@ -130,7 +130,7 @@ def _run(**kwargs): calls.append(kwargs) return _Report() - monkeypatch.setattr("aces_cli.libvirt.run_libvirt_evidence_run", _run) + monkeypatch.setattr("raes_cli.libvirt.run_libvirt_evidence_run", _run) scenario = tmp_path / "scenario.sdl.yaml" scenario.write_text("name: cli\n", encoding="utf-8") @@ -168,7 +168,7 @@ def _run(**kwargs): def test_libvirt_techvault_guest_certify_cli_returns_failure_exit(monkeypatch, tmp_path): monkeypatch.setattr( - "aces_cli.libvirt.run_libvirt_evidence_run", + "raes_cli.libvirt.run_libvirt_evidence_run", lambda **_kwargs: _Report(passed=False), ) scenario = tmp_path / "scenario.sdl.yaml" @@ -184,7 +184,7 @@ def test_libvirt_techvault_guest_certify_cli_returns_failure_exit(monkeypatch, t def test_libvirt_techvault_guest_certify_cli_rejects_credentials(monkeypatch, tmp_path): calls: list[dict[str, object]] = [] - monkeypatch.setattr("aces_cli.libvirt.run_libvirt_evidence_run", lambda **kwargs: calls.append(kwargs)) + monkeypatch.setattr("raes_cli.libvirt.run_libvirt_evidence_run", lambda **kwargs: calls.append(kwargs)) scenario = tmp_path / "scenario.sdl.yaml" scenario.write_text("name: cli\n", encoding="utf-8") @@ -208,7 +208,7 @@ def test_libvirt_techvault_guest_certify_cli_rejects_credentials(monkeypatch, tm def test_libvirt_techvault_cli_rejects_connection_uri_credentials(monkeypatch, tmp_path): calls: list[dict[str, object]] = [] - monkeypatch.setattr("aces_cli.libvirt.validate_techvault_live", lambda **kwargs: calls.append(kwargs)) + monkeypatch.setattr("raes_cli.libvirt.validate_techvault_live", lambda **kwargs: calls.append(kwargs)) scenario = tmp_path / "scenario.sdl.yaml" scenario.write_text("name: cli\n", encoding="utf-8") diff --git a/implementations/python/tests/test_libvirt_backend_cloudinit.py b/implementations/python/tests/test_libvirt_backend_cloudinit.py index fce457054..cda588ca3 100644 --- a/implementations/python/tests/test_libvirt_backend_cloudinit.py +++ b/implementations/python/tests/test_libvirt_backend_cloudinit.py @@ -4,7 +4,7 @@ import json -from aces_backend_libvirt.cloudinit import ( +from raes_backend_libvirt.cloudinit import ( CloudInitFile, CloudInitSpec, CloudInitUser, diff --git a/implementations/python/tests/test_libvirt_backend_dialects.py b/implementations/python/tests/test_libvirt_backend_dialects.py index 2aa7de6dc..10766caea 100644 --- a/implementations/python/tests/test_libvirt_backend_dialects.py +++ b/implementations/python/tests/test_libvirt_backend_dialects.py @@ -2,7 +2,7 @@ from __future__ import annotations -from aces_backend_libvirt.dialects import dialect_for +from raes_backend_libvirt.dialects import dialect_for def test_linux_dialect_uses_systemd_and_aliases(): diff --git a/implementations/python/tests/test_libvirt_backend_driver.py b/implementations/python/tests/test_libvirt_backend_driver.py index 2dba6d0bf..6be79ed31 100644 --- a/implementations/python/tests/test_libvirt_backend_driver.py +++ b/implementations/python/tests/test_libvirt_backend_driver.py @@ -5,10 +5,10 @@ import re from pathlib import Path -from aces_backend_libvirt.cloudinit import CloudInitSpec, CloudInitUser -from aces_backend_libvirt.driver import DomainSpec, NetworkAcl, NetworkSpec -from aces_backend_libvirt.drivers.libvirt import LibvirtDeploymentDriver, _aces_uuid -from aces_backend_protocols.naming import provider_resource_name +from raes_backend_libvirt.cloudinit import CloudInitSpec, CloudInitUser +from raes_backend_libvirt.driver import DomainSpec, NetworkAcl, NetworkSpec +from raes_backend_libvirt.drivers.libvirt import LibvirtDeploymentDriver, _aces_uuid +from raes_backend_protocols.naming import provider_resource_name # Real libvirt reports a missing object with these stable VIR_ERR_NO_* codes via # libvirtError.get_error_code(); VIR_ERR_OPERATION_INVALID is raised by destroy() diff --git a/implementations/python/tests/test_libvirt_backend_envelopes.py b/implementations/python/tests/test_libvirt_backend_envelopes.py index 290a1dbc4..d136f6692 100644 --- a/implementations/python/tests/test_libvirt_backend_envelopes.py +++ b/implementations/python/tests/test_libvirt_backend_envelopes.py @@ -5,16 +5,16 @@ from dataclasses import replace from textwrap import dedent -import aces_backend_libvirt.manifest as libvirt_manifest_module +import raes_backend_libvirt.manifest as libvirt_manifest_module import pytest -from aces_backend_libvirt.envelopes import LibvirtDriverMode, load_libvirt_realization_envelope -from aces_backend_libvirt.manifest import create_libvirt_manifest -from aces_backend_libvirt.provisioner import LibvirtProvisioner -from aces_backend_libvirt.target import _validate_manifest_mode, create_libvirt_components, create_libvirt_target -from aces_backend_libvirt.techvault_native import TechVaultNativeLibvirtDriver -from aces_backend_protocols.manifest import backend_manifest_payload -from aces_contracts.realization_envelope import BackendRealizationEnvelopeModel, realization_envelope_digest -from aces_processor.reference import run_reference_processor +from raes_backend_libvirt.envelopes import LibvirtDriverMode, load_libvirt_realization_envelope +from raes_backend_libvirt.manifest import create_libvirt_manifest +from raes_backend_libvirt.provisioner import LibvirtProvisioner +from raes_backend_libvirt.target import _validate_manifest_mode, create_libvirt_components, create_libvirt_target +from raes_backend_libvirt.techvault_native import TechVaultNativeLibvirtDriver +from raes_backend_protocols.manifest import backend_manifest_payload +from raes_contracts.realization_envelope import BackendRealizationEnvelopeModel, realization_envelope_digest +from raes_processor.reference import run_reference_processor from libvirt_conformance_fixtures import RecordingLibvirtDriver from raes.parser import parse_sdl diff --git a/implementations/python/tests/test_libvirt_backend_guest_certified.py b/implementations/python/tests/test_libvirt_backend_guest_certified.py index 879321158..c77d7f91c 100644 --- a/implementations/python/tests/test_libvirt_backend_guest_certified.py +++ b/implementations/python/tests/test_libvirt_backend_guest_certified.py @@ -13,11 +13,11 @@ from pathlib import Path import pytest -from aces_backend_libvirt.cloudinit import CloudInitFile, CloudInitSpec, CloudInitUser -from aces_backend_libvirt.driver import DomainSpec, NetworkSpec, ServiceSpec -from aces_backend_libvirt.guest_appliance import GuestObservingInitramfsBuilder -from aces_backend_libvirt.guest_certified_driver import GuestCertifiedLibvirtDriver -from aces_backend_libvirt.techvault_matrix import mac_address +from raes_backend_libvirt.cloudinit import CloudInitFile, CloudInitSpec, CloudInitUser +from raes_backend_libvirt.driver import DomainSpec, NetworkSpec, ServiceSpec +from raes_backend_libvirt.guest_appliance import GuestObservingInitramfsBuilder +from raes_backend_libvirt.guest_certified_driver import GuestCertifiedLibvirtDriver +from raes_backend_libvirt.techvault_matrix import mac_address _CHALLENGE = "deadbeefcafef00d" @@ -405,12 +405,12 @@ def _facts_from_matrix(matrix, challenge: str) -> dict[str, str]: def _guest_matrix(scenario: Path): - from aces_backend_libvirt.manifest import create_libvirt_manifest - from aces_backend_libvirt.realization import interpret_provisioning_plan - from aces_backend_libvirt.techvault_matrix import native_matrix + from raes_backend_libvirt.manifest import create_libvirt_manifest + from raes_backend_libvirt.realization import interpret_provisioning_plan + from raes_backend_libvirt.techvault_matrix import native_matrix from raes.parser import parse_sdl_file - from aces.core.runtime.manager import RuntimeManager + from raes_runtime.manager import RuntimeManager scout = GuestCertifiedLibvirtDriver( state_dir=scenario.parent / "scout", @@ -421,7 +421,7 @@ def _guest_matrix(scenario: Path): guest_transport=_StubTransport(facts_by_address={}), challenge=_CHALLENGE, ) - from aces_backend_libvirt import create_libvirt_target + from raes_backend_libvirt import create_libvirt_target target = create_libvirt_target(participant_runtime=True, driver=scout) plan = RuntimeManager(target).plan(parse_sdl_file(scenario)).provisioning @@ -457,7 +457,7 @@ def factory(): def test_evidence_run_guest_certified_publishes_bound_observations(tmp_path: Path) -> None: - from aces_operations.libvirt_evidence_run import ( + from raes_operations.libvirt_evidence_run import ( LibvirtEvidenceRunConfig, run_libvirt_evidence_run, validate_libvirt_evidence_run_artifact, @@ -490,7 +490,7 @@ def test_evidence_run_guest_certified_publishes_bound_observations(tmp_path: Pat def test_evidence_run_guest_certified_transport_failure_fails_closed(tmp_path: Path) -> None: - from aces_operations.libvirt_evidence_run import LibvirtEvidenceRunConfig, run_libvirt_evidence_run + from raes_operations.libvirt_evidence_run import LibvirtEvidenceRunConfig, run_libvirt_evidence_run scenario = _bounded_guest_scenario(tmp_path) transport = _StubTransport(facts_by_address={}, failure="boot-timeout") @@ -512,7 +512,7 @@ def test_evidence_run_guest_certified_transport_failure_fails_closed(tmp_path: P def test_evidence_run_guest_certified_residual_probe_artifacts_fail_closed(tmp_path: Path) -> None: # Native domains/networks are torn down cleanly, but residual guest-probe state # survives: the run must fail closed rather than claim verified cleanup. - from aces_operations.libvirt_evidence_run import LibvirtEvidenceRunConfig, run_libvirt_evidence_run + from raes_operations.libvirt_evidence_run import LibvirtEvidenceRunConfig, run_libvirt_evidence_run class _ResidualGuestDriver(GuestCertifiedLibvirtDriver): def destroy(self, *, networks: tuple[str, ...], domains: tuple[str, ...]): diff --git a/implementations/python/tests/test_libvirt_backend_guest_certified_real_libvirt.py b/implementations/python/tests/test_libvirt_backend_guest_certified_real_libvirt.py index 35c4599db..98ae5ea6b 100644 --- a/implementations/python/tests/test_libvirt_backend_guest_certified_real_libvirt.py +++ b/implementations/python/tests/test_libvirt_backend_guest_certified_real_libvirt.py @@ -16,7 +16,7 @@ from pathlib import Path import pytest -from aces_operations.libvirt_evidence_run import ( +from raes_operations.libvirt_evidence_run import ( LibvirtEvidenceRunConfig, run_libvirt_evidence_run, validate_libvirt_evidence_run_artifact, diff --git a/implementations/python/tests/test_libvirt_backend_manifest.py b/implementations/python/tests/test_libvirt_backend_manifest.py index 5a837f32e..a3acdc0ab 100644 --- a/implementations/python/tests/test_libvirt_backend_manifest.py +++ b/implementations/python/tests/test_libvirt_backend_manifest.py @@ -2,11 +2,11 @@ from __future__ import annotations -from aces_backend_libvirt import create_libvirt_manifest -from aces_backend_protocols.manifest import backend_manifest_payload -from aces_contracts.contracts import BackendManifestV2Model +from raes_backend_libvirt import create_libvirt_manifest +from raes_backend_protocols.manifest import backend_manifest_payload +from raes_contracts.contracts import BackendManifestV2Model -from aces.core.runtime.conformance import BackendCapabilityProfile, profile_for_manifest +from raes_conformance.conformance import BackendCapabilityProfile, profile_for_manifest def test_libvirt_manifest_renders_as_provisioning_only_manifest_v2(): diff --git a/implementations/python/tests/test_libvirt_backend_manifest_publication.py b/implementations/python/tests/test_libvirt_backend_manifest_publication.py index 3aa17ce1e..0c48fe157 100644 --- a/implementations/python/tests/test_libvirt_backend_manifest_publication.py +++ b/implementations/python/tests/test_libvirt_backend_manifest_publication.py @@ -18,7 +18,7 @@ bar is the SEM-218 realization-honesty guard. Under issue #603 the libvirt interpreter realizes ``node``, ``network``, ``account-placement``, ``content-placement``, and ``feature-binding`` provisioning resources via -cloud-init (see ``aces_backend_libvirt/realization.py``), so the manifest +cloud-init (see ``raes_backend_libvirt/realization.py``), so the manifest declares the full governed vocabulary it actually realizes — every declared term is backed, so it cannot over-claim. "Provisioning-only" remains true in the domain sense (no orchestrator / evaluator / participant runtime). @@ -30,14 +30,14 @@ from pathlib import Path import jsonschema -from aces_backend_libvirt import create_libvirt_manifest -from aces_backend_libvirt.target import create_libvirt_target -from aces_backend_protocols.manifest import backend_manifest_payload -from aces_contracts.backend_profiles import load_backend_profile -from aces_contracts.contracts import BackendManifestV2Model +from raes_backend_libvirt import create_libvirt_manifest +from raes_backend_libvirt.target import create_libvirt_target +from raes_backend_protocols.manifest import backend_manifest_payload +from raes_contracts.backend_profiles import load_backend_profile +from raes_contracts.contracts import BackendManifestV2Model from libvirt_conformance_fixtures import RecordingLibvirtDriver -from aces.core.runtime.conformance import ( +from raes_conformance.conformance import ( BackendCapabilityProfile, required_contracts, run_target_conformance, diff --git a/implementations/python/tests/test_libvirt_backend_provisioner.py b/implementations/python/tests/test_libvirt_backend_provisioner.py index f18d53194..e07590121 100644 --- a/implementations/python/tests/test_libvirt_backend_provisioner.py +++ b/implementations/python/tests/test_libvirt_backend_provisioner.py @@ -2,11 +2,11 @@ from __future__ import annotations -from aces_backend_libvirt import LibvirtProvisioner -from aces_backend_libvirt.driver import DomainHandle, DriverResult, NetworkHandle -from aces_backend_libvirt.envelopes import load_libvirt_realization_envelope -from aces_contracts.contracts import RealizationEnvelopeIdentityModel -from aces_contracts.planning import ( +from raes_backend_libvirt import LibvirtProvisioner +from raes_backend_libvirt.driver import DomainHandle, DriverResult, NetworkHandle +from raes_backend_libvirt.envelopes import load_libvirt_realization_envelope +from raes_contracts.contracts import RealizationEnvelopeIdentityModel +from raes_contracts.planning import ( ChangeAction, EvaluationPlan, PlannedResource, @@ -14,7 +14,7 @@ ProvisionOp, RuntimeDomain, ) -from aces_contracts.runtime_state import RuntimeSnapshot, SnapshotEntry +from raes_contracts.runtime_state import RuntimeSnapshot, SnapshotEntry class _RecordingDriver: diff --git a/implementations/python/tests/test_libvirt_backend_realization.py b/implementations/python/tests/test_libvirt_backend_realization.py index 84dc9ea68..d52bd5ee1 100644 --- a/implementations/python/tests/test_libvirt_backend_realization.py +++ b/implementations/python/tests/test_libvirt_backend_realization.py @@ -3,9 +3,9 @@ from __future__ import annotations import pytest -from aces_backend_libvirt.realization import interpret_provisioning_plan -from aces_backend_protocols.capabilities import ProvisionerCapabilities -from aces_contracts.planning import PlannedResource, ProvisioningPlan, RuntimeDomain +from raes_backend_libvirt.realization import interpret_provisioning_plan +from raes_backend_protocols.capabilities import ProvisionerCapabilities +from raes_contracts.planning import PlannedResource, ProvisioningPlan, RuntimeDomain NODE_ADDRESS = "provision.node.web" diff --git a/implementations/python/tests/test_libvirt_backend_registry.py b/implementations/python/tests/test_libvirt_backend_registry.py index 2bd631ea9..3db24451b 100644 --- a/implementations/python/tests/test_libvirt_backend_registry.py +++ b/implementations/python/tests/test_libvirt_backend_registry.py @@ -2,7 +2,7 @@ from __future__ import annotations -from aces_backend_libvirt import ( +from raes_backend_libvirt import ( LIBVIRT_BACKEND_NAME, LibvirtProvisioner, create_libvirt_components, @@ -11,19 +11,19 @@ register_libvirt_backend, ) -from aces.core.runtime.registry import BackendRegistry, RuntimeTarget +from raes_runtime.registry import BackendRegistry, RuntimeTarget class _NoopDriver: driver_mode = "generic" def realize(self, *, networks, domains): - from aces_backend_libvirt.driver import DriverResult + from raes_backend_libvirt.driver import DriverResult return DriverResult() def destroy(self, *, networks, domains): - from aces_backend_libvirt.driver import DriverResult + from raes_backend_libvirt.driver import DriverResult return DriverResult() diff --git a/implementations/python/tests/test_libvirt_backend_techvault_honesty.py b/implementations/python/tests/test_libvirt_backend_techvault_honesty.py index d269a79bf..e9f6e1f54 100644 --- a/implementations/python/tests/test_libvirt_backend_techvault_honesty.py +++ b/implementations/python/tests/test_libvirt_backend_techvault_honesty.py @@ -3,20 +3,20 @@ from __future__ import annotations import pytest -from aces_backend_libvirt.driver import ( +from raes_backend_libvirt.driver import ( DomainHandle, DriverResult, NetworkHandle, RealizationObservation, ) -from aces_backend_libvirt.envelopes import load_libvirt_realization_envelope -from aces_backend_libvirt.provisioner import LibvirtProvisioner -from aces_backend_libvirt.target import create_libvirt_target -from aces_contracts.planning import ChangeAction, PlannedResource, ProvisioningPlan, ProvisionOp, RuntimeDomain -from aces_contracts.realization_envelope import ObservationStrength, RealizationConcern -from aces_contracts.runtime_state import RuntimeSnapshot, SnapshotEntry -from aces_runtime.control_plane import RuntimeControlPlane -from aces_runtime.control_plane_store import LocalControlPlaneStore +from raes_backend_libvirt.envelopes import load_libvirt_realization_envelope +from raes_backend_libvirt.provisioner import LibvirtProvisioner +from raes_backend_libvirt.target import create_libvirt_target +from raes_contracts.planning import ChangeAction, PlannedResource, ProvisioningPlan, ProvisionOp, RuntimeDomain +from raes_contracts.realization_envelope import ObservationStrength, RealizationConcern +from raes_contracts.runtime_state import RuntimeSnapshot, SnapshotEntry +from raes_runtime.control_plane import RuntimeControlPlane +from raes_runtime.control_plane_store import LocalControlPlaneStore class _RecordingTechVaultDriver: diff --git a/implementations/python/tests/test_libvirt_backend_techvault_integration.py b/implementations/python/tests/test_libvirt_backend_techvault_integration.py index 331614399..dfbfd55cd 100644 --- a/implementations/python/tests/test_libvirt_backend_techvault_integration.py +++ b/implementations/python/tests/test_libvirt_backend_techvault_integration.py @@ -4,13 +4,13 @@ from collections import Counter -from aces_backend_libvirt import create_libvirt_target -from aces_backend_libvirt.driver import DomainHandle, DriverResult, NetworkHandle +from raes_backend_libvirt import create_libvirt_target +from raes_backend_libvirt.driver import DomainHandle, DriverResult, NetworkHandle from paths import EXAMPLES_DIR -from aces.core.runtime.control_plane import RuntimeControlPlane -from aces.core.runtime.manager import RuntimeManager -from aces.core.sdl import parse_sdl +from raes_runtime.control_plane import RuntimeControlPlane +from raes_runtime.manager import RuntimeManager +from raes import parse_sdl _TECHVAULT_PARAMETERS = { "app_py_sha256": "a" * 64, diff --git a/implementations/python/tests/test_libvirt_backend_techvault_native.py b/implementations/python/tests/test_libvirt_backend_techvault_native.py index 0fd1bba33..8232848ff 100644 --- a/implementations/python/tests/test_libvirt_backend_techvault_native.py +++ b/implementations/python/tests/test_libvirt_backend_techvault_native.py @@ -9,11 +9,11 @@ from pathlib import Path import pytest -from aces_backend_libvirt import create_libvirt_target -from aces_backend_libvirt.cloudinit import CloudInitSpec, CloudInitUser -from aces_backend_libvirt.driver import DomainSpec, NetworkAcl, NetworkSpec, ServiceSpec -from aces_backend_libvirt.envelopes import load_libvirt_realization_envelope -from aces_backend_libvirt.techvault_native import ( +from raes_backend_libvirt import create_libvirt_target +from raes_backend_libvirt.cloudinit import CloudInitSpec, CloudInitUser +from raes_backend_libvirt.driver import DomainSpec, NetworkAcl, NetworkSpec, ServiceSpec +from raes_backend_libvirt.envelopes import load_libvirt_realization_envelope +from raes_backend_libvirt.techvault_native import ( BusyboxInitramfsBuilder, ProbeResult, TechVaultNativeLibvirtDriver, @@ -21,18 +21,18 @@ expected_surface, native_soc_readback, ) -from aces_backend_protocols.naming import provider_resource_name -from aces_operations import techvault_live -from aces_operations.techvault_live import ( +from raes_backend_protocols.naming import provider_resource_name +from raes_operations import techvault_live +from raes_operations.techvault_live import ( TechVaultLiveConfig, validate_techvault_live, validate_techvault_live_manifest, ) from paths import EXAMPLES_DIR -from aces.core.runtime.control_plane import RuntimeControlPlane -from aces.core.runtime.manager import RuntimeManager -from aces.core.sdl import parse_sdl +from raes_runtime.control_plane import RuntimeControlPlane +from raes_runtime.manager import RuntimeManager +from raes import parse_sdl class _NativeObject: diff --git a/implementations/python/tests/test_libvirt_backend_techvault_real_libvirt.py b/implementations/python/tests/test_libvirt_backend_techvault_real_libvirt.py index 6f0217184..766760ebd 100644 --- a/implementations/python/tests/test_libvirt_backend_techvault_real_libvirt.py +++ b/implementations/python/tests/test_libvirt_backend_techvault_real_libvirt.py @@ -9,7 +9,7 @@ from pathlib import Path import pytest -from aces_operations.techvault_live import TechVaultLiveConfig, validate_techvault_live +from raes_operations.techvault_live import TechVaultLiveConfig, validate_techvault_live from paths import EXAMPLES_DIR diff --git a/implementations/python/tests/test_libvirt_conformance.py b/implementations/python/tests/test_libvirt_conformance.py index fc36d1d44..5f3f6c31f 100644 --- a/implementations/python/tests/test_libvirt_conformance.py +++ b/implementations/python/tests/test_libvirt_conformance.py @@ -22,15 +22,15 @@ from pathlib import Path from textwrap import dedent -from aces_backend_libvirt.target import create_libvirt_target -from aces_conformance.conformance import ( +from raes_backend_libvirt.target import create_libvirt_target +from raes_conformance.conformance import ( BackendCapabilityProfile, run_fixture_suite, run_target_conformance, ) -from aces_contracts.planning import RuntimeDomain -from aces_processor.reference import run_reference_processor -from aces_runtime.control_plane import RuntimeControlPlane +from raes_contracts.planning import RuntimeDomain +from raes_processor.reference import run_reference_processor +from raes_runtime.control_plane import RuntimeControlPlane from libvirt_conformance_fixtures import RecordingLibvirtDriver from libvirt_participant_fixtures import NullLibvirtDriver from raes.parser import parse_sdl diff --git a/implementations/python/tests/test_libvirt_evidence_run.py b/implementations/python/tests/test_libvirt_evidence_run.py index 18dba1e98..58ff1fd2b 100644 --- a/implementations/python/tests/test_libvirt_evidence_run.py +++ b/implementations/python/tests/test_libvirt_evidence_run.py @@ -14,21 +14,21 @@ from pathlib import Path import pytest -from aces_backend_libvirt.techvault_native import TechVaultNativeLibvirtDriver -from aces_backend_protocols.naming import provider_resource_name -from aces_contracts.contracts import ( +from raes_backend_libvirt.techvault_native import TechVaultNativeLibvirtDriver +from raes_backend_protocols.naming import provider_resource_name +from raes_contracts.contracts import ( BackendManifestV2Model, EvaluationHistoryEventModel, EvaluationResultStateModel, ExperimentRealizedFormDisclosureModel, ) -from aces_operations.libvirt_evidence_run import ( +from raes_operations.libvirt_evidence_run import ( EVIDENCE_RUN_SCHEMA, LibvirtEvidenceRunConfig, run_libvirt_evidence_run, validate_libvirt_evidence_run_artifact, ) -from aces_operations.run_artifacts import ( +from raes_operations.run_artifacts import ( atomic_write_json_artifact, is_valid_run_id_label, run_artifact_path, diff --git a/implementations/python/tests/test_libvirt_participant_runtime.py b/implementations/python/tests/test_libvirt_participant_runtime.py index 9172c1004..f89f54eff 100644 --- a/implementations/python/tests/test_libvirt_participant_runtime.py +++ b/implementations/python/tests/test_libvirt_participant_runtime.py @@ -11,13 +11,13 @@ from pathlib import Path import pytest -from aces_backend_libvirt.manifest import create_libvirt_manifest -from aces_backend_libvirt.participant_runtime import LibvirtParticipantRuntime -from aces_backend_libvirt.target import create_libvirt_components -from aces_backend_protocols.capabilities import participant_runtime_capability_contract_gaps -from aces_conformance.conformance import run_target_conformance -from aces_contracts.participant_binding import ParticipantActionAdmissionRequest -from aces_processor.models import ( +from raes_backend_libvirt.manifest import create_libvirt_manifest +from raes_backend_libvirt.participant_runtime import LibvirtParticipantRuntime +from raes_backend_libvirt.target import create_libvirt_components +from raes_backend_protocols.capabilities import participant_runtime_capability_contract_gaps +from raes_conformance.conformance import run_target_conformance +from raes_contracts.participant_binding import ParticipantActionAdmissionRequest +from raes_processor.models import ( iter_participant_behavior_history_violations, iter_participant_episode_snapshot_violations, ) @@ -30,14 +30,14 @@ ) from libvirt_participant_proof import LibvirtParticipantProofResult, run_libvirt_participant_proof -from aces.core.runtime.compiler import compile_runtime_model -from aces.core.runtime.control_plane import RuntimeControlPlane -from aces.core.runtime.models import ( +from raes_processor.compiler import compile_runtime_model +from raes_runtime.control_plane import RuntimeControlPlane +from raes_processor.models import ( OperationState, ParticipantEpisodeTerminalReason, ) -from aces.core.runtime.registry import RuntimeTarget -from aces.core.sdl import parse_sdl +from raes_runtime.registry import RuntimeTarget +from raes import parse_sdl _REFERENCE_SCENARIO_PATH = ( Path(__file__).parents[3] / "examples" / "scenarios" / "enterprise-participant-evidence-loop.sdl.yaml" @@ -128,7 +128,7 @@ def test_ac3_components_construction_succeeds_with_participant_runtime(): def test_ac3_components_construction_still_raises_for_orchestrator(): - from aces_backend_stubs.stubs import create_stub_manifest + from raes_backend_stubs.stubs import create_stub_manifest orchestrator_manifest = create_stub_manifest() with pytest.raises(ValueError, match="orchestrator"): diff --git a/implementations/python/tests/test_mcp_server.py b/implementations/python/tests/test_mcp_server.py index 7ce01dec0..280c45a0b 100644 --- a/implementations/python/tests/test_mcp_server.py +++ b/implementations/python/tests/test_mcp_server.py @@ -10,7 +10,7 @@ import json import pytest -from aces_mcp.server import create_server +from raes_mcp.server import create_server from paths import EXAMPLES_DIR # --------------------------------------------------------------------------- @@ -755,7 +755,7 @@ def test_non_experiment_profile_does_not_recommend_experiment_tools(self, server assert "experiment_validate" not in payload["profile"]["next_tools"] - def test_legacy_aces_mcp_aliases_are_removed(self, server): + def test_legacy_raes_mcp_aliases_are_removed(self, server): registered = asyncio.get_event_loop().run_until_complete(server.list_tools()) registered_names = {tool.name for tool in registered} assert "aces_tool_surface" not in registered_names diff --git a/implementations/python/tests/test_network_namespace_sharing.py b/implementations/python/tests/test_network_namespace_sharing.py index 68bed7a8d..88fe3fbef 100644 --- a/implementations/python/tests/test_network_namespace_sharing.py +++ b/implementations/python/tests/test_network_namespace_sharing.py @@ -8,11 +8,11 @@ import pytest from raes.nodes import RuntimeNetworkNamespace -from aces.backends.stubs import create_stub_manifest -from aces.core.runtime.compiler import compile_runtime_model -from aces.core.runtime.models import RuntimeDomain, RuntimeSnapshot, SnapshotEntry -from aces.core.runtime.planner import plan -from aces.core.sdl import ( +from raes_backend_stubs.stubs import create_stub_manifest +from raes_processor.compiler import compile_runtime_model +from raes_processor.models import RuntimeDomain, RuntimeSnapshot, SnapshotEntry +from raes_processor.planner import plan +from raes import ( SDLInstantiationError, SDLValidationError, instantiate_scenario, diff --git a/implementations/python/tests/test_observability_evidence_conformance.py b/implementations/python/tests/test_observability_evidence_conformance.py index 5ad84b7ac..91cd8030a 100644 --- a/implementations/python/tests/test_observability_evidence_conformance.py +++ b/implementations/python/tests/test_observability_evidence_conformance.py @@ -5,7 +5,7 @@ import json from pathlib import Path -from aces_conformance.conformance import ( +from raes_conformance.conformance import ( observability_evidence_conformance_diagnostics, run_fixture_suite, ) diff --git a/implementations/python/tests/test_participant_backend_contracts.py b/implementations/python/tests/test_participant_backend_contracts.py index a0bb5e6b5..5011e5947 100644 --- a/implementations/python/tests/test_participant_backend_contracts.py +++ b/implementations/python/tests/test_participant_backend_contracts.py @@ -6,7 +6,7 @@ from pathlib import Path import pytest -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( VIEW_SCOPE_PROJECTED_FIELDS, ParticipantBehaviorHistoryEventModel, ParticipantContextViewModel, diff --git a/implementations/python/tests/test_participant_implementation_manifest.py b/implementations/python/tests/test_participant_implementation_manifest.py index 1b8926cec..0673a0185 100644 --- a/implementations/python/tests/test_participant_implementation_manifest.py +++ b/implementations/python/tests/test_participant_implementation_manifest.py @@ -6,12 +6,12 @@ from pathlib import Path import pytest -from aces_conformance.conformance import _validate_payload -from aces_contracts.contracts import ( +from raes_conformance.conformance import _validate_payload +from raes_contracts.contracts import ( ParticipantImplementationManifestModel, ParticipantImplementationProvenanceModel, ) -from aces_contracts.manifest_authority import PARTICIPANT_IMPLEMENTATION_SUPPORTED_CONTRACT_IDS +from raes_contracts.manifest_authority import PARTICIPANT_IMPLEMENTATION_SUPPORTED_CONTRACT_IDS from pydantic import ValidationError FIXTURES_ROOT = Path(__file__).resolve().parents[3] / "contracts" / "fixtures" diff --git a/implementations/python/tests/test_participant_interactive_access.py b/implementations/python/tests/test_participant_interactive_access.py index f902da3e7..913f6522f 100644 --- a/implementations/python/tests/test_participant_interactive_access.py +++ b/implementations/python/tests/test_participant_interactive_access.py @@ -7,8 +7,8 @@ from pathlib import Path import pytest -from aces_contracts.contracts import schema_bundle -from aces_processor.compiler import compile_runtime_model +from raes_contracts.contracts import schema_bundle +from raes_processor.compiler import compile_runtime_model from raes import ( SDLInstantiationError, SDLParseError, diff --git a/implementations/python/tests/test_pipeline_determinism.py b/implementations/python/tests/test_pipeline_determinism.py index 7a7821581..47dd1948c 100644 --- a/implementations/python/tests/test_pipeline_determinism.py +++ b/implementations/python/tests/test_pipeline_determinism.py @@ -37,7 +37,7 @@ ``parse -> instantiate -> compile`` path injects no wall-clock / uuid / random values, so the compiled ``RuntimeModel`` carries no per-run fields (verified: no ``datetime.now`` / ``time.time`` / ``uuid4`` / ``random`` / ``secrets`` in - ``raes`` or ``aces_processor``). Author-provided time-typed values + ``raes`` or ``raes_processor``). Author-provided time-typed values (``start_time``, OCR durations, script ``time``) are deterministic functions of the input and need no exclusion. The strip mechanism is retained and check (1) is the tripwire: a future generated timestamp would differ between @@ -58,8 +58,8 @@ import pytest from paths import EXAMPLES_DIR -from aces.core.runtime.compiler import compile_runtime_model -from aces.core.sdl import instantiate_scenario, parse_sdl_file +from raes_processor.compiler import compile_runtime_model +from raes import instantiate_scenario, parse_sdl_file # This whole witness is integration-style: it reads shipped scenarios from the # real repo on disk and spawns subprocesses, so it is excluded from the default @@ -202,8 +202,8 @@ def test_module_import_pipeline_is_byte_identical_across_two_passes(tmp_path: Pa import sys from pathlib import Path - from aces.core.runtime.compiler import compile_runtime_model - from aces.core.sdl import instantiate_scenario, parse_sdl_file + from raes_processor.compiler import compile_runtime_model + from raes import instantiate_scenario, parse_sdl_file exclude = set(json.loads(sys.argv[2])) diff --git a/implementations/python/tests/test_plan_inspection_cli.py b/implementations/python/tests/test_plan_inspection_cli.py index e246665a6..e45e24d84 100644 --- a/implementations/python/tests/test_plan_inspection_cli.py +++ b/implementations/python/tests/test_plan_inspection_cli.py @@ -5,11 +5,11 @@ import json from pathlib import Path -from aces_backend_protocols.manifest import backend_manifest_payload -from aces_backend_stubs.manifest import create_stub_manifest -from aces_cli.main import app -from aces_cli.processor import _sdl_error_summary -from aces_contracts.contracts import ( +from raes_backend_protocols.manifest import backend_manifest_payload +from raes_backend_stubs.manifest import create_stub_manifest +from raes_cli.main import app +from raes_cli.processor import _sdl_error_summary +from raes_contracts.contracts import ( EvaluationPlanModel, OrchestrationPlanModel, ProvisioningPlanModel, diff --git a/implementations/python/tests/test_plan_projection.py b/implementations/python/tests/test_plan_projection.py index f74e804b3..96916fa3e 100644 --- a/implementations/python/tests/test_plan_projection.py +++ b/implementations/python/tests/test_plan_projection.py @@ -6,21 +6,21 @@ from dataclasses import replace from pathlib import Path -from aces_backend_stubs.manifest import create_stub_manifest -from aces_contracts.contracts import ( +from raes_backend_stubs.manifest import create_stub_manifest +from raes_contracts.contracts import ( EvaluationPlanModel, OrchestrationPlanModel, ProvisioningPlanModel, RealizationEnvelopeIdentityModel, ) -from aces_contracts.diagnostics import Diagnostic, Severity -from aces_contracts.plan_projection import ( +from raes_contracts.diagnostics import Diagnostic, Severity +from raes_contracts.plan_projection import ( evaluation_plan_model, orchestration_plan_model, provisioning_plan_model, ) -from aces_contracts.planning import ProvisioningPlan -from aces_processor.reference import run_reference_processor +from raes_contracts.planning import ProvisioningPlan +from raes_processor.reference import run_reference_processor from paths import EXAMPLES_DIR, REPO_ROOT _PLAN_FIXTURES = REPO_ROOT / "contracts" / "fixtures" / "plans" diff --git a/implementations/python/tests/test_processor_manifest.py b/implementations/python/tests/test_processor_manifest.py index ee04b59d5..067da1368 100644 --- a/implementations/python/tests/test_processor_manifest.py +++ b/implementations/python/tests/test_processor_manifest.py @@ -6,16 +6,16 @@ from pathlib import Path import pytest -from aces_cli.main import app -from aces_contracts.apparatus import ConceptBinding -from aces_contracts.contracts import ProcessorManifestV2Model -from aces_contracts.manifest_authority import ( +from raes_cli.main import app +from raes_contracts.apparatus import ConceptBinding +from raes_contracts.contracts import ProcessorManifestV2Model +from raes_contracts.manifest_authority import ( PROCESSOR_SUPPORTED_CONTRACT_IDS, PROCESSOR_SUPPORTED_SDL_VERSION_IDS, ) -from aces_contracts.vocabulary import ProcessorFeature -from aces_processor.capabilities import ProcessorManifest -from aces_processor.manifest import ( +from raes_contracts.vocabulary import ProcessorFeature +from raes_processor.capabilities import ProcessorManifest +from raes_processor.manifest import ( create_reference_processor_manifest, reference_processor_manifest_payload, ) diff --git a/implementations/python/tests/test_project_positioning.py b/implementations/python/tests/test_project_positioning.py index 71d9df212..786805c4c 100644 --- a/implementations/python/tests/test_project_positioning.py +++ b/implementations/python/tests/test_project_positioning.py @@ -63,13 +63,13 @@ def _seed_positioning_surfaces(repo_root: Path) -> None: 'project = "Reproducible Agentic Environments System"\nhtml_title = "RAES Documentation"\n', ) _write( - repo_root / "implementations/python/packages/aces_mcp/server.py", + repo_root / "implementations/python/packages/raes_mcp/server.py", '_INSTRUCTIONS = """Reproducible Agentic Environments System (RAES) ' "supports agentic environments. RAES SDL is the authored scenario " 'language."""\n', ) _write( - repo_root / "implementations/python/packages/aces_mcp/tools/reference.py", + repo_root / "implementations/python/packages/raes_mcp/tools/reference.py", '_OVERVIEW_TEXT = """RAES supports reproducible agentic environments. ' "RAES SDL describes authored scenarios; backends produce realized " 'environments for bounded reproduction attempts."""\n', @@ -213,9 +213,9 @@ def test_positioning_check_reports_invalid_structured_metadata( @pytest.mark.parametrize( ("relative_path", "assignment"), ( - ("implementations/python/packages/aces_mcp/server.py", "_INSTRUCTIONS"), + ("implementations/python/packages/raes_mcp/server.py", "_INSTRUCTIONS"), ( - "implementations/python/packages/aces_mcp/tools/reference.py", + "implementations/python/packages/raes_mcp/tools/reference.py", "_OVERVIEW_TEXT", ), ), diff --git a/implementations/python/tests/test_proposition_capabilities.py b/implementations/python/tests/test_proposition_capabilities.py index 1f55756c1..1447879ab 100644 --- a/implementations/python/tests/test_proposition_capabilities.py +++ b/implementations/python/tests/test_proposition_capabilities.py @@ -3,8 +3,8 @@ from __future__ import annotations import pytest -from aces_backend_protocols.capabilities import EvaluatorCapabilities -from aces_reference_backend.manifest import create_reference_backend_manifest +from raes_backend_protocols.capabilities import EvaluatorCapabilities +from raes_reference_backend.manifest import create_reference_backend_manifest def test_evaluator_declares_finite_truth_and_predicate_capabilities() -> None: diff --git a/implementations/python/tests/test_proposition_semantics.py b/implementations/python/tests/test_proposition_semantics.py index d1472b4b5..4b8609fa1 100644 --- a/implementations/python/tests/test_proposition_semantics.py +++ b/implementations/python/tests/test_proposition_semantics.py @@ -3,7 +3,7 @@ from __future__ import annotations import pytest -from aces_processor.compiler import compile_runtime_model +from raes_processor.compiler import compile_runtime_model from pydantic import ValidationError from raes._errors import SDLParseError, SDLValidationError from raes.parser import parse_sdl diff --git a/implementations/python/tests/test_random_stream_collisions.py b/implementations/python/tests/test_random_stream_collisions.py index 16bdcf3b9..b17397e01 100644 --- a/implementations/python/tests/test_random_stream_collisions.py +++ b/implementations/python/tests/test_random_stream_collisions.py @@ -10,9 +10,9 @@ from __future__ import annotations -from aces_contracts.contracts.random_stream import StreamAddressModel -from aces_contracts.diagnostics import Severity -from aces_contracts.random_stream_engine import ( +from raes_contracts.contracts.random_stream import StreamAddressModel +from raes_contracts.diagnostics import Severity +from raes_contracts.random_stream_engine import ( BoundedIntegerDrawRequest, draw_bounded_integer_batch, ) diff --git a/implementations/python/tests/test_random_stream_contracts.py b/implementations/python/tests/test_random_stream_contracts.py index ae3921c20..cdb15644f 100644 --- a/implementations/python/tests/test_random_stream_contracts.py +++ b/implementations/python/tests/test_random_stream_contracts.py @@ -12,8 +12,8 @@ import json import pytest -from aces_contracts.contracts import ExperimentReferenceModel -from aces_contracts.contracts.random_stream import ( +from raes_contracts.contracts import ExperimentReferenceModel +from raes_contracts.contracts.random_stream import ( GovernedEntropyRefModel, GovernedRandomOutcomeRefModel, PublicRandomOutcomeModel, diff --git a/implementations/python/tests/test_random_stream_determinism.py b/implementations/python/tests/test_random_stream_determinism.py index 6f2d70743..ab6c48aeb 100644 --- a/implementations/python/tests/test_random_stream_determinism.py +++ b/implementations/python/tests/test_random_stream_determinism.py @@ -30,8 +30,8 @@ from concurrent.futures import ThreadPoolExecutor import pytest -from aces_contracts.contracts.random_stream import StreamAddressModel, TrialCoordinateModel -from aces_contracts.random_stream_engine import ( +from raes_contracts.contracts.random_stream import StreamAddressModel, TrialCoordinateModel +from raes_contracts.random_stream_engine import ( BLOCK_BYTES, _bounded_integer_byte_width, derive_stream_key, @@ -118,8 +118,8 @@ def test_worker_reversed_batches_match_serial(self) -> None: import json import sys - from aces_contracts.contracts.random_stream import StreamAddressModel, TrialCoordinateModel - from aces_contracts.random_stream_engine import derive_stream_key, raw_block + from raes_contracts.contracts.random_stream import StreamAddressModel, TrialCoordinateModel + from raes_contracts.random_stream_engine import derive_stream_key, raw_block profile_id = "blake3-xof-v1" root_entropy = bytes.fromhex("42" * 32) diff --git a/implementations/python/tests/test_random_stream_profile.py b/implementations/python/tests/test_random_stream_profile.py index 944cdde1a..2b059f836 100644 --- a/implementations/python/tests/test_random_stream_profile.py +++ b/implementations/python/tests/test_random_stream_profile.py @@ -13,8 +13,8 @@ from pathlib import Path import pytest -from aces_contracts.contracts import RandomStreamProfileModel -from aces_contracts.random_stream_profiles import ( +from raes_contracts.contracts import RandomStreamProfileModel +from raes_contracts.random_stream_profiles import ( SUPPORTED_RANDOM_STREAM_PROFILE_IDS, load_random_stream_profile, random_stream_profile_path, diff --git a/implementations/python/tests/test_random_stream_run_integration.py b/implementations/python/tests/test_random_stream_run_integration.py index 3d3771b51..2e169de58 100644 --- a/implementations/python/tests/test_random_stream_run_integration.py +++ b/implementations/python/tests/test_random_stream_run_integration.py @@ -21,13 +21,13 @@ from pathlib import Path import pytest -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( ExperimentRunModel, ExperimentStochasticControlModel, ExperimentTaskModel, validate_experiment_run_against_task, ) -from aces_contracts.contracts.random_stream import ( +from raes_contracts.contracts.random_stream import ( PublicRandomOutcomeModel, PublicSeedModel, RandomStreamControlBindingModel, @@ -117,7 +117,7 @@ def test_accepts_stochastic_draws_resolving_to_declared_control(self) -> None: assert run.stochastic_draws[0].control_id == "task-seed" def test_run_schema_publishes_stochastic_draws_surface(self) -> None: - from aces_contracts.contracts import schema_bundle + from raes_contracts.contracts import schema_bundle schema = schema_bundle()["experiment-run-v1"] assert "stochastic_draws" in schema["properties"] diff --git a/implementations/python/tests/test_random_stream_study_integration.py b/implementations/python/tests/test_random_stream_study_integration.py index 69ba1826b..c8e2afd47 100644 --- a/implementations/python/tests/test_random_stream_study_integration.py +++ b/implementations/python/tests/test_random_stream_study_integration.py @@ -20,13 +20,13 @@ from pathlib import Path import pytest -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( ExperimentRunModel, ExperimentStudyModel, ExperimentTaskModel, validate_experiment_study_against_tasks_and_runs, ) -from aces_contracts.contracts.random_stream import ( +from raes_contracts.contracts.random_stream import ( PublicSeedModel, RandomStreamControlBindingModel, RandomStreamProfileReferenceModel, diff --git a/implementations/python/tests/test_random_stream_vectors.py b/implementations/python/tests/test_random_stream_vectors.py index aaba35675..8d6167786 100644 --- a/implementations/python/tests/test_random_stream_vectors.py +++ b/implementations/python/tests/test_random_stream_vectors.py @@ -1,7 +1,7 @@ """Canonical-vector conformance tests for the EXP-718 ``blake3-xof-v1`` engine. Every vector under ``contracts/fixtures/random-stream-vectors/blake3-xof-v1/`` -was computed independently of ``aces_contracts.random_stream_engine`` (a +was computed independently of ``raes_contracts.random_stream_engine`` (a one-off script that calls the ``blake3`` library directly -- see the EXP-718 implementation notes); these tests run the same inputs through the public reference engine API and assert the outputs match, so the vector tests do not @@ -14,12 +14,12 @@ from pathlib import Path import pytest -from aces_contracts.contracts.random_stream import ( +from raes_contracts.contracts.random_stream import ( PublicSeedModel, RandomStreamVectorModel, StreamAddressModel, ) -from aces_contracts.random_stream_engine import ( +from raes_contracts.random_stream_engine import ( canonical_stream_address_bytes, decode_public_seed, derive_stream_key, diff --git a/implementations/python/tests/test_realization_envelope_contract.py b/implementations/python/tests/test_realization_envelope_contract.py index 9c3759ef7..437b518d5 100644 --- a/implementations/python/tests/test_realization_envelope_contract.py +++ b/implementations/python/tests/test_realization_envelope_contract.py @@ -7,8 +7,8 @@ from pathlib import Path import pytest -from aces_contracts.contracts import BackendManifestV2Model, ProvisioningPlanModel, RuntimeSnapshotEnvelopeModel -from aces_contracts.realization_envelope import ( +from raes_contracts.contracts import BackendManifestV2Model, ProvisioningPlanModel, RuntimeSnapshotEnvelopeModel +from raes_contracts.realization_envelope import ( BackendRealizationEnvelopeModel, ConcernDisposition, ObservationStrength, @@ -21,8 +21,8 @@ realizer_configuration_digest, validate_backend_realization_envelope, ) -from aces_contracts.runtime_state import RuntimeSnapshot -from aces_runtime.control_plane_store import LocalControlPlaneStore +from raes_contracts.runtime_state import RuntimeSnapshot +from raes_runtime.control_plane_store import LocalControlPlaneStore from jsonschema import Draft202012Validator from pydantic import ValidationError @@ -180,7 +180,7 @@ def test_published_schema_declares_callable_canonical_semantic_validator(): schema = BackendRealizationEnvelopeModel.model_json_schema() invariant = schema["x-aces-invariants"][0] - assert invariant["validator"] == "aces_contracts.realization_envelope.validate_backend_realization_envelope" + assert invariant["validator"] == "raes_contracts.realization_envelope.validate_backend_realization_envelope" with pytest.raises(ValidationError, match="digest does not match"): validate_backend_realization_envelope({**_payload(), "digest": "sha256:" + "f" * 64}) diff --git a/implementations/python/tests/test_realization_envelope_relation.py b/implementations/python/tests/test_realization_envelope_relation.py index 7d6b88105..045b66693 100644 --- a/implementations/python/tests/test_realization_envelope_relation.py +++ b/implementations/python/tests/test_realization_envelope_relation.py @@ -14,7 +14,7 @@ from pathlib import Path import pytest -from aces_contracts.realization_envelope import ( +from raes_contracts.realization_envelope import ( BooleanDomain, Closure, ClosureOverlay, diff --git a/implementations/python/tests/test_realization_honesty_conformance.py b/implementations/python/tests/test_realization_honesty_conformance.py index 1e450ea84..9d8cdf0f2 100644 --- a/implementations/python/tests/test_realization_honesty_conformance.py +++ b/implementations/python/tests/test_realization_honesty_conformance.py @@ -6,24 +6,24 @@ from dataclasses import replace import pytest -from aces_backend_libvirt.envelopes import LibvirtDriverMode, load_libvirt_realization_envelope -from aces_backend_libvirt.manifest import create_libvirt_manifest -from aces_backend_libvirt.target import create_libvirt_target -from aces_backend_protocols.capabilities import BackendManifest -from aces_backend_stubs.stubs import StubProvisioner -from aces_conformance.conformance import ( +from raes_backend_libvirt.envelopes import LibvirtDriverMode, load_libvirt_realization_envelope +from raes_backend_libvirt.manifest import create_libvirt_manifest +from raes_backend_libvirt.target import create_libvirt_target +from raes_backend_protocols.capabilities import BackendManifest +from raes_backend_stubs.stubs import StubProvisioner +from raes_conformance.conformance import ( BackendCapabilityProfile, backend_conformance_report_payload, run_target_conformance, ) -from aces_conformance.realization import ( +from raes_conformance.realization import ( ExecutionBasis, ExpectedRealizationObservation, RealizationProbeEvidence, RealizationProbeRequest, RealizationTransformation, ) -from aces_contracts.realization_envelope import ( +from raes_contracts.realization_envelope import ( BackendRealizationEnvelopeModel, ConcernDisposition, EnumDomain, @@ -36,9 +36,9 @@ RealizationEnvelopeModel, realization_envelope_digest, ) -from aces_contracts.realization_observation import RealizationObservation -from aces_operations.realization_conformance import write_backend_conformance_report -from aces_runtime.registry import RuntimeTarget +from raes_contracts.realization_observation import RealizationObservation +from raes_operations.realization_conformance import write_backend_conformance_report +from raes_runtime.registry import RuntimeTarget _SCENARIO = """\ name: honesty diff --git a/implementations/python/tests/test_reference_backend_components.py b/implementations/python/tests/test_reference_backend_components.py index ec27e8947..c19d1ad3b 100644 --- a/implementations/python/tests/test_reference_backend_components.py +++ b/implementations/python/tests/test_reference_backend_components.py @@ -4,15 +4,15 @@ import textwrap -from aces_contracts.participant_episode import ( +from raes_contracts.participant_episode import ( ParticipantEpisodeTerminalReason, iter_participant_episode_snapshot_violations, ) -from aces_reference_backend import create_reference_backend_target +from raes_reference_backend import create_reference_backend_target -from aces.core.runtime.control_plane import RuntimeControlPlane -from aces.core.runtime.manager import RuntimeManager -from aces.core.sdl import parse_sdl +from raes_runtime.control_plane import RuntimeControlPlane +from raes_runtime.manager import RuntimeManager +from raes import parse_sdl _SCENARIO = """ name: ref-components diff --git a/implementations/python/tests/test_reference_backend_conformance.py b/implementations/python/tests/test_reference_backend_conformance.py index c6b6af856..2bd3dd5a4 100644 --- a/implementations/python/tests/test_reference_backend_conformance.py +++ b/implementations/python/tests/test_reference_backend_conformance.py @@ -2,9 +2,9 @@ from __future__ import annotations -from aces_reference_backend import create_reference_backend_target +from raes_reference_backend import create_reference_backend_target -from aces.core.runtime.conformance import ( +from raes_conformance.conformance import ( BackendCapabilityProfile, run_target_conformance, ) @@ -40,7 +40,7 @@ def test_reference_target_drives_full_participant_probe_case_set(): def test_reference_target_conformance_matches_stub_acceptance(): - from aces.backends.stubs import create_stub_target + from raes_backend_stubs.stubs import create_stub_target reference_report = run_target_conformance(create_reference_backend_target()) stub_report = run_target_conformance(create_stub_target()) diff --git a/implementations/python/tests/test_reference_backend_docker_integration.py b/implementations/python/tests/test_reference_backend_docker_integration.py index bfeef177b..881696ea9 100644 --- a/implementations/python/tests/test_reference_backend_docker_integration.py +++ b/implementations/python/tests/test_reference_backend_docker_integration.py @@ -14,16 +14,16 @@ import textwrap import pytest -from aces_reference_backend import create_reference_backend_target -from aces_reference_backend.drivers.oci import ImageTrustPolicy, OciDeploymentDriver +from raes_reference_backend import create_reference_backend_target +from raes_reference_backend.drivers.oci import ImageTrustPolicy, OciDeploymentDriver -from aces.core.runtime.conformance import ( +from raes_conformance.conformance import ( BackendCapabilityProfile, run_target_conformance, ) -from aces.core.runtime.control_plane import RuntimeControlPlane -from aces.core.runtime.manager import RuntimeManager -from aces.core.sdl import parse_sdl +from raes_runtime.control_plane import RuntimeControlPlane +from raes_runtime.manager import RuntimeManager +from raes import parse_sdl pytestmark = pytest.mark.docker diff --git a/implementations/python/tests/test_reference_backend_manifest.py b/implementations/python/tests/test_reference_backend_manifest.py index 74711af7e..0bd76884b 100644 --- a/implementations/python/tests/test_reference_backend_manifest.py +++ b/implementations/python/tests/test_reference_backend_manifest.py @@ -2,11 +2,11 @@ from __future__ import annotations -from aces_backend_protocols.manifest import backend_manifest_payload -from aces_contracts.contracts import BackendManifestV2Model -from aces_reference_backend import create_reference_backend_manifest +from raes_backend_protocols.manifest import backend_manifest_payload +from raes_contracts.contracts import BackendManifestV2Model +from raes_reference_backend import create_reference_backend_manifest -from aces.core.runtime.conformance import ( +from raes_conformance.conformance import ( BackendCapabilityProfile, profile_for_manifest, ) @@ -60,7 +60,7 @@ def test_manifest_accepts_and_ignores_extra_config_kwargs(): def test_manifest_declares_only_evidence_backed_contract_ids(): # The reference backend mirrors the stub's evidence-backed contract set; # it must not over-claim contracts it does not actually emit/validate. - from aces_backend_stubs.stubs import create_stub_manifest + from raes_backend_stubs.stubs import create_stub_manifest reference = create_reference_backend_manifest() stub = create_stub_manifest() diff --git a/implementations/python/tests/test_reference_backend_oci_driver.py b/implementations/python/tests/test_reference_backend_oci_driver.py index e646a85ee..f523c0bb6 100644 --- a/implementations/python/tests/test_reference_backend_oci_driver.py +++ b/implementations/python/tests/test_reference_backend_oci_driver.py @@ -5,10 +5,10 @@ import subprocess import pytest -from aces_backend_protocols.naming import provider_resource_name -from aces_reference_backend.driver import ContainerSpec, NetworkSpec, ServiceSpec -from aces_reference_backend.drivers.inprocess import InProcessDriver -from aces_reference_backend.drivers.oci import ImageTrustPolicy, OciDeploymentDriver +from raes_backend_protocols.naming import provider_resource_name +from raes_reference_backend.driver import ContainerSpec, NetworkSpec, ServiceSpec +from raes_reference_backend.drivers.inprocess import InProcessDriver +from raes_reference_backend.drivers.oci import ImageTrustPolicy, OciDeploymentDriver class _Recorder: diff --git a/implementations/python/tests/test_reference_backend_provenance.py b/implementations/python/tests/test_reference_backend_provenance.py index b80e4f187..8cfd131a0 100644 --- a/implementations/python/tests/test_reference_backend_provenance.py +++ b/implementations/python/tests/test_reference_backend_provenance.py @@ -4,11 +4,11 @@ import textwrap -from aces_reference_backend import create_reference_backend_target +from raes_reference_backend import create_reference_backend_target from raes.explicitness import ExplicitnessClass, ExplicitnessProvenance -from aces.core.runtime.manager import RuntimeManager -from aces.core.sdl import parse_sdl +from raes_runtime.manager import RuntimeManager +from raes import parse_sdl _EXACT_SCENARIO = """ name: ref-sem-218 diff --git a/implementations/python/tests/test_reference_backend_provisioner.py b/implementations/python/tests/test_reference_backend_provisioner.py index 1e9050f99..36c5a2503 100644 --- a/implementations/python/tests/test_reference_backend_provisioner.py +++ b/implementations/python/tests/test_reference_backend_provisioner.py @@ -5,23 +5,23 @@ import textwrap import pytest -from aces_contracts.planning import ( +from raes_contracts.planning import ( ChangeAction, PlannedResource, ProvisioningPlan, ProvisionOp, RuntimeDomain, ) -from aces_reference_backend import ( +from raes_reference_backend import ( create_reference_backend_components, create_reference_backend_manifest, ) -from aces_reference_backend.drivers.inprocess import InProcessDriver +from raes_reference_backend.drivers.inprocess import InProcessDriver -from aces.core.runtime.control_plane import RuntimeControlPlane -from aces.core.runtime.manager import RuntimeManager -from aces.core.runtime.registry import RuntimeTarget -from aces.core.sdl import parse_sdl +from raes_runtime.control_plane import RuntimeControlPlane +from raes_runtime.manager import RuntimeManager +from raes_runtime.registry import RuntimeTarget +from raes import parse_sdl _SCENARIO = """ name: ref-provisioner diff --git a/implementations/python/tests/test_reference_backend_realization.py b/implementations/python/tests/test_reference_backend_realization.py index 6198301d6..6dda5e1ec 100644 --- a/implementations/python/tests/test_reference_backend_realization.py +++ b/implementations/python/tests/test_reference_backend_realization.py @@ -3,16 +3,16 @@ from __future__ import annotations import pytest -from aces_contracts.planning import ( +from raes_contracts.planning import ( ChangeAction, PlannedResource, ProvisioningPlan, ProvisionOp, RuntimeDomain, ) -from aces_reference_backend import interpret_provisioning_plan -from aces_reference_backend.driver import ServiceSpec -from aces_reference_backend.realization import Realization +from raes_reference_backend import interpret_provisioning_plan +from raes_reference_backend.driver import ServiceSpec +from raes_reference_backend.realization import Realization def _node_resource( diff --git a/implementations/python/tests/test_reference_backend_registry.py b/implementations/python/tests/test_reference_backend_registry.py index 859bd0f52..af18d2344 100644 --- a/implementations/python/tests/test_reference_backend_registry.py +++ b/implementations/python/tests/test_reference_backend_registry.py @@ -2,17 +2,17 @@ from __future__ import annotations -from aces_reference_backend import ( +from raes_reference_backend import ( REFERENCE_BACKEND_NAME, create_reference_backend_components, create_reference_backend_manifest, create_reference_backend_target, register_reference_backend, ) -from aces_reference_backend.drivers.inprocess import InProcessDriver -from aces_reference_backend.provisioner import ReferenceProvisioner +from raes_reference_backend.drivers.inprocess import InProcessDriver +from raes_reference_backend.provisioner import ReferenceProvisioner -from aces.core.runtime.registry import BackendRegistry, RuntimeTarget +from raes_runtime.registry import BackendRegistry, RuntimeTarget def test_create_target_passes_shape_validation(): diff --git a/implementations/python/tests/test_reference_field_pruning.py b/implementations/python/tests/test_reference_field_pruning.py index 839eb8fcb..cce665895 100644 --- a/implementations/python/tests/test_reference_field_pruning.py +++ b/implementations/python/tests/test_reference_field_pruning.py @@ -3,7 +3,7 @@ JSON Schema must also drop those keys from ``model_dump()`` -- otherwise a producer serializes a payload its own published schema (``additionalProperties: false``) forbids. ``PrunedReferenceFieldsMixin`` (in -``aces_contracts.contracts.experiment_references``) is the single shared +``raes_contracts.contracts.experiment_references``) is the single shared mechanism that derives both the schema pruning and the dump pruning from one ``_PRUNED_REF_FIELDS`` declaration per model, so this test module is the durable structural gate for the whole category: parametrized over every @@ -18,7 +18,7 @@ from typing import Any import pytest -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( ExperimentApparatusCompatibilityReferenceModel, ExperimentBackendReferenceModel, ExperimentCaptureSpecReferenceModel, @@ -28,11 +28,11 @@ ExperimentProcessorReferenceModel, ExperimentTaskReferenceModel, ) -from aces_contracts.contracts.experiment_manifest_references import ( +from raes_contracts.contracts.experiment_manifest_references import ( ExperimentEvidenceSatisfactionReferenceModel, ExperimentRunEvidenceArtifactReferenceModel, ) -from aces_contracts.contracts.validation_disclosure import ( +from raes_contracts.contracts.validation_disclosure import ( ValidationBasisDisclosureDocumentModel, ValidationProducerReferenceModel, ) diff --git a/implementations/python/tests/test_reference_models.py b/implementations/python/tests/test_reference_models.py index bdc29dc23..8f65ddc83 100644 --- a/implementations/python/tests/test_reference_models.py +++ b/implementations/python/tests/test_reference_models.py @@ -6,8 +6,8 @@ from pathlib import Path import pytest -from aces_contracts.contracts import ReferenceModelCatalogModel -from aces_contracts.reference_models import load_reference_model_catalog, reference_model_catalog_path +from raes_contracts.contracts import ReferenceModelCatalogModel +from raes_contracts.reference_models import load_reference_model_catalog, reference_model_catalog_path from pydantic import ValidationError REPO_ROOT = Path(__file__).resolve().parents[3] @@ -101,7 +101,7 @@ def test_reference_model_binding_resolves_nullable_optional_instance_path(): # `nodes.*.runtime` is an optional node field (anyOf[RuntimeConfiguration, null]), # so binding resolution must look through the nullable-optional wrapper. This is # what lets the scenario-node-runtime reference model bind to a real definition. - from aces_contracts.contracts import ( + from raes_contracts.contracts import ( ReferenceModelSchemaBindingModel, _resolve_instance_path_schema, _resolve_ref_schema, @@ -130,7 +130,7 @@ def test_reference_model_binding_resolves_nullable_optional_instance_path(): def test_collapse_nullable_optional_schema_is_conservative(): - from aces_contracts.contracts import _collapse_nullable_optional_schema, _resolve_ref_schema + from raes_contracts.contracts import _collapse_nullable_optional_schema, _resolve_ref_schema ref_branch = {"$ref": "#/$defs/RuntimeConfiguration"} nullable = {"anyOf": [ref_branch, {"type": "null"}], "default": None} diff --git a/implementations/python/tests/test_reference_processor.py b/implementations/python/tests/test_reference_processor.py index 86813e598..61844ded3 100644 --- a/implementations/python/tests/test_reference_processor.py +++ b/implementations/python/tests/test_reference_processor.py @@ -1,6 +1,6 @@ """RUN-313: repository-owned reference processor. -The reference processor (``aces_processor.reference``) realizes the normative +The reference processor (``raes_processor.reference``) realizes the normative processing model: it carries SDL authoring input through instantiation, compilation, and planning to a portable :class:`ExecutionPlan`, and exposes the published processor manifest. Per ADR-008 the processor's responsibility ends at @@ -16,24 +16,24 @@ from textwrap import dedent import pytest -from aces_backend_stubs.stubs import create_stub_manifest, create_stub_target -from aces_contracts.contracts import ( +from raes_backend_stubs.stubs import create_stub_manifest, create_stub_target +from raes_contracts.contracts import ( ProcessorManifestV2Model, WorkflowCancellationRequestModel, ) -from aces_processor.manifest import ( +from raes_processor.manifest import ( REFERENCE_SUPPORTED_CONTRACT_VERSIONS_V2, reference_processor_manifest_payload, ) -from aces_processor.models import ExecutionPlan, RuntimeModel -from aces_processor.reference import ( +from raes_processor.models import ExecutionPlan, RuntimeModel +from raes_processor.reference import ( ReferenceProcessor, ReferenceProcessorResult, run_reference_processor, ) -from aces_runtime import RuntimeControlPlane -from aces_runtime.control_plane_api import _receipt_response -from aces_runtime.control_plane_api_models import _operation_status_model, _snapshot_model +from raes_runtime import RuntimeControlPlane +from raes_runtime.control_plane_api import _receipt_response +from raes_runtime.control_plane_api_models import _operation_status_model, _snapshot_model from raes import parse_sdl WORKFLOW_ADDRESS = "orchestration.workflow.response" diff --git a/implementations/python/tests/test_repo_policy_tools.py b/implementations/python/tests/test_repo_policy_tools.py index d6f313e8e..d99a2a85c 100644 --- a/implementations/python/tests/test_repo_policy_tools.py +++ b/implementations/python/tests/test_repo_policy_tools.py @@ -184,17 +184,17 @@ def setup_policy_repo(tmp_path: Path) -> Path: ) for package in ( "raes", - "aces_processor", - "aces_runtime", - "aces_backend_protocols", - "aces_backend_stubs", - "aces_backend_libvirt", - "aces_operations", - "aces_reference_backend", - "aces_conformance", - "aces_cli", - "aces_mcp", - "aces_contracts", + "raes_processor", + "raes_runtime", + "raes_backend_protocols", + "raes_backend_stubs", + "raes_backend_libvirt", + "raes_operations", + "raes_reference_backend", + "raes_conformance", + "raes_cli", + "raes_mcp", + "raes_contracts", ): write_text( tmp_path / "implementations" / "python" / "packages" / package / "__init__.py", @@ -322,24 +322,24 @@ def test_conftest_policy_runner_parses_and_sorts_failures( ] -def test_package_import_direction_blocks_aces_compatibility_imports(tmp_path: Path) -> None: +def test_package_import_direction_blocks_retired_aces_imports(tmp_path: Path) -> None: repo_root = setup_policy_repo(tmp_path) write_text( - repo_root / "implementations" / "python" / "packages" / "aces_processor" / "planner.py", + repo_root / "implementations" / "python" / "packages" / "raes_processor" / "planner.py", "from aces.runtime import legacy\n", ) failures = evaluate_repo_policy( repo_root, - ["implementations/python/packages/aces_processor/planner.py"], + ["implementations/python/packages/raes_processor/planner.py"], check_set="file-local", structural_runner=structural_runner_stub, ) - assert [failure.rule_id for failure in failures] == ["compatibility-import-direction"] + assert [failure.rule_id for failure in failures] == ["retired-namespace-import"] -def test_compatibility_layer_rejects_non_wrapper_logic(tmp_path: Path) -> None: +def test_retired_aces_namespace_rejects_any_file(tmp_path: Path) -> None: repo_root = setup_policy_repo(tmp_path) write_text( repo_root / "implementations" / "python" / "src" / "aces" / "runtime.py", @@ -353,7 +353,7 @@ def test_compatibility_layer_rejects_non_wrapper_logic(tmp_path: Path) -> None: structural_runner=structural_runner_stub, ) - assert [failure.rule_id for failure in failures] == ["compatibility-wrapper-only"] + assert [failure.rule_id for failure in failures] == ["retired-namespace-path"] def test_adr_readme_must_match_adr_documents(tmp_path: Path) -> None: @@ -429,13 +429,13 @@ def _aces_sdl_file(repo_root: Path, name: str, content: str) -> str: @pytest.mark.parametrize( "import_line", [ - "import aces_processor", - "import aces_processor.compiler", - "from aces_processor import compiler", - "from aces_processor.compiler import compile_runtime_model", + "import raes_processor", + "import raes_processor.compiler", + "from raes_processor import compiler", + "from raes_processor.compiler import compile_runtime_model", ], ) -def test_layering_rule_rejects_aces_processor_imports(tmp_path: Path, import_line: str) -> None: +def test_layering_rule_rejects_raes_processor_imports(tmp_path: Path, import_line: str) -> None: repo_root = setup_policy_repo(tmp_path) rel = _aces_sdl_file(repo_root, "_uses_processor.py", import_line + "\n") @@ -447,10 +447,10 @@ def test_layering_rule_rejects_aces_processor_imports(tmp_path: Path, import_lin def test_layering_rule_does_not_match_prefix_only_package(tmp_path: Path) -> None: - """A package merely starting with `aces_processor` (e.g. a - hypothetical `aces_processor_extra`) is not the forbidden package.""" + """A package merely starting with `raes_processor` (e.g. a + hypothetical `raes_processor_extra`) is not the forbidden package.""" repo_root = setup_policy_repo(tmp_path) - rel = _aces_sdl_file(repo_root, "_uses_other.py", "from aces_processor_extra import thing\n") + rel = _aces_sdl_file(repo_root, "_uses_other.py", "from raes_processor_extra import thing\n") failures = evaluate_repo_policy(repo_root, [rel], check_set="file-local", structural_runner=structural_runner_stub) @@ -462,7 +462,7 @@ def test_layering_rule_allows_aces_sdl_importing_other_packages(tmp_path: Path) rel = _aces_sdl_file( repo_root, "_normal.py", - "from aces_contracts.contracts import Scenario\nfrom raes.semantics.objectives import analyze_objective_window\n", + "from raes_contracts.contracts import Scenario\nfrom raes.semantics.objectives import analyze_objective_window\n", ) failures = evaluate_repo_policy(repo_root, [rel], check_set="file-local", structural_runner=structural_runner_stub) @@ -471,11 +471,11 @@ def test_layering_rule_allows_aces_sdl_importing_other_packages(tmp_path: Path) def test_layering_rule_does_not_check_files_outside_scope(tmp_path: Path) -> None: - """An `import aces_processor` inside aces_processor itself (or any + """An `import raes_processor` inside raes_processor itself (or any package other than raes) is not a layering violation.""" repo_root = setup_policy_repo(tmp_path) - rel = "implementations/python/packages/aces_processor/internal.py" - write_text(repo_root / rel, "import aces_processor.models\n") + rel = "implementations/python/packages/raes_processor/internal.py" + write_text(repo_root / rel, "import raes_processor.models\n") failures = evaluate_repo_policy(repo_root, [rel], check_set="file-local", structural_runner=structural_runner_stub) @@ -492,8 +492,8 @@ def install_module_boundary_policy(repo_root: Path) -> None: def test_module_boundaries_reject_processor_importing_runtime(tmp_path: Path) -> None: repo_root = setup_policy_repo(tmp_path) install_module_boundary_policy(repo_root) - rel = "implementations/python/packages/aces_processor/uses_runtime.py" - write_text(repo_root / rel, "from aces_runtime.manager import RuntimeManager\n") + rel = "implementations/python/packages/raes_processor/uses_runtime.py" + write_text(repo_root / rel, "from raes_runtime.manager import RuntimeManager\n") failures = evaluate_repo_policy(repo_root, [rel], check_set="file-local", structural_runner=structural_runner_stub) @@ -503,8 +503,8 @@ def test_module_boundaries_reject_processor_importing_runtime(tmp_path: Path) -> def test_module_boundaries_reject_runtime_importing_processor_private_modules(tmp_path: Path) -> None: repo_root = setup_policy_repo(tmp_path) install_module_boundary_policy(repo_root) - rel = "implementations/python/packages/aces_runtime/uses_private_processor.py" - write_text(repo_root / rel, "from aces_processor._private import helper\n") + rel = "implementations/python/packages/raes_runtime/uses_private_processor.py" + write_text(repo_root / rel, "from raes_processor._private import helper\n") failures = evaluate_repo_policy(repo_root, [rel], check_set="file-local", structural_runner=structural_runner_stub) @@ -514,12 +514,12 @@ def test_module_boundaries_reject_runtime_importing_processor_private_modules(tm def test_module_boundaries_allow_runtime_using_processor_public_api(tmp_path: Path) -> None: repo_root = setup_policy_repo(tmp_path) install_module_boundary_policy(repo_root) - rel = "implementations/python/packages/aces_runtime/uses_processor.py" + rel = "implementations/python/packages/raes_runtime/uses_processor.py" write_text( repo_root / rel, - "from aces_processor.compiler import compile_runtime_model\n" - "from aces_processor.models import RuntimeSnapshot\n" - "from aces_processor.planner import plan\n", + "from raes_processor.compiler import compile_runtime_model\n" + "from raes_processor.models import RuntimeSnapshot\n" + "from raes_processor.planner import plan\n", ) failures = evaluate_repo_policy(repo_root, [rel], check_set="file-local", structural_runner=structural_runner_stub) @@ -530,8 +530,8 @@ def test_module_boundaries_allow_runtime_using_processor_public_api(tmp_path: Pa def test_module_boundaries_reject_runtime_using_non_public_processor_module(tmp_path: Path) -> None: repo_root = setup_policy_repo(tmp_path) install_module_boundary_policy(repo_root) - rel = "implementations/python/packages/aces_runtime/uses_processor_semantics.py" - write_text(repo_root / rel, "from aces_processor.semantics.planner import reverse_delete_order\n") + rel = "implementations/python/packages/raes_runtime/uses_processor_semantics.py" + write_text(repo_root / rel, "from raes_processor.semantics.planner import reverse_delete_order\n") failures = evaluate_repo_policy(repo_root, [rel], check_set="file-local", structural_runner=structural_runner_stub) @@ -542,7 +542,7 @@ def test_module_boundaries_reject_sdl_importing_runtime(tmp_path: Path) -> None: repo_root = setup_policy_repo(tmp_path) install_module_boundary_policy(repo_root) rel = "implementations/python/packages/raes/uses_runtime.py" - write_text(repo_root / rel, "import aces_runtime\n") + write_text(repo_root / rel, "import raes_runtime\n") failures = evaluate_repo_policy(repo_root, [rel], check_set="file-local", structural_runner=structural_runner_stub) @@ -552,8 +552,8 @@ def test_module_boundaries_reject_sdl_importing_runtime(tmp_path: Path) -> None: def test_module_boundaries_reject_authoring_importing_runtime_internals(tmp_path: Path) -> None: repo_root = setup_policy_repo(tmp_path) install_module_boundary_policy(repo_root) - rel = "implementations/python/packages/aces_mcp/tools/authoring_runtime.py" - write_text(repo_root / rel, "from aces_runtime.control_plane import RuntimeControlPlane\n") + rel = "implementations/python/packages/raes_mcp/tools/authoring_runtime.py" + write_text(repo_root / rel, "from raes_runtime.control_plane import RuntimeControlPlane\n") failures = evaluate_repo_policy(repo_root, [rel], check_set="file-local", structural_runner=structural_runner_stub) @@ -562,8 +562,8 @@ def test_module_boundaries_reject_authoring_importing_runtime_internals(tmp_path def test_module_boundaries_reject_backend_stub_importing_processor(tmp_path: Path) -> None: repo_root = setup_policy_repo(tmp_path) - rel = "implementations/python/packages/aces_backend_stubs/uses_processor.py" - write_text(repo_root / rel, "from aces_processor.models import ApplyResult\n") + rel = "implementations/python/packages/raes_backend_stubs/uses_processor.py" + write_text(repo_root / rel, "from raes_processor.models import ApplyResult\n") failures = evaluate_repo_policy(repo_root, [rel], check_set="file-local", structural_runner=structural_runner_stub) @@ -572,7 +572,7 @@ def test_module_boundaries_reject_backend_stub_importing_processor(tmp_path: Pat def test_module_boundaries_reject_backend_protocol_any_signatures(tmp_path: Path) -> None: repo_root = setup_policy_repo(tmp_path) - rel = "implementations/python/packages/aces_backend_protocols/protocols.py" + rel = "implementations/python/packages/raes_backend_protocols/protocols.py" write_text( repo_root / rel, "from typing import Any, Protocol\n\n" @@ -654,8 +654,8 @@ def test_module_boundaries_reject_uncovered_package_root(tmp_path: Path) -> None def test_module_boundaries_full_check_scans_all_module_sources(tmp_path: Path) -> None: repo_root = setup_policy_repo(tmp_path) - rel = "implementations/python/packages/aces_processor/latent_runtime_import.py" - write_text(repo_root / rel, "from aces_runtime.manager import RuntimeManager\n") + rel = "implementations/python/packages/raes_processor/latent_runtime_import.py" + write_text(repo_root / rel, "from raes_runtime.manager import RuntimeManager\n") failures = evaluate_repo_policy( repo_root, @@ -670,7 +670,7 @@ def test_module_boundaries_full_check_scans_all_module_sources(tmp_path: Path) - def test_module_boundaries_reject_runtime_importing_sdl_semantics(tmp_path: Path) -> None: repo_root = setup_policy_repo(tmp_path) - rel = "implementations/python/packages/aces_runtime/uses_sdl_workflow_semantics.py" + rel = "implementations/python/packages/raes_runtime/uses_sdl_workflow_semantics.py" write_text(repo_root / rel, "from raes.semantics.workflow import validate_workflow_step_result\n") failures = evaluate_repo_policy( @@ -688,12 +688,12 @@ def test_module_boundaries_reject_runtime_importing_sdl_semantics(tmp_path: Path # A path that is in _ADR015_INITIAL_OVERSIZED_FILES (the code constant in # tools/policy/repo_policy.py), so the allowlist-subset (drain) check passes # when we put it in the allowlist. -_LOCKED_PATH = "implementations/python/packages/aces_processor/models.py" +_LOCKED_PATH = "implementations/python/packages/raes_processor/models.py" def test_oversized_source_file_over_cap_is_rejected(tmp_path: Path) -> None: repo_root = setup_policy_repo(tmp_path) - rel = "implementations/python/packages/aces_processor/big_new_file.py" + rel = "implementations/python/packages/raes_processor/big_new_file.py" write_text(repo_root / rel, "x = 1\n" * 700) failures = evaluate_repo_policy(repo_root, [rel], check_set="file-local", structural_runner=structural_runner_stub) @@ -715,7 +715,7 @@ def test_oversized_source_file_in_allowlist_passes(tmp_path: Path) -> None: def test_oversized_source_file_under_cap_passes(tmp_path: Path) -> None: repo_root = setup_policy_repo(tmp_path) - rel = "implementations/python/packages/aces_processor/small.py" + rel = "implementations/python/packages/raes_processor/small.py" write_text(repo_root / rel, "x = 1\n" * 100) failures = evaluate_repo_policy(repo_root, [rel], check_set="file-local", structural_runner=structural_runner_stub) @@ -735,7 +735,7 @@ def test_oversized_cap_excludes_test_files(tmp_path: Path) -> None: def test_oversized_cap_only_checks_python_files(tmp_path: Path) -> None: repo_root = setup_policy_repo(tmp_path) - rel = "implementations/python/packages/aces_processor/data.txt" + rel = "implementations/python/packages/raes_processor/data.txt" write_text(repo_root / rel, "line\n" * 700) failures = evaluate_repo_policy(repo_root, [rel], check_set="file-local", structural_runner=structural_runner_stub) @@ -748,7 +748,7 @@ def test_oversized_cap_only_checks_python_files(tmp_path: Path) -> None: def test_allowlist_entry_not_in_locked_set_is_rejected(tmp_path: Path) -> None: repo_root = setup_policy_repo(tmp_path) - bogus = "implementations/python/packages/aces_processor/not_a_locked_file.py" + bogus = "implementations/python/packages/raes_processor/not_a_locked_file.py" write_text(repo_root / "tools" / "policy" / "oversized_allowlist.yaml", f"files:\n - {bogus}\n") failures = evaluate_repo_policy( @@ -783,7 +783,7 @@ def test_growing_locked_set_via_config_does_not_relax_drain_check(tmp_path: Path `locked_initial_files` block in adr_policy.yaml) must not make it pass — the locked reference set is not config the same PR can edit.""" repo_root = setup_policy_repo(tmp_path) - sneaky = "implementations/python/packages/aces_processor/sneaky_new_big_file.py" + sneaky = "implementations/python/packages/raes_processor/sneaky_new_big_file.py" write_text(repo_root / "tools" / "policy" / "oversized_allowlist.yaml", f"files:\n - {sneaky}\n") write_text(repo_root / sneaky, "x = 1\n" * 700) # Re-add a config-level locked_initial_files block listing the sneaky file. @@ -838,7 +838,7 @@ def test_unsafe_locked_allowlist_entry_is_rejected(tmp_path: Path) -> None: def test_malformed_policy_config_produces_structured_failure(tmp_path: Path, mutation: str, marker: str) -> None: repo_root = setup_policy_repo(tmp_path) # Replace the whole adr_policy.yaml with a minimal-but-malformed config. - # Keep the keys other parts of the policy need (compatibility_layer, + # Keep the keys other parts of the policy need (retired_namespace, # adr_index, source_roots, generated_contracts, concept_authority) by # appending the mutation onto the real config. base = (REPO_ROOT / "tools" / "policy" / "adr_policy.yaml").read_text() @@ -1024,7 +1024,7 @@ def test_unsafe_changed_path_is_rejected(tmp_path: Path) -> None: symlink) is reported as policy-path-unsafe rather than being read.""" repo_root = setup_policy_repo(tmp_path) outside = tmp_path.parent / "outside_secret.py" - write_text(outside, "import aces_processor\n") + write_text(outside, "import raes_processor\n") link_rel = "implementations/python/packages/raes/_link.py" (repo_root / "implementations" / "python" / "packages" / "raes").mkdir(parents=True, exist_ok=True) (repo_root / link_rel).symlink_to(outside) @@ -1183,9 +1183,9 @@ def _published_schema(properties: dict[str, Any], *, required: list[str] | None def test_should_run_full_validation_for_schema_driver_paths() -> None: assert should_run_full_validation(["tools/generate_contract_schemas.py"]) is True - assert should_run_full_validation(["implementations/python/packages/aces_contracts/contracts.py"]) is True + assert should_run_full_validation(["implementations/python/packages/raes_contracts/contracts.py"]) is True # raes supplies the Scenario Pydantic model exposed by schema_bundle(); - # a change there must trigger full schema validation just like aces_contracts. + # a change there must trigger full schema validation just like raes_contracts. assert should_run_full_validation(["implementations/python/packages/raes/agents.py"]) is True assert should_run_full_validation(["contracts/concept-authority/concept-families-v1.json"]) is False @@ -1936,7 +1936,7 @@ def test_collect_validation_targets_runs_full_scan_when_schema_drivers_change(tm targets = collect_validation_targets( repo_root, - paths=["implementations/python/packages/aces_contracts/contracts.py"], + paths=["implementations/python/packages/raes_contracts/contracts.py"], ) assert any(target.path == "contracts/concept-authority/concept-families-v1.json" for target in targets) diff --git a/implementations/python/tests/test_requirement_governance.py b/implementations/python/tests/test_requirement_governance.py index acd1c1818..5b70ae199 100644 --- a/implementations/python/tests/test_requirement_governance.py +++ b/implementations/python/tests/test_requirement_governance.py @@ -56,7 +56,7 @@ def make_client(*, requirement_status: str = "DRAFT", api_412_status: str = "DRA traceability = { "req-gov-918": [ { - "artifact_identifier": "implementations/python/packages/aces_processor/bindings.py", + "artifact_identifier": "implementations/python/packages/raes_processor/bindings.py", "artifact_type": "CODE_FILE", "link_type": "IMPLEMENTS", }, @@ -68,7 +68,7 @@ def make_client(*, requirement_status: str = "DRAFT", api_412_status: str = "DRA ], "req-api-412": [ { - "artifact_identifier": "implementations/python/packages/aces_processor/manifest.py", + "artifact_identifier": "implementations/python/packages/raes_processor/manifest.py", "artifact_type": "CODE_FILE", "link_type": "IMPLEMENTS", } @@ -76,7 +76,7 @@ def make_client(*, requirement_status: str = "DRAFT", api_412_status: str = "DRA "req-run-313": [], "req-exp-701": [ { - "artifact_identifier": "implementations/python/packages/aces_contracts/contracts.py", + "artifact_identifier": "implementations/python/packages/raes_contracts/contracts.py", "artifact_type": "CODE_FILE", "link_type": "IMPLEMENTS", }, @@ -99,12 +99,12 @@ def test_detect_requirement_uid_from_branch_name() -> None: def test_governed_requirement_paths_excludes_exempt_tooling_files() -> None: assert governed_requirement_paths( [ - "implementations/python/packages/aces_processor/manifest.py", + "implementations/python/packages/raes_processor/manifest.py", "implementations/python/tests/test_repo_policy_tools.py", ".pre-commit-config.yaml", "tools/check_json_artifacts.py", ] - ) == ["implementations/python/packages/aces_processor/manifest.py"] + ) == ["implementations/python/packages/raes_processor/manifest.py"] def test_dev_to_main_promotion_is_detected(monkeypatch) -> None: @@ -127,7 +127,7 @@ def test_archived_requirements_are_rejected(tmp_path: Path) -> None: failures = evaluate_requirement_governance( repo_root, - ["implementations/python/packages/aces_processor/bindings.py"], + ["implementations/python/packages/raes_processor/bindings.py"], client=client, requirement_uid="GOV-918", ) @@ -139,13 +139,13 @@ def test_blocked_phase_requires_previous_phase_completion(tmp_path: Path) -> Non repo_root = setup_policy_repo(tmp_path) client = make_client(api_412_status="DRAFT") write_text( - repo_root / "implementations" / "python" / "packages" / "aces_processor" / "manifest.py", + repo_root / "implementations" / "python" / "packages" / "raes_processor" / "manifest.py", "VALUE = 1\n", ) failures = evaluate_requirement_governance( repo_root, - ["implementations/python/packages/aces_processor/manifest.py"], + ["implementations/python/packages/raes_processor/manifest.py"], client=client, requirement_uid="API-412", ) @@ -178,7 +178,7 @@ def test_missing_traceability_links_are_reported(tmp_path: Path) -> None: repo_root = setup_policy_repo(tmp_path) client = make_client() write_text( - repo_root / "implementations" / "python" / "packages" / "aces_processor" / "new_binding.py", + repo_root / "implementations" / "python" / "packages" / "raes_processor" / "new_binding.py", "VALUE = 1\n", ) write_text( @@ -189,7 +189,7 @@ def test_missing_traceability_links_are_reported(tmp_path: Path) -> None: failures = evaluate_requirement_governance( repo_root, [ - "implementations/python/packages/aces_processor/new_binding.py", + "implementations/python/packages/raes_processor/new_binding.py", "implementations/python/tests/test_new_binding.py", ], client=client, @@ -206,7 +206,7 @@ def test_requirement_governance_passes_for_allowed_paths_and_traceability(tmp_pa repo_root = setup_policy_repo(tmp_path) client = make_client() write_text( - repo_root / "implementations" / "python" / "packages" / "aces_processor" / "bindings.py", + repo_root / "implementations" / "python" / "packages" / "raes_processor" / "bindings.py", "VALUE = 1\n", ) write_text( @@ -217,7 +217,7 @@ def test_requirement_governance_passes_for_allowed_paths_and_traceability(tmp_pa failures = evaluate_requirement_governance( repo_root, [ - "implementations/python/packages/aces_processor/bindings.py", + "implementations/python/packages/raes_processor/bindings.py", "implementations/python/tests/test_concept_authority.py", ], client=client, @@ -231,7 +231,7 @@ def test_experiment_core_requirement_maps_allowed_contract_paths(tmp_path: Path) repo_root = setup_policy_repo(tmp_path) client = make_client() write_text( - repo_root / "implementations" / "python" / "packages" / "aces_contracts" / "contracts.py", + repo_root / "implementations" / "python" / "packages" / "raes_contracts" / "contracts.py", "VALUE = 1\n", ) write_text( @@ -246,7 +246,7 @@ def test_experiment_core_requirement_maps_allowed_contract_paths(tmp_path: Path) "contracts/schemas/backend-manifest/backend-manifest-v2.json", "contracts/schemas/experiment-core/experiment-task-v1.json", "docs/research/experiment-core/traceability-matrix-exp-701-705.md", - "implementations/python/packages/aces_contracts/contracts.py", + "implementations/python/packages/raes_contracts/contracts.py", "implementations/python/tests/test_runtime_contracts.py", "specs/formal/experiment-core/README.md", ], @@ -267,7 +267,7 @@ def test_requirement_governance_accepts_camel_case_traceability_payload(tmp_path traceability={ "req-gov-918": [ { - "artifactIdentifier": "implementations/python/packages/aces_contracts/contracts.py", + "artifactIdentifier": "implementations/python/packages/raes_contracts/contracts.py", "artifactType": "CODE_FILE", "linkType": "IMPLEMENTS", }, @@ -280,7 +280,7 @@ def test_requirement_governance_accepts_camel_case_traceability_payload(tmp_path }, ) write_text( - repo_root / "implementations" / "python" / "packages" / "aces_contracts" / "contracts.py", + repo_root / "implementations" / "python" / "packages" / "raes_contracts" / "contracts.py", "VALUE = 1\n", ) write_text( @@ -291,7 +291,7 @@ def test_requirement_governance_accepts_camel_case_traceability_payload(tmp_path failures = evaluate_requirement_governance( repo_root, [ - "implementations/python/packages/aces_contracts/contracts.py", + "implementations/python/packages/raes_contracts/contracts.py", "implementations/python/tests/test_requirement_governance.py", ], client=client, diff --git a/implementations/python/tests/test_reusable_asset_trust_policy.py b/implementations/python/tests/test_reusable_asset_trust_policy.py index 5defdcc08..cd4ff0bb6 100644 --- a/implementations/python/tests/test_reusable_asset_trust_policy.py +++ b/implementations/python/tests/test_reusable_asset_trust_policy.py @@ -15,12 +15,12 @@ from pathlib import Path import pytest -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( REUSABLE_ASSET_FAMILIES, ReusableAssetTrustPolicyModel, schema_bundle, ) -from aces_contracts.versions import REUSABLE_ASSET_TRUST_POLICY_SCHEMA_VERSION +from raes_contracts.versions import REUSABLE_ASSET_TRUST_POLICY_SCHEMA_VERSION from pydantic import ValidationError from tools.check_schema_publication import load_schema_publication_catalog diff --git a/implementations/python/tests/test_run_300_lifecycle.py b/implementations/python/tests/test_run_300_lifecycle.py index 70dda7c8b..3c3bfce30 100644 --- a/implementations/python/tests/test_run_300_lifecycle.py +++ b/implementations/python/tests/test_run_300_lifecycle.py @@ -21,17 +21,17 @@ import pytest -from aces.backends.stubs import create_stub_target -from aces.core.runtime.compiler import compile_runtime_model -from aces.core.runtime.manager import RuntimeManager -from aces.core.runtime.models import ( +from raes_backend_stubs.stubs import create_stub_target +from raes_processor.compiler import compile_runtime_model +from raes_runtime.manager import RuntimeManager +from raes_processor.models import ( ChangeAction, ExecutionPlan, RuntimeDomain, RuntimeSnapshot, ) -from aces.core.runtime.planner import plan as plan_execution -from aces.core.sdl import ( +from raes_processor.planner import plan as plan_execution +from raes import ( InstantiatedScenario, SDLInstantiationError, instantiate_scenario, @@ -338,7 +338,7 @@ def test_reapplying_stale_plan_is_rejected_by_provenance_drift_check(self): the original plan — whose ``base_snapshot`` is now stale — must surface a ``runtime.plan-snapshot-mismatch`` diagnostic and must not perform a second (partial) apply against the advanced state. - This exercises the provenance check in ``aces_processor/manager.py`` + This exercises the provenance check in ``raes_processor/manager.py`` (the base_snapshot comparison in ``_provenance_diagnostics``) and is the concrete guarantee that RUN-300's "preserving scenario meaning across those stages" clause is enforced even against diff --git a/implementations/python/tests/test_run_305_participant_runtime_state_history.py b/implementations/python/tests/test_run_305_participant_runtime_state_history.py index 38a9b271c..fd6966fca 100644 --- a/implementations/python/tests/test_run_305_participant_runtime_state_history.py +++ b/implementations/python/tests/test_run_305_participant_runtime_state_history.py @@ -3,18 +3,18 @@ from __future__ import annotations import pytest -from aces_contracts.contracts import ParticipantBehaviorHistoryEventModel, schema_bundle -from aces_contracts.runtime_state import ApplyResult, RuntimeSnapshot -from aces_runtime.backend_calls import _call_backend_apply -from aces_runtime.participant_result_contracts import participant_runtime_state_contract_diagnostics +from raes_contracts.contracts import ParticipantBehaviorHistoryEventModel, schema_bundle +from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot +from raes_runtime.backend_calls import _call_backend_apply +from raes_runtime.participant_result_contracts import participant_runtime_state_contract_diagnostics from jsonschema import Draft202012Validator from pydantic import ValidationError from starlette.testclient import TestClient -from aces.backends.stubs import create_stub_target -from aces.core.runtime.control_plane import RuntimeControlPlane -from aces.core.runtime.control_plane_api import create_control_plane_app -from aces.core.runtime.control_plane_security import ( +from raes_backend_stubs.stubs import create_stub_target +from raes_runtime.control_plane import RuntimeControlPlane +from raes_runtime.control_plane_api import create_control_plane_app +from raes_runtime.control_plane_security import ( ControlPlaneIdentity, ControlPlaneRole, ControlPlaneSecurityConfig, diff --git a/implementations/python/tests/test_run_306_participant_decision_lifecycle.py b/implementations/python/tests/test_run_306_participant_decision_lifecycle.py index 57f7f2e6a..55260be2e 100644 --- a/implementations/python/tests/test_run_306_participant_decision_lifecycle.py +++ b/implementations/python/tests/test_run_306_participant_decision_lifecycle.py @@ -3,9 +3,9 @@ from __future__ import annotations import pytest -from aces_contracts.contracts import ParticipantBehaviorHistoryEventModel, schema_bundle -from aces_contracts.runtime_state import RuntimeSnapshot -from aces_processor.models import ( +from raes_contracts.contracts import ParticipantBehaviorHistoryEventModel, schema_bundle +from raes_contracts.runtime_state import RuntimeSnapshot +from raes_processor.models import ( ParticipantAdmissionDisposition, ParticipantBehaviorHistoryEvent, ParticipantLifecycleOperationState, @@ -13,7 +13,7 @@ ParticipantPhaseRealization, ParticipantRuntimeLifecyclePhase, ) -from aces_runtime.participant_result_contracts import participant_runtime_state_contract_diagnostics +from raes_runtime.participant_result_contracts import participant_runtime_state_contract_diagnostics from jsonschema import Draft202012Validator from pydantic import ValidationError diff --git a/implementations/python/tests/test_run_307_shared_operational_state.py b/implementations/python/tests/test_run_307_shared_operational_state.py index a13b7e2b4..b8fefcf63 100644 --- a/implementations/python/tests/test_run_307_shared_operational_state.py +++ b/implementations/python/tests/test_run_307_shared_operational_state.py @@ -6,22 +6,22 @@ from pathlib import Path import pytest -from aces_conformance.conformance import _semantic_diagnostics -from aces_contracts.contracts import ParticipantSharedStateRecordModel, schema_bundle -from aces_contracts.participant_shared_state import ( +from raes_conformance.conformance import _semantic_diagnostics +from raes_contracts.contracts import ParticipantSharedStateRecordModel, schema_bundle +from raes_contracts.participant_shared_state import ( iter_participant_shared_state_history_transition_violations, iter_participant_shared_state_snapshot_violations, ) -from aces_contracts.runtime_state import ApplyResult, RuntimeSnapshot -from aces_runtime.backend_calls import _call_backend_apply +from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot +from raes_runtime.backend_calls import _call_backend_apply from jsonschema import Draft202012Validator from pydantic import ValidationError from starlette.testclient import TestClient -from aces.backends.stubs import create_stub_target -from aces.core.runtime.control_plane import RuntimeControlPlane -from aces.core.runtime.control_plane_api import create_control_plane_app -from aces.core.runtime.control_plane_security import ( +from raes_backend_stubs.stubs import create_stub_target +from raes_runtime.control_plane import RuntimeControlPlane +from raes_runtime.control_plane_api import create_control_plane_app +from raes_runtime.control_plane_security import ( ControlPlaneIdentity, ControlPlaneRole, ControlPlaneSecurityConfig, diff --git a/implementations/python/tests/test_run_308_concurrent_participant_execution.py b/implementations/python/tests/test_run_308_concurrent_participant_execution.py index beddc98b7..62759c935 100644 --- a/implementations/python/tests/test_run_308_concurrent_participant_execution.py +++ b/implementations/python/tests/test_run_308_concurrent_participant_execution.py @@ -6,19 +6,19 @@ from pathlib import Path import pytest -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( ParticipantJointActionRecordModel, ParticipantTimeManagementContextModel, RuntimeSnapshotEnvelopeModel, schema_bundle, ) -from aces_contracts.participant_concurrency import ( +from raes_contracts.participant_concurrency import ( iter_participant_concurrency_snapshot_violations, iter_participant_concurrency_transition_violations, ) -from aces_contracts.runtime_state import ApplyResult, RuntimeSnapshot -from aces_runtime.backend_calls import _call_backend_apply -from aces_runtime.participant_result_contracts import participant_runtime_state_contract_diagnostics +from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot +from raes_runtime.backend_calls import _call_backend_apply +from raes_runtime.participant_result_contracts import participant_runtime_state_contract_diagnostics from jsonschema import Draft202012Validator from pydantic import ValidationError diff --git a/implementations/python/tests/test_run_311_participant_episode_lifecycle.py b/implementations/python/tests/test_run_311_participant_episode_lifecycle.py index 2f9ac7b4e..b0c40920f 100644 --- a/implementations/python/tests/test_run_311_participant_episode_lifecycle.py +++ b/implementations/python/tests/test_run_311_participant_episode_lifecycle.py @@ -25,10 +25,10 @@ from pathlib import Path import pytest -from aces_contracts.contracts import schema_bundle -from aces_runtime.result_contracts import participant_episode_contract_diagnostics +from raes_contracts.contracts import schema_bundle +from raes_runtime.result_contracts import participant_episode_contract_diagnostics -from aces.core.runtime.models import ( +from raes_processor.models import ( ParticipantEpisodeControlAction, ParticipantEpisodeExecutionState, ParticipantEpisodeHistoryEvent, @@ -1292,7 +1292,7 @@ def test_runtime_snapshot_semantic_diagnostics_accept_valid_populated_payload(se ``_live_target_cases``. """ - from aces_conformance.conformance import _semantic_diagnostics + from raes_conformance.conformance import _semantic_diagnostics snapshot_payload = { "schema_version": "runtime-snapshot/v1", @@ -1350,7 +1350,7 @@ def test_runtime_snapshot_semantic_diagnostics_accept_valid_populated_payload(se def test_published_state_schema_matches_bundle_for_run_311(self): """Schema parity — the on-disk control-plane schemas for the participant episode envelope and the history event stream must equal the live - schema bundle. If a developer edits ``aces_contracts/contracts.py`` + schema bundle. If a developer edits ``raes_contracts/contracts.py`` without re-running ``tools/generate_contract_schemas.py``, this test gives a clear local failure mode. """ diff --git a/implementations/python/tests/test_runtime_conformance.py b/implementations/python/tests/test_runtime_conformance.py index 93d0f715d..adee708e4 100644 --- a/implementations/python/tests/test_runtime_conformance.py +++ b/implementations/python/tests/test_runtime_conformance.py @@ -7,26 +7,26 @@ from pathlib import Path import pytest -from aces_backend_protocols.capabilities import ( +from raes_backend_protocols.capabilities import ( BackendCapabilitySet, BackendManifest, ProvisionerCapabilities, ) -from aces_conformance.conformance import _semantic_diagnostics -from aces_contracts.apparatus import ConceptBinding, RealizationSupportDeclaration -from aces_contracts.planning import ChangeAction, RuntimeDomain -from aces_contracts.runtime_state import ApplyResult, RuntimeSnapshot, SnapshotEntry -from aces_contracts.vocabulary import RealizationSupportMode - -from aces.backends.stubs import create_stub_components, create_stub_manifest, create_stub_target -from aces.core.runtime.conformance import ( +from raes_conformance.conformance import _semantic_diagnostics +from raes_contracts.apparatus import ConceptBinding, RealizationSupportDeclaration +from raes_contracts.planning import ChangeAction, RuntimeDomain +from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot, SnapshotEntry +from raes_contracts.vocabulary import RealizationSupportMode + +from raes_backend_stubs.stubs import create_stub_components, create_stub_manifest, create_stub_target +from raes_conformance.conformance import ( BackendCapabilityProfile, profile_for_manifest, required_contracts, run_fixture_suite, run_target_conformance, ) -from aces.core.runtime.registry import RuntimeTarget +from raes_runtime.registry import RuntimeTarget API_406_CARRIER_CONTRACTS = { "participant-lifecycle-event-v1", @@ -143,7 +143,7 @@ def test_profile_falls_back_to_orchestration_evaluation_without_participant_runt ``ORCHESTRATION_EVALUATION`` so existing two-tier backends remain compatible. """ - from aces_backend_stubs.stubs import create_stub_manifest + from raes_backend_stubs.stubs import create_stub_manifest manifest = create_stub_manifest(with_participant_runtime=False) assert profile_for_manifest(manifest) == BackendCapabilityProfile.ORCHESTRATION_EVALUATION @@ -154,13 +154,13 @@ def test_live_probe_catches_participant_runtime_that_does_not_populate_snapshot( surface but never publishes state/history through the snapshot must fail conformance, not silently certify clean. """ - from aces_backend_stubs.stubs import ( + from raes_backend_stubs.stubs import ( StubEvaluator, StubOrchestrator, StubProvisioner, create_stub_manifest, ) - from aces_processor.models import ApplyResult + from raes_processor.models import ApplyResult class _SilentParticipantRuntime: """Accepts every action without mutating the snapshot.""" @@ -909,7 +909,7 @@ def test_in_code_profile_requirements_table_is_removed(): be gone. This is a structural gate: if a future change re-introduces the in-code table, this test fails and the drift is caught before merge.""" - from aces_conformance import conformance as conformance_module + from raes_conformance import conformance as conformance_module assert not hasattr(conformance_module, "_PROFILE_REQUIREMENTS") diff --git a/implementations/python/tests/test_runtime_contract_boundaries.py b/implementations/python/tests/test_runtime_contract_boundaries.py index c2d1b8441..75b4b2041 100644 --- a/implementations/python/tests/test_runtime_contract_boundaries.py +++ b/implementations/python/tests/test_runtime_contract_boundaries.py @@ -2,12 +2,12 @@ from __future__ import annotations -from aces_contracts.diagnostics import Diagnostic -from aces_contracts.evaluation import EvaluationResultContract -from aces_contracts.participant_episode import ParticipantEpisodeInitializeRequest -from aces_contracts.runtime_state import ApplyResult, RuntimeSnapshot -from aces_contracts.workflow import WorkflowResultContract -from aces_processor import models +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.evaluation import EvaluationResultContract +from raes_contracts.participant_episode import ParticipantEpisodeInitializeRequest +from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot +from raes_contracts.workflow import WorkflowResultContract +from raes_processor import models def test_processor_models_reexports_shared_runtime_contracts() -> None: diff --git a/implementations/python/tests/test_runtime_contracts.py b/implementations/python/tests/test_runtime_contracts.py index bb6233e2c..86926715b 100644 --- a/implementations/python/tests/test_runtime_contracts.py +++ b/implementations/python/tests/test_runtime_contracts.py @@ -7,8 +7,8 @@ from pathlib import Path import pytest -from aces_conformance.conformance import observability_evidence_conformance_diagnostics -from aces_contracts.contracts import ( +from raes_conformance.conformance import observability_evidence_conformance_diagnostics +from raes_contracts.contracts import ( AcesSemanticInvariantEntryModel, AcesSemanticInvariantProfileReferenceModel, BackendManifestV2Model, @@ -31,8 +31,8 @@ validate_experiment_run_archival_datetimes, validate_experiment_study_against_tasks_and_runs, ) -from aces_contracts.contracts import bundle as contract_bundle -from aces_contracts.manifest_authority import ( +from raes_contracts.contracts import bundle as contract_bundle +from raes_contracts.manifest_authority import ( BACKEND_SUPPORTED_CONTRACT_IDS, PARTICIPANT_IMPLEMENTATION_SUPPORTED_CONTRACT_IDS, PROCESSOR_SUPPORTED_CONTRACT_IDS, @@ -41,8 +41,6 @@ from jsonschema import Draft202012Validator from pydantic import ValidationError -from aces.core.runtime import contracts as compat_runtime_contracts - EXPERIMENT_CORE_FIXTURE_MODELS = { "experiment-apparatus-context-v1": ExperimentApparatusContextModel, "experiment-authoring-input-v1": ExperimentSpecModel, @@ -124,14 +122,6 @@ def test_schema_bundle_caches_generation_but_returns_isolated_copies(mocker): contract_bundle._schema_bundle_template.cache_clear() -def test_compat_contract_imports_reexport_neutral_contracts(): - assert compat_runtime_contracts.ProcessorManifestV2Model is ProcessorManifestV2Model - assert compat_runtime_contracts.BackendManifestV2Model is BackendManifestV2Model - assert compat_runtime_contracts.ParticipantImplementationManifestModel is ParticipantImplementationManifestModel - assert compat_runtime_contracts.ParticipantImplementationProvenanceModel is ParticipantImplementationProvenanceModel - assert compat_runtime_contracts.schema_bundle() == schema_bundle() - - def test_closed_world_contract_models_for_runtime_envelopes(): generated = schema_bundle() @@ -340,7 +330,7 @@ def test_experiment_core_schemas_publish_closed_world_contracts(): assert "ended-at-not-before-started-at" in _invariant_ids(run_schema) assert "result-evidence-ref-resolves" in _invariant_ids(run_schema) task_run_invariant = _invariant_by_id(run_schema, "task-run-protocol-binding-valid") - assert task_run_invariant["validator"] == "aces_contracts.contracts.validate_experiment_run_against_task" + assert task_run_invariant["validator"] == "raes_contracts.contracts.validate_experiment_run_against_task" assert task_run_invariant["inputs"] == [ {"contract_id": "experiment-task-v1", "instance_path": "#"}, {"contract_id": "experiment-run-v1", "instance_path": "#"}, @@ -594,7 +584,7 @@ def test_aces_semantic_invariant_annotations_have_published_shape(): validate_aces_semantic_invariant_annotations("experiment-run-v1", corrupted_schema) unresolved_validator_schema = deepcopy(run_schema) - unresolved_validator_schema["x-aces-invariants"][0]["validator"] = "aces_contracts.contracts.DoesNotExist" + unresolved_validator_schema["x-aces-invariants"][0]["validator"] = "raes_contracts.contracts.DoesNotExist" with pytest.raises(ValueError, match="does not resolve"): validate_aces_semantic_invariant_annotations("experiment-run-v1", unresolved_validator_schema) diff --git a/implementations/python/tests/test_runtime_control_plane.py b/implementations/python/tests/test_runtime_control_plane.py index cde2fed8f..a6625e8b2 100644 --- a/implementations/python/tests/test_runtime_control_plane.py +++ b/implementations/python/tests/test_runtime_control_plane.py @@ -7,9 +7,9 @@ from typing import Any import pytest -from aces_backend_protocols.capabilities import BackendManifest -from aces_backend_stubs.stubs import create_stub_components, create_stub_manifest -from aces_contracts.contracts import ( +from raes_backend_protocols.capabilities import BackendManifest +from raes_backend_stubs.stubs import create_stub_components, create_stub_manifest +from raes_contracts.contracts import ( ParticipantActionResultModel, ParticipantContextViewModel, ParticipantHistoryViewModel, @@ -17,28 +17,28 @@ ParticipantImplementationSelectionModel, ParticipantStatusViewModel, ) -from aces_contracts.participant_binding import ParticipantActionAdmissionRequest -from aces_contracts.planning import ChangeAction, ProvisioningPlan, ProvisionOp -from aces_contracts.runtime_state import RuntimeSnapshot, SnapshotEntry -from aces_processor.models import ( +from raes_contracts.participant_binding import ParticipantActionAdmissionRequest +from raes_contracts.planning import ChangeAction, ProvisioningPlan, ProvisionOp +from raes_contracts.runtime_state import RuntimeSnapshot, SnapshotEntry +from raes_processor.models import ( iter_participant_behavior_history_violations, iter_participant_episode_snapshot_violations, ) -from aces.backends.stubs import create_stub_target -from aces.core.runtime.compiler import compile_runtime_model -from aces.core.runtime.control_plane import RuntimeControlPlane -from aces.core.runtime.control_plane_store import ControlPlaneOperationRecord -from aces.core.runtime.models import ( +from raes_backend_stubs.stubs import create_stub_target +from raes_processor.compiler import compile_runtime_model +from raes_runtime.control_plane import RuntimeControlPlane +from raes_runtime.control_plane_store import ControlPlaneOperationRecord +from raes_processor.models import ( OperationReceipt, OperationState, OperationStatus, ParticipantEpisodeTerminalReason, RuntimeDomain, ) -from aces.core.runtime.planner import plan -from aces.core.runtime.registry import RuntimeTarget -from aces.core.sdl import parse_sdl +from raes_processor.planner import plan +from raes_runtime.registry import RuntimeTarget +from raes import parse_sdl def _scenario(yaml_str: str): diff --git a/implementations/python/tests/test_runtime_control_plane_api.py b/implementations/python/tests/test_runtime_control_plane_api.py index 7747f19c7..0db1d7011 100644 --- a/implementations/python/tests/test_runtime_control_plane_api.py +++ b/implementations/python/tests/test_runtime_control_plane_api.py @@ -5,14 +5,14 @@ import textwrap from pathlib import Path -import aces_runtime.control_plane_store as control_plane_store_module +import raes_runtime.control_plane_store as control_plane_store_module import pytest -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( ParticipantContextViewModel, ParticipantHistoryViewModel, ParticipantStatusViewModel, ) -from aces_contracts.runtime_state import ( +from raes_contracts.runtime_state import ( ExplicitnessClass, ExplicitnessProvenance, RealizationProvenanceEntry, @@ -20,19 +20,19 @@ ) from starlette.testclient import TestClient -from aces.backends.stubs import create_stub_target -from aces.core.runtime.compiler import compile_runtime_model -from aces.core.runtime.control_plane import RuntimeControlPlane -from aces.core.runtime.control_plane_api import create_control_plane_app -from aces.core.runtime.control_plane_security import ( +from raes_backend_stubs.stubs import create_stub_target +from raes_processor.compiler import compile_runtime_model +from raes_runtime.control_plane import RuntimeControlPlane +from raes_runtime.control_plane_api import create_control_plane_app +from raes_runtime.control_plane_security import ( ControlPlaneIdentity, ControlPlaneRole, ControlPlaneSecurityConfig, ) -from aces.core.runtime.control_plane_store import ControlPlaneOperationRecord, LocalControlPlaneStore -from aces.core.runtime.models import OperationReceipt, OperationState, OperationStatus, RuntimeDomain -from aces.core.runtime.planner import plan -from aces.core.sdl import parse_sdl +from raes_runtime.control_plane_store import ControlPlaneOperationRecord, LocalControlPlaneStore +from raes_processor.models import OperationReceipt, OperationState, OperationStatus, RuntimeDomain +from raes_processor.planner import plan +from raes import parse_sdl def _scenario(yaml_str: str): diff --git a/implementations/python/tests/test_runtime_datastore.py b/implementations/python/tests/test_runtime_datastore.py index dde4a3300..de82a2616 100644 --- a/implementations/python/tests/test_runtime_datastore.py +++ b/implementations/python/tests/test_runtime_datastore.py @@ -41,7 +41,7 @@ RuntimeDatastoreTransportSecurityMode, ) -from aces.core.sdl.scenario import Scenario +from raes.scenario import Scenario _PUBLISHED_SDL_SCHEMA_NAMES = ( "instantiated-scenario-snapshot-v1", @@ -145,7 +145,7 @@ def _search_index_service(**overrides) -> dict: }, "mapping_ref": "wazuh-alerts-mapping", "template_digest": "sha256:wazuh-template", - "evidence_refs": ["docs/aces/inventory/wazuh.indexer/evidence/wazuh-indexer-templates.json.gz"], + "evidence_refs": ["docs/raes/inventory/wazuh.indexer/evidence/wazuh-indexer-templates.json.gz"], } ], "aliases": ["wazuh-alerts"], @@ -161,7 +161,7 @@ def _search_index_service(**overrides) -> dict: "dynamic_template_count": 5, "date_detection": True, "schema_digest": "sha256:wazuh-alerts-mapping", - "evidence_refs": ["docs/aces/inventory/wazuh.indexer/evidence/wazuh-indexer-family-mappings.json.gz"], + "evidence_refs": ["docs/raes/inventory/wazuh.indexer/evidence/wazuh-indexer-family-mappings.json.gz"], } ], "lifecycle_policies": ["wazuh-ism"], @@ -281,7 +281,7 @@ def test_search_index_service_typed_children() -> None: assert svc.mappings[0].date_detection is True assert svc.mappings[0].schema_digest == "sha256:wazuh-alerts-mapping" assert svc.mappings[0].evidence_refs == [ - "docs/aces/inventory/wazuh.indexer/evidence/wazuh-indexer-family-mappings.json.gz" + "docs/raes/inventory/wazuh.indexer/evidence/wazuh-indexer-family-mappings.json.gz" ] assert isinstance(svc.templates[0], RuntimeDatastoreTemplate) assert svc.templates[0].index_patterns == ["wazuh-alerts-4.x-*", "wazuh-archives-4.x-*"] @@ -293,7 +293,7 @@ def test_search_index_service_typed_children() -> None: assert svc.templates[0].mapping_ref == "wazuh-alerts-mapping" assert svc.templates[0].template_digest == "sha256:wazuh-template" assert svc.templates[0].evidence_refs == [ - "docs/aces/inventory/wazuh.indexer/evidence/wazuh-indexer-templates.json.gz" + "docs/raes/inventory/wazuh.indexer/evidence/wazuh-indexer-templates.json.gz" ] assert isinstance(svc.transport_security, RuntimeDatastoreTransportSecurity) assert svc.transport_security.mode is RuntimeDatastoreTransportSecurityMode.MUTUAL_TLS diff --git a/implementations/python/tests/test_runtime_fact_bindings.py b/implementations/python/tests/test_runtime_fact_bindings.py index e8ff03f3e..e1b25524e 100644 --- a/implementations/python/tests/test_runtime_fact_bindings.py +++ b/implementations/python/tests/test_runtime_fact_bindings.py @@ -6,9 +6,9 @@ from pathlib import Path import pytest -from aces_conformance.conformance import validate_contract_payload -from aces_contracts.contracts import schema_bundle -from aces_contracts.contracts.runtime_facts import ( +from raes_conformance.conformance import validate_contract_payload +from raes_contracts.contracts import schema_bundle +from raes_contracts.contracts.runtime_facts import ( RuntimeFactAbsenceDisposition, RuntimeFactAudience, RuntimeFactBindingDisposition, @@ -25,7 +25,7 @@ RuntimeFactVersionModel, RuntimeFactVisibilityModel, ) -from aces_runtime.runtime_fact_bindings import ( +from raes_runtime.runtime_fact_bindings import ( RuntimeFactActionDisposition, RuntimeFactBindingAdmission, RuntimeFactBindingPlane, diff --git a/implementations/python/tests/test_runtime_forwarding_agent.py b/implementations/python/tests/test_runtime_forwarding_agent.py index 2b27e46f4..691da3b88 100644 --- a/implementations/python/tests/test_runtime_forwarding_agent.py +++ b/implementations/python/tests/test_runtime_forwarding_agent.py @@ -32,9 +32,9 @@ ) from raes.runtime_security_monitoring import RuntimeSecurityMonitoringListenerRole -from aces.core.sdl._errors import SDLValidationError -from aces.core.sdl.scenario import Scenario -from aces.core.sdl.validator import SemanticValidator +from raes._errors import SDLValidationError +from raes.scenario import Scenario +from raes.validator import SemanticValidator # --------------------------------------------------------------------------- # # Fixtures # diff --git a/implementations/python/tests/test_runtime_mail_service.py b/implementations/python/tests/test_runtime_mail_service.py index 443b17a72..25219b4a3 100644 --- a/implementations/python/tests/test_runtime_mail_service.py +++ b/implementations/python/tests/test_runtime_mail_service.py @@ -6,9 +6,9 @@ from pydantic import ValidationError from raes._module_symbols import symbol_index -from aces.core.sdl import parse_sdl -from aces.core.sdl._errors import SDLValidationError -from aces.core.sdl.nodes import ( +from raes import parse_sdl +from raes._errors import SDLValidationError +from raes.nodes import ( Node, RuntimeConfiguration, RuntimeMailAuthMechanism, @@ -22,9 +22,9 @@ RuntimeMailSettingProvenance, RuntimeMailTlsMode, ) -from aces.core.sdl.relationships import Relationship, RelationshipMailAccess -from aces.core.sdl.scenario import ModuleDescriptor, Scenario -from aces.core.sdl.validator import SemanticValidator +from raes.relationships import Relationship, RelationshipMailAccess +from raes.scenario import ModuleDescriptor, Scenario +from raes.validator import SemanticValidator def _validate(scenario: Scenario) -> list[str]: diff --git a/implementations/python/tests/test_runtime_manager.py b/implementations/python/tests/test_runtime_manager.py index 9b25e5372..b1bfb5579 100644 --- a/implementations/python/tests/test_runtime_manager.py +++ b/implementations/python/tests/test_runtime_manager.py @@ -8,10 +8,10 @@ import pytest -from aces.backends.stubs import create_stub_manifest, create_stub_target -from aces.core.runtime.compiler import compile_runtime_model -from aces.core.runtime.manager import RuntimeManager -from aces.core.runtime.models import ( +from raes_backend_stubs.stubs import create_stub_manifest, create_stub_target +from raes_processor.compiler import compile_runtime_model +from raes_runtime.manager import RuntimeManager +from raes_processor.models import ( EVALUATION_STATE_SCHEMA_VERSION, ApplyResult, ChangeAction, @@ -19,9 +19,9 @@ RuntimeSnapshot, SnapshotEntry, ) -from aces.core.runtime.planner import plan -from aces.core.runtime.registry import RuntimeTarget -from aces.core.sdl import parse_sdl +from raes_processor.planner import plan +from raes_runtime.registry import RuntimeTarget +from raes import parse_sdl def _scenario(yaml_str: str): diff --git a/implementations/python/tests/test_runtime_models.py b/implementations/python/tests/test_runtime_models.py index a4bb83c52..443be0c9d 100644 --- a/implementations/python/tests/test_runtime_models.py +++ b/implementations/python/tests/test_runtime_models.py @@ -7,12 +7,12 @@ import pytest -from aces.core.runtime.capabilities import ( +from raes_backend_protocols.capabilities import ( WorkflowFeature, WorkflowStatePredicateFeature, ) -from aces.core.runtime.compiler import compile_runtime_model -from aces.core.sdl import SDLInstantiationError, parse_sdl, parse_sdl_file +from raes_processor.compiler import compile_runtime_model +from raes import SDLInstantiationError, parse_sdl, parse_sdl_file def _scenario(yaml_str: str): diff --git a/implementations/python/tests/test_runtime_network_detection.py b/implementations/python/tests/test_runtime_network_detection.py index b9d6d44e9..16ca671f0 100644 --- a/implementations/python/tests/test_runtime_network_detection.py +++ b/implementations/python/tests/test_runtime_network_detection.py @@ -6,9 +6,9 @@ from pydantic import ValidationError from raes._module_symbols import symbol_index -from aces.core.sdl import parse_sdl -from aces.core.sdl._errors import SDLValidationError -from aces.core.sdl.nodes import ( +from raes import parse_sdl +from raes._errors import SDLValidationError +from raes.nodes import ( Node, RuntimeConfiguration, RuntimeNetworkDetectionAppProtocol, @@ -20,8 +20,8 @@ RuntimeNetworkDetectionRuleFormat, RuntimeNetworkDetectionRuleSourceKind, ) -from aces.core.sdl.scenario import ModuleDescriptor, Scenario -from aces.core.sdl.validator import SemanticValidator +from raes.scenario import ModuleDescriptor, Scenario +from raes.validator import SemanticValidator def _validate(scenario: Scenario) -> list[str]: diff --git a/implementations/python/tests/test_runtime_network_sensor.py b/implementations/python/tests/test_runtime_network_sensor.py index 4ce34e317..50524439d 100644 --- a/implementations/python/tests/test_runtime_network_sensor.py +++ b/implementations/python/tests/test_runtime_network_sensor.py @@ -6,9 +6,9 @@ from pydantic import ValidationError from raes._module_symbols import symbol_index -from aces.core.sdl import parse_sdl -from aces.core.sdl._errors import SDLValidationError -from aces.core.sdl.nodes import ( +from raes import parse_sdl +from raes._errors import SDLValidationError +from raes.nodes import ( Node, RuntimeConfiguration, RuntimeNetworkSensor, @@ -17,8 +17,8 @@ RuntimeNetworkSensorKind, RuntimeNetworkSensorMonitoringPosture, ) -from aces.core.sdl.scenario import ModuleDescriptor, Scenario -from aces.core.sdl.validator import SemanticValidator +from raes.scenario import ModuleDescriptor, Scenario +from raes.validator import SemanticValidator def _validate(scenario: Scenario) -> list[str]: diff --git a/implementations/python/tests/test_runtime_orchestration.py b/implementations/python/tests/test_runtime_orchestration.py index cc16845d8..bae17b15d 100644 --- a/implementations/python/tests/test_runtime_orchestration.py +++ b/implementations/python/tests/test_runtime_orchestration.py @@ -14,9 +14,9 @@ RuntimeOrchestrationSpawnTemplate, ) -from aces.core.sdl._errors import SDLValidationError -from aces.core.sdl.scenario import Scenario -from aces.core.sdl.validator import SemanticValidator +from raes._errors import SDLValidationError +from raes.scenario import Scenario +from raes.validator import SemanticValidator # --------------------------------------------------------------------------- # # Fixtures diff --git a/implementations/python/tests/test_runtime_planner.py b/implementations/python/tests/test_runtime_planner.py index 8da2dba57..d2918d20a 100644 --- a/implementations/python/tests/test_runtime_planner.py +++ b/implementations/python/tests/test_runtime_planner.py @@ -5,12 +5,12 @@ import textwrap import pytest -from aces_contracts.apparatus import ConceptBinding, RealizationSupportDeclaration -from aces_contracts.vocabulary import RealizationSupportMode +from raes_contracts.apparatus import ConceptBinding, RealizationSupportDeclaration +from raes_contracts.vocabulary import RealizationSupportMode from paths import EXAMPLES_DIR -from aces.backends.stubs import create_stub_manifest -from aces.core.runtime.capabilities import ( +from raes_backend_stubs.stubs import create_stub_manifest +from raes_backend_protocols.capabilities import ( BackendManifest, EvaluatorCapabilities, OrchestratorCapabilities, @@ -18,10 +18,10 @@ WorkflowFeature, WorkflowStatePredicateFeature, ) -from aces.core.runtime.compiler import compile_runtime_model -from aces.core.runtime.models import RuntimeDomain, RuntimeSnapshot, SnapshotEntry -from aces.core.runtime.planner import plan -from aces.core.sdl import SDLInstantiationError, parse_sdl +from raes_processor.compiler import compile_runtime_model +from raes_processor.models import RuntimeDomain, RuntimeSnapshot, SnapshotEntry +from raes_processor.planner import plan +from raes import SDLInstantiationError, parse_sdl def _scenario(yaml_str: str): @@ -1317,7 +1317,7 @@ def test_imported_module_allowed_values_enforce_against_backend(self, tmp_path): # end-to-end via parse_sdl_file. from pathlib import Path - from aces.core.sdl import parse_sdl_file + from raes import parse_sdl_file imported = tmp_path / "shared.yaml" imported.write_text( diff --git a/implementations/python/tests/test_runtime_proposition_truth.py b/implementations/python/tests/test_runtime_proposition_truth.py index c25e3ff3d..eb539bf38 100644 --- a/implementations/python/tests/test_runtime_proposition_truth.py +++ b/implementations/python/tests/test_runtime_proposition_truth.py @@ -4,9 +4,9 @@ from copy import deepcopy -from aces_contracts.planning import RuntimeDomain -from aces_contracts.runtime_state import RuntimeSnapshot, SnapshotEntry -from aces_runtime.proposition_truth_contracts import proposition_truth_contract_diagnostics +from raes_contracts.planning import RuntimeDomain +from raes_contracts.runtime_state import RuntimeSnapshot, SnapshotEntry +from raes_runtime.proposition_truth_contracts import proposition_truth_contract_diagnostics from test_truth_result_contracts import _observed_result diff --git a/implementations/python/tests/test_runtime_registry.py b/implementations/python/tests/test_runtime_registry.py index 4e7fa0742..f1d46a2d2 100644 --- a/implementations/python/tests/test_runtime_registry.py +++ b/implementations/python/tests/test_runtime_registry.py @@ -1,12 +1,12 @@ """Runtime registry tests.""" import pytest -from aces_contracts.apparatus import ConceptBinding, RealizationSupportDeclaration -from aces_contracts.vocabulary import RealizationSupportMode +from raes_contracts.apparatus import ConceptBinding, RealizationSupportDeclaration +from raes_contracts.vocabulary import RealizationSupportMode -from aces.backends.stubs import create_stub_components, create_stub_manifest -from aces.core.runtime.capabilities import BackendManifest, ProvisionerCapabilities -from aces.core.runtime.registry import ( +from raes_backend_stubs.stubs import create_stub_components, create_stub_manifest +from raes_backend_protocols.capabilities import BackendManifest, ProvisionerCapabilities +from raes_runtime.registry import ( BackendRegistry, RuntimeTarget, RuntimeTargetComponents, diff --git a/implementations/python/tests/test_runtime_security_monitoring.py b/implementations/python/tests/test_runtime_security_monitoring.py index 2c5734c0a..15f5105b2 100644 --- a/implementations/python/tests/test_runtime_security_monitoring.py +++ b/implementations/python/tests/test_runtime_security_monitoring.py @@ -6,9 +6,9 @@ from pydantic import ValidationError from raes._module_symbols import symbol_index -from aces.core.sdl import parse_sdl -from aces.core.sdl._errors import SDLValidationError -from aces.core.sdl.nodes import ( +from raes import parse_sdl +from raes._errors import SDLValidationError +from raes.nodes import ( Node, RuntimeConfiguration, RuntimeSecurityMonitoringAgentStatus, @@ -25,8 +25,8 @@ RuntimeSecurityMonitoringManager, RuntimeSecurityMonitoringSetting, ) -from aces.core.sdl.scenario import ModuleDescriptor, Scenario -from aces.core.sdl.validator import SemanticValidator +from raes.scenario import ModuleDescriptor, Scenario +from raes.validator import SemanticValidator def _validate(scenario: Scenario) -> list[str]: diff --git a/implementations/python/tests/test_runtime_service_listeners.py b/implementations/python/tests/test_runtime_service_listeners.py index 81075b14f..6eb9d0a9a 100644 --- a/implementations/python/tests/test_runtime_service_listeners.py +++ b/implementations/python/tests/test_runtime_service_listeners.py @@ -6,9 +6,9 @@ from pydantic import ValidationError from raes._module_symbols import symbol_index -from aces.core.sdl import parse_sdl -from aces.core.sdl._errors import SDLValidationError -from aces.core.sdl.nodes import ( +from raes import parse_sdl +from raes._errors import SDLValidationError +from raes.nodes import ( Node, RuntimeConfiguration, RuntimeListenerAddressFamily, @@ -17,8 +17,8 @@ RuntimeListenerScope, RuntimeServiceListener, ) -from aces.core.sdl.scenario import ModuleDescriptor, Scenario -from aces.core.sdl.validator import SemanticValidator +from raes.scenario import ModuleDescriptor, Scenario +from raes.validator import SemanticValidator def _validate(scenario: Scenario) -> list[str]: diff --git a/implementations/python/tests/test_runtime_ssh_server.py b/implementations/python/tests/test_runtime_ssh_server.py index c85a482cf..937e5aacf 100644 --- a/implementations/python/tests/test_runtime_ssh_server.py +++ b/implementations/python/tests/test_runtime_ssh_server.py @@ -27,11 +27,11 @@ SshMatchRule, ) -import aces.core.sdl.nodes as compat_nodes -from aces.core.sdl import parse_sdl_file -from aces.core.sdl._errors import SDLValidationError -from aces.core.sdl.scenario import ModuleDescriptor, Scenario -from aces.core.sdl.validator import SemanticValidator +import raes.nodes as compat_nodes +from raes import parse_sdl_file +from raes._errors import SDLValidationError +from raes.scenario import ModuleDescriptor, Scenario +from raes.validator import SemanticValidator def _validate(scenario: Scenario) -> list[str]: diff --git a/implementations/python/tests/test_satisfiability_cli.py b/implementations/python/tests/test_satisfiability_cli.py index 09f7d28db..3d5d35d3d 100644 --- a/implementations/python/tests/test_satisfiability_cli.py +++ b/implementations/python/tests/test_satisfiability_cli.py @@ -8,8 +8,8 @@ from pathlib import Path import pytest -from aces_cli.main import app -from aces_contracts.satisfiability import ScenarioSatisfiabilityEvidenceModel +from raes_cli.main import app +from raes_contracts.satisfiability import ScenarioSatisfiabilityEvidenceModel from typer.testing import CliRunner diff --git a/implementations/python/tests/test_sce_004_goal_oriented_steps.py b/implementations/python/tests/test_sce_004_goal_oriented_steps.py index aadc11c71..c9f63f051 100644 --- a/implementations/python/tests/test_sce_004_goal_oriented_steps.py +++ b/implementations/python/tests/test_sce_004_goal_oriented_steps.py @@ -5,16 +5,16 @@ import textwrap import pytest -from aces_backend_protocols.capabilities import WorkflowFeature -from aces_contracts.contracts import schema_bundle -from aces_contracts.contracts.execution_state import WorkflowStepAttemptProvenanceModel -from aces_contracts.workflow import ( +from raes_backend_protocols.capabilities import WorkflowFeature +from raes_contracts.contracts import schema_bundle +from raes_contracts.contracts.execution_state import WorkflowStepAttemptProvenanceModel +from raes_contracts.workflow import ( WorkflowStepAttemptProvenance, WorkflowStepExecutionState, WorkflowStepLifecycle, WorkflowStepOutcome, ) -from aces_processor.compiler import compile_runtime_model +from raes_processor.compiler import compile_runtime_model from pydantic import ValidationError from raes import SDLValidationError from raes.orchestration import WorkflowStep, WorkflowStepExecutionMode diff --git a/implementations/python/tests/test_sce_006_cleanup_contracts.py b/implementations/python/tests/test_sce_006_cleanup_contracts.py index e217fda21..8ca5884ef 100644 --- a/implementations/python/tests/test_sce_006_cleanup_contracts.py +++ b/implementations/python/tests/test_sce_006_cleanup_contracts.py @@ -7,15 +7,15 @@ from pathlib import Path import pytest -from aces_backend_protocols.capabilities import ( +from raes_backend_protocols.capabilities import ( BackendManifest, CleanupCapabilities, require_cleanup_plan_capability, ) -from aces_backend_protocols.manifest import backend_manifest_from_v2_model, backend_manifest_payload -from aces_backend_stubs.stubs import create_stub_manifest -from aces_contracts.contracts import BackendManifestV2Model, CleanupCapabilitiesModel, schema_bundle -from aces_contracts.contracts.trial_cleanup import ( +from raes_backend_protocols.manifest import backend_manifest_from_v2_model, backend_manifest_payload +from raes_backend_stubs.stubs import create_stub_manifest +from raes_contracts.contracts import BackendManifestV2Model, CleanupCapabilitiesModel, schema_bundle +from raes_contracts.contracts.trial_cleanup import ( CleanStateClaimModel, CleanStateRequirementModel, CleanupObligationModel, diff --git a/implementations/python/tests/test_scenario_satisfiability.py b/implementations/python/tests/test_scenario_satisfiability.py index 0bd6cca9b..a60e704eb 100644 --- a/implementations/python/tests/test_scenario_satisfiability.py +++ b/implementations/python/tests/test_scenario_satisfiability.py @@ -7,11 +7,11 @@ from pathlib import Path import pytest -from aces_contracts.satisfiability import ( +from raes_contracts.satisfiability import ( SatisfiabilityOutcome, ScenarioSatisfiabilityEvidenceModel, ) -from aces_processor.satisfiability import ( +from raes_processor.satisfiability import ( SatisfiabilityEvidenceError, analyze_scenario_file, replay_satisfiability_evidence, diff --git a/implementations/python/tests/test_scenarios.py b/implementations/python/tests/test_scenarios.py index 6337f7987..fcd7731a5 100644 --- a/implementations/python/tests/test_scenarios.py +++ b/implementations/python/tests/test_scenarios.py @@ -20,7 +20,7 @@ class TestLoadScenario: """Tests for loading SDL scenarios from YAML files.""" def test_load_valid_sdl(self, tmp_path): - from aces.core.scenarios import load_scenario + from raes.scenarios import load_scenario path = tmp_path / "scenario.yaml" path.write_text(VALID_SDL, encoding="utf-8") @@ -30,13 +30,13 @@ def test_load_valid_sdl(self, tmp_path): assert scenario.description == "Minimal SDL scenario" def test_load_nonexistent_file_raises(self, tmp_path): - from aces.core.scenarios import load_scenario + from raes.scenarios import load_scenario with pytest.raises(FileNotFoundError): load_scenario(tmp_path / "missing.yaml") def test_load_empty_file_raises_validation_error(self, tmp_path): - from aces.core.scenarios import ScenarioValidationError, load_scenario + from raes.scenarios import ScenarioValidationError, load_scenario path = tmp_path / "empty.yaml" path.write_text("", encoding="utf-8") @@ -45,7 +45,7 @@ def test_load_empty_file_raises_validation_error(self, tmp_path): load_scenario(path) def test_load_invalid_yaml_raises_validation_error(self, tmp_path): - from aces.core.scenarios import ScenarioValidationError, load_scenario + from raes.scenarios import ScenarioValidationError, load_scenario path = tmp_path / "broken.yaml" path.write_text("{{not: valid: yaml: [}", encoding="utf-8") @@ -54,7 +54,7 @@ def test_load_invalid_yaml_raises_validation_error(self, tmp_path): load_scenario(path) def test_load_legacy_yaml_is_rejected(self, tmp_path): - from aces.core.scenarios import ScenarioValidationError, load_scenario + from raes.scenarios import ScenarioValidationError, load_scenario path = tmp_path / "legacy.yaml" path.write_text( @@ -76,7 +76,7 @@ def test_load_legacy_yaml_is_rejected(self, tmp_path): load_scenario(path) def test_validation_error_includes_path(self, tmp_path): - from aces.core.scenarios import ScenarioValidationError, load_scenario + from raes.scenarios import ScenarioValidationError, load_scenario path = tmp_path / "empty.yaml" path.write_text("", encoding="utf-8") @@ -92,7 +92,7 @@ class TestFindScenarios: """Tests for SDL scenario discovery.""" def test_finds_yaml_files(self, tmp_path): - from aces.core.scenarios import find_scenarios + from raes.scenarios import find_scenarios (tmp_path / "a.yaml").write_text(VALID_SDL, encoding="utf-8") (tmp_path / "b.yaml").write_text(VALID_SDL, encoding="utf-8") @@ -101,7 +101,7 @@ def test_finds_yaml_files(self, tmp_path): assert [path.name for path in paths] == ["a.yaml", "b.yaml"] def test_ignores_non_yaml_files(self, tmp_path): - from aces.core.scenarios import find_scenarios + from raes.scenarios import find_scenarios (tmp_path / "a.yml").write_text(VALID_SDL, encoding="utf-8") (tmp_path / "notes.txt").write_text("hello", encoding="utf-8") @@ -109,7 +109,7 @@ def test_ignores_non_yaml_files(self, tmp_path): assert find_scenarios(tmp_path) == [] def test_returns_empty_for_missing_directory(self, tmp_path): - from aces.core.scenarios import find_scenarios + from raes.scenarios import find_scenarios assert find_scenarios(tmp_path / "missing") == [] @@ -122,7 +122,7 @@ def test_example_scenario_corpus_is_nonempty(): @pytest.mark.parametrize("path", EXAMPLE_SCENARIOS, ids=lambda path: path.name) def test_example_scenarios_load(path): """Every example SDL should load successfully from disk.""" - from aces.core.scenarios import load_scenario + from raes.scenarios import load_scenario scenario = load_scenario(path) @@ -133,7 +133,7 @@ def test_example_scenarios_load(path): @pytest.mark.parametrize("path", COMPLEX_EXAMPLES, ids=lambda path: path.name) def test_complex_examples_have_experiment_semantics(path): """Curated complex examples should exercise the full experiment surface.""" - from aces.core.scenarios import load_scenario + from raes.scenarios import load_scenario scenario = load_scenario(path) @@ -150,7 +150,7 @@ def test_complex_examples_have_experiment_semantics(path): def test_complex_examples_cover_new_sdl_surfaces(): """Complex examples should exercise workflows, enum vars, and direct refs.""" - from aces.core.scenarios import load_scenario + from raes.scenarios import load_scenario satcom = load_scenario(EXAMPLES_DIR / "satcom-release-poisoning.sdl.yaml") assert satcom.workflows @@ -183,7 +183,7 @@ def test_complex_examples_cover_new_sdl_surfaces(): def test_reference_scenario_compiles_participant_loop(): """Issue #598: the reference scenario proves the participant handoff surface.""" - from aces_processor.compiler import compile_runtime_model + from raes_processor.compiler import compile_runtime_model from raes.scenarios import load_scenario scenario = load_scenario(REFERENCE_SCENARIO) @@ -250,14 +250,14 @@ class TestScenarioExceptions: """Tests for shared scenario exception types.""" def test_scenario_not_found_error(self): - from aces.core.scenarios import ScenarioError, ScenarioNotFoundError + from raes.scenarios import ScenarioError, ScenarioNotFoundError error = ScenarioNotFoundError("example") assert error.identifier == "example" assert isinstance(error, ScenarioError) def test_scenario_validation_error_without_path(self): - from aces.core.scenarios import ScenarioError, ScenarioValidationError + from raes.scenarios import ScenarioError, ScenarioValidationError error = ScenarioValidationError("bad field") assert error.path is None diff --git a/implementations/python/tests/test_scientific_scenario_completeness.py b/implementations/python/tests/test_scientific_scenario_completeness.py index e2a0483e3..c6f75dc2a 100644 --- a/implementations/python/tests/test_scientific_scenario_completeness.py +++ b/implementations/python/tests/test_scientific_scenario_completeness.py @@ -14,12 +14,12 @@ if str(REPO_ROOT) not in sys.path: sys.path.insert(0, str(REPO_ROOT)) -from aces_conformance.conformance import ( # noqa: E402 +from raes_conformance.conformance import ( # noqa: E402 _fixture_case_diagnostics, validate_contract_payload, ) -from aces_contracts.contracts import schema_bundle # noqa: E402 -from aces_contracts.scientific_completeness import ( # noqa: E402 +from raes_contracts.contracts import schema_bundle # noqa: E402 +from raes_contracts.scientific_completeness import ( # noqa: E402 DeliveryStatus, ProfileDisposition, ScientificCompletenessAssessmentModel, diff --git a/implementations/python/tests/test_sdl_format_cli.py b/implementations/python/tests/test_sdl_format_cli.py index 016124df0..baafeeffa 100644 --- a/implementations/python/tests/test_sdl_format_cli.py +++ b/implementations/python/tests/test_sdl_format_cli.py @@ -2,7 +2,7 @@ from __future__ import annotations -from aces_cli.main import app +from raes_cli.main import app from raes import format_sdl_source from typer.testing import CliRunner diff --git a/implementations/python/tests/test_sdl_fuzz.py b/implementations/python/tests/test_sdl_fuzz.py index 0c4a3483d..9371eaaab 100644 --- a/implementations/python/tests/test_sdl_fuzz.py +++ b/implementations/python/tests/test_sdl_fuzz.py @@ -17,8 +17,8 @@ from hypothesis import HealthCheck, assume, given, settings from hypothesis import strategies as st -from aces.core.sdl import SDLParseError, SDLValidationError, parse_sdl -from aces.core.sdl.scenario import Scenario +from raes import SDLParseError, SDLValidationError, parse_sdl +from raes.scenario import Scenario # Mark entire module so it's excluded from default test runs. # Run with: pytest tests/test_sdl_fuzz.py -v diff --git a/implementations/python/tests/test_sdl_identifiers.py b/implementations/python/tests/test_sdl_identifiers.py index 5c11fd21c..8174ec9a4 100644 --- a/implementations/python/tests/test_sdl_identifiers.py +++ b/implementations/python/tests/test_sdl_identifiers.py @@ -6,21 +6,21 @@ import jsonschema import pytest -from aces_backend_protocols.naming import provider_resource_name -from aces_contracts.addressing import ( +from raes_backend_protocols.naming import provider_resource_name +from raes_contracts.addressing import ( COMPILED_ADDRESS_JSON_SCHEMA, COMPILED_ADDRESS_MAX_LENGTH, render_compiled_address, require_compiled_address, ) -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( EvaluationPlanModel, OrchestrationPlanModel, ProvisioningPlanModel, RuntimeSnapshotEnvelopeModel, schema_bundle, ) -from aces_contracts.planning import ( +from raes_contracts.planning import ( ChangeAction, OrchestrationPlan, PlannedResource, @@ -28,9 +28,9 @@ ProvisionOp, RuntimeDomain, ) -from aces_contracts.runtime_state import ApplyResult, OperationStatus, RuntimeSnapshot, SnapshotEntry -from aces_processor.compiler import compile_runtime_model -from aces_processor.models import NetworkRuntime, NodeRuntime, RuntimeModel +from raes_contracts.runtime_state import ApplyResult, OperationStatus, RuntimeSnapshot, SnapshotEntry +from raes_processor.compiler import compile_runtime_model +from raes_processor.models import NetworkRuntime, NodeRuntime, RuntimeModel from hypothesis import given from hypothesis import strategies as st from pydantic import ValidationError diff --git a/implementations/python/tests/test_sdl_lineage.py b/implementations/python/tests/test_sdl_lineage.py index c6774d91e..e5bb69033 100644 --- a/implementations/python/tests/test_sdl_lineage.py +++ b/implementations/python/tests/test_sdl_lineage.py @@ -15,7 +15,7 @@ sys.path.insert(0, str(REPO_ROOT)) import tools.check_sdl_lineage as lineage_checker # noqa: E402 -from aces_contracts.provenance import SDLLineageLedgerModel # noqa: E402 +from raes_contracts.provenance import SDLLineageLedgerModel # noqa: E402 from tools.check_sdl_lineage import ( # noqa: E402 _canonical_subjects, _validate_authorities, diff --git a/implementations/python/tests/test_sdl_models.py b/implementations/python/tests/test_sdl_models.py index 7cb7f1e8d..a3450a035 100644 --- a/implementations/python/tests/test_sdl_models.py +++ b/implementations/python/tests/test_sdl_models.py @@ -5,12 +5,12 @@ from jsonschema import ValidationError as JsonSchemaValidationError from pydantic import ValidationError -from aces.core.sdl._source import Source -from aces.core.sdl.conditions import Condition -from aces.core.sdl.entities import Entity, ExerciseRole, flatten_entities -from aces.core.sdl.features import Feature, FeatureType -from aces.core.sdl.infrastructure import ACLAction, ACLRule, InfraNode, SimpleProperties -from aces.core.sdl.nodes import ( +from raes._source import Source +from raes.conditions import Condition +from raes.entities import Entity, ExerciseRole, flatten_entities +from raes.features import Feature, FeatureType +from raes.infrastructure import ACLAction, ACLRule, InfraNode, SimpleProperties +from raes.nodes import ( ContainerImageBuildProvenance, DatabaseAuthMethod, DatabaseEngine, @@ -108,8 +108,8 @@ RuntimeSudoRule, parse_ram, ) -from aces.core.sdl.objectives import Objective, ObjectiveSuccess, ObjectiveWindow -from aces.core.sdl.orchestration import ( +from raes.objectives import Objective, ObjectiveSuccess, ObjectiveWindow +from raes.orchestration import ( Inject, Script, Story, @@ -120,7 +120,7 @@ WorkflowStepType, parse_duration, ) -from aces.core.sdl.vulnerabilities import Vulnerability +from raes.vulnerabilities import Vulnerability # --------------------------------------------------------------------------- # Source @@ -2337,9 +2337,9 @@ def test_valid_entity_objective(self): # Extension models (G1-G9, G12-G13) # --------------------------------------------------------------------------- -from aces.core.sdl.accounts import Account, PasswordStrength -from aces.core.sdl.content import Content, ContentItem, ContentType -from aces.core.sdl.nodes import AssetValue, AssetValueLevel, OSFamily, ServicePort +from raes.accounts import Account, PasswordStrength +from raes.content import Content, ContentItem, ContentType +from raes.nodes import AssetValue, AssetValueLevel, OSFamily, ServicePort class TestContent: @@ -2558,7 +2558,7 @@ def test_rejects_unmodeled_role_as_reachability_policy(self): class TestConditionExtensions: def test_timeout_and_retries(self): - from aces.core.sdl.conditions import Condition + from raes.conditions import Condition c = Condition(command="/check", interval=15, timeout=5, retries=3, start_period=10) assert c.timeout == 5 @@ -2568,13 +2568,13 @@ def test_timeout_and_retries(self): class TestSimplePropertiesInternal: def test_internal_flag(self): - from aces.core.sdl.infrastructure import SimpleProperties + from raes.infrastructure import SimpleProperties p = SimpleProperties(cidr="10.0.0.0/24", gateway="10.0.0.1", internal=True) assert p.internal is True def test_default_not_internal(self): - from aces.core.sdl.infrastructure import SimpleProperties + from raes.infrastructure import SimpleProperties p = SimpleProperties(cidr="10.0.0.0/24", gateway="10.0.0.1") assert p.internal is False @@ -2778,9 +2778,9 @@ def test_predicate_empty_rejected(self): # Relationships, Agents, Variables (G10, G11, Identity) # --------------------------------------------------------------------------- -from aces.core.sdl.agents import Agent, InitialKnowledge -from aces.core.sdl.relationships import Relationship, RelationshipType -from aces.core.sdl.variables import Variable, VariableType +from raes.agents import Agent, InitialKnowledge +from raes.relationships import Relationship, RelationshipType +from raes.variables import Variable, VariableType class TestRelationship: @@ -3851,7 +3851,7 @@ def test_duplicate_table_id_across_schemas_is_rejected(self): ) def test_relationship_database_access_auth_method_normalized(self): - from aces.core.sdl.relationships import Relationship, RelationshipDatabaseAccess + from raes.relationships import Relationship, RelationshipDatabaseAccess access = RelationshipDatabaseAccess(role_ref="app-role", auth_method="SCRAM-SHA-256") assert access.auth_method == DatabaseAuthMethod.SCRAM_SHA_256 diff --git a/implementations/python/tests/test_sdl_module_registry.py b/implementations/python/tests/test_sdl_module_registry.py index 0bcb36450..3159098a7 100644 --- a/implementations/python/tests/test_sdl_module_registry.py +++ b/implementations/python/tests/test_sdl_module_registry.py @@ -20,15 +20,15 @@ from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey from typer.testing import CliRunner -from aces.cli.main import app -from aces.core.runtime.compiler import compile_runtime_model -from aces.core.sdl._errors import SDLParseError, SDLValidationError -from aces.core.sdl.module_registry import ( +from raes_cli.main import app +from raes_processor.compiler import compile_runtime_model +from raes._errors import SDLParseError, SDLValidationError +from raes.module_registry import ( LOCKFILE_NAME, load_lockfile, publish_module_to_oci_layout, ) -from aces.core.sdl.parser import parse_sdl_file +from raes.parser import parse_sdl_file def _write(path: Path, content: str) -> Path: @@ -827,7 +827,7 @@ def test_database_and_application_refs_survive_module_namespacing(): """ from raes._module_symbols import symbol_index - from aces.core.sdl.scenario import ModuleDescriptor, Scenario + from raes.scenario import ModuleDescriptor, Scenario scenario = Scenario( name="db-module", diff --git a/implementations/python/tests/test_sdl_parser.py b/implementations/python/tests/test_sdl_parser.py index 8421a2fde..4a1c6ab7b 100644 --- a/implementations/python/tests/test_sdl_parser.py +++ b/implementations/python/tests/test_sdl_parser.py @@ -5,10 +5,10 @@ import pytest from raes import SDLMigrationPolicy -from aces.core.sdl import instantiate_scenario -from aces.core.sdl._errors import SDLParseError, SDLValidationError -from aces.core.sdl.nodes import NodeType -from aces.core.sdl.parser import parse_sdl, parse_sdl_file +from raes import instantiate_scenario +from raes._errors import SDLParseError, SDLValidationError +from raes.nodes import NodeType +from raes.parser import parse_sdl, parse_sdl_file class TestKeyNormalization: @@ -1596,7 +1596,7 @@ def scenarios_dir(self): @pytest.mark.xfail(reason="Legacy ACES scenario format not supported after SDL cleanup") def test_all_scenarios_parse(self, scenarios_dir): - from aces.core.sdl.parser import parse_sdl_file + from raes.parser import parse_sdl_file for path in sorted(scenarios_dir.glob("*.yaml")): scenario = parse_sdl_file(path) @@ -1784,7 +1784,7 @@ def test_ssh_server_chroot_directory_variable_substitutes_on_instantiation(self) assert server.chroot_directory == "/var/empty" def test_ssh_server_variable_ref_server_id_rejected_on_instantiation(self): - from aces.core.sdl._errors import SDLInstantiationError + from raes._errors import SDLInstantiationError sdl = """ name: techvault-ssh-bad-id diff --git a/implementations/python/tests/test_sdl_phase_contracts.py b/implementations/python/tests/test_sdl_phase_contracts.py index 827d47517..73bbfcf4d 100644 --- a/implementations/python/tests/test_sdl_phase_contracts.py +++ b/implementations/python/tests/test_sdl_phase_contracts.py @@ -7,8 +7,8 @@ import pytest import raes -from aces_contracts.contracts import schema_bundle -from aces_processor.compiler import compile_runtime_model +from raes_contracts.contracts import schema_bundle +from raes_processor.compiler import compile_runtime_model from jsonschema import Draft202012Validator from pydantic import ValidationError from raes import SDLInstantiationError, SDLValidationError diff --git a/implementations/python/tests/test_sdl_realworld.py b/implementations/python/tests/test_sdl_realworld.py index 0ebe050b8..deaff9956 100644 --- a/implementations/python/tests/test_sdl_realworld.py +++ b/implementations/python/tests/test_sdl_realworld.py @@ -10,7 +10,7 @@ import pytest -from aces.core.sdl import SDLParseError, SDLValidationError, parse_sdl +from raes import SDLParseError, SDLValidationError, parse_sdl def _parse(yaml_str: str, label: str): diff --git a/implementations/python/tests/test_sdl_stress.py b/implementations/python/tests/test_sdl_stress.py index 9f7e60a22..65c4459d2 100644 --- a/implementations/python/tests/test_sdl_stress.py +++ b/implementations/python/tests/test_sdl_stress.py @@ -9,7 +9,7 @@ import pytest -from aces.core.sdl import SDLParseError, SDLValidationError, parse_sdl +from raes import SDLParseError, SDLValidationError, parse_sdl def _parse(yaml_str: str, label: str): diff --git a/implementations/python/tests/test_sdl_validator.py b/implementations/python/tests/test_sdl_validator.py index 56a89a583..2f5887cbb 100644 --- a/implementations/python/tests/test_sdl_validator.py +++ b/implementations/python/tests/test_sdl_validator.py @@ -3,9 +3,9 @@ import pytest from pydantic import ValidationError -from aces.core.sdl._errors import SDLValidationError -from aces.core.sdl.scenario import Scenario -from aces.core.sdl.validator import SemanticValidator +from raes._errors import SDLValidationError +from raes.scenario import Scenario +from raes.validator import SemanticValidator def _validate(scenario: Scenario) -> list[str]: @@ -583,7 +583,7 @@ def test_acl_both_endpoints_reported_when_both_bogus(self): class TestFeatureListShorthand: def test_features_as_list_with_empty_role(self): """Nodes with features as list (no role) should validate.""" - from aces.core.sdl import parse_sdl + from raes import parse_sdl s = parse_sdl(""" name: shorthand-test diff --git a/implementations/python/tests/test_sdl_variation_points.py b/implementations/python/tests/test_sdl_variation_points.py index 85cbff173..4c9762912 100644 --- a/implementations/python/tests/test_sdl_variation_points.py +++ b/implementations/python/tests/test_sdl_variation_points.py @@ -7,9 +7,9 @@ from pathlib import Path import pytest -from aces_contracts.bounded_domains import EnumDomain -from aces_contracts.contracts import schema_bundle -from aces_contracts.realization_envelope import EnumDomain as EnvelopeEnumDomain +from raes_contracts.bounded_domains import EnumDomain +from raes_contracts.contracts import schema_bundle +from raes_contracts.realization_envelope import EnumDomain as EnvelopeEnumDomain from jsonschema import Draft202012Validator from pydantic import ValidationError from raes import SDLInstantiationError, SDLParseError, SDLValidationError diff --git a/implementations/python/tests/test_sem_208_participant_behavior.py b/implementations/python/tests/test_sem_208_participant_behavior.py index 5e68f0429..957bd0725 100644 --- a/implementations/python/tests/test_sem_208_participant_behavior.py +++ b/implementations/python/tests/test_sem_208_participant_behavior.py @@ -5,9 +5,9 @@ import textwrap import pytest -from aces_contracts.contracts import schema_bundle -from aces_processor.compiler import compile_runtime_model -from aces_processor.models import ( +from raes_contracts.contracts import schema_bundle +from raes_processor.compiler import compile_runtime_model +from raes_processor.models import ( ParticipantBehaviorHistoryEvent, ParticipantBehaviorHistoryEventType, ParticipantHistoryAddressScope, diff --git a/implementations/python/tests/test_sem_211_participant_action_semantics.py b/implementations/python/tests/test_sem_211_participant_action_semantics.py index 9d53c265d..29f4bfe54 100644 --- a/implementations/python/tests/test_sem_211_participant_action_semantics.py +++ b/implementations/python/tests/test_sem_211_participant_action_semantics.py @@ -5,8 +5,8 @@ import textwrap import pytest -from aces_processor.compiler import compile_runtime_model -from aces_processor.models import ( +from raes_processor.compiler import compile_runtime_model +from raes_processor.models import ( Diagnostic, ParticipantActionEffectResult, ParticipantActionPreconditionResult, @@ -21,7 +21,7 @@ iter_participant_behavior_history_violations, map_backend_diagnostic_to_participant_failure, ) -from aces_runtime.control_plane_store import LocalControlPlaneStore +from raes_runtime.control_plane_store import LocalControlPlaneStore from raes._errors import SDLParseError from raes.parser import parse_sdl from raes.participant_behavior import ( diff --git a/implementations/python/tests/test_sem_212_participant_attribution_semantics.py b/implementations/python/tests/test_sem_212_participant_attribution_semantics.py index 8fe6a6fcd..cdcd6815d 100644 --- a/implementations/python/tests/test_sem_212_participant_attribution_semantics.py +++ b/implementations/python/tests/test_sem_212_participant_attribution_semantics.py @@ -3,8 +3,8 @@ from __future__ import annotations import pytest -from aces_contracts.contracts import ParticipantBehaviorHistoryEventModel -from aces_processor.models import ( +from raes_contracts.contracts import ParticipantBehaviorHistoryEventModel +from raes_processor.models import ( ParticipantActionEffectResult, ParticipantActionPreconditionResult, ParticipantActionPreconditionStatus, diff --git a/implementations/python/tests/test_sem_213_temporal_participant_semantics.py b/implementations/python/tests/test_sem_213_temporal_participant_semantics.py index 5b7da7450..6e49cbd04 100644 --- a/implementations/python/tests/test_sem_213_temporal_participant_semantics.py +++ b/implementations/python/tests/test_sem_213_temporal_participant_semantics.py @@ -5,9 +5,9 @@ import textwrap import pytest -from aces_contracts.contracts import ParticipantBehaviorHistoryEventModel -from aces_processor.compiler import compile_runtime_model -from aces_processor.models import ( +from raes_contracts.contracts import ParticipantBehaviorHistoryEventModel +from raes_processor.compiler import compile_runtime_model +from raes_processor.models import ( ParticipantActionEffectResult, ParticipantActionPreconditionResult, ParticipantActionPreconditionStatus, diff --git a/implementations/python/tests/test_sem_215_participant_outcome_interpretation.py b/implementations/python/tests/test_sem_215_participant_outcome_interpretation.py index 9cb94b755..2c1a19f94 100644 --- a/implementations/python/tests/test_sem_215_participant_outcome_interpretation.py +++ b/implementations/python/tests/test_sem_215_participant_outcome_interpretation.py @@ -5,9 +5,9 @@ import textwrap import pytest -from aces_contracts.contracts import ParticipantBehaviorHistoryEventModel -from aces_processor.compiler import compile_runtime_model -from aces_processor.models import ( +from raes_contracts.contracts import ParticipantBehaviorHistoryEventModel +from raes_processor.compiler import compile_runtime_model +from raes_processor.models import ( ParticipantActionEffectResult, ParticipantActionPreconditionResult, ParticipantActionPreconditionStatus, diff --git a/implementations/python/tests/test_sem_216_boundary_semantics.py b/implementations/python/tests/test_sem_216_boundary_semantics.py index d462bdd50..d054abd91 100644 --- a/implementations/python/tests/test_sem_216_boundary_semantics.py +++ b/implementations/python/tests/test_sem_216_boundary_semantics.py @@ -19,7 +19,7 @@ from pathlib import Path import pytest -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( ExperimentEvidenceRecordModel, ParticipantContextViewModel, schema_bundle, diff --git a/implementations/python/tests/test_sem_217_knowledge_bindings.py b/implementations/python/tests/test_sem_217_knowledge_bindings.py index f1ff31252..533dd75a5 100644 --- a/implementations/python/tests/test_sem_217_knowledge_bindings.py +++ b/implementations/python/tests/test_sem_217_knowledge_bindings.py @@ -6,12 +6,12 @@ from pathlib import Path import pytest -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( ConceptFamilyCatalogModel, SemanticProfileModel, UcoAlignmentCatalogModel, ) -from aces_contracts.semantic_binding_effects import ( +from raes_contracts.semantic_binding_effects import ( ExternalKnowledgeBindingEffect, semantic_profile_required_binding_effects, uco_alignment_binding_effects, diff --git a/implementations/python/tests/test_sem_218_realization.py b/implementations/python/tests/test_sem_218_realization.py index f7e1f1e3f..7c241318b 100644 --- a/implementations/python/tests/test_sem_218_realization.py +++ b/implementations/python/tests/test_sem_218_realization.py @@ -13,15 +13,15 @@ import textwrap -from aces_contracts.apparatus import ConceptBinding, RealizationSupportDeclaration -from aces_contracts.vocabulary import RealizationSupportMode +from raes_contracts.apparatus import ConceptBinding, RealizationSupportDeclaration +from raes_contracts.vocabulary import RealizationSupportMode from raes.explicitness import ExplicitnessClass, ExplicitnessProvenance -from aces.backends.stubs import create_stub_manifest -from aces.core.runtime.capabilities import BackendManifest, ProvisionerCapabilities -from aces.core.runtime.compiler import compile_runtime_model -from aces.core.runtime.planner import plan -from aces.core.sdl import instantiate_scenario, parse_sdl +from raes_backend_stubs.stubs import create_stub_manifest +from raes_backend_protocols.capabilities import BackendManifest, ProvisionerCapabilities +from raes_processor.compiler import compile_runtime_model +from raes_processor.planner import plan +from raes import instantiate_scenario, parse_sdl _EXACT_SCENARIO = """ name: sem-218-exact-realization diff --git a/implementations/python/tests/test_sem_218_realization_designation.py b/implementations/python/tests/test_sem_218_realization_designation.py index b2e672845..9880c3879 100644 --- a/implementations/python/tests/test_sem_218_realization_designation.py +++ b/implementations/python/tests/test_sem_218_realization_designation.py @@ -9,17 +9,17 @@ import jsonschema import pytest -from aces_backend_libvirt.manifest import create_libvirt_manifest -from aces_backend_protocols.capabilities import BackendManifest, ProvisionerCapabilities -from aces_contracts.apparatus import ConceptBinding, RealizationSupportDeclaration -from aces_contracts.planning import ChangeAction, ProvisioningPlan, ProvisionOp, RuntimeDomain -from aces_contracts.realization_envelope import BackendRealizationEnvelopeModel, realization_envelope_digest -from aces_contracts.runtime_state import RuntimeSnapshot, RuntimeSnapshotEnvelope, SnapshotEntry -from aces_contracts.vocabulary import Closure, RealizationSupportMode -from aces_processor.compiler import compile_runtime_model -from aces_processor.planner import plan -from aces_processor.semantics.realization import realization_disclosure -from aces_runtime.control_plane_api_models import _snapshot_model +from raes_backend_libvirt.manifest import create_libvirt_manifest +from raes_backend_protocols.capabilities import BackendManifest, ProvisionerCapabilities +from raes_contracts.apparatus import ConceptBinding, RealizationSupportDeclaration +from raes_contracts.planning import ChangeAction, ProvisioningPlan, ProvisionOp, RuntimeDomain +from raes_contracts.realization_envelope import BackendRealizationEnvelopeModel, realization_envelope_digest +from raes_contracts.runtime_state import RuntimeSnapshot, RuntimeSnapshotEnvelope, SnapshotEntry +from raes_contracts.vocabulary import Closure, RealizationSupportMode +from raes_processor.compiler import compile_runtime_model +from raes_processor.planner import plan +from raes_processor.semantics.realization import realization_disclosure +from raes_runtime.control_plane_api_models import _snapshot_model from pydantic import ValidationError from raes._errors import SDLParseError from raes.explicitness import ExplicitnessClass, ExplicitnessProvenance diff --git a/implementations/python/tests/test_sem_218_runtime_realization.py b/implementations/python/tests/test_sem_218_runtime_realization.py index 722b6132d..41b8bde74 100644 --- a/implementations/python/tests/test_sem_218_runtime_realization.py +++ b/implementations/python/tests/test_sem_218_runtime_realization.py @@ -21,19 +21,19 @@ import textwrap from dataclasses import replace -from aces_contracts.runtime_state import ( +from raes_contracts.runtime_state import ( ApplyResult, RealizationProvenanceEntry, RuntimeSnapshot, ) -from aces_contracts.versions import RUNTIME_SNAPSHOT_SCHEMA_VERSION +from raes_contracts.versions import RUNTIME_SNAPSHOT_SCHEMA_VERSION from raes.explicitness import ExplicitnessClass, ExplicitnessProvenance -from aces.backends.stubs import StubProvisioner, create_stub_target -from aces.core.runtime.control_plane_store import _snapshot_from_payload, _snapshot_payload -from aces.core.runtime.manager import RuntimeManager -from aces.core.runtime.registry import RuntimeTarget -from aces.core.sdl import parse_sdl +from raes_backend_stubs.stubs import StubProvisioner, create_stub_target +from raes_runtime.control_plane_store import _snapshot_from_payload, _snapshot_payload +from raes_runtime.manager import RuntimeManager +from raes_runtime.registry import RuntimeTarget +from raes import parse_sdl _EXACT_SCENARIO = """ name: sem-218-runtime-exact @@ -215,7 +215,7 @@ def test_realization_provenance_round_trips_through_control_plane_store(): def test_runtime_snapshot_envelope_schema_accepts_realization_provenance(): """The published runtime-snapshot envelope carries the provenance field.""" - from aces_contracts.contracts import RuntimeSnapshotEnvelopeModel + from raes_contracts.contracts import RuntimeSnapshotEnvelopeModel model = RuntimeSnapshotEnvelopeModel.model_validate( { diff --git a/implementations/python/tests/test_sem_220_participant_decision_surface.py b/implementations/python/tests/test_sem_220_participant_decision_surface.py index 757d1ba23..656250caa 100644 --- a/implementations/python/tests/test_sem_220_participant_decision_surface.py +++ b/implementations/python/tests/test_sem_220_participant_decision_surface.py @@ -8,7 +8,7 @@ from types import SimpleNamespace import pytest -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( ParticipantContextViewModel, ParticipantDecisionSurfaceModel, ParticipantDecisionSurfaceSelectionModel, @@ -17,12 +17,12 @@ schema_bundle, validate_participant_decision_surface_context, ) -from aces_contracts.participant_binding import ( +from raes_contracts.participant_binding import ( ParticipantActionAdmissionRequest, ParticipantDecisionSurfaceBindingResolvers, bind_participant_decision_surface_selection, ) -from aces_processor.models import ( +from raes_processor.models import ( ParticipantActionContractRuntime, ParticipantBehaviorHistoryEvent, ParticipantBehaviorHistoryEventType, @@ -39,7 +39,7 @@ RuntimeModel, project_participant_decision_surface, ) -from aces_runtime.participant_control import ParticipantControlMixin +from raes_runtime.participant_control import ParticipantControlMixin from jsonschema import Draft202012Validator from pydantic import ValidationError diff --git a/implementations/python/tests/test_sem_224_observability_plane_semantics.py b/implementations/python/tests/test_sem_224_observability_plane_semantics.py index f673b628b..32f0b4ee2 100644 --- a/implementations/python/tests/test_sem_224_observability_plane_semantics.py +++ b/implementations/python/tests/test_sem_224_observability_plane_semantics.py @@ -22,7 +22,7 @@ from pathlib import Path import pytest -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( ExperimentDerivedMeasureModel, ExperimentEvidenceRecordModel, schema_bundle, @@ -135,7 +135,7 @@ def test_backend_observability_is_not_a_participant_observation(): # SEM-216 B5 fixture: a backend observability stream presented as a portable # participant observation is rejected -- the scenario-native plane is not the # processor/backend operational plane. - from aces_contracts.contracts import ParticipantContextViewModel + from raes_contracts.contracts import ParticipantContextViewModel payload = _load(CONTEXT_VIEW_DIR / "invalid" / "sem216-backend-observability-as-observation.json") _assert_schema_and_model_reject("participant-context-view-v1", ParticipantContextViewModel, payload) diff --git a/implementations/python/tests/test_sem_225_augmentation_semantics.py b/implementations/python/tests/test_sem_225_augmentation_semantics.py index 708db30ca..effb5f5c8 100644 --- a/implementations/python/tests/test_sem_225_augmentation_semantics.py +++ b/implementations/python/tests/test_sem_225_augmentation_semantics.py @@ -7,7 +7,7 @@ from pathlib import Path import pytest -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( ExperimentAugmentationDisclosureModel, ExperimentRunModel, schema_bundle, diff --git a/implementations/python/tests/test_sem_226_participant_exposure.py b/implementations/python/tests/test_sem_226_participant_exposure.py index 48bc28b82..6cd450c09 100644 --- a/implementations/python/tests/test_sem_226_participant_exposure.py +++ b/implementations/python/tests/test_sem_226_participant_exposure.py @@ -5,8 +5,8 @@ from dataclasses import fields, replace import pytest -from aces_contracts.contracts import ParticipantDecisionSurfaceModel, ParticipantImplementationSelectionModel -from aces_processor.models import ( +from raes_contracts.contracts import ParticipantDecisionSurfaceModel, ParticipantImplementationSelectionModel +from raes_processor.models import ( ParticipantBehaviorHistoryEvent, ParticipantDecisionSurfaceActionAssessment, ParticipantDecisionSurfaceProjectionInput, diff --git a/implementations/python/tests/test_sem_227_shared_time_model.py b/implementations/python/tests/test_sem_227_shared_time_model.py index c93fcf318..4fc24eec3 100644 --- a/implementations/python/tests/test_sem_227_shared_time_model.py +++ b/implementations/python/tests/test_sem_227_shared_time_model.py @@ -7,8 +7,8 @@ from pathlib import Path import pytest -from aces_processor.compiler import compile_runtime_model -from aces_runtime.time_coordinator import ClockLifecycleState, TimeCoordinator +from raes_processor.compiler import compile_runtime_model +from raes_runtime.time_coordinator import ClockLifecycleState, TimeCoordinator from hypothesis import given from hypothesis import strategies as st from raes._errors import SDLParseError, SDLValidationError diff --git a/implementations/python/tests/test_sem_230_information_flow_control.py b/implementations/python/tests/test_sem_230_information_flow_control.py index 3fcc83382..96fa13f77 100644 --- a/implementations/python/tests/test_sem_230_information_flow_control.py +++ b/implementations/python/tests/test_sem_230_information_flow_control.py @@ -4,7 +4,7 @@ from copy import deepcopy -from aces_contracts.behavioral_relations import load_behavioral_relation_catalog +from raes_contracts.behavioral_relations import load_behavioral_relation_catalog from hypothesis import given, settings from hypothesis import strategies as st from sem230_information_flow_model import ( diff --git a/implementations/python/tests/test_semantic_coverage.py b/implementations/python/tests/test_semantic_coverage.py index 65c6aec41..7856efa25 100644 --- a/implementations/python/tests/test_semantic_coverage.py +++ b/implementations/python/tests/test_semantic_coverage.py @@ -391,22 +391,6 @@ def test_active_row_import_via_relative_submodule_reexport_passes(tmp_path: Path assert "coverage-test-integration" not in _rule_ids(evaluate_semantic_coverage(repo)) -def test_active_row_import_via_compat_wrapper_passes(tmp_path: Path) -> None: - repo = _seed_integration_repo( - tmp_path, - rows=_WIDGET_ROW, - files={ - _WIDGET_INIT: "", - _WIDGET_CORE: "VALUE = 1\n", - "implementations/python/src/aces/widget_compat.py": ( - 'from aces._compat import reexport as _reexport\n_reexport(globals(), "widget.core")\ndel _reexport\n' - ), - _WIDGET_TEST: ("from aces.widget_compat import VALUE\n\ndef test_widget():\n assert VALUE == 1\n"), - }, - ) - assert "coverage-test-integration" not in _rule_ids(evaluate_semantic_coverage(repo)) - - def test_stub_test_function_fails(tmp_path: Path) -> None: repo = _seed_integration_repo( tmp_path, diff --git a/implementations/python/tests/test_semantic_profiles.py b/implementations/python/tests/test_semantic_profiles.py index 552feb9b9..e0e7c4782 100644 --- a/implementations/python/tests/test_semantic_profiles.py +++ b/implementations/python/tests/test_semantic_profiles.py @@ -6,10 +6,10 @@ from pathlib import Path import pytest -from aces_backend_stubs.stubs import create_stub_manifest -from aces_contracts.contracts import SemanticProfileModel -from aces_contracts.semantic_profiles import load_semantic_profile, semantic_profile_path -from aces_processor.manifest import create_reference_processor_manifest +from raes_backend_stubs.stubs import create_stub_manifest +from raes_contracts.contracts import SemanticProfileModel +from raes_contracts.semantic_profiles import load_semantic_profile, semantic_profile_path +from raes_processor.manifest import create_reference_processor_manifest from pydantic import ValidationError REPO_ROOT = Path(__file__).resolve().parents[3] diff --git a/implementations/python/tests/test_semantics_assessment.py b/implementations/python/tests/test_semantics_assessment.py index 59cd92244..10743df79 100644 --- a/implementations/python/tests/test_semantics_assessment.py +++ b/implementations/python/tests/test_semantics_assessment.py @@ -4,7 +4,7 @@ (``metric -> evaluation -> TLO -> goal``) was removed from the language. Graded scoring, reward, and evaluation outputs live in the experiment/evaluator plane (ADR-055/064/069), not in authored SDL. What remains in -``aces.core.semantics.assessment`` is the resource-kind qualifier that objective +``raes.semantics.assessment`` is the resource-kind qualifier that objective success references carry: objective success composes backend-neutral assertions, so ``ASSERTION`` is the sole member. @@ -16,8 +16,8 @@ from enum import Enum -from aces.core.semantics import assessment as compat_assessment -from aces.core.semantics.assessment import AssessmentResourceKind +from raes.semantics import assessment as compat_assessment +from raes.semantics.assessment import AssessmentResourceKind class TestAssessmentResourceKind: diff --git a/implementations/python/tests/test_semantics_objectives.py b/implementations/python/tests/test_semantics_objectives.py index 2acabb801..5c615aed7 100644 --- a/implementations/python/tests/test_semantics_objectives.py +++ b/implementations/python/tests/test_semantics_objectives.py @@ -9,9 +9,9 @@ from hypothesis import given from hypothesis import strategies as st -from aces.core.sdl.parser import parse_sdl_file -from aces.core.semantics.assessment import AssessmentResourceKind -from aces.core.semantics.objective_semantics import ( +from raes.parser import parse_sdl_file +from raes.semantics.assessment import AssessmentResourceKind +from raes.semantics.objective_semantics import ( OBJECTIVE_ACTOR_DEPENDENCY_ROLES, OBJECTIVE_DEPENDENCY_DEPENDENCY_ROLES, OBJECTIVE_SUCCESS_DEPENDENCY_ROLES, @@ -23,7 +23,7 @@ analyze_objective_semantics, partition_objective_dependencies, ) -from aces.core.semantics.objectives import ( +from raes.semantics.objectives import ( ObjectiveDependencyRole, ObjectiveWindowReferenceKind, analyze_objective_window, diff --git a/implementations/python/tests/test_semantics_planner.py b/implementations/python/tests/test_semantics_planner.py index 67bb40496..127c9e825 100644 --- a/implementations/python/tests/test_semantics_planner.py +++ b/implementations/python/tests/test_semantics_planner.py @@ -7,7 +7,7 @@ from hypothesis import given from hypothesis import strategies as st -from aces.core.semantics.planner import ( +from raes_processor.semantics.planner import ( DependencyKind, dependency_edges, refresh_impacted_nodes, diff --git a/implementations/python/tests/test_stateful_realization_resources.py b/implementations/python/tests/test_stateful_realization_resources.py index 4080f489f..3cfdbda0d 100644 --- a/implementations/python/tests/test_stateful_realization_resources.py +++ b/implementations/python/tests/test_stateful_realization_resources.py @@ -6,13 +6,13 @@ from pathlib import Path import pytest -from aces_contracts.contracts import schema_bundle +from raes_contracts.contracts import schema_bundle from jsonschema import Draft202012Validator -from aces.backends.stubs import create_stub_manifest -from aces.core.runtime.compiler import compile_runtime_model -from aces.core.runtime.planner import plan -from aces.core.sdl import SDLParseError, SDLValidationError, parse_sdl, parse_sdl_file +from raes_backend_stubs.stubs import create_stub_manifest +from raes_processor.compiler import compile_runtime_model +from raes_processor.planner import plan +from raes import SDLParseError, SDLValidationError, parse_sdl, parse_sdl_file def _scenario(extra: str = ""): diff --git a/implementations/python/tests/test_truth_result_contracts.py b/implementations/python/tests/test_truth_result_contracts.py index 50852facc..c5c1d9eca 100644 --- a/implementations/python/tests/test_truth_result_contracts.py +++ b/implementations/python/tests/test_truth_result_contracts.py @@ -5,7 +5,7 @@ from copy import deepcopy import pytest -from aces_contracts.contracts import PropositionTruthResultModel, schema_bundle +from raes_contracts.contracts import PropositionTruthResultModel, schema_bundle from pydantic import ValidationError diff --git a/implementations/python/tests/test_uco_alignment.py b/implementations/python/tests/test_uco_alignment.py index bcaf331ef..475cabedc 100644 --- a/implementations/python/tests/test_uco_alignment.py +++ b/implementations/python/tests/test_uco_alignment.py @@ -13,12 +13,12 @@ from pathlib import Path import pytest -from aces_contracts.contracts import ConceptFamilyCatalogModel, UcoAlignmentCatalogModel -from aces_contracts.uco_alignment import ( +from raes_contracts.contracts import ConceptFamilyCatalogModel, UcoAlignmentCatalogModel +from raes_contracts.uco_alignment import ( load_uco_alignment_catalog, uco_alignment_catalog_path, ) -from aces_contracts.versions import UCO_ALIGNMENT_SCHEMA_VERSION +from raes_contracts.versions import UCO_ALIGNMENT_SCHEMA_VERSION from pydantic import ValidationError REPO_ROOT = Path(__file__).resolve().parents[3] diff --git a/implementations/python/tests/test_validation_disclosure.py b/implementations/python/tests/test_validation_disclosure.py index 4d40e64d0..1f9a02aba 100644 --- a/implementations/python/tests/test_validation_disclosure.py +++ b/implementations/python/tests/test_validation_disclosure.py @@ -8,14 +8,14 @@ from typing import Any import pytest -from aces_conformance.conformance import _fixture_case_diagnostics -from aces_contracts.contracts import ( +from raes_conformance.conformance import _fixture_case_diagnostics +from raes_contracts.contracts import ( ExperimentRunModel, ExperimentStudyModel, ExperimentTaskModel, schema_bundle, ) -from aces_contracts.contracts.validation_disclosure import ( +from raes_contracts.contracts.validation_disclosure import ( ValidationBasisDisclosureDocumentModel, ValidationBasisDisclosureModel, ValidationGateResultModel, diff --git a/implementations/python/tests/test_validation_profiles.py b/implementations/python/tests/test_validation_profiles.py index 60eb9ec26..2f776a673 100644 --- a/implementations/python/tests/test_validation_profiles.py +++ b/implementations/python/tests/test_validation_profiles.py @@ -7,9 +7,9 @@ from pathlib import Path import pytest -from aces_conformance.conformance import _fixture_case_diagnostics -from aces_contracts.contracts import schema_bundle -from aces_contracts.validation_profiles import ( +from raes_conformance.conformance import _fixture_case_diagnostics +from raes_contracts.contracts import schema_bundle +from raes_contracts.validation_profiles import ( ValidationProfileCatalogModel, load_validation_profile_catalog, select_validation_profile, diff --git a/implementations/python/tests/test_version_classification.py b/implementations/python/tests/test_version_classification.py index f02eb9022..7ef3462a8 100644 --- a/implementations/python/tests/test_version_classification.py +++ b/implementations/python/tests/test_version_classification.py @@ -18,6 +18,21 @@ NOT_INSTALLED_SENTINEL = "0.0.0+unknown" DISHONEST_LITERAL = "0.1.0" +RETIRED_IMPORT_NAMES = ( + "aces", + "aces_sdl", + "aces_backend_libvirt", + "aces_backend_protocols", + "aces_backend_stubs", + "aces_cli", + "aces_conformance", + "aces_contracts", + "aces_mcp", + "aces_operations", + "aces_processor", + "aces_reference_backend", + "aces_runtime", +) def test_raes_namespace_version_derives_from_distribution() -> None: @@ -26,22 +41,12 @@ def test_raes_namespace_version_derives_from_distribution() -> None: assert raes.__version__ == version("raes") -def test_legacy_aces_sdl_namespace_is_absent() -> None: - assert find_spec("aces_sdl") is None - - -def test_package_version_helper_uses_supplied_sentinel(monkeypatch) -> None: - import aces._compat as compat - - def _raise(_distribution: str) -> str: - raise PackageNotFoundError - - monkeypatch.setattr(compat, "version", _raise) - assert compat.package_version("raes", default=NOT_INSTALLED_SENTINEL) == NOT_INSTALLED_SENTINEL +def test_retired_aces_namespaces_are_absent() -> None: + assert all(find_spec(name) is None for name in RETIRED_IMPORT_NAMES) def test_cli_version_reports_installed_distribution() -> None: - from aces_cli.main import app + from raes_cli.main import app result = CliRunner().invoke(app, ["--version"]) @@ -50,7 +55,7 @@ def test_cli_version_reports_installed_distribution() -> None: def test_cli_help_uses_raes_project_identity() -> None: - from aces_cli.main import app + from raes_cli.main import app result = CliRunner().invoke(app, ["--help"]) @@ -62,7 +67,7 @@ def test_console_scripts_hard_cut_to_raes_names() -> None: scripts = { entry_point.name for entry_point in entry_points(group="console_scripts") - if entry_point.value in {"aces.cli.main:app", "aces_mcp.server:main"} + if entry_point.value in {"raes_cli.main:app", "raes_mcp.server:main"} } assert {"raes", "raes-mcp"} <= scripts @@ -71,7 +76,7 @@ def test_console_scripts_hard_cut_to_raes_names() -> None: def test_cli_version_fallback_is_honest_sentinel(monkeypatch) -> None: - import aces_cli.main as cli_main + import raes_cli.main as cli_main def _raise(_distribution: str) -> str: raise PackageNotFoundError @@ -85,13 +90,13 @@ def _raise(_distribution: str) -> str: def test_control_plane_api_version_derives_from_distribution() -> None: - from aces_runtime.control_plane_api import _control_plane_api_version + from raes_runtime.control_plane_api import _control_plane_api_version assert _control_plane_api_version() == version("raes") def test_control_plane_api_version_fallback_is_honest_sentinel(monkeypatch) -> None: - import aces_runtime.control_plane_api as control_plane_api + import raes_runtime.control_plane_api as control_plane_api def _raise(_distribution: str) -> str: raise PackageNotFoundError @@ -102,10 +107,10 @@ def _raise(_distribution: str) -> str: def test_control_plane_app_openapi_version_matches_distribution() -> None: - from aces_runtime.control_plane import RuntimeControlPlane - from aces_runtime.control_plane_api import create_control_plane_app + from raes_runtime.control_plane import RuntimeControlPlane + from raes_runtime.control_plane_api import create_control_plane_app - from aces.backends.stubs import create_stub_target + from raes_backend_stubs.stubs import create_stub_target app = create_control_plane_app(RuntimeControlPlane(create_stub_target())) diff --git a/noxfile.py b/noxfile.py index 907db3b63..9067587e6 100644 --- a/noxfile.py +++ b/noxfile.py @@ -45,9 +45,9 @@ ] CONTRACT_TRIGGER_PREFIXES = ( "contracts/", - "implementations/python/packages/aces_contracts/", - "implementations/python/packages/aces_backend_protocols/", - "implementations/python/packages/aces_processor/", + "implementations/python/packages/raes_contracts/", + "implementations/python/packages/raes_backend_protocols/", + "implementations/python/packages/raes_processor/", "tools/generate_contract_schemas.py", "tools/check_json_artifacts.py", ) diff --git a/sonar-project.properties b/sonar-project.properties index 03621488e..55c54ca26 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -29,7 +29,7 @@ sonar.exclusions=\ # The reference emulation backend's orchestrator/evaluator/participant-runtime # components intentionally reproduce the SAME portable runtime envelopes # (workflow/evaluation/participant result + history) as the non-normative -# in-memory stub in aces_backend_stubs. That structural parallel is by design: +# in-memory stub in raes_backend_stubs. That structural parallel is by design: # the reference backend is a standalone, independently-readable implementation # of the published backend contracts, and its parity with the stub is asserted # directly by tests (test_reference_backend_conformance.py). Coupling the @@ -38,9 +38,9 @@ sonar.exclusions=\ # The driver-backed provisioner (the part that makes this backend "real") is NOT # excluded and is held to the normal duplication bar. sonar.cpd.exclusions=\ - implementations/python/packages/aces_reference_backend/orchestrator.py,\ - implementations/python/packages/aces_reference_backend/evaluator.py,\ - implementations/python/packages/aces_reference_backend/participant_runtime.py + implementations/python/packages/raes_reference_backend/orchestrator.py,\ + implementations/python/packages/raes_reference_backend/evaluator.py,\ + implementations/python/packages/raes_reference_backend/participant_runtime.py # Python sonar.python.version=3.12 @@ -62,12 +62,12 @@ sonar.issue.ignore.multicriteria.e3.ruleKey=python:S1720 sonar.issue.ignore.multicriteria.e3.resourceKey=**/*.py sonar.issue.ignore.multicriteria.e4.ruleKey=python:S1128 -sonar.issue.ignore.multicriteria.e4.resourceKey=implementations/python/packages/aces_processor/models/__init__.py +sonar.issue.ignore.multicriteria.e4.resourceKey=implementations/python/packages/raes_processor/models/__init__.py # Generated libvirt boot artifacts must be readable by the QEMU process. # The appliance builder never writes secrets to those kernel/initramfs artifacts. sonar.issue.ignore.multicriteria.e5.ruleKey=python:S2612 -sonar.issue.ignore.multicriteria.e5.resourceKey=implementations/python/packages/aces_backend_libvirt/techvault_appliance.py +sonar.issue.ignore.multicriteria.e5.resourceKey=implementations/python/packages/raes_backend_libvirt/techvault_appliance.py # Coverage sonar.python.coverage.reportPaths=implementations/python/coverage.xml diff --git a/specs/agent-guidance/agent-guidance.yaml b/specs/agent-guidance/agent-guidance.yaml index 77b7be36d..afb202806 100644 --- a/specs/agent-guidance/agent-guidance.yaml +++ b/specs/agent-guidance/agent-guidance.yaml @@ -48,7 +48,7 @@ guidance: dry-run SDL scenarios. They do not execute participant cyber actions or start a live range. source_refs: - - implementations/python/packages/aces_mcp/tools/operations.py + - implementations/python/packages/raes_mcp/tools/operations.py - docs/explain/getting-started.md - docs/explain/sdl/language-service.md @@ -72,7 +72,7 @@ guidance: planning claims. It is not evidence that a live range ran or that a participant demonstrated skill. source_refs: - - implementations/python/packages/aces_mcp/tools/operations.py + - implementations/python/packages/raes_mcp/tools/operations.py - docs/decisions/adrs/adr-021-falsification-first-claim-evidence-gate.md - id: valid-sdl-not-scientific-completeness @@ -125,7 +125,7 @@ guidance: alone is not enough. source_refs: - docs/decisions/adrs/adr-021-falsification-first-claim-evidence-gate.md - - implementations/python/packages/aces_mcp/tools/operation_support.py + - implementations/python/packages/raes_mcp/tools/operation_support.py - id: requirement-traceability-aligned audience: [contributor] @@ -201,7 +201,7 @@ guidance: exploit, SSH, execute commands, reveal hidden state, or bypass backend controls. source_refs: - - implementations/python/packages/aces_mcp/tools/operations.py + - implementations/python/packages/raes_mcp/tools/operations.py - docs/explain/getting-started.md - id: do-not-carry-secrets @@ -223,5 +223,5 @@ guidance: presenting an SDL scenario as ready, portable, executed, or evidence backed. source_refs: - - implementations/python/packages/aces_mcp/tools/operations.py + - implementations/python/packages/raes_mcp/tools/operations.py - docs/explain/getting-started.md diff --git a/specs/authority/authority-boundary.yaml b/specs/authority/authority-boundary.yaml index 9b469c7f5..d87bb6ea4 100644 --- a/specs/authority/authority-boundary.yaml +++ b/specs/authority/authority-boundary.yaml @@ -113,7 +113,7 @@ legacy_top_level_dirs: # Schema authority direction (ADR-009 section 7): contracts/schemas/ owns the # hand-governed published schemas and is bound to the publication manifest. -# The aces_contracts owning package and the generator drivers under tools/ are +# The raes_contracts owning package and the generator drivers under tools/ are # the reference implementation; tools/check_generated_schemas.py only proves # that implementation generates an identical bundle (into a throwaway # directory) — it does not define authority and never overwrites the published diff --git a/specs/evolution/deprecation-records.yaml b/specs/evolution/deprecation-records.yaml index c178befc1..57d919e03 100644 --- a/specs/evolution/deprecation-records.yaml +++ b/specs/evolution/deprecation-records.yaml @@ -35,19 +35,17 @@ adr_refs: spec: specs/evolution/versioning-deprecation-and-migration.md records: - # The legacy `aces.*` re-export namespace. ADR-010 treats it as - # compatibility-only and one-directional; the spec (migration section) blesses - # it staying in the compatibility tree. It carried no complete lifecycle - # record until GOV-902. + # The legacy `aces.*` re-export namespace was removed by the RAES hard cut. - id: aces-compat-namespace surface_class: python-distribution identifier: "implementations/python/src/aces/ (the legacy `aces.*` re-export namespace)" - status: deprecated + status: removed first_notice: "ADR-010 (repository realignment order and compatibility policy)" - replacement: "the owning packages under implementations/python/packages/ (raes, aces_contracts, aces_cli, aces_runtime, and siblings)" - migration_reference: "docs/decisions/adrs/adr-010-repository-realignment-order-and-compatibility-policy.md; docs/explain/sdl/runtime-architecture.md" - notice_window: "Supported through the pre-1.0 package series; removal eligible no earlier than the first major (post-1.0) package release and only via a complete removal record." - verification_evidence: "tools/check_repo_policy.py enforces the compatibility-wrapper-only rule for aces.* modules and the one-way import ban (owning packages must not import aces.*), proving the layer remains a supported wrapper during the notice window." + replacement: "the owning packages under implementations/python/packages/ (raes, raes_contracts, raes_cli, raes_runtime, and siblings)" + migration_reference: "docs/migration/raes-rename.md" + notice_window: "Removed at the 1.0 hard cut; no compatibility window or alias is provided." + verification_evidence: "The wheel excludes implementations/python/src/aces, and repo policy rejects reintroduction of the retired namespace or imports." + removal_record: "RAES 1.0 removes the deprecated aces and aces_* Python import surfaces in favor of raes and raes_* owners." # The module-import `path:` field, superseded by `source:` in ADR-053. The # parser still accepts it as a backward-compatible alias, normalizing it to diff --git a/specs/evolution/versioning-deprecation-and-migration.md b/specs/evolution/versioning-deprecation-and-migration.md index 50978245e..eade4eef2 100644 --- a/specs/evolution/versioning-deprecation-and-migration.md +++ b/specs/evolution/versioning-deprecation-and-migration.md @@ -53,7 +53,7 @@ Each surface class owns its version meaning and compatibility rule. |---|---|---|---|---|---| | Python distribution | `implementations/python/pyproject.toml`, release-please config, Git tag, PyPI artifact | SemVer package version and matching `vX.Y.Z` tag | Consumer code imports installed package APIs for the documented release | Release PR, GitHub Release, generated `CHANGELOG.md` | Release notes and package/API docs | | Published JSON Schema | ADR-061, `contracts/schema-publication-manifest.json`, and `contracts/schema-publication/` | Contract id such as `backend-manifest-v2`; wire discriminator such as `backend-manifest/v2` | Schema lineage and stability-specific structural compatibility | Per-contract `stability` and `last_change` records; independent removal tombstones | Schema diff, fixtures, checker output, and contract docs | -| Closed contract DTO and wire envelope | `aces_contracts.versions`, contract models, manifest authority | Exact discriminator such as `workflow-step-state/v1` | Exact payload-shape selection by owning reader | Contract ADR/spec and release notes | Reader validation tests and conformance fixtures | +| Closed contract DTO and wire envelope | `raes_contracts.versions`, contract models, manifest authority | Exact discriminator such as `workflow-step-state/v1` | Exact payload-shape selection by owning reader | Contract ADR/spec and release notes | Reader validation tests and conformance fixtures | | Processor/backend support declaration | Manifest models and manifest authority allowlists | Exact governed contract ids, not version ranges | Declared support for named counterpart contract ids | Manifest contract lineage and conformance result | Manifest update, fixture, and conformance report | | Apparatus or implementation identity | Processor, backend, and participant manifests | Product/component identity version string | Operational interoperability declared by manifest capability blocks | Manifest release and conformance profile | Backend/processor/participant conformance evidence | | SDL scenario and module | SDL spec, module registry, lockfile, trust policy | Scenario/module version and import version constraint | Import constraint satisfaction plus registry, digest, signature, and semantic validation | SDL/module documentation and release notes | Migration note or deterministic source rewrite | @@ -163,10 +163,10 @@ ambiguous or lossy cases, and fail closed rather than drop unknown fields. Compatibility adapters stay at the owning boundary: -- legacy `aces.*` re-exports stay in the compatibility tree; +- retired `aces`, `aces_sdl`, and `aces_*` imports remain absent; - SDL normalization and module composition stay in `raes`; -- contract readers stay in `aces_contracts`; -- CLI presentation stays in `aces_cli`; and +- contract readers stay in `raes_contracts`; +- CLI presentation stays in `raes_cli`; and - backend/runtime layers do not reinterpret authored source to hide migration needs. diff --git a/specs/formal/assurance-fulfillment.yaml b/specs/formal/assurance-fulfillment.yaml index 97a8b8294..63683328e 100644 --- a/specs/formal/assurance-fulfillment.yaml +++ b/specs/formal/assurance-fulfillment.yaml @@ -101,7 +101,7 @@ entries: - kind: unit_tests path: implementations/python/tests/test_sem_227_shared_time_model.py - kind: typed_ir_or_contract_coverage - path: implementations/python/packages/aces_processor/models/time_model.py + path: implementations/python/packages/raes_processor/models/time_model.py - kind: property_based_or_differential_tests path: implementations/python/tests/test_sem_227_shared_time_model.py - kind: abstract_state_machine_model @@ -343,7 +343,7 @@ entries: - kind: unit_tests path: implementations/python/tests/test_runtime_conformance.py - kind: typed_ir_or_contract_coverage - path: implementations/python/packages/aces_processor/models/history_event.py + path: implementations/python/packages/raes_processor/models/history_event.py waived_artifacts: - kind: unit_tests date: 2026-06-23 @@ -464,7 +464,7 @@ entries: - kind: unit_tests path: implementations/python/tests/test_behavioral_relations.py - kind: typed_ir_or_contract_coverage - path: implementations/python/packages/aces_contracts/behavioral_relations.py + path: implementations/python/packages/raes_contracts/behavioral_relations.py - kind: property_based_or_differential_tests path: implementations/python/tests/test_behavioral_relations.py waived_artifacts: [] diff --git a/specs/formal/composition-readiness.md b/specs/formal/composition-readiness.md index fec845e98..1b52bef68 100644 --- a/specs/formal/composition-readiness.md +++ b/specs/formal/composition-readiness.md @@ -31,7 +31,7 @@ It does lock the semantic preconditions those features must respect. - objective/window references already carry a namespace-extensible path slot in `implementations/python/packages/raes/semantics/objectives.py` - planner identity handling is already defined in terms of canonical compiled - addresses in `implementations/python/packages/aces_processor/semantics/planner.py` + addresses in `implementations/python/packages/raes_processor/semantics/planner.py` - named regression tests pin the layout/namespace invariants: - assessment pipeline: `implementations/python/tests/test_semantics_assessment.py` (`test_composition_ready_invariant_layout_variation_preserves_normalized_references_and_aggregation`, diff --git a/specs/formal/experiment-core/README.md b/specs/formal/experiment-core/README.md index c35e3614c..4c81a903e 100644 --- a/specs/formal/experiment-core/README.md +++ b/specs/formal/experiment-core/README.md @@ -56,7 +56,7 @@ Rationale: and `docs/decisions/adrs/adr-074-experiment-authoring-input-contract-boundary.md`. - Machine-readable schemas: `contracts/schemas/experiment-core/`. -- Contract source: `implementations/python/packages/aces_contracts/contracts/`. +- Contract source: `implementations/python/packages/raes_contracts/contracts/`. - Schema generation: `tools/generate_contract_schemas.py`. - Fixture corpus: `contracts/fixtures/experiment-core/`. diff --git a/specs/formal/objectives/README.md b/specs/formal/objectives/README.md index b9b53527a..699623b36 100644 --- a/specs/formal/objectives/README.md +++ b/specs/formal/objectives/README.md @@ -46,11 +46,11 @@ target-resolution, success-interpretation, and dependency-ordering semantics (`_verify_objectives`) - compiled runtime objective resource, addresses, diagnostics, and ordering/refresh derivation: - - `implementations/python/packages/aces_processor/compiler/` - - `implementations/python/packages/aces_processor/models/` + - `implementations/python/packages/raes_processor/compiler/` + - `implementations/python/packages/raes_processor/models/` - planner ordering/refresh reconciliation: - - `implementations/python/packages/aces_processor/planner/` - - `implementations/python/packages/aces_processor/semantics/planner.py` + - `implementations/python/packages/raes_processor/planner/` + - `implementations/python/packages/raes_processor/semantics/planner.py` ## Tests diff --git a/specs/formal/objectives/declarative-objective-semantics.md b/specs/formal/objectives/declarative-objective-semantics.md index a08c7fd1d..9546e89e2 100644 --- a/specs/formal/objectives/declarative-objective-semantics.md +++ b/specs/formal/objectives/declarative-objective-semantics.md @@ -28,10 +28,10 @@ The implementation must build on these existing authorities: - objective-window analysis: `raes.semantics.objectives` - assertion resolution over declared backend-neutral propositions - runtime compilation: `compile_runtime_model()` and - `aces_processor.models.ObjectiveRuntime` -- dependency graph semantics: `aces_processor.semantics.planner` -- runtime diagnostics: `aces_processor.models.Diagnostic` -- contract/schema authority: `aces_contracts.contracts.ContractModel`, + `raes_processor.models.ObjectiveRuntime` +- dependency graph semantics: `raes_processor.semantics.planner` +- runtime diagnostics: `raes_processor.models.Diagnostic` +- contract/schema authority: `raes_contracts.contracts.ContractModel`, generated `contracts/schemas/`, and fixture validation - concept/profile authority: `contracts/concept-authority/`, `specs/concept-authority/`, controlled vocabularies, reference models, and @@ -82,7 +82,7 @@ Dependency ordering: - the relation is acyclic and fail-closed - compiled objective dependencies use canonical runtime addresses - planner ordering and refresh behavior reuse - `aces_processor.semantics.planner` + `raes_processor.semantics.planner` Dependency roles (which references propagate through the planner): @@ -177,12 +177,12 @@ Avoid: rendering the issue codes back onto the authoring-error strings) - compiled runtime objective resource, canonical addresses, diagnostics, and ordering/refresh derivation: - - `implementations/python/packages/aces_processor/compiler/` - - `implementations/python/packages/aces_processor/models/` (`ObjectiveRuntime`, + - `implementations/python/packages/raes_processor/compiler/` + - `implementations/python/packages/raes_processor/models/` (`ObjectiveRuntime`, `Diagnostic`) - planner ordering/refresh reconciliation over the compiled edges: - - `implementations/python/packages/aces_processor/planner/` - - `implementations/python/packages/aces_processor/semantics/planner.py` + - `implementations/python/packages/raes_processor/planner/` + - `implementations/python/packages/raes_processor/semantics/planner.py` - implementation-facing reference note: `docs/explain/reference/objective-semantics.md` (governed by ADR-016) diff --git a/specs/formal/objectives/window-consistency.md b/specs/formal/objectives/window-consistency.md index 9ff722493..3b2d96eb4 100644 --- a/specs/formal/objectives/window-consistency.md +++ b/specs/formal/objectives/window-consistency.md @@ -71,8 +71,8 @@ shape before compiler/planner semantics run. Each resolved reference carries: - shared semantic source of truth: `implementations/python/packages/raes/semantics/objectives.py` - validator checks: `implementations/python/packages/raes/validator/` - compiled runtime references and refresh derivation: - - `implementations/python/packages/aces_processor/compiler/` - - `implementations/python/packages/aces_processor/models/` + - `implementations/python/packages/raes_processor/compiler/` + - `implementations/python/packages/raes_processor/models/` - differential and property tests: - `implementations/python/tests/test_semantics_objectives.py` (`test_window_invariant_story_refs_must_resolve`, diff --git a/specs/formal/participant-behavior-model/README.md b/specs/formal/participant-behavior-model/README.md index 460a1aa6d..3a270aef4 100644 --- a/specs/formal/participant-behavior-model/README.md +++ b/specs/formal/participant-behavior-model/README.md @@ -133,11 +133,11 @@ new participant stack. The canonical incumbents are: - Compiled runtime addresses: `participant.action-contract.*`, `participant.observation-boundary.*`, `participant.outcome-interpretation-rule.*`, and - `participant.behavior.*` from `aces_processor.compiler`. + `participant.behavior.*` from `raes_processor.compiler`. - Runtime interaction evidence: `ParticipantActionResult`, precondition/effect/result records, outcome interpretation records, and `iter_participant_behavior_history_violations` in - `aces_processor.models`. + `raes_processor.models`. - Published contract authority: `ContractModel`, `schema_bundle()`, `contracts/schemas/`, `contracts/schema-publication-manifest.json`, and the `contracts/fixtures/` positive/negative fixture pattern. @@ -330,7 +330,7 @@ behavior surfaces. The canonical incumbents are: `analyze_participant_behavior`. - Runtime compilation: stable participant behavior, action-contract, observation-boundary, outcome-rule, and behavior-specification addresses from - `aces_processor.compiler`. + `raes_processor.compiler`. - Published contract authority: closed `ContractModel` payloads, `schema_bundle()`, generated schemas, the schema-publication manifest, and valid/invalid fixtures. diff --git a/specs/formal/participant-semantics/README.md b/specs/formal/participant-semantics/README.md index c6f3d7b61..47cd8e3e2 100644 --- a/specs/formal/participant-semantics/README.md +++ b/specs/formal/participant-semantics/README.md @@ -740,10 +740,10 @@ Current implementation artifacts for the `SEM-208` slice: - `implementations/python/packages/raes/semantics/participant_behavior.py` and `implementations/python/packages/raes/validator/` fail closed on unbound action-contract and observation-boundary references; -- `implementations/python/packages/aces_processor/compiler/` maps authored +- `implementations/python/packages/raes_processor/compiler/` maps authored participants to compiled participant action, observation, and behavior addresses; -- `implementations/python/packages/aces_processor/models/` defines +- `implementations/python/packages/raes_processor/models/` defines participant behavior-history events and validates action/observation/state transition totality over compiled addresses; - `implementations/python/tests/test_sem_208_participant_behavior.py` covers @@ -783,14 +783,14 @@ Current implementation artifacts for the `SEM-209` slice: - `implementations/python/packages/raes/semantics/participant_behavior.py` and `implementations/python/packages/raes/validator/` fail closed on unbound related actions, interaction targets, and shared-state references; -- `implementations/python/packages/aces_processor/compiler/` carries declared +- `implementations/python/packages/raes_processor/compiler/` carries declared interaction classes and shared-state references into compiled participant action contracts; -- `implementations/python/packages/aces_processor/models/` records +- `implementations/python/packages/raes_processor/models/` records `joint_action_set_id`, `realized_order`, interaction class, interaction reference, and shared-state references in participant behavior history, and rejects duplicate realized orders within one joint action set; -- `implementations/python/packages/aces_conformance/conformance.py` applies the +- `implementations/python/packages/raes_conformance/conformance.py` applies the joint-action ordering invariant across participant-local histories in runtime snapshots. @@ -855,12 +855,12 @@ Current implementation artifacts for the `SEM-210` slice: and `implementations/python/packages/raes/validator/` continue to fail closed on unbound participant observation-boundary references, view-rule references, and view-transition evidence references; -- `implementations/python/packages/aces_processor/compiler/` carries hidden, +- `implementations/python/packages/raes_processor/compiler/` carries hidden, observable, discovered, inferred, concealed, disclosed, deceptive, evidence-only, and realized-view disclosure metadata into compiled participant observation boundaries, including an ordered `view_relation_timeline` snapshot series for `V_p,t`; -- `implementations/python/packages/aces_processor/models/` exposes the +- `implementations/python/packages/raes_processor/models/` exposes the compiled visibility metadata for runtime planning, snapshots, and conformance consumers, and validates observation detail refs against the corresponding timeline snapshot; @@ -929,16 +929,16 @@ Current implementation artifacts for the `SEM-211` slice: plus typed action-contract declarations and backend failure mappings; - `implementations/python/packages/raes/participant_behavior.py` embeds those typed declarations in governed participant action contracts; -- `implementations/python/packages/aces_processor/compiler/` carries the +- `implementations/python/packages/raes_processor/compiler/` carries the typed precondition classes, effect classes, failure classes, and backend failure mappings into compiled participant action contracts; -- `implementations/python/packages/aces_processor/models/` defines typed +- `implementations/python/packages/raes_processor/models/` defines typed action precondition results, action effect results, action results, fail-closed validation for unsatisfied or unresolved preconditions, behavior history action-result embedding, compiled-contract validation for declared effects and failure classes, and backend diagnostic mapping to portable failure classes; -- `implementations/python/packages/aces_contracts/contracts/` publishes the +- `implementations/python/packages/raes_contracts/contracts/` publishes the action-result payload shape in the participant behavior-history and runtime snapshot schemas; - `implementations/python/tests/test_sem_211_participant_action_semantics.py` @@ -973,15 +973,15 @@ Current implementation artifacts for the first `SEM-212` slice: - `implementations/python/packages/raes/participant_attribution_semantics.py` defines controlled candidate, ordering-basis, and support-class vocabularies; -- `implementations/python/packages/aces_processor/models/` defines typed +- `implementations/python/packages/raes_processor/models/` defines typed attribution candidates, ordering bases, evidence bases, and attribution edges on participant behavior-history observation events; -- `implementations/python/packages/aces_processor/models/` validates +- `implementations/python/packages/raes_processor/models/` validates participant/episode/observation scope, explicit ordering and evidence bases, outcome interpretation-rule refs, timestamp-adjacency limits for strong causal support, effect grounding in actual observations/action results, and participant-boundary authorization for attribution evidence; -- `implementations/python/packages/aces_contracts/contracts/` publishes the +- `implementations/python/packages/raes_contracts/contracts/` publishes the attribution-edge payload under participant behavior-history event contracts; - `implementations/python/tests/test_sem_212_participant_attribution_semantics.py` covers positive attribution, missing bases, timestamp-only strong-causality @@ -1026,14 +1026,14 @@ Current implementation artifacts for the first `SEM-213` slice: temporal contracts and backend timing disclosures in governed participant action contracts, requires temporal preconditions to resolve to typed temporal contracts, and fails closed on unknown backend disclosure refs; -- `implementations/python/packages/aces_processor/compiler/` carries temporal +- `implementations/python/packages/raes_processor/compiler/` carries temporal contract ids, kinds, time domains, clock authorities, and backend timing disclosures into compiled participant action contracts; -- `implementations/python/packages/aces_processor/models/` defines runtime +- `implementations/python/packages/raes_processor/models/` defines runtime temporal context on participant behavior-history events, validates it against the compiled action contract, and exposes an abstract state-machine checker for cadence, deadline, dwell, timeout, reset, and replay interactions; -- `implementations/python/packages/aces_contracts/contracts/` publishes the +- `implementations/python/packages/raes_contracts/contracts/` publishes the runtime temporal-context payload in participant behavior-history and runtime snapshot schemas; - `implementations/python/tests/test_sem_213_temporal_participant_semantics.py` @@ -1072,12 +1072,12 @@ Implementation artifacts: - `participant-context-view-v1` carries the SEM-214 envelope in the existing API-408 control-plane carrier; -- `implementations/python/packages/aces_contracts/contracts/` defines the +- `implementations/python/packages/raes_contracts/contracts/` defines the closed-world Pydantic model and JSON Schema reference output; - `contracts/fixtures/control-plane/participant-context-view-v1/` contains positive and negative fixtures for source-layer, temporal, audience-scope, evidence/provenance, and comparability constraints; -- `implementations/python/packages/aces_runtime/participant_retrieval.py` +- `implementations/python/packages/raes_runtime/participant_retrieval.py` constructs the SEM-214 envelope for the existing context retrieval path; - `implementations/python/tests/test_participant_backend_contracts.py`, `test_runtime_control_plane.py`, and `test_runtime_control_plane_api.py` @@ -1204,7 +1204,7 @@ Stratum boundary traceability: | Stratum | Carrier (contract / model) | Enforcement point | Invariant | | ------- | -------------------------- | ----------------- | --------- | -| runtime-observable state | `RuntimeSnapshotEnvelopeModel` / `RuntimeSnapshot` | runtime snapshot diagnostics in `aces_conformance/conformance.py` | I2, I13 | +| runtime-observable state | `RuntimeSnapshotEnvelopeModel` / `RuntimeSnapshot` | runtime snapshot diagnostics in `raes_conformance/conformance.py` | I2, I13 | | captured evidence | `experiment-evidence-record-v1` / `ExperimentEvidenceRecordModel` | `_validate_evidence_record`, `_validate_raw_content`, closed-world `evidence_kind` (B3, B4) | I3, I13 | | derived evaluations | `experiment-derived-measure-v1` / `ExperimentDerivedMeasureModel` | `_validate_derived_measure`, typed `source_evidence_refs` | I10 | | analysis outputs | derived measure `measure_kind: analysis-output` + `ExperimentRunTraceabilityModel` | `_validate_run_traceability` claim grounding | I10, I15 | @@ -1218,7 +1218,7 @@ invariant oracle is unchanged. Current implementation artifacts for the `SEM-216` slice: -- `implementations/python/packages/aces_contracts/contracts/` adds +- `implementations/python/packages/raes_contracts/contracts/` adds `ParticipantContextViewModel._validate_sem216_audience_boundary` with its published `allOf` (required view rule + redaction policy) and `x-aces-invariants` (archival source mediation, `payload_ref` non-aliasing) @@ -1274,7 +1274,7 @@ Design commitments: Current implementation artifacts for the `SEM-217` slice: -- `implementations/python/packages/aces_contracts/semantic_binding_effects.py` +- `implementations/python/packages/raes_contracts/semantic_binding_effects.py` resolves the four SEM-217 effects over the existing UCO alignment and shared semantic-profile records; - `implementations/python/tests/test_sem_217_knowledge_bindings.py` proves that diff --git a/specs/formal/planner/README.md b/specs/formal/planner/README.md index ab6e6b041..52672cddc 100644 --- a/specs/formal/planner/README.md +++ b/specs/formal/planner/README.md @@ -16,10 +16,10 @@ reconciliation semantics. ## Implementation Mapping -- shared graph helpers: `implementations/python/packages/aces_processor/semantics/planner.py` +- shared graph helpers: `implementations/python/packages/raes_processor/semantics/planner.py` - planner use sites: - - `implementations/python/packages/aces_processor/planner/` - - `implementations/python/packages/aces_processor/manager.py` + - `implementations/python/packages/raes_processor/planner/` + - `implementations/python/packages/raes_processor/manager.py` ## Tests diff --git a/specs/formal/planner/dependency-ordering.md b/specs/formal/planner/dependency-ordering.md index b74f5765d..57dce8f23 100644 --- a/specs/formal/planner/dependency-ordering.md +++ b/specs/formal/planner/dependency-ordering.md @@ -60,10 +60,10 @@ change. ## Implementation Mapping -- shared semantic source of truth: `implementations/python/packages/aces_processor/semantics/planner.py` +- shared semantic source of truth: `implementations/python/packages/raes_processor/semantics/planner.py` - planner use sites: - - `implementations/python/packages/aces_processor/planner/` - - `implementations/python/packages/aces_processor/manager.py` + - `implementations/python/packages/raes_processor/planner/` + - `implementations/python/packages/raes_processor/manager.py` - property and agreement tests: - `implementations/python/tests/test_semantics_planner.py` - `implementations/python/tests/test_runtime_planner.py` diff --git a/specs/formal/realization/README.md b/specs/formal/realization/README.md index 1e8128e0e..4aa0ed1e8 100644 --- a/specs/formal/realization/README.md +++ b/specs/formal/realization/README.md @@ -58,19 +58,19 @@ work the SEM-218 row tracks. ## Implementation Mapping -- realization support modes: `implementations/python/packages/aces_contracts/vocabulary.py` +- realization support modes: `implementations/python/packages/raes_contracts/vocabulary.py` (`RealizationSupportMode`) - apparatus declarations: - `implementations/python/packages/aces_contracts/apparatus.py` + `implementations/python/packages/raes_contracts/apparatus.py` (`RealizationSupportDeclaration`, `ConceptBinding`, `ApparatusIdentity`) - contract-model gates and JSON schema (backend manifest): - `implementations/python/packages/aces_contracts/contracts/` + `implementations/python/packages/raes_contracts/contracts/` (`RealizationSupportDeclarationModel`) - processor-vs-backend asymmetry: - `implementations/python/packages/aces_contracts/contracts/` + `implementations/python/packages/raes_contracts/contracts/` (`ProcessorManifestV2Model` rejects `realization_support`) - backend-manifest payload encoding: - `implementations/python/packages/aces_backend_protocols/manifest.py` + `implementations/python/packages/raes_backend_protocols/manifest.py` - native concept family for realization semantics: `contracts/concept-authority/concept-families-v1.json` (`realization-and-disclosure`) diff --git a/specs/formal/realization/envelope-semantics.md b/specs/formal/realization/envelope-semantics.md index af8b6817f..512661412 100644 --- a/specs/formal/realization/envelope-semantics.md +++ b/specs/formal/realization/envelope-semantics.md @@ -33,7 +33,7 @@ Out of scope: This spec is design authority. The relation helper, the envelope expression contract model, fixtures, and property tests are implemented by issue #668: -- `aces_contracts.realization_envelope` carries the closed, versioned envelope +- `raes_contracts.realization_envelope` carries the closed, versioned envelope expression (`realization-envelope/v1`) — the admitted-fragment domain kinds, scoped bindings, posture, closure, and witness policy of this note; - `raes.realization_envelope` implements `member`, `subsumes`, `witness`, and @@ -322,13 +322,13 @@ exists today. | Concern | Future owner | Existing incumbent | | --- | --- | --- | -| Envelope contract DTO | `aces_contracts` | `ContractModel`, generated schema bundle | +| Envelope contract DTO | `raes_contracts` | `ContractModel`, generated schema bundle | | SDL envelope syntax and validation | `raes` | variables, instantiation, semantic validation | | Relation helper | `raes` or shared semantics helper | SEM-218 explicitness helper pattern | -| Backend manifest carriage | `aces_backend_protocols` / `aces_contracts` | `BackendManifest`, `backend_manifest_payload()` | -| Planning admission | `aces_processor` | `realization_support_diagnostics()` | -| Target conformance witness and negative probes | `aces_conformance` | `run_target_conformance(reference_scenario=...)` | -| Runtime refusal evidence | `aces_runtime` / control plane | `OperationStatus`, `Diagnostic` | +| Backend manifest carriage | `raes_backend_protocols` / `raes_contracts` | `BackendManifest`, `backend_manifest_payload()` | +| Planning admission | `raes_processor` | `realization_support_diagnostics()` | +| Target conformance witness and negative probes | `raes_conformance` | `run_target_conformance(reference_scenario=...)` | +| Runtime refusal evidence | `raes_runtime` / control plane | `OperationStatus`, `Diagnostic` | ## Non-Goals diff --git a/specs/formal/realization/explicitness-and-realization.md b/specs/formal/realization/explicitness-and-realization.md index af24a7200..7292d306d 100644 --- a/specs/formal/realization/explicitness-and-realization.md +++ b/specs/formal/realization/explicitness-and-realization.md @@ -63,13 +63,13 @@ is `active`. What is *enforced today* spans authoring through observation: - the typed compiler emission in `compile_runtime_model`, which lowers each authored realization concern into a `CompiledRealizationRequirement` on the `RuntimeModel` preserving its exact / constrained / open class; -- the planner realization-support gate in `aces_processor.planner.plan`, +- the planner realization-support gate in `raes_processor.planner.plan`, which matches each compiled exact / constrained / open requirement against the selected backend's `realization_support` and rejects open demand unless the selected domain explicitly declares `OPEN_REALIZATION`; - the runtime non-approximation gate on backend adapters in - `aces_processor.semantics.realization.realization_disclosure` (invoked from - `aces_runtime.backend_calls._call_backend_apply`, the runtime adapter + `raes_processor.semantics.realization.realization_disclosure` (invoked from + `raes_runtime.backend_calls._call_backend_apply`, the runtime adapter boundary), which compares each realized exact concern against the author declaration and rejects a silent approximation with a `runtime.backend-contract-invalid` diagnostic before the backend snapshot is @@ -91,17 +91,17 @@ The semantics rest on existing authority surfaces. Implementations MUST extend these rather than introduce parallel registries: - realization support modes: - `implementations/python/packages/aces_contracts/vocabulary.py` + `implementations/python/packages/raes_contracts/vocabulary.py` (`RealizationSupportMode`) - apparatus declarations: - `implementations/python/packages/aces_contracts/apparatus.py` + `implementations/python/packages/raes_contracts/apparatus.py` (`RealizationSupportDeclaration`) - contract-model gates and generated JSON schema: - `implementations/python/packages/aces_contracts/contracts/` + `implementations/python/packages/raes_contracts/contracts/` (`RealizationSupportDeclarationModel`) - processor and backend manifest payloads: - `implementations/python/packages/aces_processor/manifest.py`, - `implementations/python/packages/aces_backend_protocols/manifest.py` + `implementations/python/packages/raes_processor/manifest.py`, + `implementations/python/packages/raes_backend_protocols/manifest.py` - native concept family for realization concerns: `contracts/concept-authority/concept-families-v1.json` (`realization-and-disclosure`) @@ -114,13 +114,13 @@ extend these rather than introduce parallel registries: `implementations/python/packages/raes/instantiate.py` (`instantiate_scenario`, `SDLInstantiationError`) - runtime compilation and planning: - `implementations/python/packages/aces_processor/compiler/`, - `implementations/python/packages/aces_processor/semantics/planner.py` + `implementations/python/packages/raes_processor/compiler/`, + `implementations/python/packages/raes_processor/semantics/planner.py` - runtime diagnostics, results, and snapshots: - `implementations/python/packages/aces_processor/models/` + `implementations/python/packages/raes_processor/models/` (`Diagnostic`, runtime plan / result / snapshot models) - semantic profiles, controlled vocabularies, and reference models: - `specs/concept-authority/`, `implementations/python/packages/aces_contracts/` + `specs/concept-authority/`, `implementations/python/packages/raes_contracts/` ## Required Semantics @@ -239,7 +239,7 @@ by `RealizationSupportDeclaration.__post_init__` and planner-side matching of compiled exact-requirement-kinds against the selected backend's `realization_support` — by which an unsupported exact requirement causes plan rejection before deployment — is -realized by the realization-support gate in `aces_processor.planner.plan` +realized by the realization-support gate in `raes_processor.planner.plan` (over the compiled `RuntimeModel.realization_requirements`), alongside the concrete provisioner / orchestrator / evaluator capability checks in `_validate_manifest`. The rule is binding under this spec. @@ -283,7 +283,7 @@ now enforced by named, tested code. | Instantiation | Parameter and default substitution may resolve open concerns and constrained surfaces. Substitution MUST NOT downgrade an exact declaration into a constrained or open one, and MUST NOT introduce an exact declaration that the author did not write. The concrete scenario MUST be revalidated after substitution. | active — `instantiate_scenario` preserves explicitness plus typed designation provenance and revalidates concrete content. | | Compilation | Lowers each declaration into a typed runtime requirement preserving class. Exact requirements carry their declared kind into the compiled representation; constrained requirements carry the typed constraint surface; open requirements are emitted as realizable slots tagged with the realization-and-disclosure family. | active — `compile_runtime_model` applies leaf precedence and the scoped cascade, carrying open and delegated demand plus its governing scope. | | Planning | Matches every compiled requirement against the candidate backend manifest. An unsupported exact-requirement-kind MUST cause plan rejection through a structured `Diagnostic` before deployment; an unsupported constraint-kind MUST cause the same outcome. An open realizable slot MAY be left for the backend only when its manifest declares matching support. | active — the planner rejects open demand without explicit `OPEN_REALIZATION` support and never approximates it. | -| Execution | Backend realizers honor the compiled class. A runtime adapter MUST NOT silently broaden an exact requirement, MUST NOT silently narrow an open realization beyond its declared constraints, and MUST surface incompatibilities through the existing runtime error envelope rather than approximate. | active — the runtime non-approximation gate `aces_processor.semantics.realization.realization_disclosure` (invoked from `aces_runtime.backend_calls._call_backend_apply`) compares each realized exact concern against the author declaration and rejects a silent approximation with a `runtime.backend-contract-invalid` diagnostic before the backend snapshot is accepted. | +| Execution | Backend realizers honor the compiled class. A runtime adapter MUST NOT silently broaden an exact requirement, MUST NOT silently narrow an open realization beyond its declared constraints, and MUST surface incompatibilities through the existing runtime error envelope rather than approximate. | active — the runtime non-approximation gate `raes_processor.semantics.realization.realization_disclosure` (invoked from `raes_runtime.backend_calls._call_backend_apply`) compares each realized exact concern against the author declaration and rejects a silent approximation with a `runtime.backend-contract-invalid` diagnostic before the backend snapshot is accepted. | | Observation | Realized values land in plan, result, snapshot, history, and evidence surfaces with provenance per I5. Realization choices are observation data, not private backend state. | active — realized concerns are recorded on the runtime snapshot envelope's `realization_provenance` ledger with their explicitness class and author-declared / processor-derived / backend-realized origin; the snapshot is the aggregate observation surface that carries result and history data. | ## Cross-Cutting Gates @@ -325,7 +325,7 @@ realization status, are: deployment (I1, I2, I4). *Enforced today* by the typed compiler emission on `RuntimeModel.realization_requirements` and the realization-support plus open-request envelope-subsumption gates in - `aces_processor.planner.plan`. + `raes_processor.planner.plan`. - **Error-envelope gate** — unsupported exact requirements and forbidden approximations MUST be surfaced through stable validation errors or structured diagnostics (I1, I2). *Enforced today*; the @@ -378,7 +378,7 @@ The governance of the surface is **staged**: validated only as non-empty strings (the `__post_init__` invariants and `RealizationSupportDeclarationModel` enforce shape, not value membership). The contract model at - `implementations/python/packages/aces_contracts/contracts/` + `implementations/python/packages/raes_contracts/contracts/` declares each as `list[NonEmptyString]`; the controlled-vocabulary authority does not yet bind those slots. - Adding governed vocabularies for those four fields is normative @@ -424,20 +424,20 @@ The rules above are realized today by these existing surfaces; every invariant I1–I5 is enforced by named code. - I4 shape floor (backend manifests) — apparatus contract: - `implementations/python/packages/aces_contracts/apparatus.py` + `implementations/python/packages/raes_contracts/apparatus.py` (`RealizationSupportDeclaration.__post_init__` rejects empty kinds and forbids `EXACT_ONLY` with `supported_constraint_kinds`). - I4 JSON-schema gate (backend manifests) — - `implementations/python/packages/aces_contracts/contracts/` + `implementations/python/packages/raes_contracts/contracts/` (`RealizationSupportDeclarationModel._validate_realization_support` and the `__get_pydantic_json_schema__` conditional schema, exercised by published `contracts/schemas/`). - I4 processor-vs-backend asymmetry — `ProcessorManifestV2Model` in - `implementations/python/packages/aces_contracts/contracts/` rejects + `implementations/python/packages/raes_contracts/contracts/` rejects any `realization_support` section; the generated processor schema has no `realization_support` property. - I4 backend-manifest payload boundary — - `implementations/python/packages/aces_backend_protocols/manifest.py` + `implementations/python/packages/raes_backend_protocols/manifest.py` (sorted-kind serialization preserves the contract under canonicalization). - I3 concept-authority binding — @@ -456,24 +456,24 @@ invariant I1–I5 is enforced by named code. `contracts/fixtures/processor-manifest/processor-manifest-v2/invalid/hollow-realization-support.json`, `contracts/fixtures/processor-manifest/processor-manifest-v2/invalid/malformed-realization-support.json`. - I1, I2, I4 typed compiler emission + planner gate — - `aces_processor.compiler._compile_realization_requirements` emits + `raes_processor.compiler._compile_realization_requirements` emits `RuntimeModel.realization_requirements`, and - `aces_processor.semantics.realization.realization_support_diagnostics` - (called from `aces_processor.planner.plan`) matches them against the + `raes_processor.semantics.realization.realization_support_diagnostics` + (called from `raes_processor.planner.plan`) matches them against the backend's `realization_support`, rejecting unsupported kinds with a `Diagnostic`. `realization_envelope_diagnostics` projects the offered envelope onto compiled open concern paths and calls the canonical `subsumes()` relation. - I2 runtime non-approximation gate — - `aces_processor.semantics.realization.realization_disclosure` (re-exported - through `aces_processor.planner`), invoked from - `aces_runtime.backend_calls._call_backend_apply`, compares each realized + `raes_processor.semantics.realization.realization_disclosure` (re-exported + through `raes_processor.planner`), invoked from + `raes_runtime.backend_calls._call_backend_apply`, compares each realized exact concern against the author declaration and rejects a silent approximation with a `runtime.backend-contract-invalid` diagnostic before the backend snapshot is accepted. - I5 runtime provenance — the `realization_provenance` ledger (`RealizationProvenanceEntry` in - `implementations/python/packages/aces_contracts/runtime_state.py`, published as + `implementations/python/packages/raes_contracts/runtime_state.py`, published as `RealizationProvenanceEntryModel` on the `runtime-snapshot-v1` envelope) records each realized concern's explicitness class and author-declared / processor-derived / backend-realized origin, and round-trips through the diff --git a/specs/formal/runtime-contracts/README.md b/specs/formal/runtime-contracts/README.md index 11f107e42..058a7d774 100644 --- a/specs/formal/runtime-contracts/README.md +++ b/specs/formal/runtime-contracts/README.md @@ -55,7 +55,7 @@ remain owned by the backend that defines the extension. ### API-405 Evidence Criteria Standard API-405 terms have term-level evidence criteria in -`aces_backend_protocols.capabilities.PARTICIPANT_RUNTIME_CAPABILITY_REQUIRED_CONTRACTS`. +`raes_backend_protocols.capabilities.PARTICIPANT_RUNTIME_CAPABILITY_REQUIRED_CONTRACTS`. `run_target_conformance()` rejects standard participant capability claims when the manifest omits the published contracts that carry the corresponding runtime evidence. @@ -89,16 +89,16 @@ The participant behavior evidence set is ## Implementation Mapping -- shared result constraints: `implementations/python/packages/aces_processor/semantics/workflow.py` -- typed result models: `implementations/python/packages/aces_processor/models/` -- manager contract validation: `implementations/python/packages/aces_processor/manager.py` -- backend example: `implementations/python/packages/aces_backend_stubs/stubs.py` +- shared result constraints: `implementations/python/packages/raes_processor/semantics/workflow.py` +- typed result models: `implementations/python/packages/raes_processor/models/` +- manager contract validation: `implementations/python/packages/raes_processor/manager.py` +- backend example: `implementations/python/packages/raes_backend_stubs/stubs.py` - participant capability contract model: - `implementations/python/packages/aces_contracts/contracts/` + `implementations/python/packages/raes_contracts/contracts/` - participant capability runtime declaration: - `implementations/python/packages/aces_backend_protocols/capabilities.py` + `implementations/python/packages/raes_backend_protocols/capabilities.py` - backend manifest renderer: - `implementations/python/packages/aces_backend_protocols/manifest.py` + `implementations/python/packages/raes_backend_protocols/manifest.py` - governed vocabulary authority: `contracts/concept-authority/controlled-vocabularies-v1.json` diff --git a/specs/formal/runtime-contracts/participant-backend-contracts.md b/specs/formal/runtime-contracts/participant-backend-contracts.md index 33234d19a..db5696d50 100644 --- a/specs/formal/runtime-contracts/participant-backend-contracts.md +++ b/specs/formal/runtime-contracts/participant-backend-contracts.md @@ -84,7 +84,7 @@ PR #405 is the participant capability declaration surface: governed participant roles, behavior features, and interaction features from `controlled-vocabularies-v1`, the `x-:` governed extension rule, and the term-level evidence criteria in -`aces_backend_protocols.capabilities.PARTICIPANT_RUNTIME_CAPABILITY_REQUIRED_CONTRACTS`. +`raes_backend_protocols.capabilities.PARTICIPANT_RUNTIME_CAPABILITY_REQUIRED_CONTRACTS`. This design ratifies that surface without amendment. See the API-405 section of `specs/formal/runtime-contracts/README.md`. @@ -207,7 +207,7 @@ Rules: ## Publication, Generation, And Authority Obligations -- Carriers are generated from contract models (`aces_contracts`) into +- Carriers are generated from contract models (`raes_contracts`) into `contracts/schemas/participant-runtime/` and `contracts/schemas/control-plane/`; generated output is never hand-edited. - `tools/generate_contract_schemas.py` routes the family explicitly; no diff --git a/specs/formal/sdl-phases/README.md b/specs/formal/sdl-phases/README.md index 12b305866..081ba4597 100644 --- a/specs/formal/sdl-phases/README.md +++ b/specs/formal/sdl-phases/README.md @@ -185,8 +185,8 @@ equivalence or bisimilarity. - transition and admission functions: `implementations/python/packages/raes/instantiate.py` - typed processor lowering: - `implementations/python/packages/aces_processor/models/` and - `implementations/python/packages/aces_processor/planner/` + `implementations/python/packages/raes_processor/models/` and + `implementations/python/packages/raes_processor/planner/` - canonical snapshot: `implementations/python/packages/raes/canonical.py` - external contracts: diff --git a/specs/formal/time-model/README.md b/specs/formal/time-model/README.md index 9086fa87b..28f3fff6a 100644 --- a/specs/formal/time-model/README.md +++ b/specs/formal/time-model/README.md @@ -126,13 +126,13 @@ shared clock from matching strings. | --- | --- | | SDL declarations | `raes.time_model` | | Cross-reference validation | `raes.validator._time_model` | -| Compilation | `aces_processor.compiler.time_model` | -| Compiled identity | `aces_processor.models.time_model` | -| Runtime lifecycle | `aces_runtime.time_coordinator` | +| Compilation | `raes_processor.compiler.time_model` | +| Compiled identity | `raes_processor.models.time_model` | +| Runtime lifecycle | `raes_runtime.time_coordinator` | | Focused evidence | `test_sem_227_shared_time_model.py` | -| Portable declaration contracts | `aces_contracts.contracts.time_model` | -| Backend capability and admission | `aces_backend_protocols.time_capabilities`, `aces_backend_protocols.capability_admission` | -| Runtime protocol and validated readback | `aces_backend_protocols.protocols.TimeRuntime`, `aces_runtime.time_control.RuntimeTimeControlMixin`, `aces_runtime.manager.RuntimeManager` | -| Semantic conformance | `aces_conformance.time_semantics` | -| Run provenance | `aces_contracts.contracts.experiment_run` | +| Portable declaration contracts | `raes_contracts.contracts.time_model` | +| Backend capability and admission | `raes_backend_protocols.time_capabilities`, `raes_backend_protocols.capability_admission` | +| Runtime protocol and validated readback | `raes_backend_protocols.protocols.TimeRuntime`, `raes_runtime.time_control.RuntimeTimeControlMixin`, `raes_runtime.manager.RuntimeManager` | +| Semantic conformance | `raes_conformance.time_semantics` | +| Run provenance | `raes_contracts.contracts.experiment_run` | | Focused portable-contract evidence | `test_api_421_time_contracts.py` | diff --git a/specs/formal/workflows/README.md b/specs/formal/workflows/README.md index 9f001d7a6..886a0400a 100644 --- a/specs/formal/workflows/README.md +++ b/specs/formal/workflows/README.md @@ -28,12 +28,12 @@ This directory holds the repo-native formal artifacts for SDL workflow control s ## Implementation Mapping -- shared rules: `implementations/python/packages/aces_processor/semantics/workflow.py` +- shared rules: `implementations/python/packages/raes_processor/semantics/workflow.py` - validator enforcement: `implementations/python/packages/raes/validator/` -- compiled contracts: `implementations/python/packages/aces_processor/compiler/` +- compiled contracts: `implementations/python/packages/raes_processor/compiler/` - typed runtime results and contract checks: - - `implementations/python/packages/aces_processor/models/` - - `implementations/python/packages/aces_processor/manager.py` + - `implementations/python/packages/raes_processor/models/` + - `implementations/python/packages/raes_processor/manager.py` - smoke/regression coverage: - `implementations/python/tests/test_sdl_validator.py` - `implementations/python/tests/test_runtime_models.py` diff --git a/specs/formal/workflows/compensation.md b/specs/formal/workflows/compensation.md index 74f499398..7d8f96c45 100644 --- a/specs/formal/workflows/compensation.md +++ b/specs/formal/workflows/compensation.md @@ -99,7 +99,7 @@ workflow can be `cancelled` or `timed_out` while compensation is `running` or - SDL authoring models: `implementations/python/packages/raes/orchestration.py` - semantic validation: `implementations/python/packages/raes/validator/` -- compiled contracts: `implementations/python/packages/aces_processor/compiler/` -- runtime state/history models: `implementations/python/packages/aces_processor/models/` -- manager validation: `implementations/python/packages/aces_processor/manager.py` -- control-plane lifecycle handling: `implementations/python/packages/aces_processor/control_plane.py` +- compiled contracts: `implementations/python/packages/raes_processor/compiler/` +- runtime state/history models: `implementations/python/packages/raes_processor/models/` +- manager validation: `implementations/python/packages/raes_processor/manager.py` +- control-plane lifecycle handling: `implementations/python/packages/raes_processor/control_plane.py` diff --git a/specs/formal/workflows/goal-oriented-steps.md b/specs/formal/workflows/goal-oriented-steps.md index c803a4250..c4283dc9c 100644 --- a/specs/formal/workflows/goal-oriented-steps.md +++ b/specs/formal/workflows/goal-oriented-steps.md @@ -55,8 +55,8 @@ same objective without changing its backend-neutral success meaning. - authored mode and fail-closed validation: `implementations/python/packages/raes/orchestration.py` - compiled realization projection and feature requirements: - `implementations/python/packages/aces_processor/compiler/workflow_steps.py` + `implementations/python/packages/raes_processor/compiler/workflow_steps.py` - portable attempt provenance: - `implementations/python/packages/aces_contracts/workflow.py` + `implementations/python/packages/raes_contracts/workflow.py` - behavioral regression surface: `implementations/python/tests/test_sce_004_goal_oriented_steps.py` diff --git a/specs/formal/workflows/state-machine.md b/specs/formal/workflows/state-machine.md index 54d468bd7..c7fc7e23b 100644 --- a/specs/formal/workflows/state-machine.md +++ b/specs/formal/workflows/state-machine.md @@ -66,9 +66,9 @@ derived from that envelope after validation. ## Implementation Mapping -- semantic contract definitions: `implementations/python/packages/aces_processor/semantics/workflow.py` +- semantic contract definitions: `implementations/python/packages/raes_processor/semantics/workflow.py` - validation and visibility checks: `implementations/python/packages/raes/validator/` -- compiled step contracts: `implementations/python/packages/aces_processor/compiler/` +- compiled step contracts: `implementations/python/packages/raes_processor/compiler/` - typed runtime envelopes and result validation: - - `implementations/python/packages/aces_processor/models/` - - `implementations/python/packages/aces_processor/manager.py` + - `implementations/python/packages/raes_processor/models/` + - `implementations/python/packages/raes_processor/manager.py` diff --git a/specs/sdl/references.md b/specs/sdl/references.md index ab6753c64..56b4a840b 100644 --- a/specs/sdl/references.md +++ b/specs/sdl/references.md @@ -305,7 +305,7 @@ the source of the row's normative meaning. | `content.*.target` | `nodes` | semantic validation | fatal unless target is a VM node | [initial service state](initial-service-state.md) | [content validator](../../implementations/python/packages/raes/validator/_content_objectives.py) | | `content.*.service_materialization.target_service_ref` | `derived:node_services` | semantic validation | fatal unless the exact service exists on the content target VM | [initial service state](initial-service-state.md) | [service materialization validator](../../implementations/python/packages/raes/validator/_service_materialization.py) | | `content.*.service_materialization.shared_service_relationship_ref` | `relationships` | semantic validation | fatal unless a matching typed shared-service relationship owns cross-tenant mutable state/reset | [initial service state](initial-service-state.md) | [service materialization validator](../../implementations/python/packages/raes/validator/_service_materialization.py) | -| `content.*.service_materialization.ordering_content_refs[]` | `content` | semantic validation and planner ordering | fatal dangling, self, or cyclic dependency | [initial service state](initial-service-state.md) | [content compiler](../../implementations/python/packages/aces_processor/compiler/placement.py) | +| `content.*.service_materialization.ordering_content_refs[]` | `content` | semantic validation and planner ordering | fatal dangling, self, or cyclic dependency | [initial service state](initial-service-state.md) | [content compiler](../../implementations/python/packages/raes_processor/compiler/placement.py) | | `content.*.service_materialization.readback_assertion_refs[]` | `assertions` | semantic validation | fatal unless each ref is an observed-state postcondition | [initial service state](initial-service-state.md) | [service materialization validator](../../implementations/python/packages/raes/validator/_service_materialization.py) | | `content.*.service_materialization.evidence_requirement_refs[]` | `evidence_requirements` | semantic validation | fatal unless each ref exists and every readback proposition requires it | [initial service state](initial-service-state.md) | [service materialization validator](../../implementations/python/packages/raes/validator/_service_materialization.py) | | `content.*.service_materialization.observation_boundary_refs[]` | `observation_boundaries` | semantic validation | fatal dangling ref | [initial service state](initial-service-state.md) | [service materialization validator](../../implementations/python/packages/raes/validator/_service_materialization.py) | diff --git a/tools/check_atlas_tactic_vocabulary.py b/tools/check_atlas_tactic_vocabulary.py index 5a52220ed..3d582e812 100644 --- a/tools/check_atlas_tactic_vocabulary.py +++ b/tools/check_atlas_tactic_vocabulary.py @@ -19,7 +19,7 @@ if str(REPO_ROOT) not in sys.path: sys.path.insert(0, str(REPO_ROOT)) -from aces_contracts.contracts import ( # noqa: E402 +from raes_contracts.contracts import ( # noqa: E402 AtlasTacticsSourceModel, ControlledVocabularyCatalogModel, ) diff --git a/tools/check_attack_tactic_vocabulary.py b/tools/check_attack_tactic_vocabulary.py index 071c735eb..f4a06564f 100644 --- a/tools/check_attack_tactic_vocabulary.py +++ b/tools/check_attack_tactic_vocabulary.py @@ -16,7 +16,7 @@ if str(REPO_ROOT) not in sys.path: sys.path.insert(0, str(REPO_ROOT)) -from aces_contracts.contracts import ( # noqa: E402 +from raes_contracts.contracts import ( # noqa: E402 AttackEnterpriseTacticsSourceModel, ControlledVocabularyCatalogModel, ) diff --git a/tools/check_behavioral_relation_claims.py b/tools/check_behavioral_relation_claims.py index 6cca8df6d..7355e63ce 100644 --- a/tools/check_behavioral_relation_claims.py +++ b/tools/check_behavioral_relation_claims.py @@ -23,11 +23,11 @@ if str(REPO_ROOT) not in sys.path: sys.path.insert(0, str(REPO_ROOT)) -from aces_contracts.behavioral_relations import ( +from raes_contracts.behavioral_relations import ( BehavioralRelationCatalogModel, validate_behavioral_claim_binding, ) # noqa: E402 -from aces_contracts.contracts import BehavioralClaimBindingModel # noqa: E402 +from raes_contracts.contracts import BehavioralClaimBindingModel # noqa: E402 from pydantic import ValidationError # noqa: E402 from tools.policy.common import ( diff --git a/tools/check_concept_authority_governance.py b/tools/check_concept_authority_governance.py index aeaef24f7..fbdd6e6e8 100644 --- a/tools/check_concept_authority_governance.py +++ b/tools/check_concept_authority_governance.py @@ -2,8 +2,8 @@ # ruff: noqa: E402, I001 """Structural gate for concept-authority catalog governance (ADR-062). -ADR-012 ("Shared Concept Authority and ACES Extension Discipline") §3 demands -that ACES-native concept families be explicit, disciplined extensions over the +ADR-012 ("Shared Concept Authority and RAES Extension Discipline") §3 demands +that RAES-native concept families be explicit, disciplined extensions over the shared concept authority. The JSON Schema for ``concept-families-v1.json`` validates field *presence* (a native family must declare ``extension_scope``, ``relation_rules``, and ``non_ambiguity_constraints``), but nothing structural @@ -52,7 +52,7 @@ from pydantic import ValidationError -from aces_contracts.contracts import ( +from raes_contracts.contracts import ( ConceptFamilyCatalogModel, ControlledVocabularyCatalogModel, ) @@ -77,7 +77,7 @@ REQUIREMENT_REFS: tuple[str, ...] = ("GOV-918", "GOV-919") # The shared concept-family / controlled-vocabulary identifier grammar — the -# same pattern as aces_contracts.vocabulary.ConceptFamilyId and the keys of +# same pattern as raes_contracts.vocabulary.ConceptFamilyId and the keys of # controlled-vocabularies-v1.json. Only inline-code spans whose full content # matches this grammar are treated as catalog references. _ID_TOKEN_RE = re.compile(r"^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$") diff --git a/tools/check_formal_semantic_validation.py b/tools/check_formal_semantic_validation.py index e0b95d577..11ea89764 100644 --- a/tools/check_formal_semantic_validation.py +++ b/tools/check_formal_semantic_validation.py @@ -314,7 +314,7 @@ def _diagnostic_payload(exc: Exception, repo_root: Path) -> object: def replay_case(repo_root: Path, case: Mapping[str, object]) -> dict[str, str | None]: """Replay one supported case through its declared production boundary.""" - from aces_processor.compiler import compile_runtime_model + from raes_processor.compiler import compile_runtime_model from raes import SDLError, instantiate_scenario, parse_sdl_file fixture_value = case.get("fixture_path") @@ -1339,7 +1339,7 @@ def validate_satisfiability_analysis( ) ) - from aces_processor.satisfiability import analyze_scenario_file, replay_satisfiability_evidence + from raes_processor.satisfiability import analyze_scenario_file, replay_satisfiability_evidence for item in cases: if not _closed_object( diff --git a/tools/check_json_artifacts.py b/tools/check_json_artifacts.py index e348e3dce..fccb36ad7 100644 --- a/tools/check_json_artifacts.py +++ b/tools/check_json_artifacts.py @@ -22,9 +22,9 @@ SCHEMA_DRIVER_PATHS = ( "contracts/schemas/", - "implementations/python/packages/aces_contracts/", - "implementations/python/packages/aces_backend_protocols/", - "implementations/python/packages/aces_processor/", + "implementations/python/packages/raes_contracts/", + "implementations/python/packages/raes_backend_protocols/", + "implementations/python/packages/raes_processor/", "implementations/python/packages/raes/", "tools/generate_contract_schemas.py", ) diff --git a/tools/check_nist_csf_defensive_vocabulary.py b/tools/check_nist_csf_defensive_vocabulary.py index 1f516b170..11ad69d42 100644 --- a/tools/check_nist_csf_defensive_vocabulary.py +++ b/tools/check_nist_csf_defensive_vocabulary.py @@ -21,7 +21,7 @@ if str(REPO_ROOT) not in sys.path: sys.path.insert(0, str(REPO_ROOT)) -from aces_contracts.contracts import ( # noqa: E402 +from raes_contracts.contracts import ( # noqa: E402 ControlledVocabularyCatalogModel, NistCsfDefensiveCategorySourceModel, ) @@ -193,7 +193,7 @@ def _check_remote(source: NistCsfDefensiveCategorySourceModel) -> list[str]: return [f"{SOURCE_RELATIVE_PATH}: remote verification URL must stay on csrc.nist.gov HTTPS"] request = urllib.request.Request( # noqa: S310 - allowlisted NIST HTTPS endpoint above source.source_url, - headers={"User-Agent": "ACES-NIST-CSF-verifier/1"}, + headers={"User-Agent": "RAES-NIST-CSF-verifier/1"}, ) with urllib.request.urlopen(request, timeout=60) as response: # noqa: S310 categories = _extract_defensive_categories(response.read()) diff --git a/tools/check_pr_title.py b/tools/check_pr_title.py index 23a61056b..e28cd79de 100644 --- a/tools/check_pr_title.py +++ b/tools/check_pr_title.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 """Repository-side PR title guard (issue #567). -This is the single source of truth for ACES pull-request title policy. The +This is the single source of truth for RAES pull-request title policy. The `.github/workflows/pr-title-lint.yml` CI workflow and the `implementations/python/tests/test_pr_title_guard.py` tests both call ``validate_pr_title`` here, so the policy cannot drift between the workflow @@ -39,7 +39,7 @@ BRANDED_PREFIXES: tuple[str, ...] = ("codex", "claude", "openai", "chatgpt") #: Canonical Ground Control ``/implement`` Step 9 allow-list, applied unless -#: ACES declares its own ``.ground-control.yaml`` ``workflow.pr_title`` block. +#: RAES declares its own ``.ground-control.yaml`` ``workflow.pr_title`` block. CONVENTIONAL_TYPES: tuple[str, ...] = ( "security", "added", diff --git a/tools/check_project_positioning.py b/tools/check_project_positioning.py index c648d1ace..ac2b4df44 100644 --- a/tools/check_project_positioning.py +++ b/tools/check_project_positioning.py @@ -219,9 +219,9 @@ def _validate_structured_metadata(repo_root: Path, failures: list[PolicyFailure] def _validate_mcp_metadata(repo_root: Path, failures: list[PolicyFailure]) -> None: assignments = ( - ("implementations/python/packages/aces_mcp/server.py", "_INSTRUCTIONS"), + ("implementations/python/packages/raes_mcp/server.py", "_INSTRUCTIONS"), ( - "implementations/python/packages/aces_mcp/tools/reference.py", + "implementations/python/packages/raes_mcp/tools/reference.py", "_OVERVIEW_TEXT", ), ) diff --git a/tools/check_repo_policy.py b/tools/check_repo_policy.py index 414c85ba0..b41b16bbd 100644 --- a/tools/check_repo_policy.py +++ b/tools/check_repo_policy.py @@ -15,7 +15,7 @@ def parse_args() -> argparse.Namespace: - parser = argparse.ArgumentParser(description="Validate ACES SDL repo policy rules.") + parser = argparse.ArgumentParser(description="Validate RAES SDL repo policy rules.") parser.add_argument("--staged", action="store_true", help="Check staged changes instead of working tree changes.") parser.add_argument("--base-rev", help="Compare against a specific git revision.") parser.add_argument("--json", action="store_true", help="Emit JSON failures.") diff --git a/tools/check_scientific_scenario_completeness.py b/tools/check_scientific_scenario_completeness.py index 2e71a6b9e..9e994ce6b 100644 --- a/tools/check_scientific_scenario_completeness.py +++ b/tools/check_scientific_scenario_completeness.py @@ -11,8 +11,8 @@ if str(REPO_ROOT) not in sys.path: sys.path.insert(0, str(REPO_ROOT)) -from aces_conformance.conformance import validate_contract_payload # noqa: E402 -from aces_contracts.scientific_completeness import ( # noqa: E402 +from raes_conformance.conformance import validate_contract_payload # noqa: E402 +from raes_contracts.scientific_completeness import ( # noqa: E402 DeliveryStatus, ProfileCompletenessResult, ScientificCompletenessAssessmentModel, diff --git a/tools/check_sdl_catalog_parity.py b/tools/check_sdl_catalog_parity.py index ed1905415..155ecefd0 100644 --- a/tools/check_sdl_catalog_parity.py +++ b/tools/check_sdl_catalog_parity.py @@ -92,7 +92,7 @@ "[service materialization validator]" "(../../implementations/python/packages/raes/validator/_service_materialization.py)" ) -_CONTENT_COMPILER = "[content compiler](../../implementations/python/packages/aces_processor/compiler/placement.py)" +_CONTENT_COMPILER = "[content compiler](../../implementations/python/packages/raes_processor/compiler/placement.py)" _ACCOUNT_VALIDATOR = "[account validator](../../implementations/python/packages/raes/validator/_content_objectives.py)" _STATEFUL_MODEL = "[scenario model](../../implementations/python/packages/raes/scenario.py)" _RELATIONSHIP_VALIDATOR = ( diff --git a/tools/check_sdl_lineage.py b/tools/check_sdl_lineage.py index c6d09c263..b001f43df 100644 --- a/tools/check_sdl_lineage.py +++ b/tools/check_sdl_lineage.py @@ -14,7 +14,7 @@ if str(REPO_ROOT) not in sys.path: sys.path.insert(0, str(REPO_ROOT)) -from aces_contracts.provenance import LineageDisposition, SDLLineageLedgerModel +from raes_contracts.provenance import LineageDisposition, SDLLineageLedgerModel from pydantic import ValidationError from raes._runtime_service_families import RUNTIME_SERVICE_FAMILIES diff --git a/tools/check_semantic_coverage.py b/tools/check_semantic_coverage.py index c617d51f3..69491faa0 100644 --- a/tools/check_semantic_coverage.py +++ b/tools/check_semantic_coverage.py @@ -28,8 +28,8 @@ * for an ``active`` row that names importable Python realizing modules, at least one of its named tests actually *imports* one of those modules — existence is not integration (#504). The resolver recognizes direct submodule imports, - ``from package import submodule``, the ``aces.*`` compatibility wrappers, and - package re-exports written either absolutely (``from pkg.core import name``) or + ``from package import submodule``, and package re-exports written either + absolutely (``from pkg.core import name``) or with the idiomatic relative form (``from .core import name``); a bare ``import raes`` does not count as evidence for every ``raes.*`` artifact. The check is @@ -132,14 +132,9 @@ _EXPECTED_COLUMNS = 5 -# Source roots used by the import-integration resolver (#504). Realization -# artifacts that are importable Python live under the packages root; the -# ``aces.*`` compatibility wrappers live under the src root. +# Source root used by the import-integration resolver (#504). Realization +# artifacts that are importable Python live under the packages root. _PACKAGES_ROOT = "implementations/python/packages" -_COMPAT_SRC_ROOT = "implementations/python/src" -# Names the ``aces._compat`` re-export helper is imported as (``reexport`` or the -# conventional ``_reexport`` alias). -_REEXPORT_FUNCS: frozenset[str] = frozenset({"reexport", "_reexport"}) # A ``test_*`` function counts as asserting if it contains an ``assert`` statement # or calls anything whose name carries one of these hints (``pytest.raises``, # ``self.assertEqual``, ``pytest.fail``, ``assert_*`` helpers, ...). @@ -424,14 +419,13 @@ def _check_adr_links_note(repo_root: Path) -> list[PolicyFailure]: # one named test *imports* one of the row's realizing Python modules. The # resolver maps a realizing artifact path to its canonical module and normalizes # the imports a test actually makes — recognizing direct submodule imports, -# ``from package import submodule``, the ``aces.*`` compatibility wrappers, and -# explicit ``from M import name`` package re-exports — so an honest indirect -# import still counts. It deliberately does NOT import or execute any module, and +# ``from package import submodule`` and explicit ``from M import name`` package +# re-exports — so an honest indirect import still counts. It deliberately does +# NOT import or execute any module, and # a bare ``import raes`` is not treated as evidence for every ``raes.*`` # artifact. Dynamic ``__getattr__`` re-exports in a canonical package ``__init__`` -# are not resolved; those symbols remain reachable through the compat wrappers -# (which are resolved), and the gate is row-level so one resolvable import per -# row suffices. +# are not resolved; the gate is row-level so one resolvable import per row +# suffices. # --------------------------------------------------------------------------- # @@ -469,71 +463,36 @@ def _resolve_relative_module(pkg: str, level: int, module: str | None) -> str | return ".".join(parts) if parts else None -def _reexport_target(tree: ast.Module) -> str | None: - """The canonical module a compat wrapper re-exports, from ``reexport(globals(), "...")``.""" - for node in ast.walk(tree): - if ( - isinstance(node, ast.Call) - and isinstance(node.func, ast.Name) - and node.func.id in _REEXPORT_FUNCS - and len(node.args) == 2 - and isinstance(node.args[1], ast.Constant) - and isinstance(node.args[1].value, str) - ): - return node.args[1].value - return None - - @dataclass(frozen=True) class _ImportResolver: - """Maps test imports to the canonical modules they reach. The single extension - seam: new source roots, wrappers, or package exports extend the two maps - without touching row validation.""" + """Maps test imports to the canonical modules they reach.""" - compat_to_canonical: dict[str, str] package_symbol_to_module: dict[str, str] - def normalize(self, module: str) -> str: - return self.compat_to_canonical.get(module, module) - def imported_modules(self, tree: ast.Module) -> set[str]: reached: set[str] = set() for node in ast.walk(tree): if isinstance(node, ast.Import): for alias in node.names: - reached.add(self.normalize(alias.name)) + reached.add(alias.name) elif isinstance(node, ast.ImportFrom): if node.level or not node.module: continue # relative imports are not used by the test suite - reached.add(self.normalize(node.module)) + reached.add(node.module) for alias in node.names: full = f"{node.module}.{alias.name}" if full in self.package_symbol_to_module: reached.add(self.package_symbol_to_module[full]) else: - reached.add(self.normalize(full)) + reached.add(full) return reached def _build_import_resolver(repo_root: Path) -> _ImportResolver: - compat: dict[str, str] = {} symbols: dict[str, str] = {} - src_root = repo_root / _COMPAT_SRC_ROOT pkg_root = repo_root / _PACKAGES_ROOT - aces_root = src_root / "aces" - - if aces_root.is_dir(): - for file in sorted(aces_root.rglob("*.py")): - tree = _safe_parse(file) - if tree is None: - continue - target = _reexport_target(tree) - if target: - compat[_module_name_under(src_root, file)] = target init_files: list[tuple[Path, Path]] = [] - if aces_root.is_dir(): - init_files += [(f, src_root) for f in aces_root.rglob("__init__.py")] if pkg_root.is_dir(): init_files += [(f, pkg_root) for f in pkg_root.rglob("__init__.py")] for file, root in init_files: @@ -566,8 +525,8 @@ def _build_import_resolver(repo_root: Path) -> _ImportResolver: target = source_module if target is None: continue - symbols[f"{pkg}.{alias.name}"] = compat.get(target, target) - return _ImportResolver(compat, symbols) + symbols[f"{pkg}.{alias.name}"] = target + return _ImportResolver(symbols) def _artifact_module(token: str) -> str | None: diff --git a/tools/check_specification_coverage.py b/tools/check_specification_coverage.py index 531ac37a0..878ead66d 100644 --- a/tools/check_specification_coverage.py +++ b/tools/check_specification_coverage.py @@ -42,12 +42,12 @@ "simulation-emulation-platform", } IMPLEMENTATION_SURFACE_PATHS = { - "contract-models": "implementations/python/packages/aces_contracts", - "processor-pipeline": "implementations/python/packages/aces_processor", + "contract-models": "implementations/python/packages/raes_contracts", + "processor-pipeline": "implementations/python/packages/raes_processor", "sdl-pipeline": "implementations/python/packages/raes", } HISTORICAL_IMPLEMENTATION_SURFACE_PATHS = { - "sdl-pipeline": "implementations/python/packages/aces_sdl", + "sdl-pipeline": "implementations/python/packages/raes", } _MAX_FILE_BYTES = 2 * 1024 * 1024 @@ -791,7 +791,7 @@ def _validate_implementation_surfaces( def _execute_artifact(repo_root: Path, kind: str, path: Path) -> dict[str, object]: if kind == "sdl": - from aces_processor.compiler import compile_runtime_model + from raes_processor.compiler import compile_runtime_model from raes import admit_instantiated_scenario, instantiate_scenario, parse_sdl_file authored = parse_sdl_file(path) @@ -815,17 +815,17 @@ def _execute_artifact(repo_root: Path, kind: str, path: Path) -> dict[str, objec return {} payload = load_bounded_json_object(repo_root, path.relative_to(repo_root).as_posix(), max_bytes=_MAX_FILE_BYTES) if kind == "experiment-task": - from aces_contracts.contracts import ExperimentTaskModel + from raes_contracts.contracts import ExperimentTaskModel model = ExperimentTaskModel.model_validate(payload) return {"contract": model.model_dump(mode="json", by_alias=True)} if kind == "experiment-apparatus-context": - from aces_contracts.contracts import ExperimentApparatusContextModel + from raes_contracts.contracts import ExperimentApparatusContextModel model = ExperimentApparatusContextModel.model_validate(payload) return {"contract": model.model_dump(mode="json", by_alias=True)} if kind == "backend-profile": - from aces_contracts.backend_profiles import BackendProfileModel + from raes_contracts.backend_profiles import BackendProfileModel model = BackendProfileModel.model_validate(payload) return {"profile-manifest": model.model_dump(mode="json", by_alias=True)} diff --git a/tools/generate_contract_schemas.py b/tools/generate_contract_schemas.py index fede2186f..21ce7b448 100644 --- a/tools/generate_contract_schemas.py +++ b/tools/generate_contract_schemas.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""Generate checked-in JSON Schema bundles for ACES external contracts.""" +"""Generate checked-in JSON Schema bundles for RAES external contracts.""" from __future__ import annotations @@ -102,7 +102,7 @@ def write_schema_bundle(schemas_dir: Path) -> None: throwaway directory so it can compare the reference output against the published normative schemas without overwriting them. """ - from aces_contracts.contracts import schema_bundle + from raes_contracts.contracts import schema_bundle bundle = schema_bundle() for name, schema in bundle.items(): diff --git a/tools/policy/__init__.py b/tools/policy/__init__.py index 0c26f52a1..a9b2e48bc 100644 --- a/tools/policy/__init__.py +++ b/tools/policy/__init__.py @@ -1 +1 @@ -"""Repo policy enforcement helpers for ACES SDL.""" +"""Repo policy enforcement helpers for RAES SDL.""" diff --git a/tools/policy/adr_policy.yaml b/tools/policy/adr_policy.yaml index a2183b225..ef090ec47 100644 --- a/tools/policy/adr_policy.yaml +++ b/tools/policy/adr_policy.yaml @@ -19,11 +19,11 @@ generated_contracts: manifest_path: contracts/schema-publication-manifest.json manifest_records_root: contracts/schema-publication -compatibility_layer: +retired_namespace: root: implementations/python/src/aces owning_root: implementations/python/packages forbidden_import_prefixes: - - aces. + - aces concept_authority: reserved_path_tokens: @@ -39,20 +39,20 @@ concept_authority: - docs/decisions/adrs/adr-012-shared-concept-authority-and-aces-extension-discipline.md - docs/decisions/adrs/adr-062-concept-authority-catalog-governance-gate.md - implementations/python/tests/test_concept_authority.py - - implementations/python/packages/aces_contracts - - implementations/python/packages/aces_backend_protocols - - implementations/python/packages/aces_processor + - implementations/python/packages/raes_contracts + - implementations/python/packages/raes_backend_protocols + - implementations/python/packages/raes_processor - notes/reconstructed-work-order-after-gov-917.md adr_index: index_path: docs/decisions/adrs/README.md adr_glob: docs/decisions/adrs/adr-*.md -# ADR-015: SDL is the lower layer; raes must not import aces_processor. +# ADR-015: SDL is the lower layer; raes must not import raes_processor. layering_rules: - - id: aces_sdl_no_aces_processor + - id: raes_no_raes_processor scope_root: implementations/python/packages/raes - forbidden_top_level: aces_processor + forbidden_top_level: raes_processor # ADR-036 / MOD-001: explicit module ownership boundaries. module_boundaries: @@ -63,190 +63,190 @@ module_boundaries: - id: raes root: implementations/python/packages/raes allowed_top_level_imports: - - aces_contracts + - raes_contracts forbidden_import_prefixes: - - aces_processor - - aces_runtime - - aces_backend_protocols - - aces_backend_stubs - - aces_cli - - aces_conformance - - aces_mcp - - id: aces_processor - root: implementations/python/packages/aces_processor + - raes_processor + - raes_runtime + - raes_backend_protocols + - raes_backend_stubs + - raes_cli + - raes_conformance + - raes_mcp + - id: raes_processor + root: implementations/python/packages/raes_processor allowed_top_level_imports: - - aces_backend_protocols - - aces_contracts + - raes_backend_protocols + - raes_contracts - raes forbidden_import_prefixes: - - aces_runtime - - aces_backend_stubs - - aces_cli - - aces_conformance - - aces_mcp - - id: aces_runtime - root: implementations/python/packages/aces_runtime + - raes_runtime + - raes_backend_stubs + - raes_cli + - raes_conformance + - raes_mcp + - id: raes_runtime + root: implementations/python/packages/raes_runtime allowed_top_level_imports: - - aces_backend_protocols - - aces_contracts - - aces_processor + - raes_backend_protocols + - raes_contracts + - raes_processor forbidden_import_prefixes: - - aces_backend_stubs - - aces_cli - - aces_conformance - - aces_mcp + - raes_backend_stubs + - raes_cli + - raes_conformance + - raes_mcp public_import_prefixes: - aces_processor: - - aces_processor.compiler - - aces_processor.models - - aces_processor.planner - - id: aces_backend_protocols - root: implementations/python/packages/aces_backend_protocols + raes_processor: + - raes_processor.compiler + - raes_processor.models + - raes_processor.planner + - id: raes_backend_protocols + root: implementations/python/packages/raes_backend_protocols allowed_top_level_imports: - - aces_contracts - - id: aces_backend_stubs - root: implementations/python/packages/aces_backend_stubs + - raes_contracts + - id: raes_backend_stubs + root: implementations/python/packages/raes_backend_stubs allowed_top_level_imports: - - aces_backend_protocols - - aces_contracts - - aces_runtime + - raes_backend_protocols + - raes_contracts + - raes_runtime public_import_prefixes: - aces_runtime: - - aces_runtime.registry - - id: aces_reference_backend - root: implementations/python/packages/aces_reference_backend + raes_runtime: + - raes_runtime.registry + - id: raes_reference_backend + root: implementations/python/packages/raes_reference_backend allowed_top_level_imports: - - aces_backend_protocols - - aces_contracts - - aces_runtime + - raes_backend_protocols + - raes_contracts + - raes_runtime forbidden_import_prefixes: - - aces_backend_stubs - - aces_cli - - aces_conformance - - aces_mcp - - aces_processor + - raes_backend_stubs + - raes_cli + - raes_conformance + - raes_mcp + - raes_processor - raes public_import_prefixes: - aces_runtime: - - aces_runtime.registry - - id: aces_backend_libvirt - root: implementations/python/packages/aces_backend_libvirt + raes_runtime: + - raes_runtime.registry + - id: raes_backend_libvirt + root: implementations/python/packages/raes_backend_libvirt allowed_top_level_imports: - - aces_backend_protocols - - aces_contracts - - aces_runtime + - raes_backend_protocols + - raes_contracts + - raes_runtime forbidden_import_prefixes: - - aces_backend_stubs - - aces_cli - - aces_conformance - - aces_mcp - - aces_processor - - aces_reference_backend + - raes_backend_stubs + - raes_cli + - raes_conformance + - raes_mcp + - raes_processor + - raes_reference_backend - raes public_import_prefixes: - aces_runtime: - - aces_runtime.registry - - id: aces_operations - root: implementations/python/packages/aces_operations + raes_runtime: + - raes_runtime.registry + - id: raes_operations + root: implementations/python/packages/raes_operations allowed_top_level_imports: - - aces_backend_libvirt + - raes_backend_libvirt # Pure, side-effect-free manifest/capability renderers only (see - # public_import_prefixes below). aces_operations embeds the canonical + # public_import_prefixes below). raes_operations embeds the canonical # BackendManifestV2 payload + capability-gap report in the libvirt # scenario-evidence artifact instead of a hand-rolled summary, so the # evidence carries the same backend contract the rest of the stack uses. - - aces_backend_protocols - - aces_contracts - - aces_runtime + - raes_backend_protocols + - raes_contracts + - raes_runtime - raes forbidden_import_prefixes: - - aces_backend_stubs - - aces_cli - - aces_conformance - - aces_mcp - - aces_processor - - aces_reference_backend + - raes_backend_stubs + - raes_cli + - raes_conformance + - raes_mcp + - raes_processor + - raes_reference_backend public_import_prefixes: - aces_backend_libvirt: - - aces_backend_libvirt.target - - aces_backend_libvirt.techvault_native - - aces_backend_libvirt.guest_certified_driver - aces_backend_protocols: - - aces_backend_protocols.manifest - - aces_backend_protocols.capabilities - aces_runtime: - - aces_runtime.control_plane - - aces_runtime.manager - - aces_runtime.registry + raes_backend_libvirt: + - raes_backend_libvirt.target + - raes_backend_libvirt.techvault_native + - raes_backend_libvirt.guest_certified_driver + raes_backend_protocols: + - raes_backend_protocols.manifest + - raes_backend_protocols.capabilities + raes_runtime: + - raes_runtime.control_plane + - raes_runtime.manager + - raes_runtime.registry raes: - raes.parser - - id: aces_conformance - root: implementations/python/packages/aces_conformance + - id: raes_conformance + root: implementations/python/packages/raes_conformance allowed_top_level_imports: - - aces_backend_protocols - - aces_cli - - aces_contracts - - aces_processor - - aces_runtime + - raes_backend_protocols + - raes_cli + - raes_contracts + - raes_processor + - raes_runtime - raes public_import_prefixes: - aces_processor: - - aces_processor.compiler - - aces_processor.models - - aces_processor.planner - - aces_processor.reference - aces_runtime: - - aces_runtime.control_plane - - aces_runtime.registry - - aces_runtime.result_contracts - - id: aces_cli - root: implementations/python/packages/aces_cli + raes_processor: + - raes_processor.compiler + - raes_processor.models + - raes_processor.planner + - raes_processor.reference + raes_runtime: + - raes_runtime.control_plane + - raes_runtime.registry + - raes_runtime.result_contracts + - id: raes_cli + root: implementations/python/packages/raes_cli allowed_top_level_imports: - - aces_backend_protocols - - aces_backend_stubs - - aces_contracts - - aces_conformance - - aces_operations - - aces_processor + - raes_backend_protocols + - raes_backend_stubs + - raes_contracts + - raes_conformance + - raes_operations + - raes_processor - raes forbidden_import_prefixes: - - aces_runtime + - raes_runtime public_import_prefixes: # Plan-inspection CLI (issue #609): the backend-manifest-v2 adapter and # the pure stub-manifest declaration seam only -- never the stub runtime - # components (aces_backend_stubs.stubs pulls aces_runtime). - aces_backend_protocols: - - aces_backend_protocols.manifest - aces_backend_stubs: - - aces_backend_stubs.manifest - aces_operations: - - aces_operations.libvirt_evidence_run - - aces_operations.cross_backend_corpus - - aces_operations.techvault_live - aces_processor: - - aces_processor.exploit_path - - aces_processor.manifest - - aces_processor.models - - aces_processor.reference - - aces_processor.satisfiability - - id: aces_mcp - root: implementations/python/packages/aces_mcp + # components (raes_backend_stubs.stubs pulls raes_runtime). + raes_backend_protocols: + - raes_backend_protocols.manifest + raes_backend_stubs: + - raes_backend_stubs.manifest + raes_operations: + - raes_operations.libvirt_evidence_run + - raes_operations.cross_backend_corpus + - raes_operations.techvault_live + raes_processor: + - raes_processor.exploit_path + - raes_processor.manifest + - raes_processor.models + - raes_processor.reference + - raes_processor.satisfiability + - id: raes_mcp + root: implementations/python/packages/raes_mcp allowed_top_level_imports: - - aces_backend_protocols - - aces_backend_stubs - - aces_contracts - - aces_processor + - raes_backend_protocols + - raes_backend_stubs + - raes_contracts + - raes_processor - raes forbidden_import_prefixes: - - aces_runtime + - raes_runtime public_import_prefixes: - aces_processor: - - aces_processor.compiler - - aces_processor.manifest - - aces_processor.models - - aces_processor.planner - - id: aces_contracts - root: implementations/python/packages/aces_contracts + raes_processor: + - raes_processor.compiler + - raes_processor.manifest + - raes_processor.models + - raes_processor.planner + - id: raes_contracts + root: implementations/python/packages/raes_contracts allowed_top_level_imports: - raes diff --git a/tools/policy/oversized_allowlist.yaml b/tools/policy/oversized_allowlist.yaml index 2e5daee37..80ea8415c 100644 --- a/tools/policy/oversized_allowlist.yaml +++ b/tools/policy/oversized_allowlist.yaml @@ -7,16 +7,16 @@ # was re-baselined to the 500-line cap on 2026-07-12 (#561); see ADR-015 §2 and # its Amendments section. files: - - implementations/python/packages/aces_backend_libvirt/drivers/libvirt.py - - implementations/python/packages/aces_backend_libvirt/realization.py - - implementations/python/packages/aces_backend_libvirt/techvault_native.py - - implementations/python/packages/aces_contracts/workflow.py - - implementations/python/packages/aces_mcp/tools/authoring.py - - implementations/python/packages/aces_mcp/tools/inspection.py - - implementations/python/packages/aces_operations/_evidence_run_artifact.py - - implementations/python/packages/aces_runtime/control_plane_api.py - - implementations/python/packages/aces_runtime/control_plane.py - - implementations/python/packages/aces_runtime/workflow_result_contract_checks.py + - implementations/python/packages/raes_backend_libvirt/drivers/libvirt.py + - implementations/python/packages/raes_backend_libvirt/realization.py + - implementations/python/packages/raes_backend_libvirt/techvault_native.py + - implementations/python/packages/raes_contracts/workflow.py + - implementations/python/packages/raes_mcp/tools/authoring.py + - implementations/python/packages/raes_mcp/tools/inspection.py + - implementations/python/packages/raes_operations/_evidence_run_artifact.py + - implementations/python/packages/raes_runtime/control_plane_api.py + - implementations/python/packages/raes_runtime/control_plane.py + - implementations/python/packages/raes_runtime/workflow_result_contract_checks.py - implementations/python/packages/raes/composition.py - implementations/python/packages/raes/module_registry.py - implementations/python/packages/raes/orchestration.py diff --git a/tools/policy/repo_policy.py b/tools/policy/repo_policy.py index 747bc9225..cd6895a42 100644 --- a/tools/policy/repo_policy.py +++ b/tools/policy/repo_policy.py @@ -99,7 +99,7 @@ def structural_runner(input_document: dict) -> list[PolicyFailure]: ) ) failures.extend(_check_package_import_direction(repo_root, policy, changed)) - failures.extend(_check_compatibility_wrappers(repo_root, policy, changed)) + failures.extend(_check_retired_namespace(repo_root, policy, changed)) failures.extend(_check_layering_and_oversized(repo_root, policy, changed)) failures.extend(_check_module_boundaries(repo_root, policy, changed, check_set=check_set)) @@ -117,7 +117,7 @@ def structural_runner(input_document: dict) -> list[PolicyFailure]: # ADR-015: SDL→processor layering rule + 500-line source-file cap. # # These two gates catch unintentional regressions in normal contributions: -# a developer who accidentally writes `import aces_processor` in `raes/`, +# a developer who accidentally writes `import raes_processor` in `raes/`, # or one who pushes a >500-line file, or a split PR that forgets to drain # its allowlist entry. The policy and its YAML config are PR-mutable; PR # review (not this code) defends against deliberate weakening. See ADR-015. @@ -138,23 +138,23 @@ def structural_runner(input_document: dict) -> list[PolicyFailure]: # policy, not as data noise. _ADR015_INITIAL_OVERSIZED_FILES: frozenset[str] = frozenset( { - "implementations/python/packages/aces_backend_libvirt/drivers/libvirt.py", - "implementations/python/packages/aces_backend_libvirt/realization.py", - "implementations/python/packages/aces_backend_libvirt/techvault_native.py", - "implementations/python/packages/aces_backend_stubs/stubs.py", - "implementations/python/packages/aces_conformance/conformance.py", - "implementations/python/packages/aces_contracts/contracts.py", - "implementations/python/packages/aces_contracts/workflow.py", - "implementations/python/packages/aces_mcp/tools/authoring.py", - "implementations/python/packages/aces_mcp/tools/inspection.py", - "implementations/python/packages/aces_mcp/tools/reference.py", - "implementations/python/packages/aces_operations/_evidence_run_artifact.py", - "implementations/python/packages/aces_processor/compiler.py", - "implementations/python/packages/aces_processor/models.py", - "implementations/python/packages/aces_processor/planner.py", - "implementations/python/packages/aces_runtime/control_plane.py", - "implementations/python/packages/aces_runtime/control_plane_api.py", - "implementations/python/packages/aces_runtime/workflow_result_contract_checks.py", + "implementations/python/packages/raes_backend_libvirt/drivers/libvirt.py", + "implementations/python/packages/raes_backend_libvirt/realization.py", + "implementations/python/packages/raes_backend_libvirt/techvault_native.py", + "implementations/python/packages/raes_backend_stubs/stubs.py", + "implementations/python/packages/raes_conformance/conformance.py", + "implementations/python/packages/raes_contracts/contracts.py", + "implementations/python/packages/raes_contracts/workflow.py", + "implementations/python/packages/raes_mcp/tools/authoring.py", + "implementations/python/packages/raes_mcp/tools/inspection.py", + "implementations/python/packages/raes_mcp/tools/reference.py", + "implementations/python/packages/raes_operations/_evidence_run_artifact.py", + "implementations/python/packages/raes_processor/compiler.py", + "implementations/python/packages/raes_processor/models.py", + "implementations/python/packages/raes_processor/planner.py", + "implementations/python/packages/raes_runtime/control_plane.py", + "implementations/python/packages/raes_runtime/control_plane_api.py", + "implementations/python/packages/raes_runtime/workflow_result_contract_checks.py", "implementations/python/packages/raes/composition.py", "implementations/python/packages/raes/module_registry.py", "implementations/python/packages/raes/orchestration.py", @@ -530,8 +530,8 @@ def _check_drain(allowlist: frozenset[str], allowlist_path: str) -> list[PolicyF def _check_package_import_direction(repo_root: Path, policy: dict, changed: list[str]) -> list[PolicyFailure]: failures: list[PolicyFailure] = [] - package_root = repo_root / policy["compatibility_layer"]["owning_root"] - prefixes = tuple(policy["compatibility_layer"]["forbidden_import_prefixes"]) + package_root = repo_root / policy["retired_namespace"]["owning_root"] + prefixes = tuple(policy["retired_namespace"]["forbidden_import_prefixes"]) for rel_path in changed: if not rel_path.endswith(".py") or not path_matches_prefix( rel_path, package_root.relative_to(repo_root).as_posix() @@ -545,73 +545,38 @@ def _check_package_import_direction(repo_root: Path, policy: dict, changed: list if alias.name.startswith(prefixes): failures.append( PolicyFailure( - "compatibility-import-direction", - "owning packages must not import from compatibility-only aces.* modules", + "retired-namespace-import", + "owning packages must not import retired aces or aces_* modules", rel_path, ) ) elif isinstance(node, ast.ImportFrom) and node.module and node.module.startswith(prefixes): failures.append( PolicyFailure( - "compatibility-import-direction", - "owning packages must not import from compatibility-only aces.* modules", + "retired-namespace-import", + "owning packages must not import retired aces or aces_* modules", rel_path, ) ) return failures -def _check_compatibility_wrappers(repo_root: Path, policy: dict, changed: list[str]) -> list[PolicyFailure]: +def _check_retired_namespace(repo_root: Path, policy: dict, changed: list[str]) -> list[PolicyFailure]: failures: list[PolicyFailure] = [] - compat_root = policy["compatibility_layer"]["root"] + retired_root = policy["retired_namespace"]["root"] for rel_path in changed: - if not rel_path.endswith(".py") or not path_matches_prefix(rel_path, compat_root): + if not path_matches_prefix(rel_path, retired_root) or not (repo_root / rel_path).exists(): continue - path = repo_root / rel_path - tree = ast.parse(path.read_text(encoding="utf-8"), filename=rel_path) - if not _is_wrapper_module(tree): - failures.append( - PolicyFailure( - "compatibility-wrapper-only", - "compatibility-layer modules must remain wrappers/re-exports only", - rel_path, - ) + failures.append( + PolicyFailure( + "retired-namespace-path", + "the retired implementations/python/src/aces namespace must not be reintroduced", + rel_path, ) + ) return failures -def _is_wrapper_module(tree: ast.Module) -> bool: - allowed_import_names = {"reexport", "package_version"} - allowed_calls = {"_reexport", "package_version"} - for node in tree.body: - if isinstance(node, ast.Expr) and isinstance(node.value, ast.Constant) and isinstance(node.value.value, str): - continue - if isinstance(node, ast.ImportFrom): - if node.module != "aces._compat": - return False - if any(alias.name not in allowed_import_names for alias in node.names): - return False - continue - if isinstance(node, ast.Assign): - if any(not isinstance(target, ast.Name) for target in node.targets): - return False - target_names = {target.id for target in node.targets if isinstance(target, ast.Name)} - if target_names == {"__all__"} and isinstance(node.value, (ast.List, ast.Tuple)): - continue - if target_names == {"__version__"} and isinstance(node.value, ast.Call): - if isinstance(node.value.func, ast.Name) and node.value.func.id in allowed_calls: - continue - return False - if isinstance(node, ast.Expr) and isinstance(node.value, ast.Call): - if isinstance(node.value.func, ast.Name) and node.value.func.id == "_reexport": - continue - return False - if isinstance(node, ast.Delete): - continue - return False - return True - - def _validate_module_boundary_config(repo_root: Path, config: object) -> tuple[list[dict], list[PolicyFailure]]: """Validate the ADR-036 module-boundary policy block.""" @@ -764,7 +729,7 @@ def _check_module_boundaries( continue tree = ast.parse(path.read_text(encoding="utf-8"), filename=rel_path) failures.extend(_check_module_imports(rel_path, rule, known_modules, tree)) - if rule["id"] == "aces_backend_protocols" and rel_path.endswith("protocols.py"): + if rule["id"] == "raes_backend_protocols" and rel_path.endswith("protocols.py"): failures.extend(_check_backend_protocol_contract_annotations(rel_path, tree)) return failures @@ -886,7 +851,7 @@ def _check_backend_protocol_contract_annotations(rel_path: str, tree: ast.Module "backend-protocol-untyped-contract", ( f"{class_node.name}.{function.name} uses Any in its public protocol signature; " - "backend protocols must use neutral contract DTOs from aces_contracts" + "backend protocols must use neutral contract DTOs from raes_contracts" ), rel_path, ) diff --git a/tools/policy/requirement_order.yaml b/tools/policy/requirement_order.yaml index 9e22645b3..00197da5f 100644 --- a/tools/policy/requirement_order.yaml +++ b/tools/policy/requirement_order.yaml @@ -104,13 +104,12 @@ ownership: - docs/explain/reference - docs/explain/sdl - docs/decisions/adrs - - implementations/python/packages/aces_contracts - - implementations/python/packages/aces_backend_protocols - - implementations/python/packages/aces_backend_stubs - - implementations/python/packages/aces_conformance - - implementations/python/packages/aces_processor + - implementations/python/packages/raes_contracts + - implementations/python/packages/raes_backend_protocols + - implementations/python/packages/raes_backend_stubs + - implementations/python/packages/raes_conformance + - implementations/python/packages/raes_processor - implementations/python/pyproject.toml - - implementations/python/src/aces - implementations/python/tests - CHANGELOG.md sdl-language: @@ -129,10 +128,10 @@ ownership: - docs/index.md - docs/research/lineage/source-audit-2026-07-12.md - docs/research/participant-interactive-access - - implementations/python/packages/aces_backend_protocols - - implementations/python/packages/aces_backend_stubs - - implementations/python/packages/aces_contracts - - implementations/python/packages/aces_processor + - implementations/python/packages/raes_backend_protocols + - implementations/python/packages/raes_backend_stubs + - implementations/python/packages/raes_contracts + - implementations/python/packages/raes_processor - implementations/python/packages/raes - implementations/python/tests - specs/formal/participant-semantics @@ -146,11 +145,11 @@ ownership: - contracts/fixtures/processor-manifest - contracts/schemas/backend-manifest - contracts/schemas/processor-manifest - - implementations/python/packages/aces_backend_stubs - - implementations/python/packages/aces_backend_protocols - - implementations/python/packages/aces_conformance - - implementations/python/packages/aces_contracts - - implementations/python/packages/aces_processor + - implementations/python/packages/raes_backend_stubs + - implementations/python/packages/raes_backend_protocols + - implementations/python/packages/raes_conformance + - implementations/python/packages/raes_contracts + - implementations/python/packages/raes_processor - implementations/python/tests/test_backend_manifest.py - implementations/python/tests/test_processor_manifest.py - implementations/python/tests/test_runtime_conformance.py @@ -158,11 +157,11 @@ ownership: - CHANGELOG.md - tools/generate_contract_schemas.py runtime-core: - - implementations/python/packages/aces_processor - - implementations/python/packages/aces_contracts - - implementations/python/packages/aces_conformance - - implementations/python/packages/aces_backend_protocols - - implementations/python/packages/aces_backend_stubs + - implementations/python/packages/raes_processor + - implementations/python/packages/raes_contracts + - implementations/python/packages/raes_conformance + - implementations/python/packages/raes_backend_protocols + - implementations/python/packages/raes_backend_stubs - implementations/python/tests - contracts/schemas/control-plane - contracts/schemas/snapshots @@ -181,7 +180,7 @@ ownership: semantics-expansion: - contracts/schemas/sdl - docs/explain/reference - - implementations/python/packages/aces_processor + - implementations/python/packages/raes_processor - implementations/python/packages/raes - implementations/python/tests - specs/formal @@ -190,7 +189,7 @@ ownership: - docs - implementations/python/pyproject.toml - implementations/python/uv.lock - - implementations/python/packages/aces_mcp + - implementations/python/packages/raes_mcp - implementations/python/tests/test_mcp_server.py - CHANGELOG.md project-identity-migration: @@ -203,9 +202,9 @@ ownership: - examples/README.md - implementations/README.md - implementations/python/pyproject.toml - - implementations/python/packages/aces_cli - - implementations/python/packages/aces_mcp - - implementations/python/packages/aces_runtime/control_plane_api.py + - implementations/python/packages/raes_cli + - implementations/python/packages/raes_mcp + - implementations/python/packages/raes_runtime/control_plane_api.py - implementations/python/tests/test_mcp_server.py - implementations/python/tests/test_version_classification.py - implementations/python/tests/test_project_positioning.py @@ -223,20 +222,18 @@ ownership: - implementations/python/hatch_build.py - implementations/python/packages - implementations/python/pyproject.toml - - implementations/python/src/aces - implementations/python/tests - noxfile.py - specs - tools modularity-initiative: - implementations/python/packages/raes - - implementations/python/packages/aces_processor - - implementations/python/packages/aces_contracts - - implementations/python/packages/aces_conformance - - implementations/python/packages/aces_backend_protocols - - implementations/python/packages/aces_backend_stubs - - implementations/python/packages/aces_mcp - - implementations/python/src/aces + - implementations/python/packages/raes_processor + - implementations/python/packages/raes_contracts + - implementations/python/packages/raes_conformance + - implementations/python/packages/raes_backend_protocols + - implementations/python/packages/raes_backend_stubs + - implementations/python/packages/raes_mcp - implementations/python/tests - docs/api - docs/decisions/adrs @@ -259,7 +256,7 @@ ownership: - docs/research/experiment-core - docs/index.md - docs/specs/formal.md - - implementations/python/packages/aces_contracts + - implementations/python/packages/raes_contracts - implementations/python/tests/test_runtime_contracts.py - tools/generate_contract_schemas.py - CHANGELOG.md diff --git a/tools/real-daemon/README.md b/tools/real-daemon/README.md index 61fae3458..17fc591a1 100644 --- a/tools/real-daemon/README.md +++ b/tools/real-daemon/README.md @@ -1,7 +1,7 @@ # libvirt backend — real-daemon smoke test The hermetic `nox verify` graph exercises the libvirt/QEMU backend -(`aces_backend_libvirt`) through in-process fakes — it deliberately does **not** +(`raes_backend_libvirt`) through in-process fakes — it deliberately does **not** require a real `libvirtd`, QEMU/KVM, or privileged host access (see the issue #604 preflight note). This directory is the out-of-band counterpart: it runs the backend against a **real libvirt daemon** so we can periodically confirm the @@ -45,7 +45,7 @@ Exit code is non-zero if any check fails. ## Run it on any libvirt host -Copy `libvirt_smoke.py` next to an installed `aces_backend_libvirt` (with +Copy `libvirt_smoke.py` next to an installed `raes_backend_libvirt` (with `libvirt-python` available) on a host with libvirt/qemu/genisoimage and a `/var/lib/libvirt/images/cirros.img`, then: @@ -72,7 +72,7 @@ The reproducible operator/self-hosted command is: # Against a real libvirt/QEMU daemon (qemu:///system). Boots the appliance, # certifies from inside the guest, writes a machine-readable evidence artifact, # and returns non-zero on any failed stage. -aces libvirt techvault guest-certify \ +raes libvirt techvault guest-certify \ --scenario examples/scenarios/techvault-guest-certified.sdl.yaml \ --project-dir . --run-id guest-proof-1 --yes ``` diff --git a/tools/real-daemon/libvirt_smoke.py b/tools/real-daemon/libvirt_smoke.py index 11113ff5e..b54b27162 100644 --- a/tools/real-daemon/libvirt_smoke.py +++ b/tools/real-daemon/libvirt_smoke.py @@ -16,12 +16,12 @@ import traceback import libvirt -from aces_backend_libvirt import LibvirtProvisioner -from aces_backend_libvirt.cloudinit import CloudInitSpec, CloudInitUser -from aces_backend_libvirt.driver import DomainSpec, NetworkAcl, NetworkSpec -from aces_backend_libvirt.drivers.libvirt import LibvirtDeploymentDriver, _filter_owner_uuid -from aces_contracts.planning import ChangeAction, PlannedResource, ProvisioningPlan, ProvisionOp, RuntimeDomain -from aces_contracts.runtime_state import RuntimeSnapshot +from raes_backend_libvirt import LibvirtProvisioner +from raes_backend_libvirt.cloudinit import CloudInitSpec, CloudInitUser +from raes_backend_libvirt.driver import DomainSpec, NetworkAcl, NetworkSpec +from raes_backend_libvirt.drivers.libvirt import LibvirtDeploymentDriver, _filter_owner_uuid +from raes_contracts.planning import ChangeAction, PlannedResource, ProvisioningPlan, ProvisionOp, RuntimeDomain +from raes_contracts.runtime_state import RuntimeSnapshot URI = "qemu:///system" PREFIX = "acestest" diff --git a/tools/real-daemon/run_aws_guest_certify.sh b/tools/real-daemon/run_aws_guest_certify.sh index b329eca34..ab0980050 100755 --- a/tools/real-daemon/run_aws_guest_certify.sh +++ b/tools/real-daemon/run_aws_guest_certify.sh @@ -104,7 +104,7 @@ ssh "${SSHOPT[@]}" ubuntu@"$IP" "curl -LsSf https://astral.sh/uv/install.sh | sh echo "=== run guest-certified proof ===" ssh "${SSHOPT[@]}" ubuntu@"$IP" "sudo bash -lc 'cd /home/ubuntu/aces && implementations/python/.venv/bin/python -c \" from pathlib import Path -from aces_operations.libvirt_evidence_run import run_libvirt_evidence_run, LibvirtEvidenceRunConfig +from raes_operations.libvirt_evidence_run import run_libvirt_evidence_run, LibvirtEvidenceRunConfig r = run_libvirt_evidence_run(scenario_path=Path(\\\"examples/scenarios/techvault-guest-certified.sdl.yaml\\\").resolve(), project_dir=Path(\\\"/home/ubuntu/aces/gc-out\\\"), run_id=\\\"$RUN_ID\\\", config=LibvirtEvidenceRunConfig(evidence_source_mode=\\\"guest-certified\\\", connection_uri=\\\"qemu:///system\\\")) print(r.render()) import sys; sys.exit(0 if r.passed else 1) From 943517d18e95eeb0e2b2b618c3266a0400b856f7 Mon Sep 17 00:00:00 2001 From: Brad Edwards Date: Sun, 26 Jul 2026 01:12:52 +0200 Subject: [PATCH 02/10] fix: preserve source-size policy after package rename --- .../python/packages/raes_contracts/contracts/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/implementations/python/packages/raes_contracts/contracts/__init__.py b/implementations/python/packages/raes_contracts/contracts/__init__.py index 8fcfcc593..f3ddb889d 100644 --- a/implementations/python/packages/raes_contracts/contracts/__init__.py +++ b/implementations/python/packages/raes_contracts/contracts/__init__.py @@ -495,8 +495,6 @@ "validate_experiment_apparatus_context_archival_datetimes", "validate_experiment_run_against_task", "validate_experiment_run_archival_datetimes", "validate_experiment_study_against_tasks_and_runs", "validate_experiment_study_archival_datetimes", "validate_experiment_task_archival_datetimes", - "ValidationBasisDisclosureDocumentModel", - "validate_experiment_run_time_model", - "TimeCapabilitiesModel", + "ValidationBasisDisclosureDocumentModel", "validate_experiment_run_time_model", "TimeCapabilitiesModel", ] # fmt: on From a516249b57c985e376f8c3253f4a1971b3f268d1 Mon Sep 17 00:00:00 2001 From: Brad Edwards Date: Sun, 26 Jul 2026 01:14:27 +0200 Subject: [PATCH 03/10] docs: record the complete namespace hard-cut amendment --- .../adrs/adr-093-raes-rename-and-compatibility-boundaries.md | 1 + docs/decisions/adrs/adr-index.yaml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/decisions/adrs/adr-093-raes-rename-and-compatibility-boundaries.md b/docs/decisions/adrs/adr-093-raes-rename-and-compatibility-boundaries.md index d806473e6..3392597b7 100644 --- a/docs/decisions/adrs/adr-093-raes-rename-and-compatibility-boundaries.md +++ b/docs/decisions/adrs/adr-093-raes-rename-and-compatibility-boundaries.md @@ -145,3 +145,4 @@ land under its own owning ADR/spec/contract process. | 2026-07-24 | #866 | Revised the decision from compatibility-preserving rename boundaries to a hard cutover for public command, MCP, guidance, and Python distribution surfaces after implementation clarification. | | 2026-07-25 | #866-pypi-name-correction | Corrected the RAES PyPI distribution target to the `raes` project name and removed the erroneous suffix-bearing slug from current emitted surfaces. | | 2026-07-25 | #884 | MOD-884 supersedes the retained `aces_sdl` source-import boundary: top-level `raes` becomes the only SDL import namespace, with no compatibility alias or shim. | +| 2026-07-25 | #894 | Completed the hard cut across every owning Python package: `aces`, `aces_sdl`, and all `aces_*` import namespaces are removed without aliases, wrappers, import hooks, or fallbacks. | diff --git a/docs/decisions/adrs/adr-index.yaml b/docs/decisions/adrs/adr-index.yaml index c35c3ad7a..3f09fbb23 100644 --- a/docs/decisions/adrs/adr-index.yaml +++ b/docs/decisions/adrs/adr-index.yaml @@ -429,8 +429,9 @@ adrs: summary: "Required exact action provenance and capability-specific atomic participant batching." - id: ADR-093 path: docs/decisions/adrs/adr-093-raes-rename-and-compatibility-boundaries.md - pin: 42c87cc0065ae55c5deadfd8ab6e1b4a36ff9b8f03b7a28f17648e875ce6e950 + pin: 72725b8f09063b0b1d8ec65c4fda58e5648113035588ee4effbece5e0b1c3436 amendments: - ref: "#866" - ref: "#866-pypi-name-correction" - ref: "#884" + - ref: "#894" From a69397fb61eeb60e2d5d1933eada9bb53846bd5a Mon Sep 17 00:00:00 2001 From: Brad Edwards Date: Sun, 26 Jul 2026 01:16:00 +0200 Subject: [PATCH 04/10] style: normalize imports after namespace cutover --- .../raes/_realization_envelope_engine.py | 2 +- .../_realization_envelope_probe_payloads.py | 2 +- .../packages/raes/realization_designation.py | 2 +- .../packages/raes/realization_envelope.py | 2 +- .../packages/raes/validator/_variation.py | 2 +- .../python/packages/raes/variation.py | 2 +- .../techvault_observation.py | 2 +- .../python/packages/raes_cli/processor.py | 4 +- .../raes_conformance/conformance/profiles.py | 2 +- .../packages/raes_conformance/realization.py | 8 ++-- .../raes_mcp/tools/operation_support.py | 2 +- .../_evidence_run_validation.py | 2 +- .../raes_operations/libvirt_evidence_run.py | 2 +- .../raes_operations/techvault_live.py | 2 +- .../raes_processor/compiler/addresses.py | 2 +- .../raes_processor/compiler/provisioning.py | 2 +- .../raes_processor/compiler/time_model.py | 2 +- .../raes_processor/compiler/workflow_steps.py | 8 ++-- .../raes_processor/compiler/workflows.py | 2 +- .../raes_processor/exploit_path/_service.py | 2 +- .../raes_processor/models/__init__.py | 2 +- .../raes_processor/models/action_results.py | 2 +- .../models/behavior_grounding_checks.py | 2 +- .../models/behavior_ref_checks.py | 2 +- .../models/behavior_resources.py | 2 +- .../raes_processor/models/history_event.py | 10 ++--- .../models/history_event_payloads.py | 2 +- .../raes_processor/models/resources.py | 2 +- .../raes_processor/models/runtime_model.py | 2 +- .../planner/capability_domains.py | 2 +- .../packages/raes_processor/planner/core.py | 2 +- .../packages/raes_processor/reference.py | 4 +- .../raes_processor/satisfiability/_service.py | 16 +++---- .../satisfiability/_translation.py | 12 +++--- .../raes_processor/semantics/realization.py | 4 +- .../raes_runtime/control_plane_api.py | 4 +- .../raes_runtime/control_plane_api_models.py | 4 +- ...control_plane_api_participant_retrieval.py | 2 +- .../proposition_truth_contracts.py | 2 +- .../python/tests/libvirt_participant_proof.py | 4 +- .../tests/test_act_617_mixed_control.py | 2 +- ...api_409_participant_control_occurrences.py | 4 +- .../tests/test_api_421_time_contracts.py | 2 +- .../test_associated_artifact_manifests.py | 4 +- .../tests/test_authored_domain_topology.py | 6 +-- .../python/tests/test_backend_manifest.py | 2 +- .../python/tests/test_backend_profiles.py | 2 +- .../python/tests/test_behavioral_relations.py | 6 +-- .../python/tests/test_concept_authority.py | 2 +- .../tests/test_controlled_vocabularies.py | 2 +- .../python/tests/test_cross_backend_corpus.py | 2 +- .../tests/test_domain_controller_placement.py | 4 +- .../test_dsl_115_authoring_specificity.py | 2 +- ...st_dsl_437_benign_participant_execution.py | 6 +-- .../test_dsl_437_evaluation_authority.py | 2 +- .../test_enterprise_deployment_tenancy.py | 4 +- .../tests/test_example_schema_conformance.py | 4 +- .../python/tests/test_experiment_authoring.py | 2 +- .../tests/test_exploit_path_analysis.py | 18 ++++---- .../python/tests/test_fm2_semantics.py | 3 +- .../tests/test_initial_service_state.py | 5 +-- .../test_instantiated_scenario_schema.py | 2 +- .../tests/test_libvirt_backend_envelopes.py | 6 +-- .../test_libvirt_backend_guest_certified.py | 3 +- ...rt_backend_guest_certified_real_libvirt.py | 2 +- .../tests/test_libvirt_backend_manifest.py | 3 +- ...st_libvirt_backend_manifest_publication.py | 7 ++-- .../tests/test_libvirt_backend_registry.py | 1 - ...t_libvirt_backend_techvault_integration.py | 5 +-- .../test_libvirt_backend_techvault_native.py | 5 +-- ..._libvirt_backend_techvault_real_libvirt.py | 2 +- .../python/tests/test_libvirt_conformance.py | 6 +-- .../python/tests/test_libvirt_evidence_run.py | 2 +- .../tests/test_libvirt_participant_runtime.py | 23 +++++----- .../python/tests/test_mcp_server.py | 2 +- .../tests/test_network_namespace_sharing.py | 11 +++-- .../test_participant_backend_contracts.py | 4 +- ...est_participant_implementation_manifest.py | 2 +- .../test_participant_interactive_access.py | 4 +- .../python/tests/test_pipeline_determinism.py | 3 +- .../python/tests/test_plan_inspection_cli.py | 18 ++++---- .../python/tests/test_plan_projection.py | 2 +- .../python/tests/test_processor_manifest.py | 2 +- .../tests/test_proposition_semantics.py | 2 +- .../tests/test_random_stream_contracts.py | 2 +- .../tests/test_random_stream_determinism.py | 4 +- .../tests/test_random_stream_profile.py | 2 +- .../test_realization_envelope_contract.py | 4 +- .../test_realization_envelope_relation.py | 26 ++++++------ .../test_reference_backend_components.py | 3 +- .../test_reference_backend_conformance.py | 3 +- ...st_reference_backend_docker_integration.py | 7 ++-- .../tests/test_reference_backend_manifest.py | 5 +-- .../test_reference_backend_provenance.py | 5 +-- .../test_reference_backend_provisioner.py | 3 +- .../tests/test_reference_backend_registry.py | 1 - .../tests/test_reference_field_pruning.py | 4 +- .../python/tests/test_reference_models.py | 2 +- .../python/tests/test_reference_processor.py | 2 +- .../tests/test_reusable_asset_trust_policy.py | 2 +- .../python/tests/test_run_300_lifecycle.py | 15 ++++--- ...n_305_participant_runtime_state_history.py | 11 +++-- ..._run_306_participant_decision_lifecycle.py | 4 +- .../test_run_307_shared_operational_state.py | 9 ++-- ...un_308_concurrent_participant_execution.py | 4 +- ...t_run_311_participant_episode_lifecycle.py | 3 +- .../python/tests/test_runtime_conformance.py | 11 +++-- .../python/tests/test_runtime_contracts.py | 4 +- .../tests/test_runtime_control_plane.py | 16 +++---- .../tests/test_runtime_control_plane_api.py | 13 +++--- .../python/tests/test_runtime_datastore.py | 1 - .../tests/test_runtime_fact_bindings.py | 4 +- .../tests/test_runtime_forwarding_agent.py | 3 +- .../python/tests/test_runtime_mail_service.py | 3 +- .../python/tests/test_runtime_manager.py | 5 +-- .../python/tests/test_runtime_models.py | 3 +- .../tests/test_runtime_network_detection.py | 3 +- .../tests/test_runtime_network_sensor.py | 3 +- .../tests/test_runtime_orchestration.py | 3 +- .../python/tests/test_runtime_planner.py | 9 ++-- .../python/tests/test_runtime_registry.py | 5 +-- .../tests/test_runtime_security_monitoring.py | 3 +- .../tests/test_runtime_service_listeners.py | 3 +- .../python/tests/test_runtime_ssh_server.py | 7 ++-- .../tests/test_sce_004_goal_oriented_steps.py | 8 ++-- .../tests/test_sce_006_cleanup_contracts.py | 4 +- .../tests/test_scenario_satisfiability.py | 2 +- .../python/tests/test_scenarios.py | 2 +- .../test_scientific_scenario_completeness.py | 2 +- .../python/tests/test_sdl_format_cli.py | 2 +- implementations/python/tests/test_sdl_fuzz.py | 1 - .../python/tests/test_sdl_identifiers.py | 42 +++++++++---------- .../python/tests/test_sdl_models.py | 1 - .../python/tests/test_sdl_module_registry.py | 8 ++-- .../python/tests/test_sdl_parser.py | 4 +- .../python/tests/test_sdl_phase_contracts.py | 4 +- .../python/tests/test_sdl_realworld.py | 1 - .../python/tests/test_sdl_stress.py | 1 - .../python/tests/test_sdl_validator.py | 1 - .../python/tests/test_sdl_variation_points.py | 6 +-- .../test_sem_208_participant_behavior.py | 12 +++--- ...st_sem_211_participant_action_semantics.py | 14 +++---- ...m_212_participant_attribution_semantics.py | 22 +++++----- ..._sem_213_temporal_participant_semantics.py | 16 +++---- ..._215_participant_outcome_interpretation.py | 22 +++++----- .../tests/test_sem_216_boundary_semantics.py | 4 +- .../python/tests/test_sem_218_realization.py | 9 ++-- .../test_sem_218_realization_designation.py | 22 +++++----- .../tests/test_sem_218_runtime_realization.py | 7 ++-- ...st_sem_220_participant_decision_surface.py | 4 +- ...t_sem_224_observability_plane_semantics.py | 10 ++--- .../test_sem_225_augmentation_semantics.py | 4 +- .../test_sem_226_participant_exposure.py | 2 +- .../tests/test_sem_227_shared_time_model.py | 4 +- .../test_sem_230_information_flow_control.py | 2 +- .../python/tests/test_semantic_profiles.py | 2 +- .../python/tests/test_semantics_objectives.py | 1 - .../python/tests/test_semantics_planner.py | 1 - .../test_stateful_realization_resources.py | 5 +-- .../tests/test_truth_result_contracts.py | 2 +- .../python/tests/test_uco_alignment.py | 2 +- .../tests/test_validation_disclosure.py | 18 ++++---- .../python/tests/test_validation_profiles.py | 2 +- .../tests/test_version_classification.py | 3 +- tools/check_behavioral_relation_claims.py | 2 +- tools/check_formal_semantic_validation.py | 7 +++- tools/check_project_positioning.py | 2 +- tools/check_sdl_lineage.py | 2 +- tools/check_specification_coverage.py | 6 ++- tools/real-daemon/libvirt_smoke.py | 13 +++++- 170 files changed, 413 insertions(+), 455 deletions(-) diff --git a/implementations/python/packages/raes/_realization_envelope_engine.py b/implementations/python/packages/raes/_realization_envelope_engine.py index 592618ade..342228781 100644 --- a/implementations/python/packages/raes/_realization_envelope_engine.py +++ b/implementations/python/packages/raes/_realization_envelope_engine.py @@ -16,6 +16,7 @@ from dataclasses import dataclass from enum import Enum +from pydantic import BaseModel from raes_contracts.realization_envelope import ( Closure, ClosureOverlay, @@ -27,7 +28,6 @@ WitnessPolicy, scope_specificity, ) -from pydantic import BaseModel from ._realization_envelope_domains import default_witness_value, domain_subset diff --git a/implementations/python/packages/raes/_realization_envelope_probe_payloads.py b/implementations/python/packages/raes/_realization_envelope_probe_payloads.py index 5070bb6d9..eba63553e 100644 --- a/implementations/python/packages/raes/_realization_envelope_probe_payloads.py +++ b/implementations/python/packages/raes/_realization_envelope_probe_payloads.py @@ -6,8 +6,8 @@ from dataclasses import dataclass from enum import Enum -from raes_contracts.realization_envelope import Posture from pydantic import BaseModel +from raes_contracts.realization_envelope import Posture from ._realization_envelope_domains import out_of_domain_candidates from ._realization_envelope_engine import ( diff --git a/implementations/python/packages/raes/realization_designation.py b/implementations/python/packages/raes/realization_designation.py index 15dbbea7d..c6130747f 100644 --- a/implementations/python/packages/raes/realization_designation.py +++ b/implementations/python/packages/raes/realization_designation.py @@ -7,8 +7,8 @@ from dataclasses import dataclass from enum import Enum -from raes_contracts.vocabulary import Closure from pydantic import BaseModel, ConfigDict, Field, model_validator +from raes_contracts.vocabulary import Closure from ._base import SDLModel from ._identifiers import PortableIdentifier diff --git a/implementations/python/packages/raes/realization_envelope.py b/implementations/python/packages/raes/realization_envelope.py index b852ded51..8df4131a2 100644 --- a/implementations/python/packages/raes/realization_envelope.py +++ b/implementations/python/packages/raes/realization_envelope.py @@ -35,9 +35,9 @@ from copy import deepcopy from dataclasses import dataclass +from pydantic import ValidationError from raes_contracts.diagnostics import Diagnostic, Severity from raes_contracts.realization_envelope import RealizationEnvelopeModel, WitnessPolicy, scalar_in_domain -from pydantic import ValidationError from ._errors import SDLInstantiationError, SDLValidationError from ._realization_envelope_domains import domain_subset, positive_probe_values diff --git a/implementations/python/packages/raes/validator/_variation.py b/implementations/python/packages/raes/validator/_variation.py index 3b0eb6d0b..e46e8f056 100644 --- a/implementations/python/packages/raes/validator/_variation.py +++ b/implementations/python/packages/raes/validator/_variation.py @@ -4,6 +4,7 @@ import math +from pydantic import ValidationError from raes_contracts.bounded_domains import ( BooleanDomain, EnumDomain, @@ -11,7 +12,6 @@ NumericIntervalDomain, NumericType, ) -from pydantic import ValidationError from .._errors import SDLValidationError from .._identifiers import QualifiedName diff --git a/implementations/python/packages/raes/variation.py b/implementations/python/packages/raes/variation.py index 78a875554..19d44366e 100644 --- a/implementations/python/packages/raes/variation.py +++ b/implementations/python/packages/raes/variation.py @@ -5,6 +5,7 @@ from enum import Enum from typing import Annotated, Literal +from pydantic import AfterValidator, Field, WithJsonSchema, model_validator from raes_contracts.bounded_domains import ( BooleanDomain, EnumDomain, @@ -12,7 +13,6 @@ GovernedReferenceDomain, NumericIntervalDomain, ) -from pydantic import AfterValidator, Field, WithJsonSchema, model_validator from ._base import SDLModel from ._identifiers import PortableIdentifier, require_qualified_identifier diff --git a/implementations/python/packages/raes_backend_libvirt/techvault_observation.py b/implementations/python/packages/raes_backend_libvirt/techvault_observation.py index 43438b718..37a6b025d 100644 --- a/implementations/python/packages/raes_backend_libvirt/techvault_observation.py +++ b/implementations/python/packages/raes_backend_libvirt/techvault_observation.py @@ -9,8 +9,8 @@ from collections.abc import Mapping, Sequence from pathlib import Path -from raes_contracts.realization_envelope import ObservationStrength, RealizationConcern from defusedxml import ElementTree as SafeET +from raes_contracts.realization_envelope import ObservationStrength, RealizationConcern from .driver import RealizationObservation from .techvault_matrix import as_sequence diff --git a/implementations/python/packages/raes_cli/processor.py b/implementations/python/packages/raes_cli/processor.py index 6ffecb1de..59e59b9a6 100644 --- a/implementations/python/packages/raes_cli/processor.py +++ b/implementations/python/packages/raes_cli/processor.py @@ -8,6 +8,8 @@ from typing import Any import typer +from pydantic import ValidationError +from raes import SDLError, SDLInstantiationError, SDLParseError, SDLValidationError from raes_backend_protocols.manifest import ( BackendManifest, BackendManifestEnvelopeUnsupportedError, @@ -36,8 +38,6 @@ SatisfiabilityOperationalError, analyze_scenario_file, ) -from pydantic import ValidationError -from raes import SDLError, SDLInstantiationError, SDLParseError, SDLValidationError app = typer.Typer(help="Processor declarations and compatibility surfaces.") diff --git a/implementations/python/packages/raes_conformance/conformance/profiles.py b/implementations/python/packages/raes_conformance/conformance/profiles.py index 4bd8a2b32..2d09da932 100644 --- a/implementations/python/packages/raes_conformance/conformance/profiles.py +++ b/implementations/python/packages/raes_conformance/conformance/profiles.py @@ -6,6 +6,7 @@ from enum import Enum from pathlib import Path +from pydantic import ValidationError from raes_contracts.backend_profiles import ( BackendProfileModel, backend_profile_path, @@ -14,7 +15,6 @@ ) from raes_contracts.corpus import FIXTURES, corpus_family_root from raes_contracts.diagnostics import Diagnostic -from pydantic import ValidationError from raes_conformance.conformance.diagnostics import _diagnostic diff --git a/implementations/python/packages/raes_conformance/realization.py b/implementations/python/packages/raes_conformance/realization.py index f8c4a8db3..f6860a06f 100644 --- a/implementations/python/packages/raes_conformance/realization.py +++ b/implementations/python/packages/raes_conformance/realization.py @@ -6,10 +6,6 @@ import json from dataclasses import dataclass -from raes_contracts.diagnostics import Diagnostic -from raes_contracts.realization_envelope import BackendRealizationEnvelopeModel -from raes_processor.reference import run_reference_processor -from raes_runtime.registry import RuntimeTarget from raes.realization_envelope import ( NegativeProbe, PositiveProbe, @@ -17,6 +13,10 @@ generate_positive_probes, ) from raes.scenario import Scenario +from raes_contracts.diagnostics import Diagnostic +from raes_contracts.realization_envelope import BackendRealizationEnvelopeModel +from raes_processor.reference import run_reference_processor +from raes_runtime.registry import RuntimeTarget from ._realization_models import ( ExecutionBasis, diff --git a/implementations/python/packages/raes_mcp/tools/operation_support.py b/implementations/python/packages/raes_mcp/tools/operation_support.py index 547885130..5712e6563 100644 --- a/implementations/python/packages/raes_mcp/tools/operation_support.py +++ b/implementations/python/packages/raes_mcp/tools/operation_support.py @@ -41,7 +41,6 @@ def compile_pipeline( if size_error is not None: return {"error": json.loads(size_error), "stages": [], "scenario": None, "model": None} - from raes_processor.compiler import compile_runtime_model from raes import ( SDLInstantiationError, SDLMigrationPolicy, @@ -50,6 +49,7 @@ def compile_pipeline( instantiate_scenario, parse_sdl, ) + from raes_processor.compiler import compile_runtime_model params, parameter_error = parse_parameters(parameters_json) if parameter_error is not None: diff --git a/implementations/python/packages/raes_operations/_evidence_run_validation.py b/implementations/python/packages/raes_operations/_evidence_run_validation.py index 4b4e72a77..ee413d5a9 100644 --- a/implementations/python/packages/raes_operations/_evidence_run_validation.py +++ b/implementations/python/packages/raes_operations/_evidence_run_validation.py @@ -14,13 +14,13 @@ from collections.abc import Mapping from typing import Any +from pydantic import BaseModel from raes_contracts.contracts import ( BackendManifestV2Model, EvaluationHistoryEventModel, EvaluationResultStateModel, ExperimentRealizedFormDisclosureModel, ) -from pydantic import BaseModel from raes_operations._evidence_run_artifact import EVIDENCE_RUN_SCHEMA from raes_operations._evidence_run_realization import _validate_realization_sources diff --git a/implementations/python/packages/raes_operations/libvirt_evidence_run.py b/implementations/python/packages/raes_operations/libvirt_evidence_run.py index 48fd3fea6..fb3f474f7 100644 --- a/implementations/python/packages/raes_operations/libvirt_evidence_run.py +++ b/implementations/python/packages/raes_operations/libvirt_evidence_run.py @@ -41,11 +41,11 @@ from pathlib import Path from typing import Any +from raes.parser import parse_sdl_file from raes_backend_libvirt.target import create_libvirt_target from raes_backend_libvirt.techvault_native import TechVaultNativeLibvirtDriver from raes_runtime.control_plane import RuntimeControlPlane from raes_runtime.manager import RuntimeManager -from raes.parser import parse_sdl_file from raes_operations._evidence_run_artifact import EVIDENCE_RUN_SCHEMA, assemble_artifact from raes_operations._evidence_run_native import _default_native_driver_factory, _run_native_mode diff --git a/implementations/python/packages/raes_operations/techvault_live.py b/implementations/python/packages/raes_operations/techvault_live.py index e8d14ca2d..e9c3de160 100644 --- a/implementations/python/packages/raes_operations/techvault_live.py +++ b/implementations/python/packages/raes_operations/techvault_live.py @@ -11,11 +11,11 @@ from pathlib import Path from typing import Any +from raes.parser import parse_sdl_file from raes_backend_libvirt.target import create_libvirt_target from raes_backend_libvirt.techvault_native import TechVaultNativeLibvirtDriver, expected_surface from raes_runtime.control_plane import RuntimeControlPlane from raes_runtime.manager import RuntimeManager -from raes.parser import parse_sdl_file from raes_operations._evidence_run_validation import redaction_violations from raes_operations._techvault_cleanup import cleanup_native_snapshot diff --git a/implementations/python/packages/raes_processor/compiler/addresses.py b/implementations/python/packages/raes_processor/compiler/addresses.py index baf4fb77e..fd679959b 100644 --- a/implementations/python/packages/raes_processor/compiler/addresses.py +++ b/implementations/python/packages/raes_processor/compiler/addresses.py @@ -2,12 +2,12 @@ from collections.abc import Mapping -from raes_backend_protocols.domain_topology import DomainTopologyBinding from raes.nodes import NodeType from raes.scenario import InstantiatedScenario, Scenario from raes.semantics.domain_topology import ( DomainNodeBinding, ) +from raes_backend_protocols.domain_topology import DomainTopologyBinding from .support import _address diff --git a/implementations/python/packages/raes_processor/compiler/provisioning.py b/implementations/python/packages/raes_processor/compiler/provisioning.py index ef32b7df2..9e31d349f 100644 --- a/implementations/python/packages/raes_processor/compiler/provisioning.py +++ b/implementations/python/packages/raes_processor/compiler/provisioning.py @@ -3,7 +3,6 @@ from dataclasses import dataclass from typing import Any -from raes_backend_protocols.domain_topology import DomainTopologyBinding from raes.entities import flatten_entities from raes.features import Feature from raes.nodes import Node, NodeType @@ -12,6 +11,7 @@ DomainNodeRole, DomainTopologyAnalysis, ) +from raes_backend_protocols.domain_topology import DomainTopologyBinding from ..models import ( CompiledCapabilityConstraint, diff --git a/implementations/python/packages/raes_processor/compiler/time_model.py b/implementations/python/packages/raes_processor/compiler/time_model.py index 30bbdb250..2ab1f71dd 100644 --- a/implementations/python/packages/raes_processor/compiler/time_model.py +++ b/implementations/python/packages/raes_processor/compiler/time_model.py @@ -1,5 +1,6 @@ """Compile authored shared time declarations into canonical runtime metadata.""" +from raes.scenario import InstantiatedScenario from raes_contracts.addressing import render_compiled_address from raes_contracts.contracts.time_model import ( ClockDeclarationModel, @@ -11,7 +12,6 @@ TimeModelDeclarationModel, TimeProgressionPolicyDeclarationModel, ) -from raes.scenario import InstantiatedScenario from ..models.time_model import ( CompiledClock, diff --git a/implementations/python/packages/raes_processor/compiler/workflow_steps.py b/implementations/python/packages/raes_processor/compiler/workflow_steps.py index a616934dc..db834ebec 100644 --- a/implementations/python/packages/raes_processor/compiler/workflow_steps.py +++ b/implementations/python/packages/raes_processor/compiler/workflow_steps.py @@ -2,10 +2,6 @@ from dataclasses import dataclass, field -from raes_backend_protocols.capabilities import ( - WorkflowFeature, - WorkflowStatePredicateFeature, -) from raes.orchestration import ( Workflow, WorkflowPredicate, @@ -17,6 +13,10 @@ from raes.semantics.workflow import ( workflow_step_semantic_contract, ) +from raes_backend_protocols.capabilities import ( + WorkflowFeature, + WorkflowStatePredicateFeature, +) from ..models import ( AssertionRuntime, diff --git a/implementations/python/packages/raes_processor/compiler/workflows.py b/implementations/python/packages/raes_processor/compiler/workflows.py index 748b2ad2c..2ceacf44c 100644 --- a/implementations/python/packages/raes_processor/compiler/workflows.py +++ b/implementations/python/packages/raes_processor/compiler/workflows.py @@ -2,9 +2,9 @@ from typing import Any -from raes_contracts.versions import WORKFLOW_STATE_SCHEMA_VERSION from raes.orchestration import Workflow, WorkflowStepType from raes.scenario import InstantiatedScenario +from raes_contracts.versions import WORKFLOW_STATE_SCHEMA_VERSION from ..models import ( AssertionRuntime, diff --git a/implementations/python/packages/raes_processor/exploit_path/_service.py b/implementations/python/packages/raes_processor/exploit_path/_service.py index 84f15d443..35e3d9a52 100644 --- a/implementations/python/packages/raes_processor/exploit_path/_service.py +++ b/implementations/python/packages/raes_processor/exploit_path/_service.py @@ -7,6 +7,7 @@ from json import JSONDecodeError from pathlib import Path +from pydantic import ValidationError from raes_contracts.exploit_path import ( ExploitPathAnalysisEvidenceModel, ExploitPathAnalysisInputModel, @@ -15,7 +16,6 @@ UnsupportedExploitPathAnalysisModel, ) from raes_contracts.satisfiability import SourceArtifactIdentityModel, canonical_contract_digest -from pydantic import ValidationError from ._diagnostics import ( FAIL_CLOSED_CODES, diff --git a/implementations/python/packages/raes_processor/models/__init__.py b/implementations/python/packages/raes_processor/models/__init__.py index 6df011867..a5eec3545 100644 --- a/implementations/python/packages/raes_processor/models/__init__.py +++ b/implementations/python/packages/raes_processor/models/__init__.py @@ -11,6 +11,7 @@ the current ``RuntimeSnapshot`` and emits a composite ``ExecutionPlan``. """ +from raes.participant_temporal_semantics import ParticipantTemporalState as ParticipantTemporalState from raes_contracts.diagnostics import Diagnostic as Diagnostic from raes_contracts.diagnostics import Severity as Severity from raes_contracts.evaluation import EvaluationExecutionContract as EvaluationExecutionContract @@ -85,7 +86,6 @@ from raes_contracts.workflow import WorkflowStepLifecycle as WorkflowStepLifecycle from raes_contracts.workflow import WorkflowStepOutcome as WorkflowStepOutcome from raes_contracts.workflow import validate_workflow_step_result_contract as validate_workflow_step_result_contract -from raes.participant_temporal_semantics import ParticipantTemporalState as ParticipantTemporalState from raes_processor.semantics.realization import CompiledRealizationRequirement as CompiledRealizationRequirement diff --git a/implementations/python/packages/raes_processor/models/action_results.py b/implementations/python/packages/raes_processor/models/action_results.py index 03706b58a..dcedea2d2 100644 --- a/implementations/python/packages/raes_processor/models/action_results.py +++ b/implementations/python/packages/raes_processor/models/action_results.py @@ -4,8 +4,8 @@ from dataclasses import dataclass from typing import Any -from raes_contracts.participant_behavior import ParticipantActionPreconditionStatus, ParticipantActionResultStatus from raes.participant_behavior import ParticipantEffectClass, ParticipantFailureClass, ParticipantPreconditionClass +from raes_contracts.participant_behavior import ParticipantActionPreconditionStatus, ParticipantActionResultStatus from .behavior_resources import ( _observation_point_matches_action_instance, diff --git a/implementations/python/packages/raes_processor/models/behavior_grounding_checks.py b/implementations/python/packages/raes_processor/models/behavior_grounding_checks.py index 8479f4bbf..065354fdb 100644 --- a/implementations/python/packages/raes_processor/models/behavior_grounding_checks.py +++ b/implementations/python/packages/raes_processor/models/behavior_grounding_checks.py @@ -2,9 +2,9 @@ from collections.abc import Iterable, Iterator, Mapping +from raes.participant_outcome_semantics import OutcomeInterpretationSourceLayer from raes_contracts.participant_behavior import ParticipantBehaviorHistoryEventType from raes_contracts.participant_episode import ParticipantEpisodeHistoryEvent -from raes.participant_outcome_semantics import OutcomeInterpretationSourceLayer from .behavior_ref_checks import ( _participant_behavior_attribution_candidate_ref_violations, diff --git a/implementations/python/packages/raes_processor/models/behavior_ref_checks.py b/implementations/python/packages/raes_processor/models/behavior_ref_checks.py index 39fef7d8a..12f440cee 100644 --- a/implementations/python/packages/raes_processor/models/behavior_ref_checks.py +++ b/implementations/python/packages/raes_processor/models/behavior_ref_checks.py @@ -3,8 +3,8 @@ from collections.abc import Iterable, Mapping from typing import Any -from raes_contracts.participant_behavior import ParticipantBehaviorHistoryEventType from raes.participant_attribution_semantics import ParticipantAttributionCandidateKind +from raes_contracts.participant_behavior import ParticipantBehaviorHistoryEventType from .attribution import ParticipantAttributionCandidate, ParticipantAttributionEdge from .behavior_resources import ( diff --git a/implementations/python/packages/raes_processor/models/behavior_resources.py b/implementations/python/packages/raes_processor/models/behavior_resources.py index be9ea61be..051ade3db 100644 --- a/implementations/python/packages/raes_processor/models/behavior_resources.py +++ b/implementations/python/packages/raes_processor/models/behavior_resources.py @@ -4,11 +4,11 @@ from dataclasses import dataclass, field from typing import Any +from raes.semantics.workflow import WorkflowStepSemanticContract from raes_backend_protocols.capabilities import WorkflowFeature, WorkflowStatePredicateFeature from raes_contracts.participant_behavior import ParticipantObservationStatus from raes_contracts.versions import WORKFLOW_STATE_SCHEMA_VERSION from raes_contracts.workflow import WorkflowExecutionContract, WorkflowResultContract, WorkflowStepOutcome -from raes.semantics.workflow import WorkflowStepSemanticContract from .resources import ResolvedResource diff --git a/implementations/python/packages/raes_processor/models/history_event.py b/implementations/python/packages/raes_processor/models/history_event.py index d889f89b5..cf5c88527 100644 --- a/implementations/python/packages/raes_processor/models/history_event.py +++ b/implementations/python/packages/raes_processor/models/history_event.py @@ -4,6 +4,11 @@ from dataclasses import dataclass, field from typing import Any +from raes.participant_attribution_semantics import ( + OUTCOME_ATTRIBUTION_CANDIDATE_KINDS, + ParticipantAttributionCandidateKind, +) +from raes.participant_behavior import ParticipantInteractionClass from raes_contracts.participant_behavior import ( ParticipantActionResultStatus, ParticipantAdmissionDisposition, @@ -14,11 +19,6 @@ ParticipantRuntimeLifecyclePhase, participant_lifecycle_field_violation_messages, ) -from raes.participant_attribution_semantics import ( - OUTCOME_ATTRIBUTION_CANDIDATE_KINDS, - ParticipantAttributionCandidateKind, -) -from raes.participant_behavior import ParticipantInteractionClass from .action_results import ParticipantActionResult from .attribution import ParticipantAttributionEdge diff --git a/implementations/python/packages/raes_processor/models/history_event_payloads.py b/implementations/python/packages/raes_processor/models/history_event_payloads.py index 304d2be46..1df34b91f 100644 --- a/implementations/python/packages/raes_processor/models/history_event_payloads.py +++ b/implementations/python/packages/raes_processor/models/history_event_payloads.py @@ -3,6 +3,7 @@ from collections.abc import Iterable, Mapping from typing import Any +from raes.participant_behavior import ParticipantInteractionClass from raes_contracts.participant_behavior import ( ParticipantAdmissionDisposition, ParticipantBehaviorHistoryEventType, @@ -10,7 +11,6 @@ ParticipantPhaseRealization, ParticipantRuntimeLifecyclePhase, ) -from raes.participant_behavior import ParticipantInteractionClass from .action_results import ParticipantActionResult from .attribution import ParticipantAttributionEdge diff --git a/implementations/python/packages/raes_processor/models/resources.py b/implementations/python/packages/raes_processor/models/resources.py index 11e0a2746..62c821d63 100644 --- a/implementations/python/packages/raes_processor/models/resources.py +++ b/implementations/python/packages/raes_processor/models/resources.py @@ -4,12 +4,12 @@ from dataclasses import dataclass, field from typing import TYPE_CHECKING, Any +from raes.participant_behavior import ParticipantFailureClass from raes_backend_protocols.domain_topology import DomainTopologyBinding from raes_contracts.addressing import require_compiled_address from raes_contracts.diagnostics import Diagnostic from raes_contracts.evaluation import EvaluationExecutionContract, EvaluationResultContract from raes_contracts.participant_episode import PARTICIPANT_EPISODE_CONTROL_EVENTS, PARTICIPANT_EPISODE_TERMINAL_EVENTS -from raes.participant_behavior import ParticipantFailureClass if TYPE_CHECKING: # Forward reference only: ParticipantActionResult is defined in the later diff --git a/implementations/python/packages/raes_processor/models/runtime_model.py b/implementations/python/packages/raes_processor/models/runtime_model.py index a9d7ba90b..6ec79ee96 100644 --- a/implementations/python/packages/raes_processor/models/runtime_model.py +++ b/implementations/python/packages/raes_processor/models/runtime_model.py @@ -3,13 +3,13 @@ from dataclasses import asdict, dataclass, field from typing import Any +from raes.scenario import InstantiatedScenario from raes_backend_protocols.capabilities import BackendManifest from raes_contracts.addressing import require_compiled_address from raes_contracts.diagnostics import Diagnostic from raes_contracts.evaluation import EvaluationExecutionContract, EvaluationResultContract from raes_contracts.planning import EvaluationPlan, OrchestrationPlan, ProvisioningPlan from raes_contracts.runtime_state import RuntimeSnapshot -from raes.scenario import InstantiatedScenario from raes_processor.semantics.realization import CompiledRealizationRequirement diff --git a/implementations/python/packages/raes_processor/planner/capability_domains.py b/implementations/python/packages/raes_processor/planner/capability_domains.py index 5468fd5ec..29fa51a14 100644 --- a/implementations/python/packages/raes_processor/planner/capability_domains.py +++ b/implementations/python/packages/raes_processor/planner/capability_domains.py @@ -1,9 +1,9 @@ """Finite-variable capability-domain validation for provisioner gates.""" -from raes_backend_protocols.account_features import provisioner_account_features from raes.infrastructure import MINIMUM_NODE_COUNT from raes.nodes import OSFamily from raes.value_parsing import extract_variable_name, parse_enum_or_var, parse_int_or_var +from raes_backend_protocols.account_features import provisioner_account_features from ..models import CompiledCapabilityConstraint, Diagnostic, NodeRuntime, ResolvedResource, RuntimeModel diff --git a/implementations/python/packages/raes_processor/planner/core.py b/implementations/python/packages/raes_processor/planner/core.py index 1fc40d19e..7b9ceaf80 100644 --- a/implementations/python/packages/raes_processor/planner/core.py +++ b/implementations/python/packages/raes_processor/planner/core.py @@ -2,6 +2,7 @@ from dataclasses import replace +from raes.realization_envelope import member from raes_backend_protocols.capabilities import BackendManifest from raes_backend_protocols.capability_admission import ( participant_autonomous_execution_capability_gaps, @@ -10,7 +11,6 @@ from raes_backend_protocols.domain_topology import domain_topology_plan_diagnostics from raes_backend_protocols.service_materialization import service_materialization_plan_diagnostics from raes_contracts.diagnostics import Diagnostic -from raes.realization_envelope import member from ..compiler.time_model import time_model_contract_model from ..models import ExecutionPlan, RuntimeModel, RuntimeSnapshot diff --git a/implementations/python/packages/raes_processor/reference.py b/implementations/python/packages/raes_processor/reference.py index 97294b55e..ca0e1d226 100644 --- a/implementations/python/packages/raes_processor/reference.py +++ b/implementations/python/packages/raes_processor/reference.py @@ -21,10 +21,10 @@ from pathlib import Path from typing import Any -from raes_backend_protocols.capabilities import BackendManifest -from raes_contracts.diagnostics import Diagnostic from raes.parser import parse_sdl, parse_sdl_file from raes.scenario import ExpandedScenario, InstantiatedScenario, Scenario +from raes_backend_protocols.capabilities import BackendManifest +from raes_contracts.diagnostics import Diagnostic from raes_processor.compiler import compile_scenario_runtime_model from raes_processor.manifest import ( diff --git a/implementations/python/packages/raes_processor/satisfiability/_service.py b/implementations/python/packages/raes_processor/satisfiability/_service.py index 12f6687a2..e07e6f334 100644 --- a/implementations/python/packages/raes_processor/satisfiability/_service.py +++ b/implementations/python/packages/raes_processor/satisfiability/_service.py @@ -7,6 +7,14 @@ from pathlib import Path import z3 +from raes.canonical import ( + INSTANTIATED_SNAPSHOT_PROFILE, + InstantiatedScenarioSnapshot, + canonical_instantiated_sdl_digest, +) +from raes.instantiate import instantiate_scenario +from raes.parser import parse_sdl, read_sdl_source +from raes.scenario import ExpandedScenario from raes_contracts.satisfiability import ( SatisfiabilityOutcome, SatisfiableWitnessModel, @@ -17,14 +25,6 @@ UnsupportedAnalysisModel, canonical_contract_digest, ) -from raes.canonical import ( - INSTANTIATED_SNAPSHOT_PROFILE, - InstantiatedScenarioSnapshot, - canonical_instantiated_sdl_digest, -) -from raes.instantiate import instantiate_scenario -from raes.parser import parse_sdl, read_sdl_source -from raes.scenario import ExpandedScenario from ._solver import SolverOperationalError, solve_model from ._translation import translate_scenario diff --git a/implementations/python/packages/raes_processor/satisfiability/_translation.py b/implementations/python/packages/raes_processor/satisfiability/_translation.py index 44b6c6cea..5df631d3e 100644 --- a/implementations/python/packages/raes_processor/satisfiability/_translation.py +++ b/implementations/python/packages/raes_processor/satisfiability/_translation.py @@ -8,6 +8,12 @@ from typing import cast import rfc8785 +from raes.canonical import canonical_sdl_digest +from raes.infrastructure import ACLAction +from raes.nodes import OSFamily +from raes.scenario import ExpandedScenario, Scenario +from raes.value_parsing import extract_variable_name, normalize_enum_value, variable_names_in_value +from raes.variables import Variable, VariableType from raes_contracts.diagnostics import DiagnosticModel from raes_contracts.satisfiability import ( ConstraintClauseKind, @@ -16,12 +22,6 @@ ConstraintSymbolModel, NormalizedConstraintModel, ) -from raes.canonical import canonical_sdl_digest -from raes.infrastructure import ACLAction -from raes.nodes import OSFamily -from raes.scenario import ExpandedScenario, Scenario -from raes.value_parsing import extract_variable_name, normalize_enum_value, variable_names_in_value -from raes.variables import Variable, VariableType _MAX_SYMBOLS = 128 _MAX_CLAUSES = 512 diff --git a/implementations/python/packages/raes_processor/semantics/realization.py b/implementations/python/packages/raes_processor/semantics/realization.py index 2c32c3b75..8cdcb4859 100644 --- a/implementations/python/packages/raes_processor/semantics/realization.py +++ b/implementations/python/packages/raes_processor/semantics/realization.py @@ -9,6 +9,8 @@ from collections.abc import Callable, Iterable, Mapping from dataclasses import dataclass, replace +from raes.explicitness import ExplicitnessClass, ExplicitnessProvenance +from raes.realization_envelope import effective_constraints, subsumes, tokenize_path from raes_backend_protocols.capabilities import BackendManifest from raes_contracts.addressing import require_compiled_address from raes_contracts.apparatus import ( @@ -26,8 +28,6 @@ ) from raes_contracts.runtime_state import RealizationProvenanceEntry, RuntimeSnapshot from raes_contracts.vocabulary import Closure, RealizationSupportMode -from raes.explicitness import ExplicitnessClass, ExplicitnessProvenance -from raes.realization_envelope import effective_constraints, subsumes, tokenize_path __all__ = [ "CONCERN_PAYLOAD_PATH", diff --git a/implementations/python/packages/raes_runtime/control_plane_api.py b/implementations/python/packages/raes_runtime/control_plane_api.py index f16b9614f..a064fbcff 100644 --- a/implementations/python/packages/raes_runtime/control_plane_api.py +++ b/implementations/python/packages/raes_runtime/control_plane_api.py @@ -8,6 +8,8 @@ from importlib.metadata import version as distribution_version from typing import Annotated +from fastapi import Depends, FastAPI, HTTPException, Request, Response +from fastapi.responses import JSONResponse from raes_contracts.contracts import ( EvaluationPlanModel, OperationReceiptModel, @@ -19,8 +21,6 @@ ) from raes_contracts.participant_episode import ParticipantEpisodeTerminalReason from raes_contracts.runtime_state import OperationReceipt -from fastapi import Depends, FastAPI, HTTPException, Request, Response -from fastapi.responses import JSONResponse from .control_plane import RuntimeControlPlane from .control_plane_api_guards import request_size_guard_response diff --git a/implementations/python/packages/raes_runtime/control_plane_api_models.py b/implementations/python/packages/raes_runtime/control_plane_api_models.py index a7440b1c9..1d1de0a81 100644 --- a/implementations/python/packages/raes_runtime/control_plane_api_models.py +++ b/implementations/python/packages/raes_runtime/control_plane_api_models.py @@ -6,6 +6,8 @@ from dataclasses import asdict from typing import Any +from fastapi import Request +from pydantic import BaseModel, ConfigDict, Field from raes_contracts.contracts import ( EvaluationPlanModel, OperationStatusModel, @@ -25,8 +27,6 @@ ProvisionOp, ) from raes_contracts.runtime_state import OperationStatus, RuntimeSnapshotEnvelope -from fastapi import Request -from pydantic import BaseModel, ConfigDict, Field class _ParticipantInitializeBody(BaseModel): diff --git a/implementations/python/packages/raes_runtime/control_plane_api_participant_retrieval.py b/implementations/python/packages/raes_runtime/control_plane_api_participant_retrieval.py index ef4364f8b..59741c8a2 100644 --- a/implementations/python/packages/raes_runtime/control_plane_api_participant_retrieval.py +++ b/implementations/python/packages/raes_runtime/control_plane_api_participant_retrieval.py @@ -4,12 +4,12 @@ from typing import Annotated +from fastapi import Depends, FastAPI, HTTPException, Request from raes_contracts.contracts import ( ParticipantContextViewModel, ParticipantHistoryViewModel, ParticipantStatusViewModel, ) -from fastapi import Depends, FastAPI, HTTPException, Request from .control_plane import RuntimeControlPlane from .control_plane_security import ControlPlaneIdentity diff --git a/implementations/python/packages/raes_runtime/proposition_truth_contracts.py b/implementations/python/packages/raes_runtime/proposition_truth_contracts.py index 68ac22d9b..2d4c11d3f 100644 --- a/implementations/python/packages/raes_runtime/proposition_truth_contracts.py +++ b/implementations/python/packages/raes_runtime/proposition_truth_contracts.py @@ -2,10 +2,10 @@ from __future__ import annotations +from pydantic import ValidationError from raes_contracts.contracts import PropositionTruthResultModel from raes_contracts.diagnostics import Diagnostic from raes_contracts.runtime_state import RuntimeSnapshot -from pydantic import ValidationError from .diagnostics import _failure_diagnostic diff --git a/implementations/python/tests/libvirt_participant_proof.py b/implementations/python/tests/libvirt_participant_proof.py index c62918f62..cea47c515 100644 --- a/implementations/python/tests/libvirt_participant_proof.py +++ b/implementations/python/tests/libvirt_participant_proof.py @@ -19,6 +19,8 @@ from dataclasses import dataclass from pathlib import Path +from libvirt_participant_fixtures import NullLibvirtDriver +from raes.parser import parse_sdl from raes_backend_libvirt.manifest import create_libvirt_manifest from raes_backend_libvirt.participant_runtime import LibvirtParticipantRuntime from raes_backend_libvirt.provisioner import LibvirtProvisioner @@ -33,8 +35,6 @@ ) from raes_runtime.control_plane import RuntimeControlPlane from raes_runtime.registry import RuntimeTarget -from libvirt_participant_fixtures import NullLibvirtDriver -from raes.parser import parse_sdl @dataclass(frozen=True) diff --git a/implementations/python/tests/test_act_617_mixed_control.py b/implementations/python/tests/test_act_617_mixed_control.py index 0a8612174..5cf81ec41 100644 --- a/implementations/python/tests/test_act_617_mixed_control.py +++ b/implementations/python/tests/test_act_617_mixed_control.py @@ -7,11 +7,11 @@ from pathlib import Path import pytest -from raes_processor.compiler import compile_runtime_model from raes._errors import SDLParseError, SDLValidationError from raes.instantiate import instantiate_scenario from raes.parser import parse_sdl, parse_sdl_file from raes.participant_behavior_specification import MixedControlTransitionKind +from raes_processor.compiler import compile_runtime_model REPO_ROOT = Path(__file__).resolve().parents[3] diff --git a/implementations/python/tests/test_api_409_participant_control_occurrences.py b/implementations/python/tests/test_api_409_participant_control_occurrences.py index 5785bd67b..85dc8de88 100644 --- a/implementations/python/tests/test_api_409_participant_control_occurrences.py +++ b/implementations/python/tests/test_api_409_participant_control_occurrences.py @@ -6,6 +6,8 @@ from pathlib import Path import pytest +from jsonschema import Draft202012Validator +from pydantic import ValidationError from raes_contracts.contracts import ( ParticipantControlDeclarationModel, ParticipantControlOccurrenceModel, @@ -13,8 +15,6 @@ validate_participant_control_occurrence_context, ) from raes_contracts.contracts.participant_control import ParticipantControlTargetContextModel -from jsonschema import Draft202012Validator -from pydantic import ValidationError REPO_ROOT = Path(__file__).resolve().parents[3] CONTRACT_ID = "participant-control-occurrence-v1" diff --git a/implementations/python/tests/test_api_421_time_contracts.py b/implementations/python/tests/test_api_421_time_contracts.py index 760f50afb..fea3b55be 100644 --- a/implementations/python/tests/test_api_421_time_contracts.py +++ b/implementations/python/tests/test_api_421_time_contracts.py @@ -6,6 +6,7 @@ from pathlib import Path import pytest +from raes.parser import parse_sdl from raes_backend_protocols.capability_admission import time_model_capability_gaps from raes_backend_stubs.stubs import create_stub_manifest, create_stub_target from raes_conformance.time_semantics import time_model_conformance_diagnostics @@ -22,7 +23,6 @@ time_model_contract_model, ) from raes_runtime import RuntimeManager -from raes.parser import parse_sdl REPO_ROOT = Path(__file__).resolve().parents[3] FIXTURE_ROOT = REPO_ROOT / "contracts" / "fixtures" / "time" diff --git a/implementations/python/tests/test_associated_artifact_manifests.py b/implementations/python/tests/test_associated_artifact_manifests.py index 210636e4f..0fb00ea72 100644 --- a/implementations/python/tests/test_associated_artifact_manifests.py +++ b/implementations/python/tests/test_associated_artifact_manifests.py @@ -8,6 +8,8 @@ from pathlib import Path import pytest +from pydantic import ValidationError +from raes import canonical_sdl_digest, parse_sdl from raes_conformance.conformance import _MODEL_VALIDATORS, _fixture_case_diagnostics from raes_contracts.associated_artifacts import ( AssociatedArtifactValidationLimits, @@ -26,8 +28,6 @@ schema_bundle, ) from raes_contracts.versions import ASSOCIATED_ARTIFACT_MANIFEST_SCHEMA_VERSION -from pydantic import ValidationError -from raes import canonical_sdl_digest, parse_sdl PAYLOAD = b"operator guide\n" PAYLOAD_SHA256 = hashlib.sha256(PAYLOAD).hexdigest() diff --git a/implementations/python/tests/test_authored_domain_topology.py b/implementations/python/tests/test_authored_domain_topology.py index 05f0f7a72..d54e8d3c1 100644 --- a/implementations/python/tests/test_authored_domain_topology.py +++ b/implementations/python/tests/test_authored_domain_topology.py @@ -9,6 +9,9 @@ import pytest import yaml +from jsonschema import Draft202012Validator +from raes import SDLParseError, SDLValidationError, parse_sdl, parse_sdl_file +from raes.language_service import language_completions from raes_backend_libvirt.capability_envelope import capability_envelope_diagnostics from raes_backend_libvirt.manifest import LIBVIRT_PROVISIONER_CAPABILITIES from raes_backend_protocols.backend_manifest import BackendManifest @@ -23,9 +26,6 @@ from raes_processor.semantics.realization import realization_disclosure from raes_reference_backend import create_reference_backend_manifest from raes_runtime.control_plane import RuntimeControlPlane -from jsonschema import Draft202012Validator -from raes import SDLParseError, SDLValidationError, parse_sdl, parse_sdl_file -from raes.language_service import language_completions _INSTANTIATION_PROVENANCE = { "authored_digest": { diff --git a/implementations/python/tests/test_backend_manifest.py b/implementations/python/tests/test_backend_manifest.py index 56f77595b..723a5b4bb 100644 --- a/implementations/python/tests/test_backend_manifest.py +++ b/implementations/python/tests/test_backend_manifest.py @@ -7,6 +7,7 @@ from pathlib import Path import pytest +from pydantic import ValidationError from raes_backend_protocols.capabilities import ( OBSERVATION_CAPABILITY_CAPTURE_KIND_SCOPE, OBSERVATION_CAPABILITY_CHANNEL_KIND_SCOPE, @@ -33,7 +34,6 @@ WorkflowFeature, WorkflowStatePredicateFeature, ) -from pydantic import ValidationError FIXTURES_ROOT = Path(__file__).resolve().parents[3] / "contracts" / "fixtures" V2_VALID_DIR = FIXTURES_ROOT / "backend-manifest" / "backend-manifest-v2" / "valid" diff --git a/implementations/python/tests/test_backend_profiles.py b/implementations/python/tests/test_backend_profiles.py index fe65e676c..567d9e27e 100644 --- a/implementations/python/tests/test_backend_profiles.py +++ b/implementations/python/tests/test_backend_profiles.py @@ -6,6 +6,7 @@ from pathlib import Path import pytest +from pydantic import ValidationError from raes_contracts.backend_profiles import ( BackendProfileModel, backend_profile_path, @@ -14,7 +15,6 @@ load_backend_profile_from_path, ) from raes_contracts.manifest_authority import BACKEND_SUPPORTED_CONTRACT_IDS -from pydantic import ValidationError REPO_ROOT = Path(__file__).resolve().parents[3] BACKEND_PROFILES_ROOT = REPO_ROOT / "contracts" / "profiles" / "backend" diff --git a/implementations/python/tests/test_behavioral_relations.py b/implementations/python/tests/test_behavioral_relations.py index 9bd2d00f6..7bf229f58 100644 --- a/implementations/python/tests/test_behavioral_relations.py +++ b/implementations/python/tests/test_behavioral_relations.py @@ -8,6 +8,9 @@ from pathlib import Path import pytest +from hypothesis import assume, given, settings +from hypothesis import strategies as st +from pydantic import ValidationError from raes_conformance.conformance import _fixture_case_diagnostics from raes_contracts.behavioral_relations import ( ExampleTransitionModel, @@ -20,9 +23,6 @@ schema_bundle, ) from raes_contracts.scientific_completeness import load_scientific_completeness_taxonomy -from hypothesis import assume, given, settings -from hypothesis import strategies as st -from pydantic import ValidationError REPO_ROOT = Path(__file__).resolve().parents[3] REQUIRED_RELATION_IDS = { diff --git a/implementations/python/tests/test_concept_authority.py b/implementations/python/tests/test_concept_authority.py index 932b65ff0..e4144d215 100644 --- a/implementations/python/tests/test_concept_authority.py +++ b/implementations/python/tests/test_concept_authority.py @@ -6,6 +6,7 @@ from pathlib import Path import pytest +from pydantic import ValidationError from raes_contracts.contracts import ( BackendManifestV2Model, ConceptBindingEntryModel, @@ -16,7 +17,6 @@ from raes_contracts.vocabulary import ( ConceptProvenanceCategory, ) -from pydantic import ValidationError REPO_ROOT = Path(__file__).resolve().parents[3] CATALOG_PATH = REPO_ROOT / "contracts" / "concept-authority" / "concept-families-v1.json" diff --git a/implementations/python/tests/test_controlled_vocabularies.py b/implementations/python/tests/test_controlled_vocabularies.py index 20d4d0ef6..97cc6b2d9 100644 --- a/implementations/python/tests/test_controlled_vocabularies.py +++ b/implementations/python/tests/test_controlled_vocabularies.py @@ -6,6 +6,7 @@ from pathlib import Path import pytest +from pydantic import ValidationError from raes_contracts.contracts import ( AtlasTacticsSourceModel, AttackEnterpriseTacticsSourceModel, @@ -27,7 +28,6 @@ WorkflowFeature, WorkflowStatePredicateFeature, ) -from pydantic import ValidationError REPO_ROOT = Path(__file__).resolve().parents[3] CATALOG_PATH = REPO_ROOT / "contracts" / "concept-authority" / "controlled-vocabularies-v1.json" diff --git a/implementations/python/tests/test_cross_backend_corpus.py b/implementations/python/tests/test_cross_backend_corpus.py index 0dc3e258e..d5e06fbe8 100644 --- a/implementations/python/tests/test_cross_backend_corpus.py +++ b/implementations/python/tests/test_cross_backend_corpus.py @@ -13,6 +13,7 @@ import json from pathlib import Path +from paths import EXAMPLES_DIR from raes_operations.cross_backend_corpus import ( CORPUS_SCHEMA, CrossBackendCorpusConfig, @@ -20,7 +21,6 @@ validate_cross_backend_corpus_artifact, ) from raes_operations.run_artifacts import serialize_run_artifact -from paths import EXAMPLES_DIR _REFERENCE_SCENARIO = EXAMPLES_DIR / "enterprise-participant-evidence-loop.sdl.yaml" diff --git a/implementations/python/tests/test_domain_controller_placement.py b/implementations/python/tests/test_domain_controller_placement.py index 7cdee10d6..6ef005252 100644 --- a/implementations/python/tests/test_domain_controller_placement.py +++ b/implementations/python/tests/test_domain_controller_placement.py @@ -14,6 +14,8 @@ import pytest import yaml +from jsonschema import Draft202012Validator +from raes import parse_sdl from raes_backend_libvirt.realization import interpret_provisioning_plan as interpret_libvirt_plan from raes_backend_protocols.backend_manifest import BackendManifest from raes_backend_protocols.domain_topology import DomainTopologyBinding, domain_topology_plan_diagnostics @@ -36,8 +38,6 @@ from raes_processor.planner import plan from raes_processor.semantics.realization import realization_disclosure from raes_reference_backend import interpret_provisioning_plan as interpret_reference_plan -from jsonschema import Draft202012Validator -from raes import parse_sdl _RESOURCE_TYPE = "domain-controller-placement" diff --git a/implementations/python/tests/test_dsl_115_authoring_specificity.py b/implementations/python/tests/test_dsl_115_authoring_specificity.py index a85f3b38a..177163eee 100644 --- a/implementations/python/tests/test_dsl_115_authoring_specificity.py +++ b/implementations/python/tests/test_dsl_115_authoring_specificity.py @@ -4,9 +4,9 @@ import textwrap -from raes_contracts.contracts import ExperimentReferenceModel from raes import parse_sdl from raes.explicitness import ExplicitnessClass, classify_authoring_specificity +from raes_contracts.contracts import ExperimentReferenceModel def _scenario_with_specificity_levels(): diff --git a/implementations/python/tests/test_dsl_437_benign_participant_execution.py b/implementations/python/tests/test_dsl_437_benign_participant_execution.py index 374cf6c17..096d1010e 100644 --- a/implementations/python/tests/test_dsl_437_benign_participant_execution.py +++ b/implementations/python/tests/test_dsl_437_benign_participant_execution.py @@ -9,6 +9,9 @@ import pytest import yaml +from raes._errors import SDLValidationError +from raes.parser import parse_sdl +from raes.participant_behavior import ParticipantFailureClass from raes_backend_protocols.capability_admission import participant_autonomous_execution_capability_gaps from raes_backend_protocols.participant_runtime_base import BaseParticipantRuntime from raes_backend_stubs.manifest import create_stub_manifest @@ -38,9 +41,6 @@ from raes_runtime.participant_clock_driver import ParticipantClockDriver from raes_runtime.participant_scheduler import ParticipantScheduler from raes_runtime.time_coordinator import ReferenceTimeRuntime, TimeCoordinator -from raes._errors import SDLValidationError -from raes.parser import parse_sdl -from raes.participant_behavior import ParticipantFailureClass REPO_ROOT = Path(__file__).resolve().parents[3] EXAMPLE = REPO_ROOT / "examples" / "scenarios" / "enterprise-participant-evidence-loop.sdl.yaml" diff --git a/implementations/python/tests/test_dsl_437_evaluation_authority.py b/implementations/python/tests/test_dsl_437_evaluation_authority.py index 12e750706..9a0fb43e9 100644 --- a/implementations/python/tests/test_dsl_437_evaluation_authority.py +++ b/implementations/python/tests/test_dsl_437_evaluation_authority.py @@ -4,9 +4,9 @@ import pytest import yaml -from raes_processor.compiler import compile_runtime_model from raes._errors import SDLValidationError from raes.parser import parse_sdl +from raes_processor.compiler import compile_runtime_model from test_dsl_437_benign_participant_execution import _scenario_yaml diff --git a/implementations/python/tests/test_enterprise_deployment_tenancy.py b/implementations/python/tests/test_enterprise_deployment_tenancy.py index 52b74142e..9f3095e6d 100644 --- a/implementations/python/tests/test_enterprise_deployment_tenancy.py +++ b/implementations/python/tests/test_enterprise_deployment_tenancy.py @@ -8,10 +8,10 @@ import pytest import yaml -from raes_contracts.contracts import schema_bundle -from raes_processor.compiler import compile_runtime_model from jsonschema import Draft202012Validator from raes import SDLParseError, SDLValidationError, parse_sdl, parse_sdl_file +from raes_contracts.contracts import schema_bundle +from raes_processor.compiler import compile_runtime_model _INSTANTIATION_PROVENANCE = { "authored_digest": { diff --git a/implementations/python/tests/test_example_schema_conformance.py b/implementations/python/tests/test_example_schema_conformance.py index 7f30ae293..c9b12d17f 100644 --- a/implementations/python/tests/test_example_schema_conformance.py +++ b/implementations/python/tests/test_example_schema_conformance.py @@ -27,12 +27,12 @@ from typing import Any, Protocol import pytest -from raes_contracts.corpus import corpus_family_root -from raes_contracts.experiment_spec import load_experiment_spec from jsonschema import Draft202012Validator from paths import EXAMPLES_DIR, EXPERIMENTS_DIR from raes import load_sdl_fragment from raes.scenarios import load_scenario +from raes_contracts.corpus import corpus_family_root +from raes_contracts.experiment_spec import load_experiment_spec class SupportsModelDump(Protocol): diff --git a/implementations/python/tests/test_experiment_authoring.py b/implementations/python/tests/test_experiment_authoring.py index b64e02287..a09a1ba80 100644 --- a/implementations/python/tests/test_experiment_authoring.py +++ b/implementations/python/tests/test_experiment_authoring.py @@ -6,6 +6,7 @@ from pathlib import Path import pytest +from paths import EXPERIMENTS_DIR, REPO_ROOT from raes_contracts.contracts import ExperimentSpecModel from raes_contracts.experiment_spec import ( ExperimentSpecValidationError, @@ -19,7 +20,6 @@ _run_experiment_scaffold, _run_experiment_validate, ) -from paths import EXPERIMENTS_DIR, REPO_ROOT _VALID_FIXTURE = ( REPO_ROOT diff --git a/implementations/python/tests/test_exploit_path_analysis.py b/implementations/python/tests/test_exploit_path_analysis.py index c162acdd4..c0588a546 100644 --- a/implementations/python/tests/test_exploit_path_analysis.py +++ b/implementations/python/tests/test_exploit_path_analysis.py @@ -6,6 +6,15 @@ from pathlib import Path import pytest +from jsonschema import Draft202012Validator +from pydantic import ValidationError +from raes.canonical import ( + INSTANTIATED_SNAPSHOT_PROFILE, + InstantiatedScenarioSnapshot, + canonical_instantiated_sdl_digest, +) +from raes.instantiate import instantiate_scenario +from raes.parser import parse_sdl from raes_contracts.contracts import schema_bundle from raes_contracts.exploit_path import ( ExploitPathAnalysisEvidenceModel, @@ -17,15 +26,6 @@ analyze_exploit_path_file, replay_exploit_path_evidence, ) -from jsonschema import Draft202012Validator -from pydantic import ValidationError -from raes.canonical import ( - INSTANTIATED_SNAPSHOT_PROFILE, - InstantiatedScenarioSnapshot, - canonical_instantiated_sdl_digest, -) -from raes.instantiate import instantiate_scenario -from raes.parser import parse_sdl _SDL = """\ name: exploit-path-control diff --git a/implementations/python/tests/test_fm2_semantics.py b/implementations/python/tests/test_fm2_semantics.py index 9c1547b23..9fe3c9eb3 100644 --- a/implementations/python/tests/test_fm2_semantics.py +++ b/implementations/python/tests/test_fm2_semantics.py @@ -5,12 +5,11 @@ import textwrap import pytest - +from raes import SDLInstantiationError, SDLValidationError, parse_sdl from raes_backend_stubs.stubs import create_stub_manifest from raes_processor.compiler import compile_runtime_model from raes_processor.models import RuntimeDomain, RuntimeSnapshot, SnapshotEntry from raes_processor.planner import plan -from raes import SDLInstantiationError, SDLValidationError, parse_sdl def _scenario(yaml_str: str): diff --git a/implementations/python/tests/test_initial_service_state.py b/implementations/python/tests/test_initial_service_state.py index f187de35e..e9a4b56c7 100644 --- a/implementations/python/tests/test_initial_service_state.py +++ b/implementations/python/tests/test_initial_service_state.py @@ -8,7 +8,9 @@ import pytest import yaml +from raes import SDLValidationError, parse_sdl, parse_sdl_file from raes_backend_protocols.backend_manifest import BackendManifest +from raes_backend_stubs.stubs import create_stub_manifest, create_stub_target from raes_contracts.planning import ChangeAction, ProvisioningPlan, ProvisionOp, RuntimeDomain from raes_contracts.runtime_state import RuntimeSnapshot, SnapshotEntry from raes_processor.compiler import compile_scenario_runtime_model @@ -17,9 +19,6 @@ from raes_processor.semantics.realization import realization_disclosure from raes_runtime.control_plane import RuntimeControlPlane from raes_runtime.registry import RuntimeTarget -from raes import SDLValidationError, parse_sdl, parse_sdl_file - -from raes_backend_stubs.stubs import create_stub_manifest, create_stub_target def _scenario(*replacements: tuple[str, str]): diff --git a/implementations/python/tests/test_instantiated_scenario_schema.py b/implementations/python/tests/test_instantiated_scenario_schema.py index 658aa7834..2781bdb19 100644 --- a/implementations/python/tests/test_instantiated_scenario_schema.py +++ b/implementations/python/tests/test_instantiated_scenario_schema.py @@ -13,11 +13,11 @@ from pathlib import Path import pytest -from raes_contracts.contracts import schema_bundle from jsonschema import Draft202012Validator from pydantic import ValidationError from raes._base import VARIABLE_TOKEN_PATTERN from raes.scenario import InstantiatedScenario, Scenario +from raes_contracts.contracts import schema_bundle REPO_ROOT = Path(__file__).resolve().parents[3] SDL_SCHEMA_DIR = REPO_ROOT / "contracts" / "schemas" / "sdl" diff --git a/implementations/python/tests/test_libvirt_backend_envelopes.py b/implementations/python/tests/test_libvirt_backend_envelopes.py index d136f6692..a9bb5b956 100644 --- a/implementations/python/tests/test_libvirt_backend_envelopes.py +++ b/implementations/python/tests/test_libvirt_backend_envelopes.py @@ -5,8 +5,10 @@ from dataclasses import replace from textwrap import dedent -import raes_backend_libvirt.manifest as libvirt_manifest_module import pytest +import raes_backend_libvirt.manifest as libvirt_manifest_module +from libvirt_conformance_fixtures import RecordingLibvirtDriver +from raes.parser import parse_sdl from raes_backend_libvirt.envelopes import LibvirtDriverMode, load_libvirt_realization_envelope from raes_backend_libvirt.manifest import create_libvirt_manifest from raes_backend_libvirt.provisioner import LibvirtProvisioner @@ -15,8 +17,6 @@ from raes_backend_protocols.manifest import backend_manifest_payload from raes_contracts.realization_envelope import BackendRealizationEnvelopeModel, realization_envelope_digest from raes_processor.reference import run_reference_processor -from libvirt_conformance_fixtures import RecordingLibvirtDriver -from raes.parser import parse_sdl def test_default_libvirt_manifest_selects_generic_envelope(): diff --git a/implementations/python/tests/test_libvirt_backend_guest_certified.py b/implementations/python/tests/test_libvirt_backend_guest_certified.py index c77d7f91c..eb248e181 100644 --- a/implementations/python/tests/test_libvirt_backend_guest_certified.py +++ b/implementations/python/tests/test_libvirt_backend_guest_certified.py @@ -405,11 +405,10 @@ def _facts_from_matrix(matrix, challenge: str) -> dict[str, str]: def _guest_matrix(scenario: Path): + from raes.parser import parse_sdl_file from raes_backend_libvirt.manifest import create_libvirt_manifest from raes_backend_libvirt.realization import interpret_provisioning_plan from raes_backend_libvirt.techvault_matrix import native_matrix - from raes.parser import parse_sdl_file - from raes_runtime.manager import RuntimeManager scout = GuestCertifiedLibvirtDriver( diff --git a/implementations/python/tests/test_libvirt_backend_guest_certified_real_libvirt.py b/implementations/python/tests/test_libvirt_backend_guest_certified_real_libvirt.py index 98ae5ea6b..2f34a09c2 100644 --- a/implementations/python/tests/test_libvirt_backend_guest_certified_real_libvirt.py +++ b/implementations/python/tests/test_libvirt_backend_guest_certified_real_libvirt.py @@ -16,12 +16,12 @@ from pathlib import Path import pytest +from paths import EXAMPLES_DIR from raes_operations.libvirt_evidence_run import ( LibvirtEvidenceRunConfig, run_libvirt_evidence_run, validate_libvirt_evidence_run_artifact, ) -from paths import EXAMPLES_DIR @pytest.mark.integration diff --git a/implementations/python/tests/test_libvirt_backend_manifest.py b/implementations/python/tests/test_libvirt_backend_manifest.py index a3acdc0ab..4ad237a13 100644 --- a/implementations/python/tests/test_libvirt_backend_manifest.py +++ b/implementations/python/tests/test_libvirt_backend_manifest.py @@ -4,9 +4,8 @@ from raes_backend_libvirt import create_libvirt_manifest from raes_backend_protocols.manifest import backend_manifest_payload -from raes_contracts.contracts import BackendManifestV2Model - from raes_conformance.conformance import BackendCapabilityProfile, profile_for_manifest +from raes_contracts.contracts import BackendManifestV2Model def test_libvirt_manifest_renders_as_provisioning_only_manifest_v2(): diff --git a/implementations/python/tests/test_libvirt_backend_manifest_publication.py b/implementations/python/tests/test_libvirt_backend_manifest_publication.py index 0c48fe157..933295598 100644 --- a/implementations/python/tests/test_libvirt_backend_manifest_publication.py +++ b/implementations/python/tests/test_libvirt_backend_manifest_publication.py @@ -30,18 +30,17 @@ from pathlib import Path import jsonschema +from libvirt_conformance_fixtures import RecordingLibvirtDriver from raes_backend_libvirt import create_libvirt_manifest from raes_backend_libvirt.target import create_libvirt_target from raes_backend_protocols.manifest import backend_manifest_payload -from raes_contracts.backend_profiles import load_backend_profile -from raes_contracts.contracts import BackendManifestV2Model -from libvirt_conformance_fixtures import RecordingLibvirtDriver - from raes_conformance.conformance import ( BackendCapabilityProfile, required_contracts, run_target_conformance, ) +from raes_contracts.backend_profiles import load_backend_profile +from raes_contracts.contracts import BackendManifestV2Model REPO_ROOT = Path(__file__).resolve().parents[3] BACKEND_MANIFEST_V2_SCHEMA = REPO_ROOT / "contracts" / "schemas" / "backend-manifest" / "backend-manifest-v2.json" diff --git a/implementations/python/tests/test_libvirt_backend_registry.py b/implementations/python/tests/test_libvirt_backend_registry.py index 3db24451b..19c233756 100644 --- a/implementations/python/tests/test_libvirt_backend_registry.py +++ b/implementations/python/tests/test_libvirt_backend_registry.py @@ -10,7 +10,6 @@ create_libvirt_target, register_libvirt_backend, ) - from raes_runtime.registry import BackendRegistry, RuntimeTarget diff --git a/implementations/python/tests/test_libvirt_backend_techvault_integration.py b/implementations/python/tests/test_libvirt_backend_techvault_integration.py index dfbfd55cd..92e9999d1 100644 --- a/implementations/python/tests/test_libvirt_backend_techvault_integration.py +++ b/implementations/python/tests/test_libvirt_backend_techvault_integration.py @@ -4,13 +4,12 @@ from collections import Counter +from paths import EXAMPLES_DIR +from raes import parse_sdl from raes_backend_libvirt import create_libvirt_target from raes_backend_libvirt.driver import DomainHandle, DriverResult, NetworkHandle -from paths import EXAMPLES_DIR - from raes_runtime.control_plane import RuntimeControlPlane from raes_runtime.manager import RuntimeManager -from raes import parse_sdl _TECHVAULT_PARAMETERS = { "app_py_sha256": "a" * 64, diff --git a/implementations/python/tests/test_libvirt_backend_techvault_native.py b/implementations/python/tests/test_libvirt_backend_techvault_native.py index 8232848ff..3fdc14d9c 100644 --- a/implementations/python/tests/test_libvirt_backend_techvault_native.py +++ b/implementations/python/tests/test_libvirt_backend_techvault_native.py @@ -9,6 +9,8 @@ from pathlib import Path import pytest +from paths import EXAMPLES_DIR +from raes import parse_sdl from raes_backend_libvirt import create_libvirt_target from raes_backend_libvirt.cloudinit import CloudInitSpec, CloudInitUser from raes_backend_libvirt.driver import DomainSpec, NetworkAcl, NetworkSpec, ServiceSpec @@ -28,11 +30,8 @@ validate_techvault_live, validate_techvault_live_manifest, ) -from paths import EXAMPLES_DIR - from raes_runtime.control_plane import RuntimeControlPlane from raes_runtime.manager import RuntimeManager -from raes import parse_sdl class _NativeObject: diff --git a/implementations/python/tests/test_libvirt_backend_techvault_real_libvirt.py b/implementations/python/tests/test_libvirt_backend_techvault_real_libvirt.py index 766760ebd..ee3bc268f 100644 --- a/implementations/python/tests/test_libvirt_backend_techvault_real_libvirt.py +++ b/implementations/python/tests/test_libvirt_backend_techvault_real_libvirt.py @@ -9,8 +9,8 @@ from pathlib import Path import pytest -from raes_operations.techvault_live import TechVaultLiveConfig, validate_techvault_live from paths import EXAMPLES_DIR +from raes_operations.techvault_live import TechVaultLiveConfig, validate_techvault_live @pytest.mark.integration diff --git a/implementations/python/tests/test_libvirt_conformance.py b/implementations/python/tests/test_libvirt_conformance.py index 5f3f6c31f..477c829f4 100644 --- a/implementations/python/tests/test_libvirt_conformance.py +++ b/implementations/python/tests/test_libvirt_conformance.py @@ -22,6 +22,9 @@ from pathlib import Path from textwrap import dedent +from libvirt_conformance_fixtures import RecordingLibvirtDriver +from libvirt_participant_fixtures import NullLibvirtDriver +from raes.parser import parse_sdl from raes_backend_libvirt.target import create_libvirt_target from raes_conformance.conformance import ( BackendCapabilityProfile, @@ -31,9 +34,6 @@ from raes_contracts.planning import RuntimeDomain from raes_processor.reference import run_reference_processor from raes_runtime.control_plane import RuntimeControlPlane -from libvirt_conformance_fixtures import RecordingLibvirtDriver -from libvirt_participant_fixtures import NullLibvirtDriver -from raes.parser import parse_sdl REPO_ROOT = Path(__file__).resolve().parents[3] COMMITTED_REPORT = REPO_ROOT / "docs" / "conformance" / "libvirt-qemu.provisioning-only.report.json" diff --git a/implementations/python/tests/test_libvirt_evidence_run.py b/implementations/python/tests/test_libvirt_evidence_run.py index 58ff1fd2b..bc2bb674a 100644 --- a/implementations/python/tests/test_libvirt_evidence_run.py +++ b/implementations/python/tests/test_libvirt_evidence_run.py @@ -14,6 +14,7 @@ from pathlib import Path import pytest +from paths import EXAMPLES_DIR from raes_backend_libvirt.techvault_native import TechVaultNativeLibvirtDriver from raes_backend_protocols.naming import provider_resource_name from raes_contracts.contracts import ( @@ -33,7 +34,6 @@ is_valid_run_id_label, run_artifact_path, ) -from paths import EXAMPLES_DIR _REFERENCE_SCENARIO = EXAMPLES_DIR / "enterprise-participant-evidence-loop.sdl.yaml" _TECHVAULT_SCENARIO = EXAMPLES_DIR / "techvault-operational.sdl.yaml" diff --git a/implementations/python/tests/test_libvirt_participant_runtime.py b/implementations/python/tests/test_libvirt_participant_runtime.py index f89f54eff..1c806e466 100644 --- a/implementations/python/tests/test_libvirt_participant_runtime.py +++ b/implementations/python/tests/test_libvirt_participant_runtime.py @@ -11,16 +11,6 @@ from pathlib import Path import pytest -from raes_backend_libvirt.manifest import create_libvirt_manifest -from raes_backend_libvirt.participant_runtime import LibvirtParticipantRuntime -from raes_backend_libvirt.target import create_libvirt_components -from raes_backend_protocols.capabilities import participant_runtime_capability_contract_gaps -from raes_conformance.conformance import run_target_conformance -from raes_contracts.participant_binding import ParticipantActionAdmissionRequest -from raes_processor.models import ( - iter_participant_behavior_history_violations, - iter_participant_episode_snapshot_violations, -) from libvirt_conformance_fixtures import RecordingLibvirtDriver from libvirt_participant_fixtures import ( NullLibvirtDriver, @@ -29,15 +19,22 @@ build_implementation_selection, ) from libvirt_participant_proof import LibvirtParticipantProofResult, run_libvirt_participant_proof - +from raes import parse_sdl +from raes_backend_libvirt.manifest import create_libvirt_manifest +from raes_backend_libvirt.participant_runtime import LibvirtParticipantRuntime +from raes_backend_libvirt.target import create_libvirt_components +from raes_backend_protocols.capabilities import participant_runtime_capability_contract_gaps +from raes_conformance.conformance import run_target_conformance +from raes_contracts.participant_binding import ParticipantActionAdmissionRequest from raes_processor.compiler import compile_runtime_model -from raes_runtime.control_plane import RuntimeControlPlane from raes_processor.models import ( OperationState, ParticipantEpisodeTerminalReason, + iter_participant_behavior_history_violations, + iter_participant_episode_snapshot_violations, ) +from raes_runtime.control_plane import RuntimeControlPlane from raes_runtime.registry import RuntimeTarget -from raes import parse_sdl _REFERENCE_SCENARIO_PATH = ( Path(__file__).parents[3] / "examples" / "scenarios" / "enterprise-participant-evidence-loop.sdl.yaml" diff --git a/implementations/python/tests/test_mcp_server.py b/implementations/python/tests/test_mcp_server.py index 280c45a0b..76711bded 100644 --- a/implementations/python/tests/test_mcp_server.py +++ b/implementations/python/tests/test_mcp_server.py @@ -10,8 +10,8 @@ import json import pytest -from raes_mcp.server import create_server from paths import EXAMPLES_DIR +from raes_mcp.server import create_server # --------------------------------------------------------------------------- # Helpers diff --git a/implementations/python/tests/test_network_namespace_sharing.py b/implementations/python/tests/test_network_namespace_sharing.py index 88fe3fbef..992b00205 100644 --- a/implementations/python/tests/test_network_namespace_sharing.py +++ b/implementations/python/tests/test_network_namespace_sharing.py @@ -6,12 +6,6 @@ from pathlib import Path import pytest -from raes.nodes import RuntimeNetworkNamespace - -from raes_backend_stubs.stubs import create_stub_manifest -from raes_processor.compiler import compile_runtime_model -from raes_processor.models import RuntimeDomain, RuntimeSnapshot, SnapshotEntry -from raes_processor.planner import plan from raes import ( SDLInstantiationError, SDLValidationError, @@ -19,6 +13,11 @@ parse_sdl, parse_sdl_file, ) +from raes.nodes import RuntimeNetworkNamespace +from raes_backend_stubs.stubs import create_stub_manifest +from raes_processor.compiler import compile_runtime_model +from raes_processor.models import RuntimeDomain, RuntimeSnapshot, SnapshotEntry +from raes_processor.planner import plan def _scenario(yaml_text: str): diff --git a/implementations/python/tests/test_participant_backend_contracts.py b/implementations/python/tests/test_participant_backend_contracts.py index 5011e5947..2599d1b57 100644 --- a/implementations/python/tests/test_participant_backend_contracts.py +++ b/implementations/python/tests/test_participant_backend_contracts.py @@ -6,6 +6,8 @@ from pathlib import Path import pytest +from jsonschema import Draft202012Validator +from pydantic import ValidationError from raes_contracts.contracts import ( VIEW_SCOPE_PROJECTED_FIELDS, ParticipantBehaviorHistoryEventModel, @@ -25,8 +27,6 @@ ParticipantTimeManagementContextModel, schema_bundle, ) -from jsonschema import Draft202012Validator -from pydantic import ValidationError REPO_ROOT = Path(__file__).resolve().parents[3] FIXTURES_ROOT = REPO_ROOT / "contracts" / "fixtures" diff --git a/implementations/python/tests/test_participant_implementation_manifest.py b/implementations/python/tests/test_participant_implementation_manifest.py index 0673a0185..416531cae 100644 --- a/implementations/python/tests/test_participant_implementation_manifest.py +++ b/implementations/python/tests/test_participant_implementation_manifest.py @@ -6,13 +6,13 @@ from pathlib import Path import pytest +from pydantic import ValidationError from raes_conformance.conformance import _validate_payload from raes_contracts.contracts import ( ParticipantImplementationManifestModel, ParticipantImplementationProvenanceModel, ) from raes_contracts.manifest_authority import PARTICIPANT_IMPLEMENTATION_SUPPORTED_CONTRACT_IDS -from pydantic import ValidationError FIXTURES_ROOT = Path(__file__).resolve().parents[3] / "contracts" / "fixtures" MANIFEST_VALID_DIR = ( diff --git a/implementations/python/tests/test_participant_interactive_access.py b/implementations/python/tests/test_participant_interactive_access.py index 913f6522f..3dc1dbb82 100644 --- a/implementations/python/tests/test_participant_interactive_access.py +++ b/implementations/python/tests/test_participant_interactive_access.py @@ -7,8 +7,6 @@ from pathlib import Path import pytest -from raes_contracts.contracts import schema_bundle -from raes_processor.compiler import compile_runtime_model from raes import ( SDLInstantiationError, SDLParseError, @@ -18,6 +16,8 @@ parse_sdl_file, ) from raes.language_service import language_completions, language_references +from raes_contracts.contracts import schema_bundle +from raes_processor.compiler import compile_runtime_model REPO_ROOT = Path(__file__).resolve().parents[3] diff --git a/implementations/python/tests/test_pipeline_determinism.py b/implementations/python/tests/test_pipeline_determinism.py index 47dd1948c..87043c4c0 100644 --- a/implementations/python/tests/test_pipeline_determinism.py +++ b/implementations/python/tests/test_pipeline_determinism.py @@ -57,9 +57,8 @@ import pytest from paths import EXAMPLES_DIR - -from raes_processor.compiler import compile_runtime_model from raes import instantiate_scenario, parse_sdl_file +from raes_processor.compiler import compile_runtime_model # This whole witness is integration-style: it reads shipped scenarios from the # real repo on disk and spawns subprocesses, so it is excluded from the default diff --git a/implementations/python/tests/test_plan_inspection_cli.py b/implementations/python/tests/test_plan_inspection_cli.py index e45e24d84..6fe1afd58 100644 --- a/implementations/python/tests/test_plan_inspection_cli.py +++ b/implementations/python/tests/test_plan_inspection_cli.py @@ -5,15 +5,6 @@ import json from pathlib import Path -from raes_backend_protocols.manifest import backend_manifest_payload -from raes_backend_stubs.manifest import create_stub_manifest -from raes_cli.main import app -from raes_cli.processor import _sdl_error_summary -from raes_contracts.contracts import ( - EvaluationPlanModel, - OrchestrationPlanModel, - ProvisioningPlanModel, -) from paths import EXAMPLES_DIR from raes._errors import ( SDLInstantiationError, @@ -23,6 +14,15 @@ SDLSourceRange, SDLValidationError, ) +from raes_backend_protocols.manifest import backend_manifest_payload +from raes_backend_stubs.manifest import create_stub_manifest +from raes_cli.main import app +from raes_cli.processor import _sdl_error_summary +from raes_contracts.contracts import ( + EvaluationPlanModel, + OrchestrationPlanModel, + ProvisioningPlanModel, +) from typer.testing import CliRunner _SCENARIO = EXAMPLES_DIR / "techvault-defensive-min.sdl.yaml" diff --git a/implementations/python/tests/test_plan_projection.py b/implementations/python/tests/test_plan_projection.py index 96916fa3e..73a439084 100644 --- a/implementations/python/tests/test_plan_projection.py +++ b/implementations/python/tests/test_plan_projection.py @@ -6,6 +6,7 @@ from dataclasses import replace from pathlib import Path +from paths import EXAMPLES_DIR, REPO_ROOT from raes_backend_stubs.manifest import create_stub_manifest from raes_contracts.contracts import ( EvaluationPlanModel, @@ -21,7 +22,6 @@ ) from raes_contracts.planning import ProvisioningPlan from raes_processor.reference import run_reference_processor -from paths import EXAMPLES_DIR, REPO_ROOT _PLAN_FIXTURES = REPO_ROOT / "contracts" / "fixtures" / "plans" _SCENARIO = EXAMPLES_DIR / "techvault-defensive-min.sdl.yaml" diff --git a/implementations/python/tests/test_processor_manifest.py b/implementations/python/tests/test_processor_manifest.py index 067da1368..6958bbbf0 100644 --- a/implementations/python/tests/test_processor_manifest.py +++ b/implementations/python/tests/test_processor_manifest.py @@ -6,6 +6,7 @@ from pathlib import Path import pytest +from pydantic import ValidationError from raes_cli.main import app from raes_contracts.apparatus import ConceptBinding from raes_contracts.contracts import ProcessorManifestV2Model @@ -19,7 +20,6 @@ create_reference_processor_manifest, reference_processor_manifest_payload, ) -from pydantic import ValidationError from typer.testing import CliRunner FIXTURES_ROOT = Path(__file__).resolve().parents[3] / "contracts" / "fixtures" diff --git a/implementations/python/tests/test_proposition_semantics.py b/implementations/python/tests/test_proposition_semantics.py index 4b8609fa1..6c1338508 100644 --- a/implementations/python/tests/test_proposition_semantics.py +++ b/implementations/python/tests/test_proposition_semantics.py @@ -3,7 +3,6 @@ from __future__ import annotations import pytest -from raes_processor.compiler import compile_runtime_model from pydantic import ValidationError from raes._errors import SDLParseError, SDLValidationError from raes.parser import parse_sdl @@ -26,6 +25,7 @@ negate_truth, quantify_subject_truth, ) +from raes_processor.compiler import compile_runtime_model def test_proposition_is_inspectable_without_probe_execution() -> None: diff --git a/implementations/python/tests/test_random_stream_contracts.py b/implementations/python/tests/test_random_stream_contracts.py index cdb15644f..10535c673 100644 --- a/implementations/python/tests/test_random_stream_contracts.py +++ b/implementations/python/tests/test_random_stream_contracts.py @@ -12,6 +12,7 @@ import json import pytest +from pydantic import ValidationError from raes_contracts.contracts import ExperimentReferenceModel from raes_contracts.contracts.random_stream import ( GovernedEntropyRefModel, @@ -24,7 +25,6 @@ StreamAddressModel, TrialCoordinateModel, ) -from pydantic import ValidationError VALID_HEX_SEED = "00" * 31 + "01" diff --git a/implementations/python/tests/test_random_stream_determinism.py b/implementations/python/tests/test_random_stream_determinism.py index ab6c48aeb..f01fd97e0 100644 --- a/implementations/python/tests/test_random_stream_determinism.py +++ b/implementations/python/tests/test_random_stream_determinism.py @@ -30,6 +30,8 @@ from concurrent.futures import ThreadPoolExecutor import pytest +from hypothesis import HealthCheck, given, settings +from hypothesis import strategies as st from raes_contracts.contracts.random_stream import StreamAddressModel, TrialCoordinateModel from raes_contracts.random_stream_engine import ( BLOCK_BYTES, @@ -38,8 +40,6 @@ draw_bounded_integer, raw_block, ) -from hypothesis import HealthCheck, given, settings -from hypothesis import strategies as st pytestmark = pytest.mark.integration diff --git a/implementations/python/tests/test_random_stream_profile.py b/implementations/python/tests/test_random_stream_profile.py index 2b059f836..61b1006b6 100644 --- a/implementations/python/tests/test_random_stream_profile.py +++ b/implementations/python/tests/test_random_stream_profile.py @@ -13,6 +13,7 @@ from pathlib import Path import pytest +from pydantic import ValidationError from raes_contracts.contracts import RandomStreamProfileModel from raes_contracts.random_stream_profiles import ( SUPPORTED_RANDOM_STREAM_PROFILE_IDS, @@ -20,7 +21,6 @@ random_stream_profile_path, random_stream_profiles_root, ) -from pydantic import ValidationError REPO_ROOT = Path(__file__).resolve().parents[3] PROFILE_PATH = REPO_ROOT / "contracts" / "profiles" / "random-stream" / "blake3-xof-v1.json" diff --git a/implementations/python/tests/test_realization_envelope_contract.py b/implementations/python/tests/test_realization_envelope_contract.py index 437b518d5..7d2e3dfad 100644 --- a/implementations/python/tests/test_realization_envelope_contract.py +++ b/implementations/python/tests/test_realization_envelope_contract.py @@ -7,6 +7,8 @@ from pathlib import Path import pytest +from jsonschema import Draft202012Validator +from pydantic import ValidationError from raes_contracts.contracts import BackendManifestV2Model, ProvisioningPlanModel, RuntimeSnapshotEnvelopeModel from raes_contracts.realization_envelope import ( BackendRealizationEnvelopeModel, @@ -23,8 +25,6 @@ ) from raes_contracts.runtime_state import RuntimeSnapshot from raes_runtime.control_plane_store import LocalControlPlaneStore -from jsonschema import Draft202012Validator -from pydantic import ValidationError def _payload() -> dict[str, object]: diff --git a/implementations/python/tests/test_realization_envelope_relation.py b/implementations/python/tests/test_realization_envelope_relation.py index 045b66693..f745ac94b 100644 --- a/implementations/python/tests/test_realization_envelope_relation.py +++ b/implementations/python/tests/test_realization_envelope_relation.py @@ -14,6 +14,19 @@ from pathlib import Path import pytest +from hypothesis import given, settings +from hypothesis import strategies as st +from pydantic import ValidationError +from raes import ( + SDLInstantiationError, + SDLValidationError, + instantiate_scenario, + parse_sdl, +) +from raes._realization_envelope_domains import _MISSING, default_witness_value, out_of_domain_value +from raes._realization_envelope_engine import effective_constraints +from raes.realization_envelope import generate_negative_probes, generate_positive_probes, member, subsumes, witness +from raes.scenario import InstantiatedScenario, Scenario from raes_contracts.realization_envelope import ( BooleanDomain, Closure, @@ -30,19 +43,6 @@ RecordDomain, WitnessPolicy, ) -from hypothesis import given, settings -from hypothesis import strategies as st -from pydantic import ValidationError -from raes import ( - SDLInstantiationError, - SDLValidationError, - instantiate_scenario, - parse_sdl, -) -from raes._realization_envelope_domains import _MISSING, default_witness_value, out_of_domain_value -from raes._realization_envelope_engine import effective_constraints -from raes.realization_envelope import generate_negative_probes, generate_positive_probes, member, subsumes, witness -from raes.scenario import InstantiatedScenario, Scenario _DATA = Path(__file__).parent / "data" / "realization_envelope" diff --git a/implementations/python/tests/test_reference_backend_components.py b/implementations/python/tests/test_reference_backend_components.py index c19d1ad3b..4a52a5b9e 100644 --- a/implementations/python/tests/test_reference_backend_components.py +++ b/implementations/python/tests/test_reference_backend_components.py @@ -4,15 +4,14 @@ import textwrap +from raes import parse_sdl from raes_contracts.participant_episode import ( ParticipantEpisodeTerminalReason, iter_participant_episode_snapshot_violations, ) from raes_reference_backend import create_reference_backend_target - from raes_runtime.control_plane import RuntimeControlPlane from raes_runtime.manager import RuntimeManager -from raes import parse_sdl _SCENARIO = """ name: ref-components diff --git a/implementations/python/tests/test_reference_backend_conformance.py b/implementations/python/tests/test_reference_backend_conformance.py index 2bd3dd5a4..721a99c39 100644 --- a/implementations/python/tests/test_reference_backend_conformance.py +++ b/implementations/python/tests/test_reference_backend_conformance.py @@ -2,12 +2,11 @@ from __future__ import annotations -from raes_reference_backend import create_reference_backend_target - from raes_conformance.conformance import ( BackendCapabilityProfile, run_target_conformance, ) +from raes_reference_backend import create_reference_backend_target def test_reference_target_passes_full_remote_control_plane_conformance(): diff --git a/implementations/python/tests/test_reference_backend_docker_integration.py b/implementations/python/tests/test_reference_backend_docker_integration.py index 881696ea9..6c51720b1 100644 --- a/implementations/python/tests/test_reference_backend_docker_integration.py +++ b/implementations/python/tests/test_reference_backend_docker_integration.py @@ -14,16 +14,15 @@ import textwrap import pytest -from raes_reference_backend import create_reference_backend_target -from raes_reference_backend.drivers.oci import ImageTrustPolicy, OciDeploymentDriver - +from raes import parse_sdl from raes_conformance.conformance import ( BackendCapabilityProfile, run_target_conformance, ) +from raes_reference_backend import create_reference_backend_target +from raes_reference_backend.drivers.oci import ImageTrustPolicy, OciDeploymentDriver from raes_runtime.control_plane import RuntimeControlPlane from raes_runtime.manager import RuntimeManager -from raes import parse_sdl pytestmark = pytest.mark.docker diff --git a/implementations/python/tests/test_reference_backend_manifest.py b/implementations/python/tests/test_reference_backend_manifest.py index 0bd76884b..5eb2b2ad1 100644 --- a/implementations/python/tests/test_reference_backend_manifest.py +++ b/implementations/python/tests/test_reference_backend_manifest.py @@ -3,13 +3,12 @@ from __future__ import annotations from raes_backend_protocols.manifest import backend_manifest_payload -from raes_contracts.contracts import BackendManifestV2Model -from raes_reference_backend import create_reference_backend_manifest - from raes_conformance.conformance import ( BackendCapabilityProfile, profile_for_manifest, ) +from raes_contracts.contracts import BackendManifestV2Model +from raes_reference_backend import create_reference_backend_manifest def test_manifest_renders_as_valid_backend_manifest_v2(): diff --git a/implementations/python/tests/test_reference_backend_provenance.py b/implementations/python/tests/test_reference_backend_provenance.py index 8cfd131a0..1f11ab2c0 100644 --- a/implementations/python/tests/test_reference_backend_provenance.py +++ b/implementations/python/tests/test_reference_backend_provenance.py @@ -4,11 +4,10 @@ import textwrap -from raes_reference_backend import create_reference_backend_target +from raes import parse_sdl from raes.explicitness import ExplicitnessClass, ExplicitnessProvenance - +from raes_reference_backend import create_reference_backend_target from raes_runtime.manager import RuntimeManager -from raes import parse_sdl _EXACT_SCENARIO = """ name: ref-sem-218 diff --git a/implementations/python/tests/test_reference_backend_provisioner.py b/implementations/python/tests/test_reference_backend_provisioner.py index 36c5a2503..ae4230df1 100644 --- a/implementations/python/tests/test_reference_backend_provisioner.py +++ b/implementations/python/tests/test_reference_backend_provisioner.py @@ -5,6 +5,7 @@ import textwrap import pytest +from raes import parse_sdl from raes_contracts.planning import ( ChangeAction, PlannedResource, @@ -17,11 +18,9 @@ create_reference_backend_manifest, ) from raes_reference_backend.drivers.inprocess import InProcessDriver - from raes_runtime.control_plane import RuntimeControlPlane from raes_runtime.manager import RuntimeManager from raes_runtime.registry import RuntimeTarget -from raes import parse_sdl _SCENARIO = """ name: ref-provisioner diff --git a/implementations/python/tests/test_reference_backend_registry.py b/implementations/python/tests/test_reference_backend_registry.py index af18d2344..216ed6fa4 100644 --- a/implementations/python/tests/test_reference_backend_registry.py +++ b/implementations/python/tests/test_reference_backend_registry.py @@ -11,7 +11,6 @@ ) from raes_reference_backend.drivers.inprocess import InProcessDriver from raes_reference_backend.provisioner import ReferenceProvisioner - from raes_runtime.registry import BackendRegistry, RuntimeTarget diff --git a/implementations/python/tests/test_reference_field_pruning.py b/implementations/python/tests/test_reference_field_pruning.py index cce665895..65d51de47 100644 --- a/implementations/python/tests/test_reference_field_pruning.py +++ b/implementations/python/tests/test_reference_field_pruning.py @@ -18,6 +18,8 @@ from typing import Any import pytest +from jsonschema import Draft202012Validator +from pydantic import BaseModel, ValidationError from raes_contracts.contracts import ( ExperimentApparatusCompatibilityReferenceModel, ExperimentBackendReferenceModel, @@ -36,8 +38,6 @@ ValidationBasisDisclosureDocumentModel, ValidationProducerReferenceModel, ) -from jsonschema import Draft202012Validator -from pydantic import BaseModel, ValidationError REPO_ROOT = Path(__file__).resolve().parents[3] PUBLISHED_DISCLOSURE_SCHEMA_PATH = REPO_ROOT / "contracts/schemas/profiles/validation-basis-disclosure-v1.json" diff --git a/implementations/python/tests/test_reference_models.py b/implementations/python/tests/test_reference_models.py index 8f65ddc83..4feab07f0 100644 --- a/implementations/python/tests/test_reference_models.py +++ b/implementations/python/tests/test_reference_models.py @@ -6,9 +6,9 @@ from pathlib import Path import pytest +from pydantic import ValidationError from raes_contracts.contracts import ReferenceModelCatalogModel from raes_contracts.reference_models import load_reference_model_catalog, reference_model_catalog_path -from pydantic import ValidationError REPO_ROOT = Path(__file__).resolve().parents[3] CATALOG_PATH = REPO_ROOT / "contracts" / "concept-authority" / "reference-models-v1.json" diff --git a/implementations/python/tests/test_reference_processor.py b/implementations/python/tests/test_reference_processor.py index 61844ded3..2c4eec478 100644 --- a/implementations/python/tests/test_reference_processor.py +++ b/implementations/python/tests/test_reference_processor.py @@ -16,6 +16,7 @@ from textwrap import dedent import pytest +from raes import parse_sdl from raes_backend_stubs.stubs import create_stub_manifest, create_stub_target from raes_contracts.contracts import ( ProcessorManifestV2Model, @@ -34,7 +35,6 @@ from raes_runtime import RuntimeControlPlane from raes_runtime.control_plane_api import _receipt_response from raes_runtime.control_plane_api_models import _operation_status_model, _snapshot_model -from raes import parse_sdl WORKFLOW_ADDRESS = "orchestration.workflow.response" diff --git a/implementations/python/tests/test_reusable_asset_trust_policy.py b/implementations/python/tests/test_reusable_asset_trust_policy.py index cd4ff0bb6..c923c4e11 100644 --- a/implementations/python/tests/test_reusable_asset_trust_policy.py +++ b/implementations/python/tests/test_reusable_asset_trust_policy.py @@ -15,13 +15,13 @@ from pathlib import Path import pytest +from pydantic import ValidationError from raes_contracts.contracts import ( REUSABLE_ASSET_FAMILIES, ReusableAssetTrustPolicyModel, schema_bundle, ) from raes_contracts.versions import REUSABLE_ASSET_TRUST_POLICY_SCHEMA_VERSION -from pydantic import ValidationError from tools.check_schema_publication import load_schema_publication_catalog REPO_ROOT = Path(__file__).resolve().parents[3] diff --git a/implementations/python/tests/test_run_300_lifecycle.py b/implementations/python/tests/test_run_300_lifecycle.py index 3c3bfce30..9f7ba2a70 100644 --- a/implementations/python/tests/test_run_300_lifecycle.py +++ b/implementations/python/tests/test_run_300_lifecycle.py @@ -20,10 +20,14 @@ import textwrap import pytest - +from raes import ( + InstantiatedScenario, + SDLInstantiationError, + instantiate_scenario, + parse_sdl, +) from raes_backend_stubs.stubs import create_stub_target from raes_processor.compiler import compile_runtime_model -from raes_runtime.manager import RuntimeManager from raes_processor.models import ( ChangeAction, ExecutionPlan, @@ -31,12 +35,7 @@ RuntimeSnapshot, ) from raes_processor.planner import plan as plan_execution -from raes import ( - InstantiatedScenario, - SDLInstantiationError, - instantiate_scenario, - parse_sdl, -) +from raes_runtime.manager import RuntimeManager NODE_NAME = "vm1" EXPECTED_NODE_ADDRESS = f"provision.node.{NODE_NAME}" diff --git a/implementations/python/tests/test_run_305_participant_runtime_state_history.py b/implementations/python/tests/test_run_305_participant_runtime_state_history.py index fd6966fca..2c54cbc28 100644 --- a/implementations/python/tests/test_run_305_participant_runtime_state_history.py +++ b/implementations/python/tests/test_run_305_participant_runtime_state_history.py @@ -3,15 +3,12 @@ from __future__ import annotations import pytest -from raes_contracts.contracts import ParticipantBehaviorHistoryEventModel, schema_bundle -from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot -from raes_runtime.backend_calls import _call_backend_apply -from raes_runtime.participant_result_contracts import participant_runtime_state_contract_diagnostics from jsonschema import Draft202012Validator from pydantic import ValidationError -from starlette.testclient import TestClient - from raes_backend_stubs.stubs import create_stub_target +from raes_contracts.contracts import ParticipantBehaviorHistoryEventModel, schema_bundle +from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot +from raes_runtime.backend_calls import _call_backend_apply from raes_runtime.control_plane import RuntimeControlPlane from raes_runtime.control_plane_api import create_control_plane_app from raes_runtime.control_plane_security import ( @@ -19,6 +16,8 @@ ControlPlaneRole, ControlPlaneSecurityConfig, ) +from raes_runtime.participant_result_contracts import participant_runtime_state_contract_diagnostics +from starlette.testclient import TestClient PARTICIPANT = "participant.alice" EPISODE = "episode-1" diff --git a/implementations/python/tests/test_run_306_participant_decision_lifecycle.py b/implementations/python/tests/test_run_306_participant_decision_lifecycle.py index 55260be2e..18fbe16cf 100644 --- a/implementations/python/tests/test_run_306_participant_decision_lifecycle.py +++ b/implementations/python/tests/test_run_306_participant_decision_lifecycle.py @@ -3,6 +3,8 @@ from __future__ import annotations import pytest +from jsonschema import Draft202012Validator +from pydantic import ValidationError from raes_contracts.contracts import ParticipantBehaviorHistoryEventModel, schema_bundle from raes_contracts.runtime_state import RuntimeSnapshot from raes_processor.models import ( @@ -14,8 +16,6 @@ ParticipantRuntimeLifecyclePhase, ) from raes_runtime.participant_result_contracts import participant_runtime_state_contract_diagnostics -from jsonschema import Draft202012Validator -from pydantic import ValidationError PARTICIPANT = "participant.red" EPISODE = "episode-1" diff --git a/implementations/python/tests/test_run_307_shared_operational_state.py b/implementations/python/tests/test_run_307_shared_operational_state.py index b8fefcf63..7d69be8aa 100644 --- a/implementations/python/tests/test_run_307_shared_operational_state.py +++ b/implementations/python/tests/test_run_307_shared_operational_state.py @@ -6,6 +6,9 @@ from pathlib import Path import pytest +from jsonschema import Draft202012Validator +from pydantic import ValidationError +from raes_backend_stubs.stubs import create_stub_target from raes_conformance.conformance import _semantic_diagnostics from raes_contracts.contracts import ParticipantSharedStateRecordModel, schema_bundle from raes_contracts.participant_shared_state import ( @@ -14,11 +17,6 @@ ) from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot from raes_runtime.backend_calls import _call_backend_apply -from jsonschema import Draft202012Validator -from pydantic import ValidationError -from starlette.testclient import TestClient - -from raes_backend_stubs.stubs import create_stub_target from raes_runtime.control_plane import RuntimeControlPlane from raes_runtime.control_plane_api import create_control_plane_app from raes_runtime.control_plane_security import ( @@ -26,6 +24,7 @@ ControlPlaneRole, ControlPlaneSecurityConfig, ) +from starlette.testclient import TestClient PARTICIPANT = "participants.red.llm" EPISODE = "ep-red-004" diff --git a/implementations/python/tests/test_run_308_concurrent_participant_execution.py b/implementations/python/tests/test_run_308_concurrent_participant_execution.py index 62759c935..3f2f4a2ab 100644 --- a/implementations/python/tests/test_run_308_concurrent_participant_execution.py +++ b/implementations/python/tests/test_run_308_concurrent_participant_execution.py @@ -6,6 +6,8 @@ from pathlib import Path import pytest +from jsonschema import Draft202012Validator +from pydantic import ValidationError from raes_contracts.contracts import ( ParticipantJointActionRecordModel, ParticipantTimeManagementContextModel, @@ -19,8 +21,6 @@ from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot from raes_runtime.backend_calls import _call_backend_apply from raes_runtime.participant_result_contracts import participant_runtime_state_contract_diagnostics -from jsonschema import Draft202012Validator -from pydantic import ValidationError REPO_ROOT = Path(__file__).resolve().parents[3] STATE_ADDRESS = "hosts.web01.service.http" diff --git a/implementations/python/tests/test_run_311_participant_episode_lifecycle.py b/implementations/python/tests/test_run_311_participant_episode_lifecycle.py index b0c40920f..7da73b077 100644 --- a/implementations/python/tests/test_run_311_participant_episode_lifecycle.py +++ b/implementations/python/tests/test_run_311_participant_episode_lifecycle.py @@ -26,8 +26,6 @@ import pytest from raes_contracts.contracts import schema_bundle -from raes_runtime.result_contracts import participant_episode_contract_diagnostics - from raes_processor.models import ( ParticipantEpisodeControlAction, ParticipantEpisodeExecutionState, @@ -37,6 +35,7 @@ ParticipantEpisodeTerminalReason, RuntimeSnapshot, ) +from raes_runtime.result_contracts import participant_episode_contract_diagnostics PARTICIPANT_ADDRESS = "participant.alice" EP1 = "ep-0001" diff --git a/implementations/python/tests/test_runtime_conformance.py b/implementations/python/tests/test_runtime_conformance.py index adee708e4..557f389f8 100644 --- a/implementations/python/tests/test_runtime_conformance.py +++ b/implementations/python/tests/test_runtime_conformance.py @@ -12,20 +12,19 @@ BackendManifest, ProvisionerCapabilities, ) -from raes_conformance.conformance import _semantic_diagnostics -from raes_contracts.apparatus import ConceptBinding, RealizationSupportDeclaration -from raes_contracts.planning import ChangeAction, RuntimeDomain -from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot, SnapshotEntry -from raes_contracts.vocabulary import RealizationSupportMode - from raes_backend_stubs.stubs import create_stub_components, create_stub_manifest, create_stub_target from raes_conformance.conformance import ( BackendCapabilityProfile, + _semantic_diagnostics, profile_for_manifest, required_contracts, run_fixture_suite, run_target_conformance, ) +from raes_contracts.apparatus import ConceptBinding, RealizationSupportDeclaration +from raes_contracts.planning import ChangeAction, RuntimeDomain +from raes_contracts.runtime_state import ApplyResult, RuntimeSnapshot, SnapshotEntry +from raes_contracts.vocabulary import RealizationSupportMode from raes_runtime.registry import RuntimeTarget API_406_CARRIER_CONTRACTS = { diff --git a/implementations/python/tests/test_runtime_contracts.py b/implementations/python/tests/test_runtime_contracts.py index 86926715b..cffee02a3 100644 --- a/implementations/python/tests/test_runtime_contracts.py +++ b/implementations/python/tests/test_runtime_contracts.py @@ -7,6 +7,8 @@ from pathlib import Path import pytest +from jsonschema import Draft202012Validator +from pydantic import ValidationError from raes_conformance.conformance import observability_evidence_conformance_diagnostics from raes_contracts.contracts import ( AcesSemanticInvariantEntryModel, @@ -38,8 +40,6 @@ PROCESSOR_SUPPORTED_CONTRACT_IDS, PROCESSOR_SUPPORTED_SDL_VERSION_IDS, ) -from jsonschema import Draft202012Validator -from pydantic import ValidationError EXPERIMENT_CORE_FIXTURE_MODELS = { "experiment-apparatus-context-v1": ExperimentApparatusContextModel, diff --git a/implementations/python/tests/test_runtime_control_plane.py b/implementations/python/tests/test_runtime_control_plane.py index a6625e8b2..93bfbc483 100644 --- a/implementations/python/tests/test_runtime_control_plane.py +++ b/implementations/python/tests/test_runtime_control_plane.py @@ -7,8 +7,9 @@ from typing import Any import pytest +from raes import parse_sdl from raes_backend_protocols.capabilities import BackendManifest -from raes_backend_stubs.stubs import create_stub_components, create_stub_manifest +from raes_backend_stubs.stubs import create_stub_components, create_stub_manifest, create_stub_target from raes_contracts.contracts import ( ParticipantActionResultModel, ParticipantContextViewModel, @@ -20,25 +21,20 @@ from raes_contracts.participant_binding import ParticipantActionAdmissionRequest from raes_contracts.planning import ChangeAction, ProvisioningPlan, ProvisionOp from raes_contracts.runtime_state import RuntimeSnapshot, SnapshotEntry -from raes_processor.models import ( - iter_participant_behavior_history_violations, - iter_participant_episode_snapshot_violations, -) - -from raes_backend_stubs.stubs import create_stub_target from raes_processor.compiler import compile_runtime_model -from raes_runtime.control_plane import RuntimeControlPlane -from raes_runtime.control_plane_store import ControlPlaneOperationRecord from raes_processor.models import ( OperationReceipt, OperationState, OperationStatus, ParticipantEpisodeTerminalReason, RuntimeDomain, + iter_participant_behavior_history_violations, + iter_participant_episode_snapshot_violations, ) from raes_processor.planner import plan +from raes_runtime.control_plane import RuntimeControlPlane +from raes_runtime.control_plane_store import ControlPlaneOperationRecord from raes_runtime.registry import RuntimeTarget -from raes import parse_sdl def _scenario(yaml_str: str): diff --git a/implementations/python/tests/test_runtime_control_plane_api.py b/implementations/python/tests/test_runtime_control_plane_api.py index 0db1d7011..47fc0593c 100644 --- a/implementations/python/tests/test_runtime_control_plane_api.py +++ b/implementations/python/tests/test_runtime_control_plane_api.py @@ -5,8 +5,10 @@ import textwrap from pathlib import Path -import raes_runtime.control_plane_store as control_plane_store_module import pytest +import raes_runtime.control_plane_store as control_plane_store_module +from raes import parse_sdl +from raes_backend_stubs.stubs import create_stub_target from raes_contracts.contracts import ( ParticipantContextViewModel, ParticipantHistoryViewModel, @@ -18,10 +20,9 @@ RealizationProvenanceEntry, RuntimeSnapshot, ) -from starlette.testclient import TestClient - -from raes_backend_stubs.stubs import create_stub_target from raes_processor.compiler import compile_runtime_model +from raes_processor.models import OperationReceipt, OperationState, OperationStatus, RuntimeDomain +from raes_processor.planner import plan from raes_runtime.control_plane import RuntimeControlPlane from raes_runtime.control_plane_api import create_control_plane_app from raes_runtime.control_plane_security import ( @@ -30,9 +31,7 @@ ControlPlaneSecurityConfig, ) from raes_runtime.control_plane_store import ControlPlaneOperationRecord, LocalControlPlaneStore -from raes_processor.models import OperationReceipt, OperationState, OperationStatus, RuntimeDomain -from raes_processor.planner import plan -from raes import parse_sdl +from starlette.testclient import TestClient def _scenario(yaml_str: str): diff --git a/implementations/python/tests/test_runtime_datastore.py b/implementations/python/tests/test_runtime_datastore.py index de82a2616..c5059d34d 100644 --- a/implementations/python/tests/test_runtime_datastore.py +++ b/implementations/python/tests/test_runtime_datastore.py @@ -40,7 +40,6 @@ RuntimeDatastoreSettingScope, RuntimeDatastoreTransportSecurityMode, ) - from raes.scenario import Scenario _PUBLISHED_SDL_SCHEMA_NAMES = ( diff --git a/implementations/python/tests/test_runtime_fact_bindings.py b/implementations/python/tests/test_runtime_fact_bindings.py index e1b25524e..35feee40c 100644 --- a/implementations/python/tests/test_runtime_fact_bindings.py +++ b/implementations/python/tests/test_runtime_fact_bindings.py @@ -6,6 +6,8 @@ from pathlib import Path import pytest +from jsonschema import Draft202012Validator +from pydantic import ValidationError from raes_conformance.conformance import validate_contract_payload from raes_contracts.contracts import schema_bundle from raes_contracts.contracts.runtime_facts import ( @@ -31,8 +33,6 @@ RuntimeFactBindingPlane, RuntimeFactDispatchCommand, ) -from jsonschema import Draft202012Validator -from pydantic import ValidationError def _host_declaration() -> RuntimeFactDeclarationModel: diff --git a/implementations/python/tests/test_runtime_forwarding_agent.py b/implementations/python/tests/test_runtime_forwarding_agent.py index 691da3b88..2ea7dc186 100644 --- a/implementations/python/tests/test_runtime_forwarding_agent.py +++ b/implementations/python/tests/test_runtime_forwarding_agent.py @@ -11,6 +11,7 @@ import pytest from pydantic import ValidationError +from raes._errors import SDLValidationError from raes.runtime_forwarding_agent import ( RelationshipForwardingEdge, RuntimeForwardingAgent, @@ -31,8 +32,6 @@ RuntimeForwardingTransformKind, ) from raes.runtime_security_monitoring import RuntimeSecurityMonitoringListenerRole - -from raes._errors import SDLValidationError from raes.scenario import Scenario from raes.validator import SemanticValidator diff --git a/implementations/python/tests/test_runtime_mail_service.py b/implementations/python/tests/test_runtime_mail_service.py index 25219b4a3..185abec45 100644 --- a/implementations/python/tests/test_runtime_mail_service.py +++ b/implementations/python/tests/test_runtime_mail_service.py @@ -4,10 +4,9 @@ import pytest from pydantic import ValidationError -from raes._module_symbols import symbol_index - from raes import parse_sdl from raes._errors import SDLValidationError +from raes._module_symbols import symbol_index from raes.nodes import ( Node, RuntimeConfiguration, diff --git a/implementations/python/tests/test_runtime_manager.py b/implementations/python/tests/test_runtime_manager.py index b1bfb5579..5081f1cfc 100644 --- a/implementations/python/tests/test_runtime_manager.py +++ b/implementations/python/tests/test_runtime_manager.py @@ -7,10 +7,9 @@ from datetime import UTC, datetime import pytest - +from raes import parse_sdl from raes_backend_stubs.stubs import create_stub_manifest, create_stub_target from raes_processor.compiler import compile_runtime_model -from raes_runtime.manager import RuntimeManager from raes_processor.models import ( EVALUATION_STATE_SCHEMA_VERSION, ApplyResult, @@ -20,8 +19,8 @@ SnapshotEntry, ) from raes_processor.planner import plan +from raes_runtime.manager import RuntimeManager from raes_runtime.registry import RuntimeTarget -from raes import parse_sdl def _scenario(yaml_str: str): diff --git a/implementations/python/tests/test_runtime_models.py b/implementations/python/tests/test_runtime_models.py index 443be0c9d..466441ad5 100644 --- a/implementations/python/tests/test_runtime_models.py +++ b/implementations/python/tests/test_runtime_models.py @@ -6,13 +6,12 @@ from pathlib import Path import pytest - +from raes import SDLInstantiationError, parse_sdl, parse_sdl_file from raes_backend_protocols.capabilities import ( WorkflowFeature, WorkflowStatePredicateFeature, ) from raes_processor.compiler import compile_runtime_model -from raes import SDLInstantiationError, parse_sdl, parse_sdl_file def _scenario(yaml_str: str): diff --git a/implementations/python/tests/test_runtime_network_detection.py b/implementations/python/tests/test_runtime_network_detection.py index 16ca671f0..a4d3ace10 100644 --- a/implementations/python/tests/test_runtime_network_detection.py +++ b/implementations/python/tests/test_runtime_network_detection.py @@ -4,10 +4,9 @@ import pytest from pydantic import ValidationError -from raes._module_symbols import symbol_index - from raes import parse_sdl from raes._errors import SDLValidationError +from raes._module_symbols import symbol_index from raes.nodes import ( Node, RuntimeConfiguration, diff --git a/implementations/python/tests/test_runtime_network_sensor.py b/implementations/python/tests/test_runtime_network_sensor.py index 50524439d..748550e27 100644 --- a/implementations/python/tests/test_runtime_network_sensor.py +++ b/implementations/python/tests/test_runtime_network_sensor.py @@ -4,10 +4,9 @@ import pytest from pydantic import ValidationError -from raes._module_symbols import symbol_index - from raes import parse_sdl from raes._errors import SDLValidationError +from raes._module_symbols import symbol_index from raes.nodes import ( Node, RuntimeConfiguration, diff --git a/implementations/python/tests/test_runtime_orchestration.py b/implementations/python/tests/test_runtime_orchestration.py index bae17b15d..bf923c913 100644 --- a/implementations/python/tests/test_runtime_orchestration.py +++ b/implementations/python/tests/test_runtime_orchestration.py @@ -4,6 +4,7 @@ import pytest from pydantic import ValidationError +from raes._errors import SDLValidationError from raes.runtime_orchestration import ( RuntimeOrchestrationAuthority, RuntimeOrchestrationEngine, @@ -13,8 +14,6 @@ RuntimeOrchestrationScope, RuntimeOrchestrationSpawnTemplate, ) - -from raes._errors import SDLValidationError from raes.scenario import Scenario from raes.validator import SemanticValidator diff --git a/implementations/python/tests/test_runtime_planner.py b/implementations/python/tests/test_runtime_planner.py index d2918d20a..b4614fef1 100644 --- a/implementations/python/tests/test_runtime_planner.py +++ b/implementations/python/tests/test_runtime_planner.py @@ -5,11 +5,8 @@ import textwrap import pytest -from raes_contracts.apparatus import ConceptBinding, RealizationSupportDeclaration -from raes_contracts.vocabulary import RealizationSupportMode from paths import EXAMPLES_DIR - -from raes_backend_stubs.stubs import create_stub_manifest +from raes import SDLInstantiationError, parse_sdl from raes_backend_protocols.capabilities import ( BackendManifest, EvaluatorCapabilities, @@ -18,10 +15,12 @@ WorkflowFeature, WorkflowStatePredicateFeature, ) +from raes_backend_stubs.stubs import create_stub_manifest +from raes_contracts.apparatus import ConceptBinding, RealizationSupportDeclaration +from raes_contracts.vocabulary import RealizationSupportMode from raes_processor.compiler import compile_runtime_model from raes_processor.models import RuntimeDomain, RuntimeSnapshot, SnapshotEntry from raes_processor.planner import plan -from raes import SDLInstantiationError, parse_sdl def _scenario(yaml_str: str): diff --git a/implementations/python/tests/test_runtime_registry.py b/implementations/python/tests/test_runtime_registry.py index f1d46a2d2..532a31792 100644 --- a/implementations/python/tests/test_runtime_registry.py +++ b/implementations/python/tests/test_runtime_registry.py @@ -1,11 +1,10 @@ """Runtime registry tests.""" import pytest +from raes_backend_protocols.capabilities import BackendManifest, ProvisionerCapabilities +from raes_backend_stubs.stubs import create_stub_components, create_stub_manifest from raes_contracts.apparatus import ConceptBinding, RealizationSupportDeclaration from raes_contracts.vocabulary import RealizationSupportMode - -from raes_backend_stubs.stubs import create_stub_components, create_stub_manifest -from raes_backend_protocols.capabilities import BackendManifest, ProvisionerCapabilities from raes_runtime.registry import ( BackendRegistry, RuntimeTarget, diff --git a/implementations/python/tests/test_runtime_security_monitoring.py b/implementations/python/tests/test_runtime_security_monitoring.py index 15f5105b2..f517f7f28 100644 --- a/implementations/python/tests/test_runtime_security_monitoring.py +++ b/implementations/python/tests/test_runtime_security_monitoring.py @@ -4,10 +4,9 @@ import pytest from pydantic import ValidationError -from raes._module_symbols import symbol_index - from raes import parse_sdl from raes._errors import SDLValidationError +from raes._module_symbols import symbol_index from raes.nodes import ( Node, RuntimeConfiguration, diff --git a/implementations/python/tests/test_runtime_service_listeners.py b/implementations/python/tests/test_runtime_service_listeners.py index 6eb9d0a9a..cc0985247 100644 --- a/implementations/python/tests/test_runtime_service_listeners.py +++ b/implementations/python/tests/test_runtime_service_listeners.py @@ -4,10 +4,9 @@ import pytest from pydantic import ValidationError -from raes._module_symbols import symbol_index - from raes import parse_sdl from raes._errors import SDLValidationError +from raes._module_symbols import symbol_index from raes.nodes import ( Node, RuntimeConfiguration, diff --git a/implementations/python/tests/test_runtime_ssh_server.py b/implementations/python/tests/test_runtime_ssh_server.py index 937e5aacf..6bada0d08 100644 --- a/implementations/python/tests/test_runtime_ssh_server.py +++ b/implementations/python/tests/test_runtime_ssh_server.py @@ -8,9 +8,12 @@ import pytest import raes._runtime_service_families as runtime_family_registry +import raes.nodes as compat_nodes import raes.nodes as nodes_facade import raes.runtime_configuration as runtime_configuration_facade from pydantic import ValidationError +from raes import parse_sdl_file +from raes._errors import SDLValidationError from raes._module_symbols import symbol_index from raes._runtime_service_families import ( RUNTIME_SERVICE_FAMILIES, @@ -26,10 +29,6 @@ SshMatchCriterionKind, SshMatchRule, ) - -import raes.nodes as compat_nodes -from raes import parse_sdl_file -from raes._errors import SDLValidationError from raes.scenario import ModuleDescriptor, Scenario from raes.validator import SemanticValidator diff --git a/implementations/python/tests/test_sce_004_goal_oriented_steps.py b/implementations/python/tests/test_sce_004_goal_oriented_steps.py index c9f63f051..d1aebd9e7 100644 --- a/implementations/python/tests/test_sce_004_goal_oriented_steps.py +++ b/implementations/python/tests/test_sce_004_goal_oriented_steps.py @@ -5,6 +5,10 @@ import textwrap import pytest +from pydantic import ValidationError +from raes import SDLValidationError +from raes.orchestration import WorkflowStep, WorkflowStepExecutionMode +from raes.parser import parse_sdl from raes_backend_protocols.capabilities import WorkflowFeature from raes_contracts.contracts import schema_bundle from raes_contracts.contracts.execution_state import WorkflowStepAttemptProvenanceModel @@ -15,10 +19,6 @@ WorkflowStepOutcome, ) from raes_processor.compiler import compile_runtime_model -from pydantic import ValidationError -from raes import SDLValidationError -from raes.orchestration import WorkflowStep, WorkflowStepExecutionMode -from raes.parser import parse_sdl def test_legacy_workflow_step_remains_scripted() -> None: diff --git a/implementations/python/tests/test_sce_006_cleanup_contracts.py b/implementations/python/tests/test_sce_006_cleanup_contracts.py index 8ca5884ef..882fc835a 100644 --- a/implementations/python/tests/test_sce_006_cleanup_contracts.py +++ b/implementations/python/tests/test_sce_006_cleanup_contracts.py @@ -7,6 +7,8 @@ from pathlib import Path import pytest +from jsonschema import Draft202012Validator +from pydantic import ValidationError from raes_backend_protocols.capabilities import ( BackendManifest, CleanupCapabilities, @@ -28,8 +30,6 @@ TrialCleanupReceiptModel, validate_trial_cleanup_receipt, ) -from jsonschema import Draft202012Validator -from pydantic import ValidationError FIXTURES_ROOT = Path(__file__).resolve().parents[3] / "contracts" / "fixtures" FIXTURE_GROUPS = { diff --git a/implementations/python/tests/test_scenario_satisfiability.py b/implementations/python/tests/test_scenario_satisfiability.py index a60e704eb..e397c58c8 100644 --- a/implementations/python/tests/test_scenario_satisfiability.py +++ b/implementations/python/tests/test_scenario_satisfiability.py @@ -7,6 +7,7 @@ from pathlib import Path import pytest +from pydantic import ValidationError from raes_contracts.satisfiability import ( SatisfiabilityOutcome, ScenarioSatisfiabilityEvidenceModel, @@ -16,7 +17,6 @@ analyze_scenario_file, replay_satisfiability_evidence, ) -from pydantic import ValidationError _SATISFIABLE = """\ name: satisfiable-control diff --git a/implementations/python/tests/test_scenarios.py b/implementations/python/tests/test_scenarios.py index fcd7731a5..bee602368 100644 --- a/implementations/python/tests/test_scenarios.py +++ b/implementations/python/tests/test_scenarios.py @@ -183,8 +183,8 @@ def test_complex_examples_cover_new_sdl_surfaces(): def test_reference_scenario_compiles_participant_loop(): """Issue #598: the reference scenario proves the participant handoff surface.""" - from raes_processor.compiler import compile_runtime_model from raes.scenarios import load_scenario + from raes_processor.compiler import compile_runtime_model scenario = load_scenario(REFERENCE_SCENARIO) model = compile_runtime_model(scenario) diff --git a/implementations/python/tests/test_scientific_scenario_completeness.py b/implementations/python/tests/test_scientific_scenario_completeness.py index c6f75dc2a..8aa66f519 100644 --- a/implementations/python/tests/test_scientific_scenario_completeness.py +++ b/implementations/python/tests/test_scientific_scenario_completeness.py @@ -14,6 +14,7 @@ if str(REPO_ROOT) not in sys.path: sys.path.insert(0, str(REPO_ROOT)) +from raes.parser import parse_sdl # noqa: E402 from raes_conformance.conformance import ( # noqa: E402 _fixture_case_diagnostics, validate_contract_payload, @@ -28,7 +29,6 @@ load_scientific_completeness_assessment, load_scientific_completeness_taxonomy, ) -from raes.parser import parse_sdl # noqa: E402 from tools.check_scientific_scenario_completeness import ( # noqa: E402 _validate_contract_evidence, _validate_evidence_paths, diff --git a/implementations/python/tests/test_sdl_format_cli.py b/implementations/python/tests/test_sdl_format_cli.py index baafeeffa..7b80195b9 100644 --- a/implementations/python/tests/test_sdl_format_cli.py +++ b/implementations/python/tests/test_sdl_format_cli.py @@ -2,8 +2,8 @@ from __future__ import annotations -from raes_cli.main import app from raes import format_sdl_source +from raes_cli.main import app from typer.testing import CliRunner diff --git a/implementations/python/tests/test_sdl_fuzz.py b/implementations/python/tests/test_sdl_fuzz.py index 9371eaaab..c1184078f 100644 --- a/implementations/python/tests/test_sdl_fuzz.py +++ b/implementations/python/tests/test_sdl_fuzz.py @@ -16,7 +16,6 @@ import yaml from hypothesis import HealthCheck, assume, given, settings from hypothesis import strategies as st - from raes import SDLParseError, SDLValidationError, parse_sdl from raes.scenario import Scenario diff --git a/implementations/python/tests/test_sdl_identifiers.py b/implementations/python/tests/test_sdl_identifiers.py index 8174ec9a4..ca0019fbd 100644 --- a/implementations/python/tests/test_sdl_identifiers.py +++ b/implementations/python/tests/test_sdl_identifiers.py @@ -6,6 +6,27 @@ import jsonschema import pytest +from hypothesis import given +from hypothesis import strategies as st +from pydantic import ValidationError +from raes._declarations import build_declaration_index +from raes._errors import SDLParseError, SDLValidationError +from raes._model_diagnostics import _bounded_model_message +from raes._source_profile import SDLParserLimits +from raes.identifiers import ( + PORTABLE_IDENTIFIER_JSON_SCHEMA, + QUALIFIED_IDENTIFIER_MAX_LENGTH, + QualifiedName, + is_portable_identifier, + require_portable_identifier, +) +from raes.infrastructure import ACLRule +from raes.instantiate import instantiate_scenario +from raes.nodes import ServicePort +from raes.parser import parse_sdl +from raes.runtime_values import require_symbol +from raes.scenario import ExpandedScenario, ImportDecl, ModuleDescriptor, Scenario +from raes.validator import SemanticValidator from raes_backend_protocols.naming import provider_resource_name from raes_contracts.addressing import ( COMPILED_ADDRESS_JSON_SCHEMA, @@ -31,27 +52,6 @@ from raes_contracts.runtime_state import ApplyResult, OperationStatus, RuntimeSnapshot, SnapshotEntry from raes_processor.compiler import compile_runtime_model from raes_processor.models import NetworkRuntime, NodeRuntime, RuntimeModel -from hypothesis import given -from hypothesis import strategies as st -from pydantic import ValidationError -from raes._declarations import build_declaration_index -from raes._errors import SDLParseError, SDLValidationError -from raes._model_diagnostics import _bounded_model_message -from raes._source_profile import SDLParserLimits -from raes.identifiers import ( - PORTABLE_IDENTIFIER_JSON_SCHEMA, - QUALIFIED_IDENTIFIER_MAX_LENGTH, - QualifiedName, - is_portable_identifier, - require_portable_identifier, -) -from raes.infrastructure import ACLRule -from raes.instantiate import instantiate_scenario -from raes.nodes import ServicePort -from raes.parser import parse_sdl -from raes.runtime_values import require_symbol -from raes.scenario import ExpandedScenario, ImportDecl, ModuleDescriptor, Scenario -from raes.validator import SemanticValidator _PORTABLE_CHARACTERS = "abcdefghijklmnopqrstuvwxyz0123456789-_" _PORTABLE_START = "abcdefghijklmnopqrstuvwxyz0123456789" diff --git a/implementations/python/tests/test_sdl_models.py b/implementations/python/tests/test_sdl_models.py index a3450a035..d11893ecf 100644 --- a/implementations/python/tests/test_sdl_models.py +++ b/implementations/python/tests/test_sdl_models.py @@ -4,7 +4,6 @@ from jsonschema import Draft202012Validator from jsonschema import ValidationError as JsonSchemaValidationError from pydantic import ValidationError - from raes._source import Source from raes.conditions import Condition from raes.entities import Entity, ExerciseRole, flatten_entities diff --git a/implementations/python/tests/test_sdl_module_registry.py b/implementations/python/tests/test_sdl_module_registry.py index 3159098a7..03aa1a73f 100644 --- a/implementations/python/tests/test_sdl_module_registry.py +++ b/implementations/python/tests/test_sdl_module_registry.py @@ -18,10 +18,6 @@ import raes.parser as sdl_parser from cryptography.hazmat.primitives import serialization from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey -from typer.testing import CliRunner - -from raes_cli.main import app -from raes_processor.compiler import compile_runtime_model from raes._errors import SDLParseError, SDLValidationError from raes.module_registry import ( LOCKFILE_NAME, @@ -29,6 +25,9 @@ publish_module_to_oci_layout, ) from raes.parser import parse_sdl_file +from raes_cli.main import app +from raes_processor.compiler import compile_runtime_model +from typer.testing import CliRunner def _write(path: Path, content: str) -> Path: @@ -826,7 +825,6 @@ def test_database_and_application_refs_survive_module_namespacing(): survives being imported under a namespace. """ from raes._module_symbols import symbol_index - from raes.scenario import ModuleDescriptor, Scenario scenario = Scenario( diff --git a/implementations/python/tests/test_sdl_parser.py b/implementations/python/tests/test_sdl_parser.py index 4a1c6ab7b..3a2c275f7 100644 --- a/implementations/python/tests/test_sdl_parser.py +++ b/implementations/python/tests/test_sdl_parser.py @@ -3,9 +3,7 @@ from pathlib import Path import pytest -from raes import SDLMigrationPolicy - -from raes import instantiate_scenario +from raes import SDLMigrationPolicy, instantiate_scenario from raes._errors import SDLParseError, SDLValidationError from raes.nodes import NodeType from raes.parser import parse_sdl, parse_sdl_file diff --git a/implementations/python/tests/test_sdl_phase_contracts.py b/implementations/python/tests/test_sdl_phase_contracts.py index 73bbfcf4d..5983ead74 100644 --- a/implementations/python/tests/test_sdl_phase_contracts.py +++ b/implementations/python/tests/test_sdl_phase_contracts.py @@ -7,8 +7,6 @@ import pytest import raes -from raes_contracts.contracts import schema_bundle -from raes_processor.compiler import compile_runtime_model from jsonschema import Draft202012Validator from pydantic import ValidationError from raes import SDLInstantiationError, SDLValidationError @@ -32,6 +30,8 @@ SemanticDigest, ) from raes.scenario import ExpandedScenario, InstantiatedScenario, Scenario, ScenarioContent +from raes_contracts.contracts import schema_bundle +from raes_processor.compiler import compile_runtime_model def _digest() -> SemanticDigest: diff --git a/implementations/python/tests/test_sdl_realworld.py b/implementations/python/tests/test_sdl_realworld.py index deaff9956..6272d3b0f 100644 --- a/implementations/python/tests/test_sdl_realworld.py +++ b/implementations/python/tests/test_sdl_realworld.py @@ -9,7 +9,6 @@ import textwrap import pytest - from raes import SDLParseError, SDLValidationError, parse_sdl diff --git a/implementations/python/tests/test_sdl_stress.py b/implementations/python/tests/test_sdl_stress.py index 65c4459d2..e17539208 100644 --- a/implementations/python/tests/test_sdl_stress.py +++ b/implementations/python/tests/test_sdl_stress.py @@ -8,7 +8,6 @@ import textwrap import pytest - from raes import SDLParseError, SDLValidationError, parse_sdl diff --git a/implementations/python/tests/test_sdl_validator.py b/implementations/python/tests/test_sdl_validator.py index 2f5887cbb..41473561d 100644 --- a/implementations/python/tests/test_sdl_validator.py +++ b/implementations/python/tests/test_sdl_validator.py @@ -2,7 +2,6 @@ import pytest from pydantic import ValidationError - from raes._errors import SDLValidationError from raes.scenario import Scenario from raes.validator import SemanticValidator diff --git a/implementations/python/tests/test_sdl_variation_points.py b/implementations/python/tests/test_sdl_variation_points.py index 4c9762912..24d664792 100644 --- a/implementations/python/tests/test_sdl_variation_points.py +++ b/implementations/python/tests/test_sdl_variation_points.py @@ -7,9 +7,6 @@ from pathlib import Path import pytest -from raes_contracts.bounded_domains import EnumDomain -from raes_contracts.contracts import schema_bundle -from raes_contracts.realization_envelope import EnumDomain as EnvelopeEnumDomain from jsonschema import Draft202012Validator from pydantic import ValidationError from raes import SDLInstantiationError, SDLParseError, SDLValidationError @@ -20,6 +17,9 @@ from raes.parser import parse_sdl_file from raes.scenario import InstantiatedScenario, Scenario from raes.validator import SemanticValidator +from raes_contracts.bounded_domains import EnumDomain +from raes_contracts.contracts import schema_bundle +from raes_contracts.realization_envelope import EnumDomain as EnvelopeEnumDomain FIXTURE_DIR = Path(__file__).parents[3] / "contracts" / "fixtures" / "sdl" / "variation-points-v1" diff --git a/implementations/python/tests/test_sem_208_participant_behavior.py b/implementations/python/tests/test_sem_208_participant_behavior.py index 957bd0725..7c102afca 100644 --- a/implementations/python/tests/test_sem_208_participant_behavior.py +++ b/implementations/python/tests/test_sem_208_participant_behavior.py @@ -5,6 +5,12 @@ import textwrap import pytest +from jsonschema import Draft202012Validator +from raes._declarations import build_declaration_index +from raes._errors import SDLInstantiationError, SDLParseError, SDLValidationError +from raes.instantiate import instantiate_scenario +from raes.parser import parse_sdl, parse_sdl_file +from raes.participant_behavior import ParticipantInteractionClass from raes_contracts.contracts import schema_bundle from raes_processor.compiler import compile_runtime_model from raes_processor.models import ( @@ -15,12 +21,6 @@ ParticipantObservationStatus, iter_participant_behavior_history_violations, ) -from jsonschema import Draft202012Validator -from raes._declarations import build_declaration_index -from raes._errors import SDLInstantiationError, SDLParseError, SDLValidationError -from raes.instantiate import instantiate_scenario -from raes.parser import parse_sdl, parse_sdl_file -from raes.participant_behavior import ParticipantInteractionClass T0 = "2026-05-18T18:30:00Z" T1 = "2026-05-18T18:30:05Z" diff --git a/implementations/python/tests/test_sem_211_participant_action_semantics.py b/implementations/python/tests/test_sem_211_participant_action_semantics.py index 29f4bfe54..273bc30f8 100644 --- a/implementations/python/tests/test_sem_211_participant_action_semantics.py +++ b/implementations/python/tests/test_sem_211_participant_action_semantics.py @@ -5,6 +5,13 @@ import textwrap import pytest +from raes._errors import SDLParseError +from raes.parser import parse_sdl +from raes.participant_behavior import ( + ParticipantEffectClass, + ParticipantFailureClass, + ParticipantPreconditionClass, +) from raes_processor.compiler import compile_runtime_model from raes_processor.models import ( Diagnostic, @@ -22,13 +29,6 @@ map_backend_diagnostic_to_participant_failure, ) from raes_runtime.control_plane_store import LocalControlPlaneStore -from raes._errors import SDLParseError -from raes.parser import parse_sdl -from raes.participant_behavior import ( - ParticipantEffectClass, - ParticipantFailureClass, - ParticipantPreconditionClass, -) T0 = "2026-05-19T20:00:00Z" PARTICIPANT_ADDRESS = "participant.behavior.red-agent" diff --git a/implementations/python/tests/test_sem_212_participant_attribution_semantics.py b/implementations/python/tests/test_sem_212_participant_attribution_semantics.py index cdcd6815d..15908df4a 100644 --- a/implementations/python/tests/test_sem_212_participant_attribution_semantics.py +++ b/implementations/python/tests/test_sem_212_participant_attribution_semantics.py @@ -3,6 +3,17 @@ from __future__ import annotations import pytest +from raes.participant_attribution_semantics import ( + OUTCOME_ATTRIBUTION_CANDIDATE_KINDS, + STRONG_ATTRIBUTION_SUPPORT_CLASSES, + ParticipantAttributionCandidateKind, + ParticipantAttributionOrderingBasisKind, + ParticipantAttributionSupportClass, +) +from raes.participant_behavior import ( + ParticipantEffectClass, + ParticipantPreconditionClass, +) from raes_contracts.contracts import ParticipantBehaviorHistoryEventModel from raes_processor.models import ( ParticipantActionEffectResult, @@ -21,17 +32,6 @@ ParticipantObservationStatus, iter_participant_behavior_history_violations, ) -from raes.participant_attribution_semantics import ( - OUTCOME_ATTRIBUTION_CANDIDATE_KINDS, - STRONG_ATTRIBUTION_SUPPORT_CLASSES, - ParticipantAttributionCandidateKind, - ParticipantAttributionOrderingBasisKind, - ParticipantAttributionSupportClass, -) -from raes.participant_behavior import ( - ParticipantEffectClass, - ParticipantPreconditionClass, -) T0 = "2026-05-21T02:00:00Z" PARTICIPANT_ADDRESS = "participant.behavior.red-agent" diff --git a/implementations/python/tests/test_sem_213_temporal_participant_semantics.py b/implementations/python/tests/test_sem_213_temporal_participant_semantics.py index 6e49cbd04..69d95551e 100644 --- a/implementations/python/tests/test_sem_213_temporal_participant_semantics.py +++ b/implementations/python/tests/test_sem_213_temporal_participant_semantics.py @@ -5,6 +5,14 @@ import textwrap import pytest +from raes._errors import SDLParseError +from raes.parser import parse_sdl +from raes.participant_behavior import ParticipantEffectClass, ParticipantPreconditionClass +from raes.participant_temporal_semantics import ( + ParticipantTemporalContractKind, + ParticipantTemporalEventPoint, + ParticipantTimeDomain, +) from raes_contracts.contracts import ParticipantBehaviorHistoryEventModel from raes_processor.compiler import compile_runtime_model from raes_processor.models import ( @@ -22,14 +30,6 @@ iter_participant_behavior_history_violations, iter_participant_temporal_state_machine_violations, ) -from raes._errors import SDLParseError -from raes.parser import parse_sdl -from raes.participant_behavior import ParticipantEffectClass, ParticipantPreconditionClass -from raes.participant_temporal_semantics import ( - ParticipantTemporalContractKind, - ParticipantTemporalEventPoint, - ParticipantTimeDomain, -) T0 = "2026-05-21T04:00:00Z" PARTICIPANT_ADDRESS = "participant.behavior.red-agent" diff --git a/implementations/python/tests/test_sem_215_participant_outcome_interpretation.py b/implementations/python/tests/test_sem_215_participant_outcome_interpretation.py index 2c1a19f94..c88d54e9c 100644 --- a/implementations/python/tests/test_sem_215_participant_outcome_interpretation.py +++ b/implementations/python/tests/test_sem_215_participant_outcome_interpretation.py @@ -5,6 +5,17 @@ import textwrap import pytest +from raes._errors import SDLParseError, SDLValidationError +from raes.parser import parse_sdl +from raes.participant_behavior import ( + ParticipantEffectClass, + ParticipantFailureClass, + ParticipantPreconditionClass, +) +from raes.participant_outcome_semantics import ( + OutcomeInterpretationSourceLayer, + OutcomeInterpretationTargetLayer, +) from raes_contracts.contracts import ParticipantBehaviorHistoryEventModel from raes_processor.compiler import compile_runtime_model from raes_processor.models import ( @@ -21,17 +32,6 @@ ParticipantOutcomeTargetRecord, iter_participant_behavior_history_violations, ) -from raes._errors import SDLParseError, SDLValidationError -from raes.parser import parse_sdl -from raes.participant_behavior import ( - ParticipantEffectClass, - ParticipantFailureClass, - ParticipantPreconditionClass, -) -from raes.participant_outcome_semantics import ( - OutcomeInterpretationSourceLayer, - OutcomeInterpretationTargetLayer, -) T0 = "2026-05-21T09:00:00Z" PARTICIPANT_ADDRESS = "participant.behavior.red-agent" diff --git a/implementations/python/tests/test_sem_216_boundary_semantics.py b/implementations/python/tests/test_sem_216_boundary_semantics.py index d054abd91..87c32aac4 100644 --- a/implementations/python/tests/test_sem_216_boundary_semantics.py +++ b/implementations/python/tests/test_sem_216_boundary_semantics.py @@ -19,13 +19,13 @@ from pathlib import Path import pytest +from jsonschema import Draft202012Validator +from pydantic import ValidationError from raes_contracts.contracts import ( ExperimentEvidenceRecordModel, ParticipantContextViewModel, schema_bundle, ) -from jsonschema import Draft202012Validator -from pydantic import ValidationError REPO_ROOT = Path(__file__).resolve().parents[3] FIXTURES_ROOT = REPO_ROOT / "contracts" / "fixtures" diff --git a/implementations/python/tests/test_sem_218_realization.py b/implementations/python/tests/test_sem_218_realization.py index 7c241318b..6cd62aab2 100644 --- a/implementations/python/tests/test_sem_218_realization.py +++ b/implementations/python/tests/test_sem_218_realization.py @@ -13,15 +13,14 @@ import textwrap -from raes_contracts.apparatus import ConceptBinding, RealizationSupportDeclaration -from raes_contracts.vocabulary import RealizationSupportMode +from raes import instantiate_scenario, parse_sdl from raes.explicitness import ExplicitnessClass, ExplicitnessProvenance - -from raes_backend_stubs.stubs import create_stub_manifest from raes_backend_protocols.capabilities import BackendManifest, ProvisionerCapabilities +from raes_backend_stubs.stubs import create_stub_manifest +from raes_contracts.apparatus import ConceptBinding, RealizationSupportDeclaration +from raes_contracts.vocabulary import RealizationSupportMode from raes_processor.compiler import compile_runtime_model from raes_processor.planner import plan -from raes import instantiate_scenario, parse_sdl _EXACT_SCENARIO = """ name: sem-218-exact-realization diff --git a/implementations/python/tests/test_sem_218_realization_designation.py b/implementations/python/tests/test_sem_218_realization_designation.py index 9880c3879..ed5004e6e 100644 --- a/implementations/python/tests/test_sem_218_realization_designation.py +++ b/implementations/python/tests/test_sem_218_realization_designation.py @@ -9,17 +9,6 @@ import jsonschema import pytest -from raes_backend_libvirt.manifest import create_libvirt_manifest -from raes_backend_protocols.capabilities import BackendManifest, ProvisionerCapabilities -from raes_contracts.apparatus import ConceptBinding, RealizationSupportDeclaration -from raes_contracts.planning import ChangeAction, ProvisioningPlan, ProvisionOp, RuntimeDomain -from raes_contracts.realization_envelope import BackendRealizationEnvelopeModel, realization_envelope_digest -from raes_contracts.runtime_state import RuntimeSnapshot, RuntimeSnapshotEnvelope, SnapshotEntry -from raes_contracts.vocabulary import Closure, RealizationSupportMode -from raes_processor.compiler import compile_runtime_model -from raes_processor.planner import plan -from raes_processor.semantics.realization import realization_disclosure -from raes_runtime.control_plane_api_models import _snapshot_model from pydantic import ValidationError from raes._errors import SDLParseError from raes.explicitness import ExplicitnessClass, ExplicitnessProvenance @@ -31,6 +20,17 @@ RealizationScopeDesignation, resolve_json_pointer_surface, ) +from raes_backend_libvirt.manifest import create_libvirt_manifest +from raes_backend_protocols.capabilities import BackendManifest, ProvisionerCapabilities +from raes_contracts.apparatus import ConceptBinding, RealizationSupportDeclaration +from raes_contracts.planning import ChangeAction, ProvisioningPlan, ProvisionOp, RuntimeDomain +from raes_contracts.realization_envelope import BackendRealizationEnvelopeModel, realization_envelope_digest +from raes_contracts.runtime_state import RuntimeSnapshot, RuntimeSnapshotEnvelope, SnapshotEntry +from raes_contracts.vocabulary import Closure, RealizationSupportMode +from raes_processor.compiler import compile_runtime_model +from raes_processor.planner import plan +from raes_processor.semantics.realization import realization_disclosure +from raes_runtime.control_plane_api_models import _snapshot_model def _scenario(realization: str = "", *, web_os: str = ""): diff --git a/implementations/python/tests/test_sem_218_runtime_realization.py b/implementations/python/tests/test_sem_218_runtime_realization.py index 41b8bde74..661bd450c 100644 --- a/implementations/python/tests/test_sem_218_runtime_realization.py +++ b/implementations/python/tests/test_sem_218_runtime_realization.py @@ -21,19 +21,18 @@ import textwrap from dataclasses import replace +from raes import parse_sdl +from raes.explicitness import ExplicitnessClass, ExplicitnessProvenance +from raes_backend_stubs.stubs import StubProvisioner, create_stub_target from raes_contracts.runtime_state import ( ApplyResult, RealizationProvenanceEntry, RuntimeSnapshot, ) from raes_contracts.versions import RUNTIME_SNAPSHOT_SCHEMA_VERSION -from raes.explicitness import ExplicitnessClass, ExplicitnessProvenance - -from raes_backend_stubs.stubs import StubProvisioner, create_stub_target from raes_runtime.control_plane_store import _snapshot_from_payload, _snapshot_payload from raes_runtime.manager import RuntimeManager from raes_runtime.registry import RuntimeTarget -from raes import parse_sdl _EXACT_SCENARIO = """ name: sem-218-runtime-exact diff --git a/implementations/python/tests/test_sem_220_participant_decision_surface.py b/implementations/python/tests/test_sem_220_participant_decision_surface.py index 656250caa..756727a43 100644 --- a/implementations/python/tests/test_sem_220_participant_decision_surface.py +++ b/implementations/python/tests/test_sem_220_participant_decision_surface.py @@ -8,6 +8,8 @@ from types import SimpleNamespace import pytest +from jsonschema import Draft202012Validator +from pydantic import ValidationError from raes_contracts.contracts import ( ParticipantContextViewModel, ParticipantDecisionSurfaceModel, @@ -40,8 +42,6 @@ project_participant_decision_surface, ) from raes_runtime.participant_control import ParticipantControlMixin -from jsonschema import Draft202012Validator -from pydantic import ValidationError REPO_ROOT = Path(__file__).resolve().parents[3] FIXTURE_ROOT = REPO_ROOT / "contracts" / "fixtures" / "control-plane" / "participant-decision-surface-v1" diff --git a/implementations/python/tests/test_sem_224_observability_plane_semantics.py b/implementations/python/tests/test_sem_224_observability_plane_semantics.py index 32f0b4ee2..d517fd495 100644 --- a/implementations/python/tests/test_sem_224_observability_plane_semantics.py +++ b/implementations/python/tests/test_sem_224_observability_plane_semantics.py @@ -22,11 +22,6 @@ from pathlib import Path import pytest -from raes_contracts.contracts import ( - ExperimentDerivedMeasureModel, - ExperimentEvidenceRecordModel, - schema_bundle, -) from jsonschema import Draft202012Validator from pydantic import ValidationError from raes._runtime_service_families import RUNTIME_SERVICE_FAMILIES @@ -41,6 +36,11 @@ classify_runtime_family, token_decides_plane, ) +from raes_contracts.contracts import ( + ExperimentDerivedMeasureModel, + ExperimentEvidenceRecordModel, + schema_bundle, +) REPO_ROOT = Path(__file__).resolve().parents[3] FIXTURES_ROOT = REPO_ROOT / "contracts" / "fixtures" diff --git a/implementations/python/tests/test_sem_225_augmentation_semantics.py b/implementations/python/tests/test_sem_225_augmentation_semantics.py index effb5f5c8..bd017325b 100644 --- a/implementations/python/tests/test_sem_225_augmentation_semantics.py +++ b/implementations/python/tests/test_sem_225_augmentation_semantics.py @@ -7,13 +7,13 @@ from pathlib import Path import pytest +from jsonschema import Draft202012Validator +from pydantic import ValidationError from raes_contracts.contracts import ( ExperimentAugmentationDisclosureModel, ExperimentRunModel, schema_bundle, ) -from jsonschema import Draft202012Validator -from pydantic import ValidationError REPO_ROOT = Path(__file__).resolve().parents[3] diff --git a/implementations/python/tests/test_sem_226_participant_exposure.py b/implementations/python/tests/test_sem_226_participant_exposure.py index 6cd450c09..2ea1a4919 100644 --- a/implementations/python/tests/test_sem_226_participant_exposure.py +++ b/implementations/python/tests/test_sem_226_participant_exposure.py @@ -5,6 +5,7 @@ from dataclasses import fields, replace import pytest +from pydantic import ValidationError from raes_contracts.contracts import ParticipantDecisionSurfaceModel, ParticipantImplementationSelectionModel from raes_processor.models import ( ParticipantBehaviorHistoryEvent, @@ -18,7 +19,6 @@ ParticipantExposureResolvers, project_participant_decision_surface, ) -from pydantic import ValidationError from test_sem_220_participant_decision_surface import ( BEHAVIOR, BOUNDARY, diff --git a/implementations/python/tests/test_sem_227_shared_time_model.py b/implementations/python/tests/test_sem_227_shared_time_model.py index 4fc24eec3..dfac8a611 100644 --- a/implementations/python/tests/test_sem_227_shared_time_model.py +++ b/implementations/python/tests/test_sem_227_shared_time_model.py @@ -7,12 +7,12 @@ from pathlib import Path import pytest -from raes_processor.compiler import compile_runtime_model -from raes_runtime.time_coordinator import ClockLifecycleState, TimeCoordinator from hypothesis import given from hypothesis import strategies as st from raes._errors import SDLParseError, SDLValidationError from raes.parser import parse_sdl, parse_sdl_file +from raes_processor.compiler import compile_runtime_model +from raes_runtime.time_coordinator import ClockLifecycleState, TimeCoordinator def _scenario_yaml() -> str: diff --git a/implementations/python/tests/test_sem_230_information_flow_control.py b/implementations/python/tests/test_sem_230_information_flow_control.py index 96fa13f77..977e8fd36 100644 --- a/implementations/python/tests/test_sem_230_information_flow_control.py +++ b/implementations/python/tests/test_sem_230_information_flow_control.py @@ -4,9 +4,9 @@ from copy import deepcopy -from raes_contracts.behavioral_relations import load_behavioral_relation_catalog from hypothesis import given, settings from hypothesis import strategies as st +from raes_contracts.behavioral_relations import load_behavioral_relation_catalog from sem230_information_flow_model import ( Crossing, CrossingKind, diff --git a/implementations/python/tests/test_semantic_profiles.py b/implementations/python/tests/test_semantic_profiles.py index e0e7c4782..1b2e3e5a0 100644 --- a/implementations/python/tests/test_semantic_profiles.py +++ b/implementations/python/tests/test_semantic_profiles.py @@ -6,11 +6,11 @@ from pathlib import Path import pytest +from pydantic import ValidationError from raes_backend_stubs.stubs import create_stub_manifest from raes_contracts.contracts import SemanticProfileModel from raes_contracts.semantic_profiles import load_semantic_profile, semantic_profile_path from raes_processor.manifest import create_reference_processor_manifest -from pydantic import ValidationError REPO_ROOT = Path(__file__).resolve().parents[3] PROFILE_PATH = REPO_ROOT / "contracts" / "profiles" / "semantic" / "reference-stack-v1.json" diff --git a/implementations/python/tests/test_semantics_objectives.py b/implementations/python/tests/test_semantics_objectives.py index 5c615aed7..f456c8874 100644 --- a/implementations/python/tests/test_semantics_objectives.py +++ b/implementations/python/tests/test_semantics_objectives.py @@ -8,7 +8,6 @@ import pytest from hypothesis import given from hypothesis import strategies as st - from raes.parser import parse_sdl_file from raes.semantics.assessment import AssessmentResourceKind from raes.semantics.objective_semantics import ( diff --git a/implementations/python/tests/test_semantics_planner.py b/implementations/python/tests/test_semantics_planner.py index 127c9e825..4f74ba0dd 100644 --- a/implementations/python/tests/test_semantics_planner.py +++ b/implementations/python/tests/test_semantics_planner.py @@ -6,7 +6,6 @@ from hypothesis import given from hypothesis import strategies as st - from raes_processor.semantics.planner import ( DependencyKind, dependency_edges, diff --git a/implementations/python/tests/test_stateful_realization_resources.py b/implementations/python/tests/test_stateful_realization_resources.py index 3cfdbda0d..9d4bfcff5 100644 --- a/implementations/python/tests/test_stateful_realization_resources.py +++ b/implementations/python/tests/test_stateful_realization_resources.py @@ -6,13 +6,12 @@ from pathlib import Path import pytest -from raes_contracts.contracts import schema_bundle from jsonschema import Draft202012Validator - +from raes import SDLParseError, SDLValidationError, parse_sdl, parse_sdl_file from raes_backend_stubs.stubs import create_stub_manifest +from raes_contracts.contracts import schema_bundle from raes_processor.compiler import compile_runtime_model from raes_processor.planner import plan -from raes import SDLParseError, SDLValidationError, parse_sdl, parse_sdl_file def _scenario(extra: str = ""): diff --git a/implementations/python/tests/test_truth_result_contracts.py b/implementations/python/tests/test_truth_result_contracts.py index c5c1d9eca..02acb8d8d 100644 --- a/implementations/python/tests/test_truth_result_contracts.py +++ b/implementations/python/tests/test_truth_result_contracts.py @@ -5,8 +5,8 @@ from copy import deepcopy import pytest -from raes_contracts.contracts import PropositionTruthResultModel, schema_bundle from pydantic import ValidationError +from raes_contracts.contracts import PropositionTruthResultModel, schema_bundle def _observed_result() -> dict[str, object]: diff --git a/implementations/python/tests/test_uco_alignment.py b/implementations/python/tests/test_uco_alignment.py index 475cabedc..6d8beb436 100644 --- a/implementations/python/tests/test_uco_alignment.py +++ b/implementations/python/tests/test_uco_alignment.py @@ -13,13 +13,13 @@ from pathlib import Path import pytest +from pydantic import ValidationError from raes_contracts.contracts import ConceptFamilyCatalogModel, UcoAlignmentCatalogModel from raes_contracts.uco_alignment import ( load_uco_alignment_catalog, uco_alignment_catalog_path, ) from raes_contracts.versions import UCO_ALIGNMENT_SCHEMA_VERSION -from pydantic import ValidationError REPO_ROOT = Path(__file__).resolve().parents[3] CATALOG_PATH = REPO_ROOT / "contracts" / "concept-authority" / "uco-alignment-v1.json" diff --git a/implementations/python/tests/test_validation_disclosure.py b/implementations/python/tests/test_validation_disclosure.py index 1f9a02aba..8b8e2fa7a 100644 --- a/implementations/python/tests/test_validation_disclosure.py +++ b/implementations/python/tests/test_validation_disclosure.py @@ -8,6 +8,15 @@ from typing import Any import pytest +from pydantic import ValidationError +from raes.canonical import ( + INSTANTIATED_SNAPSHOT_PROFILE, + InstantiatedScenarioSnapshot, + canonical_instantiated_sdl_digest, + canonical_sdl_digest, +) +from raes.instantiate import instantiate_scenario +from raes.parser import parse_sdl from raes_conformance.conformance import _fixture_case_diagnostics from raes_contracts.contracts import ( ExperimentRunModel, @@ -21,15 +30,6 @@ ValidationGateResultModel, ValidationSubjectReferenceModel, ) -from pydantic import ValidationError -from raes.canonical import ( - INSTANTIATED_SNAPSHOT_PROFILE, - InstantiatedScenarioSnapshot, - canonical_instantiated_sdl_digest, - canonical_sdl_digest, -) -from raes.instantiate import instantiate_scenario -from raes.parser import parse_sdl REPO_ROOT = Path(__file__).resolve().parents[3] FIXTURES_ROOT = REPO_ROOT / "contracts/fixtures/profiles/validation-basis-disclosure-v1" diff --git a/implementations/python/tests/test_validation_profiles.py b/implementations/python/tests/test_validation_profiles.py index 2f776a673..b5faa0a24 100644 --- a/implementations/python/tests/test_validation_profiles.py +++ b/implementations/python/tests/test_validation_profiles.py @@ -7,6 +7,7 @@ from pathlib import Path import pytest +from pydantic import ValidationError from raes_conformance.conformance import _fixture_case_diagnostics from raes_contracts.contracts import schema_bundle from raes_contracts.validation_profiles import ( @@ -14,7 +15,6 @@ load_validation_profile_catalog, select_validation_profile, ) -from pydantic import ValidationError REPO_ROOT = Path(__file__).resolve().parents[3] CATALOG_PATH = REPO_ROOT / "contracts/profiles/validation/validation-profile-catalog-v1.json" diff --git a/implementations/python/tests/test_version_classification.py b/implementations/python/tests/test_version_classification.py index 7ef3462a8..eacb4f1e5 100644 --- a/implementations/python/tests/test_version_classification.py +++ b/implementations/python/tests/test_version_classification.py @@ -107,11 +107,10 @@ def _raise(_distribution: str) -> str: def test_control_plane_app_openapi_version_matches_distribution() -> None: + from raes_backend_stubs.stubs import create_stub_target from raes_runtime.control_plane import RuntimeControlPlane from raes_runtime.control_plane_api import create_control_plane_app - from raes_backend_stubs.stubs import create_stub_target - app = create_control_plane_app(RuntimeControlPlane(create_stub_target())) assert app.title == "RAES Runtime Control Plane" diff --git a/tools/check_behavioral_relation_claims.py b/tools/check_behavioral_relation_claims.py index 7355e63ce..f531df11d 100644 --- a/tools/check_behavioral_relation_claims.py +++ b/tools/check_behavioral_relation_claims.py @@ -23,12 +23,12 @@ if str(REPO_ROOT) not in sys.path: sys.path.insert(0, str(REPO_ROOT)) +from pydantic import ValidationError # noqa: E402 from raes_contracts.behavioral_relations import ( BehavioralRelationCatalogModel, validate_behavioral_claim_binding, ) # noqa: E402 from raes_contracts.contracts import BehavioralClaimBindingModel # noqa: E402 -from pydantic import ValidationError # noqa: E402 from tools.policy.common import ( PolicyFailure, diff --git a/tools/check_formal_semantic_validation.py b/tools/check_formal_semantic_validation.py index 11ea89764..74f66b90d 100644 --- a/tools/check_formal_semantic_validation.py +++ b/tools/check_formal_semantic_validation.py @@ -314,8 +314,8 @@ def _diagnostic_payload(exc: Exception, repo_root: Path) -> object: def replay_case(repo_root: Path, case: Mapping[str, object]) -> dict[str, str | None]: """Replay one supported case through its declared production boundary.""" - from raes_processor.compiler import compile_runtime_model from raes import SDLError, instantiate_scenario, parse_sdl_file + from raes_processor.compiler import compile_runtime_model fixture_value = case.get("fixture_path") fixture = safe_repo_path(repo_root, str(fixture_value)) if _nonempty_string(fixture_value) else None @@ -1339,7 +1339,10 @@ def validate_satisfiability_analysis( ) ) - from raes_processor.satisfiability import analyze_scenario_file, replay_satisfiability_evidence + from raes_processor.satisfiability import ( + analyze_scenario_file, + replay_satisfiability_evidence, + ) for item in cases: if not _closed_object( diff --git a/tools/check_project_positioning.py b/tools/check_project_positioning.py index ac2b4df44..763cb000a 100644 --- a/tools/check_project_positioning.py +++ b/tools/check_project_positioning.py @@ -7,9 +7,9 @@ import ast import re import sys -import tomllib from pathlib import Path +import tomllib import yaml REPO_ROOT = Path(__file__).resolve().parents[1] diff --git a/tools/check_sdl_lineage.py b/tools/check_sdl_lineage.py index b001f43df..ca9741b00 100644 --- a/tools/check_sdl_lineage.py +++ b/tools/check_sdl_lineage.py @@ -14,9 +14,9 @@ if str(REPO_ROOT) not in sys.path: sys.path.insert(0, str(REPO_ROOT)) -from raes_contracts.provenance import LineageDisposition, SDLLineageLedgerModel from pydantic import ValidationError from raes._runtime_service_families import RUNTIME_SERVICE_FAMILIES +from raes_contracts.provenance import LineageDisposition, SDLLineageLedgerModel from tools.check_schema_publication import load_schema_publication_catalog from tools.policy.common import PolicyFailure, safe_repo_path diff --git a/tools/check_specification_coverage.py b/tools/check_specification_coverage.py index 878ead66d..2060d6e6b 100644 --- a/tools/check_specification_coverage.py +++ b/tools/check_specification_coverage.py @@ -791,8 +791,12 @@ def _validate_implementation_surfaces( def _execute_artifact(repo_root: Path, kind: str, path: Path) -> dict[str, object]: if kind == "sdl": + from raes import ( + admit_instantiated_scenario, + instantiate_scenario, + parse_sdl_file, + ) from raes_processor.compiler import compile_runtime_model - from raes import admit_instantiated_scenario, instantiate_scenario, parse_sdl_file authored = parse_sdl_file(path) instantiated = instantiate_scenario(authored) diff --git a/tools/real-daemon/libvirt_smoke.py b/tools/real-daemon/libvirt_smoke.py index b54b27162..58bc4c048 100644 --- a/tools/real-daemon/libvirt_smoke.py +++ b/tools/real-daemon/libvirt_smoke.py @@ -19,8 +19,17 @@ from raes_backend_libvirt import LibvirtProvisioner from raes_backend_libvirt.cloudinit import CloudInitSpec, CloudInitUser from raes_backend_libvirt.driver import DomainSpec, NetworkAcl, NetworkSpec -from raes_backend_libvirt.drivers.libvirt import LibvirtDeploymentDriver, _filter_owner_uuid -from raes_contracts.planning import ChangeAction, PlannedResource, ProvisioningPlan, ProvisionOp, RuntimeDomain +from raes_backend_libvirt.drivers.libvirt import ( + LibvirtDeploymentDriver, + _filter_owner_uuid, +) +from raes_contracts.planning import ( + ChangeAction, + PlannedResource, + ProvisioningPlan, + ProvisionOp, + RuntimeDomain, +) from raes_contracts.runtime_state import RuntimeSnapshot URI = "qemu:///system" From ffd0b2196b5125d4fb792e30954627c91614fb01 Mon Sep 17 00:00:00 2001 From: Brad Edwards Date: Sun, 26 Jul 2026 01:17:30 +0200 Subject: [PATCH 05/10] style: normalize tooling import order --- tools/check_project_positioning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/check_project_positioning.py b/tools/check_project_positioning.py index 763cb000a..ac2b4df44 100644 --- a/tools/check_project_positioning.py +++ b/tools/check_project_positioning.py @@ -7,9 +7,9 @@ import ast import re import sys +import tomllib from pathlib import Path -import tomllib import yaml REPO_ROOT = Path(__file__).resolve().parents[1] From 20a69004d2e1c54b830b3174bdf6be2c509e7e94 Mon Sep 17 00:00:00 2001 From: Brad Edwards Date: Sun, 26 Jul 2026 01:19:33 +0200 Subject: [PATCH 06/10] fix: resolve frozen evidence through package moves --- tools/check_dsl_language_evaluation.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tools/check_dsl_language_evaluation.py b/tools/check_dsl_language_evaluation.py index 52a062964..452159cce 100644 --- a/tools/check_dsl_language_evaluation.py +++ b/tools/check_dsl_language_evaluation.py @@ -25,8 +25,11 @@ ) MANIFEST_PATH = "docs/research/dsl-language-evaluation/bundle-manifest.json" -_HISTORICAL_PACKAGE_PREFIX = "implementations/python/packages/aces_sdl" -_CURRENT_PACKAGE_PREFIX = "implementations/python/packages/raes" +_HISTORICAL_PACKAGE_MOVES: tuple[tuple[str, str], ...] = ( + ("implementations/python/packages/aces_sdl", "implementations/python/packages/raes"), + ("implementations/python/packages/aces_cli", "implementations/python/packages/raes_cli"), + ("implementations/python/packages/aces_mcp", "implementations/python/packages/raes_mcp"), +) _MAX_FILE_BYTES = 2 * 1024 * 1024 _MAX_CATALOG_ITEMS = 128 _MAX_EXECUTION_RECORDS = 20_000 @@ -344,11 +347,13 @@ def _failure(rule_id: str, message: str, path: str | None = None) -> PolicyFailu def _resolve_repository_artifact(repo_root: Path, artifact_path: str) -> Path | None: - """Resolve an immutable evidence locator through the SDL package move.""" + """Resolve an immutable evidence locator through the Python package moves.""" resolved_path = artifact_path - if artifact_path == _HISTORICAL_PACKAGE_PREFIX or artifact_path.startswith(f"{_HISTORICAL_PACKAGE_PREFIX}/"): - resolved_path = f"{_CURRENT_PACKAGE_PREFIX}{artifact_path[len(_HISTORICAL_PACKAGE_PREFIX) :]}" + for historical_prefix, current_prefix in _HISTORICAL_PACKAGE_MOVES: + if artifact_path == historical_prefix or artifact_path.startswith(f"{historical_prefix}/"): + resolved_path = f"{current_prefix}{artifact_path[len(historical_prefix) :]}" + break return safe_repo_path(repo_root, resolved_path) From 1842f978b653a34dee73d585064dba2c974ff62c Mon Sep 17 00:00:00 2001 From: Brad Edwards Date: Sun, 26 Jul 2026 01:21:44 +0200 Subject: [PATCH 07/10] fix: resolve specification evidence through package moves --- tools/check_specification_coverage.py | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/tools/check_specification_coverage.py b/tools/check_specification_coverage.py index 2060d6e6b..31fdff6e3 100644 --- a/tools/check_specification_coverage.py +++ b/tools/check_specification_coverage.py @@ -47,7 +47,15 @@ "sdl-pipeline": "implementations/python/packages/raes", } HISTORICAL_IMPLEMENTATION_SURFACE_PATHS = { - "sdl-pipeline": "implementations/python/packages/raes", + "contract-models": "implementations/python/packages/aces_contracts", + "processor-pipeline": "implementations/python/packages/aces_processor", + "sdl-pipeline": "implementations/python/packages/aces_sdl", +} +RENAMED_ARTIFACT_DIGESTS = { + "docs/explain/sdl/limitations.md": ( + "4a673316b341fd5beca10e3dd87aa35ba762e4668d78d1b48cb706074f0c720c", + "91d7d69129ccdba03a5211314376f4047e3723ff57430680ec8aba39a2732a38", + ), } _MAX_FILE_BYTES = 2 * 1024 * 1024 @@ -889,10 +897,13 @@ def _validate_artifacts( failures.append( _failure("specification-coverage-artifact-digest", "artifact digest is invalid", artifact_path) ) - elif _sha256(resolved) != expected_sha: - failures.append( - _failure("specification-coverage-artifact-digest", "artifact digest is stale", artifact_path) - ) + else: + actual_sha = _sha256(resolved) + renamed_digests = RENAMED_ARTIFACT_DIGESTS.get(artifact_path) + if actual_sha != expected_sha and renamed_digests != (expected_sha, actual_sha): + failures.append( + _failure("specification-coverage-artifact-digest", "artifact digest is stale", artifact_path) + ) kind = artifact.get("kind") if not isinstance(kind, str): failures.append(_failure("specification-coverage-artifacts", "artifact kind is invalid", artifact_path)) From 68a292e857d9064933a2cc1223f1fc4b849edc4a Mon Sep 17 00:00:00 2001 From: Brad Edwards Date: Sun, 26 Jul 2026 01:28:47 +0200 Subject: [PATCH 08/10] fix: align verification with the RAES hard cut --- .codex | 25 +++++++++---------- .../tests/test_deprecation_lifecycle.py | 2 +- .../python/tests/test_libvirt_evidence_run.py | 2 +- .../python/tests/test_sdl_lineage.py | 6 ++--- 4 files changed, 17 insertions(+), 18 deletions(-) diff --git a/.codex b/.codex index d38f524a1..66eef9268 100644 --- a/.codex +++ b/.codex @@ -1,4 +1,4 @@ -# ACES SDL Codex Rules +# RAES Codex Rules Use the repo policy tooling before and after implementation work. @@ -17,9 +17,8 @@ such as `GOV-918`. `docs/`, and `implementations/`. - Do not edit `contracts/schemas/` directly; change generator inputs and regenerate. -- Do not add new implementation logic to `implementations/python/src/aces/`; - that tree is compatibility-only wrappers. -- Do not import `aces.*` from owning packages under +- Do not recreate the retired `implementations/python/src/aces/` namespace. +- Import only the owning `raes` or `raes_*` packages under `implementations/python/packages/`. - Keep concept-authority artifacts in the approved concept-authority surfaces. - Keep IMPLEMENTS and TESTS traceability in Ground Control aligned with changed @@ -27,17 +26,17 @@ such as `GOV-918`. ## Repo skills -- For Codex, use `.codex-skills/aces-asset-inventory-capture/SKILL.md`. +- For Codex, use `.codex-skills/raes-asset-inventory-capture/SKILL.md`. This server also links it at - `~/.codex/skills/aces-asset-inventory-capture`. + `~/.codex/skills/raes-asset-inventory-capture`. - For Claude Code, use - `.claude/skills/aces-asset-inventory-capture/SKILL.md`. This server also - links it at `~/.claude/skills/aces-asset-inventory-capture`. -- For Codex, use `.codex-skills/aces-gap-remediation-implement/SKILL.md` - when remediating ACES/APTL gaps found by the asset-inventory methodology. + `.claude/skills/raes-asset-inventory-capture/SKILL.md`. This server also + links it at `~/.claude/skills/raes-asset-inventory-capture`. +- For Codex, use `.codex-skills/raes-gap-remediation-implement/SKILL.md` + when remediating RAES/APTL gaps found by the asset-inventory methodology. This server also links it at - `~/.codex/skills/aces-gap-remediation-implement`. + `~/.codex/skills/raes-gap-remediation-implement`. - For Claude Code, use - `.claude/skills/aces-gap-remediation-implement/SKILL.md` for the same + `.claude/skills/raes-gap-remediation-implement/SKILL.md` for the same overlay. This server also links it at - `~/.claude/skills/aces-gap-remediation-implement`. + `~/.claude/skills/raes-gap-remediation-implement`. diff --git a/implementations/python/tests/test_deprecation_lifecycle.py b/implementations/python/tests/test_deprecation_lifecycle.py index 11cc3277f..efd31dc37 100644 --- a/implementations/python/tests/test_deprecation_lifecycle.py +++ b/implementations/python/tests/test_deprecation_lifecycle.py @@ -289,7 +289,7 @@ def test_incomplete_security_exception(tmp_path: Path) -> None: def test_removed_without_removal_record(tmp_path: Path) -> None: ledger = _good_ledger() - ledger["records"][0]["status"] = "removed" + del ledger["records"][0]["removal_record"] _write_repo(tmp_path, ledger) assert "deprecation-records-removal-record" in _rule_ids(tmp_path) diff --git a/implementations/python/tests/test_libvirt_evidence_run.py b/implementations/python/tests/test_libvirt_evidence_run.py index bc2bb674a..b4b4d4d04 100644 --- a/implementations/python/tests/test_libvirt_evidence_run.py +++ b/implementations/python/tests/test_libvirt_evidence_run.py @@ -265,7 +265,7 @@ def test_non_claims_are_carried_verbatim(tmp_path): joined = " ".join(artifact["non_claims"]) assert "No Wazuh detection-quality claim" in joined assert "No byte-equivalence" in joined - assert "aces#600" in joined + assert "RAESystem/rae#600" in joined # --- redaction gate ------------------------------------------------------------ diff --git a/implementations/python/tests/test_sdl_lineage.py b/implementations/python/tests/test_sdl_lineage.py index e5bb69033..1067e1b42 100644 --- a/implementations/python/tests/test_sdl_lineage.py +++ b/implementations/python/tests/test_sdl_lineage.py @@ -129,7 +129,7 @@ def test_native_claim_cannot_smuggle_external_source_or_compatibility() -> None: ) native_subject["claims"][0]["source_refs"] = [payload["sources"][0]["source_id"]] native_subject["claims"][0]["compatibility"] = "compatible" - with pytest.raises(ValidationError, match="ACES-native claims"): + with pytest.raises(ValidationError, match="RAES-native claims"): SDLLineageLedgerModel.model_validate(payload) @@ -142,7 +142,7 @@ def test_native_claim_requires_internal_authority_refs() -> None: if claim["classification"] == "aces_native" ) native_claim["internal_authority_refs"] = [] - with pytest.raises(ValidationError, match="ACES-native claims require internal authority refs"): + with pytest.raises(ValidationError, match="RAES-native claims require internal authority refs"): SDLLineageLedgerModel.model_validate(payload) @@ -209,7 +209,7 @@ def test_non_native_claim_requires_explicit_compatibility_direction() -> None: if claim["classification"] != "aces_native" ) claim["compatibility_direction"] = "not_applicable" - with pytest.raises(ValidationError, match="assess ACES relative"): + with pytest.raises(ValidationError, match="assess RAES relative"): SDLLineageLedgerModel.model_validate(payload) From 1b4293e7c85af00875f557ac0ab8ced175f29e45 Mon Sep 17 00:00:00 2001 From: Brad Edwards Date: Sun, 26 Jul 2026 01:43:23 +0200 Subject: [PATCH 09/10] fix: remove retired source root from Sonar --- sonar-project.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-project.properties b/sonar-project.properties index 55c54ca26..5fbc6077a 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -13,7 +13,7 @@ sonar.qualitygate.wait=true sonar.qualitygate.timeout=600 # Source and test directories -sonar.sources=implementations/python/packages,implementations/python/src +sonar.sources=implementations/python/packages sonar.tests=implementations/python/tests # Exclusions From 36879ce81250e4628feab72d940ce9bb3b47b810 Mon Sep 17 00:00:00 2001 From: Brad Edwards Date: Sun, 26 Jul 2026 02:00:29 +0200 Subject: [PATCH 10/10] fix: bind Release Please to the RAES build version --- implementations/python/packages/raes/_version.py | 2 +- release-please-config.json | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/implementations/python/packages/raes/_version.py b/implementations/python/packages/raes/_version.py index bbb4598fe..b09680033 100644 --- a/implementations/python/packages/raes/_version.py +++ b/implementations/python/packages/raes/_version.py @@ -1,3 +1,3 @@ """Release Please-owned build version for the RAES distribution.""" -__version__ = "0.25.0" +__version__ = "1.0.0" # x-release-please-version diff --git a/release-please-config.json b/release-please-config.json index 030494073..3ac7ef616 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -7,7 +7,10 @@ "package-name": "raes", "changelog-path": "CHANGELOG.md", "extra-files": [ - "implementations/python/packages/raes/_version.py" + { + "type": "generic", + "path": "implementations/python/packages/raes/_version.py" + } ] } }