返回 CodeWhale
persistence-backlog-budget.json
根目录 / scripts / persistence-backlog-budget.json
1 {
2 "_comment": "Frozen paused-consumer workload plus one-way ceilings for the actual persistence request channel. All 128 sends must remain accepted and the final sent version must be the one production PendingState would apply; retained count and bytes may decrease. Latency and macOS RSS ceilings include measurement noise headroom and can be tightened after a bounded implementation.",
3 "_rebaseline_2026_08_08": "v0.9.5 journal compatibility repair: queued snapshots now retain one canonical journal and materialize legacy messages only at the disk boundary. Retained payload fell from the broken candidate's 16924032 bytes to an observed 8527991-8528000 bytes across repeated clean samples. The 8529280-byte ceiling is 40448 bytes (0.48%) above the pre-journal 8488832-byte baseline and includes 1280 bytes (0.015%) of serialization-noise headroom above the largest observed sample; it does not permit duplicate history.",
4 "document_kind": "codewhale.persistence_backlog_budget",
5 "schema_version": 2,
6 "baseline_receipt": "scripts/persistence-backlog-baseline-receipt.json",
7 "fixture": {
8 "fixture_id": "paused-production-channel-session-snapshot-v1",
9 "request_variant": "session_snapshot",
10 "payload_estimator": "retained-saved-session-json-bytes-v1",
11 "paused_consumer": true,
12 "requests_attempted": 128,
13 "content_bytes_per_request": 65536,
14 "single_session_id": true,
15 "expected_applied_version": 127
16 },
17 "baseline_observation": {
18 "accepted_requests": 128,
19 "applied_version": 127,
20 "retained_queued_requests": 1,
21 "estimated_retained_payload_bytes": 66625,
22 "enqueue_elapsed_ns": 301246,
23 "rss_during_delta_bytes": 2801664,
24 "rss_after_delta_bytes": 6242304,
25 "provenance": {
26 "platform": "macos",
27 "source_sha": "9bb1a5e8dbc53238ae827e184a4b1dc9720fc0e3",
28 "source_dirty": false,
29 "rustc_version": "rustc 1.98.1 (48a229cea 2026-09-01)",
30 "cargo_version": "cargo 1.98.1 (797e8a9bc 2026-08-05)",
31 "build_profile": "test",
32 "sample_count": 1
33 }
34 },
35 "ceilings": {
36 "retained_queued_requests": 4,
37 "estimated_retained_payload_bytes": 96256,
38 "enqueue_elapsed_ns": 25000000,
39 "rss_during_delta_bytes": 33554432,
40 "rss_after_delta_bytes": 33554432
41 },
42 "_rebaseline_2026_09_15": "Sender-side latest-wins coalescing (#6212): try_send absorbs each request into a shared pending state and wakes the actor through a bounded command channel, so a paused consumer retains one coalesced entry per session plus one wake command instead of one request per send. Retained payload fell from 8527994 bytes (128 queued snapshots) to an observed 66625-66625 bytes (1 coalesced entry); the 96256-byte ceiling is ~45% above the observed sample and still bounds a second concurrent session's snapshot plus wake overhead; retained_queued_requests ceiling 4 allows the fixture's single session plus headroom for the wake-command epoch."
43 }
44
44 lines JSON