Title: design(id): DoS suite & performance benchmark programme — adversarial CI coverage and per-interface regression gates · Issue #5685 · developing-today/code · GitHub
Open Graph Title: design(id): DoS suite & performance benchmark programme — adversarial CI coverage and per-interface regression gates · Issue #5685 · developing-today/code
X Title: design(id): DoS suite & performance benchmark programme — adversarial CI coverage and per-interface regression gates · Issue #5685 · developing-today/code
Description: Summary Two programmes in one design, because they share infrastructure and each is half as useful without the other: A denial-of-service test suite in CI — adversarial load and abuse coverage that runs continuously, extending #560 (F12....
Open Graph Description: Summary Two programmes in one design, because they share infrastructure and each is half as useful without the other: A denial-of-service test suite in CI — adversarial load and abuse coverage that...
X Description: Summary Two programmes in one design, because they share infrastructure and each is half as useful without the other: A denial-of-service test suite in CI — adversarial load and abuse coverage that...
Opengraph URL: https://github.com/developing-today/code/issues/5685
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"design(id): DoS suite & performance benchmark programme — adversarial CI coverage and per-interface regression gates","articleBody":"## Summary\n\nTwo programmes in one design, because they share infrastructure and each is half as useful without the other:\n\n1. **A denial-of-service test suite in CI** — adversarial load and abuse coverage that runs continuously, extending #560 (F12.18 DoS test suite in CI) from a test-suite idea into a full adversarial programme.\n2. **A performance benchmark programme** — repeatable, comparable benchmarks of a standard server and of advanced scaling techniques, per interface, run as **regression gates, not one-offs**.\n\nRelates to: #560.\n\n## Why both, why together\n\n- A system can pass benchmarks and still fall over under adversarial traffic; it can survive abuse and still be unusably slow for honest users. The load-generation, measurement, and environment machinery is largely the same — designing them separately duplicates it and guarantees the two suites drift into incomparable numbers.\n- Benchmarks without gates decay into dashboard decoration. DoS tests without baselines cannot distinguish \"attack worked\" from \"server was already slow.\" Each programme supplies what the other lacks.\n\n## Part 1 — DoS / adversarial load suite (extends #560)\n\n### Threat and load classes to cover\n\n- **Connection-level abuse:** slow clients (slowloris-style), connection floods, half-open churn, oversized / never-ending requests, rapid reconnect storms.\n- **Request-level abuse:** expensive-query amplification, large payload / blob abuse, decompression and parsing bombs within protocol limits, request floods against the costliest endpoints (identify them — do not guess).\n- **Protocol / interface abuse:** per transport surface (each protocol `id` speaks): malformed frames, replay floods, capability-check bypass attempts via volume, federation / bridge traffic floods from a single peer.\n- **State-exhaustion:** storage growth attacks (journal / blob / index bloat), memory pressure via concurrent worlds / sessions, descriptor and task exhaustion equivalents in the server's runtime.\n- **Fairness attacks:** one tenant / world / identity starving others; noisy-neighbour scenarios in multi-world hosting.\n- **Legitimate-surge control cases:** flash-crowd patterns that are NOT attacks — the suite must show the server degrades gracefully rather than treating all load as hostile (rate-limit false-positive measurement).\n\n### Suite design requirements\n\n- **In CI, but tiered:** a fast adversarial smoke tier on every relevant change, a heavier suite on a schedule / merge queue, and a soak tier run less frequently — with explicit budgets so CI time does not explode.\n- **Deterministic enough to gate on:** pass/fail expressed as server behaviour under a defined load profile (stays responsive to a health probe, rejects excess within stated latency, recovers within N seconds after load stops), not as raw throughput numbers that flake between runners.\n- **Recovery is part of the test:** every scenario asserts post-attack recovery — no restart required, no corrupted state, queues drain, honest clients succeed again.\n- **Blast-radius safety:** the suite must never be runnable against a shared / production target by accident — environment guards, dedicated fixtures, and load-generator isolation.\n- **Findings loop:** a failing DoS scenario files / links a hardening follow-up; the suite is a source of hardening tickets, not just a gate.\n\n## Part 2 — Performance benchmark programme\n\n### The standard baseline\n\n- **One standard server:** a single, fixed, documented reference configuration (hardware class or CI runner class, server build, single database, default settings) that is THE baseline every result is compared against. Changing the baseline is a versioned event, announced and re-measured, never a silent drift.\n- Baseline workload suite: representative honest workloads — identity operations, capability checks, journal append/read, world sync, blob transfer — at defined scales (single user, small community, large world).\n\n### Advanced scaling techniques (measured against the baseline)\n\nEach technique is benchmarked as baseline-vs-technique on identical workloads, reporting gain, cost, and complexity honestly — including \"no gain\" results:\n\n- **Workers:** additional worker processes / threads / async capacity — scaling curve as workers are added, and the point of diminishing returns.\n- **Additional / sharded databases:** extra database instances, read replicas, and sharded storage — which workloads actually benefit, cross-shard costs, and consistency-visible effects.\n- Other techniques the design identifies (caching layers, connection pooling, batching) — admitted only with the same baseline-comparison discipline.\n\n### Per-interface comparisons\n\n- Every benchmark that touches the network is run **per interface**: each transport / protocol surface `id` exposes, on identical workloads, so interface choice becomes a measured fact (throughput, latency percentiles, CPU per operation, behaviour under the Part 1 load profiles) rather than folklore.\n- A published comparison matrix: interface × workload × configuration (baseline / scaled), kept current by the programme rather than by one-off measurements.\n\n### Benchmarks as regression gates\n\n- **Thresholds, not eyeballs:** each gated metric has a regression budget (e.g. p95 latency or ops/sec may not regress beyond X% vs the stored baseline without an explicit, reviewed waiver recorded on the PR / issue).\n- **Noise discipline:** runner variance measured and published; gates tuned so real regressions fail and noise does not — including the procedure for re-baselining when a change is intentionally slower (with the trade-off stated).\n- **Artefacts:** every run stores machine-readable results (environment, build, config, workload, raw numbers) so results are comparable across months, not just across one PR.\n- **Cadence:** per-change micro-benchmarks for hot paths, scheduled full-suite runs for the matrix, and release-gate runs for the standard server.\n\n## Shared infrastructure\n\n- One load / workload generator framework serving both programmes (honest workloads and adversarial profiles as configurations of the same tool).\n- One results store and reporting format; dashboards are a view, never the only record.\n- Environment specification strict enough that \"works on my runner\" is diagnosable: pinned instance types or runner classes, warm-up rules, co-tenancy noise handling.\n\n## Non-goals\n\n- Production load testing or chaos programmes against live deployments (this is CI / dedicated-environment work).\n- Fixing every DoS weakness the suite finds — fixes are follow-on tickets; this programme finds, measures, and gates.\n- Benchmarking other systems as competitors (internal comparisons: baseline vs scaled, interface vs interface).\n- A general observability / metrics platform (consume what exists; only add what the gates require).\n\n## Acceptance criteria for the design deliverable\n\n- [ ] A design document covering both programmes, their shared infrastructure, CI tiering, and gating rules, linked from this issue.\n- [ ] The adversarial scenario catalogue (Part 1 classes above, made concrete per interface) with pass/fail and recovery criteria per scenario.\n- [ ] The standard-server baseline fully specified (environment, build, config, workloads, scales) and versioned.\n- [ ] The per-interface comparison matrix defined, with the scaling-technique comparison protocol (baseline-vs-technique, identical workloads).\n- [ ] Regression-gate rules: budgets, noise handling, waiver and re-baselining procedure.\n- [ ] Follow-on design tickets filed from the Decomposition sketch (or the sketch revised with reasons).\n\n## Decomposition sketch\n\nFollow-on design tickets to be filed from this issue (indicative; revise during the work):\n\n1. Design: shared load & workload generator — one framework for honest workloads and adversarial profiles.\n2. Design: DoS scenario catalogue per interface — concrete scenarios, load profiles, pass/fail and recovery assertions.\n3. Design: CI tiering for adversarial & benchmark suites — smoke / scheduled / soak tiers, time budgets, and environment guards.\n4. Design: the standard server baseline — reference environment, workload suite, scales, and baseline versioning.\n5. Design: scaling-technique comparisons — workers and additional/sharded databases vs baseline, measurement protocol.\n6. Design: per-interface benchmark matrix — workloads × interfaces × configurations, results format and publication.\n7. Design: regression gates — budgets, noise model, waiver and re-baselining procedure, results store.\n\n## Open questions\n\n- How deterministic can adversarial pass/fail criteria be on shared CI runners — and which scenarios must move to dedicated hardware to mean anything?\n- What is the \"standard server\" when contributors' and CI hardware differ — a fixed cloud instance class, a container with enforced limits, or a normalised scoring model?\n- Which single workload is most representative of real `id` usage today, and how will the programme notice when real usage drifts away from the benchmark workloads?\n- Sharding: at what measured point does the baseline actually need it — is the sharded configuration a real roadmap item or a benchmark-only curiosity?\n- Who may grant a regression waiver, and how is a pattern of repeated waivers surfaced before it becomes the de-facto baseline?\n- How long are benchmark artefacts retained, and what storage / CI-minute budget does the whole programme get?\n\n---\n\n*Expansion of #560: adversarial coverage plus a standing benchmark programme, with benchmarks as regression gates.*\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-04T23:10:06Z","url":"https://github.com/developing-today/code/issues/5685"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ced05491-af43-bed9-d9ba-3e4507786299 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 85D4:33E446:2E2282:3DD204:6B0616BE |
| html-safe-nonce | 273de85f7d1aac008c458ca3812351653c4fe30d2cd7428eeca1c9926326f148 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUQ0OjMzRTQ0NjoyRTIyODI6M0REMjA0OjZCMDYxNkJFIiwidmlzaXRvcl9pZCI6IjEyNTYxMjI4NDQ2MDY1MDI1OTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 80851e113956dc8e5eda54621fc60dfe6a524a5b44bced6dd2dbdc68587fb1b6 |
| hovercard-subject-tag | issue:6213159379 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/5685/issue_layout |
| twitter:image | https://opengraph.githubassets.com/97da58a849bfa271ee7ed96b0757af07728e846ff1b4187004eb5b932821891c/developing-today/code/issues/5685 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/97da58a849bfa271ee7ed96b0757af07728e846ff1b4187004eb5b932821891c/developing-today/code/issues/5685 |
| og:image:alt | Summary Two programmes in one design, because they share infrastructure and each is half as useful without the other: A denial-of-service test suite in CI — adversarial load and abuse coverage that... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width