Files
aji/docs/plan/conformance-suite.md
T
dev 929132c81d Phase 3: owner decisions on RFC 0012 implementation
- spec 04 §40: mutex<T> always linear, never copyable; mutex.take is the
  only way to dismantle it and needs no live borrow (hence no guard and
  no waiter); no unlock or destructor
- P3-10 (async buffer claims, E4303) moved to P7-10 with task-aware
  I/O; E4303 stays reserved; Phase 3 scope closed
- RFC 0012 erratum: consumption after send is E2002, use is E2001
- tests: take while borrowed (E2101), use after take (E3001)
2026-10-04 16:57:59 +03:00

95 lines
1.5 KiB
Markdown

# 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 (P7, with task-aware I/O);
- 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
Superseded by the Agent Language Evaluation Protocol: [`../evaluation/protocol.md`](../evaluation/protocol.md) (spec 14).