Skip to content

Commit 7876375

Browse files
hyperpolymathclaude
andcommitted
docs: add TEST-NEEDS.md and/or PROOF-NEEDS.md from audit
Documents testing and proof gaps identified during batch audit. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f3f2382 commit 7876375

2 files changed

Lines changed: 76 additions & 0 deletions

File tree

PROOF-NEEDS.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# PROOF-NEEDS.md
2+
<!-- SPDX-License-Identifier: PMPL-1.0-or-later -->
3+
4+
## Current State
5+
6+
- **LOC**: ~9,350
7+
- **Languages**: Ada, Idris2, Zig, Nickel
8+
- **Existing ABI proofs**: `src/abi/*.idr` (template-level)
9+
- **Dangerous patterns**: None detected
10+
11+
## What Needs Proving
12+
13+
### DNS Record Manipulation (hinfo_loc_fluctuator_ada/src/)
14+
- `dns_records.adb/ads`, `dns_records_extended.adb/ads` — DNS record creation and modification
15+
- `dns_update.adb/ads` — DNS update protocol
16+
- Prove: generated DNS records conform to RFC specifications (RFC 1035, etc.)
17+
- Prove: DNS updates are idempotent or safely retryable
18+
19+
### Authentication (hinfo_loc_fluctuator_ada/src/secure_auth.adb)
20+
- Secure authentication for DNS updates
21+
- Prove: authentication tokens are never transmitted in cleartext
22+
- Prove: authentication failure results in no DNS modifications
23+
24+
### Firewall Management (hinfo_loc_fluctuator_ada/src/firewall_manager.adb/ads)
25+
- Firewall rule manipulation during DNS fluctuation
26+
- Prove: firewall rules always return to a safe state after fluctuation
27+
28+
### Scheduler (hinfo_loc_fluctuator_ada/src/scheduler.adb/ads)
29+
- Timed DNS fluctuation
30+
- Prove: scheduler never produces overlapping fluctuation windows
31+
32+
### SDP Controller (hinfo_loc_fluctuator_ada/src/sdp_controller.adb/ads)
33+
- SDP (Software-Defined Perimeter) control
34+
- Prove: SDP state is consistent with DNS state after fluctuation
35+
36+
## Recommended Prover
37+
38+
- **SPARK** (natural fit — Ada code can be annotated with SPARK contracts)
39+
- **Idris2** for ABI layer
40+
41+
## Priority
42+
43+
**HIGH** — Network security tool manipulating DNS records and firewall rules. Incorrect fluctuation could cause service outages or security exposures. SPARK annotations on the Ada code would be the most effective approach.

TEST-NEEDS.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# TEST-NEEDS: resource-record-fluctuator
2+
3+
## Current State
4+
5+
| Category | Count | Details |
6+
|----------|-------|---------|
7+
| **Source modules** | 1 | Elixir: dns_records.ex |
8+
| **Unit tests** | 0 | None |
9+
| **Integration tests** | 0 | None |
10+
| **E2E tests** | 0 | None |
11+
| **Benchmarks** | 0 | None |
12+
| **Fuzz tests** | 0 | placeholder.txt only |
13+
14+
## What's Missing
15+
16+
### EVERYTHING
17+
- [ ] 1 source file, 0 tests of any kind
18+
- [ ] No ExUnit test file
19+
- [ ] No DNS record manipulation tests
20+
- [ ] No tests for HINFO/LOC record fluctuation logic
21+
22+
### Aspect Tests
23+
- [ ] **Security**: DNS record manipulation with zero security tests -- DNS poisoning scenarios untested
24+
- [ ] **Error handling**: No tests for malformed records, invalid DNS data
25+
26+
### Self-Tests
27+
- [ ] No self-diagnostic mode
28+
29+
## FLAGGED ISSUES
30+
- **1 Elixir source file, 0 tests** -- completely untested
31+
- **fuzz/placeholder.txt** -- fake fuzz testing claim
32+
33+
## Priority: P1 (HIGH)

0 commit comments

Comments
 (0)