Skip to content

Commit ca5e5f7

Browse files
security: remediate Track C and Track E findings (#36)
Resolved Track E CVEs via cargo update. Hardened against memory exhaustion. --------- Co-authored-by: Mistral Vibe <vibe@mistral.ai>
1 parent 84026dd commit ca5e5f7

145 files changed

Lines changed: 1414 additions & 1552 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/CLAUDE.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<!--
2+
SPDX-License-Identifier: MPL-2.0
3+
Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
4+
-->
15
## Machine-Readable Artefacts
26

37
The following files in `.machine_readable/` contain structured project metadata:
@@ -19,7 +23,7 @@ The following files in `.machine_readable/` contain structured project metadata:
1923

2024
| Language/Tool | Use Case | Notes |
2125
|---------------|----------|-------|
22-
| **AffineScript** | Primary application code | Affine-typed, compiles to typed-wasm or Deno-ESM |
26+
| **AffineScript** | Primary application code | Compiles to JS, type-safe |
2327
| **Deno** | Runtime & package management | Replaces Node/npm/bun |
2428
| **Rust** | Performance-critical, systems, WASM | Preferred for CLI tools |
2529
| **Tauri 2.0+** | Mobile apps (iOS/Android) | Rust backend + web UI |
@@ -43,7 +47,7 @@ The following files in `.machine_readable/` contain structured project metadata:
4347
| Bun | Deno |
4448
| pnpm/yarn | Deno |
4549
| Go | Rust |
46-
| Python | Julia/Rust/ReScript |
50+
| Python | Julia/Rust/AffineScript |
4751
| Java/Kotlin | Rust/Tauri/Dioxus |
4852
| Swift | Tauri/Dioxus |
4953
| React Native | Tauri/Dioxus |
@@ -61,7 +65,7 @@ Both are FOSS with independent governance (no Big Tech).
6165
### Enforcement Rules
6266

6367
1. **No new TypeScript files** - Convert existing TS to AffineScript
64-
2. **No package.json for runtime deps** - Use deno.json imports
68+
2. **No package.json - use deno.json deps** - Use deno.json imports
6569
3. **No node_modules in production** - Deno caches deps automatically
6670
4. **No Go code** - Use Rust instead
6771
5. **No Python anywhere** - Use Julia for data/batch, Rust for systems, AffineScript for apps

.github/CODEOWNERS

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# SPDX-License-Identifier: MPL-2.0
2+
# CODEOWNERS - Define code review assignments for GitHub
3+
# See: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
4+
5+
# Default: sole maintainer for all files
6+
* @hyperpolymath
7+
8+
# Security-sensitive files require explicit ownership
9+
SECURITY.md @hyperpolymath
10+
.github/workflows/ @hyperpolymath
11+
.machine_readable/ @hyperpolymath
12+
contractiles/ @hyperpolymath
13+
14+
# License files
15+
LICENSE @hyperpolymath
16+
LICENSES/ @hyperpolymath
17+
18+
# Configuration
19+
.gitignore @hyperpolymath
20+
.github/ @hyperpolymath
21+
22+
# Documentation
23+
README* @hyperpolymath
24+
CONTRIBUTING* @hyperpolymath
25+
CODE_OF_CONDUCT* @hyperpolymath
26+
GOVERNANCE* @hyperpolymath
27+
MAINTAINERS* @hyperpolymath
28+
CHANGELOG* @hyperpolymath
29+
ROADMAP* @hyperpolymath
30+
31+
# Build and CI
32+
Justfile @hyperpolymath
33+
Makefile @hyperpolymath
34+
*.sh @hyperpolymath

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<!--
2+
SPDX-License-Identifier: MPL-2.0
3+
Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
4+
-->
15
---
26
name: Bug report
37
about: Create a report to help us improve

.github/ISSUE_TEMPLATE/custom.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<!--
2+
SPDX-License-Identifier: MPL-2.0
3+
Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
4+
-->
15
---
26
name: Custom issue template
37
about: Describe this issue template's purpose here.

.github/ISSUE_TEMPLATE/documentation.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<!--
2+
SPDX-License-Identifier: MPL-2.0
3+
Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
4+
-->
15
---
26
name: Documentation
37
about: Report unclear, missing, or incorrect documentation

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<!--
2+
SPDX-License-Identifier: MPL-2.0
3+
Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
4+
-->
15
---
26
name: Feature request
37
about: Suggest an idea for this project

.github/ISSUE_TEMPLATE/question.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<!--
2+
SPDX-License-Identifier: MPL-2.0
3+
Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
4+
-->
15
---
26
name: Question
37
about: Ask a question about usage or behaviour

.github/copilot/coding-agent.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
mcp_servers:
2+
boj-server:
3+
command: npx
4+
args: ["-y", "@hyperpolymath/boj-server@latest"]
5+
env:
6+
BOJ_URL: http://localhost:7700

.github/workflows/boj-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
jobs:
88
trigger-boj:
99
runs-on: ubuntu-latest
10+
timeout-minutes: 15
1011
steps:
1112
- name: Checkout
1213
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

.github/workflows/cargo-audit.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# SPDX-License-Identifier: MPL-2.0
22
# Prevention workflow - audits Rust dependencies for vulnerabilities
33
name: Cargo Audit
4-
54
on:
65
push:
76
branches: [main]
@@ -13,35 +12,30 @@ on:
1312
- '**/Cargo.toml'
1413
- '**/Cargo.lock'
1514
schedule:
16-
- cron: '0 6 * * 1' # Weekly on Monday
17-
15+
- cron: '0 6 * * 1' # Weekly on Monday
1816
permissions: read-all
19-
2017
jobs:
2118
audit:
2219
runs-on: ubuntu-latest
20+
timeout-minutes: 15
2321
steps:
2422
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
25-
2623
- name: Install cargo-audit
2724
run: cargo install cargo-audit --locked
28-
2925
- name: Run cargo audit
3026
run: cargo audit --deny warnings
31-
3227
- name: Check for unmaintained crates
3328
run: cargo audit --deny unmaintained
34-
3529
# Optional: Create issues for vulnerabilities
3630
create-issue:
3731
runs-on: ubuntu-latest
32+
timeout-minutes: 15
3833
needs: audit
3934
if: failure()
4035
permissions:
4136
issues: write
4237
steps:
4338
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
44-
4539
- name: Create vulnerability issue
4640
env:
4741
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)