percolation-inversion-compiler 0.4.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- percolation_inversion_compiler-0.4.1/.gitattributes +9 -0
- percolation_inversion_compiler-0.4.1/.github/CODEOWNERS +1 -0
- percolation_inversion_compiler-0.4.1/.github/dependabot.yml +13 -0
- percolation_inversion_compiler-0.4.1/.github/workflows/ci.yml +131 -0
- percolation_inversion_compiler-0.4.1/.github/workflows/pypi-publish.yml +58 -0
- percolation_inversion_compiler-0.4.1/.github/workflows/release.yml +103 -0
- percolation_inversion_compiler-0.4.1/.github/workflows/security.yml +112 -0
- percolation_inversion_compiler-0.4.1/.gitignore +136 -0
- percolation_inversion_compiler-0.4.1/AGENTS.md +186 -0
- percolation_inversion_compiler-0.4.1/CHANGELOG.md +177 -0
- percolation_inversion_compiler-0.4.1/CITATION.cff +48 -0
- percolation_inversion_compiler-0.4.1/CONTRIBUTING.md +22 -0
- percolation_inversion_compiler-0.4.1/LICENSE +152 -0
- percolation_inversion_compiler-0.4.1/NOTICE +21 -0
- percolation_inversion_compiler-0.4.1/PKG-INFO +282 -0
- percolation_inversion_compiler-0.4.1/README.md +206 -0
- percolation_inversion_compiler-0.4.1/SECURITY.md +53 -0
- percolation_inversion_compiler-0.4.1/THIRD_PARTY_LICENSES.md +44 -0
- percolation_inversion_compiler-0.4.1/agent-manifest.json +217 -0
- percolation_inversion_compiler-0.4.1/docs/00-overview.md +55 -0
- percolation_inversion_compiler-0.4.1/docs/01-quickstart.md +177 -0
- percolation_inversion_compiler-0.4.1/docs/04-collective-phase-certificate.md +59 -0
- percolation_inversion_compiler-0.4.1/docs/11-safety-boundary.md +48 -0
- percolation_inversion_compiler-0.4.1/docs/acceleration-certificates.md +38 -0
- percolation_inversion_compiler-0.4.1/docs/agent-closed-loop-runtime.md +31 -0
- percolation_inversion_compiler-0.4.1/docs/agent-external-communication.md +189 -0
- percolation_inversion_compiler-0.4.1/docs/agent-integration.md +214 -0
- percolation_inversion_compiler-0.4.1/docs/alt.md +102 -0
- percolation_inversion_compiler-0.4.1/docs/architecture.md +86 -0
- percolation_inversion_compiler-0.4.1/docs/benchmarks.md +43 -0
- percolation_inversion_compiler-0.4.1/docs/cli-reference.md +256 -0
- percolation_inversion_compiler-0.4.1/docs/collective-phase-certificates.md +30 -0
- percolation_inversion_compiler-0.4.1/docs/collective-phase-runtime.md +41 -0
- percolation_inversion_compiler-0.4.1/docs/ecpt-acceleration-score.md +35 -0
- percolation_inversion_compiler-0.4.1/docs/ecpt-packet-ecology-runtime.md +39 -0
- percolation_inversion_compiler-0.4.1/docs/ecpt-phase-control-runtime.md +67 -0
- percolation_inversion_compiler-0.4.1/docs/edge-relation-verifiers.md +24 -0
- percolation_inversion_compiler-0.4.1/docs/external-obligations.md +120 -0
- percolation_inversion_compiler-0.4.1/docs/for-agents.md +205 -0
- percolation_inversion_compiler-0.4.1/docs/identity-and-sybil-resistance.md +95 -0
- percolation_inversion_compiler-0.4.1/docs/live-connectors.md +64 -0
- percolation_inversion_compiler-0.4.1/docs/mathematical-contracts.md +93 -0
- percolation_inversion_compiler-0.4.1/docs/no-self-rewrite-ledger.md +19 -0
- percolation_inversion_compiler-0.4.1/docs/packet-promotion.md +39 -0
- percolation_inversion_compiler-0.4.1/docs/population-runtime.md +26 -0
- percolation_inversion_compiler-0.4.1/docs/porting.md +84 -0
- percolation_inversion_compiler-0.4.1/docs/production-readiness.md +107 -0
- percolation_inversion_compiler-0.4.1/docs/provenance-and-sbom.md +63 -0
- percolation_inversion_compiler-0.4.1/docs/pypi-distribution.md +128 -0
- percolation_inversion_compiler-0.4.1/docs/release-checklist.md +37 -0
- percolation_inversion_compiler-0.4.1/docs/resource-matched-benchmarks.md +27 -0
- percolation_inversion_compiler-0.4.1/docs/runtime-closed-loop.md +60 -0
- percolation_inversion_compiler-0.4.1/docs/runtime-executor.md +27 -0
- percolation_inversion_compiler-0.4.1/docs/runtime-service.md +62 -0
- percolation_inversion_compiler-0.4.1/docs/runtime-store.md +16 -0
- percolation_inversion_compiler-0.4.1/docs/runtime.md +104 -0
- percolation_inversion_compiler-0.4.1/docs/sqot.md +49 -0
- percolation_inversion_compiler-0.4.1/docs/theory-coverage.md +101 -0
- percolation_inversion_compiler-0.4.1/docs/tutorial.md +180 -0
- percolation_inversion_compiler-0.4.1/docs/verifier-sdk.md +69 -0
- percolation_inversion_compiler-0.4.1/docs/verifier-threat-model.md +20 -0
- percolation_inversion_compiler-0.4.1/examples/agent_connector_spec.json +47 -0
- percolation_inversion_compiler-0.4.1/examples/agent_minimal/README.md +40 -0
- percolation_inversion_compiler-0.4.1/examples/agent_minimal/agent_output.txt +1 -0
- percolation_inversion_compiler-0.4.1/examples/agent_minimal/commands.ps1 +5 -0
- percolation_inversion_compiler-0.4.1/examples/agent_minimal/commands.sh +5 -0
- percolation_inversion_compiler-0.4.1/examples/agent_minimal/full_workflow.ps1 +10 -0
- percolation_inversion_compiler-0.4.1/examples/agent_minimal/full_workflow.sh +10 -0
- percolation_inversion_compiler-0.4.1/examples/agent_minimal/intake_report.example.json +1061 -0
- percolation_inversion_compiler-0.4.1/examples/agent_network/README.md +51 -0
- percolation_inversion_compiler-0.4.1/examples/agent_network/agent_message.json +18 -0
- percolation_inversion_compiler-0.4.1/examples/agent_network/agent_message_signed_shape.json +36 -0
- percolation_inversion_compiler-0.4.1/examples/agent_network/expired_message.json +18 -0
- percolation_inversion_compiler-0.4.1/examples/agent_network/feed.xml +16 -0
- percolation_inversion_compiler-0.4.1/examples/agent_network/general_intake_report.example.json +102 -0
- percolation_inversion_compiler-0.4.1/examples/agent_network/inbox.json +25 -0
- percolation_inversion_compiler-0.4.1/examples/agent_network/malformed_feed.xml +4 -0
- percolation_inversion_compiler-0.4.1/examples/agent_network/packets.ndjson +2 -0
- percolation_inversion_compiler-0.4.1/examples/agent_network/page.html +17 -0
- percolation_inversion_compiler-0.4.1/examples/agent_network/policy_adversarial_network.json +58 -0
- percolation_inversion_compiler-0.4.1/examples/agent_network/policy_controlled_web.json +58 -0
- percolation_inversion_compiler-0.4.1/examples/agent_network/replay_inbox.json +23 -0
- percolation_inversion_compiler-0.4.1/examples/agent_network/runtime_bridge_report.example.json +80 -0
- percolation_inversion_compiler-0.4.1/examples/agent_population.json +295 -0
- percolation_inversion_compiler-0.4.1/examples/agent_population_signed.json +255 -0
- percolation_inversion_compiler-0.4.1/examples/alt/admission_packet.json +201 -0
- percolation_inversion_compiler-0.4.1/examples/alt/alt_cara_certificate.json +35 -0
- percolation_inversion_compiler-0.4.1/examples/alt/baseline_refresh_certificate.json +14 -0
- percolation_inversion_compiler-0.4.1/examples/alt/deprecation_record.json +17 -0
- percolation_inversion_compiler-0.4.1/examples/alt/foundry_state.json +27 -0
- percolation_inversion_compiler-0.4.1/examples/alt/hazard_overflow_certificate.json +22 -0
- percolation_inversion_compiler-0.4.1/examples/alt/liquidity_certificate.json +150 -0
- percolation_inversion_compiler-0.4.1/examples/alt/negative_hazard_token.json +12 -0
- percolation_inversion_compiler-0.4.1/examples/alt/negative_liquidity_certificate.json +14 -0
- percolation_inversion_compiler-0.4.1/examples/alt/reproduction_certificate.json +17 -0
- percolation_inversion_compiler-0.4.1/examples/alt/runtime_bridge_report.json +52 -0
- percolation_inversion_compiler-0.4.1/examples/alt/telemetry_failure_certificate.json +13 -0
- percolation_inversion_compiler-0.4.1/examples/alt/token_candidate.json +26 -0
- percolation_inversion_compiler-0.4.1/examples/alt/trace.json +24 -0
- percolation_inversion_compiler-0.4.1/examples/alt/transport_certificate.json +18 -0
- percolation_inversion_compiler-0.4.1/examples/collective_packet_registry.json +93 -0
- percolation_inversion_compiler-0.4.1/examples/collective_protocol_frame.json +26 -0
- percolation_inversion_compiler-0.4.1/examples/collective_runtime_state.json +207 -0
- percolation_inversion_compiler-0.4.1/examples/ecology_loop_state.json +14 -0
- percolation_inversion_compiler-0.4.1/examples/ecology_packets.json +30 -0
- percolation_inversion_compiler-0.4.1/examples/ecology_threshold.json +13 -0
- percolation_inversion_compiler-0.4.1/examples/ecpt_asi_proxy_target.json +14 -0
- percolation_inversion_compiler-0.4.1/examples/ecpt_basin_contract.json +19 -0
- percolation_inversion_compiler-0.4.1/examples/ecpt_phase_control_actions.json +32 -0
- percolation_inversion_compiler-0.4.1/examples/ecpt_phase_control_budget.json +12 -0
- percolation_inversion_compiler-0.4.1/examples/ecpt_phase_control_state.json +105 -0
- percolation_inversion_compiler-0.4.1/examples/edge_relation_certificate.json +15 -0
- percolation_inversion_compiler-0.4.1/examples/evidence_artifact_content.json +11 -0
- percolation_inversion_compiler-0.4.1/examples/evidence_envelope.json +27 -0
- percolation_inversion_compiler-0.4.1/examples/external_obligations.json +19 -0
- percolation_inversion_compiler-0.4.1/examples/external_verifier_hook.json +38 -0
- percolation_inversion_compiler-0.4.1/examples/frontier_records.json +125 -0
- percolation_inversion_compiler-0.4.1/examples/identity/agent_identities.json +44 -0
- percolation_inversion_compiler-0.4.1/examples/identity/agent_identity_alice.json +22 -0
- percolation_inversion_compiler-0.4.1/examples/identity/agent_identity_bob.json +22 -0
- percolation_inversion_compiler-0.4.1/examples/identity/packet_attestation.json +26 -0
- percolation_inversion_compiler-0.4.1/examples/identity/sybil_population_clone_fanout.json +255 -0
- percolation_inversion_compiler-0.4.1/examples/identity/sybil_population_duplicate_key.json +255 -0
- percolation_inversion_compiler-0.4.1/examples/identity/sybil_population_signed.json +255 -0
- percolation_inversion_compiler-0.4.1/examples/minimal_invalid_main_frontier.json +11 -0
- percolation_inversion_compiler-0.4.1/examples/minimal_registry.json +18 -0
- percolation_inversion_compiler-0.4.1/examples/runtime_action_results.json +42 -0
- percolation_inversion_compiler-0.4.1/examples/runtime_agent_task.json +21 -0
- percolation_inversion_compiler-0.4.1/examples/runtime_baseline_run.json +17 -0
- percolation_inversion_compiler-0.4.1/examples/runtime_candidate_run.json +17 -0
- percolation_inversion_compiler-0.4.1/examples/runtime_executor_policy.json +21 -0
- percolation_inversion_compiler-0.4.1/examples/runtime_loop_inputs.jsonl +2 -0
- percolation_inversion_compiler-0.4.1/examples/runtime_route_requests.json +21 -0
- percolation_inversion_compiler-0.4.1/examples/runtime_service_step_request.json +80 -0
- percolation_inversion_compiler-0.4.1/examples/runtime_state.json +143 -0
- percolation_inversion_compiler-0.4.1/examples/runtime_step_input.json +8 -0
- percolation_inversion_compiler-0.4.1/examples/runtime_step_input_with_evidence.json +40 -0
- percolation_inversion_compiler-0.4.1/examples/runtime_threshold.json +7 -0
- percolation_inversion_compiler-0.4.1/examples/sqot_queue.json +30 -0
- percolation_inversion_compiler-0.4.1/examples/theory_audit_summary.json +25 -0
- percolation_inversion_compiler-0.4.1/examples/walkthrough_collective_phase/README.md +31 -0
- percolation_inversion_compiler-0.4.1/examples/walkthrough_collective_phase/empty-events.json +3 -0
- percolation_inversion_compiler-0.4.1/pyproject.toml +138 -0
- percolation_inversion_compiler-0.4.1/schemas/index.json +189 -0
- percolation_inversion_compiler-0.4.1/scripts/__init__.py +1 -0
- percolation_inversion_compiler-0.4.1/scripts/check_distribution_artifacts.py +146 -0
- percolation_inversion_compiler-0.4.1/scripts/check_publish_safety.py +253 -0
- percolation_inversion_compiler-0.4.1/scripts/generate_sbom.py +24 -0
- percolation_inversion_compiler-0.4.1/scripts/validate_citation.py +51 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/__init__.py +7 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/adapters/__init__.py +39 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/adapters/domain.py +338 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/adapters/graphs.py +15 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/adapters/optimization.py +25 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/adapters/transport.py +19 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/adapters/units.py +17 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/agent/__init__.py +51 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/agent/algorithms.py +1297 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/agent/records.py +175 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/alt/__init__.py +119 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/alt/algorithms.py +1063 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/alt/records.py +553 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/bit/__init__.py +125 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/bit/algorithms.py +815 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/bit/records.py +207 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/cli.py +3606 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/core/__init__.py +179 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/core/adapter_routes.py +746 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/core/algebra.py +200 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/core/algorithms.py +104 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/core/calibration.py +243 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/core/certificates.py +129 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/core/checker.py +344 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/core/coverage.py +1336 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/core/frontier.py +103 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/core/graph.py +76 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/core/judgment.py +240 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/core/ledger.py +184 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/core/operations.py +44 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/core/order.py +207 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/core/records.py +257 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/core/status.py +115 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/data/__init__.py +1 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/data/demo/__init__.py +1 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/data/demo/agent_output.txt +1 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/data/demo/alt_admission_packet.json +201 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/data/demo/general_intake_policy.json +58 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/data/demo/manifest.json +41 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/data/demo/runtime_state.json +143 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/data/demo/runtime_step_input.json +8 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/data/snapshots/__init__.py +1 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/data/snapshots/alt.json +6073 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/data/snapshots/bit.json +543 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/data/snapshots/ecpt.json +2741 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/data/snapshots/sqot.json +2134 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/data/snapshots/trc.json +2880 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/ecology/__init__.py +184 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/ecology/algorithms.py +1621 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/ecology/connectors.py +198 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/ecology/general_intake.py +1869 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/ecology/records.py +856 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/ecpt/__init__.py +173 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/ecpt/algorithms.py +1113 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/ecpt/records.py +405 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/identity/__init__.py +45 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/identity/algorithms.py +967 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/identity/records.py +174 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/io/__init__.py +113 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/io/audit.py +219 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/io/doctor.py +372 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/io/provenance.py +228 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/io/sbom.py +109 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/io/schema.py +587 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/io/snapshots.py +159 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/io/tex.py +573 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/io/zenodo.py +173 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/py.typed +1 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/runtime/__init__.py +132 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/runtime/algorithms.py +2264 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/runtime/records.py +668 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/runtime/service.py +514 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/runtime/store.py +352 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/sqot/__init__.py +37 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/sqot/algorithms.py +213 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/sqot/records.py +130 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/trc/__init__.py +155 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/trc/algorithms.py +1004 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/trc/datacenter.py +297 -0
- percolation_inversion_compiler-0.4.1/src/percolation_inversion_compiler/trc/records.py +361 -0
- percolation_inversion_compiler-0.4.1/tests/fixtures/minimal_claims.tex +16 -0
- percolation_inversion_compiler-0.4.1/tests/test_adapters.py +31 -0
- percolation_inversion_compiler-0.4.1/tests/test_algorithms.py +847 -0
- percolation_inversion_compiler-0.4.1/tests/test_cli.py +478 -0
- percolation_inversion_compiler-0.4.1/tests/test_core.py +345 -0
- percolation_inversion_compiler-0.4.1/tests/test_extractors.py +192 -0
- percolation_inversion_compiler-0.4.1/tests/test_publish_security.py +207 -0
- percolation_inversion_compiler-0.4.1/tests/test_snapshots.py +216 -0
- percolation_inversion_compiler-0.4.1/tests/test_trc_compile.py +49 -0
- percolation_inversion_compiler-0.4.1/tests/test_v021_algorithm_coverage.py +135 -0
- percolation_inversion_compiler-0.4.1/tests/test_v021_production_sdk.py +172 -0
- percolation_inversion_compiler-0.4.1/tests/test_v022_production_hardening.py +503 -0
- percolation_inversion_compiler-0.4.1/tests/test_v023_ecpt_phase_control.py +307 -0
- percolation_inversion_compiler-0.4.1/tests/test_v024_sqot_packet_ecology.py +605 -0
- percolation_inversion_compiler-0.4.1/tests/test_v02_readiness.py +240 -0
- percolation_inversion_compiler-0.4.1/tests/test_v030_runtime.py +461 -0
- percolation_inversion_compiler-0.4.1/tests/test_v031_closed_loop_runtime.py +589 -0
- percolation_inversion_compiler-0.4.1/tests/test_v032_collective_phase_runtime.py +694 -0
- percolation_inversion_compiler-0.4.1/tests/test_v033_collective_phase_certificates.py +532 -0
- percolation_inversion_compiler-0.4.1/tests/test_v033_release_smoke.py +435 -0
- percolation_inversion_compiler-0.4.1/tests/test_v034_identity_sybil.py +601 -0
- percolation_inversion_compiler-0.4.1/tests/test_v036_agent_entrypoints.py +407 -0
- percolation_inversion_compiler-0.4.1/tests/test_v036_general_intake.py +993 -0
- percolation_inversion_compiler-0.4.1/tests/test_v040_alt.py +485 -0
- percolation_inversion_compiler-0.4.1/tests/test_v041_pypi_distribution.py +122 -0
- percolation_inversion_compiler-0.4.1/uv.lock +2191 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @kadubon
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: "github-actions"
|
|
4
|
+
directory: "/"
|
|
5
|
+
schedule:
|
|
6
|
+
interval: "weekly"
|
|
7
|
+
open-pull-requests-limit: 5
|
|
8
|
+
|
|
9
|
+
- package-ecosystem: "pip"
|
|
10
|
+
directory: "/"
|
|
11
|
+
schedule:
|
|
12
|
+
interval: "weekly"
|
|
13
|
+
open-pull-requests-limit: 5
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: ["main"]
|
|
6
|
+
pull_request:
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
test:
|
|
14
|
+
name: Python ${{ matrix.python-version }}
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
env:
|
|
17
|
+
UV_PYTHON: ${{ matrix.python-version }}
|
|
18
|
+
strategy:
|
|
19
|
+
fail-fast: false
|
|
20
|
+
matrix:
|
|
21
|
+
python-version: ["3.11", "3.12", "3.13", "3.14"]
|
|
22
|
+
steps:
|
|
23
|
+
- name: Check out repository
|
|
24
|
+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
|
25
|
+
with:
|
|
26
|
+
persist-credentials: false
|
|
27
|
+
|
|
28
|
+
- name: Set up Python
|
|
29
|
+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
|
|
30
|
+
with:
|
|
31
|
+
python-version: ${{ matrix.python-version }}
|
|
32
|
+
|
|
33
|
+
- name: Set up uv
|
|
34
|
+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
|
|
35
|
+
with:
|
|
36
|
+
enable-cache: true
|
|
37
|
+
|
|
38
|
+
- name: Install dependencies
|
|
39
|
+
run: uv sync --all-extras --dev --python ${{ matrix.python-version }}
|
|
40
|
+
|
|
41
|
+
- name: Ruff lint
|
|
42
|
+
run: uv run ruff check .
|
|
43
|
+
|
|
44
|
+
- name: Ruff format check
|
|
45
|
+
run: uv run ruff format --check .
|
|
46
|
+
|
|
47
|
+
- name: Type check
|
|
48
|
+
run: uv run mypy src scripts
|
|
49
|
+
|
|
50
|
+
- name: Test
|
|
51
|
+
run: uv run pytest --cov=percolation_inversion_compiler --cov-report=term-missing --cov-fail-under=90
|
|
52
|
+
|
|
53
|
+
- name: Build package
|
|
54
|
+
run: uv build
|
|
55
|
+
|
|
56
|
+
- name: Check package metadata
|
|
57
|
+
run: uv run python -m twine check dist/*.whl dist/*.tar.gz
|
|
58
|
+
|
|
59
|
+
- name: Check distribution artifacts
|
|
60
|
+
run: uv run python scripts/check_distribution_artifacts.py
|
|
61
|
+
|
|
62
|
+
- name: CLI smoke tests
|
|
63
|
+
run: |
|
|
64
|
+
uv run pic --version
|
|
65
|
+
uv run pic agent explain
|
|
66
|
+
uv run pic agent guide --profile development
|
|
67
|
+
uv run pic agent readiness --profile production
|
|
68
|
+
uv run pic agent intake --text "Candidate packet: preserve residuals." --profile development
|
|
69
|
+
uv run pic agent communication-guide --profile development --no-allow-live-connectors
|
|
70
|
+
uv run pic explain status
|
|
71
|
+
uv run pic schema --type Judgment
|
|
72
|
+
uv run pic schema --type TheoryAuditReport
|
|
73
|
+
uv run pic schema --all --output-dir "$RUNNER_TEMP/schema-smoke"
|
|
74
|
+
uv run pic provenance create --schema-dir "$RUNNER_TEMP/schema-smoke" --output "$RUNNER_TEMP/provenance.json"
|
|
75
|
+
uv run pic provenance verify --manifest "$RUNNER_TEMP/provenance.json"
|
|
76
|
+
uv run pic snapshot list
|
|
77
|
+
uv run pic snapshot show --artifact trc
|
|
78
|
+
uv run pic snapshot show --artifact sqot
|
|
79
|
+
uv run pic snapshot verify --artifact trc
|
|
80
|
+
uv run pic snapshot verify --artifact sqot
|
|
81
|
+
uv run pic snapshot routes
|
|
82
|
+
uv run pic routes bindings
|
|
83
|
+
uv run pic routes explain --route adapters.domain.verify_trc_telemetry_calibration
|
|
84
|
+
uv run pic explain external def:null-channel-routing --from-snapshot
|
|
85
|
+
uv run pic doctor --fail-on never
|
|
86
|
+
uv run pic doctor --profile production --required-route adapters.domain.verify_trc_telemetry_calibration --fail-on never
|
|
87
|
+
uv run pic doctor --profile production --fail-on never
|
|
88
|
+
uv run pic doctor --profile production --provenance "$RUNNER_TEMP/provenance.json" --fail-on fail
|
|
89
|
+
! uv run pic provenance verify --manifest "$RUNNER_TEMP/provenance.json" --require-attestation
|
|
90
|
+
uv run pic validate --registry examples/minimal_registry.json
|
|
91
|
+
uv run pic evidence verify --envelope examples/evidence_envelope.json --profile production
|
|
92
|
+
uv run pic evidence discharge --envelope examples/evidence_envelope.json --obligations examples/external_obligations.json --profile production
|
|
93
|
+
uv run pic check --source tests/fixtures/minimal_claims.tex --strict-projection --derive-status
|
|
94
|
+
uv run pic parse audit --source tests/fixtures/minimal_claims.tex --strict-grammar
|
|
95
|
+
uv run pic audit theory --source tests/fixtures/minimal_claims.tex --fail-on projection
|
|
96
|
+
uv run pic audit theory --source tests/fixtures/minimal_claims.tex --strict-grammar --fail-on projection
|
|
97
|
+
uv run pic compile --records examples/frontier_records.json --archive-cap 8
|
|
98
|
+
uv run pic sqot schedule --packets examples/sqot_queue.json --profile production
|
|
99
|
+
uv run pic ecology policy explain --profile controlled_web
|
|
100
|
+
uv run pic ecology ingest-general --source examples/agent_network/feed.xml --kind rss
|
|
101
|
+
uv run pic ecology bridge-runtime --report examples/agent_network/general_intake_report.example.json
|
|
102
|
+
uv run pic ecology build-edges --packets examples/ecology_packets.json --output "$RUNNER_TEMP/ecology-registry.json"
|
|
103
|
+
uv run pic ecology psi --registry "$RUNNER_TEMP/ecology-registry.json" --threshold examples/ecology_threshold.json --output "$RUNNER_TEMP/ecology-psi.json"
|
|
104
|
+
uv run pic ecology plan --registry "$RUNNER_TEMP/ecology-registry.json" --psi "$RUNNER_TEMP/ecology-psi.json" --profile production
|
|
105
|
+
uv run pic ecology paths --registry "$RUNNER_TEMP/ecology-registry.json" --basin examples/ecpt_basin_contract.json
|
|
106
|
+
uv run pic ecology verify-edge --registry examples/ecology_packets.json --certificate examples/edge_relation_certificate.json
|
|
107
|
+
uv run pic ecology loop --state examples/ecology_loop_state.json --agent-output "SQOT reserve packet for ECPT active phase-control"
|
|
108
|
+
uv run pic runtime step --state examples/runtime_state.json --input examples/runtime_step_input.json --profile production --output "$RUNNER_TEMP/runtime-step.json"
|
|
109
|
+
uv run pic runtime step --state examples/runtime_state.json --input examples/runtime_step_input_with_evidence.json --profile production --output "$RUNNER_TEMP/runtime-step-evidence.json"
|
|
110
|
+
uv run pic runtime resolve-evidence --input examples/runtime_step_input_with_evidence.json --profile production --output "$RUNNER_TEMP/runtime-evidence.json"
|
|
111
|
+
uv run pic runtime execute-task --state examples/runtime_state.json --task examples/runtime_agent_task.json --policy examples/runtime_executor_policy.json --profile production --output "$RUNNER_TEMP/runtime-execute-task.json"
|
|
112
|
+
uv run pic runtime execute-routes --requests examples/runtime_route_requests.json --evidence-store "$RUNNER_TEMP/evidence-store" --profile development --output "$RUNNER_TEMP/runtime-execute-routes.json"
|
|
113
|
+
uv run pic runtime store init --store "$RUNNER_TEMP/runtime.sqlite"
|
|
114
|
+
uv run pic runtime store append --store "$RUNNER_TEMP/runtime.sqlite" --state examples/runtime_state.json
|
|
115
|
+
uv run pic runtime store load --store "$RUNNER_TEMP/runtime.sqlite" --state-id runtime-demo
|
|
116
|
+
uv run pic runtime store export --store "$RUNNER_TEMP/runtime.sqlite" --output "$RUNNER_TEMP/runtime-store.json"
|
|
117
|
+
uv run pic runtime run-agent-loop --state examples/runtime_state.json --inputs examples/runtime_loop_inputs.jsonl --store "$RUNNER_TEMP/runtime-loop.sqlite" --policy examples/runtime_executor_policy.json --profile production --output "$RUNNER_TEMP/runtime-agent-loop.json"
|
|
118
|
+
uv run pic runtime apply-results --state examples/runtime_state.json --report "$RUNNER_TEMP/runtime-step-evidence.json" --results examples/runtime_action_results.json --output "$RUNNER_TEMP/runtime-next-state.json"
|
|
119
|
+
uv run pic runtime compare --baseline examples/runtime_baseline_run.json --candidate examples/runtime_candidate_run.json --threshold examples/runtime_threshold.json --output "$RUNNER_TEMP/runtime-comparison.json"
|
|
120
|
+
uv run pic runtime certify-acceleration --baseline examples/runtime_baseline_run.json --candidate examples/runtime_candidate_run.json --output "$RUNNER_TEMP/runtime-acceleration-certificate.json"
|
|
121
|
+
uv run pic runtime loop --state examples/runtime_state.json --inputs examples/runtime_loop_inputs.jsonl --max-steps 2 --profile production --output "$RUNNER_TEMP/runtime-loop.json"
|
|
122
|
+
uv run pic runtime health --state examples/runtime_state.json --profile production --output "$RUNNER_TEMP/runtime-health.json"
|
|
123
|
+
uv run pic runtime export-openapi --output "$RUNNER_TEMP/runtime-openapi.json"
|
|
124
|
+
uv run pic alt admit --packet examples/alt/admission_packet.json
|
|
125
|
+
uv run pic alt foundry-dashboard --state examples/alt/foundry_state.json
|
|
126
|
+
uv run pic demo datacenter
|
|
127
|
+
uv run pic sbom create --format pic --output "$RUNNER_TEMP/pic.sbom.json"
|
|
128
|
+
uv run pic sbom create --format cyclonedx --output "$RUNNER_TEMP/cyclonedx.sbom.json"
|
|
129
|
+
|
|
130
|
+
- name: Validate citation metadata
|
|
131
|
+
run: uv run python scripts/validate_citation.py
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
name: PyPI Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
publish:
|
|
13
|
+
name: Build and publish to PyPI
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
environment: pypi
|
|
16
|
+
env:
|
|
17
|
+
UV_PYTHON: "3.11"
|
|
18
|
+
permissions:
|
|
19
|
+
contents: read
|
|
20
|
+
id-token: write
|
|
21
|
+
steps:
|
|
22
|
+
- name: Check out repository
|
|
23
|
+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
|
24
|
+
with:
|
|
25
|
+
persist-credentials: false
|
|
26
|
+
|
|
27
|
+
- name: Set up Python
|
|
28
|
+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
|
|
29
|
+
with:
|
|
30
|
+
python-version: "3.11"
|
|
31
|
+
|
|
32
|
+
- name: Set up uv
|
|
33
|
+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
|
|
34
|
+
with:
|
|
35
|
+
enable-cache: false
|
|
36
|
+
|
|
37
|
+
- name: Install build dependencies
|
|
38
|
+
run: uv sync --all-extras --dev --python 3.11
|
|
39
|
+
|
|
40
|
+
- name: Verify release tag matches package version
|
|
41
|
+
env:
|
|
42
|
+
RELEASE_TAG: ${{ github.event.release.tag_name }}
|
|
43
|
+
run: |
|
|
44
|
+
RELEASE_TAG="${RELEASE_TAG:-${GITHUB_REF_NAME}}"
|
|
45
|
+
VERSION="$(uv run python -c 'import percolation_inversion_compiler as p; print(p.__version__)')"
|
|
46
|
+
test "${RELEASE_TAG}" = "v${VERSION}"
|
|
47
|
+
|
|
48
|
+
- name: Build distributions
|
|
49
|
+
run: uv build
|
|
50
|
+
|
|
51
|
+
- name: Check distribution metadata
|
|
52
|
+
run: uv run --with twine python -m twine check dist/*.whl dist/*.tar.gz
|
|
53
|
+
|
|
54
|
+
- name: Check distribution artifacts
|
|
55
|
+
run: uv run python scripts/check_distribution_artifacts.py
|
|
56
|
+
|
|
57
|
+
- name: Publish distributions to PyPI
|
|
58
|
+
run: uv publish --trusted-publishing always dist/*
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
name: Release Artifacts
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags: ["v*"]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write
|
|
10
|
+
id-token: write
|
|
11
|
+
attestations: write
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
attest-release-artifacts:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
env:
|
|
17
|
+
UV_PYTHON: "3.11"
|
|
18
|
+
steps:
|
|
19
|
+
- name: Check out repository
|
|
20
|
+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
|
21
|
+
with:
|
|
22
|
+
persist-credentials: false
|
|
23
|
+
|
|
24
|
+
- name: Set up Python
|
|
25
|
+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
|
|
26
|
+
with:
|
|
27
|
+
python-version: "3.11"
|
|
28
|
+
|
|
29
|
+
- name: Set up uv
|
|
30
|
+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
|
|
31
|
+
with:
|
|
32
|
+
enable-cache: false
|
|
33
|
+
|
|
34
|
+
- name: Install dependencies
|
|
35
|
+
run: uv sync --all-extras --dev --python 3.11
|
|
36
|
+
|
|
37
|
+
- name: Prepare release assets
|
|
38
|
+
run: |
|
|
39
|
+
VERSION="${GITHUB_REF_NAME#v}"
|
|
40
|
+
echo "VERSION=${VERSION}" >> "$GITHUB_ENV"
|
|
41
|
+
uv build
|
|
42
|
+
uv run python -m twine check dist/*.whl dist/*.tar.gz
|
|
43
|
+
uv run python scripts/check_distribution_artifacts.py --version "${VERSION}"
|
|
44
|
+
uv run pic schema --all --output-dir "dist/schemas-${GITHUB_REF_NAME}"
|
|
45
|
+
(cd dist && zip -qr "percolation-inversion-compiler-${VERSION}.schemas.zip" "schemas-${GITHUB_REF_NAME}")
|
|
46
|
+
uv run pic sbom create --format pic --output "dist/percolation-inversion-compiler-${VERSION}.sbom.json"
|
|
47
|
+
uv run pic sbom create --format cyclonedx --output "dist/percolation-inversion-compiler-${VERSION}.cyclonedx.json"
|
|
48
|
+
uv run pic provenance create \
|
|
49
|
+
--schema-dir "dist/schemas-${GITHUB_REF_NAME}" \
|
|
50
|
+
--sbom-ref "dist/percolation-inversion-compiler-${VERSION}.sbom.json" \
|
|
51
|
+
--artifact-ref "dist/percolation_inversion_compiler-${VERSION}-py3-none-any.whl" \
|
|
52
|
+
--artifact-ref "dist/percolation_inversion_compiler-${VERSION}.tar.gz" \
|
|
53
|
+
--artifact-ref "dist/percolation-inversion-compiler-${VERSION}.schemas.zip" \
|
|
54
|
+
--artifact-ref "dist/percolation-inversion-compiler-${VERSION}.cyclonedx.json" \
|
|
55
|
+
--output "dist/percolation-inversion-compiler-${VERSION}.provenance.json"
|
|
56
|
+
uv run pic provenance verify --manifest "dist/percolation-inversion-compiler-${VERSION}.provenance.json"
|
|
57
|
+
|
|
58
|
+
- name: Attest wheel
|
|
59
|
+
uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4
|
|
60
|
+
with:
|
|
61
|
+
subject-path: dist/percolation_inversion_compiler-${{ env.VERSION }}-py3-none-any.whl
|
|
62
|
+
|
|
63
|
+
- name: Attest source distribution
|
|
64
|
+
uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4
|
|
65
|
+
with:
|
|
66
|
+
subject-path: dist/percolation_inversion_compiler-${{ env.VERSION }}.tar.gz
|
|
67
|
+
|
|
68
|
+
- name: Attest schema bundle
|
|
69
|
+
uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4
|
|
70
|
+
with:
|
|
71
|
+
subject-path: dist/percolation-inversion-compiler-${{ env.VERSION }}.schemas.zip
|
|
72
|
+
|
|
73
|
+
- name: Attest provenance manifest
|
|
74
|
+
uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4
|
|
75
|
+
with:
|
|
76
|
+
subject-path: dist/percolation-inversion-compiler-${{ env.VERSION }}.provenance.json
|
|
77
|
+
|
|
78
|
+
- name: Attest PIC SBOM
|
|
79
|
+
uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4
|
|
80
|
+
with:
|
|
81
|
+
subject-path: dist/percolation-inversion-compiler-${{ env.VERSION }}.sbom.json
|
|
82
|
+
|
|
83
|
+
- name: Attest CycloneDX SBOM
|
|
84
|
+
uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4
|
|
85
|
+
with:
|
|
86
|
+
subject-path: dist/percolation-inversion-compiler-${{ env.VERSION }}.cyclonedx.json
|
|
87
|
+
|
|
88
|
+
- name: Upload attested assets to existing GitHub Release
|
|
89
|
+
env:
|
|
90
|
+
GH_TOKEN: ${{ github.token }}
|
|
91
|
+
run: |
|
|
92
|
+
if gh release view "${GITHUB_REF_NAME}" >/dev/null 2>&1; then
|
|
93
|
+
gh release upload "${GITHUB_REF_NAME}" \
|
|
94
|
+
"dist/percolation_inversion_compiler-${VERSION}-py3-none-any.whl" \
|
|
95
|
+
"dist/percolation_inversion_compiler-${VERSION}.tar.gz" \
|
|
96
|
+
"dist/percolation-inversion-compiler-${VERSION}.schemas.zip" \
|
|
97
|
+
"dist/percolation-inversion-compiler-${VERSION}.provenance.json" \
|
|
98
|
+
"dist/percolation-inversion-compiler-${VERSION}.sbom.json" \
|
|
99
|
+
"dist/percolation-inversion-compiler-${VERSION}.cyclonedx.json" \
|
|
100
|
+
--clobber
|
|
101
|
+
else
|
|
102
|
+
echo "GitHub Release ${GITHUB_REF_NAME} does not exist yet; skipping upload."
|
|
103
|
+
fi
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
name: Security
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: ["main"]
|
|
6
|
+
pull_request:
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
schedule:
|
|
9
|
+
- cron: "37 3 * * 1"
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
python-security:
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
env:
|
|
18
|
+
UV_PYTHON: "3.11"
|
|
19
|
+
steps:
|
|
20
|
+
- name: Check out repository
|
|
21
|
+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
|
22
|
+
with:
|
|
23
|
+
persist-credentials: false
|
|
24
|
+
|
|
25
|
+
- name: Set up Python
|
|
26
|
+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
|
|
27
|
+
with:
|
|
28
|
+
python-version: "3.11"
|
|
29
|
+
|
|
30
|
+
- name: Set up uv
|
|
31
|
+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
|
|
32
|
+
with:
|
|
33
|
+
enable-cache: true
|
|
34
|
+
|
|
35
|
+
- name: Install dependencies
|
|
36
|
+
run: uv sync --all-extras --dev --python 3.11
|
|
37
|
+
|
|
38
|
+
- name: pip-audit
|
|
39
|
+
run: uv run pip-audit
|
|
40
|
+
|
|
41
|
+
- name: Bandit
|
|
42
|
+
run: uv run bandit -r src -c pyproject.toml
|
|
43
|
+
|
|
44
|
+
- name: Publishable-file safety scan
|
|
45
|
+
run: uv run python scripts/check_publish_safety.py
|
|
46
|
+
|
|
47
|
+
- name: Provenance and SBOM smoke
|
|
48
|
+
run: |
|
|
49
|
+
uv run pic schema --all --output-dir "$RUNNER_TEMP/schema-smoke"
|
|
50
|
+
uv run pic provenance create --schema-dir "$RUNNER_TEMP/schema-smoke" --output "$RUNNER_TEMP/provenance.json"
|
|
51
|
+
uv run pic provenance verify --manifest "$RUNNER_TEMP/provenance.json"
|
|
52
|
+
! uv run pic provenance verify --manifest "$RUNNER_TEMP/provenance.json" --require-attestation
|
|
53
|
+
uv run pic sbom create --format pic --output "$RUNNER_TEMP/pic.sbom.json"
|
|
54
|
+
uv run pic sbom create --format cyclonedx --output "$RUNNER_TEMP/cyclonedx.sbom.json"
|
|
55
|
+
uv run pic parse audit --source tests/fixtures/minimal_claims.tex --strict-grammar
|
|
56
|
+
uv run pic snapshot verify --artifact sqot
|
|
57
|
+
uv run pic sqot schedule --packets examples/sqot_queue.json --profile production
|
|
58
|
+
uv run pic ecology build-edges --packets examples/ecology_packets.json --output "$RUNNER_TEMP/ecology-registry.json"
|
|
59
|
+
|
|
60
|
+
dependency-review:
|
|
61
|
+
if: github.event_name == 'pull_request'
|
|
62
|
+
runs-on: ubuntu-latest
|
|
63
|
+
permissions:
|
|
64
|
+
contents: read
|
|
65
|
+
pull-requests: read
|
|
66
|
+
steps:
|
|
67
|
+
- name: Check out repository
|
|
68
|
+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
|
69
|
+
with:
|
|
70
|
+
persist-credentials: false
|
|
71
|
+
- name: Dependency review
|
|
72
|
+
uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0
|
|
73
|
+
|
|
74
|
+
codeql:
|
|
75
|
+
runs-on: ubuntu-latest
|
|
76
|
+
permissions:
|
|
77
|
+
contents: read
|
|
78
|
+
security-events: write
|
|
79
|
+
steps:
|
|
80
|
+
- name: Check out repository
|
|
81
|
+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
|
82
|
+
with:
|
|
83
|
+
persist-credentials: false
|
|
84
|
+
- name: Initialize CodeQL
|
|
85
|
+
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4
|
|
86
|
+
with:
|
|
87
|
+
languages: python
|
|
88
|
+
- name: Analyze
|
|
89
|
+
uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4
|
|
90
|
+
|
|
91
|
+
secrets:
|
|
92
|
+
runs-on: ubuntu-latest
|
|
93
|
+
steps:
|
|
94
|
+
- name: Check out repository
|
|
95
|
+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
|
96
|
+
with:
|
|
97
|
+
fetch-depth: 0
|
|
98
|
+
persist-credentials: false
|
|
99
|
+
- name: Gitleaks
|
|
100
|
+
uses: gitleaks/gitleaks-action@e0c47f4f8be36e29cdc102c57e68cb5cbf0e8d1e # v3.0.0
|
|
101
|
+
|
|
102
|
+
workflow-lint:
|
|
103
|
+
runs-on: ubuntu-latest
|
|
104
|
+
steps:
|
|
105
|
+
- name: Check out repository
|
|
106
|
+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
|
107
|
+
with:
|
|
108
|
+
persist-credentials: false
|
|
109
|
+
- name: Set up uv
|
|
110
|
+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
|
|
111
|
+
- name: Zizmor
|
|
112
|
+
run: uvx zizmor .github/workflows
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# Python environments and caches
|
|
2
|
+
.venv/
|
|
3
|
+
.venv*/
|
|
4
|
+
venv/
|
|
5
|
+
venv*/
|
|
6
|
+
env/
|
|
7
|
+
env*/
|
|
8
|
+
ENV/
|
|
9
|
+
.envrc
|
|
10
|
+
.python-version
|
|
11
|
+
__pycache__/
|
|
12
|
+
*.py[cod]
|
|
13
|
+
*.pyo
|
|
14
|
+
.pytest_cache/
|
|
15
|
+
.mypy_cache/
|
|
16
|
+
.ruff_cache/
|
|
17
|
+
.hypothesis/
|
|
18
|
+
.coverage
|
|
19
|
+
.coverage.*
|
|
20
|
+
coverage.xml
|
|
21
|
+
htmlcov/
|
|
22
|
+
.ipynb_checkpoints/
|
|
23
|
+
|
|
24
|
+
# Build and packaging artifacts
|
|
25
|
+
build/
|
|
26
|
+
dist/
|
|
27
|
+
*.egg-info/
|
|
28
|
+
*.egg
|
|
29
|
+
*.manifest
|
|
30
|
+
*.spec
|
|
31
|
+
site/
|
|
32
|
+
.tox/
|
|
33
|
+
.nox/
|
|
34
|
+
pip-wheel-metadata/
|
|
35
|
+
wheelhouse/
|
|
36
|
+
*.whl
|
|
37
|
+
*.tar
|
|
38
|
+
*.tar.gz
|
|
39
|
+
*.tgz
|
|
40
|
+
*.zip
|
|
41
|
+
*.7z
|
|
42
|
+
*.rar
|
|
43
|
+
*.xz
|
|
44
|
+
*.bz2
|
|
45
|
+
|
|
46
|
+
# Local research artifacts and generated TeX/PDF mirrors
|
|
47
|
+
*.aux
|
|
48
|
+
*.bbl
|
|
49
|
+
*.blg
|
|
50
|
+
*.fls
|
|
51
|
+
*.fdb_latexmk
|
|
52
|
+
*.log
|
|
53
|
+
*.out
|
|
54
|
+
*.synctex.gz
|
|
55
|
+
*.xdv
|
|
56
|
+
*.pdf
|
|
57
|
+
*.tex
|
|
58
|
+
!docs/**/*.tex
|
|
59
|
+
!tests/fixtures/**/*.tex
|
|
60
|
+
|
|
61
|
+
# Model/data artifacts that must not be published without explicit review
|
|
62
|
+
*.ckpt
|
|
63
|
+
*.onnx
|
|
64
|
+
*.pt
|
|
65
|
+
*.pth
|
|
66
|
+
*.safetensors
|
|
67
|
+
*.bin
|
|
68
|
+
*.joblib
|
|
69
|
+
*.pkl
|
|
70
|
+
*.pickle
|
|
71
|
+
*.npy
|
|
72
|
+
*.npz
|
|
73
|
+
*.parquet
|
|
74
|
+
*.feather
|
|
75
|
+
*.arrow
|
|
76
|
+
*.sqlite-wal
|
|
77
|
+
*.sqlite-shm
|
|
78
|
+
|
|
79
|
+
# Local data, secrets, and credentials
|
|
80
|
+
.env
|
|
81
|
+
.env.*
|
|
82
|
+
!.env.example
|
|
83
|
+
.aws/
|
|
84
|
+
.azure/
|
|
85
|
+
.gcloud/
|
|
86
|
+
.gnupg/
|
|
87
|
+
.ssh/
|
|
88
|
+
*.pem
|
|
89
|
+
*.key
|
|
90
|
+
id_rsa*
|
|
91
|
+
id_ed25519*
|
|
92
|
+
*.asc
|
|
93
|
+
*.p12
|
|
94
|
+
*.pfx
|
|
95
|
+
*.crt
|
|
96
|
+
*.cer
|
|
97
|
+
*.kdbx
|
|
98
|
+
secrets/
|
|
99
|
+
private/
|
|
100
|
+
local/
|
|
101
|
+
downloads/
|
|
102
|
+
download/
|
|
103
|
+
tmp/
|
|
104
|
+
temp/
|
|
105
|
+
cache/
|
|
106
|
+
data/raw/
|
|
107
|
+
data/private/
|
|
108
|
+
data/downloads/
|
|
109
|
+
vendor/
|
|
110
|
+
vendors/
|
|
111
|
+
third_party/
|
|
112
|
+
node_modules/
|
|
113
|
+
*.sqlite
|
|
114
|
+
*.sqlite3
|
|
115
|
+
*.db
|
|
116
|
+
*.db-*
|
|
117
|
+
|
|
118
|
+
# OS and editor files
|
|
119
|
+
.DS_Store
|
|
120
|
+
Thumbs.db
|
|
121
|
+
desktop.ini
|
|
122
|
+
.idea/
|
|
123
|
+
.vscode/
|
|
124
|
+
*.code-workspace
|
|
125
|
+
*.swp
|
|
126
|
+
*.swo
|
|
127
|
+
*.bak
|
|
128
|
+
*.orig
|
|
129
|
+
|
|
130
|
+
# Tool output
|
|
131
|
+
.release/
|
|
132
|
+
pip-audit-report.json
|
|
133
|
+
bandit-report.json
|
|
134
|
+
scorecard-results.sarif
|
|
135
|
+
zizmor.sarif
|
|
136
|
+
coverage.json
|