ciris-server 0.5.254__tar.gz → 0.6.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ciris_server-0.6.0/.github/workflows/build-wheels.yml +1296 -0
- ciris_server-0.6.0/.github/workflows/ci.yml +652 -0
- ciris_server-0.6.0/.github/workflows/desktop-installers.yml +330 -0
- ciris_server-0.6.0/.github/workflows/mesh-harness.yml +178 -0
- ciris_server-0.6.0/.github/workflows/publish-pypi.yml +130 -0
- ciris_server-0.6.0/.github/workflows/release.yml +573 -0
- ciris_server-0.6.0/CONTRIBUTING.md +438 -0
- ciris_server-0.6.0/Cargo.lock +8147 -0
- ciris_server-0.6.0/Cargo.toml +566 -0
- ciris_server-0.6.0/PKG-INFO +403 -0
- ciris_server-0.6.0/README.md +390 -0
- ciris_server-0.6.0/build.rs +132 -0
- ciris_server-0.6.0/deny.toml +296 -0
- ciris_server-0.6.0/evidence/CIRISServer.cc_impl.tsv +68 -0
- ciris_server-0.6.0/evidence/av/av_member.jsonl +11 -0
- ciris_server-0.6.0/evidence/av/av_mesh.jsonl +51 -0
- ciris_server-0.6.0/evidence/av/av_ring.jsonl +7 -0
- ciris_server-0.6.0/evidence/cc_impl.tsv +133 -0
- ciris_server-0.6.0/harness/csd4/__main__.py +49 -0
- ciris_server-0.6.0/harness/csd4/model.py +847 -0
- ciris_server-0.6.0/harness/csd4/rules.py +270 -0
- ciris_server-0.6.0/harness/csd4/test_model.py +253 -0
- ciris_server-0.6.0/harness/native/__init__.py +0 -0
- ciris_server-0.6.0/harness/native/__main__.py +122 -0
- ciris_server-0.6.0/harness/native/fold_node.py +129 -0
- ciris_server-0.6.0/harness/native/mesh.py +500 -0
- ciris_server-0.6.0/harness/native/roll.py +123 -0
- ciris_server-0.6.0/harness/native/scenarios.py +1355 -0
- ciris_server-0.6.0/harness/native/test_anchor_env.yml +19 -0
- ciris_server-0.6.0/harness/native/topology.py +144 -0
- ciris_server-0.6.0/harness/traces_pairing/README.md +17 -0
- ciris_server-0.6.0/harness/traces_pairing/pairing_a_agent.py +79 -0
- ciris_server-0.6.0/harness/traces_pairing/pairing_b_server.py +62 -0
- ciris_server-0.6.0/harness/traces_pairing/smoke_traces.py +153 -0
- ciris_server-0.6.0/harness/traces_pairing/stamp_override_sitecustomize.py +17 -0
- ciris_server-0.6.0/harness/traces_pairing/validate_pairing.py +41 -0
- ciris_server-0.6.0/installers/desktop/README.md +53 -0
- ciris_server-0.6.0/installers/desktop/linux/install.sh +105 -0
- ciris_server-0.6.0/installers/desktop/linux/uninstall.sh +23 -0
- ciris_server-0.6.0/installers/desktop/macos/build_app.sh +76 -0
- ciris_server-0.6.0/installers/desktop/stage.py +110 -0
- ciris_server-0.6.0/installers/desktop/windows/ciris.iss +85 -0
- ciris_server-0.6.0/openapi.json +31871 -0
- ciris_server-0.6.0/pyproject.toml +194 -0
- ciris_server-0.6.0/python/ciris_server/__init__.py +138 -0
- ciris_server-0.6.0/python/ciris_server/routes.tsv +200 -0
- ciris_server-0.6.0/python/ciris_server/upgrade.py +443 -0
- ciris_server-0.6.0/scripts/preflight.sh +228 -0
- ciris_server-0.6.0/src/accord.rs +337 -0
- ciris_server-0.6.0/src/accord_custody.rs +121 -0
- ciris_server-0.6.0/src/accord_duty.rs +666 -0
- ciris_server-0.6.0/src/accord_halt_status.rs +277 -0
- ciris_server-0.6.0/src/accord_invoke.rs +198 -0
- ciris_server-0.6.0/src/accord_provision.rs +2814 -0
- ciris_server-0.6.0/src/accord_reactivate.rs +50 -0
- ciris_server-0.6.0/src/accord_release.rs +520 -0
- ciris_server-0.6.0/src/accord_sign_bytes.rs +345 -0
- ciris_server-0.6.0/src/adapter.rs +160 -0
- ciris_server-0.6.0/src/add_device.rs +1638 -0
- ciris_server-0.6.0/src/agent_deferral.rs +452 -0
- ciris_server-0.6.0/src/amendment_profile.rs +275 -0
- ciris_server-0.6.0/src/attest.rs +767 -0
- ciris_server-0.6.0/src/attestation_reads.rs +152 -0
- ciris_server-0.6.0/src/auth/api_keys.rs +343 -0
- ciris_server-0.6.0/src/auth/attestation.rs +169 -0
- ciris_server-0.6.0/src/auth/bootstrap.rs +2009 -0
- ciris_server-0.6.0/src/auth/consent.rs +169 -0
- ciris_server-0.6.0/src/auth/device_auth.rs +414 -0
- ciris_server-0.6.0/src/auth/device_grant.rs +1388 -0
- ciris_server-0.6.0/src/auth/erasure.rs +158 -0
- ciris_server-0.6.0/src/auth/gate.rs +401 -0
- ciris_server-0.6.0/src/auth/loopback.rs +58 -0
- ciris_server-0.6.0/src/auth/mod.rs +81 -0
- ciris_server-0.6.0/src/auth/oauth.rs +4179 -0
- ciris_server-0.6.0/src/auth/oauth_link.rs +468 -0
- ciris_server-0.6.0/src/auth/occurrence.rs +689 -0
- ciris_server-0.6.0/src/auth/operator_gate.rs +47 -0
- ciris_server-0.6.0/src/auth/owner_login.rs +236 -0
- ciris_server-0.6.0/src/auth/ownership.rs +2148 -0
- ciris_server-0.6.0/src/auth/portable_occurrence.rs +1439 -0
- ciris_server-0.6.0/src/auth/refusal.rs +110 -0
- ciris_server-0.6.0/src/auth/roles.rs +523 -0
- ciris_server-0.6.0/src/auth/self_login.rs +164 -0
- ciris_server-0.6.0/src/auth/session.rs +1410 -0
- ciris_server-0.6.0/src/auth/store.rs +708 -0
- ciris_server-0.6.0/src/auth/verify.rs +122 -0
- ciris_server-0.6.0/src/backend.rs +321 -0
- ciris_server-0.6.0/src/brain_fold.rs +118 -0
- ciris_server-0.6.0/src/call_ring.rs +863 -0
- ciris_server-0.6.0/src/call_routes.rs +2492 -0
- ciris_server-0.6.0/src/call_wire.rs +258 -0
- ciris_server-0.6.0/src/canonical_reads.rs +162 -0
- ciris_server-0.6.0/src/capacity_consent.rs +132 -0
- ciris_server-0.6.0/src/capacity_monitor.rs +508 -0
- ciris_server-0.6.0/src/claim_remote.rs +2225 -0
- ciris_server-0.6.0/src/cli_entry.rs +710 -0
- ciris_server-0.6.0/src/communities.rs +1722 -0
- ciris_server-0.6.0/src/compose.rs +3285 -0
- ciris_server-0.6.0/src/compose_policy.rs +1511 -0
- ciris_server-0.6.0/src/config.rs +333 -0
- ciris_server-0.6.0/src/config_api.rs +503 -0
- ciris_server-0.6.0/src/config_reconcile.rs +716 -0
- ciris_server-0.6.0/src/conformance.rs +1175 -0
- ciris_server-0.6.0/src/contact_trace.rs +42 -0
- ciris_server-0.6.0/src/contacts_chat.rs +1389 -0
- ciris_server-0.6.0/src/degradation.rs +2112 -0
- ciris_server-0.6.0/src/delegation_transparency.rs +61 -0
- ciris_server-0.6.0/src/device_release.rs +335 -0
- ciris_server-0.6.0/src/diag.rs +967 -0
- ciris_server-0.6.0/src/drive.rs +80 -0
- ciris_server-0.6.0/src/drive_auth.rs +95 -0
- ciris_server-0.6.0/src/edge_hooks.rs +233 -0
- ciris_server-0.6.0/src/emergency_compose.rs +292 -0
- ciris_server-0.6.0/src/family.rs +193 -0
- ciris_server-0.6.0/src/family_api.rs +1597 -0
- ciris_server-0.6.0/src/federation_admin.rs +1001 -0
- ciris_server-0.6.0/src/federation_delivery.rs +380 -0
- ciris_server-0.6.0/src/federation_nodecode.rs +151 -0
- ciris_server-0.6.0/src/federation_peers.rs +1118 -0
- ciris_server-0.6.0/src/federation_surface.rs +216 -0
- ciris_server-0.6.0/src/field_log.rs +349 -0
- ciris_server-0.6.0/src/gone/mod.rs +503 -0
- ciris_server-0.6.0/src/gone/retired.rs +295 -0
- ciris_server-0.6.0/src/graph_config.rs +1277 -0
- ciris_server-0.6.0/src/halt_gate.rs +134 -0
- ciris_server-0.6.0/src/hardware_attestation.rs +321 -0
- ciris_server-0.6.0/src/health.rs +714 -0
- ciris_server-0.6.0/src/held_key.rs +62 -0
- ciris_server-0.6.0/src/identity.rs +2570 -0
- ciris_server-0.6.0/src/identity_gate.rs +38 -0
- ciris_server-0.6.0/src/key_convention.rs +375 -0
- ciris_server-0.6.0/src/key_standing.rs +521 -0
- ciris_server-0.6.0/src/lib.rs +2257 -0
- ciris_server-0.6.0/src/local_shutdown.rs +59 -0
- ciris_server-0.6.0/src/log_dedup.rs +823 -0
- ciris_server-0.6.0/src/loop_cadence.rs +623 -0
- ciris_server-0.6.0/src/main.rs +29 -0
- ciris_server-0.6.0/src/media_gate.rs +426 -0
- ciris_server-0.6.0/src/membership_invites.rs +206 -0
- ciris_server-0.6.0/src/memory_api.rs +617 -0
- ciris_server-0.6.0/src/mesh_genesis.rs +1267 -0
- ciris_server-0.6.0/src/mesh_runtime.rs +1086 -0
- ciris_server-0.6.0/src/mesh_status.rs +465 -0
- ciris_server-0.6.0/src/node_control.rs +559 -0
- ciris_server-0.6.0/src/node_key.rs +2352 -0
- ciris_server-0.6.0/src/node_lifecycle.rs +253 -0
- ciris_server-0.6.0/src/nodecode.rs +701 -0
- ciris_server-0.6.0/src/not_in_0_6.rs +31 -0
- ciris_server-0.6.0/src/operations_catalogue.rs +233 -0
- ciris_server-0.6.0/src/operator_surface.rs +125 -0
- ciris_server-0.6.0/src/owner_requests.rs +593 -0
- ciris_server-0.6.0/src/owner_signer_capsule.rs +401 -0
- ciris_server-0.6.0/src/panic_refusal.rs +43 -0
- ciris_server-0.6.0/src/peer.rs +2189 -0
- ciris_server-0.6.0/src/prior_mesh.rs +355 -0
- ciris_server-0.6.0/src/proxy.rs +200 -0
- ciris_server-0.6.0/src/py_adapter.rs +185 -0
- ciris_server-0.6.0/src/python.rs +1215 -0
- ciris_server-0.6.0/src/radio.rs +69 -0
- ciris_server-0.6.0/src/room_binding.rs +353 -0
- ciris_server-0.6.0/src/room_mail.rs +232 -0
- ciris_server-0.6.0/src/rooms/device_add.rs +330 -0
- ciris_server-0.6.0/src/rooms.rs +4886 -0
- ciris_server-0.6.0/src/roster_rows.rs +26 -0
- ciris_server-0.6.0/src/scorer/anti_goodhart.rs +158 -0
- ciris_server-0.6.0/src/scorer/n_eff.rs +665 -0
- ciris_server-0.6.0/src/scorer.rs +2507 -0
- ciris_server-0.6.0/src/scrub.rs +246 -0
- ciris_server-0.6.0/src/self_age.rs +104 -0
- ciris_server-0.6.0/src/self_devices.rs +1598 -0
- ciris_server-0.6.0/src/self_identity.rs +164 -0
- ciris_server-0.6.0/src/self_rewrap.rs +225 -0
- ciris_server-0.6.0/src/self_room_drive.rs +137 -0
- ciris_server-0.6.0/src/session_claims.rs +1232 -0
- ciris_server-0.6.0/src/setup_options.rs +620 -0
- ciris_server-0.6.0/src/sign_object.rs +144 -0
- ciris_server-0.6.0/src/system_data.rs +355 -0
- ciris_server-0.6.0/src/telemetry_logs.rs +235 -0
- ciris_server-0.6.0/src/telemetry_otlp.rs +423 -0
- ciris_server-0.6.0/src/test_bless.rs +569 -0
- ciris_server-0.6.0/src/test_claim.rs +181 -0
- ciris_server-0.6.0/src/traces/capture.rs +299 -0
- ciris_server-0.6.0/src/traces/legacy.rs +161 -0
- ciris_server-0.6.0/src/traces/mod.rs +87 -0
- ciris_server-0.6.0/src/traces/py.rs +507 -0
- ciris_server-0.6.0/src/traces/routes.rs +92 -0
- ciris_server-0.6.0/src/traces/seal.rs +149 -0
- ciris_server-0.6.0/src/traces/share.rs +291 -0
- ciris_server-0.6.0/src/traces/store.rs +414 -0
- ciris_server-0.6.0/src/trust_root_api.rs +263 -0
- ciris_server-0.6.0/src/vocabulary_surface.rs +201 -0
- ciris_server-0.6.0/src/workload.rs +592 -0
- ciris_server-0.6.0/tests/accord.rs +2442 -0
- ciris_server-0.6.0/tests/accord_halt_status_v62.rs +136 -0
- ciris_server-0.6.0/tests/accord_holder_on_a_held_home.rs +84 -0
- ciris_server-0.6.0/tests/accord_invoke_v62.rs +62 -0
- ciris_server-0.6.0/tests/add_device_v62.rs +410 -0
- ciris_server-0.6.0/tests/amendment_profile.rs +220 -0
- ciris_server-0.6.0/tests/anchor_block_verifies.rs +126 -0
- ciris_server-0.6.0/tests/brain_fold_rev21.rs +400 -0
- ciris_server-0.6.0/tests/calls_two_node_v62.rs +672 -0
- ciris_server-0.6.0/tests/chat_pair_two_node_v62.rs +367 -0
- ciris_server-0.6.0/tests/claim_split_home_v62.rs +316 -0
- ciris_server-0.6.0/tests/claim_v62.rs +235 -0
- ciris_server-0.6.0/tests/claimed_node_restarts.rs +218 -0
- ciris_server-0.6.0/tests/config_reconcile.rs +283 -0
- ciris_server-0.6.0/tests/config_set_v62.rs +64 -0
- ciris_server-0.6.0/tests/contacts_v62.rs +328 -0
- ciris_server-0.6.0/tests/deferral_v62.rs +127 -0
- ciris_server-0.6.0/tests/emergency_compose_v62.rs +77 -0
- ciris_server-0.6.0/tests/erasure_floor_v62.rs +130 -0
- ciris_server-0.6.0/tests/every_route_answers.rs +518 -0
- ciris_server-0.6.0/tests/federation_surface_rev22.rs +159 -0
- ciris_server-0.6.0/tests/files_shaped_v62.rs +262 -0
- ciris_server-0.6.0/tests/fixtures/trace_4_0_0/trace-00000000.json +1 -0
- ciris_server-0.6.0/tests/fixtures/trace_4_0_0/trace-00000001.json +1 -0
- ciris_server-0.6.0/tests/fixtures/trace_4_0_0/trace-00000002.json +1 -0
- ciris_server-0.6.0/tests/fixtures/trace_4_0_0/trace-00000003.json +1 -0
- ciris_server-0.6.0/tests/fixtures/trace_4_0_0/trace-00000004.json +1 -0
- ciris_server-0.6.0/tests/fixtures/trace_4_0_0/trace-00000005.json +1 -0
- ciris_server-0.6.0/tests/graph_config.rs +784 -0
- ciris_server-0.6.0/tests/identity_is_derived_v62.rs +163 -0
- ciris_server-0.6.0/tests/kex_hybrid_v62.rs +115 -0
- ciris_server-0.6.0/tests/localization_gate.rs +1257 -0
- ciris_server-0.6.0/tests/logout_ends_the_session_not_the_owner.rs +479 -0
- ciris_server-0.6.0/tests/loop_cadence_gate.rs +176 -0
- ciris_server-0.6.0/tests/mesh_request_v62.rs +124 -0
- ciris_server-0.6.0/tests/mesh_two_node.rs +215 -0
- ciris_server-0.6.0/tests/node_lifecycle.rs +177 -0
- ciris_server-0.6.0/tests/owner_login_v62.rs +108 -0
- ciris_server-0.6.0/tests/owner_verifiable_v62.rs +35 -0
- ciris_server-0.6.0/tests/piv_preflight_fails_open.rs +52 -0
- ciris_server-0.6.0/tests/python/test_upgrade.py +197 -0
- ciris_server-0.6.0/tests/python_module_smoke.py +780 -0
- ciris_server-0.6.0/tests/python_stop_smoke.py +219 -0
- ciris_server-0.6.0/tests/release_gates/ffi_symbols.rs +236 -0
- ciris_server-0.6.0/tests/release_gates/ladder.rs +1656 -0
- ciris_server-0.6.0/tests/release_gates/planes.rs +232 -0
- ciris_server-0.6.0/tests/release_gates/substrate.rs +419 -0
- ciris_server-0.6.0/tests/release_gates/surfaces.rs +50 -0
- ciris_server-0.6.0/tests/release_gates/trust_root.rs +240 -0
- ciris_server-0.6.0/tests/room_mail_loop_v62.rs +148 -0
- ciris_server-0.6.0/tests/rooms_private_binding_v62.rs +428 -0
- ciris_server-0.6.0/tests/rooms_private_two_node_v62.rs +829 -0
- ciris_server-0.6.0/tests/rooms_public_v62.rs +181 -0
- ciris_server-0.6.0/tests/rooms_support/mod.rs +349 -0
- ciris_server-0.6.0/tests/rooms_v62_rev9.rs +456 -0
- ciris_server-0.6.0/tests/routes_897_v62.rs +365 -0
- ciris_server-0.6.0/tests/scorer_evidence_v62.rs +292 -0
- ciris_server-0.6.0/tests/scorer_m4_batches_v62.rs +170 -0
- ciris_server-0.6.0/tests/scorer_v62.rs +21 -0
- ciris_server-0.6.0/tests/self_key_record_v62.rs +79 -0
- ciris_server-0.6.0/tests/server_only_rev20.rs +170 -0
- ciris_server-0.6.0/tests/setup_first_run.rs +503 -0
- ciris_server-0.6.0/tests/signed_row_integrity_v62.rs +246 -0
- ciris_server-0.6.0/tests/traces_local.rs +1169 -0
- ciris_server-0.6.0/tests/vectors/call_frames_v1.json +454 -0
- ciris_server-0.6.0/tools/check_server_localization.py +1591 -0
- ciris_server-0.6.0/tools/gen_routes.py +119 -0
- ciris_server-0.6.0/tools/legacy_key_bundle.py +264 -0
- ciris_server-0.5.254/.github/workflows/build-wheels.yml +0 -1299
- ciris_server-0.5.254/.github/workflows/ci.yml +0 -657
- ciris_server-0.5.254/.github/workflows/mesh-harness.yml +0 -458
- ciris_server-0.5.254/.github/workflows/publish-pypi.yml +0 -124
- ciris_server-0.5.254/.github/workflows/release.yml +0 -573
- ciris_server-0.5.254/CONTRIBUTING.md +0 -436
- ciris_server-0.5.254/Cargo.lock +0 -9217
- ciris_server-0.5.254/Cargo.toml +0 -594
- ciris_server-0.5.254/PKG-INFO +0 -403
- ciris_server-0.5.254/README.md +0 -390
- ciris_server-0.5.254/build.rs +0 -54
- ciris_server-0.5.254/crates/ciris-lens-core/.github/workflows/bench.yml +0 -88
- ciris_server-0.5.254/crates/ciris-lens-core/.github/workflows/ci.yml +0 -1089
- ciris_server-0.5.254/crates/ciris-lens-core/.gitignore +0 -25
- ciris_server-0.5.254/crates/ciris-lens-core/.pre-commit-config.yaml +0 -91
- ciris_server-0.5.254/crates/ciris-lens-core/Cargo.toml +0 -179
- ciris_server-0.5.254/crates/ciris-lens-core/FSD/CIRIS_LENS_CORE.md +0 -353
- ciris_server-0.5.254/crates/ciris-lens-core/FSD/LENS_CORE_V0_5.md +0 -683
- ciris_server-0.5.254/crates/ciris-lens-core/FSD/OPEN_QUESTIONS.md +0 -377
- ciris_server-0.5.254/crates/ciris-lens-core/LICENSE +0 -205
- ciris_server-0.5.254/crates/ciris-lens-core/MISSION.md +0 -491
- ciris_server-0.5.254/crates/ciris-lens-core/README.md +0 -79
- ciris_server-0.5.254/crates/ciris-lens-core/benches/aggregate.rs +0 -99
- ciris_server-0.5.254/crates/ciris-lens-core/benches/canonicalize.rs +0 -79
- ciris_server-0.5.254/crates/ciris-lens-core/benches/project.rs +0 -102
- ciris_server-0.5.254/crates/ciris-lens-core/deny.toml +0 -120
- ciris_server-0.5.254/crates/ciris-lens-core/docs/BENCHMARKS.md +0 -184
- ciris_server-0.5.254/crates/ciris-lens-core/docs/COHABITATION.md +0 -283
- ciris_server-0.5.254/crates/ciris-lens-core/docs/PRE_COMMIT.md +0 -132
- ciris_server-0.5.254/crates/ciris-lens-core/docs/PUBLIC_SCHEMA_CONTRACT.md +0 -957
- ciris_server-0.5.254/crates/ciris-lens-core/docs/PYPI_PUBLISH.md +0 -269
- ciris_server-0.5.254/crates/ciris-lens-core/docs/RELEASE_NOTES.md +0 -1034
- ciris_server-0.5.254/crates/ciris-lens-core/docs/STANDARDS_COMPARISON.md +0 -306
- ciris_server-0.5.254/crates/ciris-lens-core/docs/THREAT_MODEL.md +0 -939
- ciris_server-0.5.254/crates/ciris-lens-core/patterns_from_cirislens_core/extraction/json_path.rs +0 -161
- ciris_server-0.5.254/crates/ciris-lens-core/patterns_from_cirislens_core/extraction/metadata.rs +0 -365
- ciris_server-0.5.254/crates/ciris-lens-core/patterns_from_cirislens_core/extraction/mod.rs +0 -9
- ciris_server-0.5.254/crates/ciris-lens-core/patterns_from_cirislens_core/scrubber/distilbert_loader.rs +0 -215
- ciris_server-0.5.254/crates/ciris-lens-core/patterns_from_cirislens_core/scrubber/fields.rs +0 -101
- ciris_server-0.5.254/crates/ciris-lens-core/patterns_from_cirislens_core/scrubber/mod.rs +0 -249
- ciris_server-0.5.254/crates/ciris-lens-core/patterns_from_cirislens_core/scrubber/ner.rs +0 -887
- ciris_server-0.5.254/crates/ciris-lens-core/patterns_from_cirislens_core/scrubber/ort_loader.rs +0 -194
- ciris_server-0.5.254/crates/ciris-lens-core/patterns_from_cirislens_core/scrubber/proptests.rs +0 -184
- ciris_server-0.5.254/crates/ciris-lens-core/patterns_from_cirislens_core/scrubber/regex.rs +0 -309
- ciris_server-0.5.254/crates/ciris-lens-core/patterns_from_cirislens_core/scrubber/walker.rs +0 -378
- ciris_server-0.5.254/crates/ciris-lens-core/patterns_from_cirislens_core/scrubber/xlm_r_loader.rs +0 -256
- ciris_server-0.5.254/crates/ciris-lens-core/pyproject.toml +0 -93
- ciris_server-0.5.254/crates/ciris-lens-core/python/ciris_lens_core/__init__.py +0 -125
- ciris_server-0.5.254/crates/ciris-lens-core/src/audit/api.rs +0 -508
- ciris_server-0.5.254/crates/ciris-lens-core/src/audit/delegate.rs +0 -442
- ciris_server-0.5.254/crates/ciris-lens-core/src/audit/mod.rs +0 -37
- ciris_server-0.5.254/crates/ciris-lens-core/src/audit/pyo3.rs +0 -525
- ciris_server-0.5.254/crates/ciris-lens-core/src/canonical/ceg_egress.rs +0 -284
- ciris_server-0.5.254/crates/ciris-lens-core/src/canonical/mod.rs +0 -207
- ciris_server-0.5.254/crates/ciris-lens-core/src/capacity/attestation.rs +0 -146
- ciris_server-0.5.254/crates/ciris-lens-core/src/capacity/mod.rs +0 -35
- ciris_server-0.5.254/crates/ciris-lens-core/src/capacity/score.rs +0 -299
- ciris_server-0.5.254/crates/ciris-lens-core/src/capture/batch.rs +0 -600
- ciris_server-0.5.254/crates/ciris-lens-core/src/capture/client.rs +0 -1404
- ciris_server-0.5.254/crates/ciris-lens-core/src/capture/consent.rs +0 -492
- ciris_server-0.5.254/crates/ciris-lens-core/src/capture/correlation.rs +0 -838
- ciris_server-0.5.254/crates/ciris-lens-core/src/capture/event.rs +0 -303
- ciris_server-0.5.254/crates/ciris-lens-core/src/capture/mod.rs +0 -60
- ciris_server-0.5.254/crates/ciris-lens-core/src/capture/partial.rs +0 -477
- ciris_server-0.5.254/crates/ciris-lens-core/src/capture/py_engine.rs +0 -551
- ciris_server-0.5.254/crates/ciris-lens-core/src/capture/seal.rs +0 -949
- ciris_server-0.5.254/crates/ciris-lens-core/src/cohort/declared.rs +0 -252
- ciris_server-0.5.254/crates/ciris-lens-core/src/cohort/mod.rs +0 -24
- ciris_server-0.5.254/crates/ciris-lens-core/src/cohort/resourcing.rs +0 -47
- ciris_server-0.5.254/crates/ciris-lens-core/src/config/egress.rs +0 -989
- ciris_server-0.5.254/crates/ciris-lens-core/src/config/mod.rs +0 -35
- ciris_server-0.5.254/crates/ciris-lens-core/src/config/node.rs +0 -227
- ciris_server-0.5.254/crates/ciris-lens-core/src/config/retention.rs +0 -197
- ciris_server-0.5.254/crates/ciris-lens-core/src/config/upstream.rs +0 -61
- ciris_server-0.5.254/crates/ciris-lens-core/src/detector/axis_metrics.rs +0 -739
- ciris_server-0.5.254/crates/ciris-lens-core/src/detector/coherence_ratchet.rs +0 -200
- ciris_server-0.5.254/crates/ciris-lens-core/src/detector/correlated_action.rs +0 -563
- ciris_server-0.5.254/crates/ciris-lens-core/src/detector/distributive_access.rs +0 -524
- ciris_server-0.5.254/crates/ciris-lens-core/src/detector/manifold.rs +0 -774
- ciris_server-0.5.254/crates/ciris-lens-core/src/detector/mod.rs +0 -144
- ciris_server-0.5.254/crates/ciris-lens-core/src/extract/mod.rs +0 -20
- ciris_server-0.5.254/crates/ciris-lens-core/src/extract/projection.rs +0 -259
- ciris_server-0.5.254/crates/ciris-lens-core/src/ffi/mod.rs +0 -7
- ciris_server-0.5.254/crates/ciris-lens-core/src/ffi/pyo3.rs +0 -2017
- ciris_server-0.5.254/crates/ciris-lens-core/src/ingest_guard.rs +0 -150
- ciris_server-0.5.254/crates/ciris-lens-core/src/key_id.rs +0 -629
- ciris_server-0.5.254/crates/ciris-lens-core/src/lib.rs +0 -125
- ciris_server-0.5.254/crates/ciris-lens-core/src/observability/mod.rs +0 -2
- ciris_server-0.5.254/crates/ciris-lens-core/src/pipeline/lifecycle.rs +0 -415
- ciris_server-0.5.254/crates/ciris-lens-core/src/pipeline/mod.rs +0 -4
- ciris_server-0.5.254/crates/ciris-lens-core/src/retention/eviction.rs +0 -548
- ciris_server-0.5.254/crates/ciris-lens-core/src/retention/mod.rs +0 -51
- ciris_server-0.5.254/crates/ciris-lens-core/src/retention/summary.rs +0 -135
- ciris_server-0.5.254/crates/ciris-lens-core/src/role/handler.rs +0 -137
- ciris_server-0.5.254/crates/ciris-lens-core/src/role/mod.rs +0 -71
- ciris_server-0.5.254/crates/ciris-lens-core/src/role/node.rs +0 -2026
- ciris_server-0.5.254/crates/ciris-lens-core/src/role/relay.rs +0 -226
- ciris_server-0.5.254/crates/ciris-lens-core/src/role/ret_relay.rs +0 -422
- ciris_server-0.5.254/crates/ciris-lens-core/src/scores/aggregate.rs +0 -360
- ciris_server-0.5.254/crates/ciris-lens-core/src/scores/mod.rs +0 -59
- ciris_server-0.5.254/crates/ciris-lens-core/src/scores/oracle.rs +0 -113
- ciris_server-0.5.254/crates/ciris-lens-core/src/scoring/assembly.rs +0 -290
- ciris_server-0.5.254/crates/ciris-lens-core/src/scoring/axis_calibration.rs +0 -508
- ciris_server-0.5.254/crates/ciris-lens-core/src/scoring/calibration.rs +0 -495
- ciris_server-0.5.254/crates/ciris-lens-core/src/scoring/mod.rs +0 -25
- ciris_server-0.5.254/crates/ciris-lens-core/src/scoring/n_eff.rs +0 -132
- ciris_server-0.5.254/crates/ciris-lens-core/src/scoring/result.rs +0 -161
- ciris_server-0.5.254/crates/ciris-lens-core/src/signing/event.rs +0 -631
- ciris_server-0.5.254/crates/ciris-lens-core/src/signing/mod.rs +0 -9
- ciris_server-0.5.254/crates/ciris-lens-core/src/wire/mod.rs +0 -125
- ciris_server-0.5.254/crates/ciris-lens-core/src/wire/signer.rs +0 -157
- ciris_server-0.5.254/crates/ciris-lens-core/tests/parity/README.md +0 -44
- ciris_server-0.5.254/crates/ciris-lens-core/tests/parity/canonical_fixtures.json +0 -385
- ciris_server-0.5.254/crates/ciris-lens-core/tests/parity/generate_canonical_fixtures.py +0 -218
- ciris_server-0.5.254/crates/ciris-lens-core/tests/sovereign_rlib.rs +0 -600
- ciris_server-0.5.254/deny.toml +0 -284
- ciris_server-0.5.254/evidence/CIRISServer.cc_impl.tsv +0 -68
- ciris_server-0.5.254/evidence/av/av_member.jsonl +0 -5
- ciris_server-0.5.254/evidence/av/av_mesh.jsonl +0 -36
- ciris_server-0.5.254/evidence/cc_impl.tsv +0 -133
- ciris_server-0.5.254/harness/mesh-repro/.gitignore +0 -4
- ciris_server-0.5.254/harness/mesh-repro/Dockerfile +0 -50
- ciris_server-0.5.254/harness/mesh-repro/README.md +0 -263
- ciris_server-0.5.254/harness/mesh-repro/agent_boot.py +0 -922
- ciris_server-0.5.254/harness/mesh-repro/chat_drive.py +0 -630
- ciris_server-0.5.254/harness/mesh-repro/docker-compose.353.yml +0 -31
- ciris_server-0.5.254/harness/mesh-repro/docker-compose.chat.genesis-v4.yml +0 -56
- ciris_server-0.5.254/harness/mesh-repro/docker-compose.chat.yml +0 -190
- ciris_server-0.5.254/harness/mesh-repro/docker-compose.configured.yml +0 -18
- ciris_server-0.5.254/harness/mesh-repro/docker-compose.faithful.yml +0 -19
- ciris_server-0.5.254/harness/mesh-repro/docker-compose.field.yml +0 -42
- ciris_server-0.5.254/harness/mesh-repro/docker-compose.genesis-v4.yml +0 -57
- ciris_server-0.5.254/harness/mesh-repro/docker-compose.genesis.yml +0 -25
- ciris_server-0.5.254/harness/mesh-repro/docker-compose.load.yml +0 -36
- ciris_server-0.5.254/harness/mesh-repro/docker-compose.prod.yml +0 -49
- ciris_server-0.5.254/harness/mesh-repro/docker-compose.traceflow.yml +0 -36
- ciris_server-0.5.254/harness/mesh-repro/docker-compose.unblessed.yml +0 -33
- ciris_server-0.5.254/harness/mesh-repro/docker-compose.yml +0 -113
- ciris_server-0.5.254/harness/mesh-repro/lib/corpus_client.py +0 -162
- ciris_server-0.5.254/harness/mesh-repro/lib/genesis_ceremony.py +0 -85
- ciris_server-0.5.254/harness/mesh-repro/lib/harness.sh +0 -642
- ciris_server-0.5.254/harness/mesh-repro/lib/media_corpus.py +0 -160
- ciris_server-0.5.254/harness/mesh-repro/lib/self_leak_probe.py +0 -91
- ciris_server-0.5.254/harness/mesh-repro/lib/timeline.py +0 -177
- ciris_server-0.5.254/harness/mesh-repro/node_boot.sh +0 -33
- ciris_server-0.5.254/harness/mesh-repro/pack_wheel.py +0 -97
- ciris_server-0.5.254/harness/mesh-repro/probe.sh +0 -67
- ciris_server-0.5.254/harness/mesh-repro/run.sh +0 -49
- ciris_server-0.5.254/harness/mesh-repro/run_353.sh +0 -131
- ciris_server-0.5.254/harness/mesh-repro/run_configured.sh +0 -91
- ciris_server-0.5.254/harness/mesh-repro/run_embedded.sh +0 -35
- ciris_server-0.5.254/harness/mesh-repro/run_field_sweep.sh +0 -100
- ciris_server-0.5.254/harness/mesh-repro/run_lifecycle.sh +0 -172
- ciris_server-0.5.254/harness/mesh-repro/run_load_repro.sh +0 -83
- ciris_server-0.5.254/harness/mesh-repro/run_scenario.sh +0 -85
- ciris_server-0.5.254/harness/mesh-repro/run_traceflow.sh +0 -123
- ciris_server-0.5.254/harness/mesh-repro/run_traceflow2.sh +0 -147
- ciris_server-0.5.254/harness/mesh-repro/scenarios/chat.sh +0 -1255
- ciris_server-0.5.254/harness/mesh-repro/scenarios/devices.sh +0 -523
- ciris_server-0.5.254/harness/mesh-repro/scenarios/genesis_seed.sh +0 -219
- ciris_server-0.5.254/harness/mesh-repro/scenarios/selffiles.sh +0 -829
- ciris_server-0.5.254/harness/mesh-repro/scenarios/traceflow.sh +0 -251
- ciris_server-0.5.254/harness/mesh-repro/scenarios/traceflow_prod.sh +0 -267
- ciris_server-0.5.254/harness/mesh-repro/scenarios/traceflow_unrooted.sh +0 -11
- ciris_server-0.5.254/harness/native/__main__.py +0 -148
- ciris_server-0.5.254/harness/native/docker/Dockerfile +0 -7
- ciris_server-0.5.254/harness/native/fold_node.py +0 -146
- ciris_server-0.5.254/harness/native/mesh.py +0 -797
- ciris_server-0.5.254/harness/native/model.py +0 -846
- ciris_server-0.5.254/harness/native/room_ladder.sh +0 -59
- ciris_server-0.5.254/harness/native/room_report.py +0 -180
- ciris_server-0.5.254/harness/native/runner.py +0 -242
- ciris_server-0.5.254/harness/native/scenarios.py +0 -4402
- ciris_server-0.5.254/harness/native/shapes/person-store.json +0 -17
- ciris_server-0.5.254/harness/native/test_model.py +0 -253
- ciris_server-0.5.254/harness/native/topologies/bigfile-quick.yaml +0 -19
- ciris_server-0.5.254/harness/native/topologies/bigfile.yaml +0 -36
- ciris_server-0.5.254/harness/native/topologies/csd-091-user-chat.yaml +0 -27
- ciris_server-0.5.254/harness/native/topologies/csd-092-share-contact-code.yaml +0 -20
- ciris_server-0.5.254/harness/native/topologies/csd-094-approve-new-device.yaml +0 -23
- ciris_server-0.5.254/harness/native/topologies/csd-107-file-custody.yaml +0 -25
- ciris_server-0.5.254/harness/native/topologies/selffiles.yaml +0 -30
- ciris_server-0.5.254/harness/native/topology.py +0 -1624
- ciris_server-0.5.254/harness/ui-chat/.gitignore +0 -8
- ciris_server-0.5.254/harness/ui-chat/Dockerfile +0 -64
- ciris_server-0.5.254/harness/ui-chat/README.md +0 -127
- ciris_server-0.5.254/harness/ui-chat/docker-compose.yml +0 -104
- ciris_server-0.5.254/harness/ui-chat/drive.py +0 -692
- ciris_server-0.5.254/harness/ui-chat/entrypoint.sh +0 -101
- ciris_server-0.5.254/harness/ui-chat/run.sh +0 -91
- ciris_server-0.5.254/openapi.json +0 -31871
- ciris_server-0.5.254/pyproject.toml +0 -190
- ciris_server-0.5.254/python/ciris_server/__init__.py +0 -80
- ciris_server-0.5.254/python/ciris_server/upgrade.py +0 -272
- ciris_server-0.5.254/scripts/preflight.sh +0 -230
- ciris_server-0.5.254/src/accord.rs +0 -3056
- ciris_server-0.5.254/src/accord_custody.rs +0 -227
- ciris_server-0.5.254/src/accord_duty.rs +0 -665
- ciris_server-0.5.254/src/accord_provision.rs +0 -3482
- ciris_server-0.5.254/src/accord_reactivate.rs +0 -265
- ciris_server-0.5.254/src/accord_release.rs +0 -1192
- ciris_server-0.5.254/src/accord_sign_bytes.rs +0 -285
- ciris_server-0.5.254/src/adapter.rs +0 -151
- ciris_server-0.5.254/src/add_device.rs +0 -2260
- ciris_server-0.5.254/src/admin_ops.rs +0 -4841
- ciris_server-0.5.254/src/agent_deferral.rs +0 -772
- ciris_server-0.5.254/src/announced_relay.rs +0 -738
- ciris_server-0.5.254/src/attest.rs +0 -765
- ciris_server-0.5.254/src/attestation_crossing.rs +0 -223
- ciris_server-0.5.254/src/attestation_reads.rs +0 -152
- ciris_server-0.5.254/src/auth/api_keys.rs +0 -343
- ciris_server-0.5.254/src/auth/attestation.rs +0 -178
- ciris_server-0.5.254/src/auth/bootstrap.rs +0 -2069
- ciris_server-0.5.254/src/auth/consent.rs +0 -178
- ciris_server-0.5.254/src/auth/device_auth.rs +0 -414
- ciris_server-0.5.254/src/auth/device_grant.rs +0 -1388
- ciris_server-0.5.254/src/auth/erasure.rs +0 -121
- ciris_server-0.5.254/src/auth/gate.rs +0 -401
- ciris_server-0.5.254/src/auth/loopback.rs +0 -58
- ciris_server-0.5.254/src/auth/mod.rs +0 -79
- ciris_server-0.5.254/src/auth/oauth.rs +0 -4134
- ciris_server-0.5.254/src/auth/oauth_link.rs +0 -468
- ciris_server-0.5.254/src/auth/occurrence.rs +0 -688
- ciris_server-0.5.254/src/auth/operator_gate.rs +0 -47
- ciris_server-0.5.254/src/auth/ownership.rs +0 -2126
- ciris_server-0.5.254/src/auth/portable_occurrence.rs +0 -1491
- ciris_server-0.5.254/src/auth/refusal.rs +0 -95
- ciris_server-0.5.254/src/auth/roles.rs +0 -523
- ciris_server-0.5.254/src/auth/self_login.rs +0 -232
- ciris_server-0.5.254/src/auth/session.rs +0 -1259
- ciris_server-0.5.254/src/auth/store.rs +0 -708
- ciris_server-0.5.254/src/auth/verify.rs +0 -119
- ciris_server-0.5.254/src/backend.rs +0 -814
- ciris_server-0.5.254/src/background_scheduler.rs +0 -451
- ciris_server-0.5.254/src/benchmarks/bench_results.rs +0 -571
- ciris_server-0.5.254/src/benchmarks/mesh.rs +0 -466
- ciris_server-0.5.254/src/benchmarks/mod.rs +0 -46
- ciris_server-0.5.254/src/benchmarks/scoreboard.rs +0 -811
- ciris_server-0.5.254/src/call_routes.rs +0 -2248
- ciris_server-0.5.254/src/capacity_monitor.rs +0 -481
- ciris_server-0.5.254/src/capacity_read.rs +0 -582
- ciris_server-0.5.254/src/claim_remote.rs +0 -2309
- ciris_server-0.5.254/src/commons_surface.rs +0 -1649
- ciris_server-0.5.254/src/communities.rs +0 -3221
- ciris_server-0.5.254/src/compliance.rs +0 -489
- ciris_server-0.5.254/src/compose.rs +0 -6605
- ciris_server-0.5.254/src/compose_policy.rs +0 -1511
- ciris_server-0.5.254/src/config.rs +0 -333
- ciris_server-0.5.254/src/config_api.rs +0 -450
- ciris_server-0.5.254/src/config_reconcile.rs +0 -701
- ciris_server-0.5.254/src/conformance.rs +0 -1158
- ciris_server-0.5.254/src/contact_trace.rs +0 -246
- ciris_server-0.5.254/src/contacts_chat.rs +0 -8715
- ciris_server-0.5.254/src/degradation.rs +0 -2571
- ciris_server-0.5.254/src/delegation_transparency.rs +0 -58
- ciris_server-0.5.254/src/device_release.rs +0 -370
- ciris_server-0.5.254/src/diag.rs +0 -968
- ciris_server-0.5.254/src/drive/multipart.rs +0 -640
- ciris_server-0.5.254/src/drive/streaming.rs +0 -338
- ciris_server-0.5.254/src/drive.rs +0 -4588
- ciris_server-0.5.254/src/drive_auth.rs +0 -114
- ciris_server-0.5.254/src/edge_hooks.rs +0 -89
- ciris_server-0.5.254/src/equivocation.rs +0 -1562
- ciris_server-0.5.254/src/family.rs +0 -193
- ciris_server-0.5.254/src/family_api.rs +0 -2370
- ciris_server-0.5.254/src/federation_admin.rs +0 -1040
- ciris_server-0.5.254/src/federation_delivery.rs +0 -2620
- ciris_server-0.5.254/src/federation_nodecode.rs +0 -124
- ciris_server-0.5.254/src/federation_peers.rs +0 -1511
- ciris_server-0.5.254/src/federation_surface.rs +0 -939
- ciris_server-0.5.254/src/field_conformance.rs +0 -891
- ciris_server-0.5.254/src/file_custody.rs +0 -593
- ciris_server-0.5.254/src/final_genesis.rs +0 -1697
- ciris_server-0.5.254/src/graph_config.rs +0 -1082
- ciris_server-0.5.254/src/halt_gate.rs +0 -128
- ciris_server-0.5.254/src/hardware_attestation.rs +0 -557
- ciris_server-0.5.254/src/health.rs +0 -707
- ciris_server-0.5.254/src/identity.rs +0 -2412
- ciris_server-0.5.254/src/identity_gate.rs +0 -268
- ciris_server-0.5.254/src/import.rs +0 -277
- ciris_server-0.5.254/src/ingest_http.rs +0 -1163
- ciris_server-0.5.254/src/key_convention.rs +0 -375
- ciris_server-0.5.254/src/key_standing.rs +0 -521
- ciris_server-0.5.254/src/lib.rs +0 -3933
- ciris_server-0.5.254/src/local_shutdown.rs +0 -59
- ciris_server-0.5.254/src/location.rs +0 -235
- ciris_server-0.5.254/src/log_dedup.rs +0 -823
- ciris_server-0.5.254/src/loop_cadence.rs +0 -639
- ciris_server-0.5.254/src/main.rs +0 -616
- ciris_server-0.5.254/src/media_gate.rs +0 -441
- ciris_server-0.5.254/src/membership_invites.rs +0 -1103
- ciris_server-0.5.254/src/memory_api.rs +0 -1328
- ciris_server-0.5.254/src/mesh_config_effect.rs +0 -1085
- ciris_server-0.5.254/src/mesh_config_surface.rs +0 -1913
- ciris_server-0.5.254/src/mesh_genesis.rs +0 -2409
- ciris_server-0.5.254/src/mesh_relay.rs +0 -1076
- ciris_server-0.5.254/src/mesh_status.rs +0 -465
- ciris_server-0.5.254/src/mls_guard.rs +0 -115
- ciris_server-0.5.254/src/mls_state.rs +0 -735
- ciris_server-0.5.254/src/node_control.rs +0 -505
- ciris_server-0.5.254/src/node_key.rs +0 -2602
- ciris_server-0.5.254/src/node_lifecycle.rs +0 -209
- ciris_server-0.5.254/src/nodecode.rs +0 -701
- ciris_server-0.5.254/src/operations_catalogue.rs +0 -387
- ciris_server-0.5.254/src/operator_surface.rs +0 -3984
- ciris_server-0.5.254/src/owner_requests.rs +0 -592
- ciris_server-0.5.254/src/owner_signer_capsule.rs +0 -396
- ciris_server-0.5.254/src/pair_intents.rs +0 -323
- ciris_server-0.5.254/src/peer.rs +0 -2796
- ciris_server-0.5.254/src/proxy.rs +0 -183
- ciris_server-0.5.254/src/py_adapter.rs +0 -175
- ciris_server-0.5.254/src/qa_call.rs +0 -755
- ciris_server-0.5.254/src/radio.rs +0 -520
- ciris_server-0.5.254/src/receive_axis.rs +0 -337
- ciris_server-0.5.254/src/replication_reconcile.rs +0 -792
- ciris_server-0.5.254/src/retention_loop.rs +0 -899
- ciris_server-0.5.254/src/room_moderation.rs +0 -461
- ciris_server-0.5.254/src/room_seat.rs +0 -246
- ciris_server-0.5.254/src/room_takedown.rs +0 -439
- ciris_server-0.5.254/src/roster_rows.rs +0 -86
- ciris_server-0.5.254/src/safety/age.rs +0 -609
- ciris_server-0.5.254/src/safety/infohazard.rs +0 -1037
- ciris_server-0.5.254/src/safety/mod.rs +0 -130
- ciris_server-0.5.254/src/safety/moderation.rs +0 -570
- ciris_server-0.5.254/src/safety/named.rs +0 -533
- ciris_server-0.5.254/src/safety/watchlist.rs +0 -551
- ciris_server-0.5.254/src/scorer/n_eff.rs +0 -437
- ciris_server-0.5.254/src/scorer.rs +0 -2211
- ciris_server-0.5.254/src/scrub.rs +0 -241
- ciris_server-0.5.254/src/self_devices.rs +0 -1711
- ciris_server-0.5.254/src/self_identity.rs +0 -164
- ciris_server-0.5.254/src/self_rewrap.rs +0 -218
- ciris_server-0.5.254/src/self_room_drive.rs +0 -1138
- ciris_server-0.5.254/src/session_claims.rs +0 -1232
- ciris_server-0.5.254/src/sign_object.rs +0 -270
- ciris_server-0.5.254/src/system_data.rs +0 -393
- ciris_server-0.5.254/src/telemetry_logs.rs +0 -235
- ciris_server-0.5.254/src/telemetry_otlp.rs +0 -718
- ciris_server-0.5.254/src/test_bless.rs +0 -868
- ciris_server-0.5.254/src/trace_plane_watch.rs +0 -540
- ciris_server-0.5.254/src/trace_receipt.rs +0 -1479
- ciris_server-0.5.254/src/trust_root_api.rs +0 -708
- ciris_server-0.5.254/src/vocabulary_surface.rs +0 -185
- ciris_server-0.5.254/src/withdraws_arbitrage.rs +0 -579
- ciris_server-0.5.254/src/workload.rs +0 -588
- ciris_server-0.5.254/tests/abuse_surface.rs +0 -1143
- ciris_server-0.5.254/tests/accord.rs +0 -2442
- ciris_server-0.5.254/tests/admin_ops.rs +0 -2605
- ciris_server-0.5.254/tests/agent_deferral.rs +0 -754
- ciris_server-0.5.254/tests/alm_chain.rs +0 -78
- ciris_server-0.5.254/tests/anchor_block_verifies.rs +0 -126
- ciris_server-0.5.254/tests/av_spine_e2e.rs +0 -153
- ciris_server-0.5.254/tests/capacity_scorer.rs +0 -1213
- ciris_server-0.5.254/tests/capacity_self_revocation_pin.rs +0 -474
- ciris_server-0.5.254/tests/ceg_graph_projection.rs +0 -208
- ciris_server-0.5.254/tests/chaos_mesh.rs +0 -234
- ciris_server-0.5.254/tests/commons_surface.rs +0 -1470
- ciris_server-0.5.254/tests/community_crud.rs +0 -2746
- ciris_server-0.5.254/tests/compliance_map.rs +0 -468
- ciris_server-0.5.254/tests/config_reconcile.rs +0 -286
- ciris_server-0.5.254/tests/contacts_chat.rs +0 -4877
- ciris_server-0.5.254/tests/crossing_plan_is_edges.rs +0 -159
- ciris_server-0.5.254/tests/decisions_deferral.rs +0 -160
- ciris_server-0.5.254/tests/delivery_round_diagnostics.rs +0 -474
- ciris_server-0.5.254/tests/device_grant.rs +0 -892
- ciris_server-0.5.254/tests/equivocation.rs +0 -677
- ciris_server-0.5.254/tests/federation_key_id.rs +0 -252
- ciris_server-0.5.254/tests/federation_session_kex.rs +0 -348
- ciris_server-0.5.254/tests/field_conformance.rs +0 -212
- ciris_server-0.5.254/tests/graph_config.rs +0 -783
- ciris_server-0.5.254/tests/health_reports_degradation.rs +0 -331
- ciris_server-0.5.254/tests/ingest_http.rs +0 -833
- ciris_server-0.5.254/tests/localization_gate.rs +0 -1227
- ciris_server-0.5.254/tests/logout_ends_the_session_not_the_owner.rs +0 -442
- ciris_server-0.5.254/tests/loop_cadence_gate.rs +0 -172
- ciris_server-0.5.254/tests/mesh_config_consumers.rs +0 -320
- ciris_server-0.5.254/tests/mesh_config_surface.rs +0 -1347
- ciris_server-0.5.254/tests/mesh_seed_e2e.rs +0 -1137
- ciris_server-0.5.254/tests/nat_traversal.rs +0 -142
- ciris_server-0.5.254/tests/node_lifecycle.rs +0 -145
- ciris_server-0.5.254/tests/noise_floor.rs +0 -1241
- ciris_server-0.5.254/tests/one_mls_store_per_node.rs +0 -49
- ciris_server-0.5.254/tests/operator_gate.rs +0 -100
- ciris_server-0.5.254/tests/operator_surface.rs +0 -1008
- ciris_server-0.5.254/tests/piv_preflight_fails_open.rs +0 -57
- ciris_server-0.5.254/tests/python/test_upgrade.py +0 -152
- ciris_server-0.5.254/tests/receive_axis_finds_owner_consent_peers.rs +0 -230
- ciris_server-0.5.254/tests/release_gates/ffi_symbols.rs +0 -235
- ciris_server-0.5.254/tests/release_gates/ladder.rs +0 -1788
- ciris_server-0.5.254/tests/release_gates/planes.rs +0 -253
- ciris_server-0.5.254/tests/release_gates/substrate.rs +0 -419
- ciris_server-0.5.254/tests/release_gates/surfaces.rs +0 -62
- ciris_server-0.5.254/tests/release_gates/trust_root.rs +0 -214
- ciris_server-0.5.254/tests/replication_reconcile.rs +0 -587
- ciris_server-0.5.254/tests/retention_loop.rs +0 -702
- ciris_server-0.5.254/tests/revoked_after_enforcement.rs +0 -647
- ciris_server-0.5.254/tests/safety.rs +0 -2770
- ciris_server-0.5.254/tests/scope_native_addressing_armed.rs +0 -75
- ciris_server-0.5.254/tests/self_room_key_package_is_found.rs +0 -99
- ciris_server-0.5.254/tests/split_home_pair_room.rs +0 -373
- ciris_server-0.5.254/tests/support/accord_batch.rs +0 -138
- ciris_server-0.5.254/tests/support/fixture_actor.rs +0 -147
- ciris_server-0.5.254/tests/support/revocation.rs +0 -499
- ciris_server-0.5.254/tests/trace_plane_release_gate.rs +0 -1426
- ciris_server-0.5.254/tests/trace_receipt.rs +0 -1266
- ciris_server-0.5.254/tests/vectors/call_frames_v1.json +0 -353
- ciris_server-0.5.254/tests/withdraws_arbitrage.rs +0 -465
- ciris_server-0.5.254/tools/check_server_localization.py +0 -1602
- {ciris_server-0.5.254 → ciris_server-0.6.0}/.cargo/config.toml +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/.claude/workflows/localize-ui.js +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/.github/workflows/bench.yml +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/.github/workflows/chat-bench.yml +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/.github/workflows/conformance.yml +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/.github/workflows/export-pipeline-pubkeys.yml +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/.github/workflows/ios-asset.yml +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/.github/workflows/localization.yml +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/.github/workflows/mobile-node-lanes.yml +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/.github/workflows/upgrade-longjump.yml +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/.github/workflows/windows-installer.yml +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/.gitignore +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/BUILDING_A_LOCAL_WHEEL.md +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/CHANGELOG.md +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/GOVERNANCE.md +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/LICENSE +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/MISSION.md +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/SECURITY.md +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/WIRE_VOCABULARY_KINDS.md +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/bench-site/bench_results.json +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/bench-site/index.html +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/bench_results.json +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/benches/alm_chain.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/benches/chat_throughput.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/benches/erasure_survival.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/benches/n_eff_scoring.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/benches/pqc_av_streaming.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/benches/replication_ingest.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/benches/sig_overhead.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/benches/stream_fanout.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/data/live_mesh_2026-06-22.json +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/docs/SCOPE_PRIVACY.md +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/evidence/README.md +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/evidence/av/av_echo.jsonl +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/evidence/blocked_upstream.tsv +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/evidence/cc_compliance_map.tsv +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/evidence/csd129-agent-step-2026-10-15/README.md +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/evidence/csd129-agent-step-2026-10-15/agent_acted.json +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/evidence/csd129-agent-step-2026-10-15/agent_ready.json +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/evidence/csd129-agent-step-2026-10-15/agentstep5.log +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/evidence/csd129-agent-step-2026-10-15/done.json +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/evidence/csd129-agent-step-2026-10-15/halt_fired.json +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/evidence/csd129-agent-step-2026-10-15/report.json +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/evidence/csd129-agent-step-2026-10-15/run6/agent_acted.json +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/evidence/csd129-agent-step-2026-10-15/run6/agent_ready.json +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/evidence/csd129-agent-step-2026-10-15/run6/agentstep6.log +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/evidence/csd129-agent-step-2026-10-15/run6/done.json +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/evidence/csd129-agent-step-2026-10-15/run6/halt_fired.json +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/evidence/csd129-agent-step-2026-10-15/run6/report.json +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/examples/mesh_propagation/main.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/examples/probe_td_read.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/examples/qa_runner/accord.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/examples/qa_runner/canonical.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/examples/qa_runner/common.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/examples/qa_runner/family.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/examples/qa_runner/main.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/examples/qa_runner/verify.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/examples/seed_person_store.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/examples/seed_synthetic_seat.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/examples/test_ceremony_anchor.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/formal/add_device/.gitignore +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/formal/add_device/AddDevice.tla +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/formal/add_device/AddDevice_careless.cfg +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/formal/add_device/AddDevice_live.cfg +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/formal/add_device/AddDevice_safety.cfg +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/formal/add_device/AddDevice_sybil.cfg +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/formal/add_device/AddDevice_sybil_fair.cfg +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/formal/add_device/README.md +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/genesis/accord_ceremony_keys.json +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/harness/__init__.py +0 -0
- {ciris_server-0.5.254/harness/native → ciris_server-0.6.0/harness/csd4}/__init__.py +0 -0
- {ciris_server-0.5.254/harness/native/topologies → ciris_server-0.6.0/harness/csd4}/catalog/T0-just-me-offline.yaml +0 -0
- {ciris_server-0.5.254/harness/native/topologies → ciris_server-0.6.0/harness/csd4}/catalog/T1-one-person-two-devices.yaml +0 -0
- {ciris_server-0.5.254/harness/native/topologies → ciris_server-0.6.0/harness/csd4}/catalog/T10-stolen-device-quorum-evict.yaml +0 -0
- {ciris_server-0.5.254/harness/native/topologies → ciris_server-0.6.0/harness/csd4}/catalog/T11-lost-devices-lone-recovery.yaml +0 -0
- {ciris_server-0.5.254/harness/native/topologies → ciris_server-0.6.0/harness/csd4}/catalog/T12-root-stall-recovery.yaml +0 -0
- {ciris_server-0.5.254/harness/native/topologies → ciris_server-0.6.0/harness/csd4}/catalog/T13-witnessed-lineage.yaml +0 -0
- {ciris_server-0.5.254/harness/native/topologies → ciris_server-0.6.0/harness/csd4}/catalog/T14-consent-end-to-end.yaml +0 -0
- {ciris_server-0.5.254/harness/native/topologies → ciris_server-0.6.0/harness/csd4}/catalog/T15-community-ceremony.yaml +0 -0
- {ciris_server-0.5.254/harness/native/topologies → ciris_server-0.6.0/harness/csd4}/catalog/T16-agent-retirement.yaml +0 -0
- {ciris_server-0.5.254/harness/native/topologies → ciris_server-0.6.0/harness/csd4}/catalog/T17-takedown-purge.yaml +0 -0
- {ciris_server-0.5.254/harness/native/topologies → ciris_server-0.6.0/harness/csd4}/catalog/T18-delegation-ends.yaml +0 -0
- {ciris_server-0.5.254/harness/native/topologies → ciris_server-0.6.0/harness/csd4}/catalog/T19-holders-under-coercion.yaml +0 -0
- {ciris_server-0.5.254/harness/native/topologies → ciris_server-0.6.0/harness/csd4}/catalog/T2-pair-room-outsider.yaml +0 -0
- {ciris_server-0.5.254/harness/native/topologies → ciris_server-0.6.0/harness/csd4}/catalog/T3-second-device-approval.yaml +0 -0
- {ciris_server-0.5.254/harness/native/topologies → ciris_server-0.6.0/harness/csd4}/catalog/T4-household.yaml +0 -0
- {ciris_server-0.5.254/harness/native/topologies → ciris_server-0.6.0/harness/csd4}/catalog/T5-community-quorum.yaml +0 -0
- {ciris_server-0.5.254/harness/native/topologies → ciris_server-0.6.0/harness/csd4}/catalog/T6-affiliation-delegation.yaml +0 -0
- {ciris_server-0.5.254/harness/native/topologies → ciris_server-0.6.0/harness/csd4}/catalog/T7-agent-steward-wa.yaml +0 -0
- {ciris_server-0.5.254/harness/native/topologies → ciris_server-0.6.0/harness/csd4}/catalog/T8-accord-halt.yaml +0 -0
- {ciris_server-0.5.254/harness/native/topologies → ciris_server-0.6.0/harness/csd4}/catalog/T9-two-roots-outsider.yaml +0 -0
- {ciris_server-0.5.254/harness/native/topologies → ciris_server-0.6.0/harness/csd4}/catalog/requirements.yaml +0 -0
- {ciris_server-0.5.254/harness/native/topologies → ciris_server-0.6.0/harness/csd4}/catalog/topology_vocabulary.json +0 -0
- {ciris_server-0.5.254/harness/native/topologies → ciris_server-0.6.0/harness/csd4}/catalog/topology_vocabulary.pin +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/installers/windows/README.md +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/installers/windows/bundle-jre.ps1 +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/installers/windows/ciris-server-entry.py +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/installers/windows/ciris-server-installer.iss +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/installers/windows/ciris-server.spec +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/python/ciris_server/__main__.py +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/python/ciris_server/cli.py +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/python/ciris_server/desktop_launcher.py +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/rust-toolchain.toml +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/scripts/bench_report.py +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/scripts/verify_release_surface.sh +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/scripts/with_test_postgres.sh +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/src/accord_halt.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/src/accord_pki/yubico_attestation_root_1.der +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/src/accord_pki/yubico_attestation_root_1.pem +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/src/auth/ABSORPTION.md +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/src/backoff.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/src/call_frames.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/src/compose_status.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/src/deployment.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/src/error_chain.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/src/host_kind.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/src/http_log.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/src/identity_ttl.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/src/ids.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/src/key_tier.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/src/media_render.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/src/node_identity.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/src/node_runtime.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/src/py_log_sink.rs +0 -0
- /ciris_server-0.5.254/crates/ciris-lens-core/src/scoring/capacity.rs → /ciris_server-0.6.0/src/scorer/assess.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/src/serve_marker.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/src/yubico_attestation_ca.pem +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/a_claimed_node_reads_its_own_config.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/a_consent_rides_scores.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/a_loop_has_no_bearer.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/a_node_carries_its_allegiance_facts.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/a_partial_reset_starts_a_new_node.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/a_persons_grant_names_the_machine.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/a_second_device_joins.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/accord_admit_node.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/accord_ceremony_keys.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/accord_duty_grant.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/an_owner_accepts_the_roots_the_node_accepted.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/an_unlabelled_bundle_is_refused_at_import.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/audit_chain.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/auth_backend_is_not_sqlite_only.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/authorization_digest_is_stable_under_co_scrub.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/backend_parity.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/blob_puller_uses_compose_edge.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/blocked_upstream_gate.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/boot_error_names_its_cause.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/canonical_relays_announced.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/capacity_read_route.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/ceremony_preflight.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/claim_pin_file_is_declared.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/claim_remote.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/compose_policy.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/compose_policy_manifest_arms.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/config_cohort_scope.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/conformance_gate.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/consent_is_authored_by_the_owner.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/consent_survives_the_key_split.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/contact_flow.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/contact_key_pull_e2e.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/coscrub_binds_its_subject.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/cross_target_deps.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/diagnostics_surface.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/drive_crud.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/drive_split_viewer_key.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/duty_scopes_match_the_substrate.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/egress_scrub.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/egress_scrub_is_not_at_rest.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/egress_scrub_python_door.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/emitted_dimensions_are_registered.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/envelope_core_gate.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/envelope_vocabulary_single_source.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/every_act_passes_the_session_gate.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/every_emitted_dimension_is_versioned.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/family_crud.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/federation_admin.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/federation_peers_announced.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/federation_peers_sideband.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/federation_tier_admission_witness.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/file_custody.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/final_genesis_dry_run.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/first_run_to_moderation_e2e.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/fixtures/genesis_2026-07-31_unlabelled.json +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/fold_consent_surface.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/folded_health.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/genesis_bundle_validate.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/genesis_seed_save.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/halt_gate.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/hardware_class_admission.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/health_contract_hashes.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/health_names_the_node.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/identity_states_its_kind.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/identity_ttl.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/keyset_inspection.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/launcher_readiness_is_the_contract.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/local_shutdown.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/localization_bundle_shape.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/log_citations.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/login_identifier.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/login_name_is_not_a_choice.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/mesh_seed_keyplane_e2e.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/no_key_material_is_copied.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/no_raw_roster_reads.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/node_crash.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/node_key_is_not_the_actor_key.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/nodecode.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/noise_floor_verdicts.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/oauth_redirect_uri_is_served.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/oauth_state_matrix.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/oauth_surface_shapes.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/occurrence.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/occurrence_kex_e2e.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/one_author_per_row.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/one_device_handles_each_exchange.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/owner_is_the_identity.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/owner_key_record_rebind.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/owner_lockout_recovery.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/owner_requests.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/owner_signer_capsule.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/ownership.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/peer_replication.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/platform_sealed_reopen_keeps_the_key.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/portable_occurrence.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/pqc_is_not_optional.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/release_gates/boundary.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/release_gates/workflows.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/release_gates.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/replication.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/replication_policy_gate.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/resolve_bearer_binding.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/root_bootstrap.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/runtime_worker_cap_gate.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/sealing_engine_is_the_node.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/seed_digest_probe.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/seed_vocabulary.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/self_identity_fold.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/self_node_release.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/self_occurrence_envelope.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/self_roster_key.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/session_token_is_verified.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/shutdown_signals.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/split_keeps_announce.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/split_keeps_the_registered_node_pair.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/split_node_authors_consent_as_itself.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/staged_owner_binding.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/stream_sth_consistency.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/substrate_contract_gate.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/support/accord_trust.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/support/drive_fixture.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/support/fixture_pqc.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/support/localization.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/support/log_capture.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/support/owned_node.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/the_drive_reads_need_a_session.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/the_kick_carries_the_rows.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/the_sealed_half_moves_into_this_home.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/the_self_room_handshake_is_node_attested.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/the_write_returns_a_readable_id.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/tier_pin_served_home.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/trace_round_e2e.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/tracing_reinit.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/tracing_sink.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/trust_root_bundle_is_served.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/trust_root_qa.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/upgrade_helper.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/wire_vocabulary_gate.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tests/withdrawing_a_root_withdraws_every_acceptance.rs +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tools/audit_cohort_scope_callers.py +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tools/build-android-wheel.sh +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tools/build_ios_wheel.py +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tools/chat_bench_http.sh +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tools/check_blocked_upstream.sh +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tools/check_evidence.py +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tools/check_ios_wheel.py +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tools/check_log_citations.py +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tools/client_pin.py +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tools/release/check_longjump_state.py +0 -0
- {ciris_server-0.5.254 → ciris_server-0.6.0}/tools/substrate_pin_overrides.py +0 -0
|
@@ -0,0 +1,1296 @@
|
|
|
1
|
+
name: build-wheels
|
|
2
|
+
|
|
3
|
+
# Reusable wheel-build matrix — the SINGLE source of truth for how every
|
|
4
|
+
# ciris-server abi3 wheel is built. Called by:
|
|
5
|
+
# • publish-pypi.yml (on a v* tag) → builds + uploads, then gated + published
|
|
6
|
+
# (warm-release-cache.yml used to call this on main to pre-warm the cache. It
|
|
7
|
+
# was removed: the deps layers are written by the SUBSTRATE repos' own CI
|
|
8
|
+
# (CIRISPersist/CIRISEdge/CIRISVerify each save their layer), and the server
|
|
9
|
+
# layer is saved by this workflow's own tag run. Measured on v0.5.173, the
|
|
10
|
+
# warm run saved `-s0.5.173` at 20:55 — 38 minutes AFTER the tag run had
|
|
11
|
+
# already restored at 20:17 — and the key is version-scoped, so nothing ever
|
|
12
|
+
# read it again. ~225 runner-minutes per cut for a ~3-minute saving.)
|
|
13
|
+
#
|
|
14
|
+
# Why one shared workflow: the warmer and the release MUST build byte-identically
|
|
15
|
+
# or the cache they share never hits. Keeping the steps in one place guarantees
|
|
16
|
+
# that — there is no second copy to drift.
|
|
17
|
+
#
|
|
18
|
+
# Cache model (two tiers):
|
|
19
|
+
# • Swatinem rust-cache (GHA L1) — GitHub scopes GHA caches by ref, and a tag
|
|
20
|
+
# run can only READ the default branch's caches, so it SAVES only on main
|
|
21
|
+
# (`save-if: main`) and restores everywhere.
|
|
22
|
+
# • CIRISCache (GHCR L2, restore@v2) — a GHCR package is NOT ref-scoped, so the
|
|
23
|
+
# SERVER `-s<version>` blob is saved on main AND on the v* tag publish. That
|
|
24
|
+
# keeps a per-version `-s` blob so the next release's restore@v2 `-s*` prefix
|
|
25
|
+
# fallback pulls the latest lean ~1 GB server blob instead of the larger edge
|
|
26
|
+
# layer. (NB: the GHCR blob restores the target dir but its tar mtimes predate
|
|
27
|
+
# the fresh checkout, so cargo rebuilds — it warms the source/registry, not the
|
|
28
|
+
# compile. The maturin legs' real compile cache is sccache, below.)
|
|
29
|
+
# • sccache (GHA) — content-addressed, so mtime-immune. macOS/Windows get it via
|
|
30
|
+
# maturin-action `sccache: true`; the linux legs wire it directly (the
|
|
31
|
+
# mozilla-actions/sccache-action step + RUSTC_WRAPPER=sccache on the raw
|
|
32
|
+
# `maturin build`, mirroring PR #215's client-artifacts wiring) since they do
|
|
33
|
+
# NOT use maturin-action. GHA-scoped: a tag run only READS default-branch
|
|
34
|
+
# entries, so the substrate repos' CI populates the deps layers and the tag run saves the
|
|
35
|
+
# wheels on main to POPULATE it; the tag publish then restores it warm. Without
|
|
36
|
+
# that warm the Windows tag build is 100% cold (v0.5.91: 0% sccache hits).
|
|
37
|
+
|
|
38
|
+
on:
|
|
39
|
+
workflow_call:
|
|
40
|
+
|
|
41
|
+
permissions:
|
|
42
|
+
contents: read
|
|
43
|
+
packages: write # CIRISCache save (GHCR) on main — CIRISServer#99
|
|
44
|
+
|
|
45
|
+
env:
|
|
46
|
+
# CIRISServer#129 — crates.io HTTP/2 multiplexing flake hardening. The CDN
|
|
47
|
+
# drops HTTP/2 streams mid-download and cargo surfaces it as a build error it
|
|
48
|
+
# is not:
|
|
49
|
+
# error: download of <crate> failed: curl failed … OpenSSL SSL_read:
|
|
50
|
+
# unexpected eof … Failed receiving HTTP2 data
|
|
51
|
+
# persist and edge already carry this (CIRISVerify#148/#158); server did not,
|
|
52
|
+
# so every lane here was exposed to a retryable network fault presenting as a
|
|
53
|
+
# compile failure — the kind of red that teaches people to re-run rather than
|
|
54
|
+
# to read.
|
|
55
|
+
CARGO_NET_RETRY: "10"
|
|
56
|
+
CARGO_HTTP_MULTIPLEXING: "false" # force HTTP/1.1 — no stream multiplexing
|
|
57
|
+
CARGO_NET_TIMEOUT: "60"
|
|
58
|
+
|
|
59
|
+
jobs:
|
|
60
|
+
# ── Build abi3 wheels per platform ─────────────────────────────────────────
|
|
61
|
+
# Linux: build on the native runners with apt deps + patchelf (NOT a manylinux
|
|
62
|
+
# container). The keyring's tss-esapi-sys needs tpm2-tss >= 3.x; the
|
|
63
|
+
# manylinux_2_28/el8 container only ships 2.3.2 → "tss2-sys not found". Ubuntu
|
|
64
|
+
# 24.04 has 4.0.x, and maturin+patchelf produce a manylinux_2_39 wheel — the
|
|
65
|
+
# same recipe the sister wheels ship (persist manylinux_2_38, edge _2_39) and
|
|
66
|
+
# the one the green conformance build-wheel job uses.
|
|
67
|
+
linux:
|
|
68
|
+
name: wheel ${{ matrix.plat.name }}
|
|
69
|
+
runs-on: ${{ matrix.plat.runs-on }}
|
|
70
|
+
strategy:
|
|
71
|
+
fail-fast: false
|
|
72
|
+
matrix:
|
|
73
|
+
plat:
|
|
74
|
+
- { name: linux-x86_64, runs-on: ubuntu-latest }
|
|
75
|
+
- { name: linux-aarch64, runs-on: ubuntu-24.04-arm }
|
|
76
|
+
steps:
|
|
77
|
+
- uses: actions/checkout@v4
|
|
78
|
+
- uses: dtolnay/rust-toolchain@1.97.0
|
|
79
|
+
# Content-addressed compiler cache over the GHA backend — the ONLY tier that
|
|
80
|
+
# actually warms the compile on these raw-`maturin build` legs. The CIRISCache
|
|
81
|
+
# GHCR blob restores the target dir but its tar mtimes predate the fresh
|
|
82
|
+
# checkout, so cargo rebuilds anyway (mtime invalidation) → the linux compile
|
|
83
|
+
# was effectively cold. sccache keys on compilation-unit content, so it is
|
|
84
|
+
# mtime-immune and hits across substrate bumps for unchanged crates (this is
|
|
85
|
+
# why the maturin-action macOS/Windows legs already reach ~86%). Warmed on
|
|
86
|
+
# the substrate repos' own CI (each saves its layer); restored on a tag.
|
|
87
|
+
- name: Set up sccache (compiler cache over GHA)
|
|
88
|
+
uses: mozilla-actions/sccache-action@v0.0.9
|
|
89
|
+
# CIRISCache (CIRISServer#99) — 4-layer centipede over the Swatinem GHA L1.
|
|
90
|
+
# Restore widest→narrowest (verify→persist→edge→server); SAVE under the
|
|
91
|
+
# server-specific -s key so we never collide with edge's canonical blob.
|
|
92
|
+
- name: Compute CIRISCache keys (4-layer centipede, CIRISServer#99)
|
|
93
|
+
id: cachekey
|
|
94
|
+
shell: bash
|
|
95
|
+
run: |
|
|
96
|
+
PLAT="${{ matrix.plat.name }}"
|
|
97
|
+
RUSTC=$(rustc -V | awk '{print $2}')
|
|
98
|
+
S=$(grep -m1 '^version = ' Cargo.toml | sed -E 's/^version = "([^"]+)".*/\1/')
|
|
99
|
+
# Tag- or rev-pinned, like edge: a grep matching nothing must not fail the step.
|
|
100
|
+
P=$(grep -m1 'CIRISPersist.*tag = "v' Cargo.toml | sed -E 's/.*tag = "v([0-9.]+)".*/\1/' || true)
|
|
101
|
+
if [ -z "$P" ]; then
|
|
102
|
+
P=$(grep -m1 'CIRISPersist.*rev = "' Cargo.toml | sed -E 's/.*rev = "([0-9a-f]+)".*/r\1/' || true)
|
|
103
|
+
fi
|
|
104
|
+
V=$(grep -m1 'CIRISVerify.*tag = "v' Cargo.toml | sed -E 's/.*tag = "v([0-9.]+)".*/\1/')
|
|
105
|
+
# tag-pin OR rev-pin (an adoption branch rides a rev until upstream tags —
|
|
106
|
+
# a grep matching nothing must not kill the step: the 0.5.181 lesson).
|
|
107
|
+
EDGE=$(grep -m1 'CIRISEdge.*tag = "v' Cargo.toml | sed -E 's/.*tag = "v([0-9.]+)".*/\1/' || true)
|
|
108
|
+
if [ -z "$EDGE" ]; then
|
|
109
|
+
EDGE=$(grep -m1 'CIRISEdge.*rev = "' Cargo.toml | sed -E 's/.*rev = "([0-9a-f]+)".*/r\1/' || true)
|
|
110
|
+
fi
|
|
111
|
+
BASE="ciris-substrate-v1-${PLAT}-release-rustc${RUSTC}"
|
|
112
|
+
KEY_VERIFY="${BASE}-pnone-enone-v${V:-none}"
|
|
113
|
+
KEY_PERSIST="${BASE}-p${P:-none}-enone-v${V:-none}"
|
|
114
|
+
KEY_EDGE="${BASE}-p${P:-none}-e${EDGE:-none}-v${V:-none}"
|
|
115
|
+
KEY_SERVER="${BASE}-p${P:-none}-e${EDGE:-none}-v${V:-none}-s${S:-none}"
|
|
116
|
+
{
|
|
117
|
+
echo "key-verify=${KEY_VERIFY}"
|
|
118
|
+
echo "key-persist=${KEY_PERSIST}"
|
|
119
|
+
echo "key-edge=${KEY_EDGE}"
|
|
120
|
+
echo "key=${KEY_SERVER}"
|
|
121
|
+
echo "key-server-prefix=${BASE}-p${P:-none}-e${EDGE:-none}-v${V:-none}-s"
|
|
122
|
+
echo "key-any=${BASE}-p" # CIRISServer#99 rolling substrate-head: newest prior build for this PLAT+rustc — restored ONLY on a full substrate-pin miss so a version bump recompiles the DELTA, not cold
|
|
123
|
+
} >> "$GITHUB_OUTPUT"
|
|
124
|
+
echo "::notice::CIRISCache (${PLAT}): S=${S:-NONE} P=${P:-NONE} V=${V:-NONE} EDGE=${EDGE:-NONE} RUSTC=${RUSTC}"
|
|
125
|
+
echo "::notice::${KEY_VERIFY}"
|
|
126
|
+
echo "::notice::${KEY_PERSIST}"
|
|
127
|
+
echo "::notice::${KEY_EDGE}"
|
|
128
|
+
echo "::notice::${KEY_SERVER}"
|
|
129
|
+
# Deepest-first, first-hit-wins (CIRISCache restore@v2): one extraction of
|
|
130
|
+
# the deepest available blob (cumulative supersets) instead of N redundant.
|
|
131
|
+
- name: CIRISCache restore (server→edge→persist→verify, first hit)
|
|
132
|
+
uses: CIRISAI/CIRISCache/restore@v2
|
|
133
|
+
continue-on-error: true
|
|
134
|
+
with:
|
|
135
|
+
keys: |
|
|
136
|
+
${{ steps.cachekey.outputs.key }}
|
|
137
|
+
${{ steps.cachekey.outputs.key-server-prefix }}*
|
|
138
|
+
${{ steps.cachekey.outputs.key-edge }}
|
|
139
|
+
${{ steps.cachekey.outputs.key-persist }}
|
|
140
|
+
${{ steps.cachekey.outputs.key-verify }}
|
|
141
|
+
${{ steps.cachekey.outputs.key-any }}*
|
|
142
|
+
- name: Install build deps
|
|
143
|
+
run: |
|
|
144
|
+
# Drop the preinstalled Microsoft/azure-cli apt repo: it intermittently
|
|
145
|
+
# 403s and tanks apt-get update (its packages are not needed here).
|
|
146
|
+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list /etc/apt/sources.list.d/azure-cli.list /etc/apt/sources.list.d/azure-cli.sources # CIRISServer#99 — retry apt (ports.ubuntu.com intermittently network-times-out
|
|
147
|
+
# on the arm64 runners; a bare failure tanked 0.5.117's linux-aarch64 wheel).
|
|
148
|
+
# Also drop the AZURE UBUNTU MIRROR (CIRISServer#449): the runner image
|
|
149
|
+
# makes it primary via /etc/apt/apt-mirrors.txt, and a stalled azure
|
|
150
|
+
# mirror wedges a job for over an hour rather than failing it.
|
|
151
|
+
sudo sed -i 's|azure\.archive\.ubuntu\.com|archive.ubuntu.com|g' \
|
|
152
|
+
/etc/apt/apt-mirrors.txt /etc/apt/sources.list 2>/dev/null || true
|
|
153
|
+
sudo find /etc/apt/sources.list.d -type f -exec \
|
|
154
|
+
sed -i 's|azure\.archive\.ubuntu\.com|archive.ubuntu.com|g' {} + 2>/dev/null || true
|
|
155
|
+
for i in 1 2 3; do
|
|
156
|
+
sudo timeout 300 apt-get update -o Acquire::Retries=3 -o Acquire::http::Timeout=20 -o Acquire::https::Timeout=20 \
|
|
157
|
+
&& sudo apt-get install -y libsqlite3-dev libudev-dev patchelf && break
|
|
158
|
+
echo "apt attempt $i failed; retrying in $((i*20))s"; sleep $((i*20))
|
|
159
|
+
done
|
|
160
|
+
- uses: actions/setup-python@v5
|
|
161
|
+
with:
|
|
162
|
+
python-version: "3.12"
|
|
163
|
+
# ── Build + stage the per-platform desktop JAR BEFORE maturin ──────────
|
|
164
|
+
# The Compose uber-jar is named CIRIS-<platform>-<ver>.jar by the gradle
|
|
165
|
+
# plugin (e.g. CIRIS-linux-x64-1.5.171.jar — packaging metadata derived from
|
|
166
|
+
# the release version, NOT the client identity). maturin then bundles it into
|
|
167
|
+
# the wheel via [tool.maturin] include (see pyproject.toml). System Java
|
|
168
|
+
# only — no JRE is bundled, keeping each wheel under PyPI's 100 MB cap.
|
|
169
|
+
- name: Build wheel (maturin)
|
|
170
|
+
env:
|
|
171
|
+
# Route rustc through sccache (mirrors PR #215's client-artifacts wiring).
|
|
172
|
+
SCCACHE_GHA_ENABLED: "true"
|
|
173
|
+
RUSTC_WRAPPER: sccache
|
|
174
|
+
# The Google DESKTOP OAuth client, injected at COMPILE time.
|
|
175
|
+
# Never in committed source: GitHub push protection blocks it (rightly
|
|
176
|
+
# — it cannot tell a desktop client's non-confidential secret from a
|
|
177
|
+
# web client's real one), and an embedded credential should be a
|
|
178
|
+
# deliberate build input rather than a constant someone finds later.
|
|
179
|
+
# Absent ⇒ the wheel simply has no built-in Google and says so through
|
|
180
|
+
# the typed refusal, instead of shipping a button that fails at the
|
|
181
|
+
# code exchange.
|
|
182
|
+
CIRIS_DESKTOP_GOOGLE_OAUTH_CLIENT_ID: ${{ secrets.CIRIS_DESKTOP_GOOGLE_OAUTH_CLIENT_ID }}
|
|
183
|
+
CIRIS_DESKTOP_GOOGLE_OAUTH_CLIENT_SECRET: ${{ secrets.CIRIS_DESKTOP_GOOGLE_OAUTH_CLIENT_SECRET }}
|
|
184
|
+
CIRIS_ANDROID_GOOGLE_OAUTH_CLIENT_ID: ${{ secrets.CIRIS_ANDROID_GOOGLE_OAUTH_CLIENT_ID }}
|
|
185
|
+
CIRIS_WEB_GOOGLE_OAUTH_CLIENT_ID: ${{ secrets.CIRIS_WEB_GOOGLE_OAUTH_CLIENT_ID }}
|
|
186
|
+
run: |
|
|
187
|
+
python -m pip install --upgrade pip
|
|
188
|
+
pip install "maturin>=1.7,<2"
|
|
189
|
+
maturin build --release --strip --out dist
|
|
190
|
+
sccache --show-stats
|
|
191
|
+
# ── Verify-FFI fold smoke (CIRISServer#232) ─────────────────────────────
|
|
192
|
+
# We fold ciris-verify-ffi (rlib) into _native, but NOTHING in our Rust calls
|
|
193
|
+
# its #[no_mangle] fns (the agent reaches them via ctypes at runtime), so
|
|
194
|
+
# --gc-sections would happily dead-strip all ~84 ciris_verify_* symbols —
|
|
195
|
+
# PER-PLATFORM-SILENTLY. Assert the surface actually survived into the wheel.
|
|
196
|
+
#
|
|
197
|
+
# ── Wheel size gate (CIRISServer#378) ────────────────────────────────
|
|
198
|
+
# PyPI enforces a per-project file limit (100 MB for `ciris-server`) at
|
|
199
|
+
# UPLOAD — the last step of a tag run, after every wheel has built and the
|
|
200
|
+
# conformance gate has passed. v0.5.157 died there: macosx_10_12_x86_64 at
|
|
201
|
+
# 100.4 MB, rejected, with the Linux/Android wheels already published.
|
|
202
|
+
#
|
|
203
|
+
# Nothing measured the wheel until PyPI did. The belief going in was that
|
|
204
|
+
# we had ~20 MB of headroom; the real figure at v0.5.155 was 2.2 MB, and
|
|
205
|
+
# the wheel had been creeping ~1 MB a release for four cuts.
|
|
206
|
+
#
|
|
207
|
+
# FAIL_MB sits just below PyPI's limit so the failure lands HERE, on the
|
|
208
|
+
# build with the artifact in hand, rather than at the last step of a
|
|
209
|
+
# publish — but only when rejection is actually imminent.
|
|
210
|
+
#
|
|
211
|
+
# It was 94 on the first pass, chosen before anyone had measured: linux is
|
|
212
|
+
# 97 and windows 98, both of which publish fine, so the gate blocked a cut
|
|
213
|
+
# that was not at risk. A gate that cries wolf gets raised or deleted by
|
|
214
|
+
# whoever is holding a broken release at 2am, and then it is not there for
|
|
215
|
+
# the case it was built for.
|
|
216
|
+
#
|
|
217
|
+
# 100 MB is arbitrary but USEFUL — it is the only forcing function against
|
|
218
|
+
# a wheel that grows ~1 MB a release forever. The right answer to this
|
|
219
|
+
# gate firing is to find the growth (v0.5.157: 19.8 MB of Skiko nobody
|
|
220
|
+
# loads), never to raise the number.
|
|
221
|
+
# ── The credential is IN THE ARTIFACT, not merely in the YAML (#387) ───
|
|
222
|
+
#
|
|
223
|
+
# 0.5.165 and 0.5.166 both shipped nine wheels with no built-in Google.
|
|
224
|
+
# The injection was present in this file the whole time; publish-pypi.yml
|
|
225
|
+
# called this workflow WITHOUT `secrets: inherit`, so every
|
|
226
|
+
# `${{ secrets.* }}` here resolved to the empty string — no warning, no
|
|
227
|
+
# failure, just a blank. option_env! then baked nothing, and
|
|
228
|
+
# ProviderConfigStore's both-halves-or-nothing rule left the store empty.
|
|
229
|
+
#
|
|
230
|
+
# The gate that was supposed to prevent this asserted the YAML instead:
|
|
231
|
+
# it read a HARDCODED list of the two files already known to be fixed and
|
|
232
|
+
# confirmed they were still fixed. It could not discover a caller that
|
|
233
|
+
# dropped the secrets, because it never asked about callers at all.
|
|
234
|
+
#
|
|
235
|
+
# So this asks the only question that cannot be answered by intent: is the
|
|
236
|
+
# client id actually inside the binary we are about to publish. On tags
|
|
237
|
+
# only, because that is the path where the secrets MUST be present — on a
|
|
238
|
+
# fork PR they legitimately are not, and failing there would be noise.
|
|
239
|
+
- name: Built-in OAuth credential is present in the wheel (tags only)
|
|
240
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
241
|
+
shell: bash
|
|
242
|
+
run: |
|
|
243
|
+
set -euo pipefail
|
|
244
|
+
WHL=$(ls dist/*.whl | head -1)
|
|
245
|
+
TMP=$(mktemp -d)
|
|
246
|
+
unzip -q "$WHL" -d "$TMP"
|
|
247
|
+
LIB=$(find "$TMP" \( -name '_native*.so' -o -name '_native*.pyd' -o -name '_native*.dylib' \) | head -1)
|
|
248
|
+
test -n "$LIB" || { echo "::error::no _native lib inside $WHL"; exit 1; }
|
|
249
|
+
# Match the SHAPE, never the value: a Google desktop client id ends in
|
|
250
|
+
# .apps.googleusercontent.com. Grepping for the literal id would put a
|
|
251
|
+
# credential in a public workflow file and in every log line.
|
|
252
|
+
# NO PIPE INTO `grep -q`. This is the EPIPE trap the #232 step above
|
|
253
|
+
# documents, and it bit here on the very first tag: `grep -q` exits
|
|
254
|
+
# the moment it matches, closing the pipe while `strings` is still
|
|
255
|
+
# writing; `strings` dies with EPIPE; and under `set -o pipefail` the
|
|
256
|
+
# PIPELINE reports failure — so a wheel that DOES carry the credential
|
|
257
|
+
# is reported as missing it. macOS's strings is strict about the
|
|
258
|
+
# flush, GNU's is not, so it false-failed macOS only while linux
|
|
259
|
+
# passed: a per-platform lie from a gate written to catch a
|
|
260
|
+
# per-platform lie. Dump to a file, then grep the file.
|
|
261
|
+
SFILE=$(mktemp)
|
|
262
|
+
strings "$LIB" > "$SFILE" 2>/dev/null || true
|
|
263
|
+
if [ ! -s "$SFILE" ]; then
|
|
264
|
+
echo "::error::strings produced no output for $LIB — INSTRUMENT failure, not evidence about the wheel."
|
|
265
|
+
exit 1
|
|
266
|
+
fi
|
|
267
|
+
if grep -q 'apps\.googleusercontent\.com' "$SFILE"; then
|
|
268
|
+
echo " OK - a built-in Google client id is compiled into $(basename "$WHL")"
|
|
269
|
+
else
|
|
270
|
+
echo "::error::$(basename "$WHL") has NO built-in Google client id. The secrets did not reach the build — check that every caller of build-wheels.yml passes 'secrets: inherit' (CIRISServer#387). This wheel would offer a Google button that cannot work."
|
|
271
|
+
exit 1
|
|
272
|
+
fi
|
|
273
|
+
- name: Wheel size gate
|
|
274
|
+
shell: bash
|
|
275
|
+
run: |
|
|
276
|
+
FAIL_MB=99
|
|
277
|
+
rc=0
|
|
278
|
+
for w in dist/*.whl; do
|
|
279
|
+
MB=$(( $(stat -c%s "$w" 2>/dev/null || stat -f%z "$w") / 1048576 ))
|
|
280
|
+
printf ' %4d MB %s\n' "$MB" "$(basename "$w")"
|
|
281
|
+
if [ "$MB" -ge "$FAIL_MB" ]; then
|
|
282
|
+
echo "::error::$(basename "$w") is ${MB} MB, at or over the ${FAIL_MB} MB gate (PyPI's limit for ciris-server is 100 MB). Find the growth before tagging — see CIRISServer#378 for how the macOS Skiko duplication was found."
|
|
283
|
+
rc=1
|
|
284
|
+
fi
|
|
285
|
+
done
|
|
286
|
+
exit $rc
|
|
287
|
+
# Two modes, because one leg cross-compiles:
|
|
288
|
+
# native leg → pip-install the wheel and ctypes-load it: EXACTLY the path the
|
|
289
|
+
# agent uses. The faithful check.
|
|
290
|
+
# cross leg → macos-x86_64 builds an x86_64 wheel on an arm64 runner, so pip
|
|
291
|
+
# rightly refuses it ("not a supported wheel on this platform")
|
|
292
|
+
# and ctypes is impossible. Fall back to a static symbol dump of
|
|
293
|
+
# the .so inside the wheel — proves the same thing without
|
|
294
|
+
# executing it. Only macOS takes this branch, and its `nm` reads
|
|
295
|
+
# foreign-arch Mach-O fine (Mach-O underscore-prefixes symbols,
|
|
296
|
+
# hence the substring grep rather than an exact match).
|
|
297
|
+
- name: Verify-FFI fold smoke (CIRISServer#232 — symbols must survive the linker strip)
|
|
298
|
+
shell: bash
|
|
299
|
+
env:
|
|
300
|
+
NEED: >-
|
|
301
|
+
ciris_verify_ffi_link_anchor ciris_verify_jcs_canonicalize
|
|
302
|
+
ciris_verify_self_enc_pubkeys ciris_verify_self_enc_respond
|
|
303
|
+
ciris_verify_wrap_dek_for_recipient ciris_verify_unwrap_dek
|
|
304
|
+
ciris_verify_kex_respond_hybrid_with_public
|
|
305
|
+
ciris_verify_create_federation_identity
|
|
306
|
+
ciris_verify_locale_merkle_root ciris_verify_admit_attestation
|
|
307
|
+
run: |
|
|
308
|
+
set -euo pipefail
|
|
309
|
+
WHL=$(ls dist/*.whl | head -1)
|
|
310
|
+
echo "wheel: $WHL"
|
|
311
|
+
if python -m pip install --force-reinstall --no-deps "$WHL"; then
|
|
312
|
+
python -c "import ctypes,os,ciris_server; p=ciris_server.verify_ffi_path(); print('verify_ffi_path ->',p); lib=ctypes.CDLL(p); need=os.environ['NEED'].split(); missing=[s for s in need if not hasattr(lib,s)]; assert not missing, 'verify FFI symbols MISSING from _native (--gc-sections stripped the fold): %s' % missing; print('OK (ctypes) - verify FFI folded: %d symbols resolvable from the built wheel' % len(need))"
|
|
313
|
+
else
|
|
314
|
+
echo "wheel is cross-compiled for another arch (pip cannot install it here) — using a static symbol dump instead"
|
|
315
|
+
TMP=$(mktemp -d)
|
|
316
|
+
unzip -q "$WHL" -d "$TMP"
|
|
317
|
+
LIB=$(find "$TMP" \( -name '_native*.so' -o -name '_native*.pyd' -o -name '_native*.dylib' \) | head -1)
|
|
318
|
+
test -n "$LIB" || { echo "FATAL: no _native lib found inside the wheel"; exit 1; }
|
|
319
|
+
echo "lib: $LIB"
|
|
320
|
+
# Dump the symbol table to a FILE, then grep the file. Do NOT pipe
|
|
321
|
+
# `echo "$SYMS" | grep -q`: `grep -q` exits the moment it matches, which
|
|
322
|
+
# closes the pipe while `echo` is still writing -> `echo` dies with EPIPE
|
|
323
|
+
# -> and under `set -o pipefail` the PIPELINE then reports failure even
|
|
324
|
+
# though grep FOUND the symbol -> the `||` fires and a PRESENT symbol is
|
|
325
|
+
# reported MISSING. That is a race, so it can false-PASS just as easily as
|
|
326
|
+
# it false-FAILS (it false-FAILED v0.5.108 on ciris_verify_kex_respond_
|
|
327
|
+
# hybrid_with_public, and got lucky on 0.5.107). A gate that lies in both
|
|
328
|
+
# directions is worse than no gate. No pipe = no EPIPE = deterministic.
|
|
329
|
+
SYMFILE=$(mktemp)
|
|
330
|
+
nm -g "$LIB" > "$SYMFILE" 2>/dev/null || llvm-nm -g "$LIB" > "$SYMFILE"
|
|
331
|
+
echo "symbols in _native: $(wc -l < "$SYMFILE")"
|
|
332
|
+
MISSING=""
|
|
333
|
+
for s in $NEED; do grep -q "$s" "$SYMFILE" || MISSING="$MISSING $s"; done
|
|
334
|
+
if [ -n "$MISSING" ]; then echo "verify FFI symbols MISSING from _native (--gc-sections stripped the fold):$MISSING"; exit 1; fi
|
|
335
|
+
echo "OK (nm) - verify FFI folded: all symbols present in the cross-built wheel"
|
|
336
|
+
fi
|
|
337
|
+
# ── FFI symbol INVENTORY, not a spot-check (CIRISServer#378) ────────────
|
|
338
|
+
#
|
|
339
|
+
# The step above names ten symbols. That was sufficient against
|
|
340
|
+
# --gc-sections, which is all-or-nothing on a section. It is NOT sufficient
|
|
341
|
+
# against LTO (`lto = "thin"` since 0.5.166), whose unit of work is the
|
|
342
|
+
# call graph: the realistic failure is PARTIAL — a dozen symbols dropped,
|
|
343
|
+
# the ten famous ones kept, and the gate green.
|
|
344
|
+
#
|
|
345
|
+
# So this asserts the COUNT and every module entry point. Counting is the
|
|
346
|
+
# whole point: it is the only form a partial strip cannot slip past.
|
|
347
|
+
#
|
|
348
|
+
# Runs on EVERY target, cross-built included, because which platform
|
|
349
|
+
# inlines hardest is exactly what you cannot predict — and a symbol that
|
|
350
|
+
# survives on linux tells you nothing about windows.
|
|
351
|
+
- name: FFI symbol inventory (LTO must not drop what only ctypes calls)
|
|
352
|
+
shell: bash
|
|
353
|
+
env:
|
|
354
|
+
MIN_VERIFY_SYMBOLS: 88
|
|
355
|
+
NEED_PYINIT: >-
|
|
356
|
+
PyInit__native PyInit_ciris_persist
|
|
357
|
+
run: |
|
|
358
|
+
set -euo pipefail
|
|
359
|
+
WHL=$(ls dist/*.whl | head -1)
|
|
360
|
+
TMP=$(mktemp -d)
|
|
361
|
+
unzip -q "$WHL" -d "$TMP"
|
|
362
|
+
LIB=$(find "$TMP" \( -name '_native*.so' -o -name '_native*.pyd' -o -name '_native*.dylib' \) | head -1)
|
|
363
|
+
test -n "$LIB" || { echo "::error::no _native lib inside $WHL"; exit 1; }
|
|
364
|
+
SYMFILE=$(mktemp)
|
|
365
|
+
# READ THE DYNAMIC TABLE. `nm -g` reads the STATIC symtab, which the
|
|
366
|
+
# release build strips away — on a stripped ELF it prints "no symbols"
|
|
367
|
+
# and every symbol looks missing. `.dynsym` (nm -D) is what survives a
|
|
368
|
+
# strip AND is the table the dynamic linker and ctypes actually resolve
|
|
369
|
+
# against, so it is both the durable and the CORRECT one to ask.
|
|
370
|
+
#
|
|
371
|
+
# This gate's first version asked `nm -g` and failed the linux wheel at
|
|
372
|
+
# 0 symbols on a wheel that had all 88. Same shape as the source-scan
|
|
373
|
+
# draft before it: a discrepancy invented by the instrument. Twice is a
|
|
374
|
+
# pattern worth naming — when a check reports catastrophe, suspect the
|
|
375
|
+
# check before the code.
|
|
376
|
+
#
|
|
377
|
+
# No pipe into `grep -q` anywhere below: see the EPIPE note on the step
|
|
378
|
+
# above, which false-FAILED a PRESENT symbol on v0.5.108.
|
|
379
|
+
nm -D --defined-only "$LIB" > "$SYMFILE" 2>/dev/null || true
|
|
380
|
+
if [ ! -s "$SYMFILE" ]; then nm -g "$LIB" > "$SYMFILE" 2>/dev/null || true; fi
|
|
381
|
+
if [ ! -s "$SYMFILE" ]; then llvm-nm "$LIB" > "$SYMFILE" 2>/dev/null || true; fi
|
|
382
|
+
TOTAL=$(wc -l < "$SYMFILE" | tr -d ' ')
|
|
383
|
+
# "Could not read the table" and "the table is missing symbols" are
|
|
384
|
+
# DIFFERENT answers and must not share an exit path — the first is a
|
|
385
|
+
# broken instrument, the second is a broken wheel. Collapsing them is
|
|
386
|
+
# how a tooling gap gets shipped as a code defect (and vice versa).
|
|
387
|
+
if [ "$TOTAL" -eq 0 ]; then
|
|
388
|
+
case "$LIB" in
|
|
389
|
+
*.pyd)
|
|
390
|
+
# PE/COFF keeps its exports in the PE export directory, which
|
|
391
|
+
# `nm` cannot read at all — it is not a stripped ELF, it is a
|
|
392
|
+
# format these tools do not parse. Reporting it as a strip would
|
|
393
|
+
# be the instrument inventing a defect again, and failing the
|
|
394
|
+
# build on it would block a wheel that is fine.
|
|
395
|
+
#
|
|
396
|
+
# So this leg is NOT COVERED by the count, and says so out loud
|
|
397
|
+
# rather than printing a green tick. Windows still gets the #232
|
|
398
|
+
# ctypes check in the step above (ten named symbols, really
|
|
399
|
+
# loaded through CPython) — that is real coverage, just not
|
|
400
|
+
# exhaustive. Enumerating PE exports needs dumpbin or objdump,
|
|
401
|
+
# neither reliably on PATH in this step: CIRISServer#388.
|
|
402
|
+
echo "::warning::NOT COVERED on this leg — $(basename "$LIB") is PE/COFF and nm cannot enumerate its exports. The inventory count was SKIPPED here (the #232 ctypes spot-check above still ran). See CIRISServer#388."
|
|
403
|
+
exit 0
|
|
404
|
+
;;
|
|
405
|
+
*)
|
|
406
|
+
echo "::error::no symbol table could be read from $LIB (tried nm -D, nm -g, llvm-nm). This is an INSTRUMENT failure, not evidence about the wheel — do not read it as a strip."
|
|
407
|
+
exit 1
|
|
408
|
+
;;
|
|
409
|
+
esac
|
|
410
|
+
fi
|
|
411
|
+
N=$(grep -c 'ciris_verify_' "$SYMFILE" || true)
|
|
412
|
+
echo " symbol table entries: $TOTAL; ciris_verify_*: $N (floor $MIN_VERIFY_SYMBOLS)"
|
|
413
|
+
if [ "$N" -lt "$MIN_VERIFY_SYMBOLS" ]; then
|
|
414
|
+
echo "::error::$(basename "$WHL") exports $N ciris_verify_* symbols out of a readable $TOTAL-entry table, under the $MIN_VERIFY_SYMBOLS floor. LTO dropped FFI symbols nothing in Rust calls (CIRISServer#232/#378). This wheel imports fine and fails at a ctypes call site — do NOT lower the floor to go green."
|
|
415
|
+
exit 1
|
|
416
|
+
fi
|
|
417
|
+
MISSING=""
|
|
418
|
+
for s in $NEED_PYINIT; do grep -q "$s" "$SYMFILE" || MISSING="$MISSING $s"; done
|
|
419
|
+
if [ -n "$MISSING" ]; then
|
|
420
|
+
echo "::error::module entry point(s) missing from $(basename "$WHL"):$MISSING — CPython resolves these by name at import, and all must live in THIS cdylib for the one-wheel type identity (CIRISServer#4)."
|
|
421
|
+
exit 1
|
|
422
|
+
fi
|
|
423
|
+
echo " OK - inventory intact: $N verify symbols + all $(echo $NEED_PYINIT | wc -w) module entry points"
|
|
424
|
+
- uses: actions/upload-artifact@v4
|
|
425
|
+
with:
|
|
426
|
+
name: wheels-${{ matrix.plat.name }}
|
|
427
|
+
path: dist/*.whl
|
|
428
|
+
if-no-files-found: error
|
|
429
|
+
retention-days: 1
|
|
430
|
+
# Populate the cross-repo CIRISCache blob on main under the SERVER key
|
|
431
|
+
# (restore is anonymous on PRs; only main writes — public package,
|
|
432
|
+
# GITHUB_TOKEN, no external secret).
|
|
433
|
+
- name: CIRISCache save (server layer, main only)
|
|
434
|
+
uses: CIRISAI/CIRISCache/save@v1
|
|
435
|
+
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
|
|
436
|
+
continue-on-error: true
|
|
437
|
+
with:
|
|
438
|
+
key: ${{ steps.cachekey.outputs.key }}
|
|
439
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
440
|
+
|
|
441
|
+
macos:
|
|
442
|
+
name: wheel macos-${{ matrix.target }}
|
|
443
|
+
runs-on: macos-15
|
|
444
|
+
# KNOWN LIMITATION (macos x86_64 leg): the macos-15 runner is Apple Silicon,
|
|
445
|
+
# so `packageUberJarForCurrentOS` produces the arm64 macOS JAR for BOTH
|
|
446
|
+
# matrix legs. The x86_64 *wheel* (the Rust .so) is a proper cross-compile,
|
|
447
|
+
# but it carries the arm64 desktop JAR. Compose JARs are not single-arch JVM
|
|
448
|
+
# bytecode for the app classes, but the Compose/Skiko *native* libs inside
|
|
449
|
+
# are per-arch — so an Intel-mac user installing the x86_64 wheel may hit a
|
|
450
|
+
# Skiko load error. To ship a true Intel JAR, add a macos-13 (Intel) runner
|
|
451
|
+
# leg, or `gradlew packageUberJarForCurrentOS` under an x86_64 JDK. Left as a
|
|
452
|
+
# follow-up; arm64 (the common case) is correct.
|
|
453
|
+
strategy:
|
|
454
|
+
fail-fast: false
|
|
455
|
+
matrix:
|
|
456
|
+
target: [aarch64, x86_64]
|
|
457
|
+
steps:
|
|
458
|
+
- uses: actions/checkout@v4
|
|
459
|
+
- uses: actions/setup-python@v5
|
|
460
|
+
with:
|
|
461
|
+
python-version: "3.12"
|
|
462
|
+
- name: Compute CIRISCache keys (4-layer centipede, CIRISServer#99)
|
|
463
|
+
id: cachekey
|
|
464
|
+
shell: bash
|
|
465
|
+
run: |
|
|
466
|
+
PLAT="macos-${{ matrix.target }}"
|
|
467
|
+
RUSTC=$(rustc -V | awk '{print $2}')
|
|
468
|
+
S=$(grep -m1 '^version = ' Cargo.toml | sed -E 's/^version = "([^"]+)".*/\1/')
|
|
469
|
+
# Tag- or rev-pinned, like edge: a grep matching nothing must not fail the step.
|
|
470
|
+
P=$(grep -m1 'CIRISPersist.*tag = "v' Cargo.toml | sed -E 's/.*tag = "v([0-9.]+)".*/\1/' || true)
|
|
471
|
+
if [ -z "$P" ]; then
|
|
472
|
+
P=$(grep -m1 'CIRISPersist.*rev = "' Cargo.toml | sed -E 's/.*rev = "([0-9a-f]+)".*/r\1/' || true)
|
|
473
|
+
fi
|
|
474
|
+
V=$(grep -m1 'CIRISVerify.*tag = "v' Cargo.toml | sed -E 's/.*tag = "v([0-9.]+)".*/\1/')
|
|
475
|
+
# tag-pin OR rev-pin (an adoption branch rides a rev until upstream tags —
|
|
476
|
+
# a grep matching nothing must not kill the step: the 0.5.181 lesson).
|
|
477
|
+
EDGE=$(grep -m1 'CIRISEdge.*tag = "v' Cargo.toml | sed -E 's/.*tag = "v([0-9.]+)".*/\1/' || true)
|
|
478
|
+
if [ -z "$EDGE" ]; then
|
|
479
|
+
EDGE=$(grep -m1 'CIRISEdge.*rev = "' Cargo.toml | sed -E 's/.*rev = "([0-9a-f]+)".*/r\1/' || true)
|
|
480
|
+
fi
|
|
481
|
+
BASE="ciris-substrate-v1-${PLAT}-release-rustc${RUSTC}"
|
|
482
|
+
KEY_VERIFY="${BASE}-pnone-enone-v${V:-none}"
|
|
483
|
+
KEY_PERSIST="${BASE}-p${P:-none}-enone-v${V:-none}"
|
|
484
|
+
KEY_EDGE="${BASE}-p${P:-none}-e${EDGE:-none}-v${V:-none}"
|
|
485
|
+
KEY_SERVER="${BASE}-p${P:-none}-e${EDGE:-none}-v${V:-none}-s${S:-none}"
|
|
486
|
+
{
|
|
487
|
+
echo "key-verify=${KEY_VERIFY}"
|
|
488
|
+
echo "key-persist=${KEY_PERSIST}"
|
|
489
|
+
echo "key-edge=${KEY_EDGE}"
|
|
490
|
+
echo "key=${KEY_SERVER}"
|
|
491
|
+
echo "key-server-prefix=${BASE}-p${P:-none}-e${EDGE:-none}-v${V:-none}-s"
|
|
492
|
+
echo "key-any=${BASE}-p" # CIRISServer#99 rolling substrate-head: newest prior build for this PLAT+rustc — restored ONLY on a full substrate-pin miss so a version bump recompiles the DELTA, not cold
|
|
493
|
+
} >> "$GITHUB_OUTPUT"
|
|
494
|
+
echo "::notice::CIRISCache (${PLAT}): S=${S:-NONE} P=${P:-NONE} V=${V:-NONE} EDGE=${EDGE:-NONE} RUSTC=${RUSTC}"
|
|
495
|
+
echo "::notice::${KEY_VERIFY}"
|
|
496
|
+
echo "::notice::${KEY_PERSIST}"
|
|
497
|
+
echo "::notice::${KEY_EDGE}"
|
|
498
|
+
echo "::notice::${KEY_SERVER}"
|
|
499
|
+
# Deepest-first, first-hit-wins (CIRISCache restore@v2): one extraction of
|
|
500
|
+
# the deepest available blob (cumulative supersets) instead of N redundant.
|
|
501
|
+
- name: CIRISCache restore (server→edge→persist→verify, first hit)
|
|
502
|
+
uses: CIRISAI/CIRISCache/restore@v2
|
|
503
|
+
continue-on-error: true
|
|
504
|
+
with:
|
|
505
|
+
keys: |
|
|
506
|
+
${{ steps.cachekey.outputs.key }}
|
|
507
|
+
${{ steps.cachekey.outputs.key-server-prefix }}*
|
|
508
|
+
${{ steps.cachekey.outputs.key-edge }}
|
|
509
|
+
${{ steps.cachekey.outputs.key-persist }}
|
|
510
|
+
${{ steps.cachekey.outputs.key-verify }}
|
|
511
|
+
${{ steps.cachekey.outputs.key-any }}*
|
|
512
|
+
- name: Build wheel (maturin)
|
|
513
|
+
uses: PyO3/maturin-action@v1
|
|
514
|
+
# THE SAME INJECTION THE run:-STYLE LEGS HAVE (CIRISServer#387). These legs
|
|
515
|
+
# build their wheel through the ACTION rather than a `maturin build` run
|
|
516
|
+
# step, and that difference alone is why they never received the
|
|
517
|
+
# credential: the original fix, and the gate written to enforce it, both
|
|
518
|
+
# keyed on the literal string `maturin build --release`. Two spellings of
|
|
519
|
+
# "build a wheel", one of them invisible to every check — so macOS and
|
|
520
|
+
# Windows shipped with no built-in Google even on direct runs, while linux
|
|
521
|
+
# and android were fine. A per-platform difference nobody would look for.
|
|
522
|
+
#
|
|
523
|
+
# option_env! reads the COMPILE-TIME environment, so these belong on the
|
|
524
|
+
# step that compiles — not the job, not a later step.
|
|
525
|
+
env:
|
|
526
|
+
CIRIS_DESKTOP_GOOGLE_OAUTH_CLIENT_ID: ${{ secrets.CIRIS_DESKTOP_GOOGLE_OAUTH_CLIENT_ID }}
|
|
527
|
+
CIRIS_DESKTOP_GOOGLE_OAUTH_CLIENT_SECRET: ${{ secrets.CIRIS_DESKTOP_GOOGLE_OAUTH_CLIENT_SECRET }}
|
|
528
|
+
CIRIS_MOBILE_GOOGLE_OAUTH_CLIENT_ID: ${{ secrets.CIRIS_MOBILE_GOOGLE_OAUTH_CLIENT_ID }}
|
|
529
|
+
CIRIS_MOBILE_GOOGLE_OAUTH_CLIENT_SECRET: ${{ secrets.CIRIS_MOBILE_GOOGLE_OAUTH_CLIENT_SECRET }}
|
|
530
|
+
with:
|
|
531
|
+
target: ${{ matrix.target }}
|
|
532
|
+
rust-toolchain: "1.97.0"
|
|
533
|
+
args: --release --strip --out dist
|
|
534
|
+
# maturin-action's built-in compiler cache (sccache over the GHA cache
|
|
535
|
+
# backend), written by the substrate repos' own CI, and by this workflow's own tag run — formerly also by
|
|
536
|
+
# workflow. Restores main-scoped sccache objects on a tag publish.
|
|
537
|
+
sccache: true
|
|
538
|
+
# ── Verify-FFI fold smoke (CIRISServer#232) ─────────────────────────────
|
|
539
|
+
# We fold ciris-verify-ffi (rlib) into _native, but NOTHING in our Rust calls
|
|
540
|
+
# its #[no_mangle] fns (the agent reaches them via ctypes at runtime), so
|
|
541
|
+
# --gc-sections would happily dead-strip all ~84 ciris_verify_* symbols —
|
|
542
|
+
# PER-PLATFORM-SILENTLY. Assert the surface actually survived into the wheel.
|
|
543
|
+
#
|
|
544
|
+
# ── Wheel size gate (CIRISServer#378) ────────────────────────────────
|
|
545
|
+
# PyPI enforces a per-project file limit (100 MB for `ciris-server`) at
|
|
546
|
+
# UPLOAD — the last step of a tag run, after every wheel has built and the
|
|
547
|
+
# conformance gate has passed. v0.5.157 died there: macosx_10_12_x86_64 at
|
|
548
|
+
# 100.4 MB, rejected, with the Linux/Android wheels already published.
|
|
549
|
+
#
|
|
550
|
+
# Nothing measured the wheel until PyPI did. The belief going in was that
|
|
551
|
+
# we had ~20 MB of headroom; the real figure at v0.5.155 was 2.2 MB, and
|
|
552
|
+
# the wheel had been creeping ~1 MB a release for four cuts.
|
|
553
|
+
#
|
|
554
|
+
# FAIL_MB sits just below PyPI's limit so the failure lands HERE, on the
|
|
555
|
+
# build with the artifact in hand, rather than at the last step of a
|
|
556
|
+
# publish — but only when rejection is actually imminent.
|
|
557
|
+
#
|
|
558
|
+
# It was 94 on the first pass, chosen before anyone had measured: linux is
|
|
559
|
+
# 97 and windows 98, both of which publish fine, so the gate blocked a cut
|
|
560
|
+
# that was not at risk. A gate that cries wolf gets raised or deleted by
|
|
561
|
+
# whoever is holding a broken release at 2am, and then it is not there for
|
|
562
|
+
# the case it was built for.
|
|
563
|
+
#
|
|
564
|
+
# 100 MB is arbitrary but USEFUL — it is the only forcing function against
|
|
565
|
+
# a wheel that grows ~1 MB a release forever. The right answer to this
|
|
566
|
+
# gate firing is to find the growth (v0.5.157: 19.8 MB of Skiko nobody
|
|
567
|
+
# loads), never to raise the number.
|
|
568
|
+
# ── The credential is IN THE ARTIFACT, not merely in the YAML (#387) ───
|
|
569
|
+
#
|
|
570
|
+
# 0.5.165 and 0.5.166 both shipped nine wheels with no built-in Google.
|
|
571
|
+
# The injection was present in this file the whole time; publish-pypi.yml
|
|
572
|
+
# called this workflow WITHOUT `secrets: inherit`, so every
|
|
573
|
+
# `${{ secrets.* }}` here resolved to the empty string — no warning, no
|
|
574
|
+
# failure, just a blank. option_env! then baked nothing, and
|
|
575
|
+
# ProviderConfigStore's both-halves-or-nothing rule left the store empty.
|
|
576
|
+
#
|
|
577
|
+
# The gate that was supposed to prevent this asserted the YAML instead:
|
|
578
|
+
# it read a HARDCODED list of the two files already known to be fixed and
|
|
579
|
+
# confirmed they were still fixed. It could not discover a caller that
|
|
580
|
+
# dropped the secrets, because it never asked about callers at all.
|
|
581
|
+
#
|
|
582
|
+
# So this asks the only question that cannot be answered by intent: is the
|
|
583
|
+
# client id actually inside the binary we are about to publish. On tags
|
|
584
|
+
# only, because that is the path where the secrets MUST be present — on a
|
|
585
|
+
# fork PR they legitimately are not, and failing there would be noise.
|
|
586
|
+
- name: Built-in OAuth credential is present in the wheel (tags only)
|
|
587
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
588
|
+
shell: bash
|
|
589
|
+
run: |
|
|
590
|
+
set -euo pipefail
|
|
591
|
+
WHL=$(ls dist/*.whl | head -1)
|
|
592
|
+
TMP=$(mktemp -d)
|
|
593
|
+
unzip -q "$WHL" -d "$TMP"
|
|
594
|
+
LIB=$(find "$TMP" \( -name '_native*.so' -o -name '_native*.pyd' -o -name '_native*.dylib' \) | head -1)
|
|
595
|
+
test -n "$LIB" || { echo "::error::no _native lib inside $WHL"; exit 1; }
|
|
596
|
+
# Match the SHAPE, never the value: a Google desktop client id ends in
|
|
597
|
+
# .apps.googleusercontent.com. Grepping for the literal id would put a
|
|
598
|
+
# credential in a public workflow file and in every log line.
|
|
599
|
+
# NO PIPE INTO `grep -q`. This is the EPIPE trap the #232 step above
|
|
600
|
+
# documents, and it bit here on the very first tag: `grep -q` exits
|
|
601
|
+
# the moment it matches, closing the pipe while `strings` is still
|
|
602
|
+
# writing; `strings` dies with EPIPE; and under `set -o pipefail` the
|
|
603
|
+
# PIPELINE reports failure — so a wheel that DOES carry the credential
|
|
604
|
+
# is reported as missing it. macOS's strings is strict about the
|
|
605
|
+
# flush, GNU's is not, so it false-failed macOS only while linux
|
|
606
|
+
# passed: a per-platform lie from a gate written to catch a
|
|
607
|
+
# per-platform lie. Dump to a file, then grep the file.
|
|
608
|
+
SFILE=$(mktemp)
|
|
609
|
+
strings "$LIB" > "$SFILE" 2>/dev/null || true
|
|
610
|
+
if [ ! -s "$SFILE" ]; then
|
|
611
|
+
echo "::error::strings produced no output for $LIB — INSTRUMENT failure, not evidence about the wheel."
|
|
612
|
+
exit 1
|
|
613
|
+
fi
|
|
614
|
+
if grep -q 'apps\.googleusercontent\.com' "$SFILE"; then
|
|
615
|
+
echo " OK - a built-in Google client id is compiled into $(basename "$WHL")"
|
|
616
|
+
else
|
|
617
|
+
echo "::error::$(basename "$WHL") has NO built-in Google client id. The secrets did not reach the build — check that every caller of build-wheels.yml passes 'secrets: inherit' (CIRISServer#387). This wheel would offer a Google button that cannot work."
|
|
618
|
+
exit 1
|
|
619
|
+
fi
|
|
620
|
+
- name: Wheel size gate
|
|
621
|
+
shell: bash
|
|
622
|
+
run: |
|
|
623
|
+
FAIL_MB=99
|
|
624
|
+
rc=0
|
|
625
|
+
for w in dist/*.whl; do
|
|
626
|
+
MB=$(( $(stat -c%s "$w" 2>/dev/null || stat -f%z "$w") / 1048576 ))
|
|
627
|
+
printf ' %4d MB %s\n' "$MB" "$(basename "$w")"
|
|
628
|
+
if [ "$MB" -ge "$FAIL_MB" ]; then
|
|
629
|
+
echo "::error::$(basename "$w") is ${MB} MB, at or over the ${FAIL_MB} MB gate (PyPI's limit for ciris-server is 100 MB). Find the growth before tagging — see CIRISServer#378 for how the macOS Skiko duplication was found."
|
|
630
|
+
rc=1
|
|
631
|
+
fi
|
|
632
|
+
done
|
|
633
|
+
exit $rc
|
|
634
|
+
# Two modes, because one leg cross-compiles:
|
|
635
|
+
# native leg → pip-install the wheel and ctypes-load it: EXACTLY the path the
|
|
636
|
+
# agent uses. The faithful check.
|
|
637
|
+
# cross leg → macos-x86_64 builds an x86_64 wheel on an arm64 runner, so pip
|
|
638
|
+
# rightly refuses it ("not a supported wheel on this platform")
|
|
639
|
+
# and ctypes is impossible. Fall back to a static symbol dump of
|
|
640
|
+
# the .so inside the wheel — proves the same thing without
|
|
641
|
+
# executing it. Only macOS takes this branch, and its `nm` reads
|
|
642
|
+
# foreign-arch Mach-O fine (Mach-O underscore-prefixes symbols,
|
|
643
|
+
# hence the substring grep rather than an exact match).
|
|
644
|
+
- name: Verify-FFI fold smoke (CIRISServer#232 — symbols must survive the linker strip)
|
|
645
|
+
shell: bash
|
|
646
|
+
env:
|
|
647
|
+
NEED: >-
|
|
648
|
+
ciris_verify_ffi_link_anchor ciris_verify_jcs_canonicalize
|
|
649
|
+
ciris_verify_self_enc_pubkeys ciris_verify_self_enc_respond
|
|
650
|
+
ciris_verify_wrap_dek_for_recipient ciris_verify_unwrap_dek
|
|
651
|
+
ciris_verify_kex_respond_hybrid_with_public
|
|
652
|
+
ciris_verify_create_federation_identity
|
|
653
|
+
ciris_verify_locale_merkle_root ciris_verify_admit_attestation
|
|
654
|
+
run: |
|
|
655
|
+
set -euo pipefail
|
|
656
|
+
WHL=$(ls dist/*.whl | head -1)
|
|
657
|
+
echo "wheel: $WHL"
|
|
658
|
+
if python -m pip install --force-reinstall --no-deps "$WHL"; then
|
|
659
|
+
python -c "import ctypes,os,ciris_server; p=ciris_server.verify_ffi_path(); print('verify_ffi_path ->',p); lib=ctypes.CDLL(p); need=os.environ['NEED'].split(); missing=[s for s in need if not hasattr(lib,s)]; assert not missing, 'verify FFI symbols MISSING from _native (--gc-sections stripped the fold): %s' % missing; print('OK (ctypes) - verify FFI folded: %d symbols resolvable from the built wheel' % len(need))"
|
|
660
|
+
else
|
|
661
|
+
echo "wheel is cross-compiled for another arch (pip cannot install it here) — using a static symbol dump instead"
|
|
662
|
+
TMP=$(mktemp -d)
|
|
663
|
+
unzip -q "$WHL" -d "$TMP"
|
|
664
|
+
LIB=$(find "$TMP" \( -name '_native*.so' -o -name '_native*.pyd' -o -name '_native*.dylib' \) | head -1)
|
|
665
|
+
test -n "$LIB" || { echo "FATAL: no _native lib found inside the wheel"; exit 1; }
|
|
666
|
+
echo "lib: $LIB"
|
|
667
|
+
# Dump the symbol table to a FILE, then grep the file. Do NOT pipe
|
|
668
|
+
# `echo "$SYMS" | grep -q`: `grep -q` exits the moment it matches, which
|
|
669
|
+
# closes the pipe while `echo` is still writing -> `echo` dies with EPIPE
|
|
670
|
+
# -> and under `set -o pipefail` the PIPELINE then reports failure even
|
|
671
|
+
# though grep FOUND the symbol -> the `||` fires and a PRESENT symbol is
|
|
672
|
+
# reported MISSING. That is a race, so it can false-PASS just as easily as
|
|
673
|
+
# it false-FAILS (it false-FAILED v0.5.108 on ciris_verify_kex_respond_
|
|
674
|
+
# hybrid_with_public, and got lucky on 0.5.107). A gate that lies in both
|
|
675
|
+
# directions is worse than no gate. No pipe = no EPIPE = deterministic.
|
|
676
|
+
SYMFILE=$(mktemp)
|
|
677
|
+
nm -g "$LIB" > "$SYMFILE" 2>/dev/null || llvm-nm -g "$LIB" > "$SYMFILE"
|
|
678
|
+
echo "symbols in _native: $(wc -l < "$SYMFILE")"
|
|
679
|
+
MISSING=""
|
|
680
|
+
for s in $NEED; do grep -q "$s" "$SYMFILE" || MISSING="$MISSING $s"; done
|
|
681
|
+
if [ -n "$MISSING" ]; then echo "verify FFI symbols MISSING from _native (--gc-sections stripped the fold):$MISSING"; exit 1; fi
|
|
682
|
+
echo "OK (nm) - verify FFI folded: all symbols present in the cross-built wheel"
|
|
683
|
+
fi
|
|
684
|
+
# ── FFI symbol INVENTORY, not a spot-check (CIRISServer#378) ────────────
|
|
685
|
+
#
|
|
686
|
+
# The step above names ten symbols. That was sufficient against
|
|
687
|
+
# --gc-sections, which is all-or-nothing on a section. It is NOT sufficient
|
|
688
|
+
# against LTO (`lto = "thin"` since 0.5.166), whose unit of work is the
|
|
689
|
+
# call graph: the realistic failure is PARTIAL — a dozen symbols dropped,
|
|
690
|
+
# the ten famous ones kept, and the gate green.
|
|
691
|
+
#
|
|
692
|
+
# So this asserts the COUNT and every module entry point. Counting is the
|
|
693
|
+
# whole point: it is the only form a partial strip cannot slip past.
|
|
694
|
+
#
|
|
695
|
+
# Runs on EVERY target, cross-built included, because which platform
|
|
696
|
+
# inlines hardest is exactly what you cannot predict — and a symbol that
|
|
697
|
+
# survives on linux tells you nothing about windows.
|
|
698
|
+
- name: FFI symbol inventory (LTO must not drop what only ctypes calls)
|
|
699
|
+
shell: bash
|
|
700
|
+
env:
|
|
701
|
+
MIN_VERIFY_SYMBOLS: 88
|
|
702
|
+
NEED_PYINIT: >-
|
|
703
|
+
PyInit__native PyInit_ciris_persist
|
|
704
|
+
run: |
|
|
705
|
+
set -euo pipefail
|
|
706
|
+
WHL=$(ls dist/*.whl | head -1)
|
|
707
|
+
TMP=$(mktemp -d)
|
|
708
|
+
unzip -q "$WHL" -d "$TMP"
|
|
709
|
+
LIB=$(find "$TMP" \( -name '_native*.so' -o -name '_native*.pyd' -o -name '_native*.dylib' \) | head -1)
|
|
710
|
+
test -n "$LIB" || { echo "::error::no _native lib inside $WHL"; exit 1; }
|
|
711
|
+
SYMFILE=$(mktemp)
|
|
712
|
+
# READ THE DYNAMIC TABLE. `nm -g` reads the STATIC symtab, which the
|
|
713
|
+
# release build strips away — on a stripped ELF it prints "no symbols"
|
|
714
|
+
# and every symbol looks missing. `.dynsym` (nm -D) is what survives a
|
|
715
|
+
# strip AND is the table the dynamic linker and ctypes actually resolve
|
|
716
|
+
# against, so it is both the durable and the CORRECT one to ask.
|
|
717
|
+
#
|
|
718
|
+
# This gate's first version asked `nm -g` and failed the linux wheel at
|
|
719
|
+
# 0 symbols on a wheel that had all 88. Same shape as the source-scan
|
|
720
|
+
# draft before it: a discrepancy invented by the instrument. Twice is a
|
|
721
|
+
# pattern worth naming — when a check reports catastrophe, suspect the
|
|
722
|
+
# check before the code.
|
|
723
|
+
#
|
|
724
|
+
# No pipe into `grep -q` anywhere below: see the EPIPE note on the step
|
|
725
|
+
# above, which false-FAILED a PRESENT symbol on v0.5.108.
|
|
726
|
+
nm -D --defined-only "$LIB" > "$SYMFILE" 2>/dev/null || true
|
|
727
|
+
if [ ! -s "$SYMFILE" ]; then nm -g "$LIB" > "$SYMFILE" 2>/dev/null || true; fi
|
|
728
|
+
if [ ! -s "$SYMFILE" ]; then llvm-nm "$LIB" > "$SYMFILE" 2>/dev/null || true; fi
|
|
729
|
+
TOTAL=$(wc -l < "$SYMFILE" | tr -d ' ')
|
|
730
|
+
# "Could not read the table" and "the table is missing symbols" are
|
|
731
|
+
# DIFFERENT answers and must not share an exit path — the first is a
|
|
732
|
+
# broken instrument, the second is a broken wheel. Collapsing them is
|
|
733
|
+
# how a tooling gap gets shipped as a code defect (and vice versa).
|
|
734
|
+
if [ "$TOTAL" -eq 0 ]; then
|
|
735
|
+
case "$LIB" in
|
|
736
|
+
*.pyd)
|
|
737
|
+
# PE/COFF keeps its exports in the PE export directory, which
|
|
738
|
+
# `nm` cannot read at all — it is not a stripped ELF, it is a
|
|
739
|
+
# format these tools do not parse. Reporting it as a strip would
|
|
740
|
+
# be the instrument inventing a defect again, and failing the
|
|
741
|
+
# build on it would block a wheel that is fine.
|
|
742
|
+
#
|
|
743
|
+
# So this leg is NOT COVERED by the count, and says so out loud
|
|
744
|
+
# rather than printing a green tick. Windows still gets the #232
|
|
745
|
+
# ctypes check in the step above (ten named symbols, really
|
|
746
|
+
# loaded through CPython) — that is real coverage, just not
|
|
747
|
+
# exhaustive. Enumerating PE exports needs dumpbin or objdump,
|
|
748
|
+
# neither reliably on PATH in this step: CIRISServer#388.
|
|
749
|
+
echo "::warning::NOT COVERED on this leg — $(basename "$LIB") is PE/COFF and nm cannot enumerate its exports. The inventory count was SKIPPED here (the #232 ctypes spot-check above still ran). See CIRISServer#388."
|
|
750
|
+
exit 0
|
|
751
|
+
;;
|
|
752
|
+
*)
|
|
753
|
+
echo "::error::no symbol table could be read from $LIB (tried nm -D, nm -g, llvm-nm). This is an INSTRUMENT failure, not evidence about the wheel — do not read it as a strip."
|
|
754
|
+
exit 1
|
|
755
|
+
;;
|
|
756
|
+
esac
|
|
757
|
+
fi
|
|
758
|
+
N=$(grep -c 'ciris_verify_' "$SYMFILE" || true)
|
|
759
|
+
echo " symbol table entries: $TOTAL; ciris_verify_*: $N (floor $MIN_VERIFY_SYMBOLS)"
|
|
760
|
+
if [ "$N" -lt "$MIN_VERIFY_SYMBOLS" ]; then
|
|
761
|
+
echo "::error::$(basename "$WHL") exports $N ciris_verify_* symbols out of a readable $TOTAL-entry table, under the $MIN_VERIFY_SYMBOLS floor. LTO dropped FFI symbols nothing in Rust calls (CIRISServer#232/#378). This wheel imports fine and fails at a ctypes call site — do NOT lower the floor to go green."
|
|
762
|
+
exit 1
|
|
763
|
+
fi
|
|
764
|
+
MISSING=""
|
|
765
|
+
for s in $NEED_PYINIT; do grep -q "$s" "$SYMFILE" || MISSING="$MISSING $s"; done
|
|
766
|
+
if [ -n "$MISSING" ]; then
|
|
767
|
+
echo "::error::module entry point(s) missing from $(basename "$WHL"):$MISSING — CPython resolves these by name at import, and all must live in THIS cdylib for the one-wheel type identity (CIRISServer#4)."
|
|
768
|
+
exit 1
|
|
769
|
+
fi
|
|
770
|
+
echo " OK - inventory intact: $N verify symbols + all $(echo $NEED_PYINIT | wc -w) module entry points"
|
|
771
|
+
- uses: actions/upload-artifact@v4
|
|
772
|
+
with:
|
|
773
|
+
name: wheels-macos-${{ matrix.target }}
|
|
774
|
+
path: dist/*.whl
|
|
775
|
+
if-no-files-found: error
|
|
776
|
+
retention-days: 1
|
|
777
|
+
# Populate the cross-repo CIRISCache blob on main under the SERVER key.
|
|
778
|
+
- name: CIRISCache save (server layer, main only)
|
|
779
|
+
uses: CIRISAI/CIRISCache/save@v1
|
|
780
|
+
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
|
|
781
|
+
continue-on-error: true
|
|
782
|
+
with:
|
|
783
|
+
key: ${{ steps.cachekey.outputs.key }}
|
|
784
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
785
|
+
|
|
786
|
+
windows:
|
|
787
|
+
name: wheel windows-x64
|
|
788
|
+
runs-on: windows-latest
|
|
789
|
+
# The family's Windows wheel has historically failed on persist's Unix-only
|
|
790
|
+
# paths (CIRISPersist#200 / CIRISEdge#90). Don't block the release on it;
|
|
791
|
+
# publish whatever platforms succeed. Remove continue-on-error once green.
|
|
792
|
+
continue-on-error: true
|
|
793
|
+
steps:
|
|
794
|
+
- uses: actions/checkout@v4
|
|
795
|
+
- uses: actions/setup-python@v5
|
|
796
|
+
with:
|
|
797
|
+
python-version: "3.12"
|
|
798
|
+
- name: Compute CIRISCache keys (4-layer centipede, CIRISServer#99)
|
|
799
|
+
id: cachekey
|
|
800
|
+
shell: bash
|
|
801
|
+
run: |
|
|
802
|
+
PLAT="windows-x64"
|
|
803
|
+
RUSTC=$(rustc -V | awk '{print $2}')
|
|
804
|
+
S=$(grep -m1 '^version = ' Cargo.toml | sed -E 's/^version = "([^"]+)".*/\1/')
|
|
805
|
+
# Tag- or rev-pinned, like edge: a grep matching nothing must not fail the step.
|
|
806
|
+
P=$(grep -m1 'CIRISPersist.*tag = "v' Cargo.toml | sed -E 's/.*tag = "v([0-9.]+)".*/\1/' || true)
|
|
807
|
+
if [ -z "$P" ]; then
|
|
808
|
+
P=$(grep -m1 'CIRISPersist.*rev = "' Cargo.toml | sed -E 's/.*rev = "([0-9a-f]+)".*/r\1/' || true)
|
|
809
|
+
fi
|
|
810
|
+
V=$(grep -m1 'CIRISVerify.*tag = "v' Cargo.toml | sed -E 's/.*tag = "v([0-9.]+)".*/\1/')
|
|
811
|
+
# tag-pin OR rev-pin (an adoption branch rides a rev until upstream tags —
|
|
812
|
+
# a grep matching nothing must not kill the step: the 0.5.181 lesson).
|
|
813
|
+
EDGE=$(grep -m1 'CIRISEdge.*tag = "v' Cargo.toml | sed -E 's/.*tag = "v([0-9.]+)".*/\1/' || true)
|
|
814
|
+
if [ -z "$EDGE" ]; then
|
|
815
|
+
EDGE=$(grep -m1 'CIRISEdge.*rev = "' Cargo.toml | sed -E 's/.*rev = "([0-9a-f]+)".*/r\1/' || true)
|
|
816
|
+
fi
|
|
817
|
+
BASE="ciris-substrate-v1-${PLAT}-release-rustc${RUSTC}"
|
|
818
|
+
KEY_VERIFY="${BASE}-pnone-enone-v${V:-none}"
|
|
819
|
+
KEY_PERSIST="${BASE}-p${P:-none}-enone-v${V:-none}"
|
|
820
|
+
KEY_EDGE="${BASE}-p${P:-none}-e${EDGE:-none}-v${V:-none}"
|
|
821
|
+
KEY_SERVER="${BASE}-p${P:-none}-e${EDGE:-none}-v${V:-none}-s${S:-none}"
|
|
822
|
+
{
|
|
823
|
+
echo "key-verify=${KEY_VERIFY}"
|
|
824
|
+
echo "key-persist=${KEY_PERSIST}"
|
|
825
|
+
echo "key-edge=${KEY_EDGE}"
|
|
826
|
+
echo "key=${KEY_SERVER}"
|
|
827
|
+
echo "key-server-prefix=${BASE}-p${P:-none}-e${EDGE:-none}-v${V:-none}-s"
|
|
828
|
+
echo "key-any=${BASE}-p" # CIRISServer#99 rolling substrate-head: newest prior build for this PLAT+rustc — restored ONLY on a full substrate-pin miss so a version bump recompiles the DELTA, not cold
|
|
829
|
+
} >> "$GITHUB_OUTPUT"
|
|
830
|
+
echo "::notice::CIRISCache (${PLAT}): S=${S:-NONE} P=${P:-NONE} V=${V:-NONE} EDGE=${EDGE:-NONE} RUSTC=${RUSTC}"
|
|
831
|
+
echo "::notice::${KEY_VERIFY}"
|
|
832
|
+
echo "::notice::${KEY_PERSIST}"
|
|
833
|
+
echo "::notice::${KEY_EDGE}"
|
|
834
|
+
echo "::notice::${KEY_SERVER}"
|
|
835
|
+
# Deepest-first, first-hit-wins (CIRISCache restore@v2): one extraction of
|
|
836
|
+
# the deepest available blob (cumulative supersets) instead of N redundant.
|
|
837
|
+
- name: CIRISCache restore (server→edge→persist→verify, first hit)
|
|
838
|
+
uses: CIRISAI/CIRISCache/restore@v2
|
|
839
|
+
continue-on-error: true
|
|
840
|
+
with:
|
|
841
|
+
keys: |
|
|
842
|
+
${{ steps.cachekey.outputs.key }}
|
|
843
|
+
${{ steps.cachekey.outputs.key-server-prefix }}*
|
|
844
|
+
${{ steps.cachekey.outputs.key-edge }}
|
|
845
|
+
${{ steps.cachekey.outputs.key-persist }}
|
|
846
|
+
${{ steps.cachekey.outputs.key-verify }}
|
|
847
|
+
${{ steps.cachekey.outputs.key-any }}*
|
|
848
|
+
- name: Build wheel (maturin)
|
|
849
|
+
uses: PyO3/maturin-action@v1
|
|
850
|
+
# THE SAME INJECTION THE run:-STYLE LEGS HAVE (CIRISServer#387). These legs
|
|
851
|
+
# build their wheel through the ACTION rather than a `maturin build` run
|
|
852
|
+
# step, and that difference alone is why they never received the
|
|
853
|
+
# credential: the original fix, and the gate written to enforce it, both
|
|
854
|
+
# keyed on the literal string `maturin build --release`. Two spellings of
|
|
855
|
+
# "build a wheel", one of them invisible to every check — so macOS and
|
|
856
|
+
# Windows shipped with no built-in Google even on direct runs, while linux
|
|
857
|
+
# and android were fine. A per-platform difference nobody would look for.
|
|
858
|
+
#
|
|
859
|
+
# option_env! reads the COMPILE-TIME environment, so these belong on the
|
|
860
|
+
# step that compiles — not the job, not a later step.
|
|
861
|
+
env:
|
|
862
|
+
CIRIS_DESKTOP_GOOGLE_OAUTH_CLIENT_ID: ${{ secrets.CIRIS_DESKTOP_GOOGLE_OAUTH_CLIENT_ID }}
|
|
863
|
+
CIRIS_DESKTOP_GOOGLE_OAUTH_CLIENT_SECRET: ${{ secrets.CIRIS_DESKTOP_GOOGLE_OAUTH_CLIENT_SECRET }}
|
|
864
|
+
CIRIS_MOBILE_GOOGLE_OAUTH_CLIENT_ID: ${{ secrets.CIRIS_MOBILE_GOOGLE_OAUTH_CLIENT_ID }}
|
|
865
|
+
CIRIS_MOBILE_GOOGLE_OAUTH_CLIENT_SECRET: ${{ secrets.CIRIS_MOBILE_GOOGLE_OAUTH_CLIENT_SECRET }}
|
|
866
|
+
with:
|
|
867
|
+
target: x64
|
|
868
|
+
rust-toolchain: "1.97.0"
|
|
869
|
+
args: --release --strip --out dist
|
|
870
|
+
# Compiler cache (sccache over the GHA backend), warmed on main via
|
|
871
|
+
# the substrate repos' own CI. Restore-on-tag; harmless otherwise.
|
|
872
|
+
sccache: true
|
|
873
|
+
# ── Verify-FFI fold smoke (CIRISServer#232) ─────────────────────────────
|
|
874
|
+
# We fold ciris-verify-ffi (rlib) into _native, but NOTHING in our Rust calls
|
|
875
|
+
# its #[no_mangle] fns (the agent reaches them via ctypes at runtime), so
|
|
876
|
+
# --gc-sections would happily dead-strip all ~84 ciris_verify_* symbols —
|
|
877
|
+
# PER-PLATFORM-SILENTLY. Assert the surface actually survived into the wheel.
|
|
878
|
+
#
|
|
879
|
+
# ── Wheel size gate (CIRISServer#378) ────────────────────────────────
|
|
880
|
+
# PyPI enforces a per-project file limit (100 MB for `ciris-server`) at
|
|
881
|
+
# UPLOAD — the last step of a tag run, after every wheel has built and the
|
|
882
|
+
# conformance gate has passed. v0.5.157 died there: macosx_10_12_x86_64 at
|
|
883
|
+
# 100.4 MB, rejected, with the Linux/Android wheels already published.
|
|
884
|
+
#
|
|
885
|
+
# Nothing measured the wheel until PyPI did. The belief going in was that
|
|
886
|
+
# we had ~20 MB of headroom; the real figure at v0.5.155 was 2.2 MB, and
|
|
887
|
+
# the wheel had been creeping ~1 MB a release for four cuts.
|
|
888
|
+
#
|
|
889
|
+
# FAIL_MB sits just below PyPI's limit so the failure lands HERE, on the
|
|
890
|
+
# build with the artifact in hand, rather than at the last step of a
|
|
891
|
+
# publish — but only when rejection is actually imminent.
|
|
892
|
+
#
|
|
893
|
+
# It was 94 on the first pass, chosen before anyone had measured: linux is
|
|
894
|
+
# 97 and windows 98, both of which publish fine, so the gate blocked a cut
|
|
895
|
+
# that was not at risk. A gate that cries wolf gets raised or deleted by
|
|
896
|
+
# whoever is holding a broken release at 2am, and then it is not there for
|
|
897
|
+
# the case it was built for.
|
|
898
|
+
#
|
|
899
|
+
# 100 MB is arbitrary but USEFUL — it is the only forcing function against
|
|
900
|
+
# a wheel that grows ~1 MB a release forever. The right answer to this
|
|
901
|
+
# gate firing is to find the growth (v0.5.157: 19.8 MB of Skiko nobody
|
|
902
|
+
# loads), never to raise the number.
|
|
903
|
+
# ── The credential is IN THE ARTIFACT, not merely in the YAML (#387) ───
|
|
904
|
+
#
|
|
905
|
+
# 0.5.165 and 0.5.166 both shipped nine wheels with no built-in Google.
|
|
906
|
+
# The injection was present in this file the whole time; publish-pypi.yml
|
|
907
|
+
# called this workflow WITHOUT `secrets: inherit`, so every
|
|
908
|
+
# `${{ secrets.* }}` here resolved to the empty string — no warning, no
|
|
909
|
+
# failure, just a blank. option_env! then baked nothing, and
|
|
910
|
+
# ProviderConfigStore's both-halves-or-nothing rule left the store empty.
|
|
911
|
+
#
|
|
912
|
+
# The gate that was supposed to prevent this asserted the YAML instead:
|
|
913
|
+
# it read a HARDCODED list of the two files already known to be fixed and
|
|
914
|
+
# confirmed they were still fixed. It could not discover a caller that
|
|
915
|
+
# dropped the secrets, because it never asked about callers at all.
|
|
916
|
+
#
|
|
917
|
+
# So this asks the only question that cannot be answered by intent: is the
|
|
918
|
+
# client id actually inside the binary we are about to publish. On tags
|
|
919
|
+
# only, because that is the path where the secrets MUST be present — on a
|
|
920
|
+
# fork PR they legitimately are not, and failing there would be noise.
|
|
921
|
+
- name: Built-in OAuth credential is present in the wheel (tags only)
|
|
922
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
923
|
+
shell: bash
|
|
924
|
+
run: |
|
|
925
|
+
set -euo pipefail
|
|
926
|
+
WHL=$(ls dist/*.whl | head -1)
|
|
927
|
+
TMP=$(mktemp -d)
|
|
928
|
+
unzip -q "$WHL" -d "$TMP"
|
|
929
|
+
LIB=$(find "$TMP" \( -name '_native*.so' -o -name '_native*.pyd' -o -name '_native*.dylib' \) | head -1)
|
|
930
|
+
test -n "$LIB" || { echo "::error::no _native lib inside $WHL"; exit 1; }
|
|
931
|
+
# Match the SHAPE, never the value: a Google desktop client id ends in
|
|
932
|
+
# .apps.googleusercontent.com. Grepping for the literal id would put a
|
|
933
|
+
# credential in a public workflow file and in every log line.
|
|
934
|
+
# NO PIPE INTO `grep -q`. This is the EPIPE trap the #232 step above
|
|
935
|
+
# documents, and it bit here on the very first tag: `grep -q` exits
|
|
936
|
+
# the moment it matches, closing the pipe while `strings` is still
|
|
937
|
+
# writing; `strings` dies with EPIPE; and under `set -o pipefail` the
|
|
938
|
+
# PIPELINE reports failure — so a wheel that DOES carry the credential
|
|
939
|
+
# is reported as missing it. macOS's strings is strict about the
|
|
940
|
+
# flush, GNU's is not, so it false-failed macOS only while linux
|
|
941
|
+
# passed: a per-platform lie from a gate written to catch a
|
|
942
|
+
# per-platform lie. Dump to a file, then grep the file.
|
|
943
|
+
SFILE=$(mktemp)
|
|
944
|
+
strings "$LIB" > "$SFILE" 2>/dev/null || true
|
|
945
|
+
if [ ! -s "$SFILE" ]; then
|
|
946
|
+
echo "::error::strings produced no output for $LIB — INSTRUMENT failure, not evidence about the wheel."
|
|
947
|
+
exit 1
|
|
948
|
+
fi
|
|
949
|
+
if grep -q 'apps\.googleusercontent\.com' "$SFILE"; then
|
|
950
|
+
echo " OK - a built-in Google client id is compiled into $(basename "$WHL")"
|
|
951
|
+
else
|
|
952
|
+
echo "::error::$(basename "$WHL") has NO built-in Google client id. The secrets did not reach the build — check that every caller of build-wheels.yml passes 'secrets: inherit' (CIRISServer#387). This wheel would offer a Google button that cannot work."
|
|
953
|
+
exit 1
|
|
954
|
+
fi
|
|
955
|
+
- name: Wheel size gate
|
|
956
|
+
shell: bash
|
|
957
|
+
run: |
|
|
958
|
+
FAIL_MB=99
|
|
959
|
+
rc=0
|
|
960
|
+
for w in dist/*.whl; do
|
|
961
|
+
MB=$(( $(stat -c%s "$w" 2>/dev/null || stat -f%z "$w") / 1048576 ))
|
|
962
|
+
printf ' %4d MB %s\n' "$MB" "$(basename "$w")"
|
|
963
|
+
if [ "$MB" -ge "$FAIL_MB" ]; then
|
|
964
|
+
echo "::error::$(basename "$w") is ${MB} MB, at or over the ${FAIL_MB} MB gate (PyPI's limit for ciris-server is 100 MB). Find the growth before tagging — see CIRISServer#378 for how the macOS Skiko duplication was found."
|
|
965
|
+
rc=1
|
|
966
|
+
fi
|
|
967
|
+
done
|
|
968
|
+
exit $rc
|
|
969
|
+
# Two modes, because one leg cross-compiles:
|
|
970
|
+
# native leg → pip-install the wheel and ctypes-load it: EXACTLY the path the
|
|
971
|
+
# agent uses. The faithful check.
|
|
972
|
+
# cross leg → macos-x86_64 builds an x86_64 wheel on an arm64 runner, so pip
|
|
973
|
+
# rightly refuses it ("not a supported wheel on this platform")
|
|
974
|
+
# and ctypes is impossible. Fall back to a static symbol dump of
|
|
975
|
+
# the .so inside the wheel — proves the same thing without
|
|
976
|
+
# executing it. Only macOS takes this branch, and its `nm` reads
|
|
977
|
+
# foreign-arch Mach-O fine (Mach-O underscore-prefixes symbols,
|
|
978
|
+
# hence the substring grep rather than an exact match).
|
|
979
|
+
- name: Verify-FFI fold smoke (CIRISServer#232 — symbols must survive the linker strip)
|
|
980
|
+
shell: bash
|
|
981
|
+
env:
|
|
982
|
+
NEED: >-
|
|
983
|
+
ciris_verify_ffi_link_anchor ciris_verify_jcs_canonicalize
|
|
984
|
+
ciris_verify_self_enc_pubkeys ciris_verify_self_enc_respond
|
|
985
|
+
ciris_verify_wrap_dek_for_recipient ciris_verify_unwrap_dek
|
|
986
|
+
ciris_verify_kex_respond_hybrid_with_public
|
|
987
|
+
ciris_verify_create_federation_identity
|
|
988
|
+
ciris_verify_locale_merkle_root ciris_verify_admit_attestation
|
|
989
|
+
run: |
|
|
990
|
+
set -euo pipefail
|
|
991
|
+
WHL=$(ls dist/*.whl | head -1)
|
|
992
|
+
echo "wheel: $WHL"
|
|
993
|
+
if python -m pip install --force-reinstall --no-deps "$WHL"; then
|
|
994
|
+
python -c "import ctypes,os,ciris_server; p=ciris_server.verify_ffi_path(); print('verify_ffi_path ->',p); lib=ctypes.CDLL(p); need=os.environ['NEED'].split(); missing=[s for s in need if not hasattr(lib,s)]; assert not missing, 'verify FFI symbols MISSING from _native (--gc-sections stripped the fold): %s' % missing; print('OK (ctypes) - verify FFI folded: %d symbols resolvable from the built wheel' % len(need))"
|
|
995
|
+
else
|
|
996
|
+
echo "wheel is cross-compiled for another arch (pip cannot install it here) — using a static symbol dump instead"
|
|
997
|
+
TMP=$(mktemp -d)
|
|
998
|
+
unzip -q "$WHL" -d "$TMP"
|
|
999
|
+
LIB=$(find "$TMP" \( -name '_native*.so' -o -name '_native*.pyd' -o -name '_native*.dylib' \) | head -1)
|
|
1000
|
+
test -n "$LIB" || { echo "FATAL: no _native lib found inside the wheel"; exit 1; }
|
|
1001
|
+
echo "lib: $LIB"
|
|
1002
|
+
# Dump the symbol table to a FILE, then grep the file. Do NOT pipe
|
|
1003
|
+
# `echo "$SYMS" | grep -q`: `grep -q` exits the moment it matches, which
|
|
1004
|
+
# closes the pipe while `echo` is still writing -> `echo` dies with EPIPE
|
|
1005
|
+
# -> and under `set -o pipefail` the PIPELINE then reports failure even
|
|
1006
|
+
# though grep FOUND the symbol -> the `||` fires and a PRESENT symbol is
|
|
1007
|
+
# reported MISSING. That is a race, so it can false-PASS just as easily as
|
|
1008
|
+
# it false-FAILS (it false-FAILED v0.5.108 on ciris_verify_kex_respond_
|
|
1009
|
+
# hybrid_with_public, and got lucky on 0.5.107). A gate that lies in both
|
|
1010
|
+
# directions is worse than no gate. No pipe = no EPIPE = deterministic.
|
|
1011
|
+
SYMFILE=$(mktemp)
|
|
1012
|
+
nm -g "$LIB" > "$SYMFILE" 2>/dev/null || llvm-nm -g "$LIB" > "$SYMFILE"
|
|
1013
|
+
echo "symbols in _native: $(wc -l < "$SYMFILE")"
|
|
1014
|
+
MISSING=""
|
|
1015
|
+
for s in $NEED; do grep -q "$s" "$SYMFILE" || MISSING="$MISSING $s"; done
|
|
1016
|
+
if [ -n "$MISSING" ]; then echo "verify FFI symbols MISSING from _native (--gc-sections stripped the fold):$MISSING"; exit 1; fi
|
|
1017
|
+
echo "OK (nm) - verify FFI folded: all symbols present in the cross-built wheel"
|
|
1018
|
+
fi
|
|
1019
|
+
# ── FFI symbol INVENTORY, not a spot-check (CIRISServer#378) ────────────
|
|
1020
|
+
#
|
|
1021
|
+
# The step above names ten symbols. That was sufficient against
|
|
1022
|
+
# --gc-sections, which is all-or-nothing on a section. It is NOT sufficient
|
|
1023
|
+
# against LTO (`lto = "thin"` since 0.5.166), whose unit of work is the
|
|
1024
|
+
# call graph: the realistic failure is PARTIAL — a dozen symbols dropped,
|
|
1025
|
+
# the ten famous ones kept, and the gate green.
|
|
1026
|
+
#
|
|
1027
|
+
# So this asserts the COUNT and every module entry point. Counting is the
|
|
1028
|
+
# whole point: it is the only form a partial strip cannot slip past.
|
|
1029
|
+
#
|
|
1030
|
+
# Runs on EVERY target, cross-built included, because which platform
|
|
1031
|
+
# inlines hardest is exactly what you cannot predict — and a symbol that
|
|
1032
|
+
# survives on linux tells you nothing about windows.
|
|
1033
|
+
- name: FFI symbol inventory (LTO must not drop what only ctypes calls)
|
|
1034
|
+
shell: bash
|
|
1035
|
+
env:
|
|
1036
|
+
MIN_VERIFY_SYMBOLS: 88
|
|
1037
|
+
NEED_PYINIT: >-
|
|
1038
|
+
PyInit__native PyInit_ciris_persist
|
|
1039
|
+
run: |
|
|
1040
|
+
set -euo pipefail
|
|
1041
|
+
WHL=$(ls dist/*.whl | head -1)
|
|
1042
|
+
TMP=$(mktemp -d)
|
|
1043
|
+
unzip -q "$WHL" -d "$TMP"
|
|
1044
|
+
LIB=$(find "$TMP" \( -name '_native*.so' -o -name '_native*.pyd' -o -name '_native*.dylib' \) | head -1)
|
|
1045
|
+
test -n "$LIB" || { echo "::error::no _native lib inside $WHL"; exit 1; }
|
|
1046
|
+
SYMFILE=$(mktemp)
|
|
1047
|
+
# READ THE DYNAMIC TABLE. `nm -g` reads the STATIC symtab, which the
|
|
1048
|
+
# release build strips away — on a stripped ELF it prints "no symbols"
|
|
1049
|
+
# and every symbol looks missing. `.dynsym` (nm -D) is what survives a
|
|
1050
|
+
# strip AND is the table the dynamic linker and ctypes actually resolve
|
|
1051
|
+
# against, so it is both the durable and the CORRECT one to ask.
|
|
1052
|
+
#
|
|
1053
|
+
# This gate's first version asked `nm -g` and failed the linux wheel at
|
|
1054
|
+
# 0 symbols on a wheel that had all 88. Same shape as the source-scan
|
|
1055
|
+
# draft before it: a discrepancy invented by the instrument. Twice is a
|
|
1056
|
+
# pattern worth naming — when a check reports catastrophe, suspect the
|
|
1057
|
+
# check before the code.
|
|
1058
|
+
#
|
|
1059
|
+
# No pipe into `grep -q` anywhere below: see the EPIPE note on the step
|
|
1060
|
+
# above, which false-FAILED a PRESENT symbol on v0.5.108.
|
|
1061
|
+
nm -D --defined-only "$LIB" > "$SYMFILE" 2>/dev/null || true
|
|
1062
|
+
if [ ! -s "$SYMFILE" ]; then nm -g "$LIB" > "$SYMFILE" 2>/dev/null || true; fi
|
|
1063
|
+
if [ ! -s "$SYMFILE" ]; then llvm-nm "$LIB" > "$SYMFILE" 2>/dev/null || true; fi
|
|
1064
|
+
TOTAL=$(wc -l < "$SYMFILE" | tr -d ' ')
|
|
1065
|
+
# "Could not read the table" and "the table is missing symbols" are
|
|
1066
|
+
# DIFFERENT answers and must not share an exit path — the first is a
|
|
1067
|
+
# broken instrument, the second is a broken wheel. Collapsing them is
|
|
1068
|
+
# how a tooling gap gets shipped as a code defect (and vice versa).
|
|
1069
|
+
if [ "$TOTAL" -eq 0 ]; then
|
|
1070
|
+
case "$LIB" in
|
|
1071
|
+
*.pyd)
|
|
1072
|
+
# PE/COFF keeps its exports in the PE export directory, which
|
|
1073
|
+
# `nm` cannot read at all — it is not a stripped ELF, it is a
|
|
1074
|
+
# format these tools do not parse. Reporting it as a strip would
|
|
1075
|
+
# be the instrument inventing a defect again, and failing the
|
|
1076
|
+
# build on it would block a wheel that is fine.
|
|
1077
|
+
#
|
|
1078
|
+
# So this leg is NOT COVERED by the count, and says so out loud
|
|
1079
|
+
# rather than printing a green tick. Windows still gets the #232
|
|
1080
|
+
# ctypes check in the step above (ten named symbols, really
|
|
1081
|
+
# loaded through CPython) — that is real coverage, just not
|
|
1082
|
+
# exhaustive. Enumerating PE exports needs dumpbin or objdump,
|
|
1083
|
+
# neither reliably on PATH in this step: CIRISServer#388.
|
|
1084
|
+
echo "::warning::NOT COVERED on this leg — $(basename "$LIB") is PE/COFF and nm cannot enumerate its exports. The inventory count was SKIPPED here (the #232 ctypes spot-check above still ran). See CIRISServer#388."
|
|
1085
|
+
exit 0
|
|
1086
|
+
;;
|
|
1087
|
+
*)
|
|
1088
|
+
echo "::error::no symbol table could be read from $LIB (tried nm -D, nm -g, llvm-nm). This is an INSTRUMENT failure, not evidence about the wheel — do not read it as a strip."
|
|
1089
|
+
exit 1
|
|
1090
|
+
;;
|
|
1091
|
+
esac
|
|
1092
|
+
fi
|
|
1093
|
+
N=$(grep -c 'ciris_verify_' "$SYMFILE" || true)
|
|
1094
|
+
echo " symbol table entries: $TOTAL; ciris_verify_*: $N (floor $MIN_VERIFY_SYMBOLS)"
|
|
1095
|
+
if [ "$N" -lt "$MIN_VERIFY_SYMBOLS" ]; then
|
|
1096
|
+
echo "::error::$(basename "$WHL") exports $N ciris_verify_* symbols out of a readable $TOTAL-entry table, under the $MIN_VERIFY_SYMBOLS floor. LTO dropped FFI symbols nothing in Rust calls (CIRISServer#232/#378). This wheel imports fine and fails at a ctypes call site — do NOT lower the floor to go green."
|
|
1097
|
+
exit 1
|
|
1098
|
+
fi
|
|
1099
|
+
MISSING=""
|
|
1100
|
+
for s in $NEED_PYINIT; do grep -q "$s" "$SYMFILE" || MISSING="$MISSING $s"; done
|
|
1101
|
+
if [ -n "$MISSING" ]; then
|
|
1102
|
+
echo "::error::module entry point(s) missing from $(basename "$WHL"):$MISSING — CPython resolves these by name at import, and all must live in THIS cdylib for the one-wheel type identity (CIRISServer#4)."
|
|
1103
|
+
exit 1
|
|
1104
|
+
fi
|
|
1105
|
+
echo " OK - inventory intact: $N verify symbols + all $(echo $NEED_PYINIT | wc -w) module entry points"
|
|
1106
|
+
- uses: actions/upload-artifact@v4
|
|
1107
|
+
with:
|
|
1108
|
+
name: wheels-windows-x64
|
|
1109
|
+
path: dist/*.whl
|
|
1110
|
+
if-no-files-found: warn
|
|
1111
|
+
retention-days: 1
|
|
1112
|
+
# Populate the cross-repo CIRISCache blob on main under the SERVER key.
|
|
1113
|
+
- name: CIRISCache save (server layer, main only)
|
|
1114
|
+
uses: CIRISAI/CIRISCache/save@v1
|
|
1115
|
+
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
|
|
1116
|
+
continue-on-error: true
|
|
1117
|
+
with:
|
|
1118
|
+
key: ${{ steps.cachekey.outputs.key }}
|
|
1119
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
1120
|
+
|
|
1121
|
+
# Android abi3 wheels (incl. arm32 armeabi-v7a) — the CIRISAgent KMP client's
|
|
1122
|
+
# mobile targets. NDK cross-compile + libpython stub, the substrate recipe
|
|
1123
|
+
# (CIRISVerify/Persist/Edge). continue-on-error while the cross lane iterates
|
|
1124
|
+
# to green — it must not block the desktop/server publish.
|
|
1125
|
+
android:
|
|
1126
|
+
name: wheel android-${{ matrix.abi }}
|
|
1127
|
+
runs-on: ubuntu-latest
|
|
1128
|
+
# Green as of 0.2.1 (arm64-v8a + armeabi-v7a both package). A required gate now.
|
|
1129
|
+
strategy:
|
|
1130
|
+
fail-fast: false
|
|
1131
|
+
matrix:
|
|
1132
|
+
include:
|
|
1133
|
+
- { abi: armeabi-v7a, target: armv7-linux-androideabi, clang: armv7a-linux-androideabi24, legacy: arm-linux-androideabi, pw: 32 }
|
|
1134
|
+
- { abi: arm64-v8a, target: aarch64-linux-android, clang: aarch64-linux-android24, legacy: aarch64-linux-android, pw: 64 }
|
|
1135
|
+
# x86_64 (CIRISServer#264 ask 4) — Android EMULATORS are x86_64; without
|
|
1136
|
+
# this wheel every emulator QA run executes arm64 under ndk_translation
|
|
1137
|
+
# (slower + one more variable in every repro). Same recipe, x86_64 names.
|
|
1138
|
+
- { abi: x86_64, target: x86_64-linux-android, clang: x86_64-linux-android24, legacy: x86_64-linux-android, pw: 64 }
|
|
1139
|
+
steps:
|
|
1140
|
+
- uses: actions/checkout@v4
|
|
1141
|
+
- uses: dtolnay/rust-toolchain@1.97.0
|
|
1142
|
+
with:
|
|
1143
|
+
targets: ${{ matrix.target }}
|
|
1144
|
+
- name: Set up sccache (compiler cache over GHA)
|
|
1145
|
+
uses: mozilla-actions/sccache-action@v0.0.9
|
|
1146
|
+
# CIRISCache (CIRISServer#99) — 4-layer centipede over the Swatinem GHA L1,
|
|
1147
|
+
# per-ABI NDK cross-compile of the substrate. Restore verify→persist→edge→
|
|
1148
|
+
# server; SAVE under the server-specific -s key.
|
|
1149
|
+
- name: Compute CIRISCache keys (4-layer centipede, CIRISServer#99)
|
|
1150
|
+
id: cachekey
|
|
1151
|
+
shell: bash
|
|
1152
|
+
run: |
|
|
1153
|
+
PLAT="android-${{ matrix.abi }}"
|
|
1154
|
+
RUSTC=$(rustc -V | awk '{print $2}')
|
|
1155
|
+
S=$(grep -m1 '^version = ' Cargo.toml | sed -E 's/^version = "([^"]+)".*/\1/')
|
|
1156
|
+
# Tag- or rev-pinned, like edge: a grep matching nothing must not fail the step.
|
|
1157
|
+
P=$(grep -m1 'CIRISPersist.*tag = "v' Cargo.toml | sed -E 's/.*tag = "v([0-9.]+)".*/\1/' || true)
|
|
1158
|
+
if [ -z "$P" ]; then
|
|
1159
|
+
P=$(grep -m1 'CIRISPersist.*rev = "' Cargo.toml | sed -E 's/.*rev = "([0-9a-f]+)".*/r\1/' || true)
|
|
1160
|
+
fi
|
|
1161
|
+
V=$(grep -m1 'CIRISVerify.*tag = "v' Cargo.toml | sed -E 's/.*tag = "v([0-9.]+)".*/\1/')
|
|
1162
|
+
# tag-pin OR rev-pin (an adoption branch rides a rev until upstream tags —
|
|
1163
|
+
# a grep matching nothing must not kill the step: the 0.5.181 lesson).
|
|
1164
|
+
EDGE=$(grep -m1 'CIRISEdge.*tag = "v' Cargo.toml | sed -E 's/.*tag = "v([0-9.]+)".*/\1/' || true)
|
|
1165
|
+
if [ -z "$EDGE" ]; then
|
|
1166
|
+
EDGE=$(grep -m1 'CIRISEdge.*rev = "' Cargo.toml | sed -E 's/.*rev = "([0-9a-f]+)".*/r\1/' || true)
|
|
1167
|
+
fi
|
|
1168
|
+
BASE="ciris-substrate-v1-${PLAT}-release-rustc${RUSTC}"
|
|
1169
|
+
KEY_VERIFY="${BASE}-pnone-enone-v${V:-none}"
|
|
1170
|
+
KEY_PERSIST="${BASE}-p${P:-none}-enone-v${V:-none}"
|
|
1171
|
+
KEY_EDGE="${BASE}-p${P:-none}-e${EDGE:-none}-v${V:-none}"
|
|
1172
|
+
KEY_SERVER="${BASE}-p${P:-none}-e${EDGE:-none}-v${V:-none}-s${S:-none}"
|
|
1173
|
+
{
|
|
1174
|
+
echo "key-verify=${KEY_VERIFY}"
|
|
1175
|
+
echo "key-persist=${KEY_PERSIST}"
|
|
1176
|
+
echo "key-edge=${KEY_EDGE}"
|
|
1177
|
+
echo "key=${KEY_SERVER}"
|
|
1178
|
+
echo "key-server-prefix=${BASE}-p${P:-none}-e${EDGE:-none}-v${V:-none}-s"
|
|
1179
|
+
echo "key-any=${BASE}-p" # CIRISServer#99 rolling substrate-head: newest prior build for this PLAT+rustc — restored ONLY on a full substrate-pin miss so a version bump recompiles the DELTA, not cold
|
|
1180
|
+
} >> "$GITHUB_OUTPUT"
|
|
1181
|
+
echo "::notice::CIRISCache (${PLAT}): S=${S:-NONE} P=${P:-NONE} V=${V:-NONE} EDGE=${EDGE:-NONE} RUSTC=${RUSTC}"
|
|
1182
|
+
echo "::notice::${KEY_VERIFY}"
|
|
1183
|
+
echo "::notice::${KEY_PERSIST}"
|
|
1184
|
+
echo "::notice::${KEY_EDGE}"
|
|
1185
|
+
echo "::notice::${KEY_SERVER}"
|
|
1186
|
+
# Deepest-first, first-hit-wins (CIRISCache restore@v2): one extraction of
|
|
1187
|
+
# the deepest available blob (cumulative supersets) instead of N redundant.
|
|
1188
|
+
- name: CIRISCache restore (server→edge→persist→verify, first hit)
|
|
1189
|
+
uses: CIRISAI/CIRISCache/restore@v2
|
|
1190
|
+
continue-on-error: true
|
|
1191
|
+
with:
|
|
1192
|
+
keys: |
|
|
1193
|
+
${{ steps.cachekey.outputs.key }}
|
|
1194
|
+
${{ steps.cachekey.outputs.key-server-prefix }}*
|
|
1195
|
+
${{ steps.cachekey.outputs.key-edge }}
|
|
1196
|
+
${{ steps.cachekey.outputs.key-persist }}
|
|
1197
|
+
${{ steps.cachekey.outputs.key-verify }}
|
|
1198
|
+
${{ steps.cachekey.outputs.key-any }}*
|
|
1199
|
+
- uses: actions/setup-python@v5
|
|
1200
|
+
with:
|
|
1201
|
+
python-version: "3.12"
|
|
1202
|
+
- uses: nttld/setup-ndk@v1
|
|
1203
|
+
id: ndk
|
|
1204
|
+
with:
|
|
1205
|
+
ndk-version: r26b
|
|
1206
|
+
add-to-path: true
|
|
1207
|
+
- name: PyO3 cross config + libpython stub
|
|
1208
|
+
env:
|
|
1209
|
+
ANDROID_NDK_HOME: ${{ steps.ndk.outputs.ndk-path }}
|
|
1210
|
+
run: |
|
|
1211
|
+
CFG="${RUNNER_TEMP}/pyo3-android.config"
|
|
1212
|
+
{
|
|
1213
|
+
echo "implementation=CPython"; echo "version=3.10"; echo "shared=false"
|
|
1214
|
+
echo "abi3=true"; echo "lib_name=python3.10"; echo "lib_dir="
|
|
1215
|
+
echo "executable="; echo "pointer_width=${{ matrix.pw }}"; echo "build_flags="
|
|
1216
|
+
echo "suppress_build_script_link_lines=true"
|
|
1217
|
+
} > "$CFG"
|
|
1218
|
+
echo "PYO3_CONFIG_FILE=${CFG}" >> "$GITHUB_ENV"
|
|
1219
|
+
STUB="${RUNNER_TEMP}/python-stub"; mkdir -p "$STUB"
|
|
1220
|
+
TC="${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64"
|
|
1221
|
+
echo 'void __pystub(void){}' | \
|
|
1222
|
+
"${TC}/bin/${{ matrix.clang }}-clang" -shared -nostdlib \
|
|
1223
|
+
-Wl,-soname,libpython3.10.so -o "${STUB}/libpython3.10.so" -x c -
|
|
1224
|
+
- name: Build wheel (maturin, Android NDK)
|
|
1225
|
+
env:
|
|
1226
|
+
ANDROID_NDK_HOME: ${{ steps.ndk.outputs.ndk-path }}
|
|
1227
|
+
ANDROID_API_LEVEL: "24" # maturin can't infer the API level for armv7 (it can for arm64)
|
|
1228
|
+
# Route rustc through sccache (content-addressed, mtime-immune) — this leg
|
|
1229
|
+
# previously relied on Swatinem for its compiler cache.
|
|
1230
|
+
SCCACHE_GHA_ENABLED: "true"
|
|
1231
|
+
RUSTC_WRAPPER: sccache
|
|
1232
|
+
# Same compile-time OAuth injection as the x86_64 leg — these ANDROID
|
|
1233
|
+
# wheels ship to users too, and a leg that silently misses the
|
|
1234
|
+
# credentials produces a wheel with no built-in Google while every
|
|
1235
|
+
# other platform has one.
|
|
1236
|
+
CIRIS_DESKTOP_GOOGLE_OAUTH_CLIENT_ID: ${{ secrets.CIRIS_DESKTOP_GOOGLE_OAUTH_CLIENT_ID }}
|
|
1237
|
+
CIRIS_DESKTOP_GOOGLE_OAUTH_CLIENT_SECRET: ${{ secrets.CIRIS_DESKTOP_GOOGLE_OAUTH_CLIENT_SECRET }}
|
|
1238
|
+
CIRIS_ANDROID_GOOGLE_OAUTH_CLIENT_ID: ${{ secrets.CIRIS_ANDROID_GOOGLE_OAUTH_CLIENT_ID }}
|
|
1239
|
+
CIRIS_WEB_GOOGLE_OAUTH_CLIENT_ID: ${{ secrets.CIRIS_WEB_GOOGLE_OAUTH_CLIENT_ID }}
|
|
1240
|
+
run: |
|
|
1241
|
+
# cc-rs guesses the wrong NDK clang name (arm-linux-androideabi-clang);
|
|
1242
|
+
# point CC/CXX/AR + the cargo linker at the real r26b tools (what
|
|
1243
|
+
# cargo-ndk would set). Var names use the underscore/SCREAMING target.
|
|
1244
|
+
TC="${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin"
|
|
1245
|
+
CLANG="${TC}/${{ matrix.clang }}-clang"
|
|
1246
|
+
TUS="$(echo '${{ matrix.target }}' | tr - _)"
|
|
1247
|
+
TSC="$(echo "$TUS" | tr a-z A-Z)"
|
|
1248
|
+
export "CC_${TUS}=${CLANG}"
|
|
1249
|
+
export "CXX_${TUS}=${CLANG}++"
|
|
1250
|
+
export "AR_${TUS}=${TC}/llvm-ar"
|
|
1251
|
+
export "RANLIB_${TUS}=${TC}/llvm-ranlib"
|
|
1252
|
+
export "CARGO_TARGET_${TSC}_LINKER=${CLANG}"
|
|
1253
|
+
# openssl-src (pulled by persist on android) hardcodes the LEGACY NDK
|
|
1254
|
+
# tool names that r26b dropped; shim them → the r26b llvm tools.
|
|
1255
|
+
export ANDROID_NDK_ROOT="${ANDROID_NDK_HOME}"
|
|
1256
|
+
ln -sf "${TC}/llvm-ar" "${TC}/${{ matrix.legacy }}-ar"
|
|
1257
|
+
ln -sf "${TC}/llvm-ranlib" "${TC}/${{ matrix.legacy }}-ranlib"
|
|
1258
|
+
ln -sf "${CLANG}" "${TC}/${{ matrix.legacy }}-clang"
|
|
1259
|
+
ln -sf "${CLANG}++" "${TC}/${{ matrix.legacy }}-clang++"
|
|
1260
|
+
export PATH="${TC}:${PATH}"
|
|
1261
|
+
export RUSTFLAGS="-L ${RUNNER_TEMP}/python-stub -C link-arg=-Wl,--no-as-needed -C link-arg=-lpython3.10"
|
|
1262
|
+
python -m pip install --upgrade pip
|
|
1263
|
+
pip install "maturin>=1.7,<2"
|
|
1264
|
+
maturin build --release --strip --out dist --target ${{ matrix.target }}
|
|
1265
|
+
sccache --show-stats
|
|
1266
|
+
- uses: actions/upload-artifact@v4
|
|
1267
|
+
with:
|
|
1268
|
+
name: wheels-android-${{ matrix.abi }}
|
|
1269
|
+
path: dist/*.whl
|
|
1270
|
+
if-no-files-found: warn
|
|
1271
|
+
retention-days: 1
|
|
1272
|
+
# Populate the cross-repo CIRISCache blob on main under the SERVER key.
|
|
1273
|
+
- name: CIRISCache save (server layer, main only)
|
|
1274
|
+
uses: CIRISAI/CIRISCache/save@v1
|
|
1275
|
+
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
|
|
1276
|
+
continue-on-error: true
|
|
1277
|
+
with:
|
|
1278
|
+
key: ${{ steps.cachekey.outputs.key }}
|
|
1279
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
1280
|
+
|
|
1281
|
+
sdist:
|
|
1282
|
+
name: sdist
|
|
1283
|
+
runs-on: ubuntu-latest
|
|
1284
|
+
steps:
|
|
1285
|
+
- uses: actions/checkout@v4
|
|
1286
|
+
- name: Build sdist
|
|
1287
|
+
uses: PyO3/maturin-action@v1
|
|
1288
|
+
with:
|
|
1289
|
+
command: sdist
|
|
1290
|
+
args: --out dist
|
|
1291
|
+
- uses: actions/upload-artifact@v4
|
|
1292
|
+
with:
|
|
1293
|
+
name: wheels-sdist
|
|
1294
|
+
path: dist/*.tar.gz
|
|
1295
|
+
if-no-files-found: error
|
|
1296
|
+
retention-days: 1
|