Research prompt: sweep-by-workload-class stratification#387
Draft
Augustas11 wants to merge 1 commit into
Draft
Conversation
Stages a Codex session prompt that will produce a research memo + v0.1 SPEC draft for extending the sweep search space from (context x concurrency) to (context x concurrency x workload_class), so autotune produces per-class winners rather than one compromise config across all workload shapes. Highest-impact perf/UX lever now that SPEC-028 (speculative decoding) is landing, because draft-token acceptance rate is workload-dependent. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Status
DRAFT — RESEARCH PROMPT ONLY, NO IMPLEMENTATION. This PR contains only a Codex session prompt (
specs/RESEARCH_SWEEP_WORKLOAD_CLASS_PROMPT.md) that stages the research + SPEC-drafting work. No code changes.Why this exists
beta/workloads.pyhas 6 named workload classes;beta/report.py::summarize_per_workloadandbeta/DECISION_CRITERIA.mdalready require per-workload metrics. But the sweep grid is class-blind — 7 contexts × 4 concurrency = 28 cells, no class axis. Autotune winners today are one compromise config across all workload shapes.Critical timing: SPEC-028 (chain speculative decoding, v0.2 audited on
main) is landing now. Draft-token acceptance rate is workload-dependent — reasoning cells gain +49% while code/RAG/long-ctx prefer chain. Without class-aware sweep, SPEC-028 ships with a single--num-draft-tokens Nchosen as compromise. Per-class sweep is the multiplier that makes SPEC-028 land at full strength.What has to achieve to be considered implemented
Ordered gates from research through ship:
Research session runs the prompt in this PR and produces:
docs/research/sweep-workload-class-2026-07.md— research memo answering questions §A–E with code citations.specs/SPEC-XXX-sweep-workload-class-stratification.mdv0.1-draft — normative FRs (search-space shape, winner-picking under SPEC-028, autotune-candidates.json extension, class-parameterized gates), non-goals, open questions, measurable acceptance criteria..omc/logs/sweep-workload-class-open-questions-2026-07.md— ≤5 items blocked on human decision.SPEC audit — SPEC v0.1-draft passes CODE + SECURITY + ARCHITECT audit lanes at 0-CRITICAL / 0-HIGH (mirrors the SPEC-015 v0.4 lock protocol).
Implementation (separate PR, gated on locked SPEC):
phase3-binary/dist/static/autotune-candidates.json(or class-partitioned sibling) with matching signature under the current or new static key.beta/report.pysurfaces per-class winner metadata alongside existing aggregate.Measurable acceptance (in the impl PR's tests):
air5produces per-class winners that outperform the baseline single-config winner on tok/s or TTFT-p95 for at least 3 of the 6 workload classes.Do NOT (until gates 1+2 close)
autotune-candidates.json.Related
a1be007).