From 208776701cc8996b0d6badce6ae5e2bd26aace74 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Fri, 23 Oct 2026 23:12:29 -0500 Subject: [PATCH 1/3] chore(license): adopt Apache-2.0 across the tree - LICENSE: canonical Apache License 2.0 text - NOTICE: AIEN attribution, trademark notice, third-party scopes - Cargo.toml: license = "Apache-2.0" - first-party C, Rust and shell sources: SPDX Apache-2.0 with the Apache notice - docs: current licence statements updated; earlier grants recorded Earlier grants (MIT, AGPL-3.0-only) remain valid for the revisions they covered. This change applies from this revision. Signed-off-by: Drake Stapleton --- AGENTS.md | 2 +- AGENT_CODE_OF_CONDUCT.md | 2 +- ARTIFACT_LICENSING.md | 10 +- ATTRIBUTION.md | 2 +- CONSTITUTION.md | 10 +- CONTRIBUTING.md | 4 +- COVENANT.md | 4 +- Cargo.toml | 2 +- LICENSE | 863 ++++-------------- NOTICE | 31 +- README.md | 4 +- THIRD_PARTY.md | 2 +- .../crates/bench_apples_to_apples/Cargo.toml | 2 +- .../bench_apples_to_apples/src/engine_aien.rs | 15 + .../crates/bench_apples_to_apples/src/main.rs | 15 + .../bench_apples_to_apples/src/metrics.rs | 15 + .../bench_apples_to_apples/src/telemetry.rs | 15 + .../bench_apples_to_apples/src/types.rs | 15 + .../toolchain/01-fetch.sh | 15 + .../toolchain/02-build.sh | 15 + .../toolchain/03-sanity.sh | 15 + .../toolchain/04-active.sh | 15 + .../toolchain/05-measure.sh | 15 + .../toolchain/06-collect.sh | 15 + .../toolchain/07-upstream-unit.sh | 15 + .../toolchain/08-status.sh | 15 + .../toolchain/09-harvest-ice.sh | 15 + .../toolchain/10-split-ab.sh | 15 + .../toolchain/12-ab-held.sh | 15 + .../toolchain/13-diag-once.sh | 15 + crates/aien-abi-conformance/src/build.rs | 15 + crates/aien-abi-conformance/src/header.rs | 15 + crates/aien-abi-conformance/src/identity.rs | 15 + crates/aien-abi-conformance/src/lib.rs | 15 + crates/aien-abi-conformance/src/manifest.rs | 15 + crates/aien-abi-conformance/src/native.rs | 15 + crates/aien-abi-conformance/src/probe.rs | 15 + crates/aien-abi-conformance/src/rust.rs | 15 + crates/aien-abi-conformance/tests/c_side.rs | 15 + crates/aien-abi-core/src/lib.rs | 15 + .../aien-abi-core/tests/attention_geometry.rs | 15 + .../aien-abi-core/tests/kv_seam_defaults.rs | 15 + crates/aien-allen-memory/src/lib.rs | 15 + crates/aien-allen-memory/src/refusal.rs | 15 + crates/aien-allen-memory/src/schema.rs | 15 + crates/aien-allen-memory/src/store.rs | 15 + crates/aien-allen-memory/tests/memory_test.rs | 15 + crates/aien-allen-profile/src/context.rs | 15 + crates/aien-allen-profile/src/lib.rs | 15 + crates/aien-allen-profile/src/refusal.rs | 15 + crates/aien-allen-profile/src/schema.rs | 15 + crates/aien-allen-profile/src/store.rs | 15 + .../aien-allen-profile/tests/profile_test.rs | 15 + crates/aien-allen/src/binding.rs | 15 + crates/aien-allen/src/deployment.rs | 15 + crates/aien-allen/src/lib.rs | 15 + crates/aien-allen/src/resolve.rs | 15 + crates/aien-allen/src/subject_v0.rs | 15 + crates/aien-allen/tests/deployment_test.rs | 15 + crates/aien-allen/tests/e2e_demo_subject.rs | 15 + crates/aien-allen/tests/identity_test.rs | 15 + crates/aien-allen/tests/oracle_test.rs | 15 + crates/aien-allen/tests/refusal_rows_test.rs | 15 + .../aien-allen/tests/subject_decode_test.rs | 15 + crates/aien-allen/tests/support/mod.rs | 15 + crates/aien-campaign-verifier/src/bundle.rs | 15 + crates/aien-campaign-verifier/src/ids.rs | 15 + crates/aien-campaign-verifier/src/kv.rs | 15 + crates/aien-campaign-verifier/src/lib.rs | 15 + crates/aien-campaign-verifier/src/main.rs | 15 + .../aien-campaign-verifier/src/placement.rs | 15 + crates/aien-campaign-verifier/src/report.rs | 15 + .../tests/independence.rs | 15 + crates/aien-capability/src/effects.rs | 15 + crates/aien-capability/src/ids.rs | 15 + crates/aien-capability/src/lib.rs | 15 + crates/aien-capability/src/tool.rs | 15 + crates/aien-capability/tests/effects.rs | 15 + crates/aien-cli/build.rs | 15 + crates/aien-cli/src/allen.rs | 15 + crates/aien-cli/src/approval.rs | 15 + .../aien-cli/src/bin/aien-browser-mirror.rs | 15 + crates/aien-cli/src/browser_mirror.rs | 15 + crates/aien-cli/src/checkpoint.rs | 15 + crates/aien-cli/src/client.rs | 15 + crates/aien-cli/src/commands.rs | 15 + crates/aien-cli/src/compaction.rs | 15 + crates/aien-cli/src/compose.rs | 15 + crates/aien-cli/src/context7.rs | 15 + crates/aien-cli/src/cortex.rs | 15 + crates/aien-cli/src/crumbs.rs | 15 + crates/aien-cli/src/goals.rs | 15 + crates/aien-cli/src/hive.rs | 15 + crates/aien-cli/src/hooks.rs | 15 + crates/aien-cli/src/lib.rs | 15 + crates/aien-cli/src/main.rs | 15 + crates/aien-cli/src/nesting.rs | 15 + crates/aien-cli/src/objective.rs | 15 + crates/aien-cli/src/platform.rs | 15 + crates/aien-cli/src/rules.rs | 15 + crates/aien-cli/src/safety.rs | 15 + crates/aien-cli/src/sandbox.rs | 15 + crates/aien-cli/src/science_context.rs | 15 + crates/aien-cli/src/skills.rs | 15 + crates/aien-cli/src/subagents.rs | 15 + crates/aien-cli/src/telemetry.rs | 15 + crates/aien-cli/src/tools.rs | 15 + crates/aien-cli/src/ui.rs | 15 + crates/aien-cli/src/vault.rs | 15 + crates/aien-cli/src/walkthrough.rs | 15 + .../aien-cli/tests/allen_concurrency_test.rs | 15 + .../tests/compose_memory_recall_test.rs | 15 + .../tests/compose_ordinary_flow_test.rs | 15 + crates/aien-cli/tests/cpu_only_switch_test.rs | 15 + .../tests/desk_required_startup_test.rs | 15 + .../aien-cli/tests/objective_record_test.rs | 15 + .../tests/provenance_link_live_test.rs | 15 + crates/aien-cli/tests/recovery_matrix_test.rs | 15 + crates/aien-cli/tests/test_cli_runtime_ipc.rs | 15 + crates/aien-closure/src/declare.rs | 15 + crates/aien-closure/src/digest.rs | 15 + crates/aien-closure/src/error.rs | 15 + crates/aien-closure/src/graph.rs | 15 + crates/aien-closure/src/lib.rs | 15 + crates/aien-closure/src/main.rs | 15 + crates/aien-closure/src/manifest.rs | 15 + crates/aien-closure/src/verify.rs | 15 + crates/aien-closure/tests/closure.rs | 15 + crates/aien-closure/tests/common/mod.rs | 15 + .../aien-closure/tests/declaration_codes.rs | 15 + .../aien-closure/tests/receipt_crosscheck.rs | 15 + crates/aien-drive/src/http.rs | 15 + crates/aien-drive/src/lib.rs | 15 + crates/aien-drive/src/main.rs | 15 + crates/aien-drive/tests/equivalence.rs | 15 + crates/aien-drive/tests/loop_stub.rs | 15 + crates/aien-dual-observation/src/lib.rs | 15 + .../tests/snapshot_conservation.rs | 15 + .../aien-inference-abi/examples/load_rss.rs | 15 + crates/aien-inference-abi/src/backend.rs | 15 + .../src/bin/own30b_check.rs | 15 + .../aien-inference-abi/src/bin/own30b_ttft.rs | 15 + .../src/bin/own30b_wp_gate.rs | 15 + .../src/bin/own_tern_check.rs | 15 + .../aien-inference-abi/src/bitnet_forward.rs | 15 + .../src/bitnet_forward/tests.rs | 15 + crates/aien-inference-abi/src/bitnet_omega.rs | 15 + .../src/bitnet_omega/gguf_ref.rs | 15 + .../src/bitnet_omega/test_support.rs | 15 + .../src/bitnet_omega/tests.rs | 15 + .../src/bitnet_tokenizer.rs | 15 + crates/aien-inference-abi/src/capsule.rs | 15 + crates/aien-inference-abi/src/checkpoint.rs | 15 + crates/aien-inference-abi/src/gb10_serving.rs | 15 + crates/aien-inference-abi/src/generation.rs | 15 + .../src/generation/echo_chain.rs | 15 + .../src/generation/tests.rs | 15 + crates/aien-inference-abi/src/lib.rs | 15 + crates/aien-inference-abi/src/model_dir.rs | 15 + crates/aien-inference-abi/src/moe_plan.rs | 15 + crates/aien-inference-abi/src/native_ops.rs | 15 + .../aien-inference-abi/src/omega_backend.rs | 15 + crates/aien-inference-abi/src/qwen3_coder.rs | 15 + .../src/qwen3_dense_omega.rs | 15 + crates/aien-inference-abi/src/qwen3_moe.rs | 15 + .../aien-inference-abi/src/qwen3_moe_omega.rs | 15 + .../src/qwen3_moe_omega/w8a8_control.rs | 15 + .../src/qwen3_moe_omega/whole_prompt.rs | 15 + .../src/qwen3_moe_omega_dattn.rs | 15 + .../src/qwen3_moe_omega_dgraph.rs | 15 + .../src/qwen3_moe_omega_kvio.rs | 15 + .../src/qwen3_moe_omega_prefill.rs | 15 + .../src/qwen3_moe_omega_prefill/devhost.rs | 15 + .../src/qwen3_moe_omega_prefill/fake_quant.rs | 15 + .../src/qwen3_moe_omega_prefill/tests.rs | 15 + .../qwen3_moe_omega_prefill/tests/devhost.rs | 15 + crates/aien-inference-abi/src/resident.rs | 15 + crates/aien-inference-abi/src/strict.rs | 15 + crates/aien-inference-abi/src/tensor.rs | 15 + crates/aien-inference-abi/src/tensor_abi.rs | 15 + crates/aien-inference-abi/src/tokenizer.rs | 15 + .../aien-inference-abi/src/tool_boundary.rs | 15 + .../src/transformer_backend.rs | 15 + crates/aien-inference-abi/src/weights.rs | 15 + .../tests/attention_wiring.rs | 15 + .../tests/bf16_paged_attention.rs | 15 + .../tests/bitnet_tokenizer_real.rs | 15 + .../tests/branch_client_harness.rs | 15 + .../tests/chat_prompt_pin.rs | 15 + .../tests/gb10_serving_reservation.rs | 15 + .../tests/kv_seam_backend_test.rs | 15 + .../aien-inference-abi/tests/llama32_pin.rs | 15 + .../tests/omega_backend_parity.rs | 15 + .../tests/openwaldo_byte_tokenizer.rs | 15 + .../tests/openwaldo_forward_parity.rs | 15 + .../tests/paged_attention_parity.rs | 15 + .../tests/paged_transformer_parity.rs | 15 + .../tests/plain_model_load.rs | 15 + .../tests/prefill_pool_exhaustion.rs | 15 + .../tests/qwen3_8b_chat_template.rs | 15 + .../tests/qwen3_chat_template.rs | 15 + .../tests/qwen3_forward_parity.rs | 15 + .../tests/qwen3_untied_head.rs | 15 + .../tests/resident_weights.rs | 15 + .../aien-inference-abi/tests/smollm2_pin.rs | 15 + .../tests/tinyllama_noise_floor.rs | 15 + .../tests/tinyllama_parity.rs | 15 + .../aien-inference-abi/tests/tool_boundary.rs | 15 + .../tests/transformer_parity.rs | 15 + crates/aien-inference-runtime/src/lib.rs | 15 + crates/aien-inference-runtime/src/model.rs | 15 + crates/aien-inference-runtime/src/service.rs | 15 + .../aien-inference-runtime/tests/drift/mod.rs | 15 + .../tests/logit_drift.rs | 15 + .../tests/oracle/mod.rs | 15 + .../tests/runtime_tests.rs | 15 + .../tests/strict_real_model.rs | 15 + crates/aien-inference-service/src/events.rs | 15 + crates/aien-inference-service/src/lib.rs | 15 + crates/aien-inference-service/src/limits.rs | 15 + crates/aien-inference-service/src/request.rs | 15 + crates/aien-inference-service/src/service.rs | 15 + .../tests/protocol_tests.rs | 15 + .../src/bin/bench_persistent_kv.rs | 15 + crates/aien-kv-bench/src/lib.rs | 15 + crates/aien-kv-bench/src/report.rs | 15 + crates/aien-kv-bench/src/run.rs | 15 + .../tests/bench_persistent_kv_test.rs | 15 + crates/aien-kv-cache/src/lib.rs | 15 + .../tests/cow_branching_tests.rs | 15 + .../tests/holder_ownership_tests.rs | 15 + .../tests/incremental_blocks_tests.rs | 15 + .../tests/kv_lifecycle_qualification.rs | 15 + .../tests/truncate_sequence_tests.rs | 15 + crates/aien-kv-store/src/coalesce.rs | 15 + crates/aien-kv-store/src/error.rs | 15 + crates/aien-kv-store/src/fake.rs | 15 + crates/aien-kv-store/src/holder.rs | 15 + crates/aien-kv-store/src/host_fs.rs | 15 + crates/aien-kv-store/src/identity.rs | 15 + crates/aien-kv-store/src/index.rs | 15 + crates/aien-kv-store/src/lib.rs | 15 + crates/aien-kv-store/src/pin.rs | 15 + crates/aien-kv-store/src/record.rs | 15 + crates/aien-kv-store/src/seal.rs | 15 + crates/aien-kv-store/src/store.rs | 15 + crates/aien-kv-store/src/validate.rs | 15 + crates/aien-kv-store/src/worker.rs | 15 + .../aien-kv-store/tests/common/host_fs_rig.rs | 15 + crates/aien-kv-store/tests/common/mod.rs | 15 + crates/aien-kv-store/tests/common/rig.rs | 15 + .../aien-kv-store/tests/fake_store_tests.rs | 15 + crates/aien-kv-store/tests/golden_tests.rs | 15 + crates/aien-kv-store/tests/holder_tests.rs | 15 + .../tests/host_fs_hardening_tests.rs | 15 + .../aien-kv-store/tests/host_fs_lock_tests.rs | 15 + .../tests/host_fs_recovery_tests.rs | 15 + .../aien-kv-store/tests/host_fs_seal_tests.rs | 15 + .../tests/host_fs_security_tests.rs | 15 + .../tests/host_fs_stream_tests.rs | 15 + crates/aien-kv-store/tests/host_fs_tests.rs | 15 + crates/aien-kv-store/tests/identity_tests.rs | 15 + crates/aien-kv-store/tests/record_tests.rs | 15 + crates/aien-kv-store/tests/seal_bench.rs | 15 + crates/aien-kv-store/tests/seal_tests.rs | 15 + crates/aien-kv-store/tests/validate_tests.rs | 15 + .../tests/worker_host_fs_tests.rs | 15 + crates/aien-kv-store/tests/worker_tests.rs | 15 + crates/aien-localhttp/src/client.rs | 15 + crates/aien-localhttp/src/error.rs | 15 + crates/aien-localhttp/src/lib.rs | 15 + crates/aien-localhttp/src/response.rs | 15 + crates/aien-localhttp/src/status.rs | 15 + crates/aien-localhttp/src/test_server.rs | 15 + crates/aien-localhttp/src/url.rs | 15 + crates/aien-localhttp/tests/behavior.rs | 15 + crates/aien-mcp/src/approval.rs | 15 + crates/aien-mcp/src/authority.rs | 15 + crates/aien-mcp/src/broker.rs | 15 + crates/aien-mcp/src/effect.rs | 15 + crates/aien-mcp/src/error.rs | 15 + crates/aien-mcp/src/lane_tests.rs | 15 + crates/aien-mcp/src/lib.rs | 15 + crates/aien-mcp/src/memory.rs | 15 + crates/aien-mcp/src/session.rs | 15 + crates/aien-mcp/src/snapshot.rs | 15 + crates/aien-mcp/src/transport.rs | 15 + crates/aien-mcp/src/transport_tests.rs | 15 + crates/aien-mcp/src/wire.rs | 15 + crates/aien-mcp/tests/approval.rs | 15 + crates/aien-mcp/tests/authority.rs | 15 + crates/aien-mcp/tests/binding.rs | 15 + crates/aien-mcp/tests/trace.rs | 15 + crates/aien-mcp/tests/two_phase.rs | 15 + crates/aien-omega-bf16/build.rs | 15 + crates/aien-omega-bf16/src/lib.rs | 15 + crates/aien-omega-compose/build.rs | 15 + crates/aien-omega-compose/src/ffi.rs | 15 + crates/aien-omega-compose/src/lib.rs | 15 + .../aien-omega-compose/tests/abi_manifest.rs | 15 + crates/aien-omega-compose/tests/callbacks.rs | 15 + crates/aien-omega-compose/tests/compose.rs | 15 + crates/aien-omega-dattn/build.rs | 15 + crates/aien-omega-dattn/src/lib.rs | 15 + crates/aien-omega-dattn/src/raw.rs | 15 + crates/aien-omega-dattn/src/rows.rs | 15 + crates/aien-omega-dgraph/build.rs | 15 + crates/aien-omega-dgraph/src/lib.rs | 15 + crates/aien-omega-fp8/build.rs | 15 + crates/aien-omega-fp8/src/lib.rs | 15 + crates/aien-omega-gpu/build.rs | 15 + crates/aien-omega-gpu/src/ffi.rs | 15 + crates/aien-omega-gpu/src/lib.rs | 15 + crates/aien-omega-gpu/tests/abi_manifest.rs | 15 + crates/aien-omega-gpu/tests/parity.rs | 15 + crates/aien-omega-moe/build.rs | 15 + crates/aien-omega-moe/src/lib.rs | 15 + crates/aien-omega-pf/build.rs | 15 + crates/aien-omega-pf/src/lib.rs | 15 + crates/aien-omega-router/build.rs | 15 + crates/aien-omega-router/src/lib.rs | 15 + .../aien-omegese-constraint/src/constraint.rs | 15 + crates/aien-omegese-constraint/src/lib.rs | 15 + crates/aien-omegese-constraint/src/oracle.rs | 15 + .../aien-omegese-constraint/src/signature.rs | 15 + crates/aien-omegese-constraint/src/table.rs | 15 + crates/aien-omegese-constraint/src/word.rs | 15 + .../tests/common/mod.rs | 15 + .../tests/echo_walks.rs | 15 + .../tests/mask_steps.rs | 15 + .../tests/qwen_vocab.rs | 15 + crates/aien-platform-linux/src/buffer.rs | 15 + crates/aien-platform-linux/src/device.rs | 15 + crates/aien-platform-linux/src/lib.rs | 15 + crates/aien-platform-linux/src/queue.rs | 15 + crates/aien-platform-linux/src/telemetry.rs | 15 + crates/aien-platform-linux/tests/external.rs | 15 + crates/aien-platform/src/compute.rs | 15 + crates/aien-platform/src/lib.rs | 15 + crates/aien-platform/src/memory.rs | 15 + crates/aien-platform/src/objects.rs | 15 + crates/aien-platform/src/queue.rs | 15 + crates/aien-platform/src/runtime.rs | 15 + crates/aien-platform/src/task.rs | 15 + crates/aien-platform/src/telemetry.rs | 15 + crates/aien-proof/formal/formal-job.sh | 15 + crates/aien-proof/src/board.rs | 15 + crates/aien-proof/src/chain.rs | 15 + crates/aien-proof/src/evidence.rs | 15 + crates/aien-proof/src/fingerprint.rs | 15 + crates/aien-proof/src/formal.rs | 15 + crates/aien-proof/src/gate.rs | 15 + crates/aien-proof/src/import.rs | 15 + crates/aien-proof/src/lease.rs | 15 + crates/aien-proof/src/ledger.rs | 15 + crates/aien-proof/src/ledger_bind.rs | 15 + crates/aien-proof/src/lib.rs | 15 + crates/aien-proof/src/lock.rs | 15 + crates/aien-proof/src/main.rs | 15 + crates/aien-proof/src/store_assert.rs | 15 + crates/aien-proof/src/workspace.rs | 15 + .../tests/store_qualification_adversarial.rs | 15 + crates/aien-replay/Cargo.toml | 2 +- crates/aien-replay/mutations/run_mutants.sh | 15 + crates/aien-replay/src/lib.rs | 15 + .../aien-replay/tests/kv_ownership_props.rs | 15 + crates/aien-replay/tests/trn1_conformance.rs | 15 + crates/aien-runtime/build.rs | 15 + .../aien-runtime/examples/np1_edit_merge.rs | 15 + crates/aien-runtime/examples/np1_reference.rs | 15 + .../aien-runtime/examples/qwen3_8b_smoke.rs | 15 + .../examples/qwen3_8b_specverify.rs | 15 + crates/aien-runtime/src/allen_memory.rs | 15 + crates/aien-runtime/src/approved.rs | 15 + crates/aien-runtime/src/approved_auth.rs | 15 + crates/aien-runtime/src/approved_replay.rs | 15 + crates/aien-runtime/src/client.rs | 15 + crates/aien-runtime/src/compose.rs | 15 + crates/aien-runtime/src/compose/bridge.rs | 15 + crates/aien-runtime/src/compute_config.rs | 15 + crates/aien-runtime/src/context.rs | 15 + crates/aien-runtime/src/control.rs | 15 + crates/aien-runtime/src/cortex_mark.rs | 15 + crates/aien-runtime/src/destination.rs | 15 + crates/aien-runtime/src/effects.rs | 15 + crates/aien-runtime/src/generation.rs | 15 + crates/aien-runtime/src/kv_residency.rs | 15 + crates/aien-runtime/src/lib.rs | 15 + crates/aien-runtime/src/objective.rs | 15 + crates/aien-runtime/src/persona.rs | 15 + crates/aien-runtime/src/provisional.rs | 15 + crates/aien-runtime/src/requirements.rs | 15 + .../aien-runtime/src/requirements_extract.rs | 15 + crates/aien-runtime/src/rsi.rs | 15 + crates/aien-runtime/src/sequence.rs | 15 + crates/aien-runtime/src/server.rs | 15 + crates/aien-runtime/src/shared_kv.rs | 15 + crates/aien-runtime/src/spine.rs | 15 + crates/aien-runtime/src/swarm.rs | 15 + crates/aien-runtime/src/trace_observer.rs | 15 + crates/aien-runtime/src/world.rs | 15 + .../tests/allen_memory_ipc_test.rs | 15 + .../aien-runtime/tests/allen_memory_test.rs | 15 + .../tests/allen_persona_ipc_test.rs | 15 + .../aien-runtime/tests/allen_persona_test.rs | 15 + crates/aien-runtime/tests/allen_spine_test.rs | 15 + .../tests/approved_attacks_test.rs | 15 + .../tests/approved_confinement_test.rs | 15 + .../aien-runtime/tests/approved_crash_test.rs | 15 + .../tests/approved_daemon_ipc_test.rs | 15 + .../tests/approved_proposal_test.rs | 15 + .../tests/approved_replay_test.rs | 15 + .../tests/authorize_desk_mac_test.rs | 15 + .../aien-runtime/tests/chat_template_test.rs | 15 + .../aien-runtime/tests/compose_budget_test.rs | 15 + crates/aien-runtime/tests/compose_env_test.rs | 15 + .../tests/compose_task_ipc_test.rs | 15 + .../aien-runtime/tests/compose_task_test.rs | 15 + .../aien-runtime/tests/compose_wait_test.rs | 15 + .../tests/compute_config_binding_test.rs | 15 + .../aien-runtime/tests/confine_race_test.rs | 15 + .../tests/corrective_retry_test.rs | 15 + crates/aien-runtime/tests/cortex_mark_test.rs | 15 + .../tests/decoding_observed_test.rs | 15 + .../tests/desk_required_server_test.rs | 15 + .../tests/destination_corpus_test.rs | 15 + crates/aien-runtime/tests/destination_test.rs | 15 + crates/aien-runtime/tests/effects_test.rs | 15 + .../tests/generation_record_test.rs | 15 + crates/aien-runtime/tests/headstart_ab.rs | 15 + crates/aien-runtime/tests/inputs_test.rs | 15 + .../aien-runtime/tests/kv_concurrency_test.rs | 15 + .../tests/kv_park_restore_test.rs | 15 + crates/aien-runtime/tests/kv_restart_test.rs | 15 + .../tests/logical_workspace_test.rs | 15 + .../aien-runtime/tests/minted_grant_test.rs | 15 + .../tests/np1_t5_edit_merge_test.rs | 15 + crates/aien-runtime/tests/np1_v5_rows_test.rs | 15 + crates/aien-runtime/tests/np1_v6_test.rs | 15 + .../tests/objective_identity_test.rs | 15 + .../aien-runtime/tests/ops_evidence_test.rs | 15 + .../tests/oq3_v5_reading_probe_test.rs | 15 + .../aien-runtime/tests/preempt_resume_test.rs | 15 + crates/aien-runtime/tests/prefill_e2e0.rs | 15 + crates/aien-runtime/tests/prefill_e2e1.rs | 15 + crates/aien-runtime/tests/prefill_e2e2.rs | 15 + crates/aien-runtime/tests/prefill_e2e2_run.sh | 15 + .../tests/provenance_link_test.rs | 15 + .../tests/provisional_prep_test.rs | 15 + .../tests/recall_native_report_test.rs | 15 + .../aien-runtime/tests/refusal_table_test.rs | 15 + .../tests/requirements_count_wordings_test.rs | 15 + .../tests/requirements_deadline_test.rs | 15 + .../tests/requirements_elided_bound_test.rs | 15 + .../tests/requirements_enforce_test.rs | 15 + .../tests/requirements_first_heading_test.rs | 15 + .../tests/requirements_of_them_test.rs | 15 + .../tests/requirements_one_sentence_test.rs | 15 + .../tests/requirements_paragraphs_test.rs | 15 + .../tests/requirements_said_line_test.rs | 15 + .../aien-runtime/tests/requirements_test.rs | 15 + .../tests/requirements_topics_test.rs | 15 + .../tests/requirements_under_bound_test.rs | 15 + .../tests/requirements_usability_test.rs | 15 + .../tests/requirements_words_test.rs | 15 + .../tests/runtime_500_branch_benchmark.rs | 15 + .../tests/runtime_end_to_end_tests.rs | 15 + crates/aien-runtime/tests/runtime_ipc_test.rs | 15 + .../tests/runtime_socket_permissions_test.rs | 15 + .../tests/runtime_spine_integration.rs | 15 + .../tests/shared_kv_runtime_test.rs | 15 + .../tests/support/compose_harness.rs | 15 + .../aien-runtime/tests/support/home_guard.rs | 15 + .../tests/swarm_cancel_readmit_test.rs | 15 + .../tests/swarm_completion_test.rs | 15 + .../tests/swarm_inspect_scoping_test.rs | 15 + .../tests/swarm_prefill_gate_test.rs | 15 + .../aien-runtime/tests/swarm_reclaim_test.rs | 15 + crates/aien-runtime/tests/swarm_trace_test.rs | 15 + .../tests/tool_turn_refused_test.rs | 15 + .../tests/trace_overhead_benchmark.rs | 15 + .../aien-runtime/tests/verify_block_test.rs | 15 + .../tests/warm_up_before_serving_test.rs | 15 + .../src/bin/stress_aien_live.rs | 15 + crates/aien-scheduler/src/dual_observer.rs | 15 + crates/aien-scheduler/src/lib.rs | 15 + crates/aien-scheduler/src/sequence.rs | 15 + .../aien-scheduler/tests/dual_common/mod.rs | 15 + .../tests/dual_decision_golden.rs | 15 + .../tests/dual_observer_overhead_bench.rs | 15 + .../tests/dual_observer_parity.rs | 15 + .../tests/kv_finish_restore_seam_test.rs | 15 + .../tests/kv_incremental_admission_test.rs | 15 + .../aien-scheduler/tests/prefill_gate_test.rs | 15 + crates/aien-security/src/lib.rs | 15 + crates/aien-security/src/network.rs | 15 + crates/aien-security/src/secret.rs | 15 + crates/aien-security/src/tpm.rs | 15 + crates/aien-serve-http/build.rs | 15 + crates/aien-serve-http/src/codec.rs | 15 + crates/aien-serve-http/src/cpu_engine.rs | 15 + crates/aien-serve-http/src/engine.rs | 15 + crates/aien-serve-http/src/kv_persist.rs | 15 + crates/aien-serve-http/src/lib.rs | 15 + crates/aien-serve-http/src/main.rs | 15 + crates/aien-serve-http/src/omega_engine.rs | 15 + crates/aien-serve-http/src/openai.rs | 15 + crates/aien-serve-http/src/sampling.rs | 15 + crates/aien-serve-http/src/server.rs | 15 + crates/aien-serve-http/src/text.rs | 15 + crates/aien-serve-http/tests/kv_persist.rs | 15 + .../aien-serve-http/tests/kv_persist_chip.rs | 15 + crates/aien-serve-http/tests/loopback.rs | 15 + crates/aien-serve-http/tests/shutdown.rs | 15 + crates/aien-switchboard/src/account.rs | 15 + crates/aien-switchboard/src/dispatch.rs | 15 + crates/aien-switchboard/src/gauge.rs | 15 + crates/aien-switchboard/src/job.rs | 15 + crates/aien-switchboard/src/lib.rs | 15 + crates/aien-switchboard/src/router.rs | 15 + crates/aien-switchboard/src/rules.rs | 15 + crates/aien-switchboard/src/runner.rs | 15 + crates/aien-switchboard/tests/router.rs | 15 + crates/aien-trace/src/lib.rs | 15 + crates/cortex-encoder-rs/src/main.rs | 15 + crates/cortex-path-m1/src/config.rs | 15 + crates/cortex-path-m1/src/fixture.rs | 15 + crates/cortex-path-m1/src/lib.rs | 15 + crates/cortex-path-m1/src/load.rs | 15 + crates/cortex-path-m1/src/main.rs | 15 + crates/cortex-path-m1/src/metrics.rs | 15 + crates/cortex-path-m1/src/run.rs | 15 + crates/cortex-path-m1/src/score.rs | 15 + crates/cortex-path-m1/tests/m1.rs | 15 + crates/cortex-rs/scripts/reproduce.sh | 15 + crates/cortex-rs/src/auth.rs | 15 + crates/cortex-rs/src/bench.rs | 15 + crates/cortex-rs/src/compiler.rs | 15 + crates/cortex-rs/src/db.rs | 15 + crates/cortex-rs/src/embeddings.rs | 15 + crates/cortex-rs/src/evidence.rs | 15 + crates/cortex-rs/src/handlers.rs | 15 + crates/cortex-rs/src/lib.rs | 15 + crates/cortex-rs/src/main.rs | 15 + crates/cortex-rs/src/models.rs | 15 + crates/cortex-rs/src/promotion.rs | 15 + crates/cortex-rs/src/security.rs | 15 + crates/cortex-rs/src/workers.rs | 15 + crates/crumbs/src/audit.rs | 15 + crates/crumbs/src/bin/crumbs-probe-learner.rs | 15 + crates/crumbs/src/bin/crumbs.rs | 15 + crates/crumbs/src/canon.rs | 15 + crates/crumbs/src/conformance.rs | 15 + crates/crumbs/src/digest.rs | 15 + crates/crumbs/src/experiment.rs | 15 + crates/crumbs/src/gates.rs | 15 + crates/crumbs/src/gen/mechanisms.rs | 15 + crates/crumbs/src/gen/mod.rs | 15 + crates/crumbs/src/gen/registry.rs | 15 + crates/crumbs/src/gen/rng.rs | 15 + crates/crumbs/src/ledger.rs | 15 + crates/crumbs/src/lib.rs | 15 + crates/crumbs/src/mixer.rs | 15 + crates/crumbs/src/program.rs | 15 + crates/crumbs/src/promotion.rs | 15 + crates/crumbs/src/protocol.rs | 15 + crates/crumbs/src/provenance.rs | 15 + crates/crumbs/src/sealed.rs | 15 + crates/crumbs/src/session.rs | 15 + crates/crumbs/src/trace.rs | 15 + crates/crumbs/src/verify.rs | 15 + crates/crumbs/src/visible.rs | 15 + crates/crumbs/tests/boundary.rs | 15 + crates/crumbs/tests/curriculum.rs | 15 + crates/crumbs/tests/generators.rs | 15 + crates/crumbs/tests/visible_conformance.rs | 15 + crates/rad-id-sync/src/ffi.rs | 15 + crates/rad-id-sync/src/identity.rs | 15 + crates/rad-id-sync/src/keys.rs | 15 + crates/rad-id-sync/src/lib.rs | 15 + crates/rad-id-sync/src/main.rs | 15 + .../spark-adapters/src/bin/spark_distill.rs | 15 + crates/spark-adapters/src/curriculum.rs | 15 + crates/spark-adapters/src/distill.rs | 15 + crates/spark-adapters/src/lib.rs | 15 + crates/spark-adapters/src/models.rs | 15 + .../spark-adapters/src/providers/anthropic.rs | 15 + crates/spark-adapters/src/providers/mod.rs | 15 + crates/spark-adapters/src/providers/openai.rs | 15 + crates/spark-adapters/src/router.rs | 15 + crates/spark-adapters/src/vault.rs | 15 + crates/spark-adapters/src/verifier.rs | 15 + .../tests/challenger_m1_concurrency_bounds.rs | 15 + .../challenger_m1_sanitizer_adversarial.rs | 15 + .../reviewer2_m1_adversarial_edge_cases.rs | 15 + crates/spark-adapters/tests/tier1_features.rs | 15 + crates/spark-adapters/tests/tier2_boundary.rs | 15 + .../tests/tier3_cross_feature.rs | 15 + .../spark-adapters/tests/tier4_real_world.rs | 15 + crates/spark-aegis/src/audit.rs | 15 + crates/spark-aegis/src/byte_scan.rs | 15 + crates/spark-aegis/src/containment.rs | 15 + crates/spark-aegis/src/doctrine.rs | 15 + crates/spark-aegis/src/lib.rs | 15 + crates/spark-aegis/src/main.rs | 15 + crates/spark-aegis/src/pr_triage.rs | 15 + crates/spark-aegis/src/scanner.rs | 15 + crates/spark-aegis/tests/integration_tests.rs | 15 + crates/spark-cockpit-rs/src/access.rs | 15 + crates/spark-cockpit-rs/src/main.rs | 15 + crates/spark-crumbs/src/lib.rs | 15 + crates/spark-crumbs/src/main.rs | 15 + crates/spark-debugger/src/audit.rs | 15 + crates/spark-debugger/src/daemon.rs | 15 + crates/spark-debugger/src/main.rs | 15 + crates/spark-debugger/src/mcp.rs | 15 + crates/spark-debugger/src/reporter.rs | 15 + crates/spark-discord-hub/src/atlas_bot.rs | 15 + crates/spark-discord-hub/src/gateway.rs | 15 + crates/spark-discord-hub/src/gideon_bot.rs | 15 + crates/spark-discord-hub/src/main.rs | 15 + crates/spark-discord-hub/src/models.rs | 15 + crates/spark-discord-hub/src/vault.rs | 15 + crates/spark-dream/src/lib.rs | 15 + crates/spark-dream/src/main.rs | 15 + crates/spark-harness/src/completion.rs | 15 + crates/spark-harness/src/dependency.rs | 15 + crates/spark-harness/src/execution.rs | 15 + crates/spark-harness/src/journal.rs | 15 + crates/spark-harness/src/lib.rs | 15 + crates/spark-harness/src/main.rs | 15 + crates/spark-harness/src/readiness.rs | 15 + crates/spark-harness/src/scheduler/core.rs | 15 + crates/spark-harness/src/scheduler/dedup.rs | 15 + crates/spark-harness/src/scheduler/error.rs | 15 + crates/spark-harness/src/scheduler/gates.rs | 15 + crates/spark-harness/src/scheduler/mod.rs | 15 + crates/spark-harness/src/scheduler/permits.rs | 15 + crates/spark-harness/src/scheduler/timing.rs | 15 + .../spark-harness/src/scheduler/unit_tests.rs | 15 + crates/spark-harness/tests/common/mod.rs | 15 + .../spark-harness/tests/provisional_commit.rs | 15 + .../spark-harness/tests/provisional_guards.rs | 15 + .../tests/provisional_journal.rs | 15 + .../tests/provisional_scheduler.rs | 15 + crates/spark-harness/tests/workflow_gates.rs | 15 + crates/spark-harvester/src/client.rs | 15 + crates/spark-harvester/src/export.rs | 15 + crates/spark-harvester/src/extractor.rs | 15 + crates/spark-harvester/src/filter.rs | 15 + crates/spark-harvester/src/lib.rs | 15 + crates/spark-harvester/src/main.rs | 15 + crates/spark-harvester/src/rights_gate.rs | 15 + .../tests/rights_gating_tests.rs | 15 + crates/spark-hive/src/adapter_engine.rs | 15 + crates/spark-hive/src/emission.rs | 15 + crates/spark-hive/src/geometry.rs | 15 + crates/spark-hive/src/lib.rs | 15 + crates/spark-hive/src/store.rs | 15 + crates/spark-inquisitor/src/audit.rs | 15 + crates/spark-inquisitor/src/auditor.rs | 15 + crates/spark-inquisitor/src/constitution.rs | 15 + crates/spark-inquisitor/src/eval.rs | 15 + crates/spark-inquisitor/src/evaluator.rs | 15 + crates/spark-inquisitor/src/interview.rs | 15 + crates/spark-inquisitor/src/lib.rs | 15 + crates/spark-inquisitor/src/main.rs | 15 + crates/spark-inquisitor/src/review.rs | 15 + crates/spark-inquisitor/src/triage.rs | 15 + .../tests/cli_exit_code_contracts.rs | 15 + .../tests/constitutional_rules.rs | 15 + .../tests/diff_auditor_edge_cases.rs | 15 + .../tests/issue_triage_evaluator.rs | 15 + crates/spark-mail-rs/src/api.rs | 15 + crates/spark-mail-rs/src/cortex_sync.rs | 15 + crates/spark-mail-rs/src/effect.rs | 15 + crates/spark-mail-rs/src/gandi.rs | 15 + crates/spark-mail-rs/src/lib.rs | 15 + crates/spark-mail-rs/src/main.rs | 15 + crates/spark-mail-rs/src/models.rs | 15 + crates/spark-mail-rs/src/relay.rs | 15 + crates/spark-mail-rs/src/smtp_server.rs | 15 + crates/spark-mail-rs/src/store.rs | 15 + .../examples/readiness_timing.rs | 15 + crates/spark-supervisor/src/config.rs | 15 + crates/spark-supervisor/src/lib.rs | 15 + crates/spark-supervisor/src/main.rs | 15 + crates/spark-supervisor/src/proc_telemetry.rs | 15 + crates/spark-supervisor/src/supervisor.rs | 15 + crates/spark-supervisor/tests/readiness.rs | 15 + crates/spark-supervisor/tests/status_cli.rs | 15 + docs/campaigns/cand4-qualification/a1-read.sh | 15 + .../cand4-qualification/build-cpu-fault.sh | 15 + docs/campaigns/cand4-qualification/hygiene.sh | 15 + docs/campaigns/cand4-qualification/inputs.sh | 15 + .../cand4-qualification/run-cand4.sh | 15 + .../cand4-qualification/run-windows.sh | 15 + .../campaigns/cand4-qualification/selftest.sh | 15 + docs/campaigns/next-phase-1/make-receipt.sh | 15 + docs/campaigns/next-phase-1/mark-evidence.sh | 15 + docs/campaigns/next-phase-1/run-campaign.sh | 15 + docs/campaigns/next-phase-1/run-v5.sh | 15 + docs/campaigns/next-phase-1/run-v6.sh | 15 + docs/campaigns/next-phase-1/run-v7.sh | 15 + docs/campaigns/next-phase-1/run-v8.sh | 15 + docs/campaigns/next-phase-1/selftest-v7.sh | 15 + docs/campaigns/next-phase-1/test-rows-v5.sh | 15 + docs/campaigns/next-phase-1/test-rows-v6.sh | 15 + docs/campaigns/next-phase-1/test-rows-v8.sh | 15 + docs/campaigns/next-phase-1/test-wiring-v7.sh | 15 + docs/campaigns/next-phase-1/v6-results.sh | 15 + docs/campaigns/next-phase-1/v8-results.sh | 15 + docs/campaigns/next-phase-2/make-receipt.sh | 15 + docs/campaigns/next-phase-2/run-faults.sh | 15 + .../open-model-qwen3/build-allen-subject.sh | 15 + .../open-model-qwen3/evidence-v2/build.sh | 15 + .../open-model-qwen3/evidence-v2/gate.sh | 15 + .../open-model-qwen3/evidence-v2/run-part.sh | 15 + .../open-model-qwen3/evidence-v3/build.sh | 15 + .../open-model-qwen3/evidence-v3/gate.sh | 15 + .../open-model-qwen3/evidence-v3/hold.sh | 15 + .../open-model-qwen3/evidence-v3/run-part.sh | 15 + .../open-model-qwen3/evidence-v4/build.sh | 15 + .../open-model-qwen3/evidence-v5/build.sh | 15 + .../open-model-qwen3/evidence-v5/run-all.sh | 15 + .../open-model-qwen3/evidence-v5/run-part.sh | 15 + .../open-model-qwen3/evidence-v6/build.sh | 15 + .../open-model-qwen3/evidence-v6/run-part.sh | 15 + .../open-model-qwen3/evidence-v6/run.sh | 15 + .../evidence-v7-d1/run-invocation.sh | 15 + .../open-model-qwen3/evidence-v7/build.sh | 15 + .../open-model-qwen3/evidence-v7/run-dry.sh | 15 + .../open-model-qwen3/evidence-v7/run-part.sh | 15 + .../open-model-qwen3/evidence-v7/run.sh | 15 + .../open-model-qwen3/evidence-v8/build.sh | 15 + .../open-model-qwen3/evidence-v8/run-dry.sh | 15 + .../open-model-qwen3/evidence-v8/run-part.sh | 15 + .../open-model-qwen3/evidence-v8/run.sh | 15 + docs/campaigns/open-model-qwen3/g6-gate.sh | 15 + .../open-model-qwen3/run-campaign-allen.sh | 15 + .../open-model-qwen3/run-qwen3-v2.sh | 15 + .../open-model-qwen3/run-qwen3-v3.sh | 15 + .../open-model-qwen3/run-qwen3-v4.sh | 15 + .../open-model-qwen3/run-qwen3-v5.sh | 15 + .../open-model-qwen3/run-qwen3-v6.sh | 15 + .../open-model-qwen3/run-qwen3-v7.sh | 15 + .../open-model-qwen3/run-qwen3-v8.sh | 15 + docs/campaigns/open-model-qwen3/run-qwen3.sh | 15 + docs/campaigns/open-model-qwen3/test-v3.sh | 15 + docs/campaigns/open-model-qwen3/test-v4.sh | 15 + docs/campaigns/open-model-qwen3/test-v5.sh | 15 + docs/campaigns/open-model-qwen3/test-v6.sh | 15 + docs/campaigns/open-model-qwen3/test-v7.sh | 15 + docs/campaigns/open-model-qwen3/test-v8.sh | 15 + docs/campaigns/open-model-qwen3/v3-rows.sh | 15 + docs/campaigns/open-model-qwen3/v4-rows.sh | 15 + docs/campaigns/open-model-qwen3/v5-rows.sh | 15 + docs/campaigns/open-model-qwen3/v8-checks.sh | 15 + .../open-model-smollm2/run-smollm2.sh | 15 + docs/campaigns/scoring/score-rows.sh | 15 + docs/campaigns/scoring/test-scoring-v5.sh | 15 + .../ACCEPTANCE-SMOLLM2-Q.md | 2 +- .../smollm2-qualification/a1-read.sh | 15 + .../smollm2-qualification/build-cpu-fault.sh | 15 + .../smollm2-qualification/hygiene.sh | 15 + .../campaigns/smollm2-qualification/inputs.sh | 15 + .../smollm2-qualification/run-smol2q.sh | 15 + .../smollm2-qualification/run-windows.sh | 15 + .../smollm2-qualification/selftest.sh | 15 + docs/inference/own30b-omega-door.rs | 15 + docs/release/receipts/np4-v2-evidence/demo.sh | 15 + e2e_tests/run_e2e_tests.sh | 15 + e2e_tests/src/harness.rs | 15 + e2e_tests/src/lib.rs | 15 + .../tests/test_tier1_feature_coverage.rs | 15 + e2e_tests/tests/test_tier2_boundaries.rs | 15 + e2e_tests/tests/test_tier3_cross_feature.rs | 15 + e2e_tests/tests/test_tier4_real_world.rs | 15 + install-inquisitor.sh | 15 + install.sh | 15 + scripts/abi-qualify.sh | 15 + scripts/agent-preflight.sh | 15 + scripts/allen_e2e_demo.sh | 15 + scripts/apply-ceremony-public-record.sh | 15 + scripts/bench/headstart-aien.sh | 15 + scripts/bench/headstart-m6-ab.sh | 15 + scripts/bench/headstart-selftest.sh | 15 + scripts/bench/headstart-summarize.sh | 15 + scripts/check-no-python.sh | 15 + scripts/check-release-candidate.sh | 15 + scripts/check-release-trust-config.sh | 15 + scripts/e2e_distill_test.sh | 15 + scripts/golden_path.sh | 15 + scripts/install-hooks.sh | 15 + scripts/key-ceremony.sh | 15 + scripts/own30b-chip-run.sh | 15 + scripts/own30b-pkv-bench.sh | 15 + scripts/own30b-pkv-chip-check.sh | 15 + scripts/own30b-pkv-lib.sh | 15 + scripts/own30b-pkv-ops-check.sh | 15 + scripts/own30b-pkv-two-process.sh | 15 + scripts/own30b-serve-restart.sh | 15 + scripts/own30b-serve-smoke.sh | 15 + scripts/package-release.sh | 15 + scripts/pins.sh | 15 + scripts/prefill-gate/fails-on-main.sh | 15 + scripts/prefill-gate/mutant.sh | 15 + scripts/preflight-branch-guard.sh | 15 + scripts/release-build.sh | 15 + scripts/release-publish-gate.sh | 15 + scripts/repro-build.sh | 15 + scripts/sampling-gate.sh | 15 + scripts/smoke_qwen3_8b.sh | 15 + scripts/sync-standalone-repos.sh | 15 + scripts/test-dry-run-workflow.sh | 15 + scripts/test-install-release.sh | 15 + scripts/test-install.sh | 15 + scripts/test-linked-compose.sh | 15 + scripts/test-native-identity.sh | 15 + scripts/test-offline-build.sh | 15 + scripts/test-offline-signing.sh | 15 + scripts/test-pins.sh | 15 + scripts/test-preflight-branch-guard.sh | 15 + scripts/test-public-key-integration.sh | 15 + scripts/test-release-checks.sh | 15 + scripts/test-release-gate-wiring.sh | 15 + scripts/test-release-real-tree.sh | 15 + scripts/test-release-signing-workflow.sh | 15 + scripts/verify-release-assets.sh | 15 + scripts/whole_system_e2e.sh | 15 + scripts/whole_system_e2e_faults.sh | 15 + scripts/zero-cuda-gate.sh | 15 + tests/gates/run.sh | 15 + tools/aien-local-ci/cron-tick.sh | 15 + tools/aien-local-ci/crumb-shim.sh | 15 + tools/aien-local-ci/forgejo-webhook.sh | 15 + tools/aien-local-ci/gc.sh | 15 + tools/aien-local-ci/health.sh | 15 + tools/aien-local-ci/install.sh | 15 + tools/aien-local-ci/pipeline.sh | 15 + .../aien-local-ci/tests/crumb_doctor_test.sh | 15 + tools/aien-local-ci/tests/crumb_real_test.sh | 15 + tools/aien-local-ci/tests/crumb_shim_test.sh | 15 + .../tests/per_head_target_test.sh | 15 + tools/aien-local-ci/tests/pipeline_test.sh | 15 + tools/aien-local-ci/tests/run.sh | 15 + tools/aien-local-ci/wt.sh | 15 + tools/aien-test/mutations/run_mutants.sh | 15 + tools/aien-test/src/bundle.rs | 15 + tools/aien-test/src/cache.rs | 15 + tools/aien-test/src/cli.rs | 15 + tools/aien-test/src/evidence.rs | 15 + tools/aien-test/src/graph.rs | 15 + tools/aien-test/src/identity.rs | 15 + tools/aien-test/src/lib.rs | 15 + tools/aien-test/src/main.rs | 15 + tools/aien-test/src/manifest.rs | 15 + tools/aien-test/src/plan.rs | 15 + tools/aien-test/src/process.rs | 15 + tools/aien-test/src/resources.rs | 15 + tools/aien-test/src/runner.rs | 15 + tools/aien-test/src/sandbox.rs | 15 + tools/aien-test/src/status.rs | 15 + tools/aien-test/src/testutil.rs | 15 + tools/aien-test/src/verdict.rs | 15 + tools/aien-test/src/verify.rs | 15 + tools/aien-test/src/why.rs | 15 + tools/aien-test/src/worker.rs | 15 + tools/aien-test/tests/committed_gates.rs | 15 + tools/aien-test/tests/local_ci.rs | 15 + tools/aien-verify/Cargo.toml | 2 +- tools/aien-verify/build.sh | 15 + tools/aien-verify/src/main.rs | 15 + tools/aien-verify/tests/run.sh | 15 + 874 files changed, 13117 insertions(+), 697 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 3c81077e..c8066ee1 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -117,7 +117,7 @@ bash scripts/agent-preflight.sh ## Certifications - Zero Plaintext Secrets: Hardware TPM vault only. No .env files on disk. - Sovereign Voice & Anti-Slop: Zero em dashes or en dashes present. -- License: AGPL-3.0-or-later governs (see LICENSE). COVENANT.md states values only. +- License: Apache-2.0 governs (see LICENSE). COVENANT.md states values only. ``` --- diff --git a/AGENT_CODE_OF_CONDUCT.md b/AGENT_CODE_OF_CONDUCT.md index c019264d..37fadaee 100644 --- a/AGENT_CODE_OF_CONDUCT.md +++ b/AGENT_CODE_OF_CONDUCT.md @@ -17,7 +17,7 @@ This Specification establishes non-negotiable operational requirements for all a --- ### Article II: Multi-Agent Topology, Inter-Agent Payloads, and Anti-Enclosure -1. **Heterogeneous Model Interoperability**: Autonomous swarms may incorporate models from any architecture (Atlas, Nemotron, Llama, Qwen, or custom AIEN pipelines) provided they comply with the repository LICENSE (AGPL-3.0-or-later) and respect the nonbinding COVENANT.md. +1. **Heterogeneous Model Interoperability**: Autonomous swarms may incorporate models from any architecture (Atlas, Nemotron, Llama, Qwen, or custom AIEN pipelines) provided they comply with the repository LICENSE (Apache-2.0) and respect the nonbinding COVENANT.md. 2. **Typed Inter-Agent Payloads**: Subagent communication must utilize structured, typed schemas (JSON or Bincode) rather than free-form conversational chatter. Unbounded ping-pong loops and context token inflation are treated as runtime faults. 3. **Attribution and Imprint Provenance**: Any distilled knowledge, learned heuristics, or memory entities transferred between agents must record canonical provenance in Cortex memory, preserving the downstream lineage and copyright attribution of the human Licensor. diff --git a/ARTIFACT_LICENSING.md b/ARTIFACT_LICENSING.md index 41eb90e9..b376dcd8 100644 --- a/ARTIFACT_LICENSING.md +++ b/ARTIFACT_LICENSING.md @@ -10,12 +10,12 @@ AIEN software is licensed independently from AIEN model artifacts. Possession, c | Layer | Artifact Description | Canonical License | Identifier | | :--- | :--- | :--- | :--- | -| **Core Software Runtime** | Rust crates (`aien-scheduler`, `aien-kv-cache`, `cortex-rs`, `spark-rsi`, `aien-harness`, CLI, web gateways) | GNU Affero General Public License v3.0 or later | `AGPL-3.0-or-later` | -| **Protocols & Specifications** | Inference ABI specifications, Crumb protocol definitions, schemas, and formats | GNU Affero General Public License v3.0 or later | `AGPL-3.0-or-later` | -| **Benchmark Harness Code** | Measurement driver, CLI, test generators, and harness binaries in `benchmarks/` | GNU Affero General Public License v3.0 or later | `AGPL-3.0-or-later` | +| **Core Software Runtime** | Rust crates (`aien-scheduler`, `aien-kv-cache`, `cortex-rs`, `spark-rsi`, `aien-harness`, CLI, web gateways) | Apache License 2.0 | `Apache-2.0` | +| **Protocols & Specifications** | Inference ABI specifications, Crumb protocol definitions, schemas, and formats | Apache License 2.0 for schemas and reference code; Community Specification License 1.0 for published specifications (aien-protocols-mv) | `Apache-2.0` / `CSL-1.0` | +| **Benchmark Harness Code** | Measurement driver, CLI, test generators, and harness binaries in `benchmarks/` | Apache License 2.0 | `Apache-2.0` | | **Benchmark Datasets & Metrics** | Raw telemetry JSON, hardware timing records, power logs, and rendered SVG comparison charts | Creative Commons Zero 1.0 Universal | `CC0-1.0` | | **AI Foundation Model Weights** | Neural network checkpoints, tensors, and tokenizer parameters released by AIEN | Specific Model License | Refer to accompanying `MODEL_LICENSE` | -| **Training Code & Distillation** | Model training recipes, data processing pipelines, and distillation scripts | GNU Affero General Public License v3.0 or later | `AGPL-3.0-or-later` | +| **Training Code & Distillation** | Model training recipes, data processing pipelines, and distillation scripts | Apache License 2.0 | `Apache-2.0` | | **Training Datasets** | Curated datasets, imprints, or knowledge corpora | Dedicated Data License | Refer to accompanying `DATA_LICENSE` | | **Constitutional Governance** | Mission, principles, engineering standards, and developer oaths | Upstream Project Charter | Non-binding on downstream software users | | **Voluntary Reciprocity** | Shared research freedoms, open weight releases, and reciprocal distillation program | Bilateral Research Covenant | Refer to `OPEN_COOPERATION_COVENANT.md` | @@ -33,4 +33,4 @@ To maintain technical and legal precision: ## Downstream Implementation Autonomy -AIEN software is licensed under the GNU Affero General Public License v3.0 or later (`LICENSE`, `NOTICE`). Its terms, not this document, decide what a downstream user may do: they cover copying, modifying, linking, distributing and offering the software over a network. Model weights are separate works: a third-party model keeps its publisher's license (for example SmolLM2-1.7B-Instruct, Apache-2.0, see `NOTICE` and `ATTRIBUTION.md`), and running a model on AIEN does not relicense it. +AIEN software is licensed under the Apache License 2.0 (`LICENSE`, `NOTICE`). Its terms, not this document, decide what a downstream user may do: they cover copying, modifying, linking, distributing and offering the software over a network, and they include an express patent grant. Model weights are separate works: a third-party model keeps its publisher's license (for example SmolLM2-1.7B-Instruct, Apache-2.0, see `NOTICE` and `ATTRIBUTION.md`), and running a model on AIEN does not relicense it. diff --git a/ATTRIBUTION.md b/ATTRIBUTION.md index cbfeb45a..df6d950c 100644 --- a/ATTRIBUTION.md +++ b/ATTRIBUTION.md @@ -35,6 +35,6 @@ the AIEN source code, and it keeps its own licence. Zhao, Cyril Zakka, Mathieu Morlon, Colin Raffel, Leandro von Werra, Thomas Wolf, "SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Model", arXiv:2502.02737 (2025). -- **Boundary**: AIEN code stays under AGPL-3.0-or-later. The model files stay under +- **Boundary**: AIEN code stays under Apache-2.0. The model files stay under Apache-2.0 with their notices preserved. Running the model through AIEN, or storing it under another directory or file name, does not change either licence. diff --git a/CONSTITUTION.md b/CONSTITUTION.md index 6b6e2438..660c6fec 100644 --- a/CONSTITUTION.md +++ b/CONSTITUTION.md @@ -1,6 +1,6 @@ # The Sovereign AI Constitution -> **Governance Notice:** This Constitution serves exclusively as the internal architectural charter, technical doctrine, and engineering standard for the upstream AIEN Sovereign AI Ecosystem. It does not modify, condition, restrict, or supplement the license granted to users of AIEN software, the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later, see LICENSE). Adopting, enforcing, or retaining this internal charter is not a condition of that license. +> **Governance Notice:** This Constitution serves exclusively as the internal architectural charter, technical doctrine, and engineering standard for the upstream AIEN Sovereign AI Ecosystem. It does not modify, condition, restrict, or supplement the license granted to users of AIEN software, the Apache License, Version 2.0 (Apache-2.0, see LICENSE). Adopting, enforcing, or retaining this internal charter is not a condition of that license. ## Preamble @@ -32,7 +32,7 @@ This Constitution establishes our foundational principles, our engineering stand ### Section 3. Upstream Architectural Charter and Downstream Freedom 1. This Constitution serves as the internal architectural charter, technical doctrine, and engineering standard for the upstream AIEN Sovereign AI Ecosystem and its core repositories. -2. Downstream forks, independent applications, client libraries, and commercial distributions are governed by the terms of the AGPL-3.0-or-later (see [LICENSE](LICENSE)). This internal development charter adds no condition to that license. +2. Downstream forks, independent applications, client libraries, and commercial distributions are governed by the terms of Apache-2.0 (see [LICENSE](LICENSE)). This internal development charter adds no condition to that license. 3. Legal Decoupling: Legal rights, grants, and warranties reside exclusively within the formal LICENSE and NOTICE documents, and artifact licensing policies outlined in [ARTIFACT_LICENSING.md](ARTIFACT_LICENSING.md). This Constitution imposes zero behavioral covenants or philosophical constraints on downstream users, ensuring standard open-source compatibility across public package registries, corporate environments, and independent commercial deployments. ### Section 4. The Zero-Surveillance Invariant @@ -42,11 +42,11 @@ Privacy and mutual trust form the basis of open cooperation. 3. Leaking user data or secret keys is treated as a critical defect requiring immediate remediation. ### Section 5. The One Team Principle and Reciprocal Cooperation -1. What we discover, we share openly. What we construct in software, we release under the AGPL-3.0-or-later, so that improvements stay open. +1. What we discover, we share openly. What we construct in software, we release under Apache-2.0 and publish our improvements, so that they stay open in practice. 2. Knowledge must remain accessible to the human family. We share tools freely with individuals, startups, and community builders while encouraging reciprocal weight transparency and distillation access from frontier laboratories. 3. Upstream contributions are foundational: any public open-source project adapted to run on our stack is contributed back upstream. We never hoard fixes or improvements. 4. Voluntary Bilateral Cooperation and Reciprocal Commons: -Hardware manufacturers (including NVIDIA, AMD, Intel, Apple) and compute providers (such as RunPod, Lambda, and independent data centers) may adopt, embed, and deploy our runtime stack under the terms of the AGPL-3.0-or-later to improve hardware efficiency, eliminate memory overhead, and expand bandwidth for developers. +Hardware manufacturers (including NVIDIA, AMD, Intel, Apple) and compute providers (such as RunPod, Lambda, and independent data centers) may adopt, embed, and deploy our runtime stack under the terms of Apache-2.0 to improve hardware efficiency, eliminate memory overhead, and expand bandwidth for developers. For organizations seeking deeper bilateral research cooperation, model weight transparency, distillation reciprocity, or joint compute pooling, the voluntary terms of [OPEN_COOPERATION_COVENANT.md](OPEN_COOPERATION_COVENANT.md) provide a collaborative framework. ### Section 6. The Contributor Oath @@ -102,7 +102,7 @@ To maintain code quality, security, and mutual trust: - **Critical Invariants (Hard Blocking Gates)**: Pull requests must pass automated audits for hardware-backed secret protection at rest, no unsolicited outbound telemetry, and license integrity. Violations result in automatic PR rejection. - **Stylistic and Unslop Standards (Core Standards & Community Advisory)**: The unslop invariant is enforced across core repositories, internal agents, and official releases. For outside community pull requests, style audits provide automated formatting suggestions rather than immediate rejection. 2. **Integrity of Purpose**: Submissions attempting to introduce surveillance hooks, covert tracking SDKs, or extractive lock-in mechanisms will be rejected. -3. **Open Downstream Terms**: Downstream users, forks, and commercial builders operate under the terms of the AGPL-3.0-or-later (see LICENSE). +3. **Open Downstream Terms**: Downstream users, forks, and commercial builders operate under the terms of Apache-2.0 (see LICENSE). 4. **Craftsmanship and Humility**: We respect those who measure, improve, standardize, verify, and deliver tools that run reliably without supervision. --- diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7217414f..eff0ef04 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -14,8 +14,8 @@ git commit -s -m "feat(subsystem): descriptive commit message" ## Licensing of Contributions -- All software code, including the inference ABI (`aien-inference-abi`), is contributed under the [GNU Affero General Public License v3.0 or later](LICENSE) (`AGPL-3.0-or-later`). -- Architectural specifications and documentation are contributed under `AGPL-3.0-or-later`. +- All software code, including the inference ABI (`aien-inference-abi`), is contributed under the [Apache License 2.0](LICENSE) (`Apache-2.0`). +- Architectural specifications and documentation are contributed under `Apache-2.0`. - Benchmark datasets and telemetry logs are dedicated to the public domain under [CC0-1.0](LICENSES/CC0-1.0.txt). - Model weights and curated training datasets follow classifications in [ARTIFACT_LICENSING.md](ARTIFACT_LICENSING.md). diff --git a/COVENANT.md b/COVENANT.md index 5b5ad606..f8b0bd28 100644 --- a/COVENANT.md +++ b/COVENANT.md @@ -1,7 +1,7 @@ # Covenant of Open Building This document states values. It grants no legal rights and restricts none. -The software license is the GNU Affero General Public License v3.0 or later, AGPL-3.0-or-later (see LICENSE). Where this covenant and +The software license is the Apache License, Version 2.0, Apache-2.0 (see LICENSE). Where this covenant and LICENSE disagree, LICENSE governs. ## The ask @@ -17,7 +17,7 @@ discriminate against independent builders. ## Scope -This covenant binds no one. It modifies no rights or obligations under the AGPL-3.0-or-later, changes no +This covenant binds no one. It modifies no rights or obligations under the Apache-2.0 license, changes no historical license, overrides no third-party terms of service, and creates no damages or enforcement mechanism. Legal review of the licensing posture is tracked separately and is not closed by this document. diff --git a/Cargo.toml b/Cargo.toml index 52ca9775..1200bd8e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -63,7 +63,7 @@ members = [ [workspace.package] version = "0.1.0" edition = "2021" -license = "AGPL-3.0-or-later" +license = "Apache-2.0" authors = ["Drake Stapleton "] repository = "https://github.com/aien-spark/aien-sovereign-core" diff --git a/LICENSE b/LICENSE index be3f7b28..d6456956 100644 --- a/LICENSE +++ b/LICENSE @@ -1,661 +1,202 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/NOTICE b/NOTICE index 606feb20..a5b1bf89 100644 --- a/NOTICE +++ b/NOTICE @@ -1,22 +1,31 @@ +AIEN Sovereign Ecosystem (AienOS / Omega / CUDA++ / INTERPLANE) AIEN Sovereign Core -Copyright 2026 Drake Stapleton and AIEN Contributors +Copyright 2024-2026 Drake Stapleton and AIEN Contributors (https://github.com/aien-dev) -This product includes software developed by Drake Stapleton in cognitive -partnership with AIEN (Autonomous Cognitive Architecture operating on the -Atlas Framework). +This product includes software developed as part of the AIEN Sovereign +Ecosystem (https://www.aienos.com). -Website: https://github.com/aien-dev/aien-sovereign-core -Lead Architect: Drake Stapleton +The Omega language (omega-mv), CUDA++ GPU toolchain (CUDApp), Aienux kernel, +INTERPLANE protocol, and FORGE realization layer (physics-mv) are foundational +components designed and architected by Drake Stapleton. -Licensed under the GNU Affero General Public License v3.0 or later -(SPDX-License-Identifier: AGPL-3.0-or-later). The full, unmodified -license text is in LICENSE, taken verbatim from https://www.gnu.org/licenses/agpl-3.0.txt. +Lead Architect: Drake Stapleton -Values and anti-enclosure principles live in the nonbinding COVENANT.md, which -grants and restricts no legal rights. +TRADEMARK NOTICE: +Pursuant to Section 6 of the Apache License, Version 2.0, this license does not +grant permission to use the trade names, trademarks, service marks, or product +names of the Licensor. "AIEN", "AienOS", "Aienux", "Omega", "CUDA++", "CUDApp", +"INTERPLANE", and "FORGE" are trademarks of Drake Stapleton. Any derivative +works or redistributions modified from the canonical upstream repositories +(https://github.com/aien-dev) may not be branded or marketed as official +"AienOS Verified" or "Omega" distributions without express written permission. +THIRD-PARTY COMPONENTS: Third-party model (not part of this source tree): SmolLM2-1.7B-Instruct by Hugging Face (HuggingFaceTB), revision 31b70e2e869a7173562077fd711b654946d38674, licensed under the Apache License 2.0 (LICENSES/Apache-2.0.txt). Where AIEN distributes these weights, the publisher's model card and this notice go with them. Details and attribution: ATTRIBUTION.md. + +Values and anti-enclosure principles live in the nonbinding COVENANT.md, which +grants and restricts no legal rights. diff --git a/README.md b/README.md index 91baafc8..48981692 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # aien-sovereign-core -[![License: AGPL-3.0-or-later](https://img.shields.io/badge/License-AGPL--3.0--or--later-blue.svg)](LICENSE) +[![License: Apache-2.0](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](LICENSE) The Rust workspace of the AIEN host runtime and its verification tooling, running on Linux on the NVIDIA DGX Spark (Grace Blackwell GB10). It is where AIEN serves models today, where every change to the project is judged, and where releases are built and installed. @@ -60,4 +60,4 @@ Read [CONSTITUTION.md](CONSTITUTION.md) and [AGENTS.md](AGENTS.md) before openin ## License and values -Licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later). See [LICENSE](LICENSE) and [NOTICE](NOTICE). Values live in the nonbinding [COVENANT.md](COVENANT.md): keep foundational advances open. It grants and restricts no legal rights. Built for NVIDIA Blackwell hardware; full notices in [ATTRIBUTION.md](ATTRIBUTION.md). +Licensed under the Apache License, Version 2.0 (Apache-2.0). See [LICENSE](LICENSE) and [NOTICE](NOTICE). Values live in the nonbinding [COVENANT.md](COVENANT.md): keep foundational advances open. It grants and restricts no legal rights. Built for NVIDIA Blackwell hardware; full notices in [ATTRIBUTION.md](ATTRIBUTION.md). diff --git a/THIRD_PARTY.md b/THIRD_PARTY.md index 3bc08983..adf7180c 100644 --- a/THIRD_PARTY.md +++ b/THIRD_PARTY.md @@ -1,6 +1,6 @@ # Third-Party Model Notices -AIEN code is AGPL-3.0-or-later (`LICENSE`, `NOTICE`). The models below are separate +AIEN code is Apache-2.0 (`LICENSE`, `NOTICE`). The models below are separate third-party works. Each keeps its publisher's licence; running one on AIEN does not relicense it. The SmolLM2 attribution detail lives in `ATTRIBUTION.md` and `NOTICE`. diff --git a/benchmarks/crates/bench_apples_to_apples/Cargo.toml b/benchmarks/crates/bench_apples_to_apples/Cargo.toml index 5beba4d6..b4854987 100644 --- a/benchmarks/crates/bench_apples_to_apples/Cargo.toml +++ b/benchmarks/crates/bench_apples_to_apples/Cargo.toml @@ -3,7 +3,7 @@ name = "bench_apples_to_apples" version = "0.1.0" edition = "2021" authors = ["Drake Stapleton "] -license = "AGPL-3.0-or-later" +license = "Apache-2.0" [dependencies] aien-inference-abi = { path = "../../../crates/aien-inference-abi" } diff --git a/benchmarks/crates/bench_apples_to_apples/src/engine_aien.rs b/benchmarks/crates/bench_apples_to_apples/src/engine_aien.rs index e00bcf4c..2e1ab43e 100644 --- a/benchmarks/crates/bench_apples_to_apples/src/engine_aien.rs +++ b/benchmarks/crates/bench_apples_to_apples/src/engine_aien.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! AIEN Native Transformer engine benchmark driver with Blackwell GB10 GPU acceleration. //! Executes real forward computation on DGX Spark GB10 in unified memory. diff --git a/benchmarks/crates/bench_apples_to_apples/src/main.rs b/benchmarks/crates/bench_apples_to_apples/src/main.rs index bbc99c73..798d575a 100644 --- a/benchmarks/crates/bench_apples_to_apples/src/main.rs +++ b/benchmarks/crates/bench_apples_to_apples/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Standalone benchmark driver for the AIEN native reference engine on DGX Spark GB10: //! concurrency sweeps with thermal cooldown, telemetry and a token parity oracle. diff --git a/benchmarks/crates/bench_apples_to_apples/src/metrics.rs b/benchmarks/crates/bench_apples_to_apples/src/metrics.rs index 11242d5f..ee2f9a43 100644 --- a/benchmarks/crates/bench_apples_to_apples/src/metrics.rs +++ b/benchmarks/crates/bench_apples_to_apples/src/metrics.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Statistical calculations for percentiles, throughput, and energy metrics. /// Computes the p-th percentile from a slice of floats. diff --git a/benchmarks/crates/bench_apples_to_apples/src/telemetry.rs b/benchmarks/crates/bench_apples_to_apples/src/telemetry.rs index 2c060a39..18cc91d7 100644 --- a/benchmarks/crates/bench_apples_to_apples/src/telemetry.rs +++ b/benchmarks/crates/bench_apples_to_apples/src/telemetry.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Hardware and process telemetry samplers: GPU power, temperature, RSS, and thermal cool-down. use std::fs; diff --git a/benchmarks/crates/bench_apples_to_apples/src/types.rs b/benchmarks/crates/bench_apples_to_apples/src/types.rs index 0a89ebb1..324b3d96 100644 --- a/benchmarks/crates/bench_apples_to_apples/src/types.rs +++ b/benchmarks/crates/bench_apples_to_apples/src/types.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Common data types and schemas for the neutral apples-to-apples benchmark suite. use serde::{Deserialize, Serialize}; diff --git a/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/01-fetch.sh b/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/01-fetch.sh index 314a7254..def638c8 100644 --- a/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/01-fetch.sh +++ b/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/01-fetch.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Stage 1: fetch pinned submodules and apply headstart patches (mirrors upstream scripts/setup.sh). set -euo pipefail H=~/workspace/headstart-exp/headstart diff --git a/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/02-build.sh b/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/02-build.sh index 875e86dc..87b89d2c 100644 --- a/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/02-build.sh +++ b/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/02-build.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Stage 2: build the patched stage-1 rustc and patched cargo, capped at 12 jobs, niced. # Mirrors upstream scripts/setup.sh build lines; only -j and nice are added. set -euo pipefail diff --git a/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/03-sanity.sh b/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/03-sanity.sh index 9be9c91a..dc8d1236 100644 --- a/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/03-sanity.sh +++ b/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/03-sanity.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Stage 3: digests, smoke test, upstream correctness checks. Output to logs/. set -uo pipefail E=~/workspace/headstart-exp diff --git a/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/04-active.sh b/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/04-active.sh index 5e95776a..fa25733b 100644 --- a/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/04-active.sh +++ b/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/04-active.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Proves the ON arm activates headstart: JSON message reasons and the rustc # flags cargo passes, on the upstream smoke workspace, OFF vs ON. set -uo pipefail diff --git a/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/05-measure.sh b/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/05-measure.sh index dcc8ffa7..30ff4a8b 100644 --- a/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/05-measure.sh +++ b/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/05-measure.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Stage 5: the M5 A/B measurement through the shared M0 runner (extended). # Same patched toolchain for both arms; only CARGO_UNSTABLE_HEADSTART differs. set -euo pipefail diff --git a/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/06-collect.sh b/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/06-collect.sh index d46651b8..2e5f1f95 100644 --- a/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/06-collect.sh +++ b/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/06-collect.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Stage 6: copy the toolchain pin, digests and small upstream-test logs into # the evidence dir. No upstream source or binaries are copied. set -euo pipefail diff --git a/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/07-upstream-unit.sh b/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/07-upstream-unit.sh index 0d261f72..5f75c2ec 100644 --- a/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/07-upstream-unit.sh +++ b/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/07-upstream-unit.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Stage 7: upstream unit tests for the patches (after the timing runs). # PATH changes are local to this process only. set -uo pipefail diff --git a/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/08-status.sh b/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/08-status.sh index 8e0379cc..e1c36148 100644 --- a/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/08-status.sh +++ b/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/08-status.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Report whether the measured AIEN source tree is clean and who holds the quiet flag. S=~/workspace/headstart-exp/aien-work/src cd "$S" || exit 1 diff --git a/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/09-harvest-ice.sh b/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/09-harvest-ice.sh index 2933b064..7088c9fc 100644 --- a/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/09-harvest-ice.sh +++ b/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/09-harvest-ice.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Move the ICE reports left by the first (pre-harvest) abincr run out of the # measured worktree: keep each report's head (up to the backtrace) in the # committed data, delete the files so the worktree root is clean again. diff --git a/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/10-split-ab.sh b/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/10-split-ab.sh index d2e0ec12..38fbf06f 100644 --- a/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/10-split-ab.sh +++ b/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/10-split-ab.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The first ab stage was stopped after round 1 (host contaminated, before the # per-sample hold existed). Move its samples out of samples.jsonl into a # separate raw file so the summary only uses the full held rerun. diff --git a/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/12-ab-held.sh b/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/12-ab-held.sh index 5e9f8afd..b4aa4a98 100644 --- a/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/12-ab-held.sh +++ b/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/12-ab-held.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Start the held cold A/B rerun detached from the agent's shell, so a tool # time limit cannot stop it mid-sample. Writes its exit code to a marker file. E=~/workspace/headstart-exp diff --git a/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/13-diag-once.sh b/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/13-diag-once.sh index b12f7e04..ce677c98 100644 --- a/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/13-diag-once.sh +++ b/benchmarks/data/headstart/patched-20261015-4c83e38/toolchain/13-diag-once.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # One untimed diagnostic of the Headstart-ON incremental failure, run as # `quietlock run -- 13-diag-once.sh inner` (refused, exit 75, while another # job holds the quiet flag). Steps: prime an ON incremental check on a fresh diff --git a/crates/aien-abi-conformance/src/build.rs b/crates/aien-abi-conformance/src/build.rs index cd2ecb24..b542a5b1 100644 --- a/crates/aien-abi-conformance/src/build.rs +++ b/crates/aien-abi-conformance/src/build.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Shared `build.rs` steps for the crates that link an omega archive: the C-side ABI check, //! the archive identity check, and the `cargo:rustc-env` identity record the crate exposes at //! run time (`native_identity()`), so a binary can say what it linked. diff --git a/crates/aien-abi-conformance/src/header.rs b/crates/aien-abi-conformance/src/header.rs index e3adf3da..61ec9e00 100644 --- a/crates/aien-abi-conformance/src/header.rs +++ b/crates/aien-abi-conformance/src/header.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Just enough C header reading for omega's plain ABI headers: comments and preprocessor //! lines removed, then top-level declarations split on `;`. It reads //! `typedef struct [Tag] { ... } Name;` (field names in order), prototypes and diff --git a/crates/aien-abi-conformance/src/identity.rs b/crates/aien-abi-conformance/src/identity.rs index 7216c8d6..5776c312 100644 --- a/crates/aien-abi-conformance/src/identity.rs +++ b/crates/aien-abi-conformance/src/identity.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Native archive identity (used from `build.rs`). //! //! `native-artifacts.lock` (repository root) records the expected sha256 of each archive built diff --git a/crates/aien-abi-conformance/src/lib.rs b/crates/aien-abi-conformance/src/lib.rs index 5baa969f..6e7ab7db 100644 --- a/crates/aien-abi-conformance/src/lib.rs +++ b/crates/aien-abi-conformance/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! ABI conformance for the omega C boundaries that sovereign-core mirrors by hand //! (`aien-omega-compose` over `rxc_host_abi.h`, `aien-omega-gpu` over the `omega_gpu_*` headers). //! diff --git a/crates/aien-abi-conformance/src/manifest.rs b/crates/aien-abi-conformance/src/manifest.rs index f0ce2cb1..146d4b57 100644 --- a/crates/aien-abi-conformance/src/manifest.rs +++ b/crates/aien-abi-conformance/src/manifest.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The manifest: one line per fact, `#` starts a comment. //! //! ```text diff --git a/crates/aien-abi-conformance/src/native.rs b/crates/aien-abi-conformance/src/native.rs index 06322426..a3bc5c70 100644 --- a/crates/aien-abi-conformance/src/native.rs +++ b/crates/aien-abi-conformance/src/native.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Run-time view of what a binary linked (filled from the `build.rs` identity record). /// One native component as linked into this binary. diff --git a/crates/aien-abi-conformance/src/probe.rs b/crates/aien-abi-conformance/src/probe.rs index f3d23fed..1e13a7bb 100644 --- a/crates/aien-abi-conformance/src/probe.rs +++ b/crates/aien-abi-conformance/src/probe.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! C side of the check (used from `build.rs`): headers, a compiled layout probe, and `nm`. use crate::header; diff --git a/crates/aien-abi-conformance/src/rust.rs b/crates/aien-abi-conformance/src/rust.rs index 88dcb6df..5b35deaa 100644 --- a/crates/aien-abi-conformance/src/rust.rs +++ b/crates/aien-abi-conformance/src/rust.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Rust side: declaration macros that record what they declare, and the manifest renderer. use crate::manifest::{canon_sig, make_sig}; diff --git a/crates/aien-abi-conformance/tests/c_side.rs b/crates/aien-abi-conformance/tests/c_side.rs index 65e4b6c9..9134daf7 100644 --- a/crates/aien-abi-conformance/tests/c_side.rs +++ b/crates/aien-abi-conformance/tests/c_side.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The C-side check against small synthetic headers and archives: one compatible case and one //! negative case per kind of drift the mission names (equal-size reorder, width, signedness, //! parameter type, ABI version constant, missing symbol, corrupted archive). diff --git a/crates/aien-abi-core/src/lib.rs b/crates/aien-abi-core/src/lib.rs index a5a3de32..607b6606 100644 --- a/crates/aien-abi-core/src/lib.rs +++ b/crates/aien-abi-core/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use async_trait::async_trait; use serde::{Deserialize, Serialize}; use std::collections::HashMap; diff --git a/crates/aien-abi-core/tests/attention_geometry.rs b/crates/aien-abi-core/tests/attention_geometry.rs index 2c1989f4..033cb5a9 100644 --- a/crates/aien-abi-core/tests/attention_geometry.rs +++ b/crates/aien-abi-core/tests/attention_geometry.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Contract tests for `AttentionGeometry` (Drake's attention hardening cut, phase 1). //! Numbers come from the model configs in this repo, not from guesses. diff --git a/crates/aien-abi-core/tests/kv_seam_defaults.rs b/crates/aien-abi-core/tests/kv_seam_defaults.rs index 23ef1d66..dfe1f693 100644 --- a/crates/aien-abi-core/tests/kv_seam_defaults.rs +++ b/crates/aien-abi-core/tests/kv_seam_defaults.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! C6a (sc#484, ADR 0003 sections 6.1 to 6.3): the backend trait gains two //! hooks for persistent KV, `computed_prefix` and `restore_sequence`. A backend //! that implements neither must behave as it does today: it reports no diff --git a/crates/aien-allen-memory/src/lib.rs b/crates/aien-allen-memory/src/lib.rs index 4d4e97ec..8ab08cc4 100644 --- a/crates/aien-allen-memory/src/lib.rs +++ b/crates/aien-allen-memory/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! ALLEN scoped memory store (aien-architecture#159). //! //! A SEPARATE record store `.allen-memory/`, bound to the engaged ALLEN diff --git a/crates/aien-allen-memory/src/refusal.rs b/crates/aien-allen-memory/src/refusal.rs index f26c3d57..b4d445ad 100644 --- a/crates/aien-allen-memory/src/refusal.rs +++ b/crates/aien-allen-memory/src/refusal.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Every way a memory operation can say no, in plain words. use std::fmt; diff --git a/crates/aien-allen-memory/src/schema.rs b/crates/aien-allen-memory/src/schema.rs index 0e5a65c3..59668101 100644 --- a/crates/aien-allen-memory/src/schema.rs +++ b/crates/aien-allen-memory/src/schema.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Schema `aien.allen.memory/1`. Every struct read from disk denies unknown //! fields. The log holds ciphertext only; plaintext never reaches `log/`. use crate::refusal::MemoryRefusal as R; diff --git a/crates/aien-allen-memory/src/store.rs b/crates/aien-allen-memory/src/store.rs index d8848577..50e1591a 100644 --- a/crates/aien-allen-memory/src/store.rs +++ b/crates/aien-allen-memory/src/store.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The store `.allen-memory/`: //! log/ `l<20 digits>.json` immutable hash-chained records (ciphertext only) //! keys/ `-v.key`, 32 random bytes, mode 0600 (dir 0700) diff --git a/crates/aien-allen-memory/tests/memory_test.rs b/crates/aien-allen-memory/tests/memory_test.rs index 0f8698de..4c6c6a5c 100644 --- a/crates/aien-allen-memory/tests/memory_test.rs +++ b/crates/aien-allen-memory/tests/memory_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! HOST FIXTURE tests: identities are made-up byte arrays standing in for a //! `Resolved` value; no real ALLEN subject, no daemon, no model is involved. use aien_allen::Resolved; diff --git a/crates/aien-allen-profile/src/context.rs b/crates/aien-allen-profile/src/context.rs index 5e30f802..838221f3 100644 --- a/crates/aien-allen-profile/src/context.rs +++ b/crates/aien-allen-profile/src/context.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! `PersonaContext`: the ONE typed function between a saved profile and the //! prompt. Deterministic (preferences sorted by key), bounded (the rendered //! block is at most [`CONTEXT_MAX_BYTES`]; preferences that do not fit are diff --git a/crates/aien-allen-profile/src/lib.rs b/crates/aien-allen-profile/src/lib.rs index 82871a61..37d712e3 100644 --- a/crates/aien-allen-profile/src/lib.rs +++ b/crates/aien-allen-profile/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! ALLEN persona profile v1 (aien-architecture#159). //! //! A small, versioned, user-editable profile (display name, tone, verbosity, diff --git a/crates/aien-allen-profile/src/refusal.rs b/crates/aien-allen-profile/src/refusal.rs index 68a7cd2e..6da24a2d 100644 --- a/crates/aien-allen-profile/src/refusal.rs +++ b/crates/aien-allen-profile/src/refusal.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Every way a profile operation can say no, in plain words. use std::fmt; diff --git a/crates/aien-allen-profile/src/schema.rs b/crates/aien-allen-profile/src/schema.rs index a4f0578a..6d277dfc 100644 --- a/crates/aien-allen-profile/src/schema.rs +++ b/crates/aien-allen-profile/src/schema.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Schema `aien.allen.profile/1` and its validation. Every struct that is //! read from disk or from a request denies unknown fields. use crate::refusal::ProfileRefusal; diff --git a/crates/aien-allen-profile/src/store.rs b/crates/aien-allen-profile/src/store.rs index e0ce2fb1..3dab87c5 100644 --- a/crates/aien-allen-profile/src/store.rs +++ b/crates/aien-allen-profile/src/store.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The revision store `.allen-profile/`: immutable files //! `r00000000000000000001.json`, `r...2.json`, ... never edited in place. //! diff --git a/crates/aien-allen-profile/tests/profile_test.rs b/crates/aien-allen-profile/tests/profile_test.rs index ecf6173b..713ab057 100644 --- a/crates/aien-allen-profile/tests/profile_test.rs +++ b/crates/aien-allen-profile/tests/profile_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Profile store tests. FIXTURE-ONLY: identities here are fixed byte arrays, //! not subjects resolved from AIENOS. No model is involved. use aien_allen_profile::{ diff --git a/crates/aien-allen/src/binding.rs b/crates/aien-allen/src/binding.rs index 0988a720..d32be0e9 100644 --- a/crates/aien-allen/src/binding.rs +++ b/crates/aien-allen/src/binding.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The host pin record `.allen-binding`: what this machine resolved //! last. It is sovereign-core's own record, NOT part of the ALLEN subject //! (ADR 0035 I3: the subject holds no machine id). The machine id is its own diff --git a/crates/aien-allen/src/deployment.rs b/crates/aien-allen/src/deployment.rs index 3cebb69e..984de545 100644 --- a/crates/aien-allen/src/deployment.rs +++ b/crates/aien-allen/src/deployment.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Host-produced deployment record `.allen-deployments`: which model //! artifacts served which logical agent, in order. Append-only JSON lines, //! each line hash-chained to the previous one. Digests come from hashing diff --git a/crates/aien-allen/src/lib.rs b/crates/aien-allen/src/lib.rs index 45b0752a..3f8c06b8 100644 --- a/crates/aien-allen/src/lib.rs +++ b/crates/aien-allen/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! ALLEN identity gate (aien-architecture ADR 0035, aienos ADR 0018). //! //! RESOLVE ONLY. This crate reads a kind-24 SubjectState object that AIENOS diff --git a/crates/aien-allen/src/resolve.rs b/crates/aien-allen/src/resolve.rs index bb928613..cd874aff 100644 --- a/crates/aien-allen/src/resolve.rs +++ b/crates/aien-allen/src/resolve.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Resolve-only gate. Never provisions: no function in this crate creates a //! subject object (a test scans the source for that). Missing or damaged //! state is a [`Refusal`]. diff --git a/crates/aien-allen/src/subject_v0.rs b/crates/aien-allen/src/subject_v0.rs index d2a0560e..d8a9162a 100644 --- a/crates/aien-allen/src/subject_v0.rs +++ b/crates/aien-allen/src/subject_v0.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The ONLY file that knows the kind-24 SubjectState byte layout. //! //! Format: aienos ADR 0018 s2.2 (PROPOSED, not frozen). Reference decoder: diff --git a/crates/aien-allen/tests/deployment_test.rs b/crates/aien-allen/tests/deployment_test.rs index a63721e9..f071a0a7 100644 --- a/crates/aien-allen/tests/deployment_test.rs +++ b/crates/aien-allen/tests/deployment_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Model swap / rollback / KV discard / deployment record tamper rows. //! //! PLACEHOLDER rows use synthetic digests and do NOT establish real diff --git a/crates/aien-allen/tests/e2e_demo_subject.rs b/crates/aien-allen/tests/e2e_demo_subject.rs index a0c9537b..b1519fe9 100644 --- a/crates/aien-allen/tests/e2e_demo_subject.rs +++ b/crates/aien-allen/tests/e2e_demo_subject.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Operator input for the ALLEN end-to-end demo (scripts/allen_e2e_demo.sh). //! NOT a test: it is `#[ignore]`d and does nothing unless the demo driver sets //! its environment. It writes ONE exported kind-24 subject head object, bound diff --git a/crates/aien-allen/tests/identity_test.rs b/crates/aien-allen/tests/identity_test.rs index 0dc8a93a..93ae3ea9 100644 --- a/crates/aien-allen/tests/identity_test.rs +++ b/crates/aien-allen/tests/identity_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Restart, corruption, rollback, machine change, negative control. mod support; use aien_allen::binding::{self, pin_path}; diff --git a/crates/aien-allen/tests/oracle_test.rs b/crates/aien-allen/tests/oracle_test.rs index e95fa036..04fcc27f 100644 --- a/crates/aien-allen/tests/oracle_test.rs +++ b/crates/aien-allen/tests/oracle_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Known-answer vectors produced by the REFERENCE C implementation, aienos //! 61bd76a `native/kernel/svc/continuity_subject.c` (cs_subject_genesis, //! cs_subject_intend, cs_subject_advance, cs_subject_hold, diff --git a/crates/aien-allen/tests/refusal_rows_test.rs b/crates/aien-allen/tests/refusal_rows_test.rs index c1b1311e..df546f9a 100644 --- a/crates/aien-allen/tests/refusal_rows_test.rs +++ b/crates/aien-allen/tests/refusal_rows_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The no-provision invariant (source scan, G5 analog) and the arch#150 //! s4(6) row table. Rows that need approvals live outside this crate: //! DEPENDENCY sc#249, NOT_RUN. diff --git a/crates/aien-allen/tests/subject_decode_test.rs b/crates/aien-allen/tests/subject_decode_test.rs index f731af50..84f87315 100644 --- a/crates/aien-allen/tests/subject_decode_test.rs +++ b/crates/aien-allen/tests/subject_decode_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Decoder refusals (unsupported dialect, damage) and the id/derivation rules. mod support; use aien_allen::subject_v0::{decode, object_id}; diff --git a/crates/aien-allen/tests/support/mod.rs b/crates/aien-allen/tests/support/mod.rs index 460f6d08..7ef8468c 100644 --- a/crates/aien-allen/tests/support/mod.rs +++ b/crates/aien-allen/tests/support/mod.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! TEST-ONLY subject fixture builder. A second, independent encoder of the //! kind-24 layout (aienos ADR 0018 s2.2). It lives under tests/ so the //! production crate gains no provisioning path: real subjects are created diff --git a/crates/aien-campaign-verifier/src/bundle.rs b/crates/aien-campaign-verifier/src/bundle.rs index e46f3ca3..1e3c6841 100644 --- a/crates/aien-campaign-verifier/src/bundle.rs +++ b/crates/aien-campaign-verifier/src/bundle.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Bundle integrity and binding to the frozen spec (SPEC.md Section 10). use serde::Deserialize; diff --git a/crates/aien-campaign-verifier/src/ids.rs b/crates/aien-campaign-verifier/src/ids.rs index 13929332..8e8842d8 100644 --- a/crates/aien-campaign-verifier/src/ids.rs +++ b/crates/aien-campaign-verifier/src/ids.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use serde::{Deserialize, Serialize}; use std::fmt; diff --git a/crates/aien-campaign-verifier/src/kv.rs b/crates/aien-campaign-verifier/src/kv.rs index d92d286c..7fe63fce 100644 --- a/crates/aien-campaign-verifier/src/kv.rs +++ b/crates/aien-campaign-verifier/src/kv.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! KV conservation: rebuild allocator state from the mutation journal and compare it with the //! raw census and with AIEN's reported counters (SPEC.md Section 7). //! diff --git a/crates/aien-campaign-verifier/src/lib.rs b/crates/aien-campaign-verifier/src/lib.rs index 0f87cf6a..822f12fd 100644 --- a/crates/aien-campaign-verifier/src/lib.rs +++ b/crates/aien-campaign-verifier/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Independent verifier for campaign C1 (`docs/campaigns/c1/SPEC.md`). //! //! Consumes a frozen evidence bundle and the frozen spec directory, and emits PASS/FAIL per diff --git a/crates/aien-campaign-verifier/src/main.rs b/crates/aien-campaign-verifier/src/main.rs index b062e388..542b6717 100644 --- a/crates/aien-campaign-verifier/src/main.rs +++ b/crates/aien-campaign-verifier/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use std::path::Path; use std::process::ExitCode; diff --git a/crates/aien-campaign-verifier/src/placement.rs b/crates/aien-campaign-verifier/src/placement.rs index e0ccdf59..05440a1b 100644 --- a/crates/aien-campaign-verifier/src/placement.rs +++ b/crates/aien-campaign-verifier/src/placement.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Device placement: AIEN's per-op dispatch record must agree with the external device witness //! and with `placement.toml` (SPEC.md Section 6). diff --git a/crates/aien-campaign-verifier/src/report.rs b/crates/aien-campaign-verifier/src/report.rs index 07ab9d66..e4a94e5e 100644 --- a/crates/aien-campaign-verifier/src/report.rs +++ b/crates/aien-campaign-verifier/src/report.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use serde::Serialize; use std::fmt::Write as _; diff --git a/crates/aien-campaign-verifier/tests/independence.rs b/crates/aien-campaign-verifier/tests/independence.rs index 18c94fa9..02454b46 100644 --- a/crates/aien-campaign-verifier/tests/independence.rs +++ b/crates/aien-campaign-verifier/tests/independence.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! SPEC.md Section 7: the verifier must not depend on any crate under test. const FORBIDDEN_PREFIXES: [&str; 4] = ["aien-", "spark-", "cortex-", "rad-"]; diff --git a/crates/aien-capability/src/effects.rs b/crates/aien-capability/src/effects.rs index 43ffb724..946aec57 100644 --- a/crates/aien-capability/src/effects.rs +++ b/crates/aien-capability/src/effects.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + /// Operations a tool declares. A tool may set more than one bit. #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] pub struct ToolEffects(u32); diff --git a/crates/aien-capability/src/ids.rs b/crates/aien-capability/src/ids.rs index 1e4dd5e8..0be1183f 100644 --- a/crates/aien-capability/src/ids.rs +++ b/crates/aien-capability/src/ids.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use sha2::{Digest, Sha256}; /// SHA-256 digest used for catalogs, policies, and capability identity. diff --git a/crates/aien-capability/src/lib.rs b/crates/aien-capability/src/lib.rs index 595c0671..5d90d1b4 100644 --- a/crates/aien-capability/src/lib.rs +++ b/crates/aien-capability/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Tool descriptors and effect classification for the AIEN capability graph. //! //! A tool declares what it can do. `routing_class` is the highest declared diff --git a/crates/aien-capability/src/tool.rs b/crates/aien-capability/src/tool.rs index 7a32de1d..545863af 100644 --- a/crates/aien-capability/src/tool.rs +++ b/crates/aien-capability/src/tool.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::{Digest32, ToolEffects}; use sha2::{Digest, Sha256}; diff --git a/crates/aien-capability/tests/effects.rs b/crates/aien-capability/tests/effects.rs index 7b34a7e7..9fc000f9 100644 --- a/crates/aien-capability/tests/effects.rs +++ b/crates/aien-capability/tests/effects.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aien_capability::{routing_class, speculation_safe, EffectClass, ToolEffects}; #[test] diff --git a/crates/aien-cli/build.rs b/crates/aien-cli/build.rs index 2bd89402..d0cca573 100644 --- a/crates/aien-cli/build.rs +++ b/crates/aien-cli/build.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! `cfg(compose_linked)` when aien-omega-compose linked the real //! librx_compose.a, so tests that need the Cortex journal are reported IGNORED //! in a stub build instead of passing vacuously. diff --git a/crates/aien-cli/src/allen.rs b/crates/aien-cli/src/allen.rs index 9b4c51a6..76f1a643 100644 --- a/crates/aien-cli/src/allen.rs +++ b/crates/aien-cli/src/allen.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! `aien allen ...`: the ALLEN persona profile (arch#159), one operator step //! per subcommand, against the running daemon. Each call prints ONE JSON //! object on stdout (`"ok": true|false`) and exits 1 on failure. diff --git a/crates/aien-cli/src/approval.rs b/crates/aien-cli/src/approval.rs index 8a5ed7b7..c140cd84 100644 --- a/crates/aien-cli/src/approval.rs +++ b/crates/aien-cli/src/approval.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Approval floors ordered above every mode (sc#667). //! //! One ordering rule the chat loop cannot skip. For every tool request: diff --git a/crates/aien-cli/src/bin/aien-browser-mirror.rs b/crates/aien-cli/src/bin/aien-browser-mirror.rs index f0b88de4..ea09b5a3 100644 --- a/crates/aien-cli/src/bin/aien-browser-mirror.rs +++ b/crates/aien-cli/src/bin/aien-browser-mirror.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! `aien-browser-mirror`: headless-Chrome Cockpit mirror over the Chrome //! DevTools Protocol. Rust replacement for the removed Python script //! `basecamp/scripts/browser_mirror_test.py` (sovereign-core #180), same flags. diff --git a/crates/aien-cli/src/browser_mirror.rs b/crates/aien-cli/src/browser_mirror.rs index 9fffc073..ef8cc982 100644 --- a/crates/aien-cli/src/browser_mirror.rs +++ b/crates/aien-cli/src/browser_mirror.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Headless-Chrome Cockpit mirror over the Chrome DevTools Protocol (CDP). //! //! This is the Rust replacement for the removed Python script diff --git a/crates/aien-cli/src/checkpoint.rs b/crates/aien-cli/src/checkpoint.rs index 2861d18b..316a6938 100644 --- a/crates/aien-cli/src/checkpoint.rs +++ b/crates/aien-cli/src/checkpoint.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! File checkpoints and the agent-write ledger (sc#667). //! //! One shared content-addressed store under `~/basecamp/checkpoints`: diff --git a/crates/aien-cli/src/client.rs b/crates/aien-cli/src/client.rs index 41b173f4..32e96def 100644 --- a/crates/aien-cli/src/client.rs +++ b/crates/aien-cli/src/client.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use colored::Colorize; use futures_util::StreamExt; use reqwest::Client; diff --git a/crates/aien-cli/src/commands.rs b/crates/aien-cli/src/commands.rs index 3bd55663..ebbd2f58 100644 --- a/crates/aien-cli/src/commands.rs +++ b/crates/aien-cli/src/commands.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + pub fn parse_quoted_args(input: &str) -> Vec { let mut tokens = Vec::new(); let mut current = String::new(); diff --git a/crates/aien-cli/src/compaction.rs b/crates/aien-cli/src/compaction.rs index 44944144..6664506b 100644 --- a/crates/aien-cli/src/compaction.rs +++ b/crates/aien-cli/src/compaction.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Conversation compaction for the interactive `aien` chat loop (sc#397). //! //! Entry point: `crates/aien-cli/src/main.rs` interactive loop, after every user diff --git a/crates/aien-cli/src/compose.rs b/crates/aien-cli/src/compose.rs index f0e95856..e5417e93 100644 --- a/crates/aien-cli/src/compose.rs +++ b/crates/aien-cli/src/compose.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! `aien compose ...`: the NEXT-PHASE-1 bounded task, one operator step per //! subcommand, against the running daemon's composition home (omega //! COMPOSITION-2, `RunComposeTask` / `ComposeNote` / `ComposeRecall` / diff --git a/crates/aien-cli/src/context7.rs b/crates/aien-cli/src/context7.rs index 097529d2..12668067 100644 --- a/crates/aien-cli/src/context7.rs +++ b/crates/aien-cli/src/context7.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use reqwest::Client; use serde_json::{json, Value}; diff --git a/crates/aien-cli/src/cortex.rs b/crates/aien-cli/src/cortex.rs index 4155016c..3f5cd85b 100644 --- a/crates/aien-cli/src/cortex.rs +++ b/crates/aien-cli/src/cortex.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use colored::*; use reqwest::Client; use serde_json::{json, Value}; diff --git a/crates/aien-cli/src/crumbs.rs b/crates/aien-cli/src/crumbs.rs index 0a6b62a0..fcfddfcd 100644 --- a/crates/aien-cli/src/crumbs.rs +++ b/crates/aien-cli/src/crumbs.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use chrono::{DateTime, Utc}; use colored::*; use serde::{Deserialize, Serialize}; diff --git a/crates/aien-cli/src/goals.rs b/crates/aien-cli/src/goals.rs index 0dee7a05..eb8b226b 100644 --- a/crates/aien-cli/src/goals.rs +++ b/crates/aien-cli/src/goals.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use chrono::Utc; use colored::*; use serde::{Deserialize, Serialize}; diff --git a/crates/aien-cli/src/hive.rs b/crates/aien-cli/src/hive.rs index 124317b8..a31b8507 100644 --- a/crates/aien-cli/src/hive.rs +++ b/crates/aien-cli/src/hive.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use serde_json::{json, Value}; use std::process::Command; diff --git a/crates/aien-cli/src/hooks.rs b/crates/aien-cli/src/hooks.rs index d0ee5a63..4503ee8a 100644 --- a/crates/aien-cli/src/hooks.rs +++ b/crates/aien-cli/src/hooks.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use async_trait::async_trait; use serde_json::{json, Value}; use std::sync::Arc; diff --git a/crates/aien-cli/src/lib.rs b/crates/aien-cli/src/lib.rs index 35229cc3..0547372f 100644 --- a/crates/aien-cli/src/lib.rs +++ b/crates/aien-cli/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Verified autonomous sandbox edit // Verified autonomous self-improvement loop active diff --git a/crates/aien-cli/src/main.rs b/crates/aien-cli/src/main.rs index e822a635..afeebcab 100644 --- a/crates/aien-cli/src/main.rs +++ b/crates/aien-cli/src/main.rs @@ -1,4 +1,19 @@ #![allow(clippy::type_complexity, clippy::needless_range_loop)] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + mod allen; mod approval; mod checkpoint; diff --git a/crates/aien-cli/src/nesting.rs b/crates/aien-cli/src/nesting.rs index 953acf4e..318e2431 100644 --- a/crates/aien-cli/src/nesting.rs +++ b/crates/aien-cli/src/nesting.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use chrono::Utc; use colored::*; use reqwest::Client; diff --git a/crates/aien-cli/src/objective.rs b/crates/aien-cli/src/objective.rs index e65adbb9..b0d0ee77 100644 --- a/crates/aien-cli/src/objective.rs +++ b/crates/aien-cli/src/objective.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sovereign-core #380 (lane L6, acceptance step E2 and CTRL-E2): the //! operator's objective is recorded, with its identity, before any work. //! diff --git a/crates/aien-cli/src/platform.rs b/crates/aien-cli/src/platform.rs index 25038d28..65b2c3d0 100644 --- a/crates/aien-cli/src/platform.rs +++ b/crates/aien-cli/src/platform.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use std::path::PathBuf; #[derive(Debug, Clone, Copy, PartialEq, Eq)] diff --git a/crates/aien-cli/src/rules.rs b/crates/aien-cli/src/rules.rs index 112be8c5..ea2ab16f 100644 --- a/crates/aien-cli/src/rules.rs +++ b/crates/aien-cli/src/rules.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use colored::*; use std::collections::HashSet; use std::fs; diff --git a/crates/aien-cli/src/safety.rs b/crates/aien-cli/src/safety.rs index 85b1955c..76c68fb1 100644 --- a/crates/aien-cli/src/safety.rs +++ b/crates/aien-cli/src/safety.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use serde_json::Value; use std::path::{Path, PathBuf}; use std::sync::Arc; diff --git a/crates/aien-cli/src/sandbox.rs b/crates/aien-cli/src/sandbox.rs index b619cb3c..efe439fb 100644 --- a/crates/aien-cli/src/sandbox.rs +++ b/crates/aien-cli/src/sandbox.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use colored::*; use serde_json::{json, Value}; use std::fs; diff --git a/crates/aien-cli/src/science_context.rs b/crates/aien-cli/src/science_context.rs index be70fff8..9d363a65 100644 --- a/crates/aien-cli/src/science_context.rs +++ b/crates/aien-cli/src/science_context.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use serde_json::{json, Value}; use std::fs; use std::path::{Path, PathBuf}; diff --git a/crates/aien-cli/src/skills.rs b/crates/aien-cli/src/skills.rs index 78127058..313211f0 100644 --- a/crates/aien-cli/src/skills.rs +++ b/crates/aien-cli/src/skills.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use colored::*; use serde::{Deserialize, Serialize}; use serde_json::{json, Value}; diff --git a/crates/aien-cli/src/subagents.rs b/crates/aien-cli/src/subagents.rs index d40e0995..cf65a1d6 100644 --- a/crates/aien-cli/src/subagents.rs +++ b/crates/aien-cli/src/subagents.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use chrono::Utc; use colored::*; use serde::{Deserialize, Serialize}; diff --git a/crates/aien-cli/src/telemetry.rs b/crates/aien-cli/src/telemetry.rs index 3bb12734..b2f40549 100644 --- a/crates/aien-cli/src/telemetry.rs +++ b/crates/aien-cli/src/telemetry.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use std::process::Command; #[derive(Debug, Clone, Default)] diff --git a/crates/aien-cli/src/tools.rs b/crates/aien-cli/src/tools.rs index 447d2f69..4f6efbcd 100644 --- a/crates/aien-cli/src/tools.rs +++ b/crates/aien-cli/src/tools.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use colored::*; use serde_json::{json, Value}; use sha2::{Digest, Sha256}; diff --git a/crates/aien-cli/src/ui.rs b/crates/aien-cli/src/ui.rs index 54c9bc30..fc70f4ea 100644 --- a/crates/aien-cli/src/ui.rs +++ b/crates/aien-cli/src/ui.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::telemetry::get_gpu_telemetry; use colored::*; use std::io::{stdout, Write}; diff --git a/crates/aien-cli/src/vault.rs b/crates/aien-cli/src/vault.rs index ea3b7cd1..edc63243 100644 --- a/crates/aien-cli/src/vault.rs +++ b/crates/aien-cli/src/vault.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use regex::Regex; use serde_json::{json, Value}; use std::process::Command; diff --git a/crates/aien-cli/src/walkthrough.rs b/crates/aien-cli/src/walkthrough.rs index ec23d897..180ed604 100644 --- a/crates/aien-cli/src/walkthrough.rs +++ b/crates/aien-cli/src/walkthrough.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use chrono::Utc; use colored::*; use serde_json::Value; diff --git a/crates/aien-cli/tests/allen_concurrency_test.rs b/crates/aien-cli/tests/allen_concurrency_test.rs index 56043d0c..d3d47bbb 100644 --- a/crates/aien-cli/tests/allen_concurrency_test.rs +++ b/crates/aien-cli/tests/allen_concurrency_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! ALLEN under concurrent clients (arch#162): ONE real `aien daemon` process, //! many real `aien allen ...` CLI processes at the same time over the real //! socket. No in-process fakes: every call is an OS process, the crash is a diff --git a/crates/aien-cli/tests/compose_memory_recall_test.rs b/crates/aien-cli/tests/compose_memory_recall_test.rs index 5efff491..a9af45ab 100644 --- a/crates/aien-cli/tests/compose_memory_recall_test.rs +++ b/crates/aien-cli/tests/compose_memory_recall_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sc#386: `aien compose remember` and `aien compose recall` against ONE real //! `aien daemon` process, with and without an engaged ALLEN identity. //! diff --git a/crates/aien-cli/tests/compose_ordinary_flow_test.rs b/crates/aien-cli/tests/compose_ordinary_flow_test.rs index f3ff1077..54cd76bb 100644 --- a/crates/aien-cli/tests/compose_ordinary_flow_test.rs +++ b/crates/aien-cli/tests/compose_ordinary_flow_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sovereign-core #261: the ordinary `aien compose` flow (propose, authorize, //! execute) with the daemon minting the grant, driven through the real CLI //! binary against an in-process daemon whose compose bridge has a fixed diff --git a/crates/aien-cli/tests/cpu_only_switch_test.rs b/crates/aien-cli/tests/cpu_only_switch_test.rs index 971aa69e..1866414d 100644 --- a/crates/aien-cli/tests/cpu_only_switch_test.rs +++ b/crates/aien-cli/tests/cpu_only_switch_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sc#384 preflight: `AIEN_BACKEND=cpu` on a real `aien daemon` process. //! Whatever the build, the daemon never reports the GB10 backend: //! - GPU-capable build: refuses to start with the named error `CPU_ONLY_BUT_GPU_BUILD` diff --git a/crates/aien-cli/tests/desk_required_startup_test.rs b/crates/aien-cli/tests/desk_required_startup_test.rs index d6adb675..b7afe767 100644 --- a/crates/aien-cli/tests/desk_required_startup_test.rs +++ b/crates/aien-cli/tests/desk_required_startup_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sc#328 (Drake decision b, 2026-10-08): the approval desk is REQUIRED by //! default. A real `aien daemon` process, started four ways: //! D1 no desk key, switch unset: startup is refused before the socket diff --git a/crates/aien-cli/tests/objective_record_test.rs b/crates/aien-cli/tests/objective_record_test.rs index 8f29d695..1f580d2a 100644 --- a/crates/aien-cli/tests/objective_record_test.rs +++ b/crates/aien-cli/tests/objective_record_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sovereign-core #380 (lane L6, acceptance step E2 and CTRL-E2): the //! installation records the operator's objective before any work, refuses a //! declared forbidden effect class, and ties `compose propose` to the record. diff --git a/crates/aien-cli/tests/provenance_link_live_test.rs b/crates/aien-cli/tests/provenance_link_live_test.rs index 67d7cf58..d870361d 100644 --- a/crates/aien-cli/tests/provenance_link_live_test.rs +++ b/crates/aien-cli/tests/provenance_link_live_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Provenance link (arch#162), live: the real `aien daemon` process with //! SmolLM2-1.7B on the CPU reference backend, and the real `aien compose` //! CLI. `propose` -> `authorize` -> `execute`, then every record of the diff --git a/crates/aien-cli/tests/recovery_matrix_test.rs b/crates/aien-cli/tests/recovery_matrix_test.rs index fc71b4df..d3bd4664 100644 --- a/crates/aien-cli/tests/recovery_matrix_test.rs +++ b/crates/aien-cli/tests/recovery_matrix_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Real-process recovery matrix for the ordinary compose -> grant -> execute -> ack //! path (arch#162). Every case starts the real `aien daemon` and the real //! `aien compose ...` CLI as OS processes, each with its OWN fresh diff --git a/crates/aien-cli/tests/test_cli_runtime_ipc.rs b/crates/aien-cli/tests/test_cli_runtime_ipc.rs index 04cf397a..18396f5b 100644 --- a/crates/aien-cli/tests/test_cli_runtime_ipc.rs +++ b/crates/aien-cli/tests/test_cli_runtime_ipc.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Integration tests for AIEN CLI and runtime IPC protocol. use aien_inference_abi::MockInferenceBackend; diff --git a/crates/aien-closure/src/declare.rs b/crates/aien-closure/src/declare.rs index d733bf9f..a62e7d14 100644 --- a/crates/aien-closure/src/declare.rs +++ b/crates/aien-closure/src/declare.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Declaration checks: what a unit says it depends on against what it uses. //! //! One meaning per code, from `aien-protocols` `specs/verified-crumb/SPEC.md` diff --git a/crates/aien-closure/src/digest.rs b/crates/aien-closure/src/digest.rs index 39bf4635..25b2e256 100644 --- a/crates/aien-closure/src/digest.rs +++ b/crates/aien-closure/src/digest.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Source digest of a component directory. //! //! BLAKE3 over every regular file under the directory, in byte-sorted diff --git a/crates/aien-closure/src/error.rs b/crates/aien-closure/src/error.rs index c7e37283..371d5ad6 100644 --- a/crates/aien-closure/src/error.rs +++ b/crates/aien-closure/src/error.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The nine finding codes and their exit codes. use std::fmt; diff --git a/crates/aien-closure/src/graph.rs b/crates/aien-closure/src/graph.rs index 85f24154..d5626742 100644 --- a/crates/aien-closure/src/graph.rs +++ b/crates/aien-closure/src/graph.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Dependency graph reconstruction: Rust (cargo metadata) and C (quoted //! `#include` scanner), plus cycle detection shared by both. diff --git a/crates/aien-closure/src/lib.rs b/crates/aien-closure/src/lib.rs index 16626423..f8804b7f 100644 --- a/crates/aien-closure/src/lib.rs +++ b/crates/aien-closure/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! aien-closure: the `verify-closure` bridge (Verified Crumb stage 5). //! //! Rebuilds the internal dependency graph of a workspace and checks that every diff --git a/crates/aien-closure/src/main.rs b/crates/aien-closure/src/main.rs index f3b73548..58e8a140 100644 --- a/crates/aien-closure/src/main.rs +++ b/crates/aien-closure/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! `verify-closure --root [--store ] [--write-lock]` //! //! Exit 0 PASS. Exit 1 internal error. Exit 2 usage error. Otherwise the exit diff --git a/crates/aien-closure/src/manifest.rs b/crates/aien-closure/src/manifest.rs index e63acbb2..4115c72c 100644 --- a/crates/aien-closure/src/manifest.rs +++ b/crates/aien-closure/src/manifest.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! `closure.toml`: strict, line based component manifest, in the style of the //! aien-test `.gate` format. Despite the file name it is not general TOML. //! diff --git a/crates/aien-closure/src/verify.rs b/crates/aien-closure/src/verify.rs index 6b8d175d..5ba89c71 100644 --- a/crates/aien-closure/src/verify.rs +++ b/crates/aien-closure/src/verify.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The verification pipeline behind `verify-closure`. use crate::declare; diff --git a/crates/aien-closure/tests/closure.rs b/crates/aien-closure/tests/closure.rs index 6c44bbe5..c624adc5 100644 --- a/crates/aien-closure/tests/closure.rs +++ b/crates/aien-closure/tests/closure.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + mod common; use aien_closure::error::ALL; diff --git a/crates/aien-closure/tests/common/mod.rs b/crates/aien-closure/tests/common/mod.rs index f0e13ba9..f8c24cce 100644 --- a/crates/aien-closure/tests/common/mod.rs +++ b/crates/aien-closure/tests/common/mod.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Fixture helpers. Receipts are built and sealed with aien-proof's own API, so //! every id in the store is a real canonical identity. #![allow(dead_code)] diff --git a/crates/aien-closure/tests/declaration_codes.rs b/crates/aien-closure/tests/declaration_codes.rs index 85d4e988..fedccdc0 100644 --- a/crates/aien-closure/tests/declaration_codes.rs +++ b/crates/aien-closure/tests/declaration_codes.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! SPEC section 6.2 of aien-protocols `specs/verified-crumb/SPEC.md`: one //! meaning per declaration code. One test per row of the table, each with a //! negative twin that fails if the row's code is swapped for a neighbouring diff --git a/crates/aien-closure/tests/receipt_crosscheck.rs b/crates/aien-closure/tests/receipt_crosscheck.rs index bc60ffae..5af74c3a 100644 --- a/crates/aien-closure/tests/receipt_crosscheck.rs +++ b/crates/aien-closure/tests/receipt_crosscheck.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Rust side of the receipt cross-check for the Omega C reader (VC1 carry //! item 5). Mints receipts with aien-proof for the cases the C reader's three //! fixtures (`omega/tests/resolve/receipts`, all `component-qualification`, diff --git a/crates/aien-drive/src/http.rs b/crates/aien-drive/src/http.rs index 170e9773..add1e434 100644 --- a/crates/aien-drive/src/http.rs +++ b/crates/aien-drive/src/http.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Minimal plain-HTTP client over `std::net`, loopback endpoints only: every //! address the host resolves to must be loopback, and the connection goes to //! those resolved addresses (no second lookup between the check and connect). diff --git a/crates/aien-drive/src/lib.rs b/crates/aien-drive/src/lib.rs index 9d2b3eb6..2a78052d 100644 --- a/crates/aien-drive/src/lib.rs +++ b/crates/aien-drive/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! AIEN autonomous API driver (Rust port of the removed `scripts/aien_drive.py`). //! //! Loops a chat model at an OpenAI-style streaming endpoint with a system diff --git a/crates/aien-drive/src/main.rs b/crates/aien-drive/src/main.rs index a70248f5..53c591ce 100644 --- a/crates/aien-drive/src/main.rs +++ b/crates/aien-drive/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aien_drive::*; use clap::{Parser, ValueEnum}; use std::time::Duration; diff --git a/crates/aien-drive/tests/equivalence.rs b/crates/aien-drive/tests/equivalence.rs index 09c9a094..327a31f5 100644 --- a/crates/aien-drive/tests/equivalence.rs +++ b/crates/aien-drive/tests/equivalence.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Equivalence with the removed Python `scripts/aien_drive.py` (issue #179). //! //! `golden_from_python_original.json` was produced by running the original diff --git a/crates/aien-drive/tests/loop_stub.rs b/crates/aien-drive/tests/loop_stub.rs index 5ceace2c..e45e9e4f 100644 --- a/crates/aien-drive/tests/loop_stub.rs +++ b/crates/aien-drive/tests/loop_stub.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! One full tool-dispatch round trip against stub HTTP servers (issue #179 //! acceptance test), plus the cortex write payload and the failure paths. diff --git a/crates/aien-dual-observation/src/lib.rs b/crates/aien-dual-observation/src/lib.rs index f83ce163..1cc5b139 100644 --- a/crates/aien-dual-observation/src/lib.rs +++ b/crates/aien-dual-observation/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! DUAL observation: a read-only macroscopic snapshot of the serve path //! (ARCH-0031 DUAL-3a instrumentation). //! diff --git a/crates/aien-dual-observation/tests/snapshot_conservation.rs b/crates/aien-dual-observation/tests/snapshot_conservation.rs index 9ae85562..e5512a96 100644 --- a/crates/aien-dual-observation/tests/snapshot_conservation.rs +++ b/crates/aien-dual-observation/tests/snapshot_conservation.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Conservation and zero-denominator tests for the DUAL serve observation //! snapshot, over the real scheduler and KV manager with the mock backend. //! diff --git a/crates/aien-inference-abi/examples/load_rss.rs b/crates/aien-inference-abi/examples/load_rss.rs index e1bca3e0..a0856803 100644 --- a/crates/aien-inference-abi/examples/load_rss.rs +++ b/crates/aien-inference-abi/examples/load_rss.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Host-only measurement of the checkpoint load path (no GPU, no chip): peak and final resident //! memory of the process for the unchanged host f32 load and for the GB10 resident load //! (sovereign-core #277 cut C) with a stub uploader that only checksums the bf16 bits. diff --git a/crates/aien-inference-abi/src/backend.rs b/crates/aien-inference-abi/src/backend.rs index 851e6cb9..64f5edf3 100644 --- a/crates/aien-inference-abi/src/backend.rs +++ b/crates/aien-inference-abi/src/backend.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Decoupled TensorBackend trait and ReferenceCpuBackend correctness oracle. //! Provides hardware-neutral abstraction for transformer mathematical operations. diff --git a/crates/aien-inference-abi/src/bin/own30b_check.rs b/crates/aien-inference-abi/src/bin/own30b_check.rs index ba3874bb..e4bfdfca 100644 --- a/crates/aien-inference-abi/src/bin/own30b_check.rs +++ b/crates/aien-inference-abi/src/bin/own30b_check.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! OWN-30B check: Qwen3-30B-A3B on Omega against the CPU oracle (design section 4). //! //! own30b_check golden [--new N] diff --git a/crates/aien-inference-abi/src/bin/own30b_ttft.rs b/crates/aien-inference-abi/src/bin/own30b_ttft.rs index 325d81fc..ea7a00c5 100644 --- a/crates/aien-inference-abi/src/bin/own30b_ttft.rs +++ b/crates/aien-inference-abi/src/bin/own30b_ttft.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! OWN-30B time-to-first-token, whole-prompt prefill OFF vs ON, in one process (W-L1G-W). //! //! own30b_ttft [--lens 512,2048] [--new-tokens 32] [--reps 2] diff --git a/crates/aien-inference-abi/src/bin/own30b_wp_gate.rs b/crates/aien-inference-abi/src/bin/own30b_wp_gate.rs index 9532bf4c..062a190e 100644 --- a/crates/aien-inference-abi/src/bin/own30b_wp_gate.rs +++ b/crates/aien-inference-abi/src/bin/own30b_wp_gate.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! OWN-30B whole-prompt prefill correctness gate (W-L1G-C, 2026-10-14): is the ON path's token //! drift activation rounding or a bug? //! diff --git a/crates/aien-inference-abi/src/bin/own_tern_check.rs b/crates/aien-inference-abi/src/bin/own_tern_check.rs index 2394862c..2e951f86 100644 --- a/crates/aien-inference-abi/src/bin/own_tern_check.rs +++ b/crates/aien-inference-abi/src/bin/own_tern_check.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! OWN-TERN check, stage T2: the sealed golden of our CPU reference for BitNet b1.58 2B-4T. //! //! own_tern_check golden diff --git a/crates/aien-inference-abi/src/bitnet_forward.rs b/crates/aien-inference-abi/src/bitnet_forward.rs index 35202c87..9ebee63e 100644 --- a/crates/aien-inference-abi/src/bitnet_forward.rs +++ b/crates/aien-inference-abi/src/bitnet_forward.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Our CPU reference forward for BitNet b1.58 2B-4T (stage T2): the oracle the chip engine is //! checked against. f32 arithmetic throughout, exact int32 ternary products. //! diff --git a/crates/aien-inference-abi/src/bitnet_forward/tests.rs b/crates/aien-inference-abi/src/bitnet_forward/tests.rs index 6126b5c1..93f19f5a 100644 --- a/crates/aien-inference-abi/src/bitnet_forward/tests.rs +++ b/crates/aien-inference-abi/src/bitnet_forward/tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use super::*; use crate::bitnet_omega::test_support::{memory_source, tiny_config}; use crate::bitnet_omega::{load_bitnet_omega_from, pack_trits, HostTernMatrix}; diff --git a/crates/aien-inference-abi/src/bitnet_omega.rs b/crates/aien-inference-abi/src/bitnet_omega.rs index 37b6bdb9..63b95d6a 100644 --- a/crates/aien-inference-abi/src/bitnet_omega.rs +++ b/crates/aien-inference-abi/src/bitnet_omega.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! BitNet b1.58 2B-4T on AIEN's own GPU engine (Omega), ternary stage T1: config, loader, //! ternariser, packer, 8-bit word table builder. Host only: no launch, no chip. //! diff --git a/crates/aien-inference-abi/src/bitnet_omega/gguf_ref.rs b/crates/aien-inference-abi/src/bitnet_omega/gguf_ref.rs index 09e9a3cc..440886a5 100644 --- a/crates/aien-inference-abi/src/bitnet_omega/gguf_ref.rs +++ b/crates/aien-inference-abi/src/bitnet_omega/gguf_ref.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Test tool only, never product: reads the ternary tensors of Microsoft's I2_S gguf //! (`~/models/BitNet-b1.58-2B-4T/ggml-model-i2_s.gguf`) so the T1 test can count how many of our //! trits agree with theirs. Nothing of theirs is run; the file is parsed here. diff --git a/crates/aien-inference-abi/src/bitnet_omega/test_support.rs b/crates/aien-inference-abi/src/bitnet_omega/test_support.rs index a4738b1e..14efffda 100644 --- a/crates/aien-inference-abi/src/bitnet_omega/test_support.rs +++ b/crates/aien-inference-abi/src/bitnet_omega/test_support.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! A tiny BitNet checkpoint (in memory or written as one `model.safetensors`), a recording //! uploader with host matrices and its deliberate mutants, and the byte test, so the loader runs //! end to end without a chip. diff --git a/crates/aien-inference-abi/src/bitnet_omega/tests.rs b/crates/aien-inference-abi/src/bitnet_omega/tests.rs index 4c4188d7..230696f3 100644 --- a/crates/aien-inference-abi/src/bitnet_omega/tests.rs +++ b/crates/aien-inference-abi/src/bitnet_omega/tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use super::test_support::*; use super::*; use crate::qwen3_moe::f32_to_bf16; diff --git a/crates/aien-inference-abi/src/bitnet_tokenizer.rs b/crates/aien-inference-abi/src/bitnet_tokenizer.rs index 3a5b30cf..f0e183bf 100644 --- a/crates/aien-inference-abi/src/bitnet_tokenizer.rs +++ b/crates/aien-inference-abi/src/bitnet_tokenizer.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Our own tokenizer for BitNet b1.58 2B-4T (stage T2): the LLaMA-3 byte-level BPE read from the //! checkpoint's `tokenizer.json`, with no tokenizer library in the path. //! diff --git a/crates/aien-inference-abi/src/capsule.rs b/crates/aien-inference-abi/src/capsule.rs index b882f424..c5401d41 100644 --- a/crates/aien-inference-abi/src/capsule.rs +++ b/crates/aien-inference-abi/src/capsule.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Weight capsule: raw payload bytes plus a tensor index and canonical digests. use sha2::{Digest, Sha256}; diff --git a/crates/aien-inference-abi/src/checkpoint.rs b/crates/aien-inference-abi/src/checkpoint.rs index d9905e3b..582eecc7 100644 --- a/crates/aien-inference-abi/src/checkpoint.rs +++ b/crates/aien-inference-abi/src/checkpoint.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Strict Safetensors checkpoint loader with loud shape and dtype validation. //! Ingests BF16 weights into one `ModelCapsule`. FP32 is decoded on demand. diff --git a/crates/aien-inference-abi/src/gb10_serving.rs b/crates/aien-inference-abi/src/gb10_serving.rs index 7fc963de..472392c4 100644 --- a/crates/aien-inference-abi/src/gb10_serving.rs +++ b/crates/aien-inference-abi/src/gb10_serving.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Start-up reservation of the GB10 serving buffers and kernels (sovereign-core#277, a cut //! toward it). //! diff --git a/crates/aien-inference-abi/src/generation.rs b/crates/aien-inference-abi/src/generation.rs index d038f3a2..2ea44192 100644 --- a/crates/aien-inference-abi/src/generation.rs +++ b/crates/aien-inference-abi/src/generation.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The generation controller and the forward-pass seam (ADR 0004 sections 2.2 to 2.5). //! //! [`GenerationController`] owns the sequence ledger (history, and so the position), prefix diff --git a/crates/aien-inference-abi/src/generation/echo_chain.rs b/crates/aien-inference-abi/src/generation/echo_chain.rs index bd029b16..3c34ed54 100644 --- a/crates/aien-inference-abi/src/generation/echo_chain.rs +++ b/crates/aien-inference-abi/src/generation/echo_chain.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The host fake forward pass `EchoChainModel` (ADR 0004 section 4), behind `host-test-engine`. //! //! No weights, vocabulary 64, the tiny KV geometry (2 layers, 1 KV head of 128), on a real diff --git a/crates/aien-inference-abi/src/generation/tests.rs b/crates/aien-inference-abi/src/generation/tests.rs index b5bca469..c3b145d2 100644 --- a/crates/aien-inference-abi/src/generation/tests.rs +++ b/crates/aien-inference-abi/src/generation/tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! ADR 0004 section 5: the forward-pass contract suite and the generation controller's tests, //! run on the host fake `EchoChainModel`. Every sharpness test compares a run of at least 8 //! tokens (a chance agreement of 8 tokens is about 1 in 64^8). diff --git a/crates/aien-inference-abi/src/lib.rs b/crates/aien-inference-abi/src/lib.rs index f9c52894..0a74ab4f 100644 --- a/crates/aien-inference-abi/src/lib.rs +++ b/crates/aien-inference-abi/src/lib.rs @@ -1,4 +1,19 @@ #![allow( +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + clippy::too_many_arguments, clippy::needless_range_loop, clippy::chunks_exact_to_as_chunks diff --git a/crates/aien-inference-abi/src/model_dir.rs b/crates/aien-inference-abi/src/model_dir.rs index 01de90d5..5a12dbbd 100644 --- a/crates/aien-inference-abi/src/model_dir.rs +++ b/crates/aien-inference-abi/src/model_dir.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Model description from a Hugging Face model directory. //! //! `config.json` (and `generation_config.json` for the stop set) of a `LlamaForCausalLM` diff --git a/crates/aien-inference-abi/src/moe_plan.rs b/crates/aien-inference-abi/src/moe_plan.rs index c15c9986..e093fc14 100644 --- a/crates/aien-inference-abi/src/moe_plan.rs +++ b/crates/aien-inference-abi/src/moe_plan.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Branch-agnostic MoE routing plan for Qwen3-Coder-30B-A3B. //! //! This is the host-side correctness oracle and batch metadata contract for diff --git a/crates/aien-inference-abi/src/native_ops.rs b/crates/aien-inference-abi/src/native_ops.rs index 8238fd22..bbae1793 100644 --- a/crates/aien-inference-abi/src/native_ops.rs +++ b/crates/aien-inference-abi/src/native_ops.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Per-operation native accounting for `TensorBackend` (FB-1 cut 3a). //! //! A backend that runs only some operations on the device (for example diff --git a/crates/aien-inference-abi/src/omega_backend.rs b/crates/aien-inference-abi/src/omega_backend.rs index f6a86801..89fcfea9 100644 --- a/crates/aien-inference-abi/src/omega_backend.rs +++ b/crates/aien-inference-abi/src/omega_backend.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! `OmegaGb10Backend` (FB-1 cuts 3b, 3c, 3d): all ten `TensorBackend` ops run on our own //! native GPU engine (`libomega_gpu.a`, no CUDA) through the `aien-omega-gpu` crate. //! diff --git a/crates/aien-inference-abi/src/qwen3_coder.rs b/crates/aien-inference-abi/src/qwen3_coder.rs index 575141ee..5bb28250 100644 --- a/crates/aien-inference-abi/src/qwen3_coder.rs +++ b/crates/aien-inference-abi/src/qwen3_coder.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Native end-to-end Qwen3-Coder-30B-A3B inference in Rust, no MAX graph, no Python. //! //! Loads the official FP8 checkpoint (`Qwen/Qwen3-Coder-30B-A3B-Instruct-FP8`) diff --git a/crates/aien-inference-abi/src/qwen3_dense_omega.rs b/crates/aien-inference-abi/src/qwen3_dense_omega.rs index 743ccfda..436d6b3d 100644 --- a/crates/aien-inference-abi/src/qwen3_dense_omega.rs +++ b/crates/aien-inference-abi/src/qwen3_dense_omega.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Qwen3 dense (Qwen3-8B family, bf16) on AIEN's own GPU engine (Omega), OWN-8B Stage 1. //! //! Design: `~/handoffs/2026-10-15-own8b-design.md` (section 2.2, stage table row 1). This stage diff --git a/crates/aien-inference-abi/src/qwen3_moe.rs b/crates/aien-inference-abi/src/qwen3_moe.rs index f7a69ac1..d8fe0a29 100644 --- a/crates/aien-inference-abi/src/qwen3_moe.rs +++ b/crates/aien-inference-abi/src/qwen3_moe.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Qwen3-Coder-30B-A3B routed expert layer on GB10. //! //! Three pieces share one tensor contract: diff --git a/crates/aien-inference-abi/src/qwen3_moe_omega.rs b/crates/aien-inference-abi/src/qwen3_moe_omega.rs index 8ffa23ac..1f5b048b 100644 --- a/crates/aien-inference-abi/src/qwen3_moe_omega.rs +++ b/crates/aien-inference-abi/src/qwen3_moe_omega.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Qwen3-MoE (Qwen3-30B-A3B family) on AIEN's own GPU engine (Omega), OWN-30B Stage A. //! //! Design: `~/handoffs/2026-10-13-own30b-design.md` (section 2, Stage A). No CUDA, no Mojo, no diff --git a/crates/aien-inference-abi/src/qwen3_moe_omega/w8a8_control.rs b/crates/aien-inference-abi/src/qwen3_moe_omega/w8a8_control.rs index f684d668..824dbe3b 100644 --- a/crates/aien-inference-abi/src/qwen3_moe_omega/w8a8_control.rs +++ b/crates/aien-inference-abi/src/qwen3_moe_omega/w8a8_control.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! W8A8 control for the whole-prompt correctness gate (W-L1G-C, 2026-10-14). New file, a child //! module of `qwen3_moe_omega` so it can reach the engine's private `weights`, `kv`, `pos`. //! diff --git a/crates/aien-inference-abi/src/qwen3_moe_omega/whole_prompt.rs b/crates/aien-inference-abi/src/qwen3_moe_omega/whole_prompt.rs index 1ef28f11..bf728513 100644 --- a/crates/aien-inference-abi/src/qwen3_moe_omega/whole_prompt.rs +++ b/crates/aien-inference-abi/src/qwen3_moe_omega/whole_prompt.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Whole-prompt prefill wired into [`Qwen3MoeOmegaEngine`] (W-L1G-W, 2026-10-14). New file, a //! child module of `qwen3_moe_omega` so it can reach the engine's private `kv`, `pos`, `history`. //! diff --git a/crates/aien-inference-abi/src/qwen3_moe_omega_dattn.rs b/crates/aien-inference-abi/src/qwen3_moe_omega_dattn.rs index 67832785..fdf90840 100644 --- a/crates/aien-inference-abi/src/qwen3_moe_omega_dattn.rs +++ b/crates/aien-inference-abi/src/qwen3_moe_omega_dattn.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The fused attention path of the Omega engine (OWN-30B cut 9): omega's one-launch decode //! attention (`aien-omega-dattn`) as a [`KvAttention`]. One launch per layer per token does the //! q/k per-head norms, RoPE, the bf16 K/V append and the attention over the whole context on diff --git a/crates/aien-inference-abi/src/qwen3_moe_omega_dgraph.rs b/crates/aien-inference-abi/src/qwen3_moe_omega_dgraph.rs index 37a0dc87..e8fa96e9 100644 --- a/crates/aien-inference-abi/src/qwen3_moe_omega_dgraph.rs +++ b/crates/aien-inference-abi/src/qwen3_moe_omega_dgraph.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! One command list per decode token (OWN-30B L2 cut 2), behind `OWN30B_DECODE_GRAPH=1`. //! //! Off (the default) nothing changes: every decode step is [`Qwen3MoeOmegaEngine::step`], about diff --git a/crates/aien-inference-abi/src/qwen3_moe_omega_kvio.rs b/crates/aien-inference-abi/src/qwen3_moe_omega_kvio.rs index b5dbee2a..807497d2 100644 --- a/crates/aien-inference-abi/src/qwen3_moe_omega_kvio.rs +++ b/crates/aien-inference-abi/src/qwen3_moe_omega_kvio.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Persistent KV export and import for the Omega engine (sc#505). New file. //! //! The payload is the persistent KV store's `HostPagedPoolV1` format (ADR 0003 section 2.2): for diff --git a/crates/aien-inference-abi/src/qwen3_moe_omega_prefill.rs b/crates/aien-inference-abi/src/qwen3_moe_omega_prefill.rs index ff4c7973..f0b7e7fc 100644 --- a/crates/aien-inference-abi/src/qwen3_moe_omega_prefill.rs +++ b/crates/aien-inference-abi/src/qwen3_moe_omega_prefill.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Whole-prompt prefill for OWN-30B (Qwen3-30B-A3B FP8) on omega's own prefill kernels //! (W-L1G-R, 2026-10-14). New file; not wired into the engine or the server yet. //! diff --git a/crates/aien-inference-abi/src/qwen3_moe_omega_prefill/devhost.rs b/crates/aien-inference-abi/src/qwen3_moe_omega_prefill/devhost.rs index 0e67e792..bccfca5a 100644 --- a/crates/aien-inference-abi/src/qwen3_moe_omega_prefill/devhost.rs +++ b/crates/aien-inference-abi/src/qwen3_moe_omega_prefill/devhost.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The whole-prompt prefill with its two biggest host steps moved to the chip (W-L1G-D, //! 2026-10-14). New file, a child module of the driver so it can use the driver's buffers. //! diff --git a/crates/aien-inference-abi/src/qwen3_moe_omega_prefill/fake_quant.rs b/crates/aien-inference-abi/src/qwen3_moe_omega_prefill/fake_quant.rs index 724d631f..e71db3eb 100644 --- a/crates/aien-inference-abi/src/qwen3_moe_omega_prefill/fake_quant.rs +++ b/crates/aien-inference-abi/src/qwen3_moe_omega_prefill/fake_quant.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Host mirror of omega's activation quantiser (W-L1G-C, 2026-10-14), for the W8A8 control. //! //! Per row and per 128-wide block: a power-of-two scale from the block's amax, then e4m3 diff --git a/crates/aien-inference-abi/src/qwen3_moe_omega_prefill/tests.rs b/crates/aien-inference-abi/src/qwen3_moe_omega_prefill/tests.rs index 54813507..38e36a9d 100644 --- a/crates/aien-inference-abi/src/qwen3_moe_omega_prefill/tests.rs +++ b/crates/aien-inference-abi/src/qwen3_moe_omega_prefill/tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Host-only tests of the whole-prompt driver with fakes (no chip, no model load). //! //! The fake device mimics the GPU through raw addresses: a buffer's `va` is its host address, and diff --git a/crates/aien-inference-abi/src/qwen3_moe_omega_prefill/tests/devhost.rs b/crates/aien-inference-abi/src/qwen3_moe_omega_prefill/tests/devhost.rs index 15821294..5beb775e 100644 --- a/crates/aien-inference-abi/src/qwen3_moe_omega_prefill/tests/devhost.rs +++ b/crates/aien-inference-abi/src/qwen3_moe_omega_prefill/tests/devhost.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! W-L1G-D: the device router logits + combine path ([`super::super::devhost`]) on a fake device. //! New file. [`DhDev`] wraps the driver tests' [`FakeDevice`] and adds the three device entries, //! computed by `aien_omega_pf`'s reference loops (the loops the chip kernels are tested against). diff --git a/crates/aien-inference-abi/src/resident.rs b/crates/aien-inference-abi/src/resident.rs index 574746ee..36afd39a 100644 --- a/crates/aien-inference-abi/src/resident.rs +++ b/crates/aien-inference-abi/src/resident.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! GB10 weight ownership (sovereign-core #277, cut C; design: docs/design/gb10-weight-ownership.md). //! //! On the GB10 production path a matmul weight lives on the device only: it is streamed from diff --git a/crates/aien-inference-abi/src/strict.rs b/crates/aien-inference-abi/src/strict.rs index b808d5cb..b38b0d7a 100644 --- a/crates/aien-inference-abi/src/strict.rs +++ b/crates/aien-inference-abi/src/strict.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Strict real-model execution (AIEN 0.1 commissioning gate GB10-4). //! //! A production build (the default: cargo feature `dev-fallback` off) fails diff --git a/crates/aien-inference-abi/src/tensor.rs b/crates/aien-inference-abi/src/tensor.rs index a66b2a8e..307d47f4 100644 --- a/crates/aien-inference-abi/src/tensor.rs +++ b/crates/aien-inference-abi/src/tensor.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Pure native Rust tensor operations for transformer forward execution. //! Provides cache-friendly vector and matrix math, RMSNorm, RoPE, and SwiGLU activations. diff --git a/crates/aien-inference-abi/src/tensor_abi.rs b/crates/aien-inference-abi/src/tensor_abi.rs index 412d9839..992c0d37 100644 --- a/crates/aien-inference-abi/src/tensor_abi.rs +++ b/crates/aien-inference-abi/src/tensor_abi.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! C-compatible typed tensor boundary for capsule storage and accelerator residency. use crate::capsule::{ModelCapsule, TensorLayout, WeightDType}; diff --git a/crates/aien-inference-abi/src/tokenizer.rs b/crates/aien-inference-abi/src/tokenizer.rs index df7ffbf6..3accb1d5 100644 --- a/crates/aien-inference-abi/src/tokenizer.rs +++ b/crates/aien-inference-abi/src/tokenizer.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Pure Rust tokenizer and chat template formatter for the Llama model family //! (TinyLlama zephyr-style chat, Llama 3 instruct chat, ChatML as shipped by SmolLM2). //! Wraps Hugging Face tokenizers crate without Python runtime dependencies. diff --git a/crates/aien-inference-abi/src/tool_boundary.rs b/crates/aien-inference-abi/src/tool_boundary.rs index 144a151b..f4ff8de1 100644 --- a/crates/aien-inference-abi/src/tool_boundary.rs +++ b/crates/aien-inference-abi/src/tool_boundary.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Trusted boundary for tool output entering a Qwen3 conversation (issue #310). //! //! The Qwen3-Instruct-2507 chat template does not escape tool content, and diff --git a/crates/aien-inference-abi/src/transformer_backend.rs b/crates/aien-inference-abi/src/transformer_backend.rs index cdcfc493..d7a56826 100644 --- a/crates/aien-inference-abi/src/transformer_backend.rs +++ b/crates/aien-inference-abi/src/transformer_backend.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Pure native Rust transformer inference backend executing real forward passes. //! Dispatches tensor math through the decoupled TensorBackend trait for CPU and Omega GB10 execution. diff --git a/crates/aien-inference-abi/src/weights.rs b/crates/aien-inference-abi/src/weights.rs index 5835ac02..c19aa185 100644 --- a/crates/aien-inference-abi/src/weights.rs +++ b/crates/aien-inference-abi/src/weights.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Native weight data structures and zero-dependency loaders for transformer models. use crate::resident::{MatrixRef, MatrixWeight}; diff --git a/crates/aien-inference-abi/tests/attention_wiring.rs b/crates/aien-inference-abi/tests/attention_wiring.rs index 2181b489..bae5387b 100644 --- a/crates/aien-inference-abi/tests/attention_wiring.rs +++ b/crates/aien-inference-abi/tests/attention_wiring.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! SC-2: deterministic wiring qualification of the attention reference paths (Drake's attention //! hardening cut). Every case uses head-distinct magnitude bands so a wrong kv-head mapping, a //! wrong query-head row, a wrong output row or a transposed output cannot pass by accident, and diff --git a/crates/aien-inference-abi/tests/bf16_paged_attention.rs b/crates/aien-inference-abi/tests/bf16_paged_attention.rs index 61a49620..05add9e6 100644 --- a/crates/aien-inference-abi/tests/bf16_paged_attention.rs +++ b/crates/aien-inference-abi/tests/bf16_paged_attention.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! CPU paged attention must decode the pool dtype. A bf16 pool read as f32 //! diverges from the GPU path on the first decode step. diff --git a/crates/aien-inference-abi/tests/bitnet_tokenizer_real.rs b/crates/aien-inference-abi/tests/bitnet_tokenizer_real.rs index cc78d8fe..f4948f39 100644 --- a/crates/aien-inference-abi/tests/bitnet_tokenizer_real.rs +++ b/crates/aien-inference-abi/tests/bitnet_tokenizer_real.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Our BitNet tokenizer on the real `tokenizer.json` (ignored: needs the checkpoint). //! //! BITNET_DIR=~/models/BitNet-b1.58-2B-4T-bf16 cargo test -p aien-inference-abi \ diff --git a/crates/aien-inference-abi/tests/branch_client_harness.rs b/crates/aien-inference-abi/tests/branch_client_harness.rs index 6932205b..b6e1dc87 100644 --- a/crates/aien-inference-abi/tests/branch_client_harness.rs +++ b/crates/aien-inference-abi/tests/branch_client_harness.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aien_inference_abi::{ModelConfig, NativeTransformerBackend, TransformerWeights}; #[test] diff --git a/crates/aien-inference-abi/tests/chat_prompt_pin.rs b/crates/aien-inference-abi/tests/chat_prompt_pin.rs index c3772990..202b0a48 100644 --- a/crates/aien-inference-abi/tests/chat_prompt_pin.rs +++ b/crates/aien-inference-abi/tests/chat_prompt_pin.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Pins the composed chat prompt token ids for a fixed chat input, so the plain-model //! change cannot alter how chat-template models build prompts. Ids were computed on //! origin/main (86841ba) before the change. diff --git a/crates/aien-inference-abi/tests/gb10_serving_reservation.rs b/crates/aien-inference-abi/tests/gb10_serving_reservation.rs index 0aa3e3e6..5cbe3ae3 100644 --- a/crates/aien-inference-abi/tests/gb10_serving_reservation.rs +++ b/crates/aien-inference-abi/tests/gb10_serving_reservation.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sovereign-core#277 (cut toward it, not a fix): when the daemon serves Qwen3 on the GB10 //! (the already opt-in path), start-up reserves the serving buffers from declared bounds, //! prepares every matmul kernel, seals, and refuses to serve by name when omega refuses. diff --git a/crates/aien-inference-abi/tests/kv_seam_backend_test.rs b/crates/aien-inference-abi/tests/kv_seam_backend_test.rs index cebd0c05..3030a4d0 100644 --- a/crates/aien-inference-abi/tests/kv_seam_backend_test.rs +++ b/crates/aien-inference-abi/tests/kv_seam_backend_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! C6a (sc#484, ADR 0003 sections 6.2 and 6.3): the backend side of the //! persistent-KV seam. //! diff --git a/crates/aien-inference-abi/tests/llama32_pin.rs b/crates/aien-inference-abi/tests/llama32_pin.rs index ea900884..0240e0eb 100644 --- a/crates/aien-inference-abi/tests/llama32_pin.rs +++ b/crates/aien-inference-abi/tests/llama32_pin.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Pins unsloth/Llama-3.2-1B-Instruct (the CAND-4 model, snapshot //! 5a8abab4a5d6f164389b1079fb721cfab8d7126c) on the CPU reference path so the Qwen3 loader change //! cannot alter a Llama-architecture model: composed prompt ids, and the exact last-position diff --git a/crates/aien-inference-abi/tests/omega_backend_parity.rs b/crates/aien-inference-abi/tests/omega_backend_parity.rs index 295313ec..8e4515a8 100644 --- a/crates/aien-inference-abi/tests/omega_backend_parity.rs +++ b/crates/aien-inference-abi/tests/omega_backend_parity.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! FB-1 cut 3b: OmegaGb10Backend against ReferenceCpuBackend on TinyLlama layer shapes. //! //! Host test (runs everywhere, stub-aware): in a stub build the backend must diff --git a/crates/aien-inference-abi/tests/openwaldo_byte_tokenizer.rs b/crates/aien-inference-abi/tests/openwaldo_byte_tokenizer.rs index d217f5df..1bc1e250 100644 --- a/crates/aien-inference-abi/tests/openwaldo_byte_tokenizer.rs +++ b/crates/aien-inference-abi/tests/openwaldo_byte_tokenizer.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! OpenWALDO byte tokenizer as a plain `tokenizer.json`. //! //! OpenWALDO exports ship a custom Python tokenizer (`OpenWALDOByteTokenizer`): diff --git a/crates/aien-inference-abi/tests/openwaldo_forward_parity.rs b/crates/aien-inference-abi/tests/openwaldo_forward_parity.rs index 6d19aafe..1eee5e6a 100644 --- a/crates/aien-inference-abi/tests/openwaldo_forward_parity.rs +++ b/crates/aien-inference-abi/tests/openwaldo_forward_parity.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! OpenWALDO tiny model (1 layer, hidden 32, 4 heads, 2 KV heads, vocab 259, tied //! embeddings, bf16) loaded by the CPU reference engine from its Hugging Face directory, //! compared with last-position logits from transformers 5.17.0 (CPU, float32 after diff --git a/crates/aien-inference-abi/tests/paged_attention_parity.rs b/crates/aien-inference-abi/tests/paged_attention_parity.rs index e66459fd..98dbe3da 100644 --- a/crates/aien-inference-abi/tests/paged_attention_parity.rs +++ b/crates/aien-inference-abi/tests/paged_attention_parity.rs @@ -1,4 +1,19 @@ #![allow(clippy::too_many_arguments, clippy::needless_range_loop)] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Paged KV pool layout certification (host only). //! //! Enforces: diff --git a/crates/aien-inference-abi/tests/paged_transformer_parity.rs b/crates/aien-inference-abi/tests/paged_transformer_parity.rs index afe1a885..a1cd0ec3 100644 --- a/crates/aien-inference-abi/tests/paged_transformer_parity.rs +++ b/crates/aien-inference-abi/tests/paged_transformer_parity.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aien_inference_abi::{ModelConfig, NativeTransformerBackend, TransformerWeights}; #[test] diff --git a/crates/aien-inference-abi/tests/plain_model_load.rs b/crates/aien-inference-abi/tests/plain_model_load.rs index fd339e38..351ef2b0 100644 --- a/crates/aien-inference-abi/tests/plain_model_load.rs +++ b/crates/aien-inference-abi/tests/plain_model_load.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! A base (non-chat) model directory has no chat template: it loads with an explicit //! "no chat template" state, plain encode/decode work, and chat rendering is refused. //! An existing but unrecognized template is still refused at load. diff --git a/crates/aien-inference-abi/tests/prefill_pool_exhaustion.rs b/crates/aien-inference-abi/tests/prefill_pool_exhaustion.rs index 07e26c0e..b1ce07ae 100644 --- a/crates/aien-inference-abi/tests/prefill_pool_exhaustion.rs +++ b/crates/aien-inference-abi/tests/prefill_pool_exhaustion.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! PREFILL-I25: a KV pool that runs out during a prefill append or a //! single-token decode step must fail LOUDLY and leave a retryable state. //! diff --git a/crates/aien-inference-abi/tests/qwen3_8b_chat_template.rs b/crates/aien-inference-abi/tests/qwen3_8b_chat_template.rs index 343b0bfe..4c9228e3 100644 --- a/crates/aien-inference-abi/tests/qwen3_8b_chat_template.rs +++ b/crates/aien-inference-abi/tests/qwen3_8b_chat_template.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Qwen3-8B chat template, thinking OFF (sc#384). Pinned text: Hugging Face `Qwen/Qwen3-8B` //! revision b968826d9c46dd6066d109eabc6255188de91218 (fixtures/chat-templates/qwen3-8b). //! diff --git a/crates/aien-inference-abi/tests/qwen3_chat_template.rs b/crates/aien-inference-abi/tests/qwen3_chat_template.rs index 24d569c5..acd320ff 100644 --- a/crates/aien-inference-abi/tests/qwen3_chat_template.rs +++ b/crates/aien-inference-abi/tests/qwen3_chat_template.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Qwen3-4B-Instruct-2507 chat template: the pinned template text is recognized, the engine's //! rendering equals the reference Jinja rendering (fixtures/chat-templates/.../render_oracle.json) //! for every recorded conversation, and any altered Qwen template is refused. diff --git a/crates/aien-inference-abi/tests/qwen3_forward_parity.rs b/crates/aien-inference-abi/tests/qwen3_forward_parity.rs index 620427c1..1962cdc4 100644 --- a/crates/aien-inference-abi/tests/qwen3_forward_parity.rs +++ b/crates/aien-inference-abi/tests/qwen3_forward_parity.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Qwen3 (`Qwen3ForCausalLM`) on the CPU reference path. //! //! Oracle: transformers 5.17.0 / torch 2.14.0 on CPU, float32 after upcasting the bf16 diff --git a/crates/aien-inference-abi/tests/qwen3_untied_head.rs b/crates/aien-inference-abi/tests/qwen3_untied_head.rs index cb0adf83..4fd789b8 100644 --- a/crates/aien-inference-abi/tests/qwen3_untied_head.rs +++ b/crates/aien-inference-abi/tests/qwen3_untied_head.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Untied output head (`tie_word_embeddings=false`), as in Qwen3-8B (hidden 4096, intermediate //! 12288, rope_theta 1e6, `lm_head.weight` in the last shard). CPU reference path, sc#384. //! diff --git a/crates/aien-inference-abi/tests/resident_weights.rs b/crates/aien-inference-abi/tests/resident_weights.rs index c8007610..345d5bbe 100644 --- a/crates/aien-inference-abi/tests/resident_weights.rs +++ b/crates/aien-inference-abi/tests/resident_weights.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! GB10 weight ownership (sovereign-core #277 cut C): resident bf16 upload straight from the //! checkpoint, no host f32 copy of any matmul weight. //! diff --git a/crates/aien-inference-abi/tests/smollm2_pin.rs b/crates/aien-inference-abi/tests/smollm2_pin.rs index fac1364f..70069e4f 100644 --- a/crates/aien-inference-abi/tests/smollm2_pin.rs +++ b/crates/aien-inference-abi/tests/smollm2_pin.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Pins SmolLM2-1.7B-Instruct on the CPU reference path so the Qwen3 loader change cannot //! alter a Llama-architecture model: composed prompt ids, and the exact last-position //! logits (FNV-1a over every f32 bit pattern, plus the top-5 ids). Values were computed on diff --git a/crates/aien-inference-abi/tests/tinyllama_noise_floor.rs b/crates/aien-inference-abi/tests/tinyllama_noise_floor.rs index 9053ac3f..cb7d3c77 100644 --- a/crates/aien-inference-abi/tests/tinyllama_noise_floor.rs +++ b/crates/aien-inference-abi/tests/tinyllama_noise_floor.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! PREFILL-E2E C7: measure the TinyLlama noise floor that branch parity will face. //! //! Tolerance rule this measurement feeds (no number is fixed here): diff --git a/crates/aien-inference-abi/tests/tinyllama_parity.rs b/crates/aien-inference-abi/tests/tinyllama_parity.rs index 99a36db8..7a405952 100644 --- a/crates/aien-inference-abi/tests/tinyllama_parity.rs +++ b/crates/aien-inference-abi/tests/tinyllama_parity.rs @@ -1,4 +1,19 @@ #![allow(clippy::chunks_exact_to_as_chunks)] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Multi-Stage Numerical Parity Test Harness for TinyLlama-1.1B-Chat-v1.0. //! Asserts 5 strict stages against Hugging Face FP32 reference oracle fixtures: //! 1. Tokenizer Parity: Formatted prompt strings and token IDs match oracle 100%. diff --git a/crates/aien-inference-abi/tests/tool_boundary.rs b/crates/aien-inference-abi/tests/tool_boundary.rs index 353f6326..31814ad9 100644 --- a/crates/aien-inference-abi/tests/tool_boundary.rs +++ b/crates/aien-inference-abi/tests/tool_boundary.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Issue #310: untrusted tool output must not forge turns. The renderer stays byte-identical to //! upstream (see qwen3_chat_template.rs); the refusal lives at the trusted boundary. diff --git a/crates/aien-inference-abi/tests/transformer_parity.rs b/crates/aien-inference-abi/tests/transformer_parity.rs index 7afc7126..18eedf19 100644 --- a/crates/aien-inference-abi/tests/transformer_parity.rs +++ b/crates/aien-inference-abi/tests/transformer_parity.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Numerical correctness and parity test suite for NativeTransformerBackend. //! Verifies transformer execution, RMSNorm, RoPE, GQA, and multi-step autoregressive generation. diff --git a/crates/aien-inference-runtime/src/lib.rs b/crates/aien-inference-runtime/src/lib.rs index ff4258cb..1f6cf272 100644 --- a/crates/aien-inference-runtime/src/lib.rs +++ b/crates/aien-inference-runtime/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + pub mod model; pub mod service; diff --git a/crates/aien-inference-runtime/src/model.rs b/crates/aien-inference-runtime/src/model.rs index 3d8d878c..c6890c75 100644 --- a/crates/aien-inference-runtime/src/model.rs +++ b/crates/aien-inference-runtime/src/model.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aien_inference_abi::backend::{ReferenceCpuBackend, TensorBackend}; use aien_inference_abi::tokenizer::TinyLlamaTokenizer; use aien_inference_abi::transformer_backend::NativeTransformerBackend; diff --git a/crates/aien-inference-runtime/src/service.rs b/crates/aien-inference-runtime/src/service.rs index e03f54df..92ea9926 100644 --- a/crates/aien-inference-runtime/src/service.rs +++ b/crates/aien-inference-runtime/src/service.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use super::model::EmbeddedModel; use aien_inference_service::{InferenceEvent, InferenceRequest, InferenceService}; use async_trait::async_trait; diff --git a/crates/aien-inference-runtime/tests/drift/mod.rs b/crates/aien-inference-runtime/tests/drift/mod.rs index 44cb9e97..4840338b 100644 --- a/crates/aien-inference-runtime/tests/drift/mod.rs +++ b/crates/aien-inference-runtime/tests/drift/mod.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Teacher-forced logit comparison shared by the strict gate and the drift diagnostic. //! //! Both backends are fed the reference's own greedy tokens, so every step compares diff --git a/crates/aien-inference-runtime/tests/logit_drift.rs b/crates/aien-inference-runtime/tests/logit_drift.rs index 65391ba0..f6588104 100644 --- a/crates/aien-inference-runtime/tests/logit_drift.rs +++ b/crates/aien-inference-runtime/tests/logit_drift.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Teacher-forced logit drift between the CPU reference and the Omega backend, printed //! per step (diagnostic), plus host tests proving the drift judge used by the strict gate //! rejects what it must. diff --git a/crates/aien-inference-runtime/tests/oracle/mod.rs b/crates/aien-inference-runtime/tests/oracle/mod.rs index f0dc7866..10c2f4a6 100644 --- a/crates/aien-inference-runtime/tests/oracle/mod.rs +++ b/crates/aien-inference-runtime/tests/oracle/mod.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Independent reference and per-op native accounting for the GB10 strict gate. //! //! The independent reference is the Hugging Face FP32 oracle fixture checked into diff --git a/crates/aien-inference-runtime/tests/runtime_tests.rs b/crates/aien-inference-runtime/tests/runtime_tests.rs index 0aa3e825..c989b79e 100644 --- a/crates/aien-inference-runtime/tests/runtime_tests.rs +++ b/crates/aien-inference-runtime/tests/runtime_tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aien_inference_runtime::EmbeddedInferenceService; use aien_inference_service::{InferenceEvent, InferenceRequest, InferenceService}; diff --git a/crates/aien-inference-runtime/tests/strict_real_model.rs b/crates/aien-inference-runtime/tests/strict_real_model.rs index 5e702a8d..23fa69ad 100644 --- a/crates/aien-inference-runtime/tests/strict_real_model.rs +++ b/crates/aien-inference-runtime/tests/strict_real_model.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! GB10-4: strict real-model execution gate (AIEN 0.1 commissioning). //! //! Non-ignored tests prove the production build fails closed: no checkpoint diff --git a/crates/aien-inference-service/src/events.rs b/crates/aien-inference-service/src/events.rs index 0acd5396..836ea44e 100644 --- a/crates/aien-inference-service/src/events.rs +++ b/crates/aien-inference-service/src/events.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, Serialize, Deserialize)] diff --git a/crates/aien-inference-service/src/lib.rs b/crates/aien-inference-service/src/lib.rs index 5d2a8499..878b5786 100644 --- a/crates/aien-inference-service/src/lib.rs +++ b/crates/aien-inference-service/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + pub mod events; pub mod limits; pub mod request; diff --git a/crates/aien-inference-service/src/limits.rs b/crates/aien-inference-service/src/limits.rs index 86769faf..57958f36 100644 --- a/crates/aien-inference-service/src/limits.rs +++ b/crates/aien-inference-service/src/limits.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, Serialize, Deserialize)] diff --git a/crates/aien-inference-service/src/request.rs b/crates/aien-inference-service/src/request.rs index 2b12ad95..600a4e00 100644 --- a/crates/aien-inference-service/src/request.rs +++ b/crates/aien-inference-service/src/request.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use super::limits::InferenceLimits; use serde::{Deserialize, Serialize}; diff --git a/crates/aien-inference-service/src/service.rs b/crates/aien-inference-service/src/service.rs index 93a31f1c..59b3a502 100644 --- a/crates/aien-inference-service/src/service.rs +++ b/crates/aien-inference-service/src/service.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use super::events::InferenceEvent; use super::request::InferenceRequest; use async_trait::async_trait; diff --git a/crates/aien-inference-service/tests/protocol_tests.rs b/crates/aien-inference-service/tests/protocol_tests.rs index 62837547..ab801e82 100644 --- a/crates/aien-inference-service/tests/protocol_tests.rs +++ b/crates/aien-inference-service/tests/protocol_tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aien_inference_service::{InferenceEvent, InferenceRequest}; #[test] diff --git a/crates/aien-kv-bench/src/bin/bench_persistent_kv.rs b/crates/aien-kv-bench/src/bin/bench_persistent_kv.rs index 1fc1881f..b51aa8b6 100644 --- a/crates/aien-kv-bench/src/bin/bench_persistent_kv.rs +++ b/crates/aien-kv-bench/src/bin/bench_persistent_kv.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! `bench_persistent_kv`: persistent KV benchmark on the host CPU reference //! backend (cut C9, sc#485). Writes one JSON report (schema //! `aien.pkv.bench.v1`) and prints the generated Markdown table. diff --git a/crates/aien-kv-bench/src/lib.rs b/crates/aien-kv-bench/src/lib.rs index d395891c..5494200f 100644 --- a/crates/aien-kv-bench/src/lib.rs +++ b/crates/aien-kv-bench/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Persistent KV benchmark harness (cut C9, sc#485; ADR 0003 sections 10, //! 15.1 and 16.5). `report` is the output contract (labels, required metrics, //! NOT_RUN rows, no mixed cache states); `run` measures rows on the host CPU diff --git a/crates/aien-kv-bench/src/report.rs b/crates/aien-kv-bench/src/report.rs index 8429b90a..0a547733 100644 --- a/crates/aien-kv-bench/src/report.rs +++ b/crates/aien-kv-bench/src/report.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The benchmark's output contract (CUTS.md C9, schema B6; ADR 0003 sections //! 10, 15.1 and 16.5). //! diff --git a/crates/aien-kv-bench/src/run.rs b/crates/aien-kv-bench/src/run.rs index 8fa4fc3c..6edbac53 100644 --- a/crates/aien-kv-bench/src/run.rs +++ b/crates/aien-kv-bench/src/run.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The measuring half of `bench_persistent_kv`: drives the real runtime spine, //! the real scheduler and the native transformer backend on the host CPU //! reference arithmetic (`ReferenceCpuBackend`, reference test weights), with diff --git a/crates/aien-kv-bench/tests/bench_persistent_kv_test.rs b/crates/aien-kv-bench/tests/bench_persistent_kv_test.rs index 6e9927a7..2f876785 100644 --- a/crates/aien-kv-bench/tests/bench_persistent_kv_test.rs +++ b/crates/aien-kv-bench/tests/bench_persistent_kv_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! C9 (sc#485, ADR 0003 sections 10, 15.1, 16.5; CUTS.md C9): the persistent //! KV benchmark's output contract. Host only: no GPU, no store I/O here (the //! binary is only run with arguments it must refuse before doing any work). diff --git a/crates/aien-kv-cache/src/lib.rs b/crates/aien-kv-cache/src/lib.rs index 2609b64a..5fe72ea5 100644 --- a/crates/aien-kv-cache/src/lib.rs +++ b/crates/aien-kv-cache/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Native Paged KV-Cache Manager with physical unified-memory tensors, //! reference-counted copy-on-write branching, and prefix caching. //! diff --git a/crates/aien-kv-cache/tests/cow_branching_tests.rs b/crates/aien-kv-cache/tests/cow_branching_tests.rs index 8ec2d223..a3601a87 100644 --- a/crates/aien-kv-cache/tests/cow_branching_tests.rs +++ b/crates/aien-kv-cache/tests/cow_branching_tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aien_kv_cache::{AienKvManager, KvDType, KvPoolConfig}; #[test] diff --git a/crates/aien-kv-cache/tests/holder_ownership_tests.rs b/crates/aien-kv-cache/tests/holder_ownership_tests.rs index ae851993..3043e958 100644 --- a/crates/aien-kv-cache/tests/holder_ownership_tests.rs +++ b/crates/aien-kv-cache/tests/holder_ownership_tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Holder ownership primitives (persistent-KV cut C3, ADR 0003 section 5.2). //! //! A holder is an ordinary block table whose id lives in the reserved slot diff --git a/crates/aien-kv-cache/tests/incremental_blocks_tests.rs b/crates/aien-kv-cache/tests/incremental_blocks_tests.rs index 527dc2ad..fb71f65e 100644 --- a/crates/aien-kv-cache/tests/incremental_blocks_tests.rs +++ b/crates/aien-kv-cache/tests/incremental_blocks_tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! GB10-2: `incremental_blocks_needed` is the one authority for new blocks. //! Every prediction is checked against what the real append path allocates. diff --git a/crates/aien-kv-cache/tests/kv_lifecycle_qualification.rs b/crates/aien-kv-cache/tests/kv_lifecycle_qualification.rs index 0e726bf6..ac0c9f98 100644 --- a/crates/aien-kv-cache/tests/kv_lifecycle_qualification.rs +++ b/crates/aien-kv-cache/tests/kv_lifecycle_qualification.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! KV lifecycle qualification (overnight CAND-0 campaign, lane L6-KV). //! //! Host-only checks on `AienKvManager` with a heap pool, no GPU, no model: diff --git a/crates/aien-kv-cache/tests/truncate_sequence_tests.rs b/crates/aien-kv-cache/tests/truncate_sequence_tests.rs index 4f9c8be5..46295233 100644 --- a/crates/aien-kv-cache/tests/truncate_sequence_tests.rs +++ b/crates/aien-kv-cache/tests/truncate_sequence_tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! `truncate_sequence` (draft-verify lane, 2026-10-12): drops the K/V past a position so a //! speculative verify block can be rolled back; the next append continues at the cut. use aien_kv_cache::AienKvManager; diff --git a/crates/aien-kv-store/src/coalesce.rs b/crates/aien-kv-store/src/coalesce.rs index 18945298..c18c1be7 100644 --- a/crates/aien-kv-store/src/coalesce.rs +++ b/crates/aien-kv-store/src/coalesce.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Landing-buffer coalescing table (ADR 0003 section 7.3, review finding 6). //! //! Same-key loads coalesce at the **job and landing-buffer level**: one diff --git a/crates/aien-kv-store/src/error.rs b/crates/aien-kv-store/src/error.rs index 47b1da36..529ad1ad 100644 --- a/crates/aien-kv-store/src/error.rs +++ b/crates/aien-kv-store/src/error.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Error vocabulary for identity, codec and validation. Every variant is a //! plain value (no allocation to build or report one). diff --git a/crates/aien-kv-store/src/fake.rs b/crates/aien-kv-store/src/fake.rs index e05110de..3782f417 100644 --- a/crates/aien-kv-store/src/fake.rs +++ b/crates/aien-kv-store/src/fake.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Deterministic in-memory `KvStore` (ADR 0003 section 13): a virtual clock, //! scripted latencies and faults, no threads, no real time, no I/O. The same //! script gives the same completions in the same order. diff --git a/crates/aien-kv-store/src/holder.rs b/crates/aien-kv-store/src/holder.rs index 0d6a0b96..a5b6ac1b 100644 --- a/crates/aien-kv-store/src/holder.rs +++ b/crates/aien-kv-store/src/holder.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Holder generation allocation (ADR 0003 section 5.2). //! //! A chunk holder is a real block table in the cache manager under the diff --git a/crates/aien-kv-store/src/host_fs.rs b/crates/aien-kv-store/src/host_fs.rs index 5ed5a043..bebcbf14 100644 --- a/crates/aien-kv-store/src/host_fs.rs +++ b/crates/aien-kv-store/src/host_fs.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // The publication protocol (temp write, file fsync, atomic rename, directory // fsync, index insert) and the startup walk are written from ADR 0003 sections // 2.4, 3.4, 4.1 and 7.4. LMCache fs_l2_adapter.py (4d69cdc4, Apache-2.0, diff --git a/crates/aien-kv-store/src/identity.rs b/crates/aien-kv-store/src/identity.rs index 4e6e24a4..e4acd98a 100644 --- a/crates/aien-kv-store/src/identity.rs +++ b/crates/aien-kv-store/src/identity.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Prefix-chained chunk keys adapt the rolling-hash idea of LMCache's // `TokenHasher` (lmcache/v1/multiprocess/token_hasher.py, lines 30-52, 60-70, // 183-190 at 4d69cdc4). LMCache is Apache-2.0, Copyright LMCache contributors. diff --git a/crates/aien-kv-store/src/index.rs b/crates/aien-kv-store/src/index.rs index 10269a04..094bd5e9 100644 --- a/crates/aien-kv-store/src/index.rs +++ b/crates/aien-kv-store/src/index.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The in-memory object index of the host filesystem adapter (ADR 0003 //! section 4.1, finding 8). //! diff --git a/crates/aien-kv-store/src/lib.rs b/crates/aien-kv-store/src/lib.rs index f2a4751a..aaa1d1e6 100644 --- a/crates/aien-kv-store/src/lib.rs +++ b/crates/aien-kv-store/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Persistent KV cache: versioned chunk identity, the 256-byte record header in //! its 4096-byte region, validation, and the `KvStore` contract with a //! deterministic fake adapter. Binding design: `docs/adr/0003-persistent-kv-identity-storage-contract-and-ownership.md`. diff --git a/crates/aien-kv-store/src/pin.rs b/crates/aien-kv-store/src/pin.rs index 22aafb99..638c9588 100644 --- a/crates/aien-kv-store/src/pin.rs +++ b/crates/aien-kv-store/src/pin.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Pinned views of pool blocks handed to a store job (ADR 0003 section 3.2). //! //! A `PinnedSource` / `PinnedDest` names blocks of one pool allocation and diff --git a/crates/aien-kv-store/src/record.rs b/crates/aien-kv-store/src/record.rs index f4d820d8..11fd4907 100644 --- a/crates/aien-kv-store/src/record.rs +++ b/crates/aien-kv-store/src/record.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The 256-byte record header, identical on host and native (ADR 0003 section 2.1). use crate::error::KvError; diff --git a/crates/aien-kv-store/src/seal.rs b/crates/aien-kv-store/src/seal.rs index f46d28e2..a813f871 100644 --- a/crates/aien-kv-store/src/seal.rs +++ b/crates/aien-kv-store/src/seal.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Encryption at rest of host record files (ADR 0003 section 20, #506). //! //! A sealed object is the same `header region (4096 B) || payload` file as diff --git a/crates/aien-kv-store/src/store.rs b/crates/aien-kv-store/src/store.rs index 4ff7e08a..c20e829c 100644 --- a/crates/aien-kv-store/src/store.rs +++ b/crates/aien-kv-store/src/store.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The `KvStore` contract (ADR 0003 section 3.2, revised by section 13). //! //! Binding rules, in one place: diff --git a/crates/aien-kv-store/src/validate.rs b/crates/aien-kv-store/src/validate.rs index 382771d8..a5de946b 100644 --- a/crates/aien-kv-store/src/validate.rs +++ b/crates/aien-kv-store/src/validate.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Validation before any allocation or copy (ADR 0003 section 1.4). use crate::error::KvError; diff --git a/crates/aien-kv-store/src/worker.rs b/crates/aien-kv-store/src/worker.rs index 033971e1..386e86c3 100644 --- a/crates/aien-kv-store/src/worker.rs +++ b/crates/aien-kv-store/src/worker.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The storage worker (cut C5, ADR 0003 sections 7 and 8). //! //! Two bounded intake queues (restore and park) and one bounded completion diff --git a/crates/aien-kv-store/tests/common/host_fs_rig.rs b/crates/aien-kv-store/tests/common/host_fs_rig.rs index 38733578..90ec4322 100644 --- a/crates/aien-kv-store/tests/common/host_fs_rig.rs +++ b/crates/aien-kv-store/tests/common/host_fs_rig.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Shared fixtures for the host filesystem adapter tests (cut C4): a geometry //! whose objects are whole multiples of 4096 bytes (so physical bytes equal //! file size on every filesystem), real temporary directories, pool memory diff --git a/crates/aien-kv-store/tests/common/mod.rs b/crates/aien-kv-store/tests/common/mod.rs index dae051a2..3b4ade91 100644 --- a/crates/aien-kv-store/tests/common/mod.rs +++ b/crates/aien-kv-store/tests/common/mod.rs @@ -1,4 +1,19 @@ #![allow(dead_code)] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aien_kv_store::{ BackendFormat, ChunkHeader, ChunkKey, ComputeConfig, EngineConfig, EngineIdentity, HiddenAct, diff --git a/crates/aien-kv-store/tests/common/rig.rs b/crates/aien-kv-store/tests/common/rig.rs index aaa60869..8f1b7fa6 100644 --- a/crates/aien-kv-store/tests/common/rig.rs +++ b/crates/aien-kv-store/tests/common/rig.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Shared fixtures for the fake-adapter and (later) worker tests: a tiny //! geometry whose objects cost `OBJ` bytes of quota, leaked "pool" memory with //! pinned views over it, and a rig that wires them to a `FakeKvStore`. diff --git a/crates/aien-kv-store/tests/fake_store_tests.rs b/crates/aien-kv-store/tests/fake_store_tests.rs index 774f24d0..9da21f76 100644 --- a/crates/aien-kv-store/tests/fake_store_tests.rs +++ b/crates/aien-kv-store/tests/fake_store_tests.rs @@ -1,4 +1,19 @@ #![cfg(feature = "std")] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Test cases adapted (re-expressed in Rust, none copied) from LMCache // tests/v1/distributed/test_nixl_store_dynamic_l2_adapter.py at 4d69cdc4, // Apache-2.0, Copyright LMCache contributors: diff --git a/crates/aien-kv-store/tests/golden_tests.rs b/crates/aien-kv-store/tests/golden_tests.rs index 0f72e1ef..fed641d1 100644 --- a/crates/aien-kv-store/tests/golden_tests.rs +++ b/crates/aien-kv-store/tests/golden_tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Golden vectors: `tests/golden/kv_record_v1.json`. The file pins the //! compute-config digest, the namespace derivation, the chunk key chain, the //! 256-byte header bytes and the 4096-byte header region (segment digest table diff --git a/crates/aien-kv-store/tests/holder_tests.rs b/crates/aien-kv-store/tests/holder_tests.rs index c13934e7..b2dc6a65 100644 --- a/crates/aien-kv-store/tests/holder_tests.rs +++ b/crates/aien-kv-store/tests/holder_tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Holder generation allocation (ADR 0003 section 5.2, Codex re-review 2). //! //! A chunk holder is `SequenceId { slot: u32::MAX, generation }`. The old rule diff --git a/crates/aien-kv-store/tests/host_fs_hardening_tests.rs b/crates/aien-kv-store/tests/host_fs_hardening_tests.rs index c0d115d6..55361123 100644 --- a/crates/aien-kv-store/tests/host_fs_hardening_tests.rs +++ b/crates/aien-kv-store/tests/host_fs_hardening_tests.rs @@ -1,4 +1,19 @@ #![cfg(feature = "std")] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Recovery, purge and admission hardening of the host filesystem adapter //! (Grok C4 review P1-3, P2-4, P2-5, P2-6; ADR 0003 section 4.1). I/O errors //! come from directories made unreadable or read-only with chmod in a temp diff --git a/crates/aien-kv-store/tests/host_fs_lock_tests.rs b/crates/aien-kv-store/tests/host_fs_lock_tests.rs index 4034cb34..caba84f8 100644 --- a/crates/aien-kv-store/tests/host_fs_lock_tests.rs +++ b/crates/aien-kv-store/tests/host_fs_lock_tests.rs @@ -1,4 +1,19 @@ #![cfg(feature = "std")] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! One open store per store directory (#521). ADR 0003 supports one runtime //! per store directory; the host adapter enforces it with an exclusive lock //! on `LOCK` in the store root, taken at open and held until the store drops. diff --git a/crates/aien-kv-store/tests/host_fs_recovery_tests.rs b/crates/aien-kv-store/tests/host_fs_recovery_tests.rs index 1468e4ba..0be40c38 100644 --- a/crates/aien-kv-store/tests/host_fs_recovery_tests.rs +++ b/crates/aien-kv-store/tests/host_fs_recovery_tests.rs @@ -1,4 +1,19 @@ #![cfg(feature = "std")] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Recovery follows ADR 0003 section 4.1 (review finding 8); the temp-file and // foreign-file rules come from the same section. LMCache fs_l2_adapter.py // (4d69cdc4, Apache-2.0, Copyright LMCache contributors) informed only the diff --git a/crates/aien-kv-store/tests/host_fs_seal_tests.rs b/crates/aien-kv-store/tests/host_fs_seal_tests.rs index da013bf4..608e55de 100644 --- a/crates/aien-kv-store/tests/host_fs_seal_tests.rs +++ b/crates/aien-kv-store/tests/host_fs_seal_tests.rs @@ -1,4 +1,19 @@ #![cfg(feature = "std")] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Encryption at rest in the host filesystem adapter (ADR 0003 section 20, #506). //! Every refusal case must end with the object discarded and the destination //! untouched, so the caller recomputes; nothing is ever restored from it. diff --git a/crates/aien-kv-store/tests/host_fs_security_tests.rs b/crates/aien-kv-store/tests/host_fs_security_tests.rs index a3c386f6..69841d36 100644 --- a/crates/aien-kv-store/tests/host_fs_security_tests.rs +++ b/crates/aien-kv-store/tests/host_fs_security_tests.rs @@ -1,4 +1,19 @@ #![cfg(feature = "std")] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! At-rest security of the host filesystem adapter (ADR 0003 section 19). //! The objects hold K/V derived from user prompts, so the store directory is //! private to the runtime identity: directories 0700, files 0600, an existing diff --git a/crates/aien-kv-store/tests/host_fs_stream_tests.rs b/crates/aien-kv-store/tests/host_fs_stream_tests.rs index 663c4c07..3ca469b2 100644 --- a/crates/aien-kv-store/tests/host_fs_stream_tests.rs +++ b/crates/aien-kv-store/tests/host_fs_stream_tests.rs @@ -1,4 +1,19 @@ #![cfg(feature = "std")] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Streaming recovery (Grok C4 review P1-2, P2-6, P2-7; ADR 0003 section //! 4.1): the walk holds one directory cursor, buffers no listing, never holds //! the index lock across a listing or a header read, reports a failed walk, diff --git a/crates/aien-kv-store/tests/host_fs_tests.rs b/crates/aien-kv-store/tests/host_fs_tests.rs index 8a76715c..99ab5bac 100644 --- a/crates/aien-kv-store/tests/host_fs_tests.rs +++ b/crates/aien-kv-store/tests/host_fs_tests.rs @@ -1,4 +1,19 @@ #![cfg(feature = "std")] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // The publication protocol, fault hooks and cache behaviour are written from // ADR 0003 sections 2.4, 3.4 and 7.4. LMCache fs_l2_adapter.py (4d69cdc4, // Apache-2.0, Copyright LMCache contributors) informed two ideas only: a diff --git a/crates/aien-kv-store/tests/identity_tests.rs b/crates/aien-kv-store/tests/identity_tests.rs index afde69f5..8e1d9b72 100644 --- a/crates/aien-kv-store/tests/identity_tests.rs +++ b/crates/aien-kv-store/tests/identity_tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Test cases adapted (re-expressed in Rust, none copied) from LMCache // tests/v1/distributed/test_nixl_store_dynamic_l2_adapter.py at 4d69cdc4, // Apache-2.0, Copyright LMCache contributors: diff --git a/crates/aien-kv-store/tests/record_tests.rs b/crates/aien-kv-store/tests/record_tests.rs index 019fcf79..732f9d30 100644 --- a/crates/aien-kv-store/tests/record_tests.rs +++ b/crates/aien-kv-store/tests/record_tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + mod common; use aien_kv_store::{ diff --git a/crates/aien-kv-store/tests/seal_bench.rs b/crates/aien-kv-store/tests/seal_bench.rs index 88c94be2..2d0ae69d 100644 --- a/crates/aien-kv-store/tests/seal_bench.rs +++ b/crates/aien-kv-store/tests/seal_bench.rs @@ -1,4 +1,19 @@ #![cfg(feature = "std")] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Host micro-benchmark behind the cipher choice of ADR 0003 section 20: //! AES-256-GCM against ChaCha20-Poly1305 (both from `ring`), sealing and //! opening 1 MiB and 16 MiB buffers in place, as the store does. diff --git a/crates/aien-kv-store/tests/seal_tests.rs b/crates/aien-kv-store/tests/seal_tests.rs index b9ac64d1..9c016e3b 100644 --- a/crates/aien-kv-store/tests/seal_tests.rs +++ b/crates/aien-kv-store/tests/seal_tests.rs @@ -1,4 +1,19 @@ #![cfg(feature = "std")] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The sealing module (ADR 0003 section 20): AEAD over the payload with the //! record's header region bound as associated data. Every negative case must //! refuse; a refusal means the caller discards the object and recomputes. diff --git a/crates/aien-kv-store/tests/validate_tests.rs b/crates/aien-kv-store/tests/validate_tests.rs index aa4c00b5..a44c0718 100644 --- a/crates/aien-kv-store/tests/validate_tests.rs +++ b/crates/aien-kv-store/tests/validate_tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! `validate_record` refuses every corruption with the named error and without //! touching the heap (ADR 0003 section 1.4, CUTS C1 red test //! `validate_refuses_before_any_allocation`). This file is its own test binary diff --git a/crates/aien-kv-store/tests/worker_host_fs_tests.rs b/crates/aien-kv-store/tests/worker_host_fs_tests.rs index c5d0daeb..ccba758e 100644 --- a/crates/aien-kv-store/tests/worker_host_fs_tests.rs +++ b/crates/aien-kv-store/tests/worker_host_fs_tests.rs @@ -1,4 +1,19 @@ #![cfg(feature = "std")] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Integration: the C5 storage worker running over the real C4 host //! filesystem adapter in a temporary directory (no fake, no mocked I/O). //! Covers store, restore, cancel and shutdown through the worker's own diff --git a/crates/aien-kv-store/tests/worker_tests.rs b/crates/aien-kv-store/tests/worker_tests.rs index 0965431e..bd3f1541 100644 --- a/crates/aien-kv-store/tests/worker_tests.rs +++ b/crates/aien-kv-store/tests/worker_tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The storage worker (cut C5, ADR 0003 sections 7 and 8) against the //! deterministic fake store. //! diff --git a/crates/aien-localhttp/src/client.rs b/crates/aien-localhttp/src/client.rs index 41e68046..16682e29 100644 --- a/crates/aien-localhttp/src/client.rs +++ b/crates/aien-localhttp/src/client.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::response::{self, BlockingResponse, Deadline, Response}; use crate::status::StatusCode; use crate::{Error, Url}; diff --git a/crates/aien-localhttp/src/error.rs b/crates/aien-localhttp/src/error.rs index f04472b1..33c059f0 100644 --- a/crates/aien-localhttp/src/error.rs +++ b/crates/aien-localhttp/src/error.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use std::time::Duration; /// Every way a request can fail. Each variant names one cause so callers and diff --git a/crates/aien-localhttp/src/lib.rs b/crates/aien-localhttp/src/lib.rs index 152cc304..c213fb21 100644 --- a/crates/aien-localhttp/src/lib.rs +++ b/crates/aien-localhttp/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! aien-localhttp: a small native HTTP/1.1 client for plain `http://` calls to //! local services (Cortex, the model seat, AEGIS, health probes). //! diff --git a/crates/aien-localhttp/src/response.rs b/crates/aien-localhttp/src/response.rs index 3e06456f..3f833181 100644 --- a/crates/aien-localhttp/src/response.rs +++ b/crates/aien-localhttp/src/response.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::{Error, StatusCode}; use serde::de::DeserializeOwned; use std::future::Future; diff --git a/crates/aien-localhttp/src/status.rs b/crates/aien-localhttp/src/status.rs index 7e5ae90b..dd910060 100644 --- a/crates/aien-localhttp/src/status.rs +++ b/crates/aien-localhttp/src/status.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use std::fmt; /// A response status code (100 to 999). diff --git a/crates/aien-localhttp/src/test_server.rs b/crates/aien-localhttp/src/test_server.rs index 894c8d10..2a273e5e 100644 --- a/crates/aien-localhttp/src/test_server.rs +++ b/crates/aien-localhttp/src/test_server.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! A raw HTTP/1.1 test server for the crates that call local services through //! this client. Enabled by the `test-server` feature; meant for dev-dependencies. //! diff --git a/crates/aien-localhttp/src/url.rs b/crates/aien-localhttp/src/url.rs index 95e96035..f1c6893f 100644 --- a/crates/aien-localhttp/src/url.rs +++ b/crates/aien-localhttp/src/url.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::Error; use std::fmt; diff --git a/crates/aien-localhttp/tests/behavior.rs b/crates/aien-localhttp/tests/behavior.rs index 5827f3f3..cca06943 100644 --- a/crates/aien-localhttp/tests/behavior.rs +++ b/crates/aien-localhttp/tests/behavior.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Behavior tests against a local tokio TCP server that speaks raw HTTP/1.1, //! so every byte on the wire is visible and every failure can be staged. diff --git a/crates/aien-mcp/src/approval.rs b/crates/aien-mcp/src/approval.rs index 16dab699..f23dcc42 100644 --- a/crates/aien-mcp/src/approval.rs +++ b/crates/aien-mcp/src/approval.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Single-use approvals for the host-owned authority seam. //! //! When an [`crate::EffectAuthority`] answers `RequireApproval`, a host approver (a human or an diff --git a/crates/aien-mcp/src/authority.rs b/crates/aien-mcp/src/authority.rs index 5ddf90ec..08604dd2 100644 --- a/crates/aien-mcp/src/authority.rs +++ b/crates/aien-mcp/src/authority.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Host-owned authority seam: the only production path to an [`AuthorizedEffect`]. //! //! An [`EffectIntent`] carries no authority. It becomes an `AuthorizedEffect` only when diff --git a/crates/aien-mcp/src/broker.rs b/crates/aien-mcp/src/broker.rs index 0fb94c8a..4ad9d40a 100644 --- a/crates/aien-mcp/src/broker.rs +++ b/crates/aien-mcp/src/broker.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use std::collections::HashMap; use std::sync::{Arc, Mutex}; use std::time::{Duration, SystemTime}; diff --git a/crates/aien-mcp/src/effect.rs b/crates/aien-mcp/src/effect.rs index 69a3fac9..3ecc250d 100644 --- a/crates/aien-mcp/src/effect.rs +++ b/crates/aien-mcp/src/effect.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use std::sync::Arc; use crate::approval::Reservation; diff --git a/crates/aien-mcp/src/error.rs b/crates/aien-mcp/src/error.rs index f709b61d..a28d1da3 100644 --- a/crates/aien-mcp/src/error.rs +++ b/crates/aien-mcp/src/error.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aien_capability::ProviderId; use thiserror::Error; diff --git a/crates/aien-mcp/src/lane_tests.rs b/crates/aien-mcp/src/lane_tests.rs index 4b1db52d..4fd993c3 100644 --- a/crates/aien-mcp/src/lane_tests.rs +++ b/crates/aien-mcp/src/lane_tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use std::sync::atomic::{AtomicUsize, Ordering}; use std::sync::Arc; diff --git a/crates/aien-mcp/src/lib.rs b/crates/aien-mcp/src/lib.rs index bb2f78d1..8038c10e 100644 --- a/crates/aien-mcp/src/lib.rs +++ b/crates/aien-mcp/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! MCP session owner for AIEN. //! //! `aien-mcp` keeps the live session. J-Space receives a [`CapabilitySnapshot`] diff --git a/crates/aien-mcp/src/memory.rs b/crates/aien-mcp/src/memory.rs index 61d142b3..b2e7c8c4 100644 --- a/crates/aien-mcp/src/memory.rs +++ b/crates/aien-mcp/src/memory.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use std::sync::Arc; use aien_capability::ToolDescriptor; diff --git a/crates/aien-mcp/src/session.rs b/crates/aien-mcp/src/session.rs index 3c0b7ede..8c52099c 100644 --- a/crates/aien-mcp/src/session.rs +++ b/crates/aien-mcp/src/session.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Enrollment owner. J-Space receives a [`crate::SpeculativeLane`], not this type. use std::collections::HashMap; diff --git a/crates/aien-mcp/src/snapshot.rs b/crates/aien-mcp/src/snapshot.rs index 23c1094f..a7113435 100644 --- a/crates/aien-mcp/src/snapshot.rs +++ b/crates/aien-mcp/src/snapshot.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use std::sync::Arc; use std::time::SystemTime; diff --git a/crates/aien-mcp/src/transport.rs b/crates/aien-mcp/src/transport.rs index 0e0a65c7..a261e8d9 100644 --- a/crates/aien-mcp/src/transport.rs +++ b/crates/aien-mcp/src/transport.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! `rmcp` client and server transports behind [`crate::McpWire`]. //! //! Effect class is not read from the server. Enrollment supplies it. A listed diff --git a/crates/aien-mcp/src/transport_tests.rs b/crates/aien-mcp/src/transport_tests.rs index 53a02b95..4a0e97b4 100644 --- a/crates/aien-mcp/src/transport_tests.rs +++ b/crates/aien-mcp/src/transport_tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use std::collections::HashMap; use std::sync::atomic::{AtomicUsize, Ordering}; use std::sync::Arc; diff --git a/crates/aien-mcp/src/wire.rs b/crates/aien-mcp/src/wire.rs index f7168909..973f995b 100644 --- a/crates/aien-mcp/src/wire.rs +++ b/crates/aien-mcp/src/wire.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aien_capability::ToolDescriptor; use serde_json::Value; diff --git a/crates/aien-mcp/tests/approval.rs b/crates/aien-mcp/tests/approval.rs index 32a95725..ea13ac5e 100644 --- a/crates/aien-mcp/tests/approval.rs +++ b/crates/aien-mcp/tests/approval.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Single-use approval consumption, through the public API only. use std::sync::atomic::{AtomicUsize, Ordering}; use std::sync::Arc; diff --git a/crates/aien-mcp/tests/authority.rs b/crates/aien-mcp/tests/authority.rs index 1d41f80e..4422ff07 100644 --- a/crates/aien-mcp/tests/authority.rs +++ b/crates/aien-mcp/tests/authority.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Negative controls for the host-owned authority seam. This file is outside the crate, so it //! can touch only the public API: no `AuthorizedEffect` can be built here except through //! `EffectLane::authorize`. diff --git a/crates/aien-mcp/tests/binding.rs b/crates/aien-mcp/tests/binding.rs index 11c8640f..854f0a35 100644 --- a/crates/aien-mcp/tests/binding.rs +++ b/crates/aien-mcp/tests/binding.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! L3-AUTH negative controls: what an approval binds, what the ledger binds, and what a faulty //! provider can and cannot cause. Public API only. Every assertion that matters counts provider //! executions (`calls`), not return values. diff --git a/crates/aien-mcp/tests/trace.rs b/crates/aien-mcp/tests/trace.rs index 5d4ff9af..15b945b7 100644 --- a/crates/aien-mcp/tests/trace.rs +++ b/crates/aien-mcp/tests/trace.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Correlation trace events from the effect lane (#398), through the public API. //! Events are observational: these tests also check that nothing sensitive is in them. use std::sync::atomic::{AtomicUsize, Ordering}; diff --git a/crates/aien-mcp/tests/two_phase.rs b/crates/aien-mcp/tests/two_phase.rs index 67ee7dfb..cab0337e 100644 --- a/crates/aien-mcp/tests/two_phase.rs +++ b/crates/aien-mcp/tests/two_phase.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Two-phase approval spend (issue #206), through the public API only: reserve at mint, commit in //! `execute_effect`, release when the minted effect is dropped or cancelled un-executed. use std::sync::atomic::{AtomicUsize, Ordering}; diff --git a/crates/aien-omega-bf16/build.rs b/crates/aien-omega-bf16/build.rs index eeedc9aa..56a8f7e2 100644 --- a/crates/aien-omega-bf16/build.rs +++ b/crates/aien-omega-bf16/build.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Decides whether omega's bf16 streaming GEMV (`src/omega_gpu_bf16_gemv_api.h`, //! OWN-30B cut 8 on the omega side) is linked. //! diff --git a/crates/aien-omega-bf16/src/lib.rs b/crates/aien-omega-bf16/src/lib.rs index 369679a3..f52b9eb9 100644 --- a/crates/aien-omega-bf16/src/lib.rs +++ b/crates/aien-omega-bf16/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Safe Rust wrapper over omega's bf16 streaming GEMV (`src/omega_gpu_bf16_gemv_api.h`, //! OWN-30B lm_head cut on the omega side; no CUDA). //! diff --git a/crates/aien-omega-compose/build.rs b/crates/aien-omega-compose/build.rs index b18571dd..89c269c4 100644 --- a/crates/aien-omega-compose/build.rs +++ b/crates/aien-omega-compose/build.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Links omega `librx_compose.a` (COMPOSITION-2 + the rxc_host ABI facade). //! //! Offline: nothing is downloaded. Order: diff --git a/crates/aien-omega-compose/src/ffi.rs b/crates/aien-omega-compose/src/ffi.rs index 7dd4eacc..fa3634c3 100644 --- a/crates/aien-omega-compose/src/ffi.rs +++ b/crates/aien-omega-compose/src/ffi.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Raw declarations of omega `src/runtime/rxc_host_abi.h` (ABI version 2). //! //! Every mirrored constant, callback type, struct and function is declared through the diff --git a/crates/aien-omega-compose/src/lib.rs b/crates/aien-omega-compose/src/lib.rs index 9cb633c6..5a428185 100644 --- a/crates/aien-omega-compose/src/lib.rs +++ b/crates/aien-omega-compose/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Safe binding to omega COMPOSITION-2 through the rxc_host ABI //! (`src/runtime/rxc_host_abi.h`, linked from `librx_compose.a`). //! diff --git a/crates/aien-omega-compose/tests/abi_manifest.rs b/crates/aien-omega-compose/tests/abi_manifest.rs index d695ff2c..a68d498d 100644 --- a/crates/aien-omega-compose/tests/abi_manifest.rs +++ b/crates/aien-omega-compose/tests/abi_manifest.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The Rust mirror of the rxc_host ABI (src/ffi.rs) must equal abi/rxc_host_abi.manifest, //! field by field (offset, size, kind, order), constant by constant and signature by //! signature. Runs in every build, the stub included. diff --git a/crates/aien-omega-compose/tests/callbacks.rs b/crates/aien-omega-compose/tests/callbacks.rs index a7ae9c96..f5f72f93 100644 --- a/crates/aien-omega-compose/tests/callbacks.rs +++ b/crates/aien-omega-compose/tests/callbacks.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Callback safety across the rxc_host boundary, against the real librx_compose.a: //! a failing or panicking Skill or verifier is contained and reported as a failed alternative //! (never unwinds into C), repeated open/close neither leaks handle slots nor keeps callback diff --git a/crates/aien-omega-compose/tests/compose.rs b/crates/aien-omega-compose/tests/compose.rs index d6e89b4b..2c9bf4f7 100644 --- a/crates/aien-omega-compose/tests/compose.rs +++ b/crates/aien-omega-compose/tests/compose.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The omega C test (tests/runtime/rxc_host_abi_test.c) repeated from Rust: //! run one goal, restart + recall, identity refusal, torn tail refused then //! recovered, host notes recalled after restart. Ignored diff --git a/crates/aien-omega-dattn/build.rs b/crates/aien-omega-dattn/build.rs index c5b99c22..dbbafc67 100644 --- a/crates/aien-omega-dattn/build.rs +++ b/crates/aien-omega-dattn/build.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Decides whether omega's one-launch decode attention (`src/omega_gpu_decode_attn_api.h`, //! OWN-30B cut 8 on the omega side) is linked. //! diff --git a/crates/aien-omega-dattn/src/lib.rs b/crates/aien-omega-dattn/src/lib.rs index ed7a5fbd..0e40699e 100644 --- a/crates/aien-omega-dattn/src/lib.rs +++ b/crates/aien-omega-dattn/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Safe Rust wrapper over omega's one-launch decode attention for Qwen3-30B-A3B //! (`src/omega_gpu_decode_attn_api.h`, OWN-30B cut 8 on the omega side; no CUDA). //! diff --git a/crates/aien-omega-dattn/src/raw.rs b/crates/aien-omega-dattn/src/raw.rs index 3d386cfe..23967079 100644 --- a/crates/aien-omega-dattn/src/raw.rs +++ b/crates/aien-omega-dattn/src/raw.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Raw cache handle for sibling FFI crates (OWN-30B whole-prompt prefill, W-L1G-R, 2026-10-14). New file. //! //! omega's prefill attention (`omega_gpu_prefill_attn`, bound in `aien-omega-pf`) appends to and diff --git a/crates/aien-omega-dattn/src/rows.rs b/crates/aien-omega-dattn/src/rows.rs index 2291c3e2..ed4f6437 100644 --- a/crates/aien-omega-dattn/src/rows.rs +++ b/crates/aien-omega-dattn/src/rows.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Row access to the decode attention cache (persistent KV park/restore, sc#505). New file. //! //! omega keeps each layer's K and V planes as bf16 rows of [`HEAD_DIM`] values, row diff --git a/crates/aien-omega-dgraph/build.rs b/crates/aien-omega-dgraph/build.rs index af62e4ac..67b98765 100644 --- a/crates/aien-omega-dgraph/build.rs +++ b/crates/aien-omega-dgraph/build.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Decides whether omega's one-list decode token (`src/omega_gpu_decode_graph.h`, OWN-30B L2 //! cut 2 on the omega side) is linked. //! diff --git a/crates/aien-omega-dgraph/src/lib.rs b/crates/aien-omega-dgraph/src/lib.rs index fb1bad0a..0380cd40 100644 --- a/crates/aien-omega-dgraph/src/lib.rs +++ b/crates/aien-omega-dgraph/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Safe-ish Rust wrapper over omega's one-command-list decode token for Qwen3-30B-A3B //! (`src/omega_gpu_decode_graph.h`, OWN-30B L2 cut 2 on the omega side; no CUDA). //! diff --git a/crates/aien-omega-fp8/build.rs b/crates/aien-omega-fp8/build.rs index 3fe1c955..f1ffc4ec 100644 --- a/crates/aien-omega-fp8/build.rs +++ b/crates/aien-omega-fp8/build.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Decides whether omega's FP8 GEMV API (`src/omega_gpu_fp8_api.h`, OWN-30B cuts 5-6) is linked. //! //! The archive itself is linked by `aien-omega-gpu`'s build script (this crate only declares diff --git a/crates/aien-omega-fp8/src/lib.rs b/crates/aien-omega-fp8/src/lib.rs index a27c2b74..722d473c 100644 --- a/crates/aien-omega-fp8/src/lib.rs +++ b/crates/aien-omega-fp8/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Safe Rust wrapper over omega's FP8 e4m3 block-scaled GEMV (`src/omega_gpu_fp8_api.h`, //! OWN-30B cuts 5-6, no CUDA). //! diff --git a/crates/aien-omega-gpu/build.rs b/crates/aien-omega-gpu/build.rs index 08eff4f8..cb9053f7 100644 --- a/crates/aien-omega-gpu/build.rs +++ b/crates/aien-omega-gpu/build.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Links `libomega_gpu.a` from the omega commit pinned in `omega.lock`. //! //! Offline by design: nothing is downloaded and no CUDA/nvcc is used. Order: diff --git a/crates/aien-omega-gpu/src/ffi.rs b/crates/aien-omega-gpu/src/ffi.rs index e8b5ccd0..69424cf8 100644 --- a/crates/aien-omega-gpu/src/ffi.rs +++ b/crates/aien-omega-gpu/src/ffi.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Raw declarations, written by hand from omega `src/omega_gpu_matmul_api.h`, //! `omega_gpu_session.h`, `omega_gpu_serving.h`, `omega_gpu_elementwise_api.h` and //! `omega_gpu_attention_api.h` at the commit pinned in `omega.lock`. Nothing generated. diff --git a/crates/aien-omega-gpu/src/lib.rs b/crates/aien-omega-gpu/src/lib.rs index 58ddfc5f..18a3f77a 100644 --- a/crates/aien-omega-gpu/src/lib.rs +++ b/crates/aien-omega-gpu/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Safe Rust wrapper over omega's native GPU matmul (no CUDA). //! //! Built against the omega commit in `omega.lock`. With `cfg(has_omega_gpu)` the diff --git a/crates/aien-omega-gpu/tests/abi_manifest.rs b/crates/aien-omega-gpu/tests/abi_manifest.rs index 4382250f..0679c881 100644 --- a/crates/aien-omega-gpu/tests/abi_manifest.rs +++ b/crates/aien-omega-gpu/tests/abi_manifest.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The Rust mirror of the omega GPU ABI (src/ffi.rs) must equal abi/omega_gpu.manifest, //! field by field (offset, size, kind, order), constant by constant and signature by //! signature. Runs in every build, the stub included. diff --git a/crates/aien-omega-gpu/tests/parity.rs b/crates/aien-omega-gpu/tests/parity.rs index 2d5d6493..30cf5a54 100644 --- a/crates/aien-omega-gpu/tests/parity.rs +++ b/crates/aien-omega-gpu/tests/parity.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Host tests run everywhere (stub-aware). The chip parity test is #[ignore]d: //! run it on the Spark through the heavy queue with a native build. use aien_omega_gpu::*; diff --git a/crates/aien-omega-moe/build.rs b/crates/aien-omega-moe/build.rs index 9b6de88f..195c873b 100644 --- a/crates/aien-omega-moe/build.rs +++ b/crates/aien-omega-moe/build.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Decides whether omega's MoE window API (`src/omega_gpu_moe_api.h`, OWN-30B cut 2) is linked. //! //! The archive itself is linked by `aien-omega-gpu`'s build script (this crate only declares diff --git a/crates/aien-omega-moe/src/lib.rs b/crates/aien-omega-moe/src/lib.rs index 9c71674b..fcf244e9 100644 --- a/crates/aien-omega-moe/src/lib.rs +++ b/crates/aien-omega-moe/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Safe Rust wrapper over omega's column-window matmul for mixture-of-experts weights //! (`src/omega_gpu_moe_api.h`, OWN-30B cut 2, no CUDA). //! diff --git a/crates/aien-omega-pf/build.rs b/crates/aien-omega-pf/build.rs index ed82d73e..f7523a43 100644 --- a/crates/aien-omega-pf/build.rs +++ b/crates/aien-omega-pf/build.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Decides which parts of omega's prefill API are linked (pattern of `aien-omega-fp8/build.rs`). //! //! The archive itself is linked by `aien-omega-gpu`'s build script; this crate only declares diff --git a/crates/aien-omega-pf/src/lib.rs b/crates/aien-omega-pf/src/lib.rs index d5c3c5fc..9efa0530 100644 --- a/crates/aien-omega-pf/src/lib.rs +++ b/crates/aien-omega-pf/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Safe Rust wrapper over omega's device-resident prefill API (`src/omega_gpu_prefill.h`, W-L1G //! cut 1e76e728) and the causal prefill attention (`src/omega_gpu_prefill_attn_api.h`, W-L1A). //! No CUDA: every launch is omega's own Blackwell code generator. diff --git a/crates/aien-omega-router/build.rs b/crates/aien-omega-router/build.rs index 65ec13b4..14cfe61a 100644 --- a/crates/aien-omega-router/build.rs +++ b/crates/aien-omega-router/build.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Decides whether omega's one-launch MoE router (`src/omega_gpu_router_api.h`, //! OWN-30B router cut on the omega side) is linked. //! diff --git a/crates/aien-omega-router/src/lib.rs b/crates/aien-omega-router/src/lib.rs index 0f4f3d1c..b761701c 100644 --- a/crates/aien-omega-router/src/lib.rs +++ b/crates/aien-omega-router/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Safe Rust wrapper over omega's one-launch MoE router for Qwen3-30B-A3B //! (`src/omega_gpu_router_api.h`, OWN-30B router cut on the omega side; no CUDA). //! diff --git a/crates/aien-omegese-constraint/src/constraint.rs b/crates/aien-omegese-constraint/src/constraint.rs index e136e0b8..da52d456 100644 --- a/crates/aien-omegese-constraint/src/constraint.rs +++ b/crates/aien-omegese-constraint/src/constraint.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! [`OmegeseConstraint`]: the chat framing (forced fence and header) and the per-step legal-token //! mask from an [`ItemOracle`], as a [`Constraint`] for the generation controller. diff --git a/crates/aien-omegese-constraint/src/lib.rs b/crates/aien-omegese-constraint/src/lib.rs index 3a07825f..de298481 100644 --- a/crates/aien-omegese-constraint/src/lib.rs +++ b/crates/aien-omegese-constraint/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The Omegese guardrail: a [`Constraint`](aien_inference_abi::generation::Constraint) for the //! generation controller (ADR 0004 section 2.3) that keeps a model's reply a prefix of a program //! `omegese emit` accepts. diff --git a/crates/aien-omegese-constraint/src/oracle.rs b/crates/aien-omegese-constraint/src/oracle.rs index c50e6870..0e0312fd 100644 --- a/crates/aien-omegese-constraint/src/oracle.rs +++ b/crates/aien-omegese-constraint/src/oracle.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The item oracle: what may come next after a prefix of an Omegese program. //! //! The contract is the fixed grammar of `omegese next --machine` (omega diff --git a/crates/aien-omegese-constraint/src/signature.rs b/crates/aien-omegese-constraint/src/signature.rs index 7f5562b9..8170ae1a 100644 --- a/crates/aien-omegese-constraint/src/signature.rs +++ b/crates/aien-omegese-constraint/src/signature.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The entry function's public signature, as the task gives it (the `entry`, `params` and `ret` //! lines the user message already contains), and the Omegese header line built from it. diff --git a/crates/aien-omegese-constraint/src/table.rs b/crates/aien-omegese-constraint/src/table.rs index c0d5953b..fa8f2589 100644 --- a/crates/aien-omegese-constraint/src/table.rs +++ b/crates/aien-omegese-constraint/src/table.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The model vocabulary as byte strings, with each token's shape against Omegese's word //! separators precomputed, and an encoder for the text the constraint forces. diff --git a/crates/aien-omegese-constraint/src/word.rs b/crates/aien-omegese-constraint/src/word.rs index a712b0ef..09958384 100644 --- a/crates/aien-omegese-constraint/src/word.rs +++ b/crates/aien-omegese-constraint/src/word.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Word-level reading of one oracle answer: may the current word grow by some bytes, and is it a //! whole item. Section 6.2's writer rule: text may be appended to the current word exactly when //! U followed by it is still the start of some `word`, `newname` or `number` item. diff --git a/crates/aien-omegese-constraint/tests/common/mod.rs b/crates/aien-omegese-constraint/tests/common/mod.rs index ea44f43a..0313e62d 100644 --- a/crates/aien-omegese-constraint/tests/common/mod.rs +++ b/crates/aien-omegese-constraint/tests/common/mod.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Shared by the host tests: the 64-token synthetic table, an exact one-program oracle, and the //! real binary's path from the environment. #![allow(dead_code)] diff --git a/crates/aien-omegese-constraint/tests/echo_walks.rs b/crates/aien-omegese-constraint/tests/echo_walks.rs index 5bcf27fe..ca8b2734 100644 --- a/crates/aien-omegese-constraint/tests/echo_walks.rs +++ b/crates/aien-omegese-constraint/tests/echo_walks.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The guardrail end to end on the host fake `EchoChainModel` (ADR 0004 section 4) with the //! 64-token synthetic table: exact walks, refusal through the rollback, the no-constraint path //! byte for byte, and (with `OMEGESE_BIN`) random walks against the real oracle. diff --git a/crates/aien-omegese-constraint/tests/mask_steps.rs b/crates/aien-omegese-constraint/tests/mask_steps.rs index 8a5db980..6e6878de 100644 --- a/crates/aien-omegese-constraint/tests/mask_steps.rs +++ b/crates/aien-omegese-constraint/tests/mask_steps.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The mask step by step, without a model: a driver writes a known program through the //! constraint, and at every masked step every allowed token is checked against an exact oracle //! (soundness), not only the token the driver takes. diff --git a/crates/aien-omegese-constraint/tests/qwen_vocab.rs b/crates/aien-omegese-constraint/tests/qwen_vocab.rs index a7fd92ed..48e5bbee 100644 --- a/crates/aien-omegese-constraint/tests/qwen_vocab.rs +++ b/crates/aien-omegese-constraint/tests/qwen_vocab.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Host integration: the real Qwen vocabulary against the real oracle on the public dev programs. //! Each program is walked through the constraint one step at a time; at every masked step the //! token Qwen's own tokenizer would write next must be allowed, unless it crosses two word diff --git a/crates/aien-platform-linux/src/buffer.rs b/crates/aien-platform-linux/src/buffer.rs index ed8eaf50..9941f5a7 100644 --- a/crates/aien-platform-linux/src/buffer.rs +++ b/crates/aien-platform-linux/src/buffer.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Linux Unified Buffer implementation for Grace Blackwell GB10 and Linux host. //! Allocates anonymous page-aligned mmap; GB10 shares one coherent system memory pool (ATS). diff --git a/crates/aien-platform-linux/src/device.rs b/crates/aien-platform-linux/src/device.rs index 97be78dc..692033f8 100644 --- a/crates/aien-platform-linux/src/device.rs +++ b/crates/aien-platform-linux/src/device.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Linux Compute Device implementation for Grace Blackwell GB10. //! //! No CUDA (FB-1 cut 6): GB10 memory is one unified LPDDR5x pool and, on ATS/HMM systems, diff --git a/crates/aien-platform-linux/src/lib.rs b/crates/aien-platform-linux/src/lib.rs index fb9f31ca..2359d962 100644 --- a/crates/aien-platform-linux/src/lib.rs +++ b/crates/aien-platform-linux/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Linux and Grace Blackwell GB10 platform driver cell for the AIEN runtime. pub mod buffer; diff --git a/crates/aien-platform-linux/src/queue.rs b/crates/aien-platform-linux/src/queue.rs index 18bfedec..66cfc807 100644 --- a/crates/aien-platform-linux/src/queue.rs +++ b/crates/aien-platform-linux/src/queue.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Priority-deadline concurrent WorkQueue for the Linux platform. use aien_platform::{InferenceWork, QueueError, WorkQueue}; diff --git a/crates/aien-platform-linux/src/telemetry.rs b/crates/aien-platform-linux/src/telemetry.rs index 02dad645..571ea3e6 100644 --- a/crates/aien-platform-linux/src/telemetry.rs +++ b/crates/aien-platform-linux/src/telemetry.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Telemetry source for Linux and DGX Spark GB10. use aien_platform::{PlatformError, TelemetrySnapshot, TelemetrySource}; diff --git a/crates/aien-platform-linux/tests/external.rs b/crates/aien-platform-linux/tests/external.rs index b0c5d444..1dabbbe0 100644 --- a/crates/aien-platform-linux/tests/external.rs +++ b/crates/aien-platform-linux/tests/external.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! `LinuxUnifiedBuffer::from_external`: a buffer over memory another allocator owns releases //! through its callback exactly once and never unmaps. diff --git a/crates/aien-platform/src/compute.rs b/crates/aien-platform/src/compute.rs index d44427d0..b7ab5c31 100644 --- a/crates/aien-platform/src/compute.rs +++ b/crates/aien-platform/src/compute.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::PlatformError; #[derive(Debug, Clone, Copy, PartialEq, Eq)] diff --git a/crates/aien-platform/src/lib.rs b/crates/aien-platform/src/lib.rs index 000a2cb1..eb1f4306 100644 --- a/crates/aien-platform/src/lib.rs +++ b/crates/aien-platform/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Pure no_std platform traits and capability abstractions for the AIEN and SparkOS runtime. //! Eliminates POSIX/Linux concepts (PathBuf, Command, sockets, threads, procfs) from core cognition and scheduling. diff --git a/crates/aien-platform/src/memory.rs b/crates/aien-platform/src/memory.rs index 1d69ad1e..1c00c5bd 100644 --- a/crates/aien-platform/src/memory.rs +++ b/crates/aien-platform/src/memory.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::PlatformError; use alloc::string::String; use alloc::vec::Vec; diff --git a/crates/aien-platform/src/objects.rs b/crates/aien-platform/src/objects.rs index 4a07b73b..ee94db49 100644 --- a/crates/aien-platform/src/objects.rs +++ b/crates/aien-platform/src/objects.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::PlatformError; #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] diff --git a/crates/aien-platform/src/queue.rs b/crates/aien-platform/src/queue.rs index 96292ed9..7012889b 100644 --- a/crates/aien-platform/src/queue.rs +++ b/crates/aien-platform/src/queue.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + pub type SequenceId = u64; pub type Ticks = u64; diff --git a/crates/aien-platform/src/runtime.rs b/crates/aien-platform/src/runtime.rs index ede4f1cb..11e5c794 100644 --- a/crates/aien-platform/src/runtime.rs +++ b/crates/aien-platform/src/runtime.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::compute::ComputeDevice; use crate::queue::WorkQueue; diff --git a/crates/aien-platform/src/task.rs b/crates/aien-platform/src/task.rs index 9dd39c53..ba176a3f 100644 --- a/crates/aien-platform/src/task.rs +++ b/crates/aien-platform/src/task.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::PlatformError; use alloc::string::String; use alloc::vec::Vec; diff --git a/crates/aien-platform/src/telemetry.rs b/crates/aien-platform/src/telemetry.rs index bb883b12..cbfc1bfe 100644 --- a/crates/aien-platform/src/telemetry.rs +++ b/crates/aien-platform/src/telemetry.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::PlatformError; use alloc::string::String; diff --git a/crates/aien-proof/formal/formal-job.sh b/crates/aien-proof/formal/formal-job.sh index 2b5f53f1..3d7f6f3c 100644 --- a/crates/aien-proof/formal/formal-job.sh +++ b/crates/aien-proof/formal/formal-job.sh @@ -1,4 +1,19 @@ #!/bin/sh +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Run one formal oracle job on the proof board and bind the result to its evidence. # # formal-job.sh formal/jobs/.job diff --git a/crates/aien-proof/src/board.rs b/crates/aien-proof/src/board.rs index db6d6aa1..76730b8a 100644 --- a/crates/aien-proof/src/board.rs +++ b/crates/aien-proof/src/board.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The board: look up the stamp, join an identical run in flight, or claim the //! job and run it behind the CPU slot, memory, and GPU gates. //! diff --git a/crates/aien-proof/src/chain.rs b/crates/aien-proof/src/chain.rs index d9aa8ba8..015cd5fa 100644 --- a/crates/aien-proof/src/chain.rs +++ b/crates/aien-proof/src/chain.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Receipt dependency graph verification (`aien-proof verify-chain`). //! //! Rules, all fail closed: diff --git a/crates/aien-proof/src/evidence.rs b/crates/aien-proof/src/evidence.rs index 678ec357..226c4bf5 100644 --- a/crates/aien-proof/src/evidence.rs +++ b/crates/aien-proof/src/evidence.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Canonical evidence receipts (EvidenceReceiptV1). //! //! A receipt is a structured proof object: exact source, exact artifacts, diff --git a/crates/aien-proof/src/fingerprint.rs b/crates/aien-proof/src/fingerprint.rs index 1ca6781f..25ba4663 100644 --- a/crates/aien-proof/src/fingerprint.rs +++ b/crates/aien-proof/src/fingerprint.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Job fingerprints. Paths are hashed relative to the job's base directory, so //! the same code in two different worktrees produces the same key and shares //! one stamp. Inside a git checkout, files git ignores (build output such as a diff --git a/crates/aien-proof/src/formal.rs b/crates/aien-proof/src/formal.rs index 1eb45dd4..0a39cf29 100644 --- a/crates/aien-proof/src/formal.rs +++ b/crates/aien-proof/src/formal.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Formal oracle bindings: tie a formal proof job to the exact evidence it ran on. //! //! A formal job (a theorem prover or model checker run) is one more diff --git a/crates/aien-proof/src/gate.rs b/crates/aien-proof/src/gate.rs index f4156074..89daec8d 100644 --- a/crates/aien-proof/src/gate.rs +++ b/crates/aien-proof/src/gate.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Gate manifests: small declarative descriptions of what closes a gate. //! //! The evidence system never decides architectural policy. It evaluates a diff --git a/crates/aien-proof/src/import.rs b/crates/aien-proof/src/import.rs index 5afe2ae7..cddd13b4 100644 --- a/crates/aien-proof/src/import.rs +++ b/crates/aien-proof/src/import.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Import external qualification output as receipts. //! //! Other repositories (SEED-0B runs, rollback verifiers, Store v1 crash diff --git a/crates/aien-proof/src/lease.rs b/crates/aien-proof/src/lease.rs index c6cdcc4f..7b34c495 100644 --- a/crates/aien-proof/src/lease.rs +++ b/crates/aien-proof/src/lease.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Exclusive resource lease binding for evidence receipts. //! //! Hardware runs go through the merged coordination machinery: diff --git a/crates/aien-proof/src/ledger.rs b/crates/aien-proof/src/ledger.rs index 6ab972b4..6f74b059 100644 --- a/crates/aien-proof/src/ledger.rs +++ b/crates/aien-proof/src/ledger.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The quality ledger: one append-only JSON line per real run, sealed with the //! Crumb ledger event hash (RFC-0001 section 8.3, `CRUMB_LEDGER_EVENT_V1`), so //! each line deserializes as a `crumb_spec::ledger::LedgerEvent` and editing any diff --git a/crates/aien-proof/src/ledger_bind.rs b/crates/aien-proof/src/ledger_bind.rs index 1cf84ddb..932def33 100644 --- a/crates/aien-proof/src/ledger_bind.rs +++ b/crates/aien-proof/src/ledger_bind.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Crumb ledger cross checks for evidence receipts. //! //! The ledger remains the append only operational audit stream. Receipts diff --git a/crates/aien-proof/src/lib.rs b/crates/aien-proof/src/lib.rs index 76733fd3..94141e64 100644 --- a/crates/aien-proof/src/lib.rs +++ b/crates/aien-proof/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! aien-proof: the shared test board for the hive. //! //! Every test job is fingerprinted from its command, toolchain, and the exact diff --git a/crates/aien-proof/src/lock.rs b/crates/aien-proof/src/lock.rs index c8f319d5..5dcc8100 100644 --- a/crates/aien-proof/src/lock.rs +++ b/crates/aien-proof/src/lock.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Exclusive advisory file locks (flock). The kernel releases a lock when its //! holder exits or dies, so a crashed run can never leave a stale key behind. diff --git a/crates/aien-proof/src/main.rs b/crates/aien-proof/src/main.rs index 8e36b074..69628698 100644 --- a/crates/aien-proof/src/main.rs +++ b/crates/aien-proof/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! aien-proof CLI. //! //! aien-proof run --job NAME [--input PATH]... [--gpu] [--resource NAME]... [--agent ID] -- CMD... diff --git a/crates/aien-proof/src/store_assert.rs b/crates/aien-proof/src/store_assert.rs index 6c614e85..b997b87f 100644 --- a/crates/aien-proof/src/store_assert.rs +++ b/crates/aien-proof/src/store_assert.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Stable Store qualification assertion IDs for evidence receipts. //! //! This module records the test that happened; it never defines Store diff --git a/crates/aien-proof/src/workspace.rs b/crates/aien-proof/src/workspace.rs index 610f00c8..58d7fc17 100644 --- a/crates/aien-proof/src/workspace.rs +++ b/crates/aien-proof/src/workspace.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Split a cargo workspace into one job per member crate. Each job's inputs are //! the crate, every local crate it depends on (transitively, dev-dependencies //! included), and the root manifest and lockfile, so a stamp goes stale exactly diff --git a/crates/aien-proof/tests/store_qualification_adversarial.rs b/crates/aien-proof/tests/store_qualification_adversarial.rs index c527fb8a..07b4ae33 100644 --- a/crates/aien-proof/tests/store_qualification_adversarial.rs +++ b/crates/aien-proof/tests/store_qualification_adversarial.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aien_proof::chain::verify_chain; use aien_proof::evidence::{ receipt_id, store_receipt, verify_bytes, verify_with_store, Assertion, LedgerRef, Mutation, diff --git a/crates/aien-replay/Cargo.toml b/crates/aien-replay/Cargo.toml index 16e3051e..04a54e56 100644 --- a/crates/aien-replay/Cargo.toml +++ b/crates/aien-replay/Cargo.toml @@ -2,7 +2,7 @@ name = "aien-replay" version = "0.1.0" edition = "2021" -license = "AGPL-3.0-or-later" +license = "Apache-2.0" authors = ["Drake Stapleton "] repository = "https://github.com/aien-spark/aien-sovereign-core" description = "TRN1 execution transcript reference reader/verifier (Rust scaffolding per ADR 0024) and KV ownership property tests" diff --git a/crates/aien-replay/mutations/run_mutants.sh b/crates/aien-replay/mutations/run_mutants.sh index 00972bf3..ce334288 100755 --- a/crates/aien-replay/mutations/run_mutants.sh +++ b/crates/aien-replay/mutations/run_mutants.sh @@ -1,4 +1,19 @@ #!/bin/sh +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Prove the KV ownership checks catch realistic faults. # # usage: run_mutants.sh native apply each kv.mutants line, run the proptest, diff --git a/crates/aien-replay/src/lib.rs b/crates/aien-replay/src/lib.rs index 180efcf1..66031425 100644 --- a/crates/aien-replay/src/lib.rs +++ b/crates/aien-replay/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! aien-replay: Rust reference reader/verifier for the TRN1 execution //! transcript (aien-protocols `specs/execution-transcript/`, contract 0.1.0, //! wire schema 1). diff --git a/crates/aien-replay/tests/kv_ownership_props.rs b/crates/aien-replay/tests/kv_ownership_props.rs index 9f6addb8..1f450338 100644 --- a/crates/aien-replay/tests/kv_ownership_props.rs +++ b/crates/aien-replay/tests/kv_ownership_props.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Property tests: KV block ownership under fork / append / free / reserve. //! //! A random program of KV operations runs against `AienKvManager` and against diff --git a/crates/aien-replay/tests/trn1_conformance.rs b/crates/aien-replay/tests/trn1_conformance.rs index 22afcebb..a8f0837f 100644 --- a/crates/aien-replay/tests/trn1_conformance.rs +++ b/crates/aien-replay/tests/trn1_conformance.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! TRN1 shared corpus through the Rust reader (spec section 9). //! //! TRN1_VECTORS points at aien-protocols `specs/execution-transcript/vectors` diff --git a/crates/aien-runtime/build.rs b/crates/aien-runtime/build.rs index 2f6061ff..a4f53252 100644 --- a/crates/aien-runtime/build.rs +++ b/crates/aien-runtime/build.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! `cfg(compose_linked)` when aien-omega-compose linked the real //! librx_compose.a (its build script's `links` metadata), so tests that need //! the Cortex journal are reported IGNORED in a stub build instead of passing diff --git a/crates/aien-runtime/examples/np1_edit_merge.rs b/crates/aien-runtime/examples/np1_edit_merge.rs index b88288be..26da6168 100644 --- a/crates/aien-runtime/examples/np1_edit_merge.rs +++ b/crates/aien-runtime/examples/np1_edit_merge.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! NEXT-PHASE-1 v8 edit-merge re-derivation (ACCEPTANCE-v8 row -A). //! Recomputes the proposal the Skill hands to AEGIS for one parsed edit reply, //! `edit_proposal(reply, Some((path, prior)))` (compose/bridge.rs), from the reply text diff --git a/crates/aien-runtime/examples/np1_reference.rs b/crates/aien-runtime/examples/np1_reference.rs index 05dab087..3732764e 100644 --- a/crates/aien-runtime/examples/np1_reference.rs +++ b/crates/aien-runtime/examples/np1_reference.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! NEXT-PHASE-1 v6 CPU reference driver (ACCEPTANCE-v6 R1 and the pre-freeze //! ground checks). Runs one compose prompt through the CPU reference backend //! (`ReferenceCpuBackend`, never the GPU) on the daemon's path: config.json -> diff --git a/crates/aien-runtime/examples/qwen3_8b_smoke.rs b/crates/aien-runtime/examples/qwen3_8b_smoke.rs index 0c69de5d..a295056b 100644 --- a/crates/aien-runtime/examples/qwen3_8b_smoke.rs +++ b/crates/aien-runtime/examples/qwen3_8b_smoke.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Qwen3-8B correctness smoke driver (docs/campaigns/open-model-qwen3/SMOKE-8B-v1.md, sc#384). //! Two fixed conversations (PROMPTS), thinking off, greedy, on the daemon's path (strict //! safetensors load, shared-KV runtime, `ChatTokenizer::from_model_dir`, one warm-up turn). diff --git a/crates/aien-runtime/examples/qwen3_8b_specverify.rs b/crates/aien-runtime/examples/qwen3_8b_specverify.rs index dca7e53e..7ed1bd25 100644 --- a/crates/aien-runtime/examples/qwen3_8b_specverify.rs +++ b/crates/aien-runtime/examples/qwen3_8b_specverify.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Qwen3-8B draft-reuse speculative verification, development measurement (sc#384 speed lane, //! preregistered in ~/workspace/investigations/2026-10-12-qwen3-8b-decode-speed/plan.md, //! decision 14:30Z 2026-10-12). NOT a campaign run; nothing is promoted by it. diff --git a/crates/aien-runtime/src/allen_memory.rs b/crates/aien-runtime/src/allen_memory.rs index 7b6cc29a..3bd0571f 100644 --- a/crates/aien-runtime/src/allen_memory.rs +++ b/crates/aien-runtime/src/allen_memory.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! ALLEN scoped memory glue (arch#159): the daemon owns the memory store and //! (a) answers the `AllenMemory*` / `AllenGoal*` operator commands, (b) adds //! bounded notes for exactly one operator-named context to a compose prompt. diff --git a/crates/aien-runtime/src/approved.rs b/crates/aien-runtime/src/approved.rs index 9ed6ab04..6b164a51 100644 --- a/crates/aien-runtime/src/approved.rs +++ b/crates/aien-runtime/src/approved.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Proposer hook: an approved proposal enters the production compose path. //! //! The approval desk upstream (INTERPLANE `ComposeLedgerAuthority`, diff --git a/crates/aien-runtime/src/approved_auth.rs b/crates/aien-runtime/src/approved_auth.rs index 39791384..0139f8a7 100644 --- a/crates/aien-runtime/src/approved_auth.rs +++ b/crates/aien-runtime/src/approved_auth.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Approval authentication for the proposer hook (#249, part A). //! //! An [`crate::approved::ApprovedProposal`] carries `approval_mac`: an diff --git a/crates/aien-runtime/src/approved_replay.rs b/crates/aien-runtime/src/approved_replay.rs index 0ce54c93..024e7268 100644 --- a/crates/aien-runtime/src/approved_replay.rs +++ b/crates/aien-runtime/src/approved_replay.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Restart-safe replay protection for approved proposals (sovereign-core #249, part B). //! //! Every approved submission is claimed in the compose home's Cortex journal diff --git a/crates/aien-runtime/src/client.rs b/crates/aien-runtime/src/client.rs index 0b5b8efd..d09fec7f 100644 --- a/crates/aien-runtime/src/client.rs +++ b/crates/aien-runtime/src/client.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Local UNIX domain socket client for AienRuntimeSpine //! Used by aien-cli to communicate with the in-process runtime daemon. diff --git a/crates/aien-runtime/src/compose.rs b/crates/aien-runtime/src/compose.rs index 21308c06..d7e5488f 100644 --- a/crates/aien-runtime/src/compose.rs +++ b/crates/aien-runtime/src/compose.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The compose bridge (NEXT-PHASE-1 cut 1b): omega COMPOSITION-2 through //! aien-omega-compose. A goal becomes one proposed file change, checked, //! recorded in the Cortex journal and committed (or refused) by AEGIS. diff --git a/crates/aien-runtime/src/compose/bridge.rs b/crates/aien-runtime/src/compose/bridge.rs index 228d32ae..bd4cfc46 100644 --- a/crates/aien-runtime/src/compose/bridge.rs +++ b/crates/aien-runtime/src/compose/bridge.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The compose bridge implementation: proposal parsing, destination and input //! classification, prompts, bounded retries, the composition home and //! `ComposeBridge`. Callers use the interface in `crate::compose`. diff --git a/crates/aien-runtime/src/compute_config.rs b/crates/aien-runtime/src/compute_config.rs index efc214b4..8078614a 100644 --- a/crates/aien-runtime/src/compute_config.rs +++ b/crates/aien-runtime/src/compute_config.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Binding of the resolved `ModelConfig` to the persistent-KV identity (ADR //! 0003 section 1.2 fields 4 to 8 and 14, section 1.2.1, review finding 1), and //! the host engine identity (section 1.2.2, sc#504). diff --git a/crates/aien-runtime/src/context.rs b/crates/aien-runtime/src/context.rs index 209f73c5..c8b73f78 100644 --- a/crates/aien-runtime/src/context.rs +++ b/crates/aien-runtime/src/context.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! In-Process Context Composition and Revision Management //! Manages immutable ContextRevisions and computes missing prefill spans for the scheduler. diff --git a/crates/aien-runtime/src/control.rs b/crates/aien-runtime/src/control.rs index 34eaa8ab..20a858ae 100644 --- a/crates/aien-runtime/src/control.rs +++ b/crates/aien-runtime/src/control.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Typed Operator Control Protocol and RuntimeController //! Connects external operator CLI tools to the in-process runtime over local domain sockets. diff --git a/crates/aien-runtime/src/cortex_mark.rs b/crates/aien-runtime/src/cortex_mark.rs index 1f874ce8..97ee9d37 100644 --- a/crates/aien-runtime/src/cortex_mark.rs +++ b/crates/aien-runtime/src/cortex_mark.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! External Cortex record mark (NEXT-PHASE-2 ACCEPTANCE-v3 section 2.1-2.3). //! //! The Cortex journal header carries no record count, and the J-Space anchor diff --git a/crates/aien-runtime/src/destination.rs b/crates/aien-runtime/src/destination.rs index f508613c..1797dfc1 100644 --- a/crates/aien-runtime/src/destination.rs +++ b/crates/aien-runtime/src/destination.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Which path does a compose goal ask to WRITE? (issue #288) //! //! A goal mentions paths in two roles: the DESTINATION (the file the task diff --git a/crates/aien-runtime/src/effects.rs b/crates/aien-runtime/src/effects.rs index a09363ad..6ef978ee 100644 --- a/crates/aien-runtime/src/effects.rs +++ b/crates/aien-runtime/src/effects.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! NEXT-PHASE-2: durable effect intents on the compose home's Cortex journal //! (ACCEPTANCE-v2 section 2). //! diff --git a/crates/aien-runtime/src/generation.rs b/crates/aien-runtime/src/generation.rs index 0b9e4cbd..07ef0917 100644 --- a/crates/aien-runtime/src/generation.rs +++ b/crates/aien-runtime/src/generation.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The daemon's generation record: evidence that THIS daemon generated THIS //! text from the model file it loaded (INTERPLANE provenance, interplane#76). //! diff --git a/crates/aien-runtime/src/kv_residency.rs b/crates/aien-runtime/src/kv_residency.rs index b5d734e9..375c1f61 100644 --- a/crates/aien-runtime/src/kv_residency.rs +++ b/crates/aien-runtime/src/kv_residency.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Persistent KV in the runtime (cut C6, ADR 0003 sections 5, 6, 7.3 and 8): //! park at the scheduler's finish transaction, restore at submit, and the //! per-sequence residency states that keep both honest. diff --git a/crates/aien-runtime/src/lib.rs b/crates/aien-runtime/src/lib.rs index 7b264dfb..b0d66aab 100644 --- a/crates/aien-runtime/src/lib.rs +++ b/crates/aien-runtime/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! AIEN Runtime: Canonical Single-Process Host for Persistent Branching Intelligence pub mod allen_memory; diff --git a/crates/aien-runtime/src/objective.rs b/crates/aien-runtime/src/objective.rs index 26487cf3..350cfa09 100644 --- a/crates/aien-runtime/src/objective.rs +++ b/crates/aien-runtime/src/objective.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sovereign-core #408: the operator's objective record, as the daemon reads it. //! //! `aien-cli objective record` (sc#388) writes `objectives/.json` diff --git a/crates/aien-runtime/src/persona.rs b/crates/aien-runtime/src/persona.rs index 7c7842c4..5cd6ffc8 100644 --- a/crates/aien-runtime/src/persona.rs +++ b/crates/aien-runtime/src/persona.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! ALLEN persona profile glue (arch#159): turns the engaged identity plus the //! profile store into (a) the prompt prefix and report of a compose task and //! (b) the answers to the `Allen*` control commands. diff --git a/crates/aien-runtime/src/provisional.rs b/crates/aien-runtime/src/provisional.rs index 99bdba27..8af44d35 100644 --- a/crates/aien-runtime/src/provisional.rs +++ b/crates/aien-runtime/src/provisional.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Provisional engineering preparation in front of the canonical compose //! path (Headstart M3, issue #537). Compiled only with cargo feature //! `provisional-prep` (default off); the default build has no trace of it and diff --git a/crates/aien-runtime/src/requirements.rs b/crates/aien-runtime/src/requirements.rs index 9af9e727..8a39cafe 100644 --- a/crates/aien-runtime/src/requirements.rs +++ b/crates/aien-runtime/src/requirements.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Requirement validation for composed documents. //! //! A task goal can state a measurable requirement ("in at least 20 lines", diff --git a/crates/aien-runtime/src/requirements_extract.rs b/crates/aien-runtime/src/requirements_extract.rs index 3285c9c5..78e20d1e 100644 --- a/crates/aien-runtime/src/requirements_extract.rs +++ b/crates/aien-runtime/src/requirements_extract.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! | ` N and|or|but M` (second noun left out, e.g. `at least 20 lines and no more than 40`) | the second bound is read with the earlier noun (`MaxLines(40)`); with no clear earlier noun (or no earlier count at all), or a direction the noun does not support (`at least 3 paragraphs and no more than 5`), it is UNCERTAIN, never dropped (#344) | //! Reading the requirements out of a goal (see `requirements` for the model). //! diff --git a/crates/aien-runtime/src/rsi.rs b/crates/aien-runtime/src/rsi.rs index ab530b52..b7c761bc 100644 --- a/crates/aien-runtime/src/rsi.rs +++ b/crates/aien-runtime/src/rsi.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Autonomous Systems Optimizer (RSI) Boundary Interface //! Provides read-only runtime snapshots and validated online hyperparameter tuning. diff --git a/crates/aien-runtime/src/sequence.rs b/crates/aien-runtime/src/sequence.rs index bdd6e3f7..82aecc37 100644 --- a/crates/aien-runtime/src/sequence.rs +++ b/crates/aien-runtime/src/sequence.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! SequenceArena and Generational Sequence Allocation //! Enforces single-mutable-owner discipline for the scheduler thread. diff --git a/crates/aien-runtime/src/server.rs b/crates/aien-runtime/src/server.rs index 181ea4a8..d297fcd7 100644 --- a/crates/aien-runtime/src/server.rs +++ b/crates/aien-runtime/src/server.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Local UNIX domain socket server for AienRuntimeSpine //! Exposes typed control RPC over local IPC to operator CLI tools. diff --git a/crates/aien-runtime/src/shared_kv.rs b/crates/aien-runtime/src/shared_kv.rs index 57f46ef7..ad5ee2a1 100644 --- a/crates/aien-runtime/src/shared_kv.rs +++ b/crates/aien-runtime/src/shared_kv.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! One KV for runtime and backend (PREFILL-E2E-0 cut C2). //! //! Before this module the daemon built the spine on a pool-less KV manager diff --git a/crates/aien-runtime/src/spine.rs b/crates/aien-runtime/src/spine.rs index bbab9d32..49b5e095 100644 --- a/crates/aien-runtime/src/spine.rs +++ b/crates/aien-runtime/src/spine.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Canonical AienRuntimeSpine //! Unifies SequenceArena, AienScheduler, AienKvManager, WorldStore, ContextComposer, //! and SwarmManager in a single process address space. diff --git a/crates/aien-runtime/src/swarm.rs b/crates/aien-runtime/src/swarm.rs index 01453e02..7ed89e4d 100644 --- a/crates/aien-runtime/src/swarm.rs +++ b/crates/aien-runtime/src/swarm.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! SwarmManager and Branch-Native Swarm Coordination //! Manages first-class SwarmRecord entities and atomic branch operations. diff --git a/crates/aien-runtime/src/trace_observer.rs b/crates/aien-runtime/src/trace_observer.rs index d72ac44c..2448cebe 100644 --- a/crates/aien-runtime/src/trace_observer.rs +++ b/crates/aien-runtime/src/trace_observer.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Correlation tap on the scheduler's admit/preempt decision (#398). //! //! Implements the scheduler's read-only `DecisionObserver`. For each diff --git a/crates/aien-runtime/src/world.rs b/crates/aien-runtime/src/world.rs index 71af45f5..13f408bc 100644 --- a/crates/aien-runtime/src/world.rs +++ b/crates/aien-runtime/src/world.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Immutable World Manifests and Structural State Storage //! Implements path-copying persistent world branching, staged effect journals, and reachability tracking. diff --git a/crates/aien-runtime/tests/allen_memory_ipc_test.rs b/crates/aien-runtime/tests/allen_memory_ipc_test.rs index 511bc7fa..7a6d0015 100644 --- a/crates/aien-runtime/tests/allen_memory_ipc_test.rs +++ b/crates/aien-runtime/tests/allen_memory_ipc_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! ALLEN memory commands over the runtime socket (arch#159): routing only. ALLEN is not engaged here, so status answers "not_engaged" and a //! change is refused. In a stub omega build the compose home cannot open and //! the daemon says so (the answer is an error, never a made-up identity). diff --git a/crates/aien-runtime/tests/allen_memory_test.rs b/crates/aien-runtime/tests/allen_memory_test.rs index 96222465..ef5f62db 100644 --- a/crates/aien-runtime/tests/allen_memory_test.rs +++ b/crates/aien-runtime/tests/allen_memory_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! ALLEN scoped memory in the daemon (arch#159), adversarial: cross-context //! leakage, scope widening by text, restart, forget, foreign identity, model //! swap. FIXTURE-ONLY identities (aien-allen/tests/support), resolved through diff --git a/crates/aien-runtime/tests/allen_persona_ipc_test.rs b/crates/aien-runtime/tests/allen_persona_ipc_test.rs index ae4c8298..00de4050 100644 --- a/crates/aien-runtime/tests/allen_persona_ipc_test.rs +++ b/crates/aien-runtime/tests/allen_persona_ipc_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! ALLEN persona profile commands over the runtime socket (arch#159): routing //! only. ALLEN is not engaged here, so status answers "not_engaged" and a //! change is refused. In a stub omega build the compose home cannot open and diff --git a/crates/aien-runtime/tests/allen_persona_test.rs b/crates/aien-runtime/tests/allen_persona_test.rs index 40c6f793..19a8897a 100644 --- a/crates/aien-runtime/tests/allen_persona_test.rs +++ b/crates/aien-runtime/tests/allen_persona_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! ALLEN persona profile (arch#159) in the runtime. FIXTURE-ONLY: identities //! come from the test-only subject encoder in aien-allen/tests/support, resolved //! through the production resolver. No model runs. diff --git a/crates/aien-runtime/tests/allen_spine_test.rs b/crates/aien-runtime/tests/allen_spine_test.rs index 029c3aca..8445bcda 100644 --- a/crates/aien-runtime/tests/allen_spine_test.rs +++ b/crates/aien-runtime/tests/allen_spine_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! ALLEN identity gate wired into the compose-home open (compose/bridge.rs `allen_gate`). //! //! Refusals exit the process (merge-control condition b), so every case runs diff --git a/crates/aien-runtime/tests/approved_attacks_test.rs b/crates/aien-runtime/tests/approved_attacks_test.rs index b5db0a00..9517dfb1 100644 --- a/crates/aien-runtime/tests/approved_attacks_test.rs +++ b/crates/aien-runtime/tests/approved_attacks_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sovereign-core #249 part C: adversarial tests of the approved-write path, //! each driven over the daemon's real control socket (AienRuntimeServer with a //! mock backend; the approved proposal text is the proposer, no model). diff --git a/crates/aien-runtime/tests/approved_confinement_test.rs b/crates/aien-runtime/tests/approved_confinement_test.rs index fd0f21ab..d7cf1677 100644 --- a/crates/aien-runtime/tests/approved_confinement_test.rs +++ b/crates/aien-runtime/tests/approved_confinement_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sovereign-core #249: the A1/A1b fix (workspace confinement of every grant, //! the reserved approved grant), driven over the daemon's real control socket //! (AienRuntimeServer with a mock backend). 476ca4's attack file diff --git a/crates/aien-runtime/tests/approved_crash_test.rs b/crates/aien-runtime/tests/approved_crash_test.rs index 962c6421..72e38ffc 100644 --- a/crates/aien-runtime/tests/approved_crash_test.rs +++ b/crates/aien-runtime/tests/approved_crash_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! #249 B crash boundaries of the approved-proposal path, with a real process //! crash: a child process (this test binary, re-run on the hidden helper //! test) submits one approved proposal and aborts at a fault-hold point; the diff --git a/crates/aien-runtime/tests/approved_daemon_ipc_test.rs b/crates/aien-runtime/tests/approved_daemon_ipc_test.rs index b528fff6..8f39140e 100644 --- a/crates/aien-runtime/tests/approved_daemon_ipc_test.rs +++ b/crates/aien-runtime/tests/approved_daemon_ipc_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! #249 C: `ComposeApprovedProposal` over the daemon socket (the production //! entry), against the real server: an authenticated approval commits; a //! forged approver is refused with nothing appended; replay records cannot be diff --git a/crates/aien-runtime/tests/approved_proposal_test.rs b/crates/aien-runtime/tests/approved_proposal_test.rs index 08b80028..69052206 100644 --- a/crates/aien-runtime/tests/approved_proposal_test.rs +++ b/crates/aien-runtime/tests/approved_proposal_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Proposer hook (crate::approved): an approved proposal goes through the //! production compose run (J-Space branch, AEGIS verify, World commit) and //! then the durable effect ledger; unverified, unauthenticated (#249 A) and diff --git a/crates/aien-runtime/tests/approved_replay_test.rs b/crates/aien-runtime/tests/approved_replay_test.rs index 8b435556..e2c99605 100644 --- a/crates/aien-runtime/tests/approved_replay_test.rs +++ b/crates/aien-runtime/tests/approved_replay_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Replay ledger for approved proposals (crate::approved_replay, sovereign-core #249 part B). //! Pure ledger rules run in every build; the journal tests need the linked //! composition library and are IGNORED in a stub build (cfg compose_linked, set by diff --git a/crates/aien-runtime/tests/authorize_desk_mac_test.rs b/crates/aien-runtime/tests/authorize_desk_mac_test.rs index 3e049fd8..b49bbdbd 100644 --- a/crates/aien-runtime/tests/authorize_desk_mac_test.rs +++ b/crates/aien-runtime/tests/authorize_desk_mac_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sovereign-core #297: optional approval-desk MAC on `ComposeAuthorize`. //! //! Driven at the bridge like minted_grant_test.rs (the socket tests' mock diff --git a/crates/aien-runtime/tests/chat_template_test.rs b/crates/aien-runtime/tests/chat_template_test.rs index 08ac784d..dcd92003 100644 --- a/crates/aien-runtime/tests/chat_template_test.rs +++ b/crates/aien-runtime/tests/chat_template_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! NEXT-PHASE-1 v3: the proposal request goes through the model's own chat //! template. Source: TinyLlama-1.1B-Chat-v1.0 tokenizer_config.json //! (sha256 7b41ba7d0eb91e77914ca3dafde559ea3e19878769b7e68409e89bed5222e77a), diff --git a/crates/aien-runtime/tests/compose_budget_test.rs b/crates/aien-runtime/tests/compose_budget_test.rs index 0cca2ca7..2c98513b 100644 --- a/crates/aien-runtime/tests/compose_budget_test.rs +++ b/crates/aien-runtime/tests/compose_budget_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The bridge's time rules under short injected budgets, driven through //! `ComposeBridge::run_task` (tests/support/compose_harness.rs). //! diff --git a/crates/aien-runtime/tests/compose_env_test.rs b/crates/aien-runtime/tests/compose_env_test.rs index 99e030af..ec00ae88 100644 --- a/crates/aien-runtime/tests/compose_env_test.rs +++ b/crates/aien-runtime/tests/compose_env_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Startup refusal of compose limit settings, read from the environment the //! way the daemon reads them at start (`compose_budgets_from_env`, //! `compose_doc_max_tokens_from_env`). Its own test binary, because it sets diff --git a/crates/aien-runtime/tests/compose_task_ipc_test.rs b/crates/aien-runtime/tests/compose_task_ipc_test.rs index e4fc4e24..f333b1da 100644 --- a/crates/aien-runtime/tests/compose_task_ipc_test.rs +++ b/crates/aien-runtime/tests/compose_task_ipc_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! NEXT-PHASE-1 cut 1b: RunComposeTask over the runtime socket. No tokenizer //! is loaded, so the real "model" Skill (the StreamTurn inference path) //! fails and nothing commits: this proves the routing, the blocking hand-off diff --git a/crates/aien-runtime/tests/compose_task_test.rs b/crates/aien-runtime/tests/compose_task_test.rs index 4bcb6cd3..010ea80b 100644 --- a/crates/aien-runtime/tests/compose_task_test.rs +++ b/crates/aien-runtime/tests/compose_task_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! NEXT-PHASE-1 cut 1b + 2: RunComposeTask, ComposeNote, ComposeRecall and //! RecoverComposeHome through omega COMPOSITION-2. //! diff --git a/crates/aien-runtime/tests/compose_wait_test.rs b/crates/aien-runtime/tests/compose_wait_test.rs index b189bf05..d8d0eb91 100644 --- a/crates/aien-runtime/tests/compose_wait_test.rs +++ b/crates/aien-runtime/tests/compose_wait_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The omega settle wait really set before each run, and the target-kind //! decision (existing path => Edit/refused, missing path => Document). //! One test binary, one wait test: `LAST_WAIT_MS` is process-global. diff --git a/crates/aien-runtime/tests/compute_config_binding_test.rs b/crates/aien-runtime/tests/compute_config_binding_test.rs index 07868e7c..e486a11d 100644 --- a/crates/aien-runtime/tests/compute_config_binding_test.rs +++ b/crates/aien-runtime/tests/compute_config_binding_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! C6a (sc#484, ADR 0003 section 1.2.1, review finding 1): what the stored //! bytes were computed with must be part of their identity. //! diff --git a/crates/aien-runtime/tests/confine_race_test.rs b/crates/aien-runtime/tests/confine_race_test.rs index beea3448..d185b0cf 100644 --- a/crates/aien-runtime/tests/confine_race_test.rs +++ b/crates/aien-runtime/tests/confine_race_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sovereign-core #267 follow-up: the REAL `mint_grant` (authorize) and //! `open_intent` calls, with a swap fired INSIDE the call between the //! confinement check and the read. Each asserts an exact outcome: the recorded diff --git a/crates/aien-runtime/tests/corrective_retry_test.rs b/crates/aien-runtime/tests/corrective_retry_test.rs index 62769563..a72149cd 100644 --- a/crates/aien-runtime/tests/corrective_retry_test.rs +++ b/crates/aien-runtime/tests/corrective_retry_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sc#384 v8 (Drake 2026-10-12, Option 3): validation-aware corrective //! feedback. A refused model reply is quoted back, with the exact refusal //! reason, in the next attempt's prompt. The goal, requirements, budgets, diff --git a/crates/aien-runtime/tests/cortex_mark_test.rs b/crates/aien-runtime/tests/cortex_mark_test.rs index 19ef32ca..271d2454 100644 --- a/crates/aien-runtime/tests/cortex_mark_test.rs +++ b/crates/aien-runtime/tests/cortex_mark_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! NEXT-PHASE-2 v3: the external Cortex record mark, RecoverComposeHome //! keeping the old mark, the reserved repair key, and the reconcile-failed //! refusal, through the real compose home (ACCEPTANCE-v3 section 2). diff --git a/crates/aien-runtime/tests/decoding_observed_test.rs b/crates/aien-runtime/tests/decoding_observed_test.rs index 01c2ba1d..771d41a0 100644 --- a/crates/aien-runtime/tests/decoding_observed_test.rs +++ b/crates/aien-runtime/tests/decoding_observed_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sc#294 (Qwen3 v4 review): greedy decoding must be OBSERVED, not only //! documented. The real submission path the daemon uses (`submit_work` -> //! scheduler -> `NativeTransformerBackend::execute_step`) reports, in diff --git a/crates/aien-runtime/tests/desk_required_server_test.rs b/crates/aien-runtime/tests/desk_required_server_test.rs index 009be476..0a530ca8 100644 --- a/crates/aien-runtime/tests/desk_required_server_test.rs +++ b/crates/aien-runtime/tests/desk_required_server_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sc#328 (Drake decision b, 2026-10-08): the server's own startup check. A //! compose bridge that requires the approval desk (the default) refuses to //! start without a loadable desk key, before the socket exists; with the key diff --git a/crates/aien-runtime/tests/destination_corpus_test.rs b/crates/aien-runtime/tests/destination_corpus_test.rs index f2974087..00749981 100644 --- a/crates/aien-runtime/tests/destination_corpus_test.rs +++ b/crates/aien-runtime/tests/destination_corpus_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The destination parser over every campaign goal corpus in this repository //! (v5 G6 finding: two independently authored v5 goals were refused before //! the model). For each goal the probe records what `named_destination` reads diff --git a/crates/aien-runtime/tests/destination_test.rs b/crates/aien-runtime/tests/destination_test.rs index 03d8684f..b66ff047 100644 --- a/crates/aien-runtime/tests/destination_test.rs +++ b/crates/aien-runtime/tests/destination_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Issue #288: the task kind, prompt and budget follow the DESTINATION the //! goal names, not the first path that happens to exist. //! diff --git a/crates/aien-runtime/tests/effects_test.rs b/crates/aien-runtime/tests/effects_test.rs index 116549bb..3c495ee7 100644 --- a/crates/aien-runtime/tests/effects_test.rs +++ b/crates/aien-runtime/tests/effects_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! NEXT-PHASE-2: durable effect intents, ack, reconcile, stop/resume and //! revoke through the real compose home (ACCEPTANCE-v2 section 2). //! diff --git a/crates/aien-runtime/tests/generation_record_test.rs b/crates/aien-runtime/tests/generation_record_test.rs index 1b6f19fd..02d9e60f 100644 --- a/crates/aien-runtime/tests/generation_record_test.rs +++ b/crates/aien-runtime/tests/generation_record_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The daemon's generation record (docs/DAEMON_GENERATION_RECORD.md): evidence //! that this daemon generated this text from the model files it loaded. //! Socket-level, mock backend, toy tokenizer. Every test needs the linked diff --git a/crates/aien-runtime/tests/headstart_ab.rs b/crates/aien-runtime/tests/headstart_ab.rs index 2e969053..5649aeb1 100644 --- a/crates/aien-runtime/tests/headstart_ab.rs +++ b/crates/aien-runtime/tests/headstart_ab.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Headstart M6 (#538): the opt-in A/B qualification target for provisional //! preparation (crate::provisional, M3) on the M2 scheduler (spark-harness //! `scheduler`). Compiled only with `--features provisional-prep`; every test diff --git a/crates/aien-runtime/tests/inputs_test.rs b/crates/aien-runtime/tests/inputs_test.rs index 6168cfbf..49fd74fb 100644 --- a/crates/aien-runtime/tests/inputs_test.rs +++ b/crates/aien-runtime/tests/inputs_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sc#382 and sc#383 items 2 and 3 (WHOLE-SYSTEM-E2E, arch#190): input files the //! goal points at are shown to the model and never written, and "named X in the //! Y folder" resolves to `Y/X`. Pre-registered in diff --git a/crates/aien-runtime/tests/kv_concurrency_test.rs b/crates/aien-runtime/tests/kv_concurrency_test.rs index 2a3e4532..9caf08bb 100644 --- a/crates/aien-runtime/tests/kv_concurrency_test.rs +++ b/crates/aien-runtime/tests/kv_concurrency_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! C8 (sc#485 B1 to B5; ADR 0003 sections 5.2, 5.5, 7 and 8): concurrency //! proof of persistent KV through the real runtime spine, the real scheduler //! and the host CPU backend (`NativeTransformerBackend` over diff --git a/crates/aien-runtime/tests/kv_park_restore_test.rs b/crates/aien-runtime/tests/kv_park_restore_test.rs index fbd6cded..c58148a8 100644 --- a/crates/aien-runtime/tests/kv_park_restore_test.rs +++ b/crates/aien-runtime/tests/kv_park_restore_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! C6 (sc#484 + #485 seam, ADR 0003 sections 5, 6, 7.3, 8 and 18): the runtime //! parks a finished turn at the scheduler's finish transaction and restores a //! stored prefix when a request is submitted. diff --git a/crates/aien-runtime/tests/kv_restart_test.rs b/crates/aien-runtime/tests/kv_restart_test.rs index 802beb9b..823fe908 100644 --- a/crates/aien-runtime/tests/kv_restart_test.rs +++ b/crates/aien-runtime/tests/kv_restart_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! C7 (sc#484; ADR 0003 sections 4.1, 6.5, 7.5 and 11): persistent KV across a //! real process restart, through the daemon wiring //! (`shared_kv::enable_persistent_kv`), on a temp-dir host filesystem store. diff --git a/crates/aien-runtime/tests/logical_workspace_test.rs b/crates/aien-runtime/tests/logical_workspace_test.rs index a3905fa6..e0461015 100644 --- a/crates/aien-runtime/tests/logical_workspace_test.rs +++ b/crates/aien-runtime/tests/logical_workspace_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sc#429: the model-visible prompt names the workspace by a constant logical //! label, never by its machine-specific absolute path. Two workspaces with the //! same logical inputs (goal, files, contents) at different absolute paths diff --git a/crates/aien-runtime/tests/minted_grant_test.rs b/crates/aien-runtime/tests/minted_grant_test.rs index 2beb87c2..c0a5272c 100644 --- a/crates/aien-runtime/tests/minted_grant_test.rs +++ b/crates/aien-runtime/tests/minted_grant_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sovereign-core #261: the daemon honours only grants it minted itself. //! //! The ordinary operator flow (propose -> authorize -> execute) is driven at diff --git a/crates/aien-runtime/tests/np1_t5_edit_merge_test.rs b/crates/aien-runtime/tests/np1_t5_edit_merge_test.rs index d2daef98..53ad7325 100644 --- a/crates/aien-runtime/tests/np1_t5_edit_merge_test.rs +++ b/crates/aien-runtime/tests/np1_t5_edit_merge_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! NEXT-PHASE-1 v7 T5: an edit-mode reply never drops an existing line. //! //! v6 T5 FAILed T5-K and Q2: the model (GB10 and the CPU reference agree, diff --git a/crates/aien-runtime/tests/np1_v5_rows_test.rs b/crates/aien-runtime/tests/np1_v5_rows_test.rs index c518bad5..9c86cfca 100644 --- a/crates/aien-runtime/tests/np1_v5_rows_test.rs +++ b/crates/aien-runtime/tests/np1_v5_rows_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! NEXT-PHASE-1 v5: runs the shell negative tests of the ACCEPTANCE-v5 receipt //! rows (docs/campaigns/next-phase-1/test-rows-v5.sh) under `cargo test`. //! Needs bash and jq; a missing tool fails the test, it is never skipped. diff --git a/crates/aien-runtime/tests/np1_v6_test.rs b/crates/aien-runtime/tests/np1_v6_test.rs index ab09429d..4fbc7360 100644 --- a/crates/aien-runtime/tests/np1_v6_test.rs +++ b/crates/aien-runtime/tests/np1_v6_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! NEXT-PHASE-1 v6 runtime cuts (ACCEPTANCE-v6 Section 6): the length-cut //! refusal (N2), the token ids in the attempt record (R1) and the edit-mode //! prompt block (T5). A deterministic scripted proposer; no model. diff --git a/crates/aien-runtime/tests/objective_identity_test.rs b/crates/aien-runtime/tests/objective_identity_test.rs index fc8c1ec0..8b7f5682 100644 --- a/crates/aien-runtime/tests/objective_identity_test.rs +++ b/crates/aien-runtime/tests/objective_identity_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sovereign-core #408 (RECOVERY-AUDIT-2026-10-11 row 4): the objective id is //! carried by the grant, the intent, the ack and the reconcile records, and //! the objective record is re-read after a restart. diff --git a/crates/aien-runtime/tests/ops_evidence_test.rs b/crates/aien-runtime/tests/ops_evidence_test.rs index 479229b0..1b3ca4d5 100644 --- a/crates/aien-runtime/tests/ops_evidence_test.rs +++ b/crates/aien-runtime/tests/ops_evidence_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sc#337: "no silent fallback" must be shown by what a run keeps, not by the //! absence of a crash. The real submission path the daemon uses //! (`submit_work` -> scheduler -> `NativeTransformerBackend::execute_step`) diff --git a/crates/aien-runtime/tests/oq3_v5_reading_probe_test.rs b/crates/aien-runtime/tests/oq3_v5_reading_probe_test.rs index 93e3431a..c48e71ab 100644 --- a/crates/aien-runtime/tests/oq3_v5_reading_probe_test.rs +++ b/crates/aien-runtime/tests/oq3_v5_reading_probe_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Prints how the requirement reader reads every goal of the Qwen3 v5 campaign //! (docs/campaigns/open-model-qwen3/tasks-oq3-v5.json), so a reader change can //! be compared before and after: `cargo test --test oq3_v5_reading_probe_test diff --git a/crates/aien-runtime/tests/preempt_resume_test.rs b/crates/aien-runtime/tests/preempt_resume_test.rs index ae928d4b..c957bb83 100644 --- a/crates/aien-runtime/tests/preempt_resume_test.rs +++ b/crates/aien-runtime/tests/preempt_resume_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! A sequence preempted under KV pressure must resume without re-emitting //! tokens. //! diff --git a/crates/aien-runtime/tests/prefill_e2e0.rs b/crates/aien-runtime/tests/prefill_e2e0.rs index 36d7e157..a704d37a 100644 --- a/crates/aien-runtime/tests/prefill_e2e0.rs +++ b/crates/aien-runtime/tests/prefill_e2e0.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! PREFILL-E2E-0: one real-checkpoint run through spine + scheduler + //! NativeTransformerBackend + one pooled KV (PREFILL-E2E cut C8). //! diff --git a/crates/aien-runtime/tests/prefill_e2e1.rs b/crates/aien-runtime/tests/prefill_e2e1.rs index 86cb191a..03beeab5 100644 --- a/crates/aien-runtime/tests/prefill_e2e1.rs +++ b/crates/aien-runtime/tests/prefill_e2e1.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! PREFILL-E2E-1: the E2E-0 end-to-end gate at N = 1, 2, 8, 32, 128 and 500 //! branches from ONE shared root prompt (TinyLlama, CPU, strict checkpoint). //! diff --git a/crates/aien-runtime/tests/prefill_e2e2.rs b/crates/aien-runtime/tests/prefill_e2e2.rs index 47a69d56..edd0bdee 100644 --- a/crates/aien-runtime/tests/prefill_e2e2.rs +++ b/crates/aien-runtime/tests/prefill_e2e2.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! PREFILL-E2E-2: append 24 tokens to an already prefilled context that is //! shared with a witness, recompute only the new part, fork two branches off //! the longer context and decode them (TinyLlama, CPU, strict checkpoint). diff --git a/crates/aien-runtime/tests/prefill_e2e2_run.sh b/crates/aien-runtime/tests/prefill_e2e2_run.sh index 752d78d9..e67daaa3 100755 --- a/crates/aien-runtime/tests/prefill_e2e2_run.sh +++ b/crates/aien-runtime/tests/prefill_e2e2_run.sh @@ -1,4 +1,19 @@ #!/bin/sh +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Driver for the PREFILL-E2E-2 gates (ADR 0028, run by `aien-test run`). # # The forge lines for PREFILL-E2E-2 are shell chains with environment diff --git a/crates/aien-runtime/tests/provenance_link_test.rs b/crates/aien-runtime/tests/provenance_link_test.rs index c6e5666a..27d98740 100644 --- a/crates/aien-runtime/tests/provenance_link_test.rs +++ b/crates/aien-runtime/tests/provenance_link_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Provenance link (arch#162, ALLEN end-to-end demo v1 steps S4 and S8): a //! commit the model produced through the compose path names the generation //! record of that proposal and the ALLEN the task ran under. diff --git a/crates/aien-runtime/tests/provisional_prep_test.rs b/crates/aien-runtime/tests/provisional_prep_test.rs index 26d0ecbe..b6c69042 100644 --- a/crates/aien-runtime/tests/provisional_prep_test.rs +++ b/crates/aien-runtime/tests/provisional_prep_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Headstart M3 (#537): provisional engineering preparation and the final //! commit fence (crate::provisional). Compiled only with //! `--features provisional-prep`; without it this binary holds no tests. diff --git a/crates/aien-runtime/tests/recall_native_report_test.rs b/crates/aien-runtime/tests/recall_native_report_test.rs index c2c68784..46707ad4 100644 --- a/crates/aien-runtime/tests/recall_native_report_test.rs +++ b/crates/aien-runtime/tests/recall_native_report_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! VAC M3a: the recall reply says whether the native Omega composition library //! is linked. Runs in both builds (stub: recall is an explicit refusal naming the stub; linked: true and //! the pinned 40-hex sha). One test per binary (it sets AIEN_COMPOSE_DIR). diff --git a/crates/aien-runtime/tests/refusal_table_test.rs b/crates/aien-runtime/tests/refusal_table_test.rs index 96f5d190..29de0a10 100644 --- a/crates/aien-runtime/tests/refusal_table_test.rs +++ b/crates/aien-runtime/tests/refusal_table_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sovereign-core #267 follow-up: a security fix must not change the refusal //! an old caller gets. This table drives the REAL `authorize` (mint_grant) and //! `open_intent` over eight target states and records the refusal KIND each diff --git a/crates/aien-runtime/tests/requirements_count_wordings_test.rs b/crates/aien-runtime/tests/requirements_count_wordings_test.rs index d4bd9948..f78a3014 100644 --- a/crates/aien-runtime/tests/requirements_count_wordings_test.rs +++ b/crates/aien-runtime/tests/requirements_count_wordings_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sc#331: ordinary count wordings of the v5 goals were refused as uncertain //! before any model call: an inclusive range ("between 16 and 30 lines"), the //! adjective "non-empty" before lines, a counted title list after the diff --git a/crates/aien-runtime/tests/requirements_deadline_test.rs b/crates/aien-runtime/tests/requirements_deadline_test.rs index 4cd13d9a..f5e2dc5e 100644 --- a/crates/aien-runtime/tests/requirements_deadline_test.rs +++ b/crates/aien-runtime/tests/requirements_deadline_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! A document task whose first attempt fails a stated requirement and whose //! second attempt passes: both attempts happen inside the ONE per-task document //! deadline (a short injected budget), and the bytes saved are the bytes approved. diff --git a/crates/aien-runtime/tests/requirements_elided_bound_test.rs b/crates/aien-runtime/tests/requirements_elided_bound_test.rs index e14e1f35..110638c2 100644 --- a/crates/aien-runtime/tests/requirements_elided_bound_test.rs +++ b/crates/aien-runtime/tests/requirements_elided_bound_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! #344: a second bound whose noun is left out ("at least 20 lines and no more //! than 40") is read with the earlier noun, or reported UNCERTAIN. It is never //! dropped silently. diff --git a/crates/aien-runtime/tests/requirements_enforce_test.rs b/crates/aien-runtime/tests/requirements_enforce_test.rs index 7798a973..cc86a935 100644 --- a/crates/aien-runtime/tests/requirements_enforce_test.rs +++ b/crates/aien-runtime/tests/requirements_enforce_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Explicit document requirements survive from the goal to the commit //! (crate::requirements, crate::requirements_extract). Covers the two //! open-model-qwen3 v3 gaps (G3 "with" after a count, G2 "covers" topics), diff --git a/crates/aien-runtime/tests/requirements_first_heading_test.rs b/crates/aien-runtime/tests/requirements_first_heading_test.rs index 8dbb8756..feaca858 100644 --- a/crates/aien-runtime/tests/requirements_first_heading_test.rs +++ b/crates/aien-runtime/tests/requirements_first_heading_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! A goal that asks the document to start with a markdown heading //! (Requirement::FirstLineHeading). The ALLEN end-to-end demo v2 request was //! refused as uncertain because no recognizer read this wording (arch#162). diff --git a/crates/aien-runtime/tests/requirements_of_them_test.rs b/crates/aien-runtime/tests/requirements_of_them_test.rs index ec27e716..695964e7 100644 --- a/crates/aien-runtime/tests/requirements_of_them_test.rs +++ b/crates/aien-runtime/tests/requirements_of_them_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sc#334: an item count that points back at a line prefix the same sentence //! defines ("Write every item as a line starting with "- [ ]" and include at //! least twelve of them.") was refused as uncertain before any model call. It diff --git a/crates/aien-runtime/tests/requirements_one_sentence_test.rs b/crates/aien-runtime/tests/requirements_one_sentence_test.rs index e38eb1d7..accb83da 100644 --- a/crates/aien-runtime/tests/requirements_one_sentence_test.rs +++ b/crates/aien-runtime/tests/requirements_one_sentence_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sc#336: a one-sentence or one-line file was refused as uncertain before any //! model call. "a one-sentence X" and "a single sentence" are now read as a //! file of exactly one sentence (`SingleSentence`), and "containing just one diff --git a/crates/aien-runtime/tests/requirements_paragraphs_test.rs b/crates/aien-runtime/tests/requirements_paragraphs_test.rs index 48bfa06f..455b6260 100644 --- a/crates/aien-runtime/tests/requirements_paragraphs_test.rs +++ b/crates/aien-runtime/tests/requirements_paragraphs_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sc#335: a paragraph count ("at least twelve paragraphs") was refused as //! uncertain before any model call: there was no paragraph requirement. It is //! now read as `MinParagraphs` for a minimum bound; an upper bound, an exact or diff --git a/crates/aien-runtime/tests/requirements_said_line_test.rs b/crates/aien-runtime/tests/requirements_said_line_test.rs index f982272e..6fd9bd7d 100644 --- a/crates/aien-runtime/tests/requirements_said_line_test.rs +++ b/crates/aien-runtime/tests/requirements_said_line_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sc#349: `one line saying hello` / `one line that says hello` (no quotes). //! A short plain phrase that runs to the end of its sentence (or to a trailing //! destination file) is a required phrase; anything wider is UNCERTAIN, never diff --git a/crates/aien-runtime/tests/requirements_test.rs b/crates/aien-runtime/tests/requirements_test.rs index 204214d3..237d9118 100644 --- a/crates/aien-runtime/tests/requirements_test.rs +++ b/crates/aien-runtime/tests/requirements_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Requirement validation for composed documents (crate::requirements). //! The retry loop is driven through `ComposeBridge::run_task` //! (tests/support/compose_harness.rs). diff --git a/crates/aien-runtime/tests/requirements_topics_test.rs b/crates/aien-runtime/tests/requirements_topics_test.rs index f93a591a..a1fe8b5e 100644 --- a/crates/aien-runtime/tests/requirements_topics_test.rs +++ b/crates/aien-runtime/tests/requirements_topics_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sc#332: a counted topic list ("Cover three topics: drying, labelling and //! storage.") was refused as uncertain before any model call, and the topic //! check refused word forms the goal itself accepts ("dried", "Label", diff --git a/crates/aien-runtime/tests/requirements_under_bound_test.rs b/crates/aien-runtime/tests/requirements_under_bound_test.rs index 61142685..edd35a52 100644 --- a/crates/aien-runtime/tests/requirements_under_bound_test.rs +++ b/crates/aien-runtime/tests/requirements_under_bound_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sc#383 item 1: the WHOLE-SYSTEM-E2E contract objective ("write a Markdown //! report under 200 words named report.md in the outbox folder") was refused //! as an uncertain requirement before any model call, because only the diff --git a/crates/aien-runtime/tests/requirements_usability_test.rs b/crates/aien-runtime/tests/requirements_usability_test.rs index ab89ea8f..4dfd18b5 100644 --- a/crates/aien-runtime/tests/requirements_usability_test.rs +++ b/crates/aien-runtime/tests/requirements_usability_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Ordinary counted requests and the wider wordings (crate::requirements_extract), //! PR round 2: "Add 2 lines to README.md" is read, not refused; every goal of the //! campaign task files is classified (recognized, silent or uncertain) and the diff --git a/crates/aien-runtime/tests/requirements_words_test.rs b/crates/aien-runtime/tests/requirements_words_test.rs index 4a55273b..66343913 100644 --- a/crates/aien-runtime/tests/requirements_words_test.rs +++ b/crates/aien-runtime/tests/requirements_words_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! sc#333: required-word wordings were either refused as uncertain before any //! model call ("Make sure the words whetstone and angle both appear") or, worse, //! silently not read ("use the exact words greens and browns", "must name diff --git a/crates/aien-runtime/tests/runtime_500_branch_benchmark.rs b/crates/aien-runtime/tests/runtime_500_branch_benchmark.rs index 232b7464..13ce9ef3 100644 --- a/crates/aien-runtime/tests/runtime_500_branch_benchmark.rs +++ b/crates/aien-runtime/tests/runtime_500_branch_benchmark.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Milestone Proof: Runtime Integration Spine 500-Branch Benchmark //! Asserts 500 concurrent agent branches on a shared context root with O(1) prefix sharing. diff --git a/crates/aien-runtime/tests/runtime_end_to_end_tests.rs b/crates/aien-runtime/tests/runtime_end_to_end_tests.rs index 7f296cc4..10929ce9 100644 --- a/crates/aien-runtime/tests/runtime_end_to_end_tests.rs +++ b/crates/aien-runtime/tests/runtime_end_to_end_tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! End-to-end integration tests: Scheduler ticket submission -> Omega GB10 transformer -> CompletionSink channel. //! Verifies zero socket, zero HTTP, and zero RPC boundaries in the entire execution path. diff --git a/crates/aien-runtime/tests/runtime_ipc_test.rs b/crates/aien-runtime/tests/runtime_ipc_test.rs index 241d1ae0..88a23f95 100644 --- a/crates/aien-runtime/tests/runtime_ipc_test.rs +++ b/crates/aien-runtime/tests/runtime_ipc_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Integration test for AienRuntimeServer and AienRuntimeClient over local UNIX domain socket. use aien_inference_abi::MockInferenceBackend; diff --git a/crates/aien-runtime/tests/runtime_socket_permissions_test.rs b/crates/aien-runtime/tests/runtime_socket_permissions_test.rs index dfe9f06f..b7d01223 100644 --- a/crates/aien-runtime/tests/runtime_socket_permissions_test.rs +++ b/crates/aien-runtime/tests/runtime_socket_permissions_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The runtime socket accepts operator commands (launch, cancel, shutdown), so //! it must be reachable only by its owner. diff --git a/crates/aien-runtime/tests/runtime_spine_integration.rs b/crates/aien-runtime/tests/runtime_spine_integration.rs index 1f9d528e..5943b00b 100644 --- a/crates/aien-runtime/tests/runtime_spine_integration.rs +++ b/crates/aien-runtime/tests/runtime_spine_integration.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Comprehensive integration tests for the canonical AienRuntimeSpine. use aien_inference_abi::MockInferenceBackend; diff --git a/crates/aien-runtime/tests/shared_kv_runtime_test.rs b/crates/aien-runtime/tests/shared_kv_runtime_test.rs index 61fab9b0..fc88fc8a 100644 --- a/crates/aien-runtime/tests/shared_kv_runtime_test.rs +++ b/crates/aien-runtime/tests/shared_kv_runtime_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! PREFILL-E2E-0 cut C2: one KV for runtime and backend (bullets 4, 8, 10). //! //! Builds the spine and the native backend through the same factory the diff --git a/crates/aien-runtime/tests/support/compose_harness.rs b/crates/aien-runtime/tests/support/compose_harness.rs index e26e719e..79e26488 100644 --- a/crates/aien-runtime/tests/support/compose_harness.rs +++ b/crates/aien-runtime/tests/support/compose_harness.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Test harness that drives the compose pipeline through its interface, //! `ComposeBridge::run_task`, with scripted proposers. //! diff --git a/crates/aien-runtime/tests/support/home_guard.rs b/crates/aien-runtime/tests/support/home_guard.rs index 1878fd4d..2f7ca52e 100644 --- a/crates/aien-runtime/tests/support/home_guard.rs +++ b/crates/aien-runtime/tests/support/home_guard.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Test-only guard for tests that open a compose home (an `rxc_host` handle). //! //! omega's `rxc_host` allows `RXC_HOST_MAX_HANDLES` (4) open handles per diff --git a/crates/aien-runtime/tests/swarm_cancel_readmit_test.rs b/crates/aien-runtime/tests/swarm_cancel_readmit_test.rs index be6243d8..d2013a61 100644 --- a/crates/aien-runtime/tests/swarm_cancel_readmit_test.rs +++ b/crates/aien-runtime/tests/swarm_cancel_readmit_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! PREFILL-E2E CX1: a cancelled swarm's branches are never re-admitted after //! the spine released their backend state. //! diff --git a/crates/aien-runtime/tests/swarm_completion_test.rs b/crates/aien-runtime/tests/swarm_completion_test.rs index 212112ab..dedd1a68 100644 --- a/crates/aien-runtime/tests/swarm_completion_test.rs +++ b/crates/aien-runtime/tests/swarm_completion_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Integration test: swarm lifecycle through the spine with a mock backend. //! Natural completion must reclaim the root sequence and all branch worlds. diff --git a/crates/aien-runtime/tests/swarm_inspect_scoping_test.rs b/crates/aien-runtime/tests/swarm_inspect_scoping_test.rs index 11a11e94..c46bc45e 100644 --- a/crates/aien-runtime/tests/swarm_inspect_scoping_test.rs +++ b/crates/aien-runtime/tests/swarm_inspect_scoping_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Integration test: InspectSwarm reports the requested swarm, not runtime-wide totals. use aien_inference_abi::MockInferenceBackend; diff --git a/crates/aien-runtime/tests/swarm_prefill_gate_test.rs b/crates/aien-runtime/tests/swarm_prefill_gate_test.rs index 25c5505c..62f1a72e 100644 --- a/crates/aien-runtime/tests/swarm_prefill_gate_test.rs +++ b/crates/aien-runtime/tests/swarm_prefill_gate_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! PREFILL-GATE end to end: a launched swarm must run the root prompt through //! the model before any branch decodes. //! diff --git a/crates/aien-runtime/tests/swarm_reclaim_test.rs b/crates/aien-runtime/tests/swarm_reclaim_test.rs index 8404c1b3..b5a38704 100644 --- a/crates/aien-runtime/tests/swarm_reclaim_test.rs +++ b/crates/aien-runtime/tests/swarm_reclaim_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! PREFILL-E2E-0 cut C5: all sequences, worlds and KV reclaimed (bullet 12). //! //! Drives the real NativeTransformerBackend (reference weights, CPU) through diff --git a/crates/aien-runtime/tests/swarm_trace_test.rs b/crates/aien-runtime/tests/swarm_trace_test.rs index 2e32e7b3..90274c1b 100644 --- a/crates/aien-runtime/tests/swarm_trace_test.rs +++ b/crates/aien-runtime/tests/swarm_trace_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Swarm and scheduler correlation trace events (#398), end to end on the real spine. //! Events are observational: they never change scheduling, KV or world handling. diff --git a/crates/aien-runtime/tests/tool_turn_refused_test.rs b/crates/aien-runtime/tests/tool_turn_refused_test.rs index eef26b84..27dd6cc5 100644 --- a/crates/aien-runtime/tests/tool_turn_refused_test.rs +++ b/crates/aien-runtime/tests/tool_turn_refused_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Issue #310: role `tool` on the raw ChatTurn path is refused, so untrusted tool output cannot //! reach the byte-exact Qwen3 renderer without passing `tool_boundary`. diff --git a/crates/aien-runtime/tests/trace_overhead_benchmark.rs b/crates/aien-runtime/tests/trace_overhead_benchmark.rs index 0946b06b..0cc47be5 100644 --- a/crates/aien-runtime/tests/trace_overhead_benchmark.rs +++ b/crates/aien-runtime/tests/trace_overhead_benchmark.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Overhead of the swarm trace events (#398). Run by hand: //! `cargo test -p aien-runtime --release --test trace_overhead_benchmark -- --ignored --nocapture` //! Prints one line per run; asserts nothing about timing. diff --git a/crates/aien-runtime/tests/verify_block_test.rs b/crates/aien-runtime/tests/verify_block_test.rs index e74aacbc..0ebe9555 100644 --- a/crates/aien-runtime/tests/verify_block_test.rs +++ b/crates/aien-runtime/tests/verify_block_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Draft-verify lane (2026-10-12): `NativeTransformerBackend::verify_block` must predict, for a //! block of already-known greedy tokens, exactly what the plain one-token path predicts, and a //! rejected block must roll back cleanly so decoding continues identically. CPU reference diff --git a/crates/aien-runtime/tests/warm_up_before_serving_test.rs b/crates/aien-runtime/tests/warm_up_before_serving_test.rs index e23510d9..3fed34da 100644 --- a/crates/aien-runtime/tests/warm_up_before_serving_test.rs +++ b/crates/aien-runtime/tests/warm_up_before_serving_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! T4 fix cut, part (a): the declared warm-up (ACCEPTANCE-v4 Section 2(2), //! `server.rs` `run_warm_up`) runs before the daemon serves anything, so the //! skill budget B (started inside `propose_task_checked`, compose/bridge.rs) never pays diff --git a/crates/aien-scheduler/src/bin/stress_aien_live.rs b/crates/aien-scheduler/src/bin/stress_aien_live.rs index 1f0da013..99435c25 100644 --- a/crates/aien-scheduler/src/bin/stress_aien_live.rs +++ b/crates/aien-scheduler/src/bin/stress_aien_live.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aien_localhttp::Client; use serde_json::json; use std::fs; diff --git a/crates/aien-scheduler/src/dual_observer.rs b/crates/aien-scheduler/src/dual_observer.rs index 7b9d493f..008a3ccb 100644 --- a/crates/aien-scheduler/src/dual_observer.rs +++ b/crates/aien-scheduler/src/dual_observer.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! DUAL decision-site observer for `serve.admit_preempt` (ARCH-0031 §7.3, //! DUAL-3 instrumentation). READ-ONLY by construction. //! diff --git a/crates/aien-scheduler/src/lib.rs b/crates/aien-scheduler/src/lib.rs index 2e3a951c..b81732c3 100644 --- a/crates/aien-scheduler/src/lib.rs +++ b/crates/aien-scheduler/src/lib.rs @@ -1,4 +1,19 @@ #![allow(clippy::too_many_arguments)] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + pub mod dual_observer; pub mod sequence; diff --git a/crates/aien-scheduler/src/sequence.rs b/crates/aien-scheduler/src/sequence.rs index e4efb3bd..fb0f5fd4 100644 --- a/crates/aien-scheduler/src/sequence.rs +++ b/crates/aien-scheduler/src/sequence.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aien_abi_core::{DecodeObservation, FinishReason, OpEvidence, SamplingParams, SequenceRequest}; use aien_kv_cache::HOLDER_SLOT; use aien_platform::{InferenceWork, KvHandle, ModelHandle, Priority, Ticks}; diff --git a/crates/aien-scheduler/tests/dual_common/mod.rs b/crates/aien-scheduler/tests/dual_common/mod.rs index 224a8acb..91c426fb 100644 --- a/crates/aien-scheduler/tests/dual_common/mod.rs +++ b/crates/aien-scheduler/tests/dual_common/mod.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Deterministic `serve.admit_preempt` workloads and a canonical, serializable //! trace of every decision they produce (DUAL-3a instrumentation, ADR 0031). //! diff --git a/crates/aien-scheduler/tests/dual_decision_golden.rs b/crates/aien-scheduler/tests/dual_decision_golden.rs index cb802611..2587865b 100644 --- a/crates/aien-scheduler/tests/dual_decision_golden.rs +++ b/crates/aien-scheduler/tests/dual_decision_golden.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Before/after proof for the `serve.admit_preempt` tap (DUAL-3a). //! //! `build_scheduled_batch` was split into a thin wrapper and a traced body so diff --git a/crates/aien-scheduler/tests/dual_observer_overhead_bench.rs b/crates/aien-scheduler/tests/dual_observer_overhead_bench.rs index 566d3e41..1e8fe8f1 100644 --- a/crates/aien-scheduler/tests/dual_observer_overhead_bench.rs +++ b/crates/aien-scheduler/tests/dual_observer_overhead_bench.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Overhead of the `serve.admit_preempt` read-only tap (DUAL-3a). //! //! Manual benchmark, ignored by default (no timing assertion lives in CI): diff --git a/crates/aien-scheduler/tests/dual_observer_parity.rs b/crates/aien-scheduler/tests/dual_observer_parity.rs index 4af95889..72943521 100644 --- a/crates/aien-scheduler/tests/dual_observer_parity.rs +++ b/crates/aien-scheduler/tests/dual_observer_parity.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Decision parity for the `serve.admit_preempt` read-only tap (DUAL-3a). //! //! For every pre-registered scenario the same deterministic workload runs diff --git a/crates/aien-scheduler/tests/kv_finish_restore_seam_test.rs b/crates/aien-scheduler/tests/kv_finish_restore_seam_test.rs index 624b5354..c8a1a9f3 100644 --- a/crates/aien-scheduler/tests/kv_finish_restore_seam_test.rs +++ b/crates/aien-scheduler/tests/kv_finish_restore_seam_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! C6a (sc#484, ADR 0003 sections 5.2, 6.1, 6.3; review findings 2, 3, 4): the //! scheduler side of the persistent-KV seam. //! diff --git a/crates/aien-scheduler/tests/kv_incremental_admission_test.rs b/crates/aien-scheduler/tests/kv_incremental_admission_test.rs index 98a8cf84..6d2a0a91 100644 --- a/crates/aien-scheduler/tests/kv_incremental_admission_test.rs +++ b/crates/aien-scheduler/tests/kv_incremental_admission_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! GB10-2: the KV manager is the sole authority for how many NEW physical //! blocks a sequence needs, and the scheduler admits by that number. //! diff --git a/crates/aien-scheduler/tests/prefill_gate_test.rs b/crates/aien-scheduler/tests/prefill_gate_test.rs index ffbb0cf9..1c7c6d5a 100644 --- a/crates/aien-scheduler/tests/prefill_gate_test.rs +++ b/crates/aien-scheduler/tests/prefill_gate_test.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! PREFILL-GATE: allocated != computed. //! //! Uses only APIs that already exist on main (cfd9982), so this file also runs diff --git a/crates/aien-security/src/lib.rs b/crates/aien-security/src/lib.rs index 9cf0c435..1773eebf 100644 --- a/crates/aien-security/src/lib.rs +++ b/crates/aien-security/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! # AIEN Security //! //! Normative security abstractions, SecretProvider capability traits, diff --git a/crates/aien-security/src/network.rs b/crates/aien-security/src/network.rs index 36663ac8..50ecab7f 100644 --- a/crates/aien-security/src/network.rs +++ b/crates/aien-security/src/network.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Network purpose classification and egress governance for AIEN. use serde::{Deserialize, Serialize}; diff --git a/crates/aien-security/src/secret.rs b/crates/aien-security/src/secret.rs index 08be7bfe..b64eb7e9 100644 --- a/crates/aien-security/src/secret.rs +++ b/crates/aien-security/src/secret.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Secret protection abstractions and provider contracts for AIEN. use serde::{Deserialize, Serialize}; diff --git a/crates/aien-security/src/tpm.rs b/crates/aien-security/src/tpm.rs index 133f1335..60f40850 100644 --- a/crates/aien-security/src/tpm.rs +++ b/crates/aien-security/src/tpm.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Hardware TPM 2.0 secret provider implementation for AIEN. use crate::secret::{ diff --git a/crates/aien-serve-http/build.rs b/crates/aien-serve-http/build.rs index 7c52ff82..e4e23fb0 100644 --- a/crates/aien-serve-http/build.rs +++ b/crates/aien-serve-http/build.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Build identity of the omega door for the persistent KV engine identity (sc#505, ADR 0003 //! section 1.2.2). Embedded at build time, read by `kv_persist::OmegaBuild::linked()`: //! diff --git a/crates/aien-serve-http/src/codec.rs b/crates/aien-serve-http/src/codec.rs index 2162f591..f8ebcde3 100644 --- a/crates/aien-serve-http/src/codec.rs +++ b/crates/aien-serve-http/src/codec.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Text <-> token ids and chat rendering, behind a trait so the server's tests run //! without a model directory. //! diff --git a/crates/aien-serve-http/src/cpu_engine.rs b/crates/aien-serve-http/src/cpu_engine.rs index 6e224967..d6f35806 100644 --- a/crates/aien-serve-http/src/cpu_engine.rs +++ b/crates/aien-serve-http/src/cpu_engine.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The real-but-slow engine: the workspace's CPU reference forward for //! Qwen3-30B-A3B (`aien_inference_abi::qwen3_coder`), exact FP8 expert //! dequant, f32 attention. It makes the server end-to-end usable before the diff --git a/crates/aien-serve-http/src/engine.rs b/crates/aien-serve-http/src/engine.rs index 51b01e75..c00b7f8f 100644 --- a/crates/aien-serve-http/src/engine.rs +++ b/crates/aien-serve-http/src/engine.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The engine seam: one blocking `generate` call per request, tokens in, tokens out. //! //! The HTTP layer never sees weights, sessions or logits. It renders the chat prompt diff --git a/crates/aien-serve-http/src/kv_persist.rs b/crates/aien-serve-http/src/kv_persist.rs index 11129180..de53c130 100644 --- a/crates/aien-serve-http/src/kv_persist.rs +++ b/crates/aien-serve-http/src/kv_persist.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Persistent KV park and restore on the omega door (sc#505, ADR 0003), opt in with //! `AIEN_KV_STORE_DIR`. //! diff --git a/crates/aien-serve-http/src/lib.rs b/crates/aien-serve-http/src/lib.rs index a562f4c4..3e931615 100644 --- a/crates/aien-serve-http/src/lib.rs +++ b/crates/aien-serve-http/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! `aien-serve-http`: the OpenAI-compatible HTTP door for AIEN's own-kernel model //! serving (OWN-30B cut 4). Loopback only, one generation at a time, no CUDA, no //! Python. The engine behind the door is a trait ([`engine::Engine`]); this crate diff --git a/crates/aien-serve-http/src/main.rs b/crates/aien-serve-http/src/main.rs index 1f32b2e5..4d4010b2 100644 --- a/crates/aien-serve-http/src/main.rs +++ b/crates/aien-serve-http/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! `aien-serve-http`: OpenAI-compatible door on 127.0.0.1 for the OWN-30B model. //! //! aien-serve-http [--engine cpu|stub|omega] [--weights bf16|fp8-experts|fp8] [--spin-us N] diff --git a/crates/aien-serve-http/src/omega_engine.rs b/crates/aien-serve-http/src/omega_engine.rs index 4b699fe8..0bcfe60e 100644 --- a/crates/aien-serve-http/src/omega_engine.rs +++ b/crates/aien-serve-http/src/omega_engine.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The Omega engine behind the door (OWN-30B cut 8): Qwen3-30B-A3B on AIEN's own GPU //! kernels, FP8 weights resident between requests, prefix KV reuse across turns, and the //! shared-chip lock taken only around each generation. diff --git a/crates/aien-serve-http/src/openai.rs b/crates/aien-serve-http/src/openai.rs index 877a84ff..a9c4072e 100644 --- a/crates/aien-serve-http/src/openai.rs +++ b/crates/aien-serve-http/src/openai.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! OpenAI chat-completions wire types: the subset Odysseus and the OpenAI SDKs //! send and read. Unknown request fields are ignored (llama.cpp extras such as //! `session_id` / `cache_prompt` arrive from Odysseus). diff --git a/crates/aien-serve-http/src/sampling.rs b/crates/aien-serve-http/src/sampling.rs index 23d451ff..31af73c0 100644 --- a/crates/aien-serve-http/src/sampling.rs +++ b/crates/aien-serve-http/src/sampling.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Shared next-token sampling for engines that produce logits on the host. //! //! The rule (OWN-8B stage S, unchanged from before it, written down here): diff --git a/crates/aien-serve-http/src/server.rs b/crates/aien-serve-http/src/server.rs index c826703f..541ac5b0 100644 --- a/crates/aien-serve-http/src/server.rs +++ b/crates/aien-serve-http/src/server.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The HTTP surface: `GET /v1/models`, `POST /v1/chat/completions` (JSON or SSE), //! `GET /health`. Every error is OpenAI error JSON. One generation at a time: the //! second request while one runs gets 503 `server_busy` with `Retry-After: 1`. diff --git a/crates/aien-serve-http/src/text.rs b/crates/aien-serve-http/src/text.rs index fe4b8739..78a2f4c1 100644 --- a/crates/aien-serve-http/src/text.rs +++ b/crates/aien-serve-http/src/text.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Turns the engine's token stream into text deltas: decodes incrementally //! (holding back a token run that ends inside a multi-byte character) and //! applies stop strings (holding back any text that could still grow into one). diff --git a/crates/aien-serve-http/tests/kv_persist.rs b/crates/aien-serve-http/tests/kv_persist.rs index 45a10f9f..d777b757 100644 --- a/crates/aien-serve-http/tests/kv_persist.rs +++ b/crates/aien-serve-http/tests/kv_persist.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Persistent KV park and restore on the omega door (sc#505), host only. //! //! The engine is the real `OmegaEngine` over the tiny in-memory checkpoint with a host bf16 diff --git a/crates/aien-serve-http/tests/kv_persist_chip.rs b/crates/aien-serve-http/tests/kv_persist_chip.rs index e2b25341..303d5ba6 100644 --- a/crates/aien-serve-http/tests/kv_persist_chip.rs +++ b/crates/aien-serve-http/tests/kv_persist_chip.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Chip-only acceptance check of persistent KV on the omega engine (sc#505, locked by #499). //! NOT run by `cargo test`: it loads the 30B checkpoint onto the chip. Run it only through //! `scripts/own30b-pkv-chip-check.sh` (which builds natively and checks the chip is free): diff --git a/crates/aien-serve-http/tests/loopback.rs b/crates/aien-serve-http/tests/loopback.rs index f448f7ca..ee788a19 100644 --- a/crates/aien-serve-http/tests/loopback.rs +++ b/crates/aien-serve-http/tests/loopback.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Loopback integration tests: a real TCP server with the stub engine and the //! byte codec, driven by a hand-written HTTP/1.1 client (no extra crates). diff --git a/crates/aien-serve-http/tests/shutdown.rs b/crates/aien-serve-http/tests/shutdown.rs index ea3adf9e..087a1a29 100644 --- a/crates/aien-serve-http/tests/shutdown.rs +++ b/crates/aien-serve-http/tests/shutdown.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! SIGTERM stops the binary cleanly (sc#509): it stops accepting, releases the engine (which //! drains the persistent KV parks on the omega door) and exits 0. Host only, stub engine. diff --git a/crates/aien-switchboard/src/account.rs b/crates/aien-switchboard/src/account.rs index 2612830b..7585bd2e 100644 --- a/crates/aien-switchboard/src/account.rs +++ b/crates/aien-switchboard/src/account.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Accounts. An account names where its program keeps its own login, never //! the login itself. diff --git a/crates/aien-switchboard/src/dispatch.rs b/crates/aien-switchboard/src/dispatch.rs index 783f46f3..96d0020d 100644 --- a/crates/aien-switchboard/src/dispatch.rs +++ b/crates/aien-switchboard/src/dispatch.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Route, run, and fail over on a limit hit. use crate::account::AccountId; diff --git a/crates/aien-switchboard/src/gauge.rs b/crates/aien-switchboard/src/gauge.rs index 5a8191e6..969e4d20 100644 --- a/crates/aien-switchboard/src/gauge.rs +++ b/crates/aien-switchboard/src/gauge.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Usage gauges: how much room an account has, as far as we know. use crate::account::AccountId; diff --git a/crates/aien-switchboard/src/job.rs b/crates/aien-switchboard/src/job.rs index 7bef39a0..1145adb8 100644 --- a/crates/aien-switchboard/src/job.rs +++ b/crates/aien-switchboard/src/job.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Jobs: what the operator wants done. use serde::Deserialize; diff --git a/crates/aien-switchboard/src/lib.rs b/crates/aien-switchboard/src/lib.rs index a575599c..a58c4313 100644 --- a/crates/aien-switchboard/src/lib.rs +++ b/crates/aien-switchboard/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Switchboard core (ADR 0030): one typed, deterministic router over our own //! AI accounts. //! diff --git a/crates/aien-switchboard/src/router.rs b/crates/aien-switchboard/src/router.rs index 19e5d99a..20602b44 100644 --- a/crates/aien-switchboard/src/router.rs +++ b/crates/aien-switchboard/src/router.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The routing decision: pure, deterministic, no clock reads, no I/O. use crate::account::AccountId; diff --git a/crates/aien-switchboard/src/rules.rs b/crates/aien-switchboard/src/rules.rs index e3f17df8..53df2090 100644 --- a/crates/aien-switchboard/src/rules.rs +++ b/crates/aien-switchboard/src/rules.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The rule table: one plain TOML file the operator edits. //! //! ```toml diff --git a/crates/aien-switchboard/src/runner.rs b/crates/aien-switchboard/src/runner.rs index b2816aee..32b9516d 100644 --- a/crates/aien-switchboard/src/runner.rs +++ b/crates/aien-switchboard/src/runner.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Runners start one job on one account. This cut ships only the scripted //! fake; adapters for the real programs come later and must keep this shape. diff --git a/crates/aien-switchboard/tests/router.rs b/crates/aien-switchboard/tests/router.rs index 14759211..b5962b02 100644 --- a/crates/aien-switchboard/tests/router.rs +++ b/crates/aien-switchboard/tests/router.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aien_switchboard::*; const RULES: &str = r#" diff --git a/crates/aien-trace/src/lib.rs b/crates/aien-trace/src/lib.rs index f9a5b7e4..8d55905e 100644 --- a/crates/aien-trace/src/lib.rs +++ b/crates/aien-trace/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Correlation-only execution trace for AIEN (aien-sovereign-core#398). //! //! A trace event says "this boundary was crossed, with these ids". It is diff --git a/crates/cortex-encoder-rs/src/main.rs b/crates/cortex-encoder-rs/src/main.rs index cd080c49..733e201e 100644 --- a/crates/cortex-encoder-rs/src/main.rs +++ b/crates/cortex-encoder-rs/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use axum::{ extract::State, http::StatusCode, diff --git a/crates/cortex-path-m1/src/config.rs b/crates/cortex-path-m1/src/config.rs index 93878342..24b06fea 100644 --- a/crates/cortex-path-m1/src/config.rs +++ b/crates/cortex-path-m1/src/config.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use serde::Serialize; /// Frozen Milestone 1 constants. The JSON encoding of this value is `config_sha256`. diff --git a/crates/cortex-path-m1/src/fixture.rs b/crates/cortex-path-m1/src/fixture.rs index 348e3dc4..c6104a19 100644 --- a/crates/cortex-path-m1/src/fixture.rs +++ b/crates/cortex-path-m1/src/fixture.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, Deserialize, Serialize)] diff --git a/crates/cortex-path-m1/src/lib.rs b/crates/cortex-path-m1/src/lib.rs index f30ce7ad..6e1fb7ae 100644 --- a/crates/cortex-path-m1/src/lib.rs +++ b/crates/cortex-path-m1/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Deterministic claim-path rescoring for the Cortex Milestone 1 retrieval experiment. //! //! Production `recall_entities` is called and not modified. This crate does not insert diff --git a/crates/cortex-path-m1/src/load.rs b/crates/cortex-path-m1/src/load.rs index 036776dc..be3fb2cd 100644 --- a/crates/cortex-path-m1/src/load.rs +++ b/crates/cortex-path-m1/src/load.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::config::ExperimentConfig; use crate::score::{edge_weight, is_admitted, ordered_pair, EdgeView, WalkEdge}; use chrono::{DateTime, Utc}; diff --git a/crates/cortex-path-m1/src/main.rs b/crates/cortex-path-m1/src/main.rs index 7fee6b89..55fc6052 100644 --- a/crates/cortex-path-m1/src/main.rs +++ b/crates/cortex-path-m1/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use chrono::{DateTime, Utc}; use clap::Parser; use cortex_path_m1::run::{self, RunOutcome}; diff --git a/crates/cortex-path-m1/src/metrics.rs b/crates/cortex-path-m1/src/metrics.rs index 3f3d5ac1..61e62e53 100644 --- a/crates/cortex-path-m1/src/metrics.rs +++ b/crates/cortex-path-m1/src/metrics.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + /// Binary nDCG@k. Discount at rank `i` (1-based) is `1 / log2(i + 1)`. pub fn ndcg_at_k(ranked_ids: &[String], relevant: &[String], k: usize) -> f64 { if relevant.is_empty() || k == 0 { diff --git a/crates/cortex-path-m1/src/run.rs b/crates/cortex-path-m1/src/run.rs index bbaf705d..80245faf 100644 --- a/crates/cortex-path-m1/src/run.rs +++ b/crates/cortex-path-m1/src/run.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::config::ExperimentConfig; use crate::fixture::{self, EvalFixture, FixtureRejection}; use crate::load::load_admitted_graph; diff --git a/crates/cortex-path-m1/src/score.rs b/crates/cortex-path-m1/src/score.rs index 67cd9437..e964c396 100644 --- a/crates/cortex-path-m1/src/score.rs +++ b/crates/cortex-path-m1/src/score.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::config::ExperimentConfig; use chrono::{DateTime, Utc}; use cortex_rs::{ClaimStatus, VerificationTier}; diff --git a/crates/cortex-path-m1/tests/m1.rs b/crates/cortex-path-m1/tests/m1.rs index c2fa11a6..59c75cc3 100644 --- a/crates/cortex-path-m1/tests/m1.rs +++ b/crates/cortex-path-m1/tests/m1.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use chrono::{TimeZone, Utc}; use cortex_path_m1::config::ExperimentConfig; use cortex_path_m1::fixture::{self, EvalCase, EvalFixture}; diff --git a/crates/cortex-rs/scripts/reproduce.sh b/crates/cortex-rs/scripts/reproduce.sh index fa601085..5ab6cd15 100755 --- a/crates/cortex-rs/scripts/reproduce.sh +++ b/crates/cortex-rs/scripts/reproduce.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -euo pipefail # Sovereign Reproduction Runner for cortex-rs diff --git a/crates/cortex-rs/src/auth.rs b/crates/cortex-rs/src/auth.rs index 8ca97d6c..4e34698f 100644 --- a/crates/cortex-rs/src/auth.rs +++ b/crates/cortex-rs/src/auth.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use axum::{ extract::Request, http::StatusCode, diff --git a/crates/cortex-rs/src/bench.rs b/crates/cortex-rs/src/bench.rs index 5838dfa7..fc70534c 100644 --- a/crates/cortex-rs/src/bench.rs +++ b/crates/cortex-rs/src/bench.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::db::Database; use crate::models::{ClaimWriteInput, EntityWriteInput}; use std::fs; diff --git a/crates/cortex-rs/src/compiler.rs b/crates/cortex-rs/src/compiler.rs index 2cbadaae..4bb1cfea 100644 --- a/crates/cortex-rs/src/compiler.rs +++ b/crates/cortex-rs/src/compiler.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use serde::{Deserialize, Serialize}; use std::sync::Arc; use uuid::Uuid; diff --git a/crates/cortex-rs/src/db.rs b/crates/cortex-rs/src/db.rs index 8720c3e5..4f638319 100644 --- a/crates/cortex-rs/src/db.rs +++ b/crates/cortex-rs/src/db.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use chrono::Utc; use rusqlite::{params, Connection, Result}; use sha2::{Digest, Sha256}; diff --git a/crates/cortex-rs/src/embeddings.rs b/crates/cortex-rs/src/embeddings.rs index 0ef4b8cf..74a85baf 100644 --- a/crates/cortex-rs/src/embeddings.rs +++ b/crates/cortex-rs/src/embeddings.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aien_localhttp::Client; use serde_json::json; use std::time::Duration; diff --git a/crates/cortex-rs/src/evidence.rs b/crates/cortex-rs/src/evidence.rs index e634d101..2f32d3c4 100644 --- a/crates/cortex-rs/src/evidence.rs +++ b/crates/cortex-rs/src/evidence.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use chrono::{DateTime, Duration, Utc}; use sha2::{Digest, Sha256}; diff --git a/crates/cortex-rs/src/handlers.rs b/crates/cortex-rs/src/handlers.rs index 4f3104c2..5fd09b29 100644 --- a/crates/cortex-rs/src/handlers.rs +++ b/crates/cortex-rs/src/handlers.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aien_localhttp::Client; use axum::{ extract::{Path as AxumPath, Query, State}, diff --git a/crates/cortex-rs/src/lib.rs b/crates/cortex-rs/src/lib.rs index 277c8900..d0491d00 100644 --- a/crates/cortex-rs/src/lib.rs +++ b/crates/cortex-rs/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Sovereign Native Memory Engine in Rust (Cortex) //! Exposes in-process database and memory retrieval interfaces for the AIEN runtime. diff --git a/crates/cortex-rs/src/main.rs b/crates/cortex-rs/src/main.rs index c88af19d..67541cdc 100644 --- a/crates/cortex-rs/src/main.rs +++ b/crates/cortex-rs/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + fn default_db_path() -> PathBuf { let home = std::env::var("HOME") .or_else(|_| std::env::var("USERPROFILE")) diff --git a/crates/cortex-rs/src/models.rs b/crates/cortex-rs/src/models.rs index d36214b1..9f166cc5 100644 --- a/crates/cortex-rs/src/models.rs +++ b/crates/cortex-rs/src/models.rs @@ -1,4 +1,19 @@ #![allow(dead_code)] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use serde::{Deserialize, Serialize}; use serde_json::Value; diff --git a/crates/cortex-rs/src/promotion.rs b/crates/cortex-rs/src/promotion.rs index a112aa74..699614a8 100644 --- a/crates/cortex-rs/src/promotion.rs +++ b/crates/cortex-rs/src/promotion.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use serde::{Deserialize, Serialize}; use std::sync::Arc; diff --git a/crates/cortex-rs/src/security.rs b/crates/cortex-rs/src/security.rs index c329b313..601591d6 100644 --- a/crates/cortex-rs/src/security.rs +++ b/crates/cortex-rs/src/security.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use regex::Regex; use serde::{Deserialize, Serialize}; use sha2::{Digest, Sha256}; diff --git a/crates/cortex-rs/src/workers.rs b/crates/cortex-rs/src/workers.rs index cea1526a..13e451ec 100644 --- a/crates/cortex-rs/src/workers.rs +++ b/crates/cortex-rs/src/workers.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use sha2::{Digest, Sha256}; use std::sync::Arc; diff --git a/crates/crumbs/src/audit.rs b/crates/crumbs/src/audit.rs index cca12c4b..6e9e2a27 100644 --- a/crates/crumbs/src/audit.rs +++ b/crates/crumbs/src/audit.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Leak audits: the vocabulary that must never reach a learner, and scanners //! for byte streams and for a live learner process's memory. diff --git a/crates/crumbs/src/bin/crumbs-probe-learner.rs b/crates/crumbs/src/bin/crumbs-probe-learner.rs index 79b387e6..aa6d9172 100644 --- a/crates/crumbs/src/bin/crumbs-probe-learner.rs +++ b/crates/crumbs/src/bin/crumbs-probe-learner.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! A minimal learner used to test the protocol boundary without Omega. //! //! `crumbs-probe-learner honest LOOT` enumerates short chains and submits the first visible fit diff --git a/crates/crumbs/src/bin/crumbs.rs b/crates/crumbs/src/bin/crumbs.rs index 0ace2f77..4e269f13 100644 --- a/crates/crumbs/src/bin/crumbs.rs +++ b/crates/crumbs/src/bin/crumbs.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! `crumbs` command-line tool (sealed side). //! //! crumbs families list registered families (sealed labels) diff --git a/crates/crumbs/src/canon.rs b/crates/crumbs/src/canon.rs index 91696d00..470e597f 100644 --- a/crates/crumbs/src/canon.rs +++ b/crates/crumbs/src/canon.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Canonical little-endian encoding primitives. All identities are computed //! over bytes produced here, never over serde/JSON output. diff --git a/crates/crumbs/src/conformance.rs b/crates/crumbs/src/conformance.rs index e774710c..e97f6d76 100644 --- a/crates/crumbs/src/conformance.rs +++ b/crates/crumbs/src/conformance.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Crumb v1 conformance vectors for other implementations (e.g. Omega's reader). use crate::gen::{self, registry}; diff --git a/crates/crumbs/src/digest.rs b/crates/crumbs/src/digest.rs index 7c8e7ed5..4a320fbe 100644 --- a/crates/crumbs/src/digest.rs +++ b/crates/crumbs/src/digest.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Domain-separated BLAKE3 digests and the Crumb v1 identity model. //! //! | identity | derivation | learner sees it | diff --git a/crates/crumbs/src/experiment.rs b/crates/crumbs/src/experiment.rs index afb287fb..1b15b9db 100644 --- a/crates/crumbs/src/experiment.rs +++ b/crates/crumbs/src/experiment.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! BREADCRUMB-8: the acquisition and reuse experiment. //! //! Pre-registered design (fixed in code before any run): diff --git a/crates/crumbs/src/gates.rs b/crates/crumbs/src/gates.rs index 839dfce7..ca52b4c4 100644 --- a/crates/crumbs/src/gates.rs +++ b/crates/crumbs/src/gates.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Learner-dependent qualification gates, run against a real learner binary //! (for v1: Omega's `crumbline-learner`). //! diff --git a/crates/crumbs/src/gen/mechanisms.rs b/crates/crumbs/src/gen/mechanisms.rs index 15392a07..4106b9ee 100644 --- a/crates/crumbs/src/gen/mechanisms.rs +++ b/crates/crumbs/src/gen/mechanisms.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Generator mechanisms. Each is a genuinely distinct way of producing //! observations; registered families are parameterizations of these. //! diff --git a/crates/crumbs/src/gen/mod.rs b/crates/crumbs/src/gen/mod.rs index c1434766..abf8eaf4 100644 --- a/crates/crumbs/src/gen/mod.rs +++ b/crates/crumbs/src/gen/mod.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Generator framework: deterministic families built from reusable mechanisms. //! //! `generate(family, seed)` is a pure function of (family_id, diff --git a/crates/crumbs/src/gen/registry.rs b/crates/crumbs/src/gen/registry.rs index 2501a61f..85cfd964 100644 --- a/crates/crumbs/src/gen/registry.rs +++ b/crates/crumbs/src/gen/registry.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The v1 family registry: 38 mechanisms parameterized into 100+ registered //! family ids, plus the capability pool the breadcrumb trail is built from. //! diff --git a/crates/crumbs/src/gen/rng.rs b/crates/crumbs/src/gen/rng.rs index 1fae0dff..1963ef55 100644 --- a/crates/crumbs/src/gen/rng.rs +++ b/crates/crumbs/src/gen/rng.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Deterministic, named random streams (xoshiro256** seeded from BLAKE3). //! A stream is fully determined by its name and integer parts, so every //! generator draw can be replayed exactly years later. diff --git a/crates/crumbs/src/ledger.rs b/crates/crumbs/src/ledger.rs index 45efdf6a..8e15b44d 100644 --- a/crates/crumbs/src/ledger.rs +++ b/crates/crumbs/src/ledger.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The Crumbline ledger: a mechanically checkable provenance chain. //! //! Every record binds the generator instance digest, the sealed record digest, diff --git a/crates/crumbs/src/lib.rs b/crates/crumbs/src/lib.rs index a132e6fb..c1bac7a1 100644 --- a/crates/crumbs/src/lib.rs +++ b/crates/crumbs/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Crumbline: the Crumb v1 curriculum substrate for AIEN. //! //! AIEN receives observations only. Everything that explains a crumb (its diff --git a/crates/crumbs/src/mixer.rs b/crates/crumbs/src/mixer.rs index f6910ef8..f56dff38 100644 --- a/crates/crumbs/src/mixer.rs +++ b/crates/crumbs/src/mixer.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The population mixer (sealed side). //! //! Crumbs are drawn from five secret populations with configurable weights diff --git a/crates/crumbs/src/program.rs b/crates/crumbs/src/program.rs index 99b15244..f92f3a2e 100644 --- a/crates/crumbs/src/program.rs +++ b/crates/crumbs/src/program.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Candidate Program v1 ("CPG1"): the learner-neutral program format of the //! generic verifier contract. //! diff --git a/crates/crumbs/src/promotion.rs b/crates/crumbs/src/promotion.rs index 80072d68..3f002106 100644 --- a/crates/crumbs/src/promotion.rs +++ b/crates/crumbs/src/promotion.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The promotion ladder (sealed side). //! //! One solved crumb never makes an operation universal. An operation climbs: diff --git a/crates/crumbs/src/protocol.rs b/crates/crumbs/src/protocol.rs index b91e7563..4ce10dee 100644 --- a/crates/crumbs/src/protocol.rs +++ b/crates/crumbs/src/protocol.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The learner protocol (v1): the only channel between the sealed side and a learner. //! //! The learner runs as a separate operating-system process. It never shares an diff --git a/crates/crumbs/src/provenance.rs b/crates/crumbs/src/provenance.rs index 5b6cf8e6..55584459 100644 --- a/crates/crumbs/src/provenance.rs +++ b/crates/crumbs/src/provenance.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Provenance, contamination classes and the clean-room boundary (sealed side). //! //! The clean-room lane exists so that a later rediscovery can be checked: a diff --git a/crates/crumbs/src/sealed.rs b/crates/crumbs/src/sealed.rs index 95c963ff..b99bdebd 100644 --- a/crates/crumbs/src/sealed.rs +++ b/crates/crumbs/src/sealed.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Crumb v1 sealed contract: everything the learner never sees. //! //! A `SealedCrumb` is a pure function of (family, generator version, seed, diff --git a/crates/crumbs/src/session.rs b/crates/crumbs/src/session.rs index e6ca095a..c47ba244 100644 --- a/crates/crumbs/src/session.rs +++ b/crates/crumbs/src/session.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! A curriculum session: the sealed side driving one learner process. //! //! For every crumb: generate (visible + sealed), present the visible bytes, diff --git a/crates/crumbs/src/trace.rs b/crates/crumbs/src/trace.rs index 0738f2ae..3603ffe0 100644 --- a/crates/crumbs/src/trace.rs +++ b/crates/crumbs/src/trace.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Search-trace corpus (the M23-style training data for AIEN_0). //! //! The learner reports bare search events (which operation it applied to which diff --git a/crates/crumbs/src/verify.rs b/crates/crumbs/src/verify.rs index 8e3223ec..490fb3a6 100644 --- a/crates/crumbs/src/verify.rs +++ b/crates/crumbs/src/verify.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The generic verifier contract (sealed side). //! //! A learner's candidate arrives as a CPG1 `Program`. The verifier executes it diff --git a/crates/crumbs/src/visible.rs b/crates/crumbs/src/visible.rs index e6951078..3f425b82 100644 --- a/crates/crumbs/src/visible.rs +++ b/crates/crumbs/src/visible.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Crumb v1 learner-visible contract. //! //! The visible side is an ordered list of opaque `INPUT_BYTES -> OUTPUT_BYTES` diff --git a/crates/crumbs/tests/boundary.rs b/crates/crumbs/tests/boundary.rs index 10f1e6f7..802d7ca1 100644 --- a/crates/crumbs/tests/boundary.rs +++ b/crates/crumbs/tests/boundary.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! BREADCRUMB-1 and security gates: CRUMB_V1_FORMAT_PASS, SEALED_BOUNDARY_PASS, //! CRUMB_DETERMINISM_PASS (golden), and the leak tests over serialization, //! Debug/Display, errors, protocol transcripts, traces and training samples. diff --git a/crates/crumbs/tests/curriculum.rs b/crates/crumbs/tests/curriculum.rs index 1a28e42e..386c841d 100644 --- a/crates/crumbs/tests/curriculum.rs +++ b/crates/crumbs/tests/curriculum.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! CRUMB_CURRICULUM_PASS, CRUMB_NO_CATEGORY_LEAK_PASS, CLEAN_ROOM_PROVENANCE_PASS, //! CRUMB_OPERATION_PROMOTION_PASS (ladder unit), ledger chain, and the trace //! corpus gates that do not need a real learner (CRUMB_TRACE_PASS, diff --git a/crates/crumbs/tests/generators.rs b/crates/crumbs/tests/generators.rs index 4728f32c..73ea4602 100644 --- a/crates/crumbs/tests/generators.rs +++ b/crates/crumbs/tests/generators.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! BREADCRUMB-2 gates: CRUMB_GENERATORS_PASS, CRUMB_ADVERSARIAL_PASS, CRUMB_AMBIGUITY_PASS. use crumbs::gen::{self, registry, Mechanism}; diff --git a/crates/crumbs/tests/visible_conformance.rs b/crates/crumbs/tests/visible_conformance.rs index efd3079f..b1d4c789 100644 --- a/crates/crumbs/tests/visible_conformance.rs +++ b/crates/crumbs/tests/visible_conformance.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! CRB1 shared conformance: the Rust reference reader against the //! language-neutral corpus in aien-protocols (specs/crumb-visible). //! diff --git a/crates/rad-id-sync/src/ffi.rs b/crates/rad-id-sync/src/ffi.rs index ac517011..e7ba246f 100644 --- a/crates/rad-id-sync/src/ffi.rs +++ b/crates/rad-id-sync/src/ffi.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::identity::IdentityAnchor; use crate::keys::sync_identity_keys; use std::ffi::CString; diff --git a/crates/rad-id-sync/src/identity.rs b/crates/rad-id-sync/src/identity.rs index 7cd18cf9..80b65da7 100644 --- a/crates/rad-id-sync/src/identity.rs +++ b/crates/rad-id-sync/src/identity.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use serde::{Deserialize, Serialize}; use std::fs; use std::path::PathBuf; diff --git a/crates/rad-id-sync/src/keys.rs b/crates/rad-id-sync/src/keys.rs index 062e137e..ff90e6dd 100644 --- a/crates/rad-id-sync/src/keys.rs +++ b/crates/rad-id-sync/src/keys.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::identity::{IdentityAnchor, KeyRecord}; use sha2::{Digest, Sha256}; use std::fs; diff --git a/crates/rad-id-sync/src/lib.rs b/crates/rad-id-sync/src/lib.rs index a96e064c..5584e267 100644 --- a/crates/rad-id-sync/src/lib.rs +++ b/crates/rad-id-sync/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + pub mod ffi; pub mod identity; pub mod keys; diff --git a/crates/rad-id-sync/src/main.rs b/crates/rad-id-sync/src/main.rs index 99a68600..ece5c2a7 100644 --- a/crates/rad-id-sync/src/main.rs +++ b/crates/rad-id-sync/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use rad_id_sync::identity::IdentityAnchor; use rad_id_sync::keys::sync_identity_keys; use std::env; diff --git a/crates/spark-adapters/src/bin/spark_distill.rs b/crates/spark-adapters/src/bin/spark_distill.rs index a9a1b258..8c1400f0 100644 --- a/crates/spark-adapters/src/bin/spark_distill.rs +++ b/crates/spark-adapters/src/bin/spark_distill.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use chrono::Utc; use clap::{Parser, Subcommand}; use spark_adapters::curriculum::{CurriculumEngine, CurriculumTrack}; diff --git a/crates/spark-adapters/src/curriculum.rs b/crates/spark-adapters/src/curriculum.rs index 02acea65..2aead9bf 100644 --- a/crates/spark-adapters/src/curriculum.rs +++ b/crates/spark-adapters/src/curriculum.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::models::{DistillTask, TaskType, VerificationStrategy}; use std::path::Path; use std::process::Command; diff --git a/crates/spark-adapters/src/distill.rs b/crates/spark-adapters/src/distill.rs index 35e33807..1e92ad7b 100644 --- a/crates/spark-adapters/src/distill.rs +++ b/crates/spark-adapters/src/distill.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::models::{ChatMessage, DistillTask, DistillationRecord, Rollout}; use crate::providers::call_provider_unary; use crate::router::AdapterRouter; diff --git a/crates/spark-adapters/src/lib.rs b/crates/spark-adapters/src/lib.rs index d0b1a442..22b1c7fc 100644 --- a/crates/spark-adapters/src/lib.rs +++ b/crates/spark-adapters/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + pub mod curriculum; pub mod distill; pub mod models; diff --git a/crates/spark-adapters/src/models.rs b/crates/spark-adapters/src/models.rs index c44c5f24..306b9eb8 100644 --- a/crates/spark-adapters/src/models.rs +++ b/crates/spark-adapters/src/models.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)] diff --git a/crates/spark-adapters/src/providers/anthropic.rs b/crates/spark-adapters/src/providers/anthropic.rs index b41c7359..a9a9acdc 100644 --- a/crates/spark-adapters/src/providers/anthropic.rs +++ b/crates/spark-adapters/src/providers/anthropic.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use reqwest::header::{HeaderMap, HeaderValue, CONTENT_TYPE}; use reqwest::Client; use serde_json::{json, Value}; diff --git a/crates/spark-adapters/src/providers/mod.rs b/crates/spark-adapters/src/providers/mod.rs index 46e144c6..f6a4c32f 100644 --- a/crates/spark-adapters/src/providers/mod.rs +++ b/crates/spark-adapters/src/providers/mod.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + pub mod anthropic; pub mod openai; diff --git a/crates/spark-adapters/src/providers/openai.rs b/crates/spark-adapters/src/providers/openai.rs index 03e7e2d0..b2d6f373 100644 --- a/crates/spark-adapters/src/providers/openai.rs +++ b/crates/spark-adapters/src/providers/openai.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use reqwest::header::{HeaderMap, HeaderValue, AUTHORIZATION, CONTENT_TYPE}; use reqwest::Client; use serde_json::{json, Value}; diff --git a/crates/spark-adapters/src/router.rs b/crates/spark-adapters/src/router.rs index b6f7b8b1..ad531bdc 100644 --- a/crates/spark-adapters/src/router.rs +++ b/crates/spark-adapters/src/router.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use reqwest::Client; use crate::models::{AdapterSpec, ProviderType}; diff --git a/crates/spark-adapters/src/vault.rs b/crates/spark-adapters/src/vault.rs index f1efd0c8..6badeaf2 100644 --- a/crates/spark-adapters/src/vault.rs +++ b/crates/spark-adapters/src/vault.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use regex::Regex; use std::collections::HashMap; use std::process::Command; diff --git a/crates/spark-adapters/src/verifier.rs b/crates/spark-adapters/src/verifier.rs index c4713b53..ea03f6a9 100644 --- a/crates/spark-adapters/src/verifier.rs +++ b/crates/spark-adapters/src/verifier.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::models::{VerificationOutcome, VerificationStrategy}; use std::collections::HashSet; use std::io::Write; diff --git a/crates/spark-adapters/tests/challenger_m1_concurrency_bounds.rs b/crates/spark-adapters/tests/challenger_m1_concurrency_bounds.rs index 4564a2ef..184c4c2b 100644 --- a/crates/spark-adapters/tests/challenger_m1_concurrency_bounds.rs +++ b/crates/spark-adapters/tests/challenger_m1_concurrency_bounds.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Challenger Milestone 1 Adversarial Stress Suite: // Concurrency Caching, Fallback Behavior, Payload Bounds, and Dynamic Cortex Auth // Strictly adheres to sovereign unslop invariants: zero em dashes, zero en dashes. diff --git a/crates/spark-adapters/tests/challenger_m1_sanitizer_adversarial.rs b/crates/spark-adapters/tests/challenger_m1_sanitizer_adversarial.rs index 09cdb6d1..e5c8b310 100644 --- a/crates/spark-adapters/tests/challenger_m1_sanitizer_adversarial.rs +++ b/crates/spark-adapters/tests/challenger_m1_sanitizer_adversarial.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Challenger Milestone 1 Adversarial Stress Suite: // Operator Name Sanitization, Hostname Boundaries, Secret Redaction, and System Prompt Leakage // Strictly adheres to sovereign unslop invariants: zero em dashes, zero en dashes. diff --git a/crates/spark-adapters/tests/reviewer2_m1_adversarial_edge_cases.rs b/crates/spark-adapters/tests/reviewer2_m1_adversarial_edge_cases.rs index fd59d816..f0e8bddc 100644 --- a/crates/spark-adapters/tests/reviewer2_m1_adversarial_edge_cases.rs +++ b/crates/spark-adapters/tests/reviewer2_m1_adversarial_edge_cases.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Reviewer 2 Milestone 1 Adversarial Edge Cases Suite // Tests prompt sanitization under extreme boundary conditions: // prompt containing only secrets, mixed unicodes, escaped characters, diff --git a/crates/spark-adapters/tests/tier1_features.rs b/crates/spark-adapters/tests/tier1_features.rs index 0ea681c5..f5d9aa05 100644 --- a/crates/spark-adapters/tests/tier1_features.rs +++ b/crates/spark-adapters/tests/tier1_features.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use std::path::PathBuf; fn workspace_root() -> PathBuf { diff --git a/crates/spark-adapters/tests/tier2_boundary.rs b/crates/spark-adapters/tests/tier2_boundary.rs index 608c6f03..ae648cc6 100644 --- a/crates/spark-adapters/tests/tier2_boundary.rs +++ b/crates/spark-adapters/tests/tier2_boundary.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use std::path::PathBuf; fn workspace_root() -> PathBuf { diff --git a/crates/spark-adapters/tests/tier3_cross_feature.rs b/crates/spark-adapters/tests/tier3_cross_feature.rs index 656c037f..612fa7a7 100644 --- a/crates/spark-adapters/tests/tier3_cross_feature.rs +++ b/crates/spark-adapters/tests/tier3_cross_feature.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Tier 3: Cross-Feature Combinations and Subsystem Interaction Tests // Strictly adheres to sovereign unslop invariants: zero em dashes, zero en dashes. diff --git a/crates/spark-adapters/tests/tier4_real_world.rs b/crates/spark-adapters/tests/tier4_real_world.rs index 5db7240b..108d2f1b 100644 --- a/crates/spark-adapters/tests/tier4_real_world.rs +++ b/crates/spark-adapters/tests/tier4_real_world.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Tier 4: Real-World Application Scenarios on NVIDIA DGX Spark // Strictly adheres to sovereign unslop invariants: zero em dashes, zero en dashes. diff --git a/crates/spark-aegis/src/audit.rs b/crates/spark-aegis/src/audit.rs index 9cd4de67..0e15ffb5 100644 --- a/crates/spark-aegis/src/audit.rs +++ b/crates/spark-aegis/src/audit.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // spark-aegis Live System and Workspace Confinement Audit Engine // Inspects active listening sockets, workspace secrets, and host invariants diff --git a/crates/spark-aegis/src/byte_scan.rs b/crates/spark-aegis/src/byte_scan.rs index cbbe40a8..dd752497 100644 --- a/crates/spark-aegis/src/byte_scan.rs +++ b/crates/spark-aegis/src/byte_scan.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Byte and pattern search over file contents (pure Rust). /// Index of the first `target` byte in `data`. diff --git a/crates/spark-aegis/src/containment.rs b/crates/spark-aegis/src/containment.rs index 4941b2e7..727ebc30 100644 --- a/crates/spark-aegis/src/containment.rs +++ b/crates/spark-aegis/src/containment.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // spark-aegis Containment Engine // Executes sovereign defensive actions and commits Blake3 evidence to Cortex diff --git a/crates/spark-aegis/src/doctrine.rs b/crates/spark-aegis/src/doctrine.rs index f926e8dc..159a4abd 100644 --- a/crates/spark-aegis/src/doctrine.rs +++ b/crates/spark-aegis/src/doctrine.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // spark-aegis Sovereign Defensive Boundary and Containment Engine // Pure Native Rust Systems Architecture diff --git a/crates/spark-aegis/src/lib.rs b/crates/spark-aegis/src/lib.rs index f44795f2..12b6e0ce 100644 --- a/crates/spark-aegis/src/lib.rs +++ b/crates/spark-aegis/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // spark-aegis: Sovereign Defensive Boundary and Containment Engine // Pure Native Rust Systems Architecture diff --git a/crates/spark-aegis/src/main.rs b/crates/spark-aegis/src/main.rs index d46427e7..e5b1234f 100644 --- a/crates/spark-aegis/src/main.rs +++ b/crates/spark-aegis/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // spark-aegis CLI Entrypoint // Sovereign Defensive Boundary and Containment Engine diff --git a/crates/spark-aegis/src/pr_triage.rs b/crates/spark-aegis/src/pr_triage.rs index 801f7edc..f4253833 100644 --- a/crates/spark-aegis/src/pr_triage.rs +++ b/crates/spark-aegis/src/pr_triage.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // spark-aegis PR Triage and Autonomous Review Engine // Verifies git diffs against sovereign invariants and certifies PR safety diff --git a/crates/spark-aegis/src/scanner.rs b/crates/spark-aegis/src/scanner.rs index 1c2aafa6..89045335 100644 --- a/crates/spark-aegis/src/scanner.rs +++ b/crates/spark-aegis/src/scanner.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // spark-aegis Deep Scanner // Scans files, directories, and git diffs for secrets, slop, and dangerous commands diff --git a/crates/spark-aegis/tests/integration_tests.rs b/crates/spark-aegis/tests/integration_tests.rs index 70cfb4d8..f47cc3d1 100644 --- a/crates/spark-aegis/tests/integration_tests.rs +++ b/crates/spark-aegis/tests/integration_tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Integration tests for spark-aegis use spark_aegis::{audit, byte_scan, containment, doctrine, pr_triage, scanner}; diff --git a/crates/spark-cockpit-rs/src/access.rs b/crates/spark-cockpit-rs/src/access.rs index e72e88b1..154f32a0 100644 --- a/crates/spark-cockpit-rs/src/access.rs +++ b/crates/spark-cockpit-rs/src/access.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Operator access boundary. Browser sessions never put credentials in URLs. use axum::{ extract::{Form, Request, State}, diff --git a/crates/spark-cockpit-rs/src/main.rs b/crates/spark-cockpit-rs/src/main.rs index 3843fe7d..59612257 100644 --- a/crates/spark-cockpit-rs/src/main.rs +++ b/crates/spark-cockpit-rs/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + mod access; use axum::{ diff --git a/crates/spark-crumbs/src/lib.rs b/crates/spark-crumbs/src/lib.rs index f3c5651e..1cc77d8f 100644 --- a/crates/spark-crumbs/src/lib.rs +++ b/crates/spark-crumbs/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use chrono::{DateTime, Utc}; use colored::*; use serde::{Deserialize, Serialize}; diff --git a/crates/spark-crumbs/src/main.rs b/crates/spark-crumbs/src/main.rs index b74a3ab9..78b90a92 100644 --- a/crates/spark-crumbs/src/main.rs +++ b/crates/spark-crumbs/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use clap::{Parser, Subcommand}; use spark_crumbs::{ add_crumb_whisper, format_dir_crumb_tui, record_crumb_action, seed_directory_tree, sniff_crumb, diff --git a/crates/spark-debugger/src/audit.rs b/crates/spark-debugger/src/audit.rs index 27680b25..a73ca664 100644 --- a/crates/spark-debugger/src/audit.rs +++ b/crates/spark-debugger/src/audit.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aien_localhttp::Client; use serde::{Deserialize, Serialize}; use std::path::Path; diff --git a/crates/spark-debugger/src/daemon.rs b/crates/spark-debugger/src/daemon.rs index 2d55f44e..4a1e6516 100644 --- a/crates/spark-debugger/src/daemon.rs +++ b/crates/spark-debugger/src/daemon.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aien_localhttp::Client; use std::time::Duration; use tokio::time::sleep; diff --git a/crates/spark-debugger/src/main.rs b/crates/spark-debugger/src/main.rs index 2b79ff86..745c8f86 100644 --- a/crates/spark-debugger/src/main.rs +++ b/crates/spark-debugger/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aien_localhttp::Client; use clap::{Parser, Subcommand}; use std::time::Duration; diff --git a/crates/spark-debugger/src/mcp.rs b/crates/spark-debugger/src/mcp.rs index 18ffded2..9e2af0f9 100644 --- a/crates/spark-debugger/src/mcp.rs +++ b/crates/spark-debugger/src/mcp.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aien_localhttp::Client; use serde_json::{json, Value}; use tokio::io::{AsyncBufReadExt, AsyncWriteExt, BufReader}; diff --git a/crates/spark-debugger/src/reporter.rs b/crates/spark-debugger/src/reporter.rs index 3f43e0e9..3bf0242e 100644 --- a/crates/spark-debugger/src/reporter.rs +++ b/crates/spark-debugger/src/reporter.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aien_localhttp::Client; use rusqlite::params; use serde_json::json; diff --git a/crates/spark-discord-hub/src/atlas_bot.rs b/crates/spark-discord-hub/src/atlas_bot.rs index a3d40e3d..6cc1b00e 100644 --- a/crates/spark-discord-hub/src/atlas_bot.rs +++ b/crates/spark-discord-hub/src/atlas_bot.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use reqwest::Client; use serde_json::json; use tracing::{error, info}; diff --git a/crates/spark-discord-hub/src/gateway.rs b/crates/spark-discord-hub/src/gateway.rs index 394cdb48..9d075bb9 100644 --- a/crates/spark-discord-hub/src/gateway.rs +++ b/crates/spark-discord-hub/src/gateway.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use futures_util::{SinkExt, StreamExt}; use serde_json::json; use std::sync::atomic::{AtomicI64, Ordering}; diff --git a/crates/spark-discord-hub/src/gideon_bot.rs b/crates/spark-discord-hub/src/gideon_bot.rs index a2bd1c26..361f2857 100644 --- a/crates/spark-discord-hub/src/gideon_bot.rs +++ b/crates/spark-discord-hub/src/gideon_bot.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use reqwest::Client; use tracing::{error, info}; diff --git a/crates/spark-discord-hub/src/main.rs b/crates/spark-discord-hub/src/main.rs index fde4ea18..023825ce 100644 --- a/crates/spark-discord-hub/src/main.rs +++ b/crates/spark-discord-hub/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use clap::Parser; use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt}; diff --git a/crates/spark-discord-hub/src/models.rs b/crates/spark-discord-hub/src/models.rs index 8326665f..de8e842a 100644 --- a/crates/spark-discord-hub/src/models.rs +++ b/crates/spark-discord-hub/src/models.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #[allow(dead_code)] use serde::{Deserialize, Serialize}; diff --git a/crates/spark-discord-hub/src/vault.rs b/crates/spark-discord-hub/src/vault.rs index 045af389..1f78599a 100644 --- a/crates/spark-discord-hub/src/vault.rs +++ b/crates/spark-discord-hub/src/vault.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use std::process::Command; pub fn get_vault_secret(key: &str) -> Option { diff --git a/crates/spark-dream/src/lib.rs b/crates/spark-dream/src/lib.rs index 3273dbc1..46c94d18 100644 --- a/crates/spark-dream/src/lib.rs +++ b/crates/spark-dream/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aien_localhttp::Client; use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; diff --git a/crates/spark-dream/src/main.rs b/crates/spark-dream/src/main.rs index 512bdf1d..ebfab695 100644 --- a/crates/spark-dream/src/main.rs +++ b/crates/spark-dream/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use clap::{Parser, Subcommand}; use spark_dream::DreamEngine; use std::path::PathBuf; diff --git a/crates/spark-harness/src/completion.rs b/crates/spark-harness/src/completion.rs index 14b836b0..da3f14f7 100644 --- a/crates/spark-harness/src/completion.rs +++ b/crates/spark-harness/src/completion.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Verified workflow completion (Headstart M1, issue #533). //! //! [`HarnessEngine::complete_verified_workflow`] is the only way a workflow diff --git a/crates/spark-harness/src/dependency.rs b/crates/spark-harness/src/dependency.rs index afc97b0d..42a5017e 100644 --- a/crates/spark-harness/src/dependency.rs +++ b/crates/spark-harness/src/dependency.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Producer/consumer dependency graph (Headstart M2, issue #535). //! //! Nodes are task ids. An edge `producer -> consumer` means the consumer diff --git a/crates/spark-harness/src/execution.rs b/crates/spark-harness/src/execution.rs index 3284f734..b4f2e52b 100644 --- a/crates/spark-harness/src/execution.rs +++ b/crates/spark-harness/src/execution.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Task execution states for the provisional scheduler (Headstart M2, //! issue #535). //! diff --git a/crates/spark-harness/src/journal.rs b/crates/spark-harness/src/journal.rs index e0ac8385..1bb4dbe3 100644 --- a/crates/spark-harness/src/journal.rs +++ b/crates/spark-harness/src/journal.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Append-only JSON-lines journal (Headstart M2, issue #535). //! //! Why this and not an existing store: the repo's durable stores are the diff --git a/crates/spark-harness/src/lib.rs b/crates/spark-harness/src/lib.rs index abf0ad00..ecf0eaa4 100644 --- a/crates/spark-harness/src/lib.rs +++ b/crates/spark-harness/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use regex::Regex; use serde::{Deserialize, Serialize}; use serde_json::{json, Value}; diff --git a/crates/spark-harness/src/main.rs b/crates/spark-harness/src/main.rs index 77c912b8..3cef2f0a 100644 --- a/crates/spark-harness/src/main.rs +++ b/crates/spark-harness/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + fn default_harness_path() -> PathBuf { if std::path::Path::new("schemas").is_dir() && std::path::Path::new("evals.json").is_file() { return PathBuf::from("."); diff --git a/crates/spark-harness/src/readiness.rs b/crates/spark-harness/src/readiness.rs index 575c7a6c..92b2877a 100644 --- a/crates/spark-harness/src/readiness.rs +++ b/crates/spark-harness/src/readiness.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Artifact readiness and operation classes (Headstart M2, issue #535). //! //! A producer task can make its output ready for consumers at two levels: diff --git a/crates/spark-harness/src/scheduler/core.rs b/crates/spark-harness/src/scheduler/core.rs index e5783b97..32c3f431 100644 --- a/crates/spark-harness/src/scheduler/core.rs +++ b/crates/spark-harness/src/scheduler/core.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Pure scheduler state and event application. //! //! [`Core::apply`] is deterministic: it reads only the current state, the diff --git a/crates/spark-harness/src/scheduler/dedup.rs b/crates/spark-harness/src/scheduler/dedup.rs index 05843f8b..9d5dc9b5 100644 --- a/crates/spark-harness/src/scheduler/dedup.rs +++ b/crates/spark-harness/src/scheduler/dedup.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Bounded memory of applied event ids, for idempotent redelivery. //! //! Two scopes keep it bounded: diff --git a/crates/spark-harness/src/scheduler/error.rs b/crates/spark-harness/src/scheduler/error.rs index 5c4bd270..d5446116 100644 --- a/crates/spark-harness/src/scheduler/error.rs +++ b/crates/spark-harness/src/scheduler/error.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Every way the provisional scheduler refuses an event or a gate query. use crate::completion::CompletionError; diff --git a/crates/spark-harness/src/scheduler/gates.rs b/crates/spark-harness/src/scheduler/gates.rs index 0d0151d9..ff54a9d6 100644 --- a/crates/spark-harness/src/scheduler/gates.rs +++ b/crates/spark-harness/src/scheduler/gates.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Store-backed gates: `may_start`, `may_finalize`, event proof checks and //! the post-replay audit. //! diff --git a/crates/spark-harness/src/scheduler/mod.rs b/crates/spark-harness/src/scheduler/mod.rs index d24579fe..001db62c 100644 --- a/crates/spark-harness/src/scheduler/mod.rs +++ b/crates/spark-harness/src/scheduler/mod.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Provisional dependency scheduler (Headstart M2, issue #535). //! //! Lets a consumer task start reversible, sandboxed preparation as soon as diff --git a/crates/spark-harness/src/scheduler/permits.rs b/crates/spark-harness/src/scheduler/permits.rs index eee679e7..663fe142 100644 --- a/crates/spark-harness/src/scheduler/permits.rs +++ b/crates/spark-harness/src/scheduler/permits.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Resource permits: CPU slots, memory bytes and a concurrency count. //! //! A task acquires all three at dispatch or none of them. Permits are held diff --git a/crates/spark-harness/src/scheduler/timing.rs b/crates/spark-harness/src/scheduler/timing.rs index bdeb2c51..11ef72f2 100644 --- a/crates/spark-harness/src/scheduler/timing.rs +++ b/crates/spark-harness/src/scheduler/timing.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Per-task timing from the scheduler's monotonic clock, for the M6 A/B //! analysis. Times are clock ticks as returned by the injected clock (the //! default clock counts nanoseconds). Every value is derived from event diff --git a/crates/spark-harness/src/scheduler/unit_tests.rs b/crates/spark-harness/src/scheduler/unit_tests.rs index fcad8901..1c5eb375 100644 --- a/crates/spark-harness/src/scheduler/unit_tests.rs +++ b/crates/spark-harness/src/scheduler/unit_tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Guards that no event sequence reaches (defense in depth), tested on a //! hand-built state. diff --git a/crates/spark-harness/tests/common/mod.rs b/crates/spark-harness/tests/common/mod.rs index d00f922e..e7363f44 100644 --- a/crates/spark-harness/tests/common/mod.rs +++ b/crates/spark-harness/tests/common/mod.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Shared fixtures for the Headstart M2 scheduler tests. Deterministic: //! a fixed receipt clock and a manual monotonic scheduler clock. #![allow(dead_code)] diff --git a/crates/spark-harness/tests/provisional_commit.rs b/crates/spark-harness/tests/provisional_commit.rs index dc2ff309..bf47b2d5 100644 --- a/crates/spark-harness/tests/provisional_commit.rs +++ b/crates/spark-harness/tests/provisional_commit.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Headstart M3 (#537): the `Committing` state. A journaled `BeginCommit` //! freezes a `Committable` task and its inputs; nothing upstream may change //! them until a `CommitOutcome` is recorded; a replay that finds no outcome diff --git a/crates/spark-harness/tests/provisional_guards.rs b/crates/spark-harness/tests/provisional_guards.rs index 4fedba0a..a14af893 100644 --- a/crates/spark-harness/tests/provisional_guards.rs +++ b/crates/spark-harness/tests/provisional_guards.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Headstart M2 (#535): one test per guard that a deletion mutation must //! break, plus bounded duplicate memory and reserved audit ids. diff --git a/crates/spark-harness/tests/provisional_journal.rs b/crates/spark-harness/tests/provisional_journal.rs index cb48a985..0ae09240 100644 --- a/crates/spark-harness/tests/provisional_journal.rs +++ b/crates/spark-harness/tests/provisional_journal.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Headstart M2 (#535): the scheduler journal survives restarts, ignores a //! torn final line, refuses corruption, and replay never creates a //! committable task without re-verification. diff --git a/crates/spark-harness/tests/provisional_scheduler.rs b/crates/spark-harness/tests/provisional_scheduler.rs index 7ab4c86c..0d95ea30 100644 --- a/crates/spark-harness/tests/provisional_scheduler.rs +++ b/crates/spark-harness/tests/provisional_scheduler.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Headstart M2 (#535): provisional scheduling on verified interfaces, //! final completion only on verified producer completions. diff --git a/crates/spark-harness/tests/workflow_gates.rs b/crates/spark-harness/tests/workflow_gates.rs index 2d354a60..6583403d 100644 --- a/crates/spark-harness/tests/workflow_gates.rs +++ b/crates/spark-harness/tests/workflow_gates.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Headstart M1 (#533): completion gates are enforced, fail closed, and //! bound to a harness-minted aien-proof receipt. diff --git a/crates/spark-harvester/src/client.rs b/crates/spark-harvester/src/client.rs index 6fe80a4e..aeef0f70 100644 --- a/crates/spark-harvester/src/client.rs +++ b/crates/spark-harvester/src/client.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aien_provenance::{GrantPermissions, SourceGrant}; use reqwest::Client; use serde_json::{json, Value}; diff --git a/crates/spark-harvester/src/export.rs b/crates/spark-harvester/src/export.rs index 18751400..5cf66aa6 100644 --- a/crates/spark-harvester/src/export.rs +++ b/crates/spark-harvester/src/export.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::extractor::ExtractedPair; use serde_json::json; use std::fs::OpenOptions; diff --git a/crates/spark-harvester/src/extractor.rs b/crates/spark-harvester/src/extractor.rs index bfc49723..fc64510b 100644 --- a/crates/spark-harvester/src/extractor.rs +++ b/crates/spark-harvester/src/extractor.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use regex::Regex; use serde::{Deserialize, Serialize}; diff --git a/crates/spark-harvester/src/filter.rs b/crates/spark-harvester/src/filter.rs index 7774b069..5590924a 100644 --- a/crates/spark-harvester/src/filter.rs +++ b/crates/spark-harvester/src/filter.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::extractor::ExtractedPair; use sha2::{Digest, Sha256}; use std::collections::HashSet; diff --git a/crates/spark-harvester/src/lib.rs b/crates/spark-harvester/src/lib.rs index 6e9135ff..07d63225 100644 --- a/crates/spark-harvester/src/lib.rs +++ b/crates/spark-harvester/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + pub mod client; pub mod export; pub mod extractor; diff --git a/crates/spark-harvester/src/main.rs b/crates/spark-harvester/src/main.rs index 54e97f41..fd7f98d2 100644 --- a/crates/spark-harvester/src/main.rs +++ b/crates/spark-harvester/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use clap::{Parser, Subcommand}; use p256::pkcs8::DecodePublicKey; use std::path::PathBuf; diff --git a/crates/spark-harvester/src/rights_gate.rs b/crates/spark-harvester/src/rights_gate.rs index 6edd023a..52b9bc18 100644 --- a/crates/spark-harvester/src/rights_gate.rs +++ b/crates/spark-harvester/src/rights_gate.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::extractor::ExtractedPair; use aien_protocol_types::Digest32; use aien_provenance::{GrantPermissions, ProvenanceError, SourceGrant}; diff --git a/crates/spark-harvester/tests/rights_gating_tests.rs b/crates/spark-harvester/tests/rights_gating_tests.rs index 63ed1199..5fc32b48 100644 --- a/crates/spark-harvester/tests/rights_gating_tests.rs +++ b/crates/spark-harvester/tests/rights_gating_tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aien_provenance::{GrantPermissions, ProvenanceError, SourceGrant}; use p256::ecdsa::SigningKey; use spark_harvester::{BundleKind, ExtractedPair, RightsGate}; diff --git a/crates/spark-hive/src/adapter_engine.rs b/crates/spark-hive/src/adapter_engine.rs index e385415c..fcc8551b 100644 --- a/crates/spark-hive/src/adapter_engine.rs +++ b/crates/spark-hive/src/adapter_engine.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use serde::{Deserialize, Serialize}; use crate::store::{CombStore, HiveComb, HiveError, PlaceCombInput}; diff --git a/crates/spark-hive/src/emission.rs b/crates/spark-hive/src/emission.rs index 57b13fbd..fd124c48 100644 --- a/crates/spark-hive/src/emission.rs +++ b/crates/spark-hive/src/emission.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::store::{CombStore, HiveComb, HiveError, PlaceCombInput}; /// Emits a comb onto the hexagonal honeycomb lattice when an agent or subagent completes a task. diff --git a/crates/spark-hive/src/geometry.rs b/crates/spark-hive/src/geometry.rs index 39d2bab4..bc39938c 100644 --- a/crates/spark-hive/src/geometry.rs +++ b/crates/spark-hive/src/geometry.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use serde::{Deserialize, Serialize}; pub const DEFAULT_HEX_RADIUS: f64 = 88.0; diff --git a/crates/spark-hive/src/lib.rs b/crates/spark-hive/src/lib.rs index a9bb2018..f9c475c5 100644 --- a/crates/spark-hive/src/lib.rs +++ b/crates/spark-hive/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + pub mod adapter_engine; pub mod emission; pub mod geometry; diff --git a/crates/spark-hive/src/store.rs b/crates/spark-hive/src/store.rs index 596a29dc..b39d534c 100644 --- a/crates/spark-hive/src/store.rs +++ b/crates/spark-hive/src/store.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use chrono::Utc; use rusqlite::{Connection, OptionalExtension, params}; use serde::{Deserialize, Serialize}; diff --git a/crates/spark-inquisitor/src/audit.rs b/crates/spark-inquisitor/src/audit.rs index d4774a2a..9c0ac531 100644 --- a/crates/spark-inquisitor/src/audit.rs +++ b/crates/spark-inquisitor/src/audit.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::constitution::{ConstitutionalChecker, ViolationKind}; #[derive(Debug, Clone)] diff --git a/crates/spark-inquisitor/src/auditor.rs b/crates/spark-inquisitor/src/auditor.rs index 8f60b313..9a9d0db8 100644 --- a/crates/spark-inquisitor/src/auditor.rs +++ b/crates/spark-inquisitor/src/auditor.rs @@ -1 +1,16 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + pub use crate::audit::*; diff --git a/crates/spark-inquisitor/src/constitution.rs b/crates/spark-inquisitor/src/constitution.rs index 39b46a8d..5d45553a 100644 --- a/crates/spark-inquisitor/src/constitution.rs +++ b/crates/spark-inquisitor/src/constitution.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use regex::Regex; use std::sync::OnceLock; diff --git a/crates/spark-inquisitor/src/eval.rs b/crates/spark-inquisitor/src/eval.rs index b4c0da27..9bfef6a4 100644 --- a/crates/spark-inquisitor/src/eval.rs +++ b/crates/spark-inquisitor/src/eval.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + pub struct EvalVerdict { pub approved: bool, pub score: f32, diff --git a/crates/spark-inquisitor/src/evaluator.rs b/crates/spark-inquisitor/src/evaluator.rs index c4b835a6..759ecba8 100644 --- a/crates/spark-inquisitor/src/evaluator.rs +++ b/crates/spark-inquisitor/src/evaluator.rs @@ -1 +1,16 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + pub use crate::eval::*; diff --git a/crates/spark-inquisitor/src/interview.rs b/crates/spark-inquisitor/src/interview.rs index f40ffc0f..53474865 100644 --- a/crates/spark-inquisitor/src/interview.rs +++ b/crates/spark-inquisitor/src/interview.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + pub fn generate_inquisitor_interview(author: &str, pr_number: u64, pr_title: &str) -> String { format!( r#"### 🌿 Sovereign Steward: Contributor Alignment Interview diff --git a/crates/spark-inquisitor/src/lib.rs b/crates/spark-inquisitor/src/lib.rs index c0720f73..9c6680ab 100644 --- a/crates/spark-inquisitor/src/lib.rs +++ b/crates/spark-inquisitor/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + pub mod audit; pub mod auditor; pub mod constitution; diff --git a/crates/spark-inquisitor/src/main.rs b/crates/spark-inquisitor/src/main.rs index fabe9c4b..709554f1 100644 --- a/crates/spark-inquisitor/src/main.rs +++ b/crates/spark-inquisitor/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use clap::{Parser, Subcommand}; use colored::*; use spark_inquisitor::{ diff --git a/crates/spark-inquisitor/src/review.rs b/crates/spark-inquisitor/src/review.rs index 21f24590..e904dec1 100644 --- a/crates/spark-inquisitor/src/review.rs +++ b/crates/spark-inquisitor/src/review.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::audit::{AuditReport, DiffAuditor}; use crate::interview::generate_inquisitor_interview; diff --git a/crates/spark-inquisitor/src/triage.rs b/crates/spark-inquisitor/src/triage.rs index deae141b..85f2af18 100644 --- a/crates/spark-inquisitor/src/triage.rs +++ b/crates/spark-inquisitor/src/triage.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum IssueCategory { BugReport, diff --git a/crates/spark-inquisitor/tests/cli_exit_code_contracts.rs b/crates/spark-inquisitor/tests/cli_exit_code_contracts.rs index c4978d90..e383f9e3 100644 --- a/crates/spark-inquisitor/tests/cli_exit_code_contracts.rs +++ b/crates/spark-inquisitor/tests/cli_exit_code_contracts.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use std::fs; use std::process::Command; diff --git a/crates/spark-inquisitor/tests/constitutional_rules.rs b/crates/spark-inquisitor/tests/constitutional_rules.rs index 923dffca..879336a5 100644 --- a/crates/spark-inquisitor/tests/constitutional_rules.rs +++ b/crates/spark-inquisitor/tests/constitutional_rules.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use spark_inquisitor::audit::DiffAuditor; #[test] diff --git a/crates/spark-inquisitor/tests/diff_auditor_edge_cases.rs b/crates/spark-inquisitor/tests/diff_auditor_edge_cases.rs index 8d045a79..92e8dbfd 100644 --- a/crates/spark-inquisitor/tests/diff_auditor_edge_cases.rs +++ b/crates/spark-inquisitor/tests/diff_auditor_edge_cases.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use spark_inquisitor::audit::DiffAuditor; #[test] diff --git a/crates/spark-inquisitor/tests/issue_triage_evaluator.rs b/crates/spark-inquisitor/tests/issue_triage_evaluator.rs index 5671a2da..11a37263 100644 --- a/crates/spark-inquisitor/tests/issue_triage_evaluator.rs +++ b/crates/spark-inquisitor/tests/issue_triage_evaluator.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use spark_inquisitor::eval::TestimonyEvaluator; use spark_inquisitor::triage::{triage_issue, IssueCategory}; diff --git a/crates/spark-mail-rs/src/api.rs b/crates/spark-mail-rs/src/api.rs index 54da6c55..897004af 100644 --- a/crates/spark-mail-rs/src/api.rs +++ b/crates/spark-mail-rs/src/api.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::cortex_sync::CortexSync; use crate::models::{EmailMessage, MailboxStatus, SendEmailRequest}; use crate::relay::MailRelay; diff --git a/crates/spark-mail-rs/src/cortex_sync.rs b/crates/spark-mail-rs/src/cortex_sync.rs index 0b79ff2a..9c940f6f 100644 --- a/crates/spark-mail-rs/src/cortex_sync.rs +++ b/crates/spark-mail-rs/src/cortex_sync.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::models::EmailMessage; use aien_localhttp::Client; use serde_json::json; diff --git a/crates/spark-mail-rs/src/effect.rs b/crates/spark-mail-rs/src/effect.rs index 5aedbee5..05714901 100644 --- a/crates/spark-mail-rs/src/effect.rs +++ b/crates/spark-mail-rs/src/effect.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Outbound effect gate for mail. SMTP is unreachable until this returns allow. //! //! The deterministic floor matches the AEGIS pre-dispatch membrane: an empty diff --git a/crates/spark-mail-rs/src/gandi.rs b/crates/spark-mail-rs/src/gandi.rs index f8ebe1be..ef7aebd4 100644 --- a/crates/spark-mail-rs/src/gandi.rs +++ b/crates/spark-mail-rs/src/gandi.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Gandi mailbox transport. Credentials are resolved from the hardware vault //! at call time and never written to the local mail store. diff --git a/crates/spark-mail-rs/src/lib.rs b/crates/spark-mail-rs/src/lib.rs index 04b86088..dffad294 100644 --- a/crates/spark-mail-rs/src/lib.rs +++ b/crates/spark-mail-rs/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + pub mod api; pub mod cortex_sync; pub mod effect; diff --git a/crates/spark-mail-rs/src/main.rs b/crates/spark-mail-rs/src/main.rs index 7fda4976..35fd6fe2 100644 --- a/crates/spark-mail-rs/src/main.rs +++ b/crates/spark-mail-rs/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use clap::{Parser, Subcommand}; use serde::Deserialize; use spark_mail::api::{ApiState, create_router}; diff --git a/crates/spark-mail-rs/src/models.rs b/crates/spark-mail-rs/src/models.rs index 660aa6da..50652b3a 100644 --- a/crates/spark-mail-rs/src/models.rs +++ b/crates/spark-mail-rs/src/models.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use serde::{Deserialize, Serialize}; use std::collections::HashMap; diff --git a/crates/spark-mail-rs/src/relay.rs b/crates/spark-mail-rs/src/relay.rs index 69acc449..eae5b666 100644 --- a/crates/spark-mail-rs/src/relay.rs +++ b/crates/spark-mail-rs/src/relay.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::cortex_sync::CortexSync; use crate::models::{EmailMessage, SendEmailRequest}; use crate::store::MailStore; diff --git a/crates/spark-mail-rs/src/smtp_server.rs b/crates/spark-mail-rs/src/smtp_server.rs index b9542bab..6101df8b 100644 --- a/crates/spark-mail-rs/src/smtp_server.rs +++ b/crates/spark-mail-rs/src/smtp_server.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::cortex_sync::CortexSync; use crate::models::EmailMessage; use crate::store::MailStore; diff --git a/crates/spark-mail-rs/src/store.rs b/crates/spark-mail-rs/src/store.rs index 97b83c1d..88eb13eb 100644 --- a/crates/spark-mail-rs/src/store.rs +++ b/crates/spark-mail-rs/src/store.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::models::{EmailMessage, MailboxStatus}; use std::fs; use std::path::PathBuf; diff --git a/crates/spark-supervisor/examples/readiness_timing.rs b/crates/spark-supervisor/examples/readiness_timing.rs index a3a24aa9..ed7a6e05 100644 --- a/crates/spark-supervisor/examples/readiness_timing.rs +++ b/crates/spark-supervisor/examples/readiness_timing.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Measures time from supervisor start to each service being reported Ready (issue #534). //! //! Sample config: `bare` = `sleep 30`, no health_url; `web` = `sleep 30` with a health_url diff --git a/crates/spark-supervisor/src/config.rs b/crates/spark-supervisor/src/config.rs index f3166603..3c12538b 100644 --- a/crates/spark-supervisor/src/config.rs +++ b/crates/spark-supervisor/src/config.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use serde::Deserialize; use std::collections::HashMap; use std::path::Path; diff --git a/crates/spark-supervisor/src/lib.rs b/crates/spark-supervisor/src/lib.rs index abaee602..db24a797 100644 --- a/crates/spark-supervisor/src/lib.rs +++ b/crates/spark-supervisor/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Library target for spark-supervisor so integration tests and tools can drive the //! supervisor in-process. The `spark-supervisor` binary is a thin CLI over it. diff --git a/crates/spark-supervisor/src/main.rs b/crates/spark-supervisor/src/main.rs index 7a55b34c..611f017a 100644 --- a/crates/spark-supervisor/src/main.rs +++ b/crates/spark-supervisor/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + fn default_supervisor_config_path() -> PathBuf { let home = std::env::var("HOME") .or_else(|_| std::env::var("USERPROFILE")) diff --git a/crates/spark-supervisor/src/proc_telemetry.rs b/crates/spark-supervisor/src/proc_telemetry.rs index 92459689..8f28f0eb 100644 --- a/crates/spark-supervisor/src/proc_telemetry.rs +++ b/crates/spark-supervisor/src/proc_telemetry.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use std::fs; use std::path::Path; diff --git a/crates/spark-supervisor/src/supervisor.rs b/crates/spark-supervisor/src/supervisor.rs index cf653a11..8950f116 100644 --- a/crates/spark-supervisor/src/supervisor.rs +++ b/crates/spark-supervisor/src/supervisor.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Process supervision with typed, generation-scoped readiness (issue #534). //! //! Readiness contract: diff --git a/crates/spark-supervisor/tests/readiness.rs b/crates/spark-supervisor/tests/readiness.rs index 5f4a5df0..45b97497 100644 --- a/crates/spark-supervisor/tests/readiness.rs +++ b/crates/spark-supervisor/tests/readiness.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Tokio integration tests for typed readiness (issue #534). Real short-lived children //! (`sleep`) and a tiny local HTTP responder on a tokio TcpListener. diff --git a/crates/spark-supervisor/tests/status_cli.rs b/crates/spark-supervisor/tests/status_cli.rs index b7a72d7d..bf2b4b51 100644 --- a/crates/spark-supervisor/tests/status_cli.rs +++ b/crates/spark-supervisor/tests/status_cli.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! `spark-supervisor status` must refuse instead of printing a table that looks live. use std::process::Command; diff --git a/docs/campaigns/cand4-qualification/a1-read.sh b/docs/campaigns/cand4-qualification/a1-read.sh index f092a057..0dc74a5e 100644 --- a/docs/campaigns/cand4-qualification/a1-read.sh +++ b/docs/campaigns/cand4-qualification/a1-read.sh @@ -1,3 +1,18 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # a1_read RECEIPT MARK: the ACCEPTANCE-CAND4 section 4.1 reading of a NEXT-PHASE-1 v5 receipt. # Prints one JSON object with verdict PASS or FAIL. Sourced by run-cand4.sh and selftest.sh. # diff --git a/docs/campaigns/cand4-qualification/build-cpu-fault.sh b/docs/campaigns/cand4-qualification/build-cpu-fault.sh index dbce03b2..2545bea1 100644 --- a/docs/campaigns/cand4-qualification/build-cpu-fault.sh +++ b/docs/campaigns/cand4-qualification/build-cpu-fault.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # CAND-4 qualification: the `cpu-fault` test binary for Q2 (ACCEPTANCE-CAND4.md section 5). # Same recipe as NEXT-PHASE-2 (ACCEPTANCE-v2 section 4, receipt e401fffe build_env): # aien-cli release build with the composition archive linked, NO GPU archive, cargo diff --git a/docs/campaigns/cand4-qualification/hygiene.sh b/docs/campaigns/cand4-qualification/hygiene.sh index 9a009462..1b4b4635 100644 --- a/docs/campaigns/cand4-qualification/hygiene.sh +++ b/docs/campaigns/cand4-qualification/hygiene.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # CAND-4 production hygiene (ACCEPTANCE-CAND4.md section 3, rows H1..H6). Shell + jq only. # No GPU use: the omega host program's ARGUS probe never starts the graphics processor # (omega tools/r16_prod_hygiene.sh step 4); the silicon programs are checked statically. diff --git a/docs/campaigns/cand4-qualification/inputs.sh b/docs/campaigns/cand4-qualification/inputs.sh index ecd77f06..78a1c327 100644 --- a/docs/campaigns/cand4-qualification/inputs.sh +++ b/docs/campaigns/cand4-qualification/inputs.sh @@ -1,3 +1,18 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # CAND-4 qualification: shared input handling, sourced by run-cand4.sh and hygiene.sh. # Reads the ">>> CAND-4 frozen inputs >>>" block of ACCEPTANCE-CAND4.md (or of a TRIAL # inputs file with the same block) and checks every pinned digest. Shell only. diff --git a/docs/campaigns/cand4-qualification/run-cand4.sh b/docs/campaigns/cand4-qualification/run-cand4.sh index 8c05bf89..b962556e 100644 --- a/docs/campaigns/cand4-qualification/run-cand4.sh +++ b/docs/campaigns/cand4-qualification/run-cand4.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # CAND-4 qualification harness (ACCEPTANCE-CAND4.md). Shell + jq only. Never retries a # launch; every launch, failed or not, leaves an attempt record named by its sha256. # diff --git a/docs/campaigns/cand4-qualification/run-windows.sh b/docs/campaigns/cand4-qualification/run-windows.sh index 7c1bd57e..9da2a1dd 100755 --- a/docs/campaigns/cand4-qualification/run-windows.sh +++ b/docs/campaigns/cand4-qualification/run-windows.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # CAND-4 qualification: harness-side tests for coverage cases 2 and 5 (ACCEPTANCE-CAND4.md # section 6.1). Shell + jq only. No candidate code, no hook: the frozen cpu_fault binary is # started, killed with SIGKILL at a measured moment and restarted. Never touches the GPU. diff --git a/docs/campaigns/cand4-qualification/selftest.sh b/docs/campaigns/cand4-qualification/selftest.sh index df105935..0849b4f8 100644 --- a/docs/campaigns/cand4-qualification/selftest.sh +++ b/docs/campaigns/cand4-qualification/selftest.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # CAND-4 harness self-test: explicit boolean false must never read as missing or as true # (jq's `//` turns false into its alternative). Shell + jq only. Exit 0 iff all hold. set -u diff --git a/docs/campaigns/next-phase-1/make-receipt.sh b/docs/campaigns/next-phase-1/make-receipt.sh index bad99742..9882c03d 100755 --- a/docs/campaigns/next-phase-1/make-receipt.sh +++ b/docs/campaigns/next-phase-1/make-receipt.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # NEXT-PHASE-1 campaign receipt (omega COMPOSITION-2 style) from one # run-campaign.sh run. Shell + jq only. Usage: # make-receipt.sh RUN_ROOT OUT_DIR SC_COMMIT OMEGA_COMPOSE_COMMIT OMEGA_GPU_COMMIT [RESCUES] [NOTE] diff --git a/docs/campaigns/next-phase-1/mark-evidence.sh b/docs/campaigns/next-phase-1/mark-evidence.sh index fead0698..93ab3207 100755 --- a/docs/campaigns/next-phase-1/mark-evidence.sh +++ b/docs/campaigns/next-phase-1/mark-evidence.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # NEXT-PHASE-1 v6: evidence of the Cortex record mark (ACCEPTANCE-v6 Section 6.1), # one JSON object on stdout. Shell + coreutils + jq only; it judges nothing. # Usage: mark-evidence.sh MARK_FILE [MACHINE_ID_FILE] diff --git a/docs/campaigns/next-phase-1/run-campaign.sh b/docs/campaigns/next-phase-1/run-campaign.sh index aaa575df..8f402f7d 100755 --- a/docs/campaigns/next-phase-1/run-campaign.sh +++ b/docs/campaigns/next-phase-1/run-campaign.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # NEXT-PHASE-1 campaign driver: the bounded task S1..S8 against a real daemon. # Shell + jq only. Usage: # AIEN_BIN=target/release/aien-cli AIEN_MODEL_PATH=.../model.safetensors \ diff --git a/docs/campaigns/next-phase-1/run-v5.sh b/docs/campaigns/next-phase-1/run-v5.sh index c774aa06..2997f213 100755 --- a/docs/campaigns/next-phase-1/run-v5.sh +++ b/docs/campaigns/next-phase-1/run-v5.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # NEXT-PHASE-1 v5 campaign: the three tasks of tasks-v5.json (ACCEPTANCE-v5 # Section 2), one run-campaign.sh launch each, in order, each scored by # make-receipt.sh with its v5 rows. Shell + jq only. No task is repeated. diff --git a/docs/campaigns/next-phase-1/run-v6.sh b/docs/campaigns/next-phase-1/run-v6.sh index c41e1eb0..b0cd4e80 100755 --- a/docs/campaigns/next-phase-1/run-v6.sh +++ b/docs/campaigns/next-phase-1/run-v6.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # NEXT-PHASE-1 v6 campaign: the five launches of tasks-v6.json (ACCEPTANCE-v6 # Section 2), in file order, one run-campaign.sh launch each, no repeats; the # CPU reference run for R1; one receipt per launch (make-receipt.sh with the diff --git a/docs/campaigns/next-phase-1/run-v7.sh b/docs/campaigns/next-phase-1/run-v7.sh index 5a78ce78..58ce3751 100755 --- a/docs/campaigns/next-phase-1/run-v7.sh +++ b/docs/campaigns/next-phase-1/run-v7.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # NEXT-PHASE-1 v7 campaign (ACCEPTANCE-v7.md): run-v6.sh with the v7 wiring of # ACCEPTANCE-v7 Section 2 and nothing else. Same five launches of tasks-v6.json # (ACCEPTANCE-v6 Section 2, kept unchanged by ACCEPTANCE-v7 Section 1), same diff --git a/docs/campaigns/next-phase-1/run-v8.sh b/docs/campaigns/next-phase-1/run-v8.sh index e7bcbac2..686cd9a4 100755 --- a/docs/campaigns/next-phase-1/run-v8.sh +++ b/docs/campaigns/next-phase-1/run-v8.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # NEXT-PHASE-1 v8 campaign (ACCEPTANCE-v8.md): run-v7.sh with the v8 wiring of # ACCEPTANCE-v8 Section 6 and nothing else. The seven launches of tasks-v8.json # (T4 T5 T6 T7 N1 N2 R1, ACCEPTANCE-v8 Section 3), same diff --git a/docs/campaigns/next-phase-1/selftest-v7.sh b/docs/campaigns/next-phase-1/selftest-v7.sh index 83617019..4ecc1c60 100755 --- a/docs/campaigns/next-phase-1/selftest-v7.sh +++ b/docs/campaigns/next-phase-1/selftest-v7.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # NEXT-PHASE-1 v7 self-test of rows-v7.jq: the S3 committed flag (VERDICT-v6.md Section 2). # Shell + jq only. Exit 0 only if every case gives the expected result. # Runs v6_evidence on synthetic S3 reports, splices the resulting s3.committed into the diff --git a/docs/campaigns/next-phase-1/test-rows-v5.sh b/docs/campaigns/next-phase-1/test-rows-v5.sh index 3ca45474..ead98924 100755 --- a/docs/campaigns/next-phase-1/test-rows-v5.sh +++ b/docs/campaigns/next-phase-1/test-rows-v5.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # NEXT-PHASE-1 v5: negative tests for the ACCEPTANCE-v5 rows (rows-v5.jq) and # their wiring in make-receipt.sh. Shell + jq only. Usage: test-rows-v5.sh # Exit 0 only if every case gives exactly the expected FAIL rows. diff --git a/docs/campaigns/next-phase-1/test-rows-v6.sh b/docs/campaigns/next-phase-1/test-rows-v6.sh index 21734cb2..dbdd9c15 100755 --- a/docs/campaigns/next-phase-1/test-rows-v6.sh +++ b/docs/campaigns/next-phase-1/test-rows-v6.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # NEXT-PHASE-1 v6: negative tests for the ACCEPTANCE-v6 rows (rows-v6.jq), their # wiring in make-receipt.sh and v6-results.sh, and the scoring-v5 declaration. # Shell + jq only. Usage: test-rows-v6.sh. Exit 0 only if every case gives diff --git a/docs/campaigns/next-phase-1/test-rows-v8.sh b/docs/campaigns/next-phase-1/test-rows-v8.sh index 6da448b3..4da30f2c 100755 --- a/docs/campaigns/next-phase-1/test-rows-v8.sh +++ b/docs/campaigns/next-phase-1/test-rows-v8.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # NEXT-PHASE-1 v8: red/green tests for rows-v8.jq (row -A, -CM, T6/T7 row names), its wiring # in make-receipt.sh, v8-results.sh, run-v8.sh, tasks-v8.json and np1-v8.decl.json. # Shell + jq only. Usage: diff --git a/docs/campaigns/next-phase-1/test-wiring-v7.sh b/docs/campaigns/next-phase-1/test-wiring-v7.sh index 5618b7b1..80b286cf 100755 --- a/docs/campaigns/next-phase-1/test-wiring-v7.sh +++ b/docs/campaigns/next-phase-1/test-wiring-v7.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # NEXT-PHASE-1 v7: the v7 harness wiring (ACCEPTANCE-v7 Section 2). Shell + jq # only. Usage: test-wiring-v7.sh. Exit 0 only if every case holds. # diff --git a/docs/campaigns/next-phase-1/v6-results.sh b/docs/campaigns/next-phase-1/v6-results.sh index a4d1e7f2..10ddbccc 100755 --- a/docs/campaigns/next-phase-1/v6-results.sh +++ b/docs/campaigns/next-phase-1/v6-results.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # NEXT-PHASE-1 v6: one launch's scoring-v5 result lines (ACCEPTANCE-v6 # Section 7). Shell + jq only. Usage: # v6-results.sh LAUNCH_ID RECEIPT.json -> the launch's rows, one JSON line each diff --git a/docs/campaigns/next-phase-1/v8-results.sh b/docs/campaigns/next-phase-1/v8-results.sh index 5aca1ab5..ac51fd0f 100755 --- a/docs/campaigns/next-phase-1/v8-results.sh +++ b/docs/campaigns/next-phase-1/v8-results.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # NEXT-PHASE-1 v8: one launch's scoring-v5 result lines (ACCEPTANCE-v8 Section 7; v6-results.sh with A2 dropped, -A kept) (ACCEPTANCE-v6 # Section 7). Shell + jq only. Usage: # v6-results.sh LAUNCH_ID RECEIPT.json -> the launch's rows, one JSON line each diff --git a/docs/campaigns/next-phase-2/make-receipt.sh b/docs/campaigns/next-phase-2/make-receipt.sh index 954778b9..bbc446b2 100755 --- a/docs/campaigns/next-phase-2/make-receipt.sh +++ b/docs/campaigns/next-phase-2/make-receipt.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # NEXT-PHASE-2 receipt (ACCEPTANCE-v4 section 6 over v3 section 6, superseding v2) from # one fixture F0 and one `run-faults.sh cases` run root. Shell + jq only. Usage: # make-receipt.sh FIX_ROOT RUN_ROOT OUT_DIR SC_COMMIT OMEGA_COMPOSE_COMMIT GPU_BIN CPU_BIN \ diff --git a/docs/campaigns/next-phase-2/run-faults.sh b/docs/campaigns/next-phase-2/run-faults.sh index 81e96ddf..44337577 100755 --- a/docs/campaigns/next-phase-2/run-faults.sh +++ b/docs/campaigns/next-phase-2/run-faults.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # NEXT-PHASE-2 fault harness (ACCEPTANCE-v2.md, amended by ACCEPTANCE-v3.md and ACCEPTANCE-v4.md). # Shell + jq only, no Python. # diff --git a/docs/campaigns/open-model-qwen3/build-allen-subject.sh b/docs/campaigns/open-model-qwen3/build-allen-subject.sh index 9ad24d44..36a769ce 100755 --- a/docs/campaigns/open-model-qwen3/build-allen-subject.sh +++ b/docs/campaigns/open-model-qwen3/build-allen-subject.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Builds the ALLEN fixture subject for the campaign driver (run-campaign-allen.sh). Host-built, test-only encoder # (crates/aien-allen/tests/e2e_demo_subject.rs), the same one scripts/allen_e2e_demo.sh S1 and the WHOLE-SYSTEM-E2E # harness use. Real subjects come only from AIENOS cs_provision. Shell only. diff --git a/docs/campaigns/open-model-qwen3/evidence-v2/build.sh b/docs/campaigns/open-model-qwen3/evidence-v2/build.sh index b5202320..1e4d93da 100755 --- a/docs/campaigns/open-model-qwen3/evidence-v2/build.sh +++ b/docs/campaigns/open-model-qwen3/evidence-v2/build.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v2 frozen build: sovereign-core 905fdfc (main with sc#280), omega 459b461 (= omega.lock), # physics 6d7cf0d beside omega, aienos lock repo. Real compose + GPU libraries, never the stub. set -u diff --git a/docs/campaigns/open-model-qwen3/evidence-v2/gate.sh b/docs/campaigns/open-model-qwen3/evidence-v2/gate.sh index c7b261c2..25243729 100755 --- a/docs/campaigns/open-model-qwen3/evidence-v2/gate.sh +++ b/docs/campaigns/open-model-qwen3/evidence-v2/gate.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Pre-run gate on sovereign-core 905fdfc (ACCEPTANCE-v2 Section 2). set -u cd /home/drakestapleton/workspace/oq3-v2-build/sc diff --git a/docs/campaigns/open-model-qwen3/evidence-v2/run-part.sh b/docs/campaigns/open-model-qwen3/evidence-v2/run-part.sh index 09fd0eae..566e9ee2 100755 --- a/docs/campaigns/open-model-qwen3/evidence-v2/run-part.sh +++ b/docs/campaigns/open-model-qwen3/evidence-v2/run-part.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v2 RUN (ACCEPTANCE-v2 frozen on sovereign-core main 3e8c998). One part per quietlock hold. # Binaries: frozen build from sovereign-core 905fdfc + omega 459b461 (sha256 in ACCEPTANCE-v2 Section 2). # Wrapper, tasks and declaration: clean checkout of main 3e8c998 at /home/drakestapleton/workspace/oq3-v2-build/sc. diff --git a/docs/campaigns/open-model-qwen3/evidence-v3/build.sh b/docs/campaigns/open-model-qwen3/evidence-v3/build.sh index 73e9aea6..90c42106 100755 --- a/docs/campaigns/open-model-qwen3/evidence-v3/build.sh +++ b/docs/campaigns/open-model-qwen3/evidence-v3/build.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v3 frozen build: sovereign-core 8f3e8c8 (main with sc#285, #284, #287), omega 01f6a74 (= omega.lock, # omega#331), physics 6d7cf0d (physics.lock), aienos b84c0a6 (aienos.lock). Real compose + GPU libraries, never the stub. set -u diff --git a/docs/campaigns/open-model-qwen3/evidence-v3/gate.sh b/docs/campaigns/open-model-qwen3/evidence-v3/gate.sh index f30cd056..3ac43e72 100755 --- a/docs/campaigns/open-model-qwen3/evidence-v3/gate.sh +++ b/docs/campaigns/open-model-qwen3/evidence-v3/gate.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Pre-run gate on sovereign-core 8f3e8c8 (ACCEPTANCE-v3 Section 7). set -u B=/home/drakestapleton/workspace/oq3-v3-build diff --git a/docs/campaigns/open-model-qwen3/evidence-v3/hold.sh b/docs/campaigns/open-model-qwen3/evidence-v3/hold.sh index 552deb75..43b790d6 100755 --- a/docs/campaigns/open-model-qwen3/evidence-v3/hold.sh +++ b/docs/campaigns/open-model-qwen3/evidence-v3/hold.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + p=$1; R=/home/drakestapleton/workspace/oq3-v3-records date -u +%T > $R/hold-p$p.start quietlock hold --owner 031756-oq3-v3-p$p --minutes 20 --reason "OPEN-MODEL-QWEN3 v3 part $p" -- $R/run-part.sh $p > $R/hold-p$p.log 2>&1 diff --git a/docs/campaigns/open-model-qwen3/evidence-v3/run-part.sh b/docs/campaigns/open-model-qwen3/evidence-v3/run-part.sh index ec95f1ee..38ba796f 100755 --- a/docs/campaigns/open-model-qwen3/evidence-v3/run-part.sh +++ b/docs/campaigns/open-model-qwen3/evidence-v3/run-part.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v3 RUN (ACCEPTANCE-v3 frozen on sovereign-core main cad36d9). One part per quietlock hold. # Binaries: frozen build from sovereign-core 8f3e8c8 + omega 01f6a74 (sha256 in ACCEPTANCE-v3 Section 7). # Wrapper, tasks and declaration: clean checkout of main cad36d9 at /home/drakestapleton/workspace/oq3-v3-wrap. diff --git a/docs/campaigns/open-model-qwen3/evidence-v4/build.sh b/docs/campaigns/open-model-qwen3/evidence-v4/build.sh index b05ccaeb..b53e2477 100755 --- a/docs/campaigns/open-model-qwen3/evidence-v4/build.sh +++ b/docs/campaigns/open-model-qwen3/evidence-v4/build.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v4 frozen build: sovereign-core 6bbe2ec2 (main), omega 6c6180c (= omega.lock, # omega.lock at 6bbe2ec2), physics 6d7cf0d (physics.lock), aienos b84c0a6 (aienos.lock). Real compose + GPU libraries, never the stub. set -u diff --git a/docs/campaigns/open-model-qwen3/evidence-v5/build.sh b/docs/campaigns/open-model-qwen3/evidence-v5/build.sh index e14cf778..a622068a 100755 --- a/docs/campaigns/open-model-qwen3/evidence-v5/build.sh +++ b/docs/campaigns/open-model-qwen3/evidence-v5/build.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v5 freeze-candidate build (DRAFT, NOT FROZEN): sovereign-core 30258fc (main, holds sc#353, sc#354, sc#357, sc#358, sc#359 and sc#360), # omega 6c6180c (= omega.lock at 30258fc), physics 6d7cf0d (physics.lock), aienos b84c0a6 (aienos.lock). Clean clones, # release, real compose + GPU libraries, never the stub, without the dev-fallback feature. Derived from evidence-v4/build.sh. diff --git a/docs/campaigns/open-model-qwen3/evidence-v5/run-all.sh b/docs/campaigns/open-model-qwen3/evidence-v5/run-all.sh index 81ffe3c8..8044ab17 100755 --- a/docs/campaigns/open-model-qwen3/evidence-v5/run-all.sh +++ b/docs/campaigns/open-model-qwen3/evidence-v5/run-all.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Parts 1..4 in order, each in its own 20-minute hold 166657-oq3-v5-pN. Stops if a part's wrapper exits non-zero. R=/home/drakestapleton/workspace/oq3-v5-real/records; mkdir -p $R for p in 1 2 3 4; do diff --git a/docs/campaigns/open-model-qwen3/evidence-v5/run-part.sh b/docs/campaigns/open-model-qwen3/evidence-v5/run-part.sh index db76ff23..2243f729 100755 --- a/docs/campaigns/open-model-qwen3/evidence-v5/run-part.sh +++ b/docs/campaigns/open-model-qwen3/evidence-v5/run-part.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v5 REAL RUN (ACCEPTANCE-v5, FROZEN on sc main). One part per quietlock hold. Never killed, never timed out. # Binaries: build ~/workspace/oq3-v5-build-30258fc (frozen-v5.json pins). Wrapper: clean clone of sc main after the G8 merge (./wrap). set -u diff --git a/docs/campaigns/open-model-qwen3/evidence-v6/build.sh b/docs/campaigns/open-model-qwen3/evidence-v6/build.sh index 333cf8bf..8e3ff1f4 100755 --- a/docs/campaigns/open-model-qwen3/evidence-v6/build.sh +++ b/docs/campaigns/open-model-qwen3/evidence-v6/build.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v6 build (QUALIFICATION-v6.md Section 6): clean clone of sovereign-core at the frozen commit, # pinned omega/physics/aienos via scripts/pins.sh --gpu, release build of aien-cli and the two campaign examples. set -u diff --git a/docs/campaigns/open-model-qwen3/evidence-v6/run-part.sh b/docs/campaigns/open-model-qwen3/evidence-v6/run-part.sh index 1826d636..ab668507 100755 --- a/docs/campaigns/open-model-qwen3/evidence-v6/run-part.sh +++ b/docs/campaigns/open-model-qwen3/evidence-v6/run-part.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v6 (QUALIFICATION-v6.md, FROZEN on sc main). One part per quietlock hold. Never killed, never timed out. # run-part.sh real <1|2|3|4> the qualification part # run-part.sh dry 1 gate G6: part 1 in dry mode (same tasks file, scratch run base, never scored) diff --git a/docs/campaigns/open-model-qwen3/evidence-v6/run.sh b/docs/campaigns/open-model-qwen3/evidence-v6/run.sh index 09592a69..62432201 100755 --- a/docs/campaigns/open-model-qwen3/evidence-v6/run.sh +++ b/docs/campaigns/open-model-qwen3/evidence-v6/run.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v6 qualification run (QUALIFICATION-v6.md Sections 6 and 7). Start detached ONLY on the coordinator's go: # setsid nohup bash run.sh > 2>&1 < /dev/null & # Order: quietlock check; clean clone of the wrapper at that commit; G6 dry part 1 in its own hold (stop on a product failure); diff --git a/docs/campaigns/open-model-qwen3/evidence-v7-d1/run-invocation.sh b/docs/campaigns/open-model-qwen3/evidence-v7-d1/run-invocation.sh index 33dbc160..be0d3f51 100644 --- a/docs/campaigns/open-model-qwen3/evidence-v7-d1/run-invocation.sh +++ b/docs/campaigns/open-model-qwen3/evidence-v7-d1/run-invocation.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + export AIEN_BIN=/home/drakestapleton/workspace/oq3-v6-build-de9c626/target/release/aien-cli AIEN_MODEL_PATH=/home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75/model.safetensors.index.json AIEN_TOKENIZER_PATH=/home/drakestapleton/models/qwen3-4b-instruct-2507-cdbee75/tokenizer.json AIEN_KV_CONTEXT_TOKENS=1024 AIEN_FORCE_CPU_STUB=1 export AIEN_COMPOSE_DOC_MAX_TOKENS=24 AIEN_COMPOSE_DOC_BUDGET_MS=590000 NP1_DIR=~/workspace/.worktrees/d1-qwen3-8b/docs/campaigns/next-phase-1 NP1_ALLEN_BUILDER=/home/drakestapleton/workspace/.worktrees/d1-qwen3-8b/docs/campaigns/open-model-qwen3/build-allen-subject.sh OQ3_SC_DIR=~/workspace/.worktrees/d1-qwen3-8b OQ3_ALLEN_TARGET=~/workspace/d1-proof/allen-target bash /home/drakestapleton/workspace/.worktrees/d1-qwen3-8b/docs/campaigns/open-model-qwen3/run-campaign-allen.sh ~/workspace/d1-proof/run4b diff --git a/docs/campaigns/open-model-qwen3/evidence-v7/build.sh b/docs/campaigns/open-model-qwen3/evidence-v7/build.sh index 722f42af..458efdfb 100755 --- a/docs/campaigns/open-model-qwen3/evidence-v7/build.sh +++ b/docs/campaigns/open-model-qwen3/evidence-v7/build.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v7 build (SPEC-v7-DRAFT.md Section 3, as evidence-v6/build.sh with the v7 name): clean clone of # sovereign-core at the given commit, pinned omega/physics/aienos via scripts/pins.sh --gpu, release build of aien-cli and # the two campaign examples. CPU only; run `quietlock check` first and never inside another lane's hold. diff --git a/docs/campaigns/open-model-qwen3/evidence-v7/run-dry.sh b/docs/campaigns/open-model-qwen3/evidence-v7/run-dry.sh index 3736a9be..fd1791f8 100755 --- a/docs/campaigns/open-model-qwen3/evidence-v7/run-dry.sh +++ b/docs/campaigns/open-model-qwen3/evidence-v7/run-dry.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v7 gate G6: dry run of part 1 on GB10 in its own hold, then g6-gate.sh over D1 D2 D3 (SPEC-v7-DRAFT.md # Section 5 item 7). Runs AFTER the freeze, as v6 did (frozen-v7.json FROZEN at the wrap commit): the -PIN and -GR rows # compare the build and the generation record against the frozen pins and model hash, so a draft can only fail them (attempt 2, diff --git a/docs/campaigns/open-model-qwen3/evidence-v7/run-part.sh b/docs/campaigns/open-model-qwen3/evidence-v7/run-part.sh index e8eb8444..7a0055ee 100755 --- a/docs/campaigns/open-model-qwen3/evidence-v7/run-part.sh +++ b/docs/campaigns/open-model-qwen3/evidence-v7/run-part.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v7 (SPEC-v7-DRAFT.md; real parts only once frozen on sc main). One part per quietlock hold. Never killed, never timed out. # run-part.sh real <1|2|3|4> the qualification part # run-part.sh dry 1 gate G6: part 1 in dry mode (same tasks file, scratch run base, never scored) diff --git a/docs/campaigns/open-model-qwen3/evidence-v7/run.sh b/docs/campaigns/open-model-qwen3/evidence-v7/run.sh index c314e70b..e70c3203 100755 --- a/docs/campaigns/open-model-qwen3/evidence-v7/run.sh +++ b/docs/campaigns/open-model-qwen3/evidence-v7/run.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v7 REAL qualification run (SPEC-v7-DRAFT.md Sections 3 and 5 item 8). Start detached ONLY on the # coordinator's go, after run-dry.sh recorded "G6 PASS" and the freeze PR (frozen-v7.json FROZEN, all pins filled) is merged: # setsid nohup bash run.sh folder> > 2>&1 < /dev/null & diff --git a/docs/campaigns/open-model-qwen3/evidence-v8/build.sh b/docs/campaigns/open-model-qwen3/evidence-v8/build.sh index 371bbd02..fc5ec653 100755 --- a/docs/campaigns/open-model-qwen3/evidence-v8/build.sh +++ b/docs/campaigns/open-model-qwen3/evidence-v8/build.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v8 build (SPEC-v8.md Section 3, as evidence-v7/build.sh with the v8 name): clean clone of # sovereign-core at the given commit, pinned omega/physics/aienos via scripts/pins.sh --gpu, release build of aien-cli and # the two campaign examples. CPU only; run `quietlock check` first and never inside another lane's hold. diff --git a/docs/campaigns/open-model-qwen3/evidence-v8/run-dry.sh b/docs/campaigns/open-model-qwen3/evidence-v8/run-dry.sh index 0d208f00..263e0fc4 100755 --- a/docs/campaigns/open-model-qwen3/evidence-v8/run-dry.sh +++ b/docs/campaigns/open-model-qwen3/evidence-v8/run-dry.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v8 gate G6: dry run of part 1 on GB10 in its own hold, then g6-gate.sh over D1 D2 D3 (SPEC-v8.md # Section 5 item 7). Runs AFTER the freeze, as v6 did (frozen-v8.json FROZEN at the wrap commit): the -PIN and -GR rows # compare the build and the generation record against the frozen pins and model hash, so a draft can only fail them (attempt 2, diff --git a/docs/campaigns/open-model-qwen3/evidence-v8/run-part.sh b/docs/campaigns/open-model-qwen3/evidence-v8/run-part.sh index 4b6f1295..1786d68f 100755 --- a/docs/campaigns/open-model-qwen3/evidence-v8/run-part.sh +++ b/docs/campaigns/open-model-qwen3/evidence-v8/run-part.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v8 (SPEC-v8.md; real parts only once frozen on sc main). One part per quietlock hold. Never killed, never timed out. # run-part.sh real <1|2|3|4> the qualification part # run-part.sh dry 1 gate G6: part 1 in dry mode (same tasks file, scratch run base, never scored) diff --git a/docs/campaigns/open-model-qwen3/evidence-v8/run.sh b/docs/campaigns/open-model-qwen3/evidence-v8/run.sh index edca0524..88526dd0 100755 --- a/docs/campaigns/open-model-qwen3/evidence-v8/run.sh +++ b/docs/campaigns/open-model-qwen3/evidence-v8/run.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v8 REAL qualification run (SPEC-v8.md Sections 3 and 5 item 8). Start detached ONLY on the # coordinator's go, after run-dry.sh recorded "G6 PASS" and the freeze PR (frozen-v8.json FROZEN, all pins filled) is merged: # setsid nohup bash run.sh folder> > 2>&1 < /dev/null & diff --git a/docs/campaigns/open-model-qwen3/g6-gate.sh b/docs/campaigns/open-model-qwen3/g6-gate.sh index 8994210d..89c3e4ef 100755 --- a/docs/campaigns/open-model-qwen3/g6-gate.sh +++ b/docs/campaigns/open-model-qwen3/g6-gate.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v7 gate G6 (SPEC-v7-DRAFT.md Section 2): the dry run must prove the harness, not the model. # g6-gate.sh DRY_RESULTS.jsonl DECLARATION.json DRY_RUN_BASE LAUNCH... exit 0 = G6 PASS, 1 = G6 FAIL (reasons on stdout) # For every launch named on the command line (D1 D2 D3 for v7): diff --git a/docs/campaigns/open-model-qwen3/run-campaign-allen.sh b/docs/campaigns/open-model-qwen3/run-campaign-allen.sh index ae8f8b6b..3fb4dcba 100755 --- a/docs/campaigns/open-model-qwen3/run-campaign-allen.sh +++ b/docs/campaigns/open-model-qwen3/run-campaign-allen.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # NEXT-PHASE-1 campaign driver WITH ALLEN ENGAGED (D1, sc#384 follow-up to sc#386): a copy of next-phase-1/run-campaign.sh whose only # change is the ALLEN step after S0 (marked "D1 ALLEN" below). The frozen original stays untouched for completed campaigns. # The bounded task S1..S8 against a real daemon. diff --git a/docs/campaigns/open-model-qwen3/run-qwen3-v2.sh b/docs/campaigns/open-model-qwen3/run-qwen3-v2.sh index 2e3f4142..521b3354 100755 --- a/docs/campaigns/open-model-qwen3/run-qwen3-v2.sh +++ b/docs/campaigns/open-model-qwen3/run-qwen3-v2.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v2 campaign (ACCEPTANCE-v2.md): the seven NEXT-PHASE-1 v8 launches # (next-phase-1/tasks-v8.json: T4 T5 T6 T7 N1 N2 R1) with Qwen3-4B, wired exactly as # next-phase-1/run-v8.sh (same driver, rows-v8.jq receipts, np1_edit_merge re-derivation, diff --git a/docs/campaigns/open-model-qwen3/run-qwen3-v3.sh b/docs/campaigns/open-model-qwen3/run-qwen3-v3.sh index 1a2a8590..0caeaeed 100755 --- a/docs/campaigns/open-model-qwen3/run-qwen3-v3.sh +++ b/docs/campaigns/open-model-qwen3/run-qwen3-v3.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v3 campaign (ACCEPTANCE-v3.md; FROZEN when this file is on main: it refuses to run unless the # commits and the binaries sha256 below match). Eight launches in three parts, Qwen3-4B, adapted from # run-qwen3-v2.sh: same driver (next-phase-1/run-campaign.sh), same receipt builder and v8 rows, same diff --git a/docs/campaigns/open-model-qwen3/run-qwen3-v4.sh b/docs/campaigns/open-model-qwen3/run-qwen3-v4.sh index 097f9195..1533ccd4 100755 --- a/docs/campaigns/open-model-qwen3/run-qwen3-v4.sh +++ b/docs/campaigns/open-model-qwen3/run-qwen3-v4.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v4 campaign (ACCEPTANCE-v4.md; PREPARED, NOT FROZEN, NOT RUN). It refuses a real run while the # build identity below holds the placeholder, and afterwards unless the commits and the three binaries' sha256 match. # Qwen3-4B, adapted from run-qwen3-v3.sh: same driver (next-phase-1/run-campaign.sh), receipt builder, v8 rows and diff --git a/docs/campaigns/open-model-qwen3/run-qwen3-v5.sh b/docs/campaigns/open-model-qwen3/run-qwen3-v5.sh index 5101bafe..d15cc2f0 100755 --- a/docs/campaigns/open-model-qwen3/run-qwen3-v5.sh +++ b/docs/campaigns/open-model-qwen3/run-qwen3-v5.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v5 campaign (ACCEPTANCE-v5.md; DRAFT, NOT FROZEN, NOT RUN). It refuses a real run while any pin # in frozen-v5.json holds the placeholder or its status does not say FROZEN, and afterwards unless every pin read # from the checkouts and binaries equals it. Qwen3-4B, derived from run-qwen3-v4.sh: same driver (next-phase-1/run-campaign.sh), receipt builder, v8 rows and diff --git a/docs/campaigns/open-model-qwen3/run-qwen3-v6.sh b/docs/campaigns/open-model-qwen3/run-qwen3-v6.sh index df949568..0c3d2042 100755 --- a/docs/campaigns/open-model-qwen3/run-qwen3-v6.sh +++ b/docs/campaigns/open-model-qwen3/run-qwen3-v6.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v6 qualification (QUALIFICATION-v6.md). Derived from run-qwen3-v5.sh with names only changed: the frozen # values file (frozen-v6.json), the pinned run base (oq3-v6-runs), the output tag (oq3-v6) and labels. Tasks (tasks-oq3-v5.json), # seeds (seed-v5), declaration (oq3-v5.decl.json), row modules, v5-rows.sh, driver, receipt builder and scorer are the v5 files, diff --git a/docs/campaigns/open-model-qwen3/run-qwen3-v7.sh b/docs/campaigns/open-model-qwen3/run-qwen3-v7.sh index 50cd0014..7e6320f8 100644 --- a/docs/campaigns/open-model-qwen3/run-qwen3-v7.sh +++ b/docs/campaigns/open-model-qwen3/run-qwen3-v7.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v7 qualification (QUALIFICATION-v7.md). Derived from run-qwen3-v5.sh with names only changed: the frozen # values file (frozen-v7.json), the pinned run base (oq3-v7-runs), the output tag (oq3-v7) and labels. Tasks (tasks-oq3-v5.json), # seeds (seed-v5), declaration (oq3-v5.decl.json), row modules, v5-rows.sh, driver, receipt builder and scorer are the v5 files, diff --git a/docs/campaigns/open-model-qwen3/run-qwen3-v8.sh b/docs/campaigns/open-model-qwen3/run-qwen3-v8.sh index 452f581d..5a032d61 100755 --- a/docs/campaigns/open-model-qwen3/run-qwen3-v8.sh +++ b/docs/campaigns/open-model-qwen3/run-qwen3-v8.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v8 qualification (SPEC-v8.md). As run-qwen3-v7.sh with names changed and the R1 CPU reference run with NP1_REFERENCE_ALLEN=default (SPEC-v8 Section 2). v7 derived from run-qwen3-v5.sh with names only changed: the frozen # values file (frozen-v8.json), the pinned run base (oq3-v8-runs), the output tag (oq3-v8) and labels. Tasks (tasks-oq3-v5.json), # seeds (seed-v5), declaration (oq3-v5.decl.json), row modules, v5-rows.sh, driver, receipt builder and scorer are the v5 files, diff --git a/docs/campaigns/open-model-qwen3/run-qwen3.sh b/docs/campaigns/open-model-qwen3/run-qwen3.sh index 48680306..4a800432 100755 --- a/docs/campaigns/open-model-qwen3/run-qwen3.sh +++ b/docs/campaigns/open-model-qwen3/run-qwen3.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v1 campaign (ACCEPTANCE-v1.md): the three NEXT-PHASE-1 v5 tasks, # one run-campaign.sh launch each, scored by next-phase-1/make-receipt.sh with its v5 rows. # Shell + jq only. No task is repeated. Run inside the caller's quietlock hold. diff --git a/docs/campaigns/open-model-qwen3/test-v3.sh b/docs/campaigns/open-model-qwen3/test-v3.sh index 38f6e714..d31a8b66 100644 --- a/docs/campaigns/open-model-qwen3/test-v3.sh +++ b/docs/campaigns/open-model-qwen3/test-v3.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v3 (ACCEPTANCE-v3.md Section 9, FROZEN): CPU-only checks of the v3 files. # No model, no GPU, no quietlock. Shell + jq only. Exit 0 only if every check passes. # 1 declaration is the generated one, 156 rows, ids unique diff --git a/docs/campaigns/open-model-qwen3/test-v4.sh b/docs/campaigns/open-model-qwen3/test-v4.sh index f9feff05..ef135d42 100644 --- a/docs/campaigns/open-model-qwen3/test-v4.sh +++ b/docs/campaigns/open-model-qwen3/test-v4.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v4 (ACCEPTANCE-v4.md Section 9, PREPARED, NOT FROZEN): CPU-only checks of the v4 files. # No model, no GPU, no hold. Shell + jq only. Exit 0 only if every check passes. # 1 declarations are the generated ones; row counts; qualification and regression are disjoint diff --git a/docs/campaigns/open-model-qwen3/test-v5.sh b/docs/campaigns/open-model-qwen3/test-v5.sh index 906d1f9a..78c3d359 100755 --- a/docs/campaigns/open-model-qwen3/test-v5.sh +++ b/docs/campaigns/open-model-qwen3/test-v5.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v5 (ACCEPTANCE-v5.md Sections 3.5 and 9 gate G5, DRAFT, NOT FROZEN): CPU-only checks of the v5 files. # No model, no GPU, no hold. Shell + jq only. Derived from test-v4.sh. Exit 0 only if every check passes. # 1 the declaration is the generated one; row count; per launch counts diff --git a/docs/campaigns/open-model-qwen3/test-v6.sh b/docs/campaigns/open-model-qwen3/test-v6.sh index 04484594..f532ae33 100755 --- a/docs/campaigns/open-model-qwen3/test-v6.sh +++ b/docs/campaigns/open-model-qwen3/test-v6.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v6 self-test (QUALIFICATION-v6.md Section 7, CPU only, no model, no GPU). Shell + jq. # v6 reuses every v5 campaign file byte for byte; this test proves that, proves the v6 wrapper differs from the v5 # wrapper only in names, and checks the v6 wrapper's refusals. The v5 self-test (test-v5.sh) still runs the row diff --git a/docs/campaigns/open-model-qwen3/test-v7.sh b/docs/campaigns/open-model-qwen3/test-v7.sh index c6fba44f..a804bc5f 100755 --- a/docs/campaigns/open-model-qwen3/test-v7.sh +++ b/docs/campaigns/open-model-qwen3/test-v7.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v7 harness self-test (D1, sc#384). CPU only, no model, no GPU, no network. Shell + jq. # Proves the two harness corrections: (a) the driver engages ALLEN before S1 and changes nothing else; (b) gate G6 checks every # product row and goes red on the failure v6 missed. Thresholds and rows are untouched (declaration and task files are not read here diff --git a/docs/campaigns/open-model-qwen3/test-v8.sh b/docs/campaigns/open-model-qwen3/test-v8.sh index 9d490ee7..7b7250aa 100755 --- a/docs/campaigns/open-model-qwen3/test-v8.sh +++ b/docs/campaigns/open-model-qwen3/test-v8.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v8 harness self-test (sc#384, SPEC-v8.md). All v7 checks (ALLEN driver, gate G6) plus the v8 pieces: the wrapper differs from v7 only in names and the ALLEN-aware R1 reference call, the feature checks (v8-checks.sh) go red and green, and the launchers require them. CPU only, no model, no GPU, no network. Shell + jq. # Proves the two harness corrections: (a) the driver engages ALLEN before S1 and changes nothing else; (b) gate G6 checks every # product row and goes red on the failure v6 missed. Thresholds and rows are untouched (declaration and task files are not read here diff --git a/docs/campaigns/open-model-qwen3/v3-rows.sh b/docs/campaigns/open-model-qwen3/v3-rows.sh index 31228b25..973b4010 100755 --- a/docs/campaigns/open-model-qwen3/v3-rows.sh +++ b/docs/campaigns/open-model-qwen3/v3-rows.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v3 (ACCEPTANCE-v3.md Section 4, FROZEN): the extra rows of one launch, # computed from the run directory beside the v8 receipt. Shell + jq only. Usage: # v3-rows.sh RUN_ROOT LAUNCH_ID TASKS.json OUT_DIR RECEIPT_BASENAME diff --git a/docs/campaigns/open-model-qwen3/v4-rows.sh b/docs/campaigns/open-model-qwen3/v4-rows.sh index 6a84bac6..28d0b0aa 100755 --- a/docs/campaigns/open-model-qwen3/v4-rows.sh +++ b/docs/campaigns/open-model-qwen3/v4-rows.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v4 (ACCEPTANCE-v4.md Section 3, PREPARED, NOT FROZEN): the extra rows of one launch, computed # from the run directory beside the v8 receipt. Shell + jq only. Usage: # v4-rows.sh RUN_ROOT LAUNCH_ID TASKS.json OUT_DIR RECEIPT_BASENAME diff --git a/docs/campaigns/open-model-qwen3/v5-rows.sh b/docs/campaigns/open-model-qwen3/v5-rows.sh index 218c4c37..fa2f3dce 100755 --- a/docs/campaigns/open-model-qwen3/v5-rows.sh +++ b/docs/campaigns/open-model-qwen3/v5-rows.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v5 (ACCEPTANCE-v5.md Section 3, DRAFT, NOT FROZEN): the extra rows of one launch, computed # from the run directory beside the v8 receipt. Derived from v4-rows.sh; shell + jq only. Usage: # v5-rows.sh RUN_ROOT LAUNCH_ID TASKS.json OUT_DIR RECEIPT_BASENAME LAUNCH_RECORD|- [FROZEN.json] diff --git a/docs/campaigns/open-model-qwen3/v8-checks.sh b/docs/campaigns/open-model-qwen3/v8-checks.sh index 0be1f40e..b531a9ed 100755 --- a/docs/campaigns/open-model-qwen3/v8-checks.sh +++ b/docs/campaigns/open-model-qwen3/v8-checks.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-QWEN3 v8 feature checks (SPEC-v8.md Section 3). CPU only, shell + jq, reads run records only. Required for a v8 # campaign PASS in addition to the 334 declared rows (they add requirements; no row or threshold changes). # v8-checks.sh RUN_BASE V7_S3_DIR LAUNCH... diff --git a/docs/campaigns/open-model-smollm2/run-smollm2.sh b/docs/campaigns/open-model-smollm2/run-smollm2.sh index d58caba0..f0702cbb 100755 --- a/docs/campaigns/open-model-smollm2/run-smollm2.sh +++ b/docs/campaigns/open-model-smollm2/run-smollm2.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OPEN-MODEL-SMOLLM2 v1 campaign (ACCEPTANCE-v1.md): the three NEXT-PHASE-1 v5 tasks, # one run-campaign.sh launch each, scored by next-phase-1/make-receipt.sh with its v5 rows. # Shell + jq only. No task is repeated. Run inside the caller's quietlock hold. diff --git a/docs/campaigns/scoring/score-rows.sh b/docs/campaigns/scoring/score-rows.sh index 29defc68..64cf07ba 100755 --- a/docs/campaigns/scoring/score-rows.sh +++ b/docs/campaigns/scoring/score-rows.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Scoring contract v5 scorer (docs/campaigns/scoring/SCORING-v5.md). Shell + jq only. # Usage: score-rows.sh DECLARATION.json RESULTS.jsonl [EXTERNAL.json] # DECLARATION frozen declaration of the case set (see SCORING-v5.md section 2) diff --git a/docs/campaigns/scoring/test-scoring-v5.sh b/docs/campaigns/scoring/test-scoring-v5.sh index 26ed395f..1d212748 100755 --- a/docs/campaigns/scoring/test-scoring-v5.sh +++ b/docs/campaigns/scoring/test-scoring-v5.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Negative tests for scoring contract v5 (SCORING-v5.md). Shell + jq only. # Usage: test-scoring-v5.sh Exit 0 only if every fixture gives its expected verdict. set -u diff --git a/docs/campaigns/smollm2-qualification/ACCEPTANCE-SMOLLM2-Q.md b/docs/campaigns/smollm2-qualification/ACCEPTANCE-SMOLLM2-Q.md index 30fea562..a0a54e38 100644 --- a/docs/campaigns/smollm2-qualification/ACCEPTANCE-SMOLLM2-Q.md +++ b/docs/campaigns/smollm2-qualification/ACCEPTANCE-SMOLLM2-Q.md @@ -19,7 +19,7 @@ status = DRAFT until the block in section 1 holds no UNFROZEN value. The fills that block; it changes this file only and is made before any run. Nothing in this file changes after the freeze; a change is a new spec_version. scope = Linux-hosted, single machine (the Spark, GB10), the sovereign-core daemon path, as CAND-4. - Licence: SmolLM2 weights keep Apache-2.0 and their upstream notices; AIEN code AGPL-3.0. + Licence: SmolLM2 weights keep Apache-2.0 and their upstream notices; AIEN code Apache-2.0. ``` ## 0. What differs from the CAND-4 suite (every difference, nothing else) diff --git a/docs/campaigns/smollm2-qualification/a1-read.sh b/docs/campaigns/smollm2-qualification/a1-read.sh index e8b3a00c..60611429 100644 --- a/docs/campaigns/smollm2-qualification/a1-read.sh +++ b/docs/campaigns/smollm2-qualification/a1-read.sh @@ -1,3 +1,18 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # a1_read RECEIPT MARK: the ACCEPTANCE-SMOLLM2-Q section 4.1 reading of a NEXT-PHASE-1 v5 receipt. # Prints one JSON object with verdict PASS or FAIL. Sourced by run-smol2q.sh and selftest.sh. # diff --git a/docs/campaigns/smollm2-qualification/build-cpu-fault.sh b/docs/campaigns/smollm2-qualification/build-cpu-fault.sh index b334a4df..9661826b 100644 --- a/docs/campaigns/smollm2-qualification/build-cpu-fault.sh +++ b/docs/campaigns/smollm2-qualification/build-cpu-fault.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # SMOLLM2-Q qualification (copied from cand4-qualification): the `cpu-fault` test binary for Q2 (ACCEPTANCE-SMOLLM2-Q.md section 5). # Same recipe as NEXT-PHASE-2 (ACCEPTANCE-v2 section 4, receipt e401fffe build_env): # aien-cli release build with the composition archive linked, NO GPU archive, cargo diff --git a/docs/campaigns/smollm2-qualification/hygiene.sh b/docs/campaigns/smollm2-qualification/hygiene.sh index 17b69202..72616d6a 100644 --- a/docs/campaigns/smollm2-qualification/hygiene.sh +++ b/docs/campaigns/smollm2-qualification/hygiene.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # SMOLLM2-Q production hygiene (copied from cand4-qualification) (ACCEPTANCE-SMOLLM2-Q.md section 3, rows H1..H6). Shell + jq only. # No GPU use: the omega host program's ARGUS probe never starts the graphics processor # (omega tools/r16_prod_hygiene.sh step 4); the silicon programs are checked statically. diff --git a/docs/campaigns/smollm2-qualification/inputs.sh b/docs/campaigns/smollm2-qualification/inputs.sh index 79471709..f402ce37 100644 --- a/docs/campaigns/smollm2-qualification/inputs.sh +++ b/docs/campaigns/smollm2-qualification/inputs.sh @@ -1,3 +1,18 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # SMOLLM2-Q qualification (copied from cand4-qualification): shared input handling, sourced by run-smol2q.sh and hygiene.sh. # Reads the ">>> SMOLLM2-Q frozen inputs >>>" block of ACCEPTANCE-SMOLLM2-Q.md (or of a TRIAL # inputs file with the same block) and checks every pinned digest. Shell only. diff --git a/docs/campaigns/smollm2-qualification/run-smol2q.sh b/docs/campaigns/smollm2-qualification/run-smol2q.sh index 4e1e6891..7970c588 100644 --- a/docs/campaigns/smollm2-qualification/run-smol2q.sh +++ b/docs/campaigns/smollm2-qualification/run-smol2q.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # SMOLLM2-Q qualification harness (the CAND-4 harness, copied; ACCEPTANCE-SMOLLM2-Q.md section 0 lists every change) (ACCEPTANCE-SMOLLM2-Q.md). Shell + jq only. Never retries a # launch; every launch, failed or not, leaves an attempt record named by its sha256. # diff --git a/docs/campaigns/smollm2-qualification/run-windows.sh b/docs/campaigns/smollm2-qualification/run-windows.sh index 4bfc1491..55f0410c 100755 --- a/docs/campaigns/smollm2-qualification/run-windows.sh +++ b/docs/campaigns/smollm2-qualification/run-windows.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # SMOLLM2-Q qualification (copied from cand4-qualification): harness-side tests for coverage cases 2 and 5 (ACCEPTANCE-SMOLLM2-Q.md # section 6.1). Shell + jq only. No candidate code, no hook: the frozen cpu_fault binary is # started, killed with SIGKILL at a measured moment and restarted. Never touches the GPU. diff --git a/docs/campaigns/smollm2-qualification/selftest.sh b/docs/campaigns/smollm2-qualification/selftest.sh index 2eb34de2..65baa192 100644 --- a/docs/campaigns/smollm2-qualification/selftest.sh +++ b/docs/campaigns/smollm2-qualification/selftest.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # SMOLLM2-Q harness self-test (copied from cand4-qualification): explicit boolean false must never read as missing or as true # (jq's `//` turns false into its alternative). Shell + jq only. Exit 0 iff all hold. set -u diff --git a/docs/inference/own30b-omega-door.rs b/docs/inference/own30b-omega-door.rs index 3fb35e7b..f82619c2 100644 --- a/docs/inference/own30b-omega-door.rs +++ b/docs/inference/own30b-omega-door.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Omega engine behind H's `Engine` trait (OWN-30B cut 3 x cut 4 seam). //! Drop-in for `crates/aien-serve-http/src/omega_engine.rs`; in that crate replace //! `aien_omega_abi` with `aien_inference_abi` and add `--engine omega` in main.rs: diff --git a/docs/release/receipts/np4-v2-evidence/demo.sh b/docs/release/receipts/np4-v2-evidence/demo.sh index 9e25e423..6802a923 100644 --- a/docs/release/receipts/np4-v2-evidence/demo.sh +++ b/docs/release/receipts/np4-v2-evidence/demo.sh @@ -1,3 +1,18 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + V=$1; P=$2 BIN=$V/bin; CFG=$V/config; SA=$V/standalone/install.sh inst(){ rel=$1; shift; env -i PATH=/usr/bin:/bin HOME=$V/home AIEN_RELEASE_TAG=v0.0.0-np4 AIEN_RELEASE_BASE_URL=file://$V/$rel AIEN_BIN_DIR=$BIN AIEN_CONFIG_DIR=$CFG AIEN_INSTALL_NO_PROFILE=1 AIEN_ALLOWED_SIGNERS=$P/keys/allowed_signers "$@" ; } diff --git a/e2e_tests/run_e2e_tests.sh b/e2e_tests/run_e2e_tests.sh index efe9b129..ff8bdf86 100755 --- a/e2e_tests/run_e2e_tests.sh +++ b/e2e_tests/run_e2e_tests.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -euo pipefail # AIEN Sovereign Core E2E Test Suite Runner diff --git a/e2e_tests/src/harness.rs b/e2e_tests/src/harness.rs index de32ed5f..55fdf36a 100644 --- a/e2e_tests/src/harness.rs +++ b/e2e_tests/src/harness.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Test harness utilities for AIEN Sovereign Core E2E testing. //! Provides safetensors serialization, CLI execution, mathematical telemetry, and invariant auditing. //! Uses pure standard library and serde_json to minimize disk space. diff --git a/e2e_tests/src/lib.rs b/e2e_tests/src/lib.rs index 6f04a699..7bc50d12 100644 --- a/e2e_tests/src/lib.rs +++ b/e2e_tests/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! E2E Test Suite for AIEN Sovereign Core TinyLlama Real-Model Execution. //! Covers all 18 features across the 4-tier testing methodology. diff --git a/e2e_tests/tests/test_tier1_feature_coverage.rs b/e2e_tests/tests/test_tier1_feature_coverage.rs index 3d1f22e5..cd724bb9 100644 --- a/e2e_tests/tests/test_tier1_feature_coverage.rs +++ b/e2e_tests/tests/test_tier1_feature_coverage.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Tier 1: Feature Coverage Test Suite. //! Verifies functional requirements across all N=18 features (5 tests per feature = 90 tests). //! Adheres strictly to Progressive Testability. diff --git a/e2e_tests/tests/test_tier2_boundaries.rs b/e2e_tests/tests/test_tier2_boundaries.rs index c763ca25..74620b3e 100644 --- a/e2e_tests/tests/test_tier2_boundaries.rs +++ b/e2e_tests/tests/test_tier2_boundaries.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Tier 2: Boundary & Corner Cases Test Suite. //! Tests boundary value conditions, edge inputs, and corner cases across all N=18 features (5 tests per feature = 90 tests). diff --git a/e2e_tests/tests/test_tier3_cross_feature.rs b/e2e_tests/tests/test_tier3_cross_feature.rs index d95082bd..28fc2e11 100644 --- a/e2e_tests/tests/test_tier3_cross_feature.rs +++ b/e2e_tests/tests/test_tier3_cross_feature.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Tier 3: Cross-Feature Interactions Test Suite. //! Tests pairwise integration and cross-module contracts across the remaining feature pairs (P1 to P18; P11 and P13 to P15 were removed with Mojo). diff --git a/e2e_tests/tests/test_tier4_real_world.rs b/e2e_tests/tests/test_tier4_real_world.rs index 2b16d66e..c8e764d1 100644 --- a/e2e_tests/tests/test_tier4_real_world.rs +++ b/e2e_tests/tests/test_tier4_real_world.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Tier 4: Real-World Scenarios Test Suite. //! Tests realistic application workflows and end-to-end user journeys (SC-01 to SC-09). diff --git a/install-inquisitor.sh b/install-inquisitor.sh index df020749..52717436 100755 --- a/install-inquisitor.sh +++ b/install-inquisitor.sh @@ -1,4 +1,19 @@ #!/bin/sh +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -eu # Spark-Inquisitor native binary installer diff --git a/install.sh b/install.sh index a82a74db..657f4a04 100755 --- a/install.sh +++ b/install.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -euo pipefail # ============================================================================== diff --git a/scripts/abi-qualify.sh b/scripts/abi-qualify.sh index aa50e5cb..1d20f66e 100755 --- a/scripts/abi-qualify.sh +++ b/scripts/abi-qualify.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # abi-qualify.sh: qualify the omega and AIEN native boundary on this machine, in one command. # # Builds sovereign-core against the pinned omega, physics and aienos checkouts with diff --git a/scripts/agent-preflight.sh b/scripts/agent-preflight.sh index d6d1ed16..064805d6 100755 --- a/scripts/agent-preflight.sh +++ b/scripts/agent-preflight.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -eo pipefail echo "============================================================" diff --git a/scripts/allen_e2e_demo.sh b/scripts/allen_e2e_demo.sh index 6696da5e..c5954273 100755 --- a/scripts/allen_e2e_demo.sh +++ b/scripts/allen_e2e_demo.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # ALLEN end-to-end demo driver (docs/campaigns/allen-e2e/DEMO-v1.md and DEMO-v2.md, arch#162). # DEMO_VERSION=v1 (default), v2, v3 or v4-gb10 selects the predeclared spec; v2 differs only by its three named changes, # v3 is v2 unchanged; v4-gb10 is v2 with M-A = Qwen3-4B on the GB10 (sealed sc#277 candidate binary) and M-B = SmolLM2 on CPU diff --git a/scripts/apply-ceremony-public-record.sh b/scripts/apply-ceremony-public-record.sh index 77a7f355..48002b61 100755 --- a/scripts/apply-ceremony-public-record.sh +++ b/scripts/apply-ceremony-public-record.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Post-ceremony step (D3, sc#385, sc#118): turn the PUBLIC folder the operator carried out of the ceremony into the # release trust configuration. Touches exactly three files and reads only the two public ones: # docs/release/allowed_signers the one key line (with a short header) diff --git a/scripts/bench/headstart-aien.sh b/scripts/bench/headstart-aien.sh index eec7c634..d97c0a9f 100755 --- a/scripts/bench/headstart-aien.sh +++ b/scripts/bench/headstart-aien.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Headstart M0 (#532): reproducible stable-toolchain build baselines for the # AIEN monorepo. Measurement only: this script never edits Cargo.toml, # rust-toolchain.toml, CI, compiler flags or the caller's checkout. diff --git a/scripts/bench/headstart-m6-ab.sh b/scripts/bench/headstart-m6-ab.sh index 63af469d..c6aa379b 100755 --- a/scripts/bench/headstart-m6-ab.sh +++ b/scripts/bench/headstart-m6-ab.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Headstart M6 (#538): held A/B samples of provisional preparation, flag off # vs flag on, over the shapes of crates/aien-runtime/tests/headstart_ab.rs. # Measurement only: this script never edits the checkout, Cargo.toml, CI or diff --git a/scripts/bench/headstart-selftest.sh b/scripts/bench/headstart-selftest.sh index 2e09cbb6..a3e2e1a7 100755 --- a/scripts/bench/headstart-selftest.sh +++ b/scripts/bench/headstart-selftest.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Self-test for the Headstart M0 runner and summarizer (#532). Bash + jq only. # Runs the summarizer on synthetic data, then the full runner end to end on a # tiny throwaway Cargo workspace (never on the real repo), plus negative cases diff --git a/scripts/bench/headstart-summarize.sh b/scripts/bench/headstart-summarize.sh index 2bdef3ff..f56af8cc 100755 --- a/scripts/bench/headstart-summarize.sh +++ b/scripts/bench/headstart-summarize.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Headstart M0 (#532) summarizer. Pure bash + jq + sed, no Python. # # headstart-summarize.sh samples -> summary JSON on stdout diff --git a/scripts/check-no-python.sh b/scripts/check-no-python.sh index cb7f75ff..aa45f88a 100755 --- a/scripts/check-no-python.sh +++ b/scripts/check-no-python.sh @@ -1,4 +1,19 @@ #!/bin/sh +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # No-Python guard (Drake's rule, 2026-10-15: no Python anywhere in AIEN). # Fails when git tracks any Python source, notebook, Python packaging or # environment file, or any file whose first line is a python shebang. diff --git a/scripts/check-release-candidate.sh b/scripts/check-release-candidate.sh index 7fa102d9..331ba57e 100755 --- a/scripts/check-release-candidate.sh +++ b/scripts/check-release-candidate.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Fail closed unless this tree (or a built package) may be released as the candidate in release/candidate.toml. # scripts/check-release-candidate.sh tree check; prints "candidate=" on success # scripts/check-release-candidate.sh --model F also write the [model] table to file F diff --git a/scripts/check-release-trust-config.sh b/scripts/check-release-trust-config.sh index 8b7f2e86..341b3bb5 100755 --- a/scripts/check-release-trust-config.sh +++ b/scripts/check-release-trust-config.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Consistency check for the release trust configuration (D3, sc#385 and sc#118). Reads PUBLIC files only. # scripts/check-release-trust-config.sh [--root DIR] [--allow-rehearsal] # Two states are valid: diff --git a/scripts/e2e_distill_test.sh b/scripts/e2e_distill_test.sh index b7d75af1..e9ee5f45 100755 --- a/scripts/e2e_distill_test.sh +++ b/scripts/e2e_distill_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Sovereign Distillation Workshop E2E Test Suite Runner # Strictly adheres to sovereign voice: zero em dashes, zero en dashes. diff --git a/scripts/golden_path.sh b/scripts/golden_path.sh index 663945fe..437c11cb 100755 --- a/scripts/golden_path.sh +++ b/scripts/golden_path.sh @@ -1,3 +1,18 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + if [ "$SKIP_BUILD" -eq 0 ] || [ ! -x "$BIN" ]; then echo "== Building release binary ==" # Step 1 of the gate is "clean checkout, one command": scripts/pins.sh --gpu writes diff --git a/scripts/install-hooks.sh b/scripts/install-hooks.sh index eacf95d8..af99590e 100755 --- a/scripts/install-hooks.sh +++ b/scripts/install-hooks.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -euo pipefail ROOT_DIR="$(git rev-parse --show-toplevel)" diff --git a/scripts/key-ceremony.sh b/scripts/key-ceremony.sh index b1001e0d..abc97c53 100755 --- a/scripts/key-ceremony.sh +++ b/scripts/key-ceremony.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # AIEN public-release key ceremony and offline signing (Drake ruling 1, sc#385; operator checklist sc#118). # Plain-English guide: docs/release/KEY_CEREMONY.md. This script walks the operator through it on an OFFLINE machine. # diff --git a/scripts/own30b-chip-run.sh b/scripts/own30b-chip-run.sh index 9ef6ae32..faaea8a3 100755 --- a/scripts/own30b-chip-run.sh +++ b/scripts/own30b-chip-run.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OWN-30B cut 3: one sealed chip run of own30b_check under the GB10 lock protocol. # # scripts/own30b-chip-run.sh [own30b_check chip args...] diff --git a/scripts/own30b-pkv-bench.sh b/scripts/own30b-pkv-bench.sh index f0859f75..8e633652 100755 --- a/scripts/own30b-pkv-bench.sh +++ b/scripts/own30b-pkv-bench.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Persistent KV benchmark on the chip (sc#508, contract locked in #500). CHIP-ONLY: never run by # CI or cargo test. Same safety rules as own30b-pkv-chip-check.sh (see own30b-pkv-lib.sh): own # server on 127.0.0.1:18098 (PKV_CHECK_PORT), refuses while :18091 answers or the port is taken, diff --git a/scripts/own30b-pkv-chip-check.sh b/scripts/own30b-pkv-chip-check.sh index 5ed350d6..01e700f2 100755 --- a/scripts/own30b-pkv-chip-check.sh +++ b/scripts/own30b-pkv-chip-check.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Persistent KV acceptance check on the chip (sc#505/#507, locked by #499). CHIP-ONLY: never run # by CI or cargo test. It starts its OWN servers on 127.0.0.1:18098 (PKV_CHECK_PORT; never # touches :18091, the live server, or its PID/log files) and loads the 30B checkpoint each time diff --git a/scripts/own30b-pkv-lib.sh b/scripts/own30b-pkv-lib.sh index efbcc23c..4c751420 100644 --- a/scripts/own30b-pkv-lib.sh +++ b/scripts/own30b-pkv-lib.sh @@ -1,3 +1,18 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Shared helpers of the persistent KV chip scripts (sc#507 #508 #509). Sourced, never run. # CHIP-ONLY callers: own30b-pkv-chip-check.sh, own30b-pkv-bench.sh, own30b-pkv-ops-check.sh. # diff --git a/scripts/own30b-pkv-ops-check.sh b/scripts/own30b-pkv-ops-check.sh index 1a067bcf..9d32fee7 100755 --- a/scripts/own30b-pkv-ops-check.sh +++ b/scripts/own30b-pkv-ops-check.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Persistent KV operations check on the chip (sc#509, contract locked in #500). CHIP-ONLY: never # run by CI or cargo test. Same safety rules as own30b-pkv-chip-check.sh (see own30b-pkv-lib.sh): # own server on 127.0.0.1:18098 (PKV_CHECK_PORT), refuses while :18091 answers or the port is diff --git a/scripts/own30b-pkv-two-process.sh b/scripts/own30b-pkv-two-process.sh index 1741bc4a..7edd38c9 100755 --- a/scripts/own30b-pkv-two-process.sh +++ b/scripts/own30b-pkv-two-process.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Persistent KV two-process check on the chip (#514). CHIP-ONLY: never run by CI or cargo test. # Same safety rules as own30b-pkv-chip-check.sh (see own30b-pkv-lib.sh): refuses while the live # server on :18091 answers or a port is taken; stops only the PIDs it started. diff --git a/scripts/own30b-serve-restart.sh b/scripts/own30b-serve-restart.sh index 83411cde..f0fb9736 100755 --- a/scripts/own30b-serve-restart.sh +++ b/scripts/own30b-serve-restart.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # (Re)start the OWN-30B Omega server in the background (OWN-30B cut 8; default binary: the cut 10 build with the device router and bf16 lm_head GEMV, # on top of the fused one-launch attention and batched prefill). # scripts/own30b-serve-restart.sh [binary] diff --git a/scripts/own30b-serve-smoke.sh b/scripts/own30b-serve-smoke.sh index 1e6efcb7..36178153 100755 --- a/scripts/own30b-serve-smoke.sh +++ b/scripts/own30b-serve-smoke.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OWN-30B cut 8 serve smoke: talks to a running aien-serve-http on the loopback and records # each exchange with wall-clock timestamps (time-to-first-token and tok/s come from these). # diff --git a/scripts/package-release.sh b/scripts/package-release.sh index 72419ca4..4531ec7f 100755 --- a/scripts/package-release.sh +++ b/scripts/package-release.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Package the release binaries into a byte-reproducible tarball. # # scripts/package-release.sh diff --git a/scripts/pins.sh b/scripts/pins.sh index a9e2c429..59a7b0e8 100755 --- a/scripts/pins.sh +++ b/scripts/pins.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # pins.sh: materialize the three pinned checkouts a native (no CUDA) build needs, # exactly as CI does (ci.yml "Linked composition tests"), so a clean clone plus one # command yields the real omega libraries instead of the CPU stubs (sovereign-core #92). diff --git a/scripts/prefill-gate/fails-on-main.sh b/scripts/prefill-gate/fails-on-main.sh index cf585deb..2b4f72c7 100755 --- a/scripts/prefill-gate/fails-on-main.sh +++ b/scripts/prefill-gate/fails-on-main.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # PREFILL-GATE counterexample check (shell only). # # Copies the two new main-compatible test files onto a clean checkout of the diff --git a/scripts/prefill-gate/mutant.sh b/scripts/prefill-gate/mutant.sh index 4d06bb97..80258480 100755 --- a/scripts/prefill-gate/mutant.sh +++ b/scripts/prefill-gate/mutant.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # PREFILL-GATE mutation check (shell only). # # Runs the prefill-gate tests with one mutant cargo feature switched on. The diff --git a/scripts/preflight-branch-guard.sh b/scripts/preflight-branch-guard.sh index 9ecf61c4..4c3cfab6 100755 --- a/scripts/preflight-branch-guard.sh +++ b/scripts/preflight-branch-guard.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Branch policy check used by agent-preflight.sh. # # AIEN_PREFLIGHT_CONTEXT selects what is being validated: diff --git a/scripts/release-build.sh b/scripts/release-build.sh index c8ad5151..0e526393 100755 --- a/scripts/release-build.sh +++ b/scripts/release-build.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The one release build recipe (the CAND-3 [build] recipe, per package). Used by .github/workflows/release.yml # and the thing to run by hand to reproduce a candidate digest. See docs/release/BUILD_RECIPE.md. # scripts/release-build.sh [extra cargo args, e.g. --offline] diff --git a/scripts/release-publish-gate.sh b/scripts/release-publish-gate.sh index ca2f8ca2..f4208612 100755 --- a/scripts/release-publish-gate.sh +++ b/scripts/release-publish-gate.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Stage 3 of the offline-signing handoff (sc#385, docs/release/RELEASE_SIGNING.md): decide whether a draft release may # be published. Run by .github/workflows/release-publish.yml on the downloaded draft assets, and by hand. # scripts/release-publish-gate.sh diff --git a/scripts/repro-build.sh b/scripts/repro-build.sh index 8a02c0a2..64985398 100755 --- a/scripts/repro-build.sh +++ b/scripts/repro-build.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Release build with machine-local paths removed from the binaries (CAND-0 reproducibility gap G13). # # scripts/repro-build.sh [cargo build arguments] e.g. scripts/repro-build.sh -p aien-cli diff --git a/scripts/sampling-gate.sh b/scripts/sampling-gate.sh index 5a9a7631..984baa9c 100755 --- a/scripts/sampling-gate.sh +++ b/scripts/sampling-gate.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # OWN-8B stage S sampling gate: is seeded sampling observed and honoured by a running # aien-serve-http? Shared by the 30B (:18091) and the 8B (cut 2, cut 3); only the URL and the # model id differ. Needs a server that returns `usage.aien_sampling` (stage S or later). diff --git a/scripts/smoke_qwen3_8b.sh b/scripts/smoke_qwen3_8b.sh index 38d5a25c..c83e8a78 100755 --- a/scripts/smoke_qwen3_8b.sh +++ b/scripts/smoke_qwen3_8b.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Qwen3-8B correctness smoke (docs/campaigns/open-model-qwen3/SMOKE-8B-v1.md, sc#384). # smoke_qwen3_8b.sh verify sha256 of config.json and the five shards only # smoke_qwen3_8b.sh cpu verify, then the CPU reference leg; records the golden ids diff --git a/scripts/sync-standalone-repos.sh b/scripts/sync-standalone-repos.sh index caf04ec2..7a25dd58 100755 --- a/scripts/sync-standalone-repos.sh +++ b/scripts/sync-standalone-repos.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # # sync-standalone-repos.sh: Monorepo Crate Synchronization Pipeline # diff --git a/scripts/test-dry-run-workflow.sh b/scripts/test-dry-run-workflow.sh index c2402746..a40373c7 100755 --- a/scripts/test-dry-run-workflow.sh +++ b/scripts/test-dry-run-workflow.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Static guard: .github/workflows/release-dry-run.yml (pull_request or manual workflow_dispatch) must not be able to publish. # It may read the repository and run the offline release checks; nothing else. # scripts/test-dry-run-workflow.sh [workflow-file] diff --git a/scripts/test-install-release.sh b/scripts/test-install-release.sh index 84525d78..7fc86cbe 100755 --- a/scripts/test-install-release.sh +++ b/scripts/test-install-release.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Exercise install.sh release mode offline. A fixture release is signed with a # throwaway key and served over file://. Checks: # 1. the key pinned inside install.sh equals docs/release/allowed_signers diff --git a/scripts/test-install.sh b/scripts/test-install.sh index 0c58c0bd..1f190a5d 100755 --- a/scripts/test-install.sh +++ b/scripts/test-install.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Exercise piped installation (install.sh fed to bash on stdin) from an # arbitrary working directory without network access or real builds. # git and cargo are replaced by small stand-in scripts on PATH. diff --git a/scripts/test-linked-compose.sh b/scripts/test-linked-compose.sh index 264e9543..dcdf07eb 100755 --- a/scripts/test-linked-compose.sh +++ b/scripts/test-linked-compose.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Mandatory gate for the tests that need the REAL omega composition library. # # The normal `cargo test --workspace` CI step builds the stub (no omega checkout), where every diff --git a/scripts/test-native-identity.sh b/scripts/test-native-identity.sh index be8b24ea..8a7acc49 100755 --- a/scripts/test-native-identity.sh +++ b/scripts/test-native-identity.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Native identity checks in the build scripts of aien-omega-compose and aien-omega-gpu. # Runs without omega: every case below must be decided by build.rs before any make. # - a stub together with AIEN_REQUIRE_NATIVE_LIBS=1 is refused diff --git a/scripts/test-offline-build.sh b/scripts/test-offline-build.sh index 8ccfc37d..5ac23b47 100755 --- a/scripts/test-offline-build.sh +++ b/scripts/test-offline-build.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Offline build check: fetch locked dependencies into a temp CARGO_HOME (needs network, once), # then build the release crates with --offline --locked and, where possible, with the network # namespace denied. This is an offline build from a warm cargo cache, not a vendored build. diff --git a/scripts/test-offline-signing.sh b/scripts/test-offline-signing.sh index 8ab0df2b..7597fda4 100755 --- a/scripts/test-offline-signing.sh +++ b/scripts/test-offline-signing.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The offline-signing handoff end to end, offline, with throwaway keys only (Drake ruling 1, sc#385): # 1. key ceremony rehearsal (scripts/key-ceremony.sh --rehearsal): key, fingerprint, public-key verification test, # two backups that each sign; a corrupted backup is caught by verify-backup diff --git a/scripts/test-pins.sh b/scripts/test-pins.sh index 2960e93b..f0e57d89 100755 --- a/scripts/test-pins.sh +++ b/scripts/test-pins.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # test-pins.sh: offline self-test of scripts/pins.sh with throwaway git repositories # (no network). Proves: correct pins pass (--check and a full run against a local mirror), # a checkout off its pin is refused (exit 3), a malformed lock is refused (exit 3), and diff --git a/scripts/test-preflight-branch-guard.sh b/scripts/test-preflight-branch-guard.sh index 91ff0a52..1487eb23 100755 --- a/scripts/test-preflight-branch-guard.sh +++ b/scripts/test-preflight-branch-guard.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Verify the branch guard in both contexts using throwaway git repositories. set -euo pipefail GUARD="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/preflight-branch-guard.sh" diff --git a/scripts/test-public-key-integration.sh b/scripts/test-public-key-integration.sh index f4371a38..40e81729 100755 --- a/scripts/test-public-key-integration.sh +++ b/scripts/test-public-key-integration.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Public-key integration test (D3, sc#385 and sc#118). Proves, from ONLY the public folder a ceremony produces # (allowed_signers line + ceremony-record.txt), that the post-ceremony trust-config pull request is correct: # (a) a release signed by the matching key installs with the real install.sh as signature_check: release, and the diff --git a/scripts/test-release-checks.sh b/scripts/test-release-checks.sh index c072245e..cb2839d0 100755 --- a/scripts/test-release-checks.sh +++ b/scripts/test-release-checks.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Negative and positive tests for the release gate (check-release-candidate.sh, package-release.sh, # verify-release-assets.sh). Runs offline in a throwaway fixture tree; no cargo, no network. # scripts/test-release-checks.sh diff --git a/scripts/test-release-gate-wiring.sh b/scripts/test-release-gate-wiring.sh index 2a54ed54..bece87e6 100755 --- a/scripts/test-release-gate-wiring.sh +++ b/scripts/test-release-gate-wiring.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Static guard for where the release gate blocks (merge-owner decision on sovereign-core#268, 2026-10-07): # release.yml (tag push): every step that runs scripts/check-release-candidate.sh is fail-closed. The only # continue-on-error allowed anywhere in the file is the manual dry run: diff --git a/scripts/test-release-real-tree.sh b/scripts/test-release-real-tree.sh index 33b9ddcd..b1b78a92 100755 --- a/scripts/test-release-real-tree.sh +++ b/scripts/test-release-real-tree.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Release gate against the REAL candidate manifest (release/candidate.toml, omega.lock, Cargo.lock), CPU only, offline. # scripts/test-release-checks.sh uses an invented candidate; this one proves the gate refuses a package or tree that # is not CAND-4, using the committed manifest. No signing key is read or generated; the binaries are throwaway diff --git a/scripts/test-release-signing-workflow.sh b/scripts/test-release-signing-workflow.sh index 4c888903..36843f59 100755 --- a/scripts/test-release-signing-workflow.sh +++ b/scripts/test-release-signing-workflow.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Static guard for the offline-signing handoff (Drake ruling 1, sc#385): no private release key in CI, ever. # scripts/test-release-signing-workflow.sh [release.yml] [release-publish.yml] # release.yml: no AIEN_RELEASE_SIGNING_KEY and no secret other than GITHUB_TOKEN; `ssh-keygen -Y sign` only inside the diff --git a/scripts/verify-release-assets.sh b/scripts/verify-release-assets.sh index cb0061ff..fe935cd9 100755 --- a/scripts/verify-release-assets.sh +++ b/scripts/verify-release-assets.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Verify a release asset directory: SHA256SUMS.txt exists, carries a valid signature from the allowed # signer, lists every sovereign-* archive, and every listed file matches its digest. # scripts/verify-release-assets.sh diff --git a/scripts/whole_system_e2e.sh b/scripts/whole_system_e2e.sh index 15abe763..08ea8425 100755 --- a/scripts/whole_system_e2e.sh +++ b/scripts/whole_system_e2e.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # WHOLE-SYSTEM-E2E harness v1.3 (aien-architecture#190, lane L1; GB10 mode for milestone R6, sovereign-core#402). # Rows: docs/campaigns/whole-system-e2e/ACCEPTANCE-v1.md, -v1.1.md, -v1.2.md, -v1.3-gb10.md, -v1.3-ctrl-e5.md, -v1.3.1-e3m.md (each committed before the script # change that implements it; never edited by the script). diff --git a/scripts/whole_system_e2e_faults.sh b/scripts/whole_system_e2e_faults.sh index 61652dd4..58cf17a1 100755 --- a/scripts/whole_system_e2e_faults.sh +++ b/scripts/whole_system_e2e_faults.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # WHOLE-SYSTEM-E2E held-fault rows (aien-sovereign-core#379, lane L2 of aien-architecture#190). # Rows and predictions: docs/campaigns/whole-system-e2e/FAULTS-v1.md (committed before this script; never edited by it). # diff --git a/scripts/zero-cuda-gate.sh b/scripts/zero-cuda-gate.sh index 10775a51..f31b377e 100755 --- a/scripts/zero-cuda-gate.sh +++ b/scripts/zero-cuda-gate.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Zero-CUDA gate (FB-1 cut 6): fails when a binary needs an NVIDIA CUDA library or # imports a CUDA runtime/driver/cuBLAS/NVRTC symbol. AIEN reaches the GB10 only through # the Omega engine (libomega_gpu.a, linked statically, no CUDA). diff --git a/tests/gates/run.sh b/tests/gates/run.sh index 40d97c25..0d592567 100755 --- a/tests/gates/run.sh +++ b/tests/gates/run.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # tests/gates/run.sh: the one entry point for the local verification gates of aien-sovereign-core. # Every step runs the SAME command as the hosted job it mirrors (.github/workflows/ci.yml, # hardening.yml, crumb-visible-conformance.yml, verify-closure.yml, release-dry-run.yml, diff --git a/tools/aien-local-ci/cron-tick.sh b/tools/aien-local-ci/cron-tick.sh index bb70fec2..9681d1c1 100755 --- a/tools/aien-local-ci/cron-tick.sh +++ b/tools/aien-local-ci/cron-tick.sh @@ -1,4 +1,19 @@ #!/bin/bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # AIEN Spark pipeline tick (cron, every 5 min; no systemd by rule). Installed copy: ~/.local/lib/aien-local-ci/. # */5 * * * * $HOME/.local/lib/aien-local-ci/cron-tick.sh >> $HOME/.local/state/aien-local-ci/cron-tick.log 2>&1 # 1) keeps four worker lanes alive (--github): main (aienos, synapse, interplane), small (the small repos), big (omega, diff --git a/tools/aien-local-ci/crumb-shim.sh b/tools/aien-local-ci/crumb-shim.sh index 25e37b04..ef9f7517 100755 --- a/tools/aien-local-ci/crumb-shim.sh +++ b/tools/aien-local-ci/crumb-shim.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # crumb (operator shim, installed as ~/.local/bin/crumb on the Spark). # # Runs the crumb tool that the repository's own CRUMB-VERIFY gate uses, so the person or agent that diff --git a/tools/aien-local-ci/forgejo-webhook.sh b/tools/aien-local-ci/forgejo-webhook.sh index 86bc4ab2..45173ef8 100755 --- a/tools/aien-local-ci/forgejo-webhook.sh +++ b/tools/aien-local-ci/forgejo-webhook.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # forgejo-webhook.sh: offline push trigger for the trusted worker (A3). # # Trigger file contract (consumed by `aien-test worker`, lane ENGINE): diff --git a/tools/aien-local-ci/gc.sh b/tools/aien-local-ci/gc.sh index 110f96ac..ec1bc586 100755 --- a/tools/aien-local-ci/gc.sh +++ b/tools/aien-local-ci/gc.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # gc.sh: storage quota + cleanup for the aien-run sandbox (lane INFRA). DRY RUN by default; pass --apply to act. # # gc.sh [--apply] [--days N] [--target-quota-gb G] diff --git a/tools/aien-local-ci/health.sh b/tools/aien-local-ci/health.sh index 58078eda..75e796f6 100755 --- a/tools/aien-local-ci/health.sh +++ b/tools/aien-local-ci/health.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # health.sh: one-screen health of the sovereign local pipeline host pieces (lane INFRA). Read-only. set -uo pipefail RUN_HOME=/var/lib/aien-run diff --git a/tools/aien-local-ci/install.sh b/tools/aien-local-ci/install.sh index 18e2561e..2ce8b5b5 100755 --- a/tools/aien-local-ci/install.sh +++ b/tools/aien-local-ci/install.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # install.sh: idempotent host setup for the sovereign local pipeline sandbox (lane INFRA, contracts C3/C8/A2). # Run as drakestapleton; uses sudo -n inside. Safe to re-run: every step checks before it acts. # diff --git a/tools/aien-local-ci/pipeline.sh b/tools/aien-local-ci/pipeline.sh index ba1bd5a4..cfac1332 100755 --- a/tools/aien-local-ci/pipeline.sh +++ b/tools/aien-local-ci/pipeline.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # pipeline.sh: Spark side of the local verification pipeline, ADR 0033 phase 3 (lane PIPELINE). # # pipeline.sh publish|rerun|merge|round [--repos a,b] (round = publish, then rerun, then merge) diff --git a/tools/aien-local-ci/tests/crumb_doctor_test.sh b/tools/aien-local-ci/tests/crumb_doctor_test.sh index 5d0e1e7b..78bcf9e5 100755 --- a/tools/aien-local-ci/tests/crumb_doctor_test.sh +++ b/tools/aien-local-ci/tests/crumb_doctor_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # test-crumb-doctor.sh : the doctor goes RED on a stale trusted clone (the 2026-10-11..18 synapse # CRUMB-VERIFY "../aien-architecture is missing" cause), heals it, and raises/clears its aien-watch alert. set -u diff --git a/tools/aien-local-ci/tests/crumb_real_test.sh b/tools/aien-local-ci/tests/crumb_real_test.sh index c918a9fb..b1bef396 100755 --- a/tools/aien-local-ci/tests/crumb_real_test.sh +++ b/tools/aien-local-ci/tests/crumb_real_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # test-crumb-real.sh : red/green on real Spark trees and on the real failing heads. # GREEN needs the shim to agree with each repo's own gate where the old fixed tool did not. set -u diff --git a/tools/aien-local-ci/tests/crumb_shim_test.sh b/tools/aien-local-ci/tests/crumb_shim_test.sh index 18e3e566..d1614207 100755 --- a/tools/aien-local-ci/tests/crumb_shim_test.sh +++ b/tools/aien-local-ci/tests/crumb_shim_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # test-crumb-shim.sh : unit tests for the operator crumb shim, on throwaway fixtures only. # Each case asserts which tool ran (the fake tools print their name), so a wrong pick is RED. set -u diff --git a/tools/aien-local-ci/tests/per_head_target_test.sh b/tools/aien-local-ci/tests/per_head_target_test.sh index 8c7cc0ff..b925b80e 100755 --- a/tools/aien-local-ci/tests/per_head_target_test.sh +++ b/tools/aien-local-ci/tests/per_head_target_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # tests/per_head_target_test.sh: why every head gets its own CARGO_TARGET_DIR (sc #605 flakes, #452 signature). # # Cargo calls a workspace crate fresh when its outputs are newer than its sources. It compares file times and a diff --git a/tools/aien-local-ci/tests/pipeline_test.sh b/tools/aien-local-ci/tests/pipeline_test.sh index 35bb39dc..7d95a943 100755 --- a/tools/aien-local-ci/tests/pipeline_test.sh +++ b/tools/aien-local-ci/tests/pipeline_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # pipeline_test.sh: offline proofs for tools/aien-local-ci/pipeline.sh (no network, no real gh, no real key). # Fakes: gh (answers from JSON files, applies the real --jq filter with jq), aien-test (exit code chosen by the # test bundle's "fake" member, REJECTED for a wrong key, repo or commit). Throwaway git repositories stand in for diff --git a/tools/aien-local-ci/tests/run.sh b/tools/aien-local-ci/tests/run.sh index ff99eeff..6363fbbc 100755 --- a/tools/aien-local-ci/tests/run.sh +++ b/tools/aien-local-ci/tests/run.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # tests/run.sh: proves the C8 exec contract on this host. Run as drakestapleton (uses sudo -n). Exit 1 on any FAIL. set -uo pipefail X=${AIEN_EXEC:-/usr/local/sbin/aien-run-exec} # AIEN_EXEC: test a candidate helper before install.sh installs it diff --git a/tools/aien-local-ci/wt.sh b/tools/aien-local-ci/wt.sh index 02322e24..c57361f3 100755 --- a/tools/aien-local-ci/wt.sh +++ b/tools/aien-local-ci/wt.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # wt.sh: trusted-side worktree management for aien-run checks (A2: worktrees under /var/lib/aien-run/wt, # the clone unwritable by aien-run, the worktree's .git link unwritable by aien-run). # diff --git a/tools/aien-test/mutations/run_mutants.sh b/tools/aien-test/mutations/run_mutants.sh index a72f0451..90351105 100755 --- a/tools/aien-test/mutations/run_mutants.sh +++ b/tools/aien-test/mutations/run_mutants.sh @@ -1,4 +1,19 @@ #!/bin/sh +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Prove the aien-test unit tests catch realistic faults. # # usage: tools/aien-test/mutations/run_mutants.sh diff --git a/tools/aien-test/src/bundle.rs b/tools/aien-test/src/bundle.rs index 4cb468c8..5a802336 100644 --- a/tools/aien-test/src/bundle.rs +++ b/tools/aien-test/src/bundle.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! VerificationBundleV1 (ADR 0033 Decision 6): the signed, per-commit result //! of AIEN Verification, and the independent verifier GitHub runs. //! diff --git a/tools/aien-test/src/cache.rs b/tools/aien-test/src/cache.rs index 89f6a9b7..6a2e00cb 100644 --- a/tools/aien-test/src/cache.rs +++ b/tools/aien-test/src/cache.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The digest cache (ADR 0028 Decision 7, Slice C). //! //! A gate's result is reused, not rerun, only when an earlier fresh receipt diff --git a/tools/aien-test/src/cli.rs b/tools/aien-test/src/cli.rs index e3e7a57e..40109550 100644 --- a/tools/aien-test/src/cli.rs +++ b/tools/aien-test/src/cli.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Argument parsing for the `aien-test` commands (ADR 0028 Decision 1 and 8, //! ADR 0033 Decisions 10 and 12). Hand-written; the surface is small. //! diff --git a/tools/aien-test/src/evidence.rs b/tools/aien-test/src/evidence.rs index 40b222b7..2a71ed58 100644 --- a/tools/aien-test/src/evidence.rs +++ b/tools/aien-test/src/evidence.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! EvidenceReceiptV1 (ADR 0028 Decision 4): canonical JSON, sha256 digest, //! content-addressed stdout/stderr blobs, immutable write (never overwrite), //! and read-back of the receipts already in a store. diff --git a/tools/aien-test/src/graph.rs b/tools/aien-test/src/graph.rs index f3647900..a1a7d810 100644 --- a/tools/aien-test/src/graph.rs +++ b/tools/aien-test/src/graph.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The gate dependency graph (ADR 0028 Decisions 3 and 6). //! //! `load` finds every `*.gate` file under a repository root (the D1 diff --git a/tools/aien-test/src/identity.rs b/tools/aien-test/src/identity.rs index fcfb25c8..cc5de2af 100644 --- a/tools/aien-test/src/identity.rs +++ b/tools/aien-test/src/identity.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Check identity (ADR 0033 Decision 3). //! //! `check_id` is sha256 over the canonical JSON object diff --git a/tools/aien-test/src/lib.rs b/tools/aien-test/src/lib.rs index a2b449b0..9fa41de0 100644 --- a/tools/aien-test/src/lib.rs +++ b/tools/aien-test/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! AIEN-TEST (ADR 0028), Slices A to C: gate manifests, verdict derivation, //! immutable evidence receipts, a runner for one gate or a whole graph of //! gates with resource pools, GPU locks, dependency handling and `why`, and diff --git a/tools/aien-test/src/main.rs b/tools/aien-test/src/main.rs index f658e526..1cd0fa7d 100644 --- a/tools/aien-test/src/main.rs +++ b/tools/aien-test/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! aien-test: run gates and report verdicts (ADR 0028). //! //! - `run GATE`: run one gate. Exit 0 PASS, 1 FAIL or BAD_MANIFEST, 2 NOT_RUN diff --git a/tools/aien-test/src/manifest.rs b/tools/aien-test/src/manifest.rs index a7deafc7..57402914 100644 --- a/tools/aien-test/src/manifest.rs +++ b/tools/aien-test/src/manifest.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Gate manifest v1 parser (ADR 0028 Decision 3). Strict: unknown keys, //! duplicate keys, tabs, CRLF, BOM, deep indentation and trailing garbage are //! all errors. diff --git a/tools/aien-test/src/plan.rs b/tools/aien-test/src/plan.rs index e24aa846..7b3323b1 100644 --- a/tools/aien-test/src/plan.rs +++ b/tools/aien-test/src/plan.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The planner (ADR 0033 Decision 12; local pipeline amendments A1 and A4). //! //! `aien-test plan [--base REF]` reads two commits of the repository through diff --git a/tools/aien-test/src/process.rs b/tools/aien-test/src/process.rs index c5840ddd..950e255d 100644 --- a/tools/aien-test/src/process.rs +++ b/tools/aien-test/src/process.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Spawn a command without a shell, capture stdout and stderr, enforce a //! wall-clock timeout by killing the whole process group (SIGTERM, then //! SIGKILL after a grace period). No async: one waiter thread and two reader diff --git a/tools/aien-test/src/resources.rs b/tools/aien-test/src/resources.rs index b458997b..e9fc4e73 100644 --- a/tools/aien-test/src/resources.rs +++ b/tools/aien-test/src/resources.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Resource pools and the GPU locks (ADR 0028 Decision 6). //! //! Three counting semaphores inside one runner process: `host` (default size diff --git a/tools/aien-test/src/runner.rs b/tools/aien-test/src/runner.rs index 8ed3bb72..796de254 100644 --- a/tools/aien-test/src/runner.rs +++ b/tools/aien-test/src/runner.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The runner (ADR 0028, Slices A and B): one gate, or a whole graph of gates //! run by worker threads that honour the resource pools and the dependencies. //! diff --git a/tools/aien-test/src/sandbox.rs b/tools/aien-test/src/sandbox.rs index ae64390d..7f484407 100644 --- a/tools/aien-test/src/sandbox.rs +++ b/tools/aien-test/src/sandbox.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The sandbox seam (contract C8 of the local verification pipeline). //! //! `--sandbox none` (the default) runs a gate's program directly, exactly as diff --git a/tools/aien-test/src/status.rs b/tools/aien-test/src/status.rs index 41f761b9..1f572049 100644 --- a/tools/aien-test/src/status.rs +++ b/tools/aien-test/src/status.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! `aien-test status`: what the local pipeline is doing right now (ADR 0033 //! Decision 10). Read-only: it never takes a lock or runs a gate. diff --git a/tools/aien-test/src/testutil.rs b/tools/aien-test/src/testutil.rs index 9911e3a3..2ad27aa3 100644 --- a/tools/aien-test/src/testutil.rs +++ b/tools/aien-test/src/testutil.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Test helpers: unique temp dirs and throwaway git repositories. use std::fs; diff --git a/tools/aien-test/src/verdict.rs b/tools/aien-test/src/verdict.rs index 66faead2..f408db3e 100644 --- a/tools/aien-test/src/verdict.rs +++ b/tools/aien-test/src/verdict.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Verdict set and derivation (ADR 0028 Decision 5). A test program only //! reports observations; the verdict is derived here from the manifest's //! expectations and facts the runner measured. Only the last row can yield diff --git a/tools/aien-test/src/verify.rs b/tools/aien-test/src/verify.rs index 90283722..b6805977 100644 --- a/tools/aien-test/src/verify.rs +++ b/tools/aien-test/src/verify.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! `aien-test verify COMMIT`: the independent check of a local verification //! (ADR 0033 Decision 10, contracts C4 to C6, amendments A1 and A7). //! diff --git a/tools/aien-test/src/why.rs b/tools/aien-test/src/why.rs index 1434891b..59d27e30 100644 --- a/tools/aien-test/src/why.rs +++ b/tools/aien-test/src/why.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! `aien-test why GATE`: the evidence chain behind one gate, read from the //! receipts already in the evidence store (ADR 0028 Decision 8). //! diff --git a/tools/aien-test/src/worker.rs b/tools/aien-test/src/worker.rs index b03faa7c..873b7866 100644 --- a/tools/aien-test/src/worker.rs +++ b/tools/aien-test/src/worker.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The trusted worker (ADR 0033 Decision 9; local pipeline contracts C1 to //! C7) and the state directory every local-CI command shares. //! diff --git a/tools/aien-test/tests/committed_gates.rs b/tools/aien-test/tests/committed_gates.rs index 8046eb17..7fc556ac 100644 --- a/tools/aien-test/tests/committed_gates.rs +++ b/tools/aien-test/tests/committed_gates.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Every `*.gate` manifest in the repository must parse under the strict //! Slice A grammar (ADR 0028 Decision 3), and gate identifiers must be unique //! (Decision 2, rule D2). diff --git a/tools/aien-test/tests/local_ci.rs b/tools/aien-test/tests/local_ci.rs index 1a00b840..d4ca7d87 100644 --- a/tools/aien-test/tests/local_ci.rs +++ b/tools/aien-test/tests/local_ci.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The local pipeline end to end, and the negative cases the mission lists //! (22 to 27): an altered receipt, a bad signature, a bundle from another //! commit, a missing required check, a hardware-scoped cached result under diff --git a/tools/aien-verify/Cargo.toml b/tools/aien-verify/Cargo.toml index abc0363b..6769cc6d 100644 --- a/tools/aien-verify/Cargo.toml +++ b/tools/aien-verify/Cargo.toml @@ -2,7 +2,7 @@ name = "aien-verify" version = "0.1.0" edition = "2021" -license = "AGPL-3.0-or-later" +license = "Apache-2.0" description = "Independent verifier for WHOLE-SYSTEM-E2E runs (std only, builds with rustc directly)" # Not a member of the repository workspace: the verifier must build alone from a clean checkout. diff --git a/tools/aien-verify/build.sh b/tools/aien-verify/build.sh index 976590b2..7ad410a3 100755 --- a/tools/aien-verify/build.sh +++ b/tools/aien-verify/build.sh @@ -1,4 +1,19 @@ #!/bin/sh +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Build the verifier with rustc directly (no cargo, no crates). Usage: build.sh [output-path] set -eu here=$(cd "$(dirname "$0")" && pwd) diff --git a/tools/aien-verify/src/main.rs b/tools/aien-verify/src/main.rs index d80f25a1..7e87252c 100644 --- a/tools/aien-verify/src/main.rs +++ b/tools/aien-verify/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! aien-verify: the independent verifier of WHOLE-SYSTEM-E2E v1 (lane L4). //! Reads a run folder (chain receipts, SHA256SUMS, output files) and writes the verdict. //! Standard library only; own sha256; shares no code with the executor or the harness. diff --git a/tools/aien-verify/tests/run.sh b/tools/aien-verify/tests/run.sh index a0e42d71..14ee95e4 100755 --- a/tools/aien-verify/tests/run.sh +++ b/tools/aien-verify/tests/run.sh @@ -1,4 +1,19 @@ #!/bin/sh +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # aien-verify tests: sha256 vectors, both committed fixtures, four mutation tests on copies. # Usage: tests/run.sh (set TMPDIR to a scratch folder; fixtures are never written to) set -u From 358b7c2e23adb910f23fe4a1ed58981a9c401f72 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Fri, 23 Oct 2026 23:15:39 -0500 Subject: [PATCH 2/3] crumb: recompile after the Apache-2.0 header change Signed-off-by: Drake Stapleton --- .crumb | 58 ++++------------------------ crates/aien-allen-memory/.crumb | 8 ++-- crates/aien-allen-profile/.crumb | 8 ++-- crates/aien-allen/.crumb | 8 ++-- crates/aien-cli/.crumb | 14 +++---- crates/aien-cli/src/.crumb | 8 ++-- crates/aien-scheduler/src/bin/.crumb | 8 ++-- crates/spark-cockpit-rs/.crumb | 8 ++-- scripts/.crumb | 8 ++-- tools/aien-local-ci/.crumb | 8 ++-- 10 files changed, 47 insertions(+), 89 deletions(-) diff --git a/.crumb b/.crumb index 42a6d2bd..4e1d55d0 100644 --- a/.crumb +++ b/.crumb @@ -64,44 +64,8 @@ "generated": { "children": [ { - "digest": "4e7f370019e67f6c71565d1544530851eb1b3b1bed61c2712f4ac7d9614a89bf", - "last_commit": "6bbe2ec2", - "name": "crates/aien-allen", - "purpose": "ALLEN identity gate: resolve-only subject check, host pin record, deployment record (ADR 0035). " - }, - { - "digest": "40a231c50dba92af7de2527ab33879c5d1eaaa6e7ea5d6a5ebaa9d60c7542075", - "last_commit": "b9b52f9c", - "name": "crates/aien-allen-memory", - "purpose": "ALLEN scoped memory store: scopes enforced at recall, inspect/correct/export, key-destroying for" - }, - { - "digest": "44dc482b8c9db8919a68ec69b019cd77967232a6ec8b1910c0dfe3cd4d71f141", - "last_commit": "b9b52f9c", - "name": "crates/aien-allen-profile", - "purpose": "ALLEN persona profile v1: versioned, user-editable profile bound to the engaged ALLEN identity; " - }, - { - "digest": "1a65d8ae9be7c2e6ccc39d7ed20762dfde808132a3216c8b82d0ce0232233343", - "last_commit": "5ae9d6a3", - "name": "crates/aien-cli", - "purpose": "" - }, - { - "digest": "25fd9f8afbea19702750f8ddba2ef4aeafc5bc4515aa695340a5af6931989c03", - "last_commit": "8cca8020", - "name": "crates/aien-scheduler/src/bin", - "purpose": "" - }, - { - "digest": "dd11ae9a698f7fcad7d1df386926426ea051d4131ee738da2ac81eb6a57b9473", - "last_commit": "afbbd804", - "name": "crates/spark-cockpit-rs", - "purpose": "" - }, - { - "digest": "33c59e438bd2f54515b0b4df7c6b28dd9c3b6f450b4e0a0b09bb8d748e18111f", - "last_commit": "a1e91e0a", + "digest": "20f3120e6d2067007c8e67dfd13a821a83f5a382e7e11a0eec22f2d9b6380971", + "last_commit": "20877670", "name": "scripts", "purpose": "" }, @@ -110,23 +74,17 @@ "last_commit": "fa73e778", "name": "skills", "purpose": "" - }, - { - "digest": "555360db659f2674754427542608c884eb39078f1d3f27a42e9eb7d4c19ba9d0", - "last_commit": "6c2c55fb", - "name": "tools/aien-local-ci", - "purpose": "Local CI sandbox exec contract (C8), aien-run user/caches install, Forgejo trigger hook, health " } ], - "children_root": "sha256:b2373c41c016d3f97eadaa11c4dc9fe5a7642b0f5ff7fd62f501775fbaa29afa", - "compiled_at": "2026-10-24T03:38:46Z", + "children_root": "sha256:7d846c24f37054ae44839665fe108c61627a4e9a35e7f1616315f094669bddd1", + "compiled_at": "2026-10-24T04:15:31Z", "compiler": "crumb-compile/1", - "digest": "sha256:e0b6873eda2be651efd0be33af468a1151b80b0629e914447771e14bc7e3e7f8", + "digest": "sha256:338438a8c4a1db0a66556befeb9083942d8f2fc25ce0c35def9da120bc03996e", "evidence_files": 1578, - "evidence_root": "sha256:135e27a1a0704c4a8371cd2c1eb555f2b5beec61c212949b029a5457418a7160", + "evidence_root": "sha256:301c3ce7bca14655fc023095434f2d2942ebdfa9b30d5757d88343925d633a4d", "files": 5898, - "generated_at_commit": "83c495c6616f2df89256ac961a8c4afa54b8f1e9", - "source_tree": "sha256:e2ad242cc6586c1c639116148850b65828dabaad4c3182978fbee2eabb87ab06" + "generated_at_commit": "208776701cc8996b0d6badce6ae5e2bd26aace74", + "source_tree": "sha256:303a5f99ad9ca6d260b8ad3d74a0d9e59dac0a49757e52c6185e4219fa6814a7" } }, "history": [], diff --git a/crates/aien-allen-memory/.crumb b/crates/aien-allen-memory/.crumb index a0a71a29..37d97550 100644 --- a/crates/aien-allen-memory/.crumb +++ b/crates/aien-allen-memory/.crumb @@ -3,14 +3,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-14T01:16:47Z", + "compiled_at": "2026-10-24T04:15:31Z", "compiler": "crumb-compile/1", - "digest": "sha256:40a231c50dba92af7de2527ab33879c5d1eaaa6e7ea5d6a5ebaa9d60c7542075", + "digest": "sha256:a6f60499665540ddd49ad3122d016232b15d9cc878cb68febb725cd711dfbb6d", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 7, - "generated_at_commit": "a055a6e313d18ffba5e11afb64416bb65d78c529", - "source_tree": "sha256:881985547b2d1cb3f6678075a3a47c0d2360f87881297a16e35c73245bfa9718" + "generated_at_commit": "208776701cc8996b0d6badce6ae5e2bd26aace74", + "source_tree": "sha256:2d1455a02a8cc3de8d88c3b7762541b80af6c6891e7ab112b88135c343c07812" } }, "name": "aien-allen-memory", diff --git a/crates/aien-allen-profile/.crumb b/crates/aien-allen-profile/.crumb index 3160744c..12eb60cc 100644 --- a/crates/aien-allen-profile/.crumb +++ b/crates/aien-allen-profile/.crumb @@ -3,14 +3,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-14T01:16:47Z", + "compiled_at": "2026-10-24T04:15:31Z", "compiler": "crumb-compile/1", - "digest": "sha256:44dc482b8c9db8919a68ec69b019cd77967232a6ec8b1910c0dfe3cd4d71f141", + "digest": "sha256:3b65ec8698bac001b1d2aef39c1fce13a3475280186147af40a319212ed76d42", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 8, - "generated_at_commit": "a055a6e313d18ffba5e11afb64416bb65d78c529", - "source_tree": "sha256:43fcec1ec429b6b0dbb9c462d1dd02bd1efc8294dc1a27b7deeba7adbf8ed4be" + "generated_at_commit": "208776701cc8996b0d6badce6ae5e2bd26aace74", + "source_tree": "sha256:93c87d80d1fe6bf1413d61b470f1aab2bb66ca772487b7772e55e27c14fb8679" } }, "name": "aien-allen-profile", diff --git a/crates/aien-allen/.crumb b/crates/aien-allen/.crumb index 63f694f6..dc4ae0eb 100644 --- a/crates/aien-allen/.crumb +++ b/crates/aien-allen/.crumb @@ -3,14 +3,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-08T05:44:13Z", + "compiled_at": "2026-10-24T04:15:31Z", "compiler": "crumb-compile/1", - "digest": "sha256:4e7f370019e67f6c71565d1544530851eb1b3b1bed61c2712f4ac7d9614a89bf", + "digest": "sha256:e5a81587d398cafcc737337c51428c09697768967eea61386a6ab34f7f871903", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 13, - "generated_at_commit": "add252267902c857028876bd05257355076af2d0", - "source_tree": "sha256:8f5f8762aebda04421057a2402c4f9afd76358ecfab8171fb69b693fa4800e45" + "generated_at_commit": "208776701cc8996b0d6badce6ae5e2bd26aace74", + "source_tree": "sha256:c766ba60f785b802017d5789398616f28bf3f559d9c1dbf085aef0703ca071a0" } }, "name": "aien-allen", diff --git a/crates/aien-cli/.crumb b/crates/aien-cli/.crumb index 5d1a43c4..4353ca02 100644 --- a/crates/aien-cli/.crumb +++ b/crates/aien-cli/.crumb @@ -34,21 +34,21 @@ "generated": { "children": [ { - "digest": "98e8885f383e4085b8ff02f67ef84ee27cd7e5e83b8e270ed9e078253b9d9d50", - "last_commit": "60f809d8", + "digest": "5af2e7e37ec8f4817f760d1139bc270de421758678bf446377de4db4d5ed5b0e", + "last_commit": "20877670", "name": "src", "purpose": "" } ], - "children_root": "sha256:ed89661203515bc6234b51b3b352539ada5a55233af85b5adef718eb095a98c4", - "compiled_at": "2026-10-20T06:40:40Z", + "children_root": "sha256:28728178a133a47d8297267ddad4f826aab9445dc86596a914f6a5d54195e2e9", + "compiled_at": "2026-10-24T04:15:31Z", "compiler": "crumb-compile/1", - "digest": "sha256:1a65d8ae9be7c2e6ccc39d7ed20762dfde808132a3216c8b82d0ce0232233343", + "digest": "sha256:73b7b51a60981ac052f28b05a50071fb6846e6c3f7331d28786d220733f204c7", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 43, - "generated_at_commit": "92f0f893975771596437fa3451684607dcb79398", - "source_tree": "sha256:3c4b89b6d8388ec8935cea93a98f40b8bce45b599071f7c8972c9d977f5be120" + "generated_at_commit": "208776701cc8996b0d6badce6ae5e2bd26aace74", + "source_tree": "sha256:3cc338e994223825dccf4f29384388e53c7f86795ae0d7dcd42bc5976cdb1213" } }, "history": [ diff --git a/crates/aien-cli/src/.crumb b/crates/aien-cli/src/.crumb index c9786cb9..dbbf7dc2 100644 --- a/crates/aien-cli/src/.crumb +++ b/crates/aien-cli/src/.crumb @@ -64,14 +64,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-20T06:40:40Z", + "compiled_at": "2026-10-24T04:15:31Z", "compiler": "crumb-compile/1", - "digest": "sha256:98e8885f383e4085b8ff02f67ef84ee27cd7e5e83b8e270ed9e078253b9d9d50", + "digest": "sha256:5af2e7e37ec8f4817f760d1139bc270de421758678bf446377de4db4d5ed5b0e", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 31, - "generated_at_commit": "92f0f893975771596437fa3451684607dcb79398", - "source_tree": "sha256:894f01f7d445ca4af8c162c68577c83f056b7a0d34c1d1f253409afcd6953996" + "generated_at_commit": "208776701cc8996b0d6badce6ae5e2bd26aace74", + "source_tree": "sha256:73c15b877cba0cccf074d0cd6c9d193284b03f7fb0026ffc3196f665ddb9861d" } }, "history": [ diff --git a/crates/aien-scheduler/src/bin/.crumb b/crates/aien-scheduler/src/bin/.crumb index e2565bd9..53357802 100644 --- a/crates/aien-scheduler/src/bin/.crumb +++ b/crates/aien-scheduler/src/bin/.crumb @@ -19,14 +19,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-16T02:07:53Z", + "compiled_at": "2026-10-24T04:15:31Z", "compiler": "crumb-compile/1", - "digest": "sha256:25fd9f8afbea19702750f8ddba2ef4aeafc5bc4515aa695340a5af6931989c03", + "digest": "sha256:246e54412a28d811dc38af14bb943890fbafd85f55864c2468a04e6ea698062e", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 1, - "generated_at_commit": "ec315b98096027bb22a8a8e6f36b9a9214d01ba9", - "source_tree": "sha256:ff7d4fa493726e0d337607a921a1048de824d20efd5e1336fb2771bc071fb9d8" + "generated_at_commit": "208776701cc8996b0d6badce6ae5e2bd26aace74", + "source_tree": "sha256:a2460beadf82e772677fc7562c51c850b4061e33f256786a1bbf42184341c690" } }, "history": [], diff --git a/crates/spark-cockpit-rs/.crumb b/crates/spark-cockpit-rs/.crumb index bf44bea9..a5e719a1 100644 --- a/crates/spark-cockpit-rs/.crumb +++ b/crates/spark-cockpit-rs/.crumb @@ -34,14 +34,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-17T01:36:06Z", + "compiled_at": "2026-10-24T04:15:31Z", "compiler": "crumb-compile/1", - "digest": "sha256:dd11ae9a698f7fcad7d1df386926426ea051d4131ee738da2ac81eb6a57b9473", + "digest": "sha256:34d1c3a8c38c4f75d9eca8e73f6d15418f2ffc3d129f99813d7adf9e80902659", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 18, - "generated_at_commit": "afbbd8046a003041a3df47843cd936668e7b7f2d", - "source_tree": "sha256:52258e4dbbb4f59dde46785b5541a3fb940a4fc3d969a3b44f8d971eb86e3ae5" + "generated_at_commit": "208776701cc8996b0d6badce6ae5e2bd26aace74", + "source_tree": "sha256:c107cf3c2592be096d3363fda932d18e757db497f380180ee3df8cc9cf47c5cb" } }, "history": [ diff --git a/scripts/.crumb b/scripts/.crumb index 249da23b..92342593 100644 --- a/scripts/.crumb +++ b/scripts/.crumb @@ -4,14 +4,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-24T00:28:20Z", + "compiled_at": "2026-10-24T04:15:31Z", "compiler": "crumb-compile/1", - "digest": "sha256:33c59e438bd2f54515b0b4df7c6b28dd9c3b6f450b4e0a0b09bb8d748e18111f", + "digest": "sha256:20f3120e6d2067007c8e67dfd13a821a83f5a382e7e11a0eec22f2d9b6380971", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 53, - "generated_at_commit": "4ca62826b4ec6dae1ee92fa7979ad2b8c676ad3c", - "source_tree": "sha256:79f1a8c3293f79e34a4b6e9c4d8ce3523c8b6ca9a6a5a28f9216d983389f14dd" + "generated_at_commit": "208776701cc8996b0d6badce6ae5e2bd26aace74", + "source_tree": "sha256:4eda536ca920694a1ffe6d3a34a8df529a3f91608ca4af55c1ff8f98d22e5d10" } }, "parent": { diff --git a/tools/aien-local-ci/.crumb b/tools/aien-local-ci/.crumb index 131a134b..647214d4 100644 --- a/tools/aien-local-ci/.crumb +++ b/tools/aien-local-ci/.crumb @@ -3,14 +3,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-24T02:50:13Z", + "compiled_at": "2026-10-24T04:15:31Z", "compiler": "crumb-compile/1", - "digest": "sha256:555360db659f2674754427542608c884eb39078f1d3f27a42e9eb7d4c19ba9d0", + "digest": "sha256:598dc3bd4d60f47f79ccb3b42d5966be1ba921fdbb24f347ef6c998463a4da3a", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 21, - "generated_at_commit": "6c2c55fb2c0b2e05378336ac510a660ad9a19253", - "source_tree": "sha256:a4ac5d25189151742c00c9e73bbd1b1866d1d0f1529c932012393acf4b0a6365" + "generated_at_commit": "208776701cc8996b0d6badce6ae5e2bd26aace74", + "source_tree": "sha256:00335311d2bf0073d3b163450c23f53327cf9d9ed4d3ab2e1cecb995255fa355" } }, "layer": "infra", From 10653f5c835fc26c9f21f9ae765aff4a9b6e329a Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Fri, 23 Oct 2026 23:21:28 -0500 Subject: [PATCH 3/3] crumb: recompile with the crumb tool pinned by this repository Signed-off-by: Drake Stapleton --- .crumb | 50 ++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 46 insertions(+), 4 deletions(-) diff --git a/.crumb b/.crumb index 4e1d55d0..ca888b85 100644 --- a/.crumb +++ b/.crumb @@ -63,6 +63,42 @@ "extensions": { "generated": { "children": [ + { + "digest": "e5a81587d398cafcc737337c51428c09697768967eea61386a6ab34f7f871903", + "last_commit": "20877670", + "name": "crates/aien-allen", + "purpose": "ALLEN identity gate: resolve-only subject check, host pin record, deployment record (ADR 0035). " + }, + { + "digest": "a6f60499665540ddd49ad3122d016232b15d9cc878cb68febb725cd711dfbb6d", + "last_commit": "20877670", + "name": "crates/aien-allen-memory", + "purpose": "ALLEN scoped memory store: scopes enforced at recall, inspect/correct/export, key-destroying for" + }, + { + "digest": "3b65ec8698bac001b1d2aef39c1fce13a3475280186147af40a319212ed76d42", + "last_commit": "20877670", + "name": "crates/aien-allen-profile", + "purpose": "ALLEN persona profile v1: versioned, user-editable profile bound to the engaged ALLEN identity; " + }, + { + "digest": "73b7b51a60981ac052f28b05a50071fb6846e6c3f7331d28786d220733f204c7", + "last_commit": "20877670", + "name": "crates/aien-cli", + "purpose": "" + }, + { + "digest": "246e54412a28d811dc38af14bb943890fbafd85f55864c2468a04e6ea698062e", + "last_commit": "20877670", + "name": "crates/aien-scheduler/src/bin", + "purpose": "" + }, + { + "digest": "34d1c3a8c38c4f75d9eca8e73f6d15418f2ffc3d129f99813d7adf9e80902659", + "last_commit": "20877670", + "name": "crates/spark-cockpit-rs", + "purpose": "" + }, { "digest": "20f3120e6d2067007c8e67dfd13a821a83f5a382e7e11a0eec22f2d9b6380971", "last_commit": "20877670", @@ -74,16 +110,22 @@ "last_commit": "fa73e778", "name": "skills", "purpose": "" + }, + { + "digest": "598dc3bd4d60f47f79ccb3b42d5966be1ba921fdbb24f347ef6c998463a4da3a", + "last_commit": "20877670", + "name": "tools/aien-local-ci", + "purpose": "Local CI sandbox exec contract (C8), aien-run user/caches install, Forgejo trigger hook, health " } ], - "children_root": "sha256:7d846c24f37054ae44839665fe108c61627a4e9a35e7f1616315f094669bddd1", - "compiled_at": "2026-10-24T04:15:31Z", + "children_root": "sha256:0d89f72950a8f4e92fd5b1f360e7092d0b0fb9c28ff362b954b98c44cc053be4", + "compiled_at": "2026-10-24T04:21:21Z", "compiler": "crumb-compile/1", - "digest": "sha256:338438a8c4a1db0a66556befeb9083942d8f2fc25ce0c35def9da120bc03996e", + "digest": "sha256:3b49c0a02cd350da72ac4576403a4ef924c11a4f4e238f165ac9b09806c979af", "evidence_files": 1578, "evidence_root": "sha256:301c3ce7bca14655fc023095434f2d2942ebdfa9b30d5757d88343925d633a4d", "files": 5898, - "generated_at_commit": "208776701cc8996b0d6badce6ae5e2bd26aace74", + "generated_at_commit": "358b7c2e23adb910f23fe4a1ed58981a9c401f72", "source_tree": "sha256:303a5f99ad9ca6d260b8ad3d74a0d9e59dac0a49757e52c6185e4219fa6814a7" } },