SNAPKITTYWEST commited on
Commit
f7ccd08
·
verified ·
1 Parent(s): b05e716

Add covenant SPDX headers to every remaining unmarked source file

Browse files
pascal/Makefile CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  .PHONY: all clean build test help
2
 
3
  FPC = fpc
 
1
+ # SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ # Licensing: see LICENSE in the repository root.
3
+
4
  .PHONY: all clean build test help
5
 
6
  FPC = fpc
pascal/buffer.pas CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  { Buffer: Physical storage management with generation tracking.
2
  Implements allocation, reference counting, and generation counters
3
  for temporal safety (use-after-free detection).
 
1
+ { SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ Licensing: see LICENSE in the repository root. }
3
+
4
  { Buffer: Physical storage management with generation tracking.
5
  Implements allocation, reference counting, and generation counters
6
  for temporal safety (use-after-free detection).
pascal/descriptor.pas CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  { TensorDescriptor: Packed record for C-compatible tensor metadata
2
  Represents the semantic view layer: Shape, Strides, Offset.
3
  Implements B_layout and B_own governance flags for binary semantics.
 
1
+ { SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ Licensing: see LICENSE in the repository root. }
3
+
4
  { TensorDescriptor: Packed record for C-compatible tensor metadata
5
  Represents the semantic view layer: Shape, Strides, Offset.
6
  Implements B_layout and B_own governance flags for binary semantics.
pascal/ffi/tensor_abi.pas CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  { ============================================================================
2
  NraayTensor FFI ABI Bindings for Free Pascal
3
 
 
1
+ { SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ Licensing: see LICENSE in the repository root. }
3
+
4
  { ============================================================================
5
  NraayTensor FFI ABI Bindings for Free Pascal
6
 
pascal/governance.pas CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  { Governance Validation Engine: Executable proof obligations.
2
  Implements 5 lemmas as per NraayTensor spec:
3
 
 
1
+ { SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ Licensing: see LICENSE in the repository root. }
3
+
4
  { Governance Validation Engine: Executable proof obligations.
5
  Implements 5 lemmas as per NraayTensor spec:
6
 
pascal/materialize.pas CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  { Materialization Barrier: Copy-on-write with governance state restoration.
2
  Restores B_layout=1 and B_own=1 by copying viewed elements to contiguous buffer.
3
 
 
1
+ { SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ Licensing: see LICENSE in the repository root. }
3
+
4
  { Materialization Barrier: Copy-on-write with governance state restoration.
5
  Restores B_layout=1 and B_own=1 by copying viewed elements to contiguous buffer.
6
 
pascal/nraay_tensor_ref.pas CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  { NraayTensor Reference Implementation: Main program
2
  Demonstrates the Free Pascal reference layer for semantic validation.
3
 
 
1
+ { SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ Licensing: see LICENSE in the repository root. }
3
+
4
  { NraayTensor Reference Implementation: Main program
5
  Demonstrates the Free Pascal reference layer for semantic validation.
6
 
pascal/ownership.pas CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  { Ownership State Machine: Manages OWNED, SHARED, EXCLUSIVE states.
2
  Tracks ownership tokens and implements governance state transitions.
3
 
 
1
+ { SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ Licensing: see LICENSE in the repository root. }
3
+
4
  { Ownership State Machine: Manages OWNED, SHARED, EXCLUSIVE states.
5
  Tracks ownership tokens and implements governance state transitions.
6
 
pascal/tensor.pas CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  { NraayTensor Reference Implementation: Main tensor operations.
2
  Implements core contract operations: ALLOC, FREE, VIEW, SLICE, TRANSPOSE, RESHAPE, MATERIALIZE
3
 
 
1
+ { SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ Licensing: see LICENSE in the repository root. }
3
+
4
  { NraayTensor Reference Implementation: Main tensor operations.
5
  Implements core contract operations: ALLOC, FREE, VIEW, SLICE, TRANSPOSE, RESHAPE, MATERIALIZE
6
 
pascal/tensor_array.pas CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  { TensorArray: Array/buffer management with Arc-like reference counting.
2
  Mimics Rust Arc<Vec<T>> semantics using explicit reference counting.
3
 
 
1
+ { SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ Licensing: see LICENSE in the repository root. }
3
+
4
  { TensorArray: Array/buffer management with Arc-like reference counting.
5
  Mimics Rust Arc<Vec<T>> semantics using explicit reference counting.
6
 
pascal/tests.pas CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  { Test Suite: Comprehensive conformance tests for NraayTensor reference implementation.
2
  Tests core operations, governance properties, and state machine transitions.
3
  }
 
1
+ { SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ Licensing: see LICENSE in the repository root. }
3
+
4
  { Test Suite: Comprehensive conformance tests for NraayTensor reference implementation.
5
  Tests core operations, governance properties, and state machine transitions.
6
  }
pascal/validation.pas CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  { Validation Oracle: Conformance testing against Rust implementation.
2
  Provides oracle functions for cross-implementation verification.
3
 
 
1
+ { SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ Licensing: see LICENSE in the repository root. }
3
+
4
  { Validation Oracle: Conformance testing against Rust implementation.
5
  Provides oracle functions for cross-implementation verification.
6
 
rust/tensor-hw/examples/core_operations.rs CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  //! Core tensor hardware operations example
2
  //!
3
  //! Demonstrates:
 
1
+ // SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ // Licensing: see LICENSE in the repository root.
3
+
4
  //! Core tensor hardware operations example
5
  //!
6
  //! Demonstrates:
rust/tensor-hw/ffi/sparse_router.rs CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  /*
2
  * Sparse Tensor Router with RAW_ROUTE Algorithm
3
  *
 
1
+ // SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ // Licensing: see LICENSE in the repository root.
3
+
4
  /*
5
  * Sparse Tensor Router with RAW_ROUTE Algorithm
6
  *
rust/tensor-hw/ffi/sparse_router_kani.rs CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  /*
2
  * Kani Formal Verification for RAW_ROUTE Algorithm
3
  *
 
1
+ // SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ // Licensing: see LICENSE in the repository root.
3
+
4
  /*
5
  * Kani Formal Verification for RAW_ROUTE Algorithm
6
  *
rust/tensor-hw/ffi/tensor_abi.h CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  /*
2
  * NraayTensor FFI ABI Contract
3
  *
 
1
+ // SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ // Licensing: see LICENSE in the repository root.
3
+
4
  /*
5
  * NraayTensor FFI ABI Contract
6
  *
rust/tensor-hw/src/buffer.rs CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  //! Buffer management with generation counters and reference tracking
2
  //!
3
  //! Each buffer has:
 
1
+ // SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ // Licensing: see LICENSE in the repository root.
3
+
4
  //! Buffer management with generation counters and reference tracking
5
  //!
6
  //! Each buffer has:
rust/tensor-hw/src/error.rs CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  //! Error types for hardware tensor layer
2
 
3
  use thiserror::Error;
 
1
+ // SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ // Licensing: see LICENSE in the repository root.
3
+
4
  //! Error types for hardware tensor layer
5
 
6
  use thiserror::Error;
rust/tensor-hw/src/governance.rs CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  //! Governance state engine with validation gates
2
  //!
3
  //! Enforces invariants:
 
1
+ // SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ // Licensing: see LICENSE in the repository root.
3
+
4
  //! Governance state engine with validation gates
5
  //!
6
  //! Enforces invariants:
rust/tensor-hw/src/lib.rs CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  //! # Tensor Hardware Implementation Layer
2
  //!
3
  //! NraayTensor hardware layer with explicit state transitions, generation-based safety,
 
1
+ // SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ // Licensing: see LICENSE in the repository root.
3
+
4
  //! # Tensor Hardware Implementation Layer
5
  //!
6
  //! NraayTensor hardware layer with explicit state transitions, generation-based safety,
rust/tensor-hw/src/materialize.rs CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  //! Materialization barrier: transactional conversion to contiguous memory
2
  //!
3
  //! Materializes non-canonical strides into contiguous buffer.
 
1
+ // SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ // Licensing: see LICENSE in the repository root.
3
+
4
  //! Materialization barrier: transactional conversion to contiguous memory
5
  //!
6
  //! Materializes non-canonical strides into contiguous buffer.
rust/tensor-hw/src/memory.rs CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  //! Memory address calculation and stride handling
2
  //!
3
  //! Core address formula:
 
1
+ // SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ // Licensing: see LICENSE in the repository root.
3
+
4
  //! Memory address calculation and stride handling
5
  //!
6
  //! Core address formula:
rust/tensor-hw/src/ownership.rs CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  //! Ownership token state machine with explicit transitions
2
  //!
3
  //! Tracks the semantic governance state B = (B_layout, B_own):
 
1
+ // SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ // Licensing: see LICENSE in the repository root.
3
+
4
  //! Ownership token state machine with explicit transitions
5
  //!
6
  //! Tracks the semantic governance state B = (B_layout, B_own):
rust/tensor-hw/src/routing.rs CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  //! Sparse work-stealing with memory locality heuristic
2
  //!
3
  //! RAW_ROUTE algorithm: Region-aware work-stealing scheduler
 
1
+ // SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ // Licensing: see LICENSE in the repository root.
3
+
4
  //! Sparse work-stealing with memory locality heuristic
5
  //!
6
  //! RAW_ROUTE algorithm: Region-aware work-stealing scheduler
rust/tensor-hw/src/view.rs CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  //! Tensor views and slicing operations (zero-copy)
2
  //!
3
  //! Views share underlying buffer via Arc, never copy data.
 
1
+ // SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ // Licensing: see LICENSE in the repository root.
3
+
4
  //! Tensor views and slicing operations (zero-copy)
5
  //!
6
  //! Views share underlying buffer via Arc, never copy data.
tests/conformance/buffer_lifetime.rs CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  //! Buffer Lifetime Tests (T1-T5): Parent-child dropping semantics
2
  //!
3
  //! Verifies:
 
1
+ // SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ // Licensing: see LICENSE in the repository root.
3
+
4
  //! Buffer Lifetime Tests (T1-T5): Parent-child dropping semantics
5
  //!
6
  //! Verifies:
tests/conformance/generation.rs CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  //! Generation Counter Tests: Stale Descriptor Detection
2
  //!
3
  //! Verifies:
 
1
+ // SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ // Licensing: see LICENSE in the repository root.
3
+
4
  //! Generation Counter Tests: Stale Descriptor Detection
5
  //!
6
  //! Verifies:
tests/conformance/governance.rs CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  //! Governance State Transition Tests: Fail-Closed Validation
2
  //!
3
  //! Verifies:
 
1
+ // SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ // Licensing: see LICENSE in the repository root.
3
+
4
  //! Governance State Transition Tests: Fail-Closed Validation
5
  //!
6
  //! Verifies:
tests/conformance/materialization.rs CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  //! Materialization Tests: B=1 Canonical + New Buffer
2
  //!
3
  //! Verifies:
 
1
+ // SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ // Licensing: see LICENSE in the repository root.
3
+
4
  //! Materialization Tests: B=1 Canonical + New Buffer
5
  //!
6
  //! Verifies:
tests/conformance/mod.rs CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  //! Cross-Language Conformance Test Suite
2
  //!
3
  //! Comprehensive test coverage for Rust and Pascal tensor implementations.
 
1
+ // SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ // Licensing: see LICENSE in the repository root.
3
+
4
  //! Cross-Language Conformance Test Suite
5
  //!
6
  //! Comprehensive test coverage for Rust and Pascal tensor implementations.
tests/conformance/ownership.rs CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  //! Ownership and Reference Counting Tests
2
  //!
3
  //! Verifies:
 
1
+ // SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ // Licensing: see LICENSE in the repository root.
3
+
4
  //! Ownership and Reference Counting Tests
5
  //!
6
  //! Verifies:
tests/conformance/routing.rs CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  //! Routing and Work-Stealing Tests: Memory Locality
2
  //!
3
  //! Verifies:
 
1
+ // SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ // Licensing: see LICENSE in the repository root.
3
+
4
  //! Routing and Work-Stealing Tests: Memory Locality
5
  //!
6
  //! Verifies:
tests/conformance/views.rs CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  //! View Semantics Tests: Slicing, Transposing, Nested Views
2
  //!
3
  //! Verifies:
 
1
+ // SPDX-License-Identifier: LicenseRef-Sovereign-Leviathan-SL-AGPL3-001
2
+ // Licensing: see LICENSE in the repository root.
3
+
4
  //! View Semantics Tests: Slicing, Transposing, Nested Views
5
  //!
6
  //! Verifies: