audit: classify 8 FFI/systems unsafe findings as legitimate (PA001/PA007)#32
Merged
Merged
Conversation
…007)
panic-attack assail flags 8 UnsafeCode/UnsafeFFI Critical/High findings
under impl/rust-cli/src/, impl/zig/, ffi/rust/src/ — all at the C-ABI / syscall boundary.
Rationale: valence-shell is a Unix shell. impl/rust-cli is the Rust shell front-end calling libc::{chown,getpwnam,getgrnam,getpgrp,kill,pipe,WIFSTOPPED} + File::from_raw_fd — required POSIX job-control + permission syscalls. impl/zig is the Zig daemon-client FFI; ffi/rust contains the Rust FFI shim to the Lean-verified core via lean_wrapper.zig.
Adds:
- audits/assail-classifications.a2ml (entries=8, classification=legitimate-ffi)
- audits/audit-ffi-2026-05-26.md
Anti-gameability: registry is separate from source under scan; new unsafe
inside a classified root requires a companion classification entry.
Refs hyperpolymath/panic-attack#32 (estate sweep tracker).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
🔍 Hypatia Security ScanFindings: 82 issues detected
View findings[
{
"reason": "Action hyperpolymath/standards/.github/workflows/governance-reusable.yml@main needs attention",
"type": "unpinned_action",
"file": "governance.yml",
"action": "pin_sha",
"rule_module": "workflow_audit",
"severity": "high"
},
{
"reason": "Workflow executes remote script directly (curl/wget piped to shell). Download, verify checksum/signature, then execute.",
"type": "download_then_run",
"file": "lean-verification.yml",
"action": "verify_download_integrity",
"rule_module": "workflow_audit",
"severity": "high"
},
{
"reason": "Workflow executes remote script directly (curl/wget piped to shell). Download, verify checksum/signature, then execute.",
"type": "download_then_run",
"file": "mirror.yml",
"action": "verify_download_integrity",
"rule_module": "workflow_audit",
"severity": "high"
},
{
"reason": "Workflow executes remote script directly (curl/wget piped to shell). Download, verify checksum/signature, then execute.",
"type": "download_then_run",
"file": "rust-cli.yml",
"action": "verify_download_integrity",
"rule_module": "workflow_audit",
"severity": "high"
},
{
"reason": "Agda postulate assumes without proof -- potential soundness hole (1 occurrences, CWE-704)",
"type": "agda_postulate",
"file": "/home/runner/work/valence-shell/valence-shell/proofs/agda/FilesystemModel.agda",
"action": "flag",
"rule_module": "code_safety",
"severity": "critical"
},
{
"reason": "Coq admit tactic leaves goal unproven (1 occurrences, CWE-704)",
"type": "coq_admit_tactic",
"file": "/home/runner/work/valence-shell/valence-shell/proofs/coq/filesystem_composition.v",
"action": "flag",
"rule_module": "code_safety",
"severity": "critical"
},
{
"reason": "Admitted leaves proof hole (2 occurrences, CWE-704)",
"type": "admitted",
"file": "/home/runner/work/valence-shell/valence-shell/proofs/coq/posix_errors.v",
"action": "flag",
"rule_module": "code_safety",
"severity": "critical"
},
{
"reason": "Obj.magic bypassing type safety (2 occurrences, CWE-704)",
"type": "obj_magic",
"file": "/home/runner/work/valence-shell/valence-shell/impl/mcp/src/bindings/Mcp.res",
"action": "flag",
"rule_module": "code_safety",
"severity": "high"
},
{
"reason": "JSON decode without validation (1 occurrences, CWE-20)",
"type": "json_decode_no_validation",
"file": "/home/runner/work/valence-shell/valence-shell/impl/mcp/src/Server.res",
"action": "flag",
"rule_module": "code_safety",
"severity": "critical"
},
{
"reason": "unwrap_or(0) with dangerous default (1 occurrences, CWE-754)",
"type": "unwrap_dangerous_default",
"file": "/home/runner/work/valence-shell/valence-shell/ffi/rust/src/operations.rs",
"action": "flag",
"rule_module": "code_safety",
"severity": "critical"
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
This was referenced May 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
panic-attack assailreports 8UnsafeCode(PA001) +UnsafeFFI(PA007) Critical/High findings underimpl/rust-cli/src/, impl/zig/, ffi/rust/src/in this repo. All sit at the C-ABI / syscall boundary and are required by the language to call across.Rationale: valence-shell is a Unix shell. impl/rust-cli is the Rust shell front-end calling libc::{chown,getpwnam,getgrnam,getpgrp,kill,pipe,WIFSTOPPED} + File::from_raw_fd — required POSIX job-control + permission syscalls. impl/zig is the Zig daemon-client FFI; ffi/rust contains the Rust FFI shim to the Lean-verified core via lean_wrapper.zig.
What changes
audits/assail-classifications.a2ml— 8 entries,classification=legitimate-ffi.audits/audit-ffi-2026-05-26.md— auditor record + anti-gameability note.Scope
Classification is scoped to the listed roots (impl/rust-cli/src/, impl/zig/, ffi/rust/src/). Any unsafe block outside those roots remains visible.
Anti-gameability
Same pattern as svalinn, proven, gossamer, docudactyl, proven-servers, aerie, boj-server, stapeln, ambientops.
Verification
Locally:
panic-attack assail . --headlessreports the 8 findings assuppressed: trueon this branch.Refs hyperpolymath/panic-attack#32.
🤖 Generated with Claude Code