Skip to content

Commit 9e6ff08

Browse files
hyperpolymathclaude
andcommitted
fix: replace believe_me with prim__callbackToPtr FFI, batch RSR compliance
- Foreign.idr: believe_me callback cast → proper prim__callbackToPtr C FFI - Rust crates: add #![forbid(unsafe_code)] where safe - Batch RSR: SPDX headers, SHA-pin actions, hypatia-scan fix, hook updates - Add test files and DAP scaffolding Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0720034 commit 9e6ff08

29 files changed

Lines changed: 907 additions & 21 deletions

.github/workflows/hypatia-scan.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,9 @@ jobs:
4141
run: |
4242
if [ ! -f hypatia-v2 ]; then
4343
echo "Building hypatia-v2 scanner..."
44-
cd scanner
4544
mix deps.get
4645
mix escript.build
47-
mv hypatia ../hypatia-v2
46+
mv hypatia hypatia-v2
4847
fi
4948
5049
- name: Run Hypatia scan

.github/workflows/workflow-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
fi
3737
done
3838
if [ $failed -eq 1 ]; then
39-
echo "Add '# SPDX-License-Identifier: AGPL-3.0-or-later' as first line"
39+
echo "Add '# SPDX-License-Identifier: PMPL-1.0-or-later' as first line"
4040
exit 1
4141
fi
4242
echo "All workflows have SPDX headers"

examples/SafeDOMExample.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: AGPL-3.0-or-later
1+
// SPDX-License-Identifier: PMPL-1.0-or-later
22
// Example: Using SafeDOM for formally verified DOM mounting
33

44
open SafeDOM

ffi/zig/build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// {{PROJECT}} FFI Build Configuration
2-
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// SPDX-License-Identifier: PMPL-1.0-or-later
33

44
const std = @import("std");
55

ffi/zig/src/main.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// This module implements the C-compatible FFI declared in src/abi/Foreign.idr
44
// All types and layouts must match the Idris2 ABI definitions.
55
//
6-
// SPDX-License-Identifier: AGPL-3.0-or-later
6+
// SPDX-License-Identifier: PMPL-1.0-or-later
77

88
const std = @import("std");
99

ffi/zig/test/integration_test.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// {{PROJECT}} Integration Tests
2-
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// SPDX-License-Identifier: PMPL-1.0-or-later
33
//
44
// These tests verify that the Zig FFI correctly implements the Idris2 ABI
55

hooks/validate-codeql.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
# SPDX-License-Identifier: AGPL-3.0-or-later
2+
# SPDX-License-Identifier: PMPL-1.0-or-later
33
# Pre-commit hook: Validate CodeQL language matrix matches repo
44
set -euo pipefail
55

hooks/validate-permissions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
# SPDX-License-Identifier: AGPL-3.0-or-later
2+
# SPDX-License-Identifier: PMPL-1.0-or-later
33
# Pre-commit hook: Validate workflow permissions declarations
44
set -euo pipefail
55
ERRORS=0

hooks/validate-sha-pins.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
# SPDX-License-Identifier: AGPL-3.0-or-later
2+
# SPDX-License-Identifier: PMPL-1.0-or-later
33
# Pre-commit hook: Validate GitHub Actions are SHA-pinned
44

55
set -euo pipefail

hooks/validate-spdx.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
# SPDX-License-Identifier: AGPL-3.0-or-later
2+
# SPDX-License-Identifier: PMPL-1.0-or-later
33
# Pre-commit hook: Validate SPDX headers in workflow files
44

55
set -euo pipefail
@@ -13,7 +13,7 @@ for workflow in .github/workflows/*.yml .github/workflows/*.yaml; do
1313
first_line=$(head -n1 "$workflow")
1414
if ! echo "$first_line" | grep -qE "$SPDX_PATTERN"; then
1515
echo "ERROR: Missing SPDX header in $workflow"
16-
echo " First line should be: # SPDX-License-Identifier: AGPL-3.0-or-later"
16+
echo " First line should be: # SPDX-License-Identifier: PMPL-1.0-or-later"
1717
ERRORS=$((ERRORS + 1))
1818
fi
1919
done

0 commit comments

Comments
 (0)