Skip to content

docs: qualify Sarathi chunked-prefill budget case - #277

Merged
Dong1017 merged 5 commits into
InferMatrixLab:mainfrom
Dong1017:codex/issue91-sarathi-public
Oct 31, 2026
Merged

Dong1017 merged 5 commits into
InferMatrixLab:mainfrom
Dong1017:codex/issue91-sarathi-public

Conversation

@Dong1017

@Dong1017 Dong1017 commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator

Governing Issue and delivery slice

Refs #91.

This PR adds one original attributed case.sarathi-chunk-budget under the existing methods/optimization-search-policy owner, grounded in the fixed official OSDI 2024 edition. It covers decode/partial-prefill/new-request accounting, chunk overhead and Table 4's actual TTFT/TBT tradeoffs. Admission, preemption and calibration remain with their existing owners.

The identity and central mechanism overlap closed-unmerged #156. This independently written case does not reopen that PR, recover the missing historical archive, or claim novelty over unavailable supplier synthesis. Raw PDF/text/images, reproduced figures, long quotations and prior proposal prose are excluded. Raw source redistribution/adaptation rights remain UNKNOWN; the case remains candidate with empirical not_run.

Changed artifacts and evidence

The case document and source record are linked from the existing owner and both matrices. The native inventory has 77 skills and 7 cases. The integrated base is ecca7e9136d962747f42860f58e332f45b0aa358. Normal canonical merge M is c5e13944c06a8a03ab7015a8933981a983e42186; native projection commit G and final head are 0750bc61532b6b67e7385557d572e2f4e1cd2203. The merge preserves all earlier contribution commits and current-main files, with canonical source, metadata and matrix bytes unchanged from the previously reviewed public head e3db289c42d6d37374755a05f28b1107da4f73ae.

Both native generators ran from M. All 77 catalog records cite M and retain their existing source hashes and skill metadata. Native coverage regeneration returns the same view bytes: the merged main adds no registered-skill, matrix or protocol readset inputs to that view.

Checks and dependencies

  • Passed: both native generators' --check, canonical/current-main preservation and git diff --check.
  • Passed at the final head: source PDF digest, typed paper/candidate/not_run/UNKNOWN-license checks, real case and owner bundle/resource reads, 364 local links and unavailable-revision rejection.
  • Six selected tests passed for normalized ownership/defaults, all seven case records and bundle links, normalized source identities, and the exact committed coverage view.
  • Independent local integration review by actual gpt-6.1-sol/ultra found no actionable findings at this complete final head; no public GitHub approval is claimed. Applicable hosted Ready, installed-package and knowledge-model-policy results are tracked in Checks. Historical results remain bound to their original revisions.
  • Local checks use existing Python 3.13.5 with an explicit -I -S bootstrap over existing dependency paths. Earlier optional broad local suite/build jobs had no completion receipt; no local wheel or installed-package result is claimed, and those broad jobs were not repeated.
  • No dependency upgrade, model/device/paid execution, efficacy evaluation or local service/performance result is included. Software checks do not promote the case.

Remaining work and Issue closure

The broader #91 queue and original-archive recovery remain separate. Goal acceptance belongs to @Dong1017. Merge readiness requires fresh review and all applicable checks at the final head; Issue completion and closure are not claimed by this contribution.

Knowledge authorship declaration

{
  "schema_version": 1,
  "head_sha": "0750bc61532b6b67e7385557d572e2f4e1cd2203",
  "human_only": false,
  "material_ai_authors": [
    {
      "tool": "Codex",
      "model_id": "gpt-6.1-sol",
      "effort": "max",
      "role": "author"
    }
  ]
}

Retain mixed-batch accounting, chunk overhead and the paper's TTFT/TBT
tradeoffs in one attributed candidate under the existing search-policy owner.
Keep empirical validation not_run and raw source reuse rights UNKNOWN.

Agent-assisted-by: Codex / gpt-6.1-sol [effort=max] (author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
Refresh the native catalog from the committed canonical source without
changing source state, empirical status or attribution.

Agent-assisted-by: Codex / gpt-6.1-sol [effort=max] (author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-31T01:55:53.702279Z
We couldn’t complete this review. Comment @codex review to try again.
9c03d7f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Skill evaluation

Automatic execution / cumulative PR budget: {"reason":"Trusted configuration or pricing missing, invalid or expired","remaining_usd":"unknown","reserved_or_unresolved_usd":"unknown","spent_or_legacy_usd":"unknown","state":"blocked"}

Advisory: obtain missing evidence

Retained evidence availability: planned / unexecuted. No approval or merge authorization is issued.

  • Retained evidence is planned / unexecuted.
  • Uncovered/unsupported scope needs a case or explicit reviewer disposition.

PLANNED: execution is not authorized by knowing this hash.
Outcomes: {"fix":0,"inconclusive":0,"missing_pair":1,"regression":0,"unchanged_correct":0,"unchanged_incorrect":0}
Earlier revision results are stale for this plan.

Selected comparisons: 1 · Estimated task calls: 2.
Uncovered/unsupported changes: 82. Gaps never count as passes.

Applicable only while these revisions and inputs match the current PR.
Paid execution requires trusted label authorization and cumulative PR reservation. Unknown accounting blocks new paid calls; planning is not execution.
Pipeline evidence only; offline fixed outputs do not establish skill efficacy.
Evidence and logs · Retention: 30 days.
Outcomes are historical; verifiable only before Unix time 1796011819 while the linked artifact is available. Expired evidence is unverified.

Plan bindings, budget, frozen exam and advisory details

Unchanged-correct is valid neutral evidence, not incremental benefit.
Content/source review and authorship admission remain separate.
Trusted regrading checks retained answers, not model/hardware provenance or a hostile executor; this is not an efficacy certification.

Per-case outcomes (discovery excluded; regressions and gaps first):

[]

Showing at most 20 of 0 pairs; the evidence link contains all outcomes, including omitted regressions/gaps.

Plan SHA-256: c328b2fe6ed12e738b2c216feba7566679fe4e2d3f22c59c48703f2befadffbe
Base: ecca7e9136d962747f42860f58e332f45b0aa358 · Head: 0750bc61532b6b67e7385557d572e2f4e1cd2203
Trusted implementation: ecca7e9136d962747f42860f58e332f45b0aa358

Model/settings: {"effort":"not_applicable","name":"claude-opus-5-5"}
Budget: {"comparisons":1,"estimated_calls":2,"limits_per_comparison":{"campaign_seconds":600,"max_task_calls":2,"repeats":1,"timeout_seconds":180,"token_stop_new_trials":200000},"provider_config_sha256":"b28d80f8194fbe0f5a9f01515efb24b218979fd45f702776560da276f4b30d04","reservation":{"amount":"20.34","currency":"USD","group":"default","limit":"200","per_request":"10.17","pricing_sha256":"2a82453ec18b75b92e12f9a9c18e6b57811a3ef593c31e4639b839df218cac39","requests":2}}

Skill Comparison Cases Estimated calls
optimization-search-policy update case-05 (holdout) 2

Frozen exam hashes: {"cases":"a0dd4e1615402a3a629f925c15435470095c27eeac54c4a2080c2d874abeb031","grader":"e25cfee943052aaefbddf3f545fe6d56d95ab1edb9723cd9353feeabc954ea9a","schema":"46ed2e63dadd5f9fa60107ff58b020554b42f47472ca80b4de9add79d92f8449"}

Provider/settings: {"client":{"api_version":"2023-06-01","endpoint":"https://yibuapi.com/v1/messages","kind":"anthropic-messages-full-context-v1","max_output_tokens":4096,"max_read_bytes":32768,"max_request_bytes":262144,"max_requests":1,"max_tool_calls":12,"provider":"yibuapi"},"limits":{"token_stop_new_trials":200000},"model":{"effort":"not_applicable","name":"claude-opus-5-5"},"pricing":{"currency":"USD","expires_at":1793271228,"group":"default","max_input_tokens":1000000,"model":"claude-opus-5-5","rate_evidence":"https://github.com/InferMatrixLab/InferRSI/issues/215#issuecomment-6467531341","rates":{"cache_read":"0.4","cache_write":"10","input":"8","output":"40"},"request_fee":"0","unit":"per_million_tokens"},"spend_limit":{"amount":"200","currency":"USD"}}

Uncovered / unsupported paths (82)
  • uncovered: "docs/reference-matrix.md"
  • uncovered: "docs/searchspace-matrix.md"
  • uncovered: "docs/skill-coverage.md"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/README.md"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/ascend-aclgraph-capture-replay.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/ascend-device-health.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/ascend-distributed-parallel.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/ascend-graph-mode.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/ascend-model-adaptation.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/ascend-operator-profiling.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/ascend-operator-tuning.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/ascend-optimization-casebook.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/ascend-performance-analysis.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/ascend-video-diffusion-optimization.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/ascendc-tiling-design.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/cann-attribution-overlap.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/torchnpu-device-memory-lifecycle.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/ascend/skills/torchnpu-pinned-host-memory-lifecycle.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/assess-serving-preemption.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/assess-split-backward-schedule.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/audit-fixed-workload-claim.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/audit-h3-metal-fasth3-semantics.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/audit-h3-runtime-residency.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/audit-llama-runtime-state.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/audit-recurrent-kv-finalization.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/audit-sd-cpp-residency.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/audit-sglang-diffusion-lifetimes.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/audit-vllm-kv-lifetimes.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/bound-windowed-attention-replay.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/budget-speculative-verification.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/calibrate-serving-simulation.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/cgroup-resource-controls.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/checkpoint-recovery-consistency.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/choose-parallel-training-plan.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/cite-check-downstream-pr.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/claim-contract.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/comfy-ui.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/competitor-scan.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/dcp-async-save-performance.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/dense-performance-evidence.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/diagnose-vllm-admission-pressure.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/diffusers-invocation-state.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/draft-acceptance-issue.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/dwarfstar.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/evaluate-elastic-serving-placement.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/generation-cache-lifecycle.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/host-memory-management.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/host-overhead-optimization.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/husky.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/inference-benchmark-design.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/inference-optimization-casebook.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/kernel-writing-guide.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/kv-tier-management.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/lazy-evaluation-stream-lifetimes.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/lily.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/lithos-metal.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/local-dream.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/mistral-rs.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/mlc-llm.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/mlx-swift-lm.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/npu-skill-factory.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/optimization-search-policy.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/os-process-placement.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/performance-ceiling-analysis.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/plan-activation-residency.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/project-maya.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/repository-evolution-analysis.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/rsi-evidence.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/skill-evolution-playbook.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/splash.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/storage-io-measurement.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/training-input-pipeline.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/training-resource-budget.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/video-diffusion-optimization.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/vllm-metal.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/weight-loading-optimization.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/cuda/skills/audit-afd-p2p-exchanges.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/cuda/skills/audit-flare-session-lifecycle.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/cuda/skills/diagnose-attention-bottlenecks.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/cuda/skills/host-overhead-profiling.json"
  • uncovered: "src/inferrsi/data/repo_packs/inferrsi/knowledge/cuda/skills/reason-hopper-kernels.json"
  • uncovered: "tests/test_knowledge_contract.py"

@Dong1017 Dong1017 added the area:knowledge Knowledge line: packs, skill library, knowledge admission label Oct 31, 2026 — with ChatGPT Codex Connector
Refresh the native coverage projection for the committed Sarathi case and
its provenance readset without changing canonical source content.

Agent-assisted-by: Codex / gpt-6.1-sol [effort=max] (author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for the bounded source-only candidate slice at e3db289c; I found no blocking content or packaging issue.

  • The decode → partial-prefill → new-request accounting, chunk overhead, and Table 4 TTFT/TBT tradeoff match the fixed OSDI edition. The case avoids claiming a universal budget or current-engine support.
  • Current-head Ready checks and the latest declaration status passed. Skill Eval is planned/unexecuted; my recommendation covers attributed source guidance with candidate / not_run preserved, not empirical skill or model benefit.
  • Integration remains with the existing author, @Dong1017. After another of PRs #277–#279 lands, preserve all canonical additions, commit the combined source snapshot, regenerate the native catalog and coverage view, then verify the new head. In particular, #277/#278 share the search-policy owner; choosing one generated side would lose the combined projection.
Evidence and scope
  • Reviewed head: e3db289c42d6d37374755a05f28b1107da4f73ae.
  • API base: ffb77f9a168ba1cb22f7ba261f289d24dbb6698f; assessed main: 3ece458ceaa92c5dad8d8e0b1e782a6961400b96.
  • Hosted tested merge: 49947440bfa8ffb7874d7665f603af301fc1ed93, with verified parents main + reviewed head. Ready run: Python 3.10/3.11 full-check and installed-package jobs, plus KV task qualification succeeded. The 3.10 job reports 3168 passed, 13 skipped and 284 passing subtests. Latest declaration run succeeds; earlier failed runs remain historical. Declaration compliance does not verify actual author settings.
  • Scope: Sarathi case/record, owner procedure/metadata, both matrices, case-count assertion and all generated catalog/coverage changes. Canonical source snapshot 84207eaaccb7987612a115f80a85c61a4c68cd56 is reachable; only projections change between it and this head. Changed owner/resource hashes match the catalog; sidecar fields are preserved, with the reader's expected name/description fields added. Official paper bytes match the recorded PDF SHA-256. Source locations and historical results were checked; I did not reproduce the paper's experiments.
  • Skill Eval plan: 1 selected comparison(s), 92 uncovered/unsupported changes; execution skipped with unavailable/expired trusted configuration/pricing. These gaps are explicitly retained for this source-only review, with no efficacy acceptance or candidate promotion. Earlier incomplete bot reviews are not approvals.
  • Integration scope is conditional on the peer versions: #277 e3db289c42d6d37374755a05f28b1107da4f73ae; #278 7ef53189343c4bf04fc9e31b4d80f9644482cdfc; #279 cf0b7022761fa83361f986e3b37c2031ad33fd8d. Their combination has not been tested. Main's intervening activation change does not alter these knowledge inputs; each hosted merge already includes that main revision.
  • This review task made no implementation changes and ran no local pytest, model, GPU or paid evaluation. The posting account is also the PR author account, so this is a COMMENTED review, not GitHub APPROVED. It grants no merge, execution or whole-tracker acceptance authority.

Preserve the reviewed canonical case and all current-main files before regenerating native catalog and coverage projections.

Agent-assisted-by: Codex / gpt-6.1-sol [effort=max] (author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
Run both native generators against the committed combined source tree. Retain all skill metadata, source hashes and candidate validation limits.

Agent-assisted-by: Codex / gpt-6.1-sol [effort=max] (author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
@Dong1017
Dong1017 merged commit 55c2afd into InferMatrixLab:main Oct 31, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:knowledge Knowledge line: packs, skill library, knowledge admission

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant