{
 "protocol": "AI answers over company data, outbound syncs round: warehouse fields pushed back into operational tools",
 "status": "Frozen before any run of the declared seeds. Earlier rounds, their files and results are unchanged. No model is called and nothing costs money.",
 "question": "When a warehouse pushes computed fields back into a CRM-style record store and a chat-style message sink, which sync designs leave the destination matching the warehouse, and how often do retries, duplicate deliveries, partial failures, late arrivals and edits made by people leave it wrong or stale? Which checks would show it? No direction is claimed in advance.",
 "world": {
  "accounts_at_start": 1000,
  "new_accounts_per_cycle": 3,
  "cycles": 48,
  "seconds_per_cycle": 3600,
  "segments": [
   "smb",
   "mid",
   "enterprise",
   "public"
  ],
  "new_segment_from_cycle": 12,
  "new_segment_share_of_changes": 0.3,
  "store_allows_new_segment_from_cycle": 36,
  "managers_at_start": 40,
  "new_manager_cycles": [
   8,
   20,
   32
  ],
  "new_manager_share_of_reassignments": 0.3333,
  "store_knows_new_manager_after_cycles": 6,
  "p_health_change": 0.08,
  "health_step_sd": 12,
  "health_pull": 0.2,
  "health_mean": 70,
  "health_start_sd": 15,
  "p_segment_change": 0.005,
  "p_manager_change": 0.005,
  "risk_flag_when_health_below": 40,
  "p_person_manager_edit": 0.003,
  "p_person_health_edit": 0.002
 },
 "destinations": {
  "write_batch_rows": 100,
  "read_batch_rows": 200,
  "history_page_messages": 100,
  "history_visibility_lag_seconds_max": 120,
  "idempotency_key_window_cycles": 24,
  "allowance_window_cycles": 24,
  "chat_posts_per_second": 1
 },
 "faults": {
  "base_rates": {
   "timeout_before": 0.02,
   "timeout_after": 0.02,
   "server_error": 0.02,
   "duplicate": 0.01,
   "late": 0.01,
   "row_error": 0.005,
   "read_timeout": 0.02,
   "read_error": 0.02
  },
  "levels": {
   "none": 0.0,
   "low": 0.5,
   "base": 1.0,
   "high": 2.0
  },
  "late_copy_delay_cycles": [
   1,
   2
  ],
  "none_level": "no transport faults, no edits by people, no allowance; validation stays"
 },
 "transport": {
  "retries": 3,
  "backoff_seconds": [
   2,
   4,
   8
  ],
  "timeout_seconds": 30,
  "request_seconds": 1,
  "sync_starts_second_of_cycle": 60
 },
 "designs": {
  "full_overwrite": "Full overwrite",
  "diff_last_sent": "Diff against the last sent state",
  "read_before_write": "Diff against the destination (read before write)",
  "ledger_keys": "Idempotency keys plus a sync ledger",
  "ledger_read_back": "Ledger with keys, plus a read-back every sixth cycle"
 },
 "manager_rules": [
  "warehouse",
  "destination",
  "versions"
 ],
 "checks": {
  "reconciliation_every_cycles": 6,
  "duplicate_window_cycles": 6,
  "drift_count_threshold": 5,
  "drift_total_threshold": 0.005
 },
 "runs": {
  "seeds": [
   1,
   2,
   3,
   4,
   5,
   6,
   7,
   8,
   9,
   10
  ],
  "base_allowance": 300,
  "allowance_sweep": [
   150,
   600
  ],
  "conditions": [
   "full_overwrite|low|300|warehouse|main",
   "diff_last_sent|low|300|warehouse|main",
   "read_before_write|low|300|warehouse|main",
   "ledger_keys|low|300|warehouse|main",
   "ledger_read_back|low|300|warehouse|main",
   "full_overwrite|base|300|warehouse|main",
   "diff_last_sent|base|300|warehouse|main",
   "read_before_write|base|300|warehouse|main",
   "ledger_keys|base|300|warehouse|main",
   "ledger_read_back|base|300|warehouse|main",
   "full_overwrite|high|300|warehouse|main",
   "diff_last_sent|high|300|warehouse|main",
   "read_before_write|high|300|warehouse|main",
   "ledger_keys|high|300|warehouse|main",
   "ledger_read_back|high|300|warehouse|main",
   "full_overwrite|base|150|warehouse|allowance",
   "diff_last_sent|base|150|warehouse|allowance",
   "read_before_write|base|150|warehouse|allowance",
   "ledger_keys|base|150|warehouse|allowance",
   "ledger_read_back|base|150|warehouse|allowance",
   "full_overwrite|base|600|warehouse|allowance",
   "diff_last_sent|base|600|warehouse|allowance",
   "read_before_write|base|600|warehouse|allowance",
   "ledger_keys|base|600|warehouse|allowance",
   "ledger_read_back|base|600|warehouse|allowance",
   "full_overwrite|none|None|warehouse|control",
   "diff_last_sent|none|None|warehouse|control",
   "read_before_write|none|None|warehouse|control",
   "ledger_keys|none|None|warehouse|control",
   "ledger_read_back|none|None|warehouse|control",
   "read_before_write|base|300|destination|ownership",
   "read_before_write|base|300|versions|ownership",
   "ledger_read_back|base|300|destination|ownership",
   "ledger_read_back|base|300|versions|ownership"
  ],
  "condition_count": 34,
  "run_count": 340
 },
 "analysis": "Per design, never pooled across designs: median and range over the 10 seeds. A difference between two designs is clear when it has the same sign in all 10 seeds. The checks table pools the seeds of one condition.",
 "worked_example": "Seed 1, base level: the first account whose health score a person types in, through designs 2, 3 and 5.",
 "outputs": {
  "results": "outbound/results/",
  "runner": "outbound/run.py",
  "analysis": "outbound/analyze.py",
  "page": "outbound-sync.html"
 },
 "pre_freeze_checks": "Mechanics tests on small fixtures, and a smoke run on seed 999 (not a declared seed) for errors and timing; no measure was read.",
 "file_sha256": {
  "DESIGN-outbound.md": "31b4d3430cda583b1ef39729ef8528dce90a03ac1faf7e1d17d130ad5c223828",
  "outbound/__init__.py": "f512fa015b9cf17b164d82521a29048edab3139b344196b9a829c68aec517ca3",
  "outbound/world.py": "167391af556a3a26f6a0a276bbe573755b9e6a1fcebd6b10a426559f144e80cd",
  "outbound/faults.py": "301aed6ca8478d19c14a9b7a37f2810e1f389f6f6463ecc86d34640668e26c6d",
  "outbound/destinations.py": "c4c1a0298b0976d66328817fbe50149eab1b756f95a881e2e10ba55850660cec",
  "outbound/designs.py": "f9608136ee904825d653965d27933d9a1ca6c28f42f09a48b7ad50ea2fc16bc3",
  "outbound/checks.py": "ab01d993c9be4b53c0119f16b8e9203bdffc058fb64253af7b27ad8721224941",
  "outbound/measure.py": "381befa305bc49d6e7ec85429109560c9bf0e11bcffec416e41f33cab1807ca4",
  "outbound/run.py": "368ccb61d2577d1a83f943c986c28f46e32353672f6728397c236f3c2ec49533",
  "outbound/analyze.py": "d252af96e5453201bdb6a70a00d915dc94faf188f1c32ebafbae3e628750adc0"
 }
}
