Phase 3: bundle measurement and draft exit review
bundle 35 324 tokens (+0.6 % since RFC 0012 integration; Phase 3 total +29.2 %); exit review drafted, open on P3-11
This commit is contained in:
1 parent
9f322cfe31
commit
0c727eb363
3 files changed
+31
-1
No files matched your search
@@ -46,5 +46,6 @@ Growth never blocks a merge automatically; a complex feature can be justified, b
|
||||
| RFC 0011 tasks (Phase 3, part 1) | 19 | 33 | 116 126 | 18 082 | 30 333 (+10.9 %) | 30 433 (+10.9 %) | 31 316 (+10.9 %) |
|
||||
|
||||
| RFC 0012 waits, channels, select, mutex | 19 | 38 | 133 781 | 20 748 | 35 119 (+15.8 %) | 35 219 (+15.7 %) | 36 238 (+15.7 %) |
|
||||
| Phase 3 implementation | 19 | 38 | 134 576 | 20 884 | 35 324 (+0.6 %) | 35 424 (+0.6 %) | 36 453 (+0.6 %) |
|
||||
|
||||
RFC 0011 crossed the 10 % warning line (its own estimate said "below 10 %"): four new sections in spec 04 (tasks, loans, `Send`/`Share` table, scheduler). Below the 20 % review threshold. RFC 0012 (+15.8 %, estimate 12–16 %): five sections in spec 04 (waits and cancellation, channels, select, mutex, critical-section rule). Phase 3 total since the Phase 2 baseline: +28.4 %. Next measurement: after the Phase 3 reference programs.
|
||||
RFC 0011 crossed the 10 % warning line (its own estimate said "below 10 %"): four new sections in spec 04 (tasks, loans, `Send`/`Share` table, scheduler). Below the 20 % review threshold. RFC 0012 (+15.8 %, estimate 12–16 %): five sections in spec 04 (waits and cancellation, channels, select, mutex, critical-section rule). Implementation-time spec corrections (mutex linearity, `mutex.take` rules): +0.6 %. Phase 3 total since the Phase 2 baseline: +29.2 %. Next measurement: after the E-S smoke test, or with the next RFC.
|
||||
@@ -46,5 +46,21 @@
|
||||
"o200k_base": 35219,
|
||||
"qwen2.5": 36238
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Phase 3 (implementation, before exit)",
|
||||
"language": "aji",
|
||||
"air": 0,
|
||||
"phase": 2,
|
||||
"files": 19,
|
||||
"sections": 38,
|
||||
"bytes": 134576,
|
||||
"lines": 2002,
|
||||
"words": 20884,
|
||||
"tokens": {
|
||||
"cl100k_base": 35324,
|
||||
"o200k_base": 35424,
|
||||
"qwen2.5": 36453
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -42,3 +42,16 @@ Non-normative. Part of the [implementation plan](README.md).
|
||||
## Conformance tests to add
|
||||
|
||||
Negative corpus entries owned by this phase: non-Send transfer, non-Share concurrent read, task escape. Plus E4101, E4302. Scheduler tests for every synchronization primitive (testing policy in AGENTS.md).
|
||||
|
||||
## Exit review (draft — closes when P3-11 is decided)
|
||||
|
||||
- Exit criterion met: `program_parallel_map` and `program_channel_transfer` (plus `program_tcp_echo_tasks`) run in the deterministic profile under randomized schedules: `schedules: 30` in the suite and `--stress 1000` (seeds 0…999 × quanta 1, 2, 7 and the test's own) without a failure.
|
||||
- Decision records accepted and integrated: RFC 0011 (structured tasks, deterministic scheduler), RFC 0012 (waits and cancellation, channels, select, mutex); owner errata after implementation: `mutex<T>` always linear, `mutex.take` rules, E2002 after `send`.
|
||||
- Features published and supported: `tasks`, `cancellation`, `channels`, `sync`. Reserved: `task_transfer`, `task_borrow_returns`, `channel_transfer`, `receiver_dup`, `guard_transfer`, `rwlock`.
|
||||
- Questions resolved: Q-013 (seeded choice among ready `select` arms), Q-014 (Send/Share for capability-holding aggregates).
|
||||
- Conformance: 207 tests pass (Phase 3: 18 run, 9 accept, 27 reject). Every Phase 3 code has accept and reject tests: E4001, E4002, E4101, E4301, E4302, E4304, E4305; `E3101` for `task.spawn`/`task.wait`; `E0006` for each reserved feature.
|
||||
- Stress and fuzzing: CI runs `--stress 200`; 6 000 extra schedule runs and 4 350 + 4 000 mutants (task and coordination corpora) found no failure and no crash.
|
||||
- Agent Reference Bundle: 27 347 → 35 324 tokens (cl100k) over Phase 3 (+29.2 %), recorded per RFC in `docs/agent/history.json`.
|
||||
- Moved out: P3-10 (async buffer claims, `E4303`) to P7-10. Deferred: `RwLock`, several receivers, atomics (Phase 5).
|
||||
- Known limitations: the hosted profile runs tasks cooperatively on one thread and a blocking host I/O call blocks every task (spec 04 §36.1), so `program_tcp_echo_tasks` runs only in the deterministic profile; no systematic exploration yet (DPOR, Phase 5).
|
||||
- Open: P3-11 (`thread.block` and a blocking pool) — proposed to move to P7 with task-aware I/O.
|
||||
Reference in new issue
Block a user