T08 complete: benchmarks, determinism evidence, and one missed metric
evidence/CB-EV-0001-game-kernel.md records the acceptance run against the CB-RES-0001 baseline. Met: AM-1 rule coverage 58/58; AM-6 throughput 1.65M events/s against a 100k target; AM-7 scaling 1.08x at 20x workload and a 100k-event replay in 4.13ms against a 5s budget; AM-8 zero divergence over 10 full runs with fmt and clippy clean; AM-10 zero foreign collection types. Not met and reported as such: AM-4 at 33 transitive crates against a <=20 target. Attribution is in the evidence file. The recommended fix is making serde_yaml optional (-5, a test-only concern), after which the remainder is sha2 and rand_chacha, which K5 and K7 require. We are not hand-rolling crypto primitives to win a dependency count. AM-12 is recorded as uncomputable: per-task token counts were never instrumented, and inventing a USD figure would defeat the metric. A measurement error was found and corrected before publication. The first benchmark reported 9.3M events/s on a flat curve. The workload had a player selecting SUPPORT while parked at Stress 4, so GR-R03 rejected it, rounds never completed, and throughput was computed for rounds that never happened. The bench now asserts the per-round event count and panics rather than measuring a stalled loop. The corrected figure is 5.6x lower. The evidence file states plainly what the boardgame.io comparison does and does not support: the ~450x command-rate ratio is cross-runtime and cross-feature-set, so it is a direction, not a verdict, per the InnerLoop parity-cap rule. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
85d93a9e3c
commit
eb1378e667
4 changed files with 569 additions and 37 deletions
|
|
@ -161,7 +161,7 @@ the baselines. An empty-but-compiling, measurable loop bed.
|
|||
|
||||
```task
|
||||
id: CB-WP-0001-T08
|
||||
status: todo
|
||||
status: done
|
||||
priority: medium
|
||||
state_hub_task_id: "3a42ff70-f3c6-4e3e-b022-f701729e71ff"
|
||||
```
|
||||
|
|
@ -172,6 +172,13 @@ scenarios pass headless, replay is deterministic, and every acceptance
|
|||
metric meets or beats its recorded baseline — with the comparison numbers
|
||||
committed as evidence.
|
||||
|
||||
**Outcome:** evidence/CB-EV-0001-game-kernel.md. 21 scenarios pass, AM-1
|
||||
rule coverage 58/58, AM-6/AM-7/AM-8/AM-10 met with margin. **AM-4 is not
|
||||
met** (33 crates vs ≤20) and is carried into T09 as a decision: make
|
||||
serde_yaml optional, or move a target that the spec's own K5/K7
|
||||
contracts make unreachable. AM-12 could not be computed honestly because
|
||||
per-task token counts were never instrumented — also a T09 input.
|
||||
|
||||
## Task: Retrospective — harden the loop from what the example taught
|
||||
|
||||
```task
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue