docs: reorganize documentation layout
- docs/roadmap/ -> docs/plan/ (implementation-plan.md becomes plan/README.md) - docs/reference/design-decisions.md -> docs/design/decisions.md (+ DD-008..010) - SPEC.md and docs/spec/INDEX.md merged into docs/spec/README.md - new docs/design/open-questions.md: spec gaps found so far (Q-001..Q-018) - new docs/dev/architecture.md and docs/dev/testing.md - docs/README.md: layout, precedence, where new documents go - update links in README, AGENTS, CONTRIBUTING, sources and test docs
This commit is contained in:
1 parent
17a55a7fef
commit
4e4d753090
17 files changed
+384
-95
No files matched your search
@@ -0,0 +1,112 @@
|
||||
# Conformance Suite
|
||||
|
||||
## Reference programs
|
||||
|
||||
### 1. hello
|
||||
|
||||
Tests compiler/interpreter/runtime bootstrap.
|
||||
|
||||
### 2. file-copy
|
||||
|
||||
Tests:
|
||||
|
||||
- file resources;
|
||||
- regions;
|
||||
- slices;
|
||||
- fallible I/O;
|
||||
- cleanup paths.
|
||||
|
||||
### 3. tcp-echo
|
||||
|
||||
Tests:
|
||||
|
||||
- socket typestate;
|
||||
- tasks;
|
||||
- cancellation;
|
||||
- resource transfer.
|
||||
|
||||
### 4. append-log
|
||||
|
||||
Tests:
|
||||
|
||||
- checksums;
|
||||
- bounded memory;
|
||||
- crash/recovery behavior;
|
||||
- explicit fsync;
|
||||
- serialization;
|
||||
- resource safety.
|
||||
|
||||
### 5. parallel-map
|
||||
|
||||
Tests:
|
||||
|
||||
- slice partition proof;
|
||||
- scoped mutable borrows;
|
||||
- task join;
|
||||
- cancellation.
|
||||
|
||||
### 6. island-pipeline
|
||||
|
||||
Tests:
|
||||
|
||||
- cyclic mutable graph;
|
||||
- channel transfer;
|
||||
- sender invalidation;
|
||||
- receiver ownership;
|
||||
- freeze and concurrent reads.
|
||||
|
||||
## Negative verifier corpus
|
||||
|
||||
Must include:
|
||||
|
||||
- use after move;
|
||||
- overlapping mutable borrows;
|
||||
- region reset with live reference;
|
||||
- use of prior region generation;
|
||||
- island internal reference escape;
|
||||
- non-Send transfer;
|
||||
- non-Share concurrent read;
|
||||
- task escape;
|
||||
- async buffer use while in flight;
|
||||
- invalid atomic ordering;
|
||||
- missing capability;
|
||||
- undeclared effect;
|
||||
- linear resource leak.
|
||||
|
||||
## Concurrency stress modes
|
||||
|
||||
Run concurrency tests with:
|
||||
|
||||
```text
|
||||
1 worker
|
||||
2 workers
|
||||
N workers
|
||||
deterministic schedule
|
||||
randomized schedule
|
||||
forced yield at synchronization points
|
||||
slow consumer
|
||||
cancellation during waits
|
||||
I/O completion reordering
|
||||
```
|
||||
|
||||
## Agent benchmark
|
||||
|
||||
Compare Aji, Zig, Rust and C under the same task specifications and agent model.
|
||||
|
||||
Primary metric:
|
||||
|
||||
```text
|
||||
P(correct program | one generation/repair iteration)
|
||||
```
|
||||
|
||||
Secondary metrics:
|
||||
|
||||
- iterations to verified solution;
|
||||
- tokens consumed;
|
||||
- verifier/compiler repair loops;
|
||||
- runtime defects;
|
||||
- memory/concurrency bugs;
|
||||
- regression rate after change;
|
||||
- context required to modify the system;
|
||||
- runtime speed;
|
||||
- binary size.
|
||||
Reference in new issue
Block a user