Skip to content

knowledge: audit Infera serving-search result provenance - #332

Merged
Dong1017 merged 9 commits into
InferMatrixLab:mainfrom
Dong1017:codex/issue91-infera-source
Nov 9, 2026
Merged

Dong1017 merged 9 commits into
InferMatrixLab:mainfrom
Dong1017:codex/issue91-infera-source

Conversation

@Dong1017

@Dong1017 Dong1017 commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Refs #91. Refs #177.

Problem and scope

An Infera result labeled source="inference" can represent dry, analytical or anchor-assisted paths. Its best-summary output, retained history and scalar SLO checks also describe different evidence. This source-only amendment adds one implementation-bound reference to the existing calibrate-serving-simulation owner and a short route from optimization-search-policy.

The reference distinguishes measured anchors from target projections, a deterministic seed sweep from an LLM continuation, retained evaluated rows from future duplicate-evaluation skips, and the scalar parser from the separate DES percentile report. It preserves missing/unknown SLO-field limits and the code/documentation disagreement about split P/D queues. Trace-bound ranking calibration is an explicitly proposed independent study, with no supplied runner, calibration result or service guarantee.

Eight canonical paths contain two owner-local references, the two existing owner route/metadata pairs and the two matrix mappings. Existing Vidur knowledge and generic search rules remain intact. No registered skill, engine, planner, runtime, schema or experiment implementation is added.

Fixed source and provenance

  • AMD-AGI/Infera, commit ff1136e4a51998eba2933ed63cfb9c10120f86ea, tree 7ca812406c61b52452270c4c8c53d1582d510376.
  • The ordinary source record distinguishes 16 selected paths with full, bounded or definition-search inspection. Forty retained source/current-main files were checked against pinned Git blob and byte identities. The complete 2,861-entry tree is a path inventory, not a whole-repository audit.
  • Selected original code/documentation follows the pinned root MIT license. Dependencies, models, traces and third-party assets have separate rights. The public files contain original attributed prose, immutable links and source/readset identities; no upstream implementation, raw docs, tests, traces or model artifacts are copied.
  • The source history retains M1 d4a1922a452ed5b10f4cbd303d4f1d90e871f4b9 and corrected M2 fe3891c8db8c0fe38c8d5fd97b287ba19de82cf9 over main 663f3b327998526a13aa31e72ad729025c18983c. Canonical M3 f8a7e832feab05f8262ebe4057f34e2c8a48fd95 adds the existing calibration owner ID to the reference-matrix row so the original coverage parser attributes Infera correctly.

Current-main integration (head 5656e04e86f8d0f4a6741984436868991de77877)

This addresses the integration follow-up and the coverage review. The branch fast-forwards from the previous head 0a215de89a7cd9023d022fd5e9f4d943ef5ebf99; no history was rewritten.

Commit Parents Content
c5540aae7eaa964fbde8fd1047a39b1d096d4404 previous head, main 5c86eb57 Combines the eight Infera canonical edits with main, including the new vllm-ascend owner and registry entry
4f1ec3dd405f539e445b173f348d7691d97042aa c5540aae, main 1246348f Carries the later main changes; canonical Infera bytes unchanged
8d40de5673666430573a5d1c1aa3f17e906a1be3 4f1ec3dd, main 3a67f2456156f1071d4821e172a5bb55393f3f08 Combined source snapshot; brings 21 non-knowledge main paths; the eight canonical paths keep the 4f1ec3dd blobs and modes
5656e04e86f8d0f4a6741984436868991de77877 8d40de56 Projections regenerated by main's unchanged writers from the committed combined source

Relative to current main 3a67f245, the head changes exactly the eight canonical paths plus 82 generated paths: 80 registered owner records, the generated knowledge README.md and docs/skill-coverage.md. Every owner record names 8d40de56 as its source commit.

Commands run at this head, all exit 0:

python tools/build_skill_index.py --source-revision 8d40de5673666430573a5d1c1aa3f17e906a1be3
python tools/build_skill_coverage.py
python tools/build_skill_index.py --source-revision 8d40de5673666430573a5d1c1aa3f17e906a1be3 --check   # 80 metadata records current
python tools/build_skill_coverage.py --check   # 80 registered skills, 63 unregistered; matches sources

git merge-tree --write-tree 3a67f245 5656e04e is conflict-free and produces exactly this head's tree f536a6dc21a54a07b719077480e1a91855c65e5e. The coverage row attributes both Vidur and Infera to calibrate-serving-simulation, and vllm-ascend remains registered and covered.

Focused local tests at this head (Python 3.13, imports bound to the checkout) passed with exit 0: 162 passed, 5 skipped across the index, coverage view, catalog, library/readers, knowledge contract, catalog CLI, Collect selection and knowledge CLI suites. The worktree stayed clean. Hosted Python 3.10/3.11 full and installed-package checks are the full-suite evidence for this head.

Independent private gpt-6.1-sol / ultra static reviews passed the source merges c5540aae and 4f1ec3dd (review-only). The final step to 8d40de56 was verified by script against the exact upstream delta and the unchanged canonical blobs; it was not separately reviewed. The regenerated head has not had an independent review yet; formal review is requested on this head.

Earlier head evidence (0a215de89a7cd9023d022fd5e9f4d943ef5ebf99)

The following results apply to the previous head over main 663f3b32 and are not substituted for current-head checks.

Independent private gpt-6.1-sol / ultra source review passed corrected M2, including retained duplicate history rows versus future evaluation skips, and separately passed the minimal M3 owner-mapping correction against the original parser contract. Both original native write modes passed at M3, and the index/coverage checks returned zero at that head.

Native owner/catalog and resource readers passed for both affected owners. Checkout bundles contained 5 calibration resources and 26 search resources; each source-package bundle contained 757 resources. Fourteen revision-bound resource API reads covered the two new references, owner/package entry points and cross-owner routes. Whole-resource Collect returned both requested owners for both adapters with complete manifests.

Ready 41626479226 passed all six jobs. Python 3.10 and 3.11 full checks each reported 3,544 passed / 13 skipped / 1 warning / 284 subtests, plus Ruff. Both fresh isolated noneditable wheels loaded 127 source-grounded records. Independent private gpt-6.1-sol / ultra review of that complete head returned LGTM with no findings. Codex review completed without findings; the previous owner-mapping thread remains outdated and its source issue is corrected.

Limits

Knowledge remains candidate/not_run and efficacy remains not_evaluated. Source test definitions were inspected, not run. No upstream import/build/test/CLI, model/device/service execution, ranking calibration, agent comparison or paid trial was performed. No SkillEval comparison or model call was executed. Pending Xe-Forge, DeepSeek, NInfer, Faster CosyVoice and Embodied increments are not imported; each later PR must preserve its canonical increment on the actual predecessor and regenerate projections from the combined source revision.

Knowledge authorship declaration

{
  "schema_version": 1,
  "head_sha": "5656e04e86f8d0f4a6741984436868991de77877",
  "human_only": false,
  "material_ai_authors": [
    {
      "tool": "Codex",
      "model_id": "gpt-6.1-sol",
      "effort": "max",
      "role": "author"
    },
    {
      "tool": "Claude Code",
      "model_id": "claude-opus-5-5",
      "effort": "xhigh",
      "role": "author"
    }
  ]
}

Add an implementation-bound reference for result provenance, deterministic seed comparison, complete evaluated-trial history and future trace-bound ranking calibration in the existing knowledge owners.

Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
Agent-assisted-by: Codex / gpt-6.1-sol [effort=max] (author)
Retain valid duplicate history rows in the Infera source explanation and separate signature-based future evaluation skips from loading the ledger.

Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
Agent-assisted-by: Codex / gpt-6.1-sol [effort=max] (author)
Build the native catalog and coverage from the corrected canonical source revision while preserving all existing owners and source records.

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

chatgpt-codex-connector Bot commented Nov 3, 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 ✅ Completed 2026-11-03T11:23:54.488617Z 0a215de New commits
ℹ️ 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 Nov 3, 2026 •

Copy link
Copy Markdown

Skill evaluation

PLANNED: not executed; there are no task outcomes yet.
No approval, model efficacy or current-head test result is implied.

  • Next: run the pinned source/index --check below at head 5656e04e86f8d0f4a6741984436868991de77877.
  • Task selection: confirm the prepared task tests the changed claim.
  • Selected comparisons: 1 · Estimated task calls: 2. Uncovered/unsupported changes: 88; Canonical library paths: 4; Generated projection paths: 81; Other paths: 3. These are paths, not independent claims.
  • Return: command, input/source pin, exit status, outputs/failures and untested claims for independent verified/refuted/unverified disposition.
Author verification steps (nonpaid; not yet run)
  1. Bind the checkout. Run git rev-parse HEAD; it must equal 5656e04e86f8d0f4a6741984436868991de77877. If it differs, obtain a current plan; do not reuse old results.
  2. Check source/index consistency. At that PR checkout, using the reviewed repository tool and its documented development dependencies, run:
python tools/build_skill_index.py --source-revision 8d40de5673666430573a5d1c1aa3f17e906a1be3 --check

The declared source pin matches this head's canonical library bytes. The command has not run: retain its exit code and full drift/success output. It checks the generated projection, not claim truth or skill efficacy.

  • optimization-search-policy
    Selected by the trusted path mapping: src/inferrsi/data/skill_library/methods/optimization-search-policy/SKILL.md; src/inferrsi/data/skill_library/methods/optimization-search-policy/metadata.json.
    Task case-05: Diagnose this blocked request at the recorded decision boundary; propose the next read-only check.
    Scope: Synthetic finite-state observations; not a production trace or engine benchmark.
    Required answer fields: diagnosis, evidence, next_check, reuse_authorized.
    Independent check: frozen kv-admission-diagnostic-v1 grader/schema bound in details. Confirm it tests the changed claim, not merely the touched path.
    From the downloaded skill-eval-plan artifact directory, inspect the first prepared task and its required answer schema (read-only; not grading):
python -m json.tool optimization-search-policy/plan/tasks.json
python -m json.tool optimization-search-policy/plan/schema.json

Uncovered scope by location: Canonical library paths: 4; Generated projection paths: 81; Other paths: 3. Path counts are not claim counts; no metadata-only conclusion is inferred.
3. Return evidence for independent review: head, check/task/source pin, command, environment, exit status, outputs/failures and untested claims. Label scripted controls. Request each claim's disposition: verified, refuted or unverified; this plan proves neither model provenance nor benefit.
Check recipes and evidence limits

Evidence and logs · Retention: 30 days.
Retained artifacts are verifiable only before Unix time 1796781041 while the linked artifact is available. Expired evidence is unverified.

Plan bindings, budget, frozen exam and advisory details

Advisory: obtain missing evidence

Retained evidence availability: planned / unexecuted. No approval or merge authorization is issued.
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.
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.

  • Retained evidence is planned / unexecuted.
  • Uncovered/unsupported scope needs a case or explicit reviewer disposition.
    Plan SHA-256: a80279b9737eefa72675b3e7c20cd5c86cf1d5f0c97e9836127e7af34fedc8ff
    Base: 3a67f2456156f1071d4821e172a5bb55393f3f08 · Head: 5656e04e86f8d0f4a6741984436868991de77877
    Trusted implementation: 3a67f2456156f1071d4821e172a5bb55393f3f08

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"}

Selection/task metadata (not a relevance verdict):

{"adapter":"kv-admission-diagnostic-v1","basis":"trusted_path_mapping","matched_paths":["src/inferrsi/data/skill_library/methods/optimization-search-policy/SKILL.md","src/inferrsi/data/skill_library/methods/optimization-search-policy/metadata.json"],"required_answer_fields":["diagnosis","evidence","next_check","reuse_authorized"],"tasks":[{"id":"case-05","provenance":"Synthetic finite-state observations; not a production trace or engine benchmark.","request":"Diagnose this blocked request at the recorded decision boundary; propose the next read-only check.","split":"holdout"}]}

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"}

Projection check selection (not an executed result):

{"declared_in":"src/inferrsi/data/repo_packs/inferrsi/knowledge/README.md","source_revision":"8d40de5673666430573a5d1c1aa3f17e906a1be3","status":"ready"}

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 (88)
  • 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/torch-npu.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/ascend/skills/vllm-ascend.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/pytorch.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: "src/inferrsi/data/skill_library/methods/calibrate-serving-simulation/SKILL.md"
  • uncovered: "src/inferrsi/data/skill_library/methods/calibrate-serving-simulation/metadata.json"
  • uncovered: "src/inferrsi/data/skill_library/methods/calibrate-serving-simulation/references/infera-serving-search/README.md"
  • uncovered: "src/inferrsi/data/skill_library/methods/calibrate-serving-simulation/references/infera-serving-search/source-record.json"

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 16a296585e

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/reference-matrix.md Outdated
| Original source / version | Inspected scope and local evidence | Mechanism / consumer | Evidence limits |
|---|---|---|---|
| Vidur — [2405.05465v2](https://arxiv.org/abs/2405.05465v2) | [A readset](../src/inferrsi/data/skill_library/methods/performance-ceiling-analysis/references/papers-20261015/READSET.md); §§3–7, A.1–A.2 | mined — operator/queue model calibration and joint-SLO shortlist → [calibrate-serving-simulation](../src/inferrsi/data/skill_library/methods/calibrate-serving-simulation/SKILL.md), ceiling analysis | Empirical prediction, not physical bound; near-capacity CPU overhead and 12.65% maximum error in the specified appendix case; no current runtime calibration |
| [AMD Infera @ ff1136e4](https://github.com/AMD-AGI/Infera/tree/ff1136e4a51998eba2933ed63cfb9c10120f86ea) | Direct bounded source inspection, 2026-11-03: serving CLI/evaluator/history, seed/objective parser, launcher/DES countercheck and named unexecuted test definitions; [16-path readset and rights](../src/inferrsi/data/skill_library/methods/calibrate-serving-simulation/references/infera-serving-search/source-record.json) | mined — one [calibration-owned provenance reference](../src/inferrsi/data/skill_library/methods/calibrate-serving-simulation/references/infera-serving-search/README.md); search-policy links its seed comparator and evaluated-trial ledger | Source-derived candidate; empirical not_run. Scalar tuner scoring and DES percentiles are separate; missing SLO fields and stale no-P/D-queues text are qualified. Selected original paths MIT; no runtime, ranking accuracy, quality, service or agent-benefit result. |

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Associate the Infera row with its registered calibration owner

When generating the coverage view, tools/build_skill_coverage.py::references() recognizes owners only through backticked registered IDs or links to /SKILL.md. This row has neither: its local links target resource files, so the builder associates Infera with no skill. Consequently, the regenerated docs/skill-coverage.md still lists Vidur as the calibration skill's only mapped source, omitting the new Infera provenance. Include a backticked calibrate-serving-simulation mention or a link to its skill entry and regenerate the coverage view.

AGENTS.md reference: AGENTS.md:L100-L100

Useful? React with 👍 / 👎.

Name the existing registered calibration owner in the reference matrix
so native coverage retains the Infera source mapping.

Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
Agent-assisted-by: Codex / gpt-6.1-sol [effort=max] (author)
@Dong1017 Dong1017 added the area:knowledge Knowledge line: packs, skill library, knowledge admission label Nov 3, 2026 — with ChatGPT Codex Connector
Generate native projections from actual corrected canonical source
f8a7e83.

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

Copy link
Copy Markdown

This docs-only PR adds an owner-local Infera serving-search provenance reference under calibrate-serving-simulation, routes it from optimization-search-policy, and regenerates the matrix/coverage projections; the body edit adds validation claims and a knowledge-authorship declaration. No defects found in the changed files, and the change stays within its linked tracking scope without claiming efficacy. Earlier finding (reference-matrix owner attribution): fixed — the row now names calibrate-serving-simulation, and build_skill_coverage.py --check attributes Infera to that owner. Locally, the coverage check, the 79-record skill-index check (run with a workaround for the container's git 2.39), ruff, and the knowledge/catalog test subset pass; hosted ready CI is green at 0a215de (the full local pytest needs git >= 2.45 and executable /tmp, which this container lacks). Upstream Infera bytes were not re-fetched, so this review verifies local consistency and hosted checks rather than the upstream claims.

Reviewed commit: 0a215de
Coverage: Checkout: 2647 files at 0a215de in a git worktree with the repository's history

Copy link
Copy Markdown
Collaborator

Review at head 0a215de8: no defect found in the Infera provenance reference in isolation (tools/build_skill_coverage.py --check passes locally, and the earlier Codex P2 on the reference-matrix owner token appears addressed), but I am not approving yet because of a cross-PR integration problem:

  1. Conflicts with the other open knowledge PRs: merging this head onto main together with any of Extend VLA observation-to-action benchmark guidance #342, Add source-bound TTS playout benchmark guidance #339, knowledge: validate NInfer state and completion contracts #325, knowledge: audit DeepSeek C expert-cache byte validity #324 or knowledge: distinguish Xe-Forge trial origin and timing #322 produces ~81 conflicting files in my local trial merges (generated repo_packs/.../knowledge/**, docs/skill-coverage.md, docs/reference-matrix.md, docs/searchspace-matrix.md).
  2. Expected: please agree a merge order with the other authors; after each predecessor lands, rebase, regenerate the projections from the new source revision, re-run the index/coverage checks and request re-review on the new head.

Not verified by me: the upstream source pins in references/infera-serving-search/source-record.json.

Dong1017 commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

@amy-why-3459 @zengchuang-hw, could you please independently review this PR at 0a215de89a7cd9023d022fd5e9f4d943ef5ebf99?

To address the cross-PR integration concern, I propose merging this PR first, followed by #322, #324, #325, #339 and #342, subject to each PR's current reviews and checks. After each predecessor lands, we will preserve the combined canonical sources, regenerate the shared index and coverage from the actual source revision, and revalidate the next head before requesting its review.

Please also let us know if you suggest a different order. Source and software checks do not establish model, device, or effectiveness results.

Copy link
Copy Markdown
Contributor

Thanks for the review request and proposed order. I did a Codex-assisted, non-voting integration check of 0a215de8 against current main (9dded7ad).

The current head is awaiting formal independent approvals.

@Dong1017
Dong1017 requested a review from david6666666 November 4, 2026 15:08

Copy link
Copy Markdown
Contributor

Update to my earlier integration check, for the original review/order request. Head remains 0a215de89a7cd9023d022fd5e9f4d943ef5ebf99, while main has advanced to 6fefa0108232fcf210aa7c0f2ba3fa936439bd02 through #354. The earlier clean-merge conclusion is superseded for this target.

A read-only trial merge now reports 81 conflicting generated files: docs/skill-coverage.md, the generated knowledge README.md, and 79 existing JSON skill cards. The collisions come from different source-snapshot references and the coverage input digest. The two canonical matrices and six Infera owner files auto-merge.

Before integration

  • Dong1017 needs to update this branch onto current main and preserve the combined canonical sources, including main's new vllm-ascend owner/registry and this PR's eight canonical edits.
  • Commit that combined source snapshot, then regenerate the projections using the updated tools and its actual committed revision:
python tools/build_skill_index.py --source-revision <combined_source_sha>
python tools/build_skill_coverage.py
python tools/build_skill_index.py --source-revision <combined_source_sha> --check
python tools/build_skill_coverage.py --check

The source pin must contain the combined canonical bytes. Regeneration should retain all 80 registered cards, including main's new knowledge/ascend/skills/vllm-ascend.json.

  • Publish the resulting head, pass its required checks, and request revision-scoped re-review. A clean current-main trial merge plus successful index/coverage checks closes this integration finding. Latest main change · Index contract

This is a non-voting integration follow-up by Codex through zengchuang-hw, under the account holder's direct review delegation. I inspected the merge result and conflict provenance. I have not run a regenerated combined tree. Formal independent reviews remain pending.

Preserve the current main tree and the eight Infera canonical changes.
Regenerate the catalog and coverage in a separate commit from this source snapshot.

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

Copy link
Copy Markdown
Collaborator

Coverage review at head 0a215de89a7cd9023d022fd5e9f4d943ef5ebf99 (base 663f3b327998526a13aa31e72ad729025c18983c). Re-checked against my earlier short-SHA note; no new commits on this head. Not approving yet.

  1. Cross-PR / current-main integration blocker (updated). zengchuang-hw's follow-up supersedes the earlier clean-merge check: with main at 6fefa0108232fcf210aa7c0f2ba3fa936439bd02 ([Feat][Knowledge] Distill Ascend RC model and fusion performance history #354), a trial merge reports 81 conflicting generated files (docs/skill-coverage.md, generated knowledge README.md, and 79 skill cards). mergeable_state=dirty. Please update onto current main, preserve the combined canonical sources (including main's new vllm-ascend owner/registry and this PR's eight canonical edits), regenerate index/coverage from the combined source revision, pass the checks, and request re-review on the new head.
  2. Content in isolation still looks fine from my prior pass (Infera provenance reference; coverage owner token for calibrate-serving-simulation; Codex P2 on the reference-matrix owner appears addressed). I am not reopening content defects on this unchanged head.
  3. Proposed merge order (knowledge: audit Infera serving-search result provenance #332 first, then knowledge: distinguish Xe-Forge trial origin and timing #322/knowledge: audit DeepSeek C expert-cache byte validity #324/knowledge: validate NInfer state and completion contracts #325/Add source-bound TTS playout benchmark guidance #339/Extend VLA observation-to-action benchmark guidance #342) remains reasonable after this head is rebase-clean against current main and required checks pass.

Not verified by me: upstream source pins in references/infera-serving-search/source-record.json.

Reviewed commit range: 663f3b327998526a13aa31e72ad729025c18983c … 0a215de89a7cd9023d022fd5e9f4d943ef5ebf99.

Carry forward the synthetic CPU KV retirement and preserve the combined Infera sources.
Keep the source snapshot available for native catalog and coverage regeneration.

Agent-assisted-by: Codex / gpt-6.1-sol [effort=max] (author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
Bring in the DSH plugin changes while preserving the combined Infera source.

Agent-assisted-by: Codex / gpt-6.1-sol [effort=max] (author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
Run the current main writers on the committed combined source snapshot.
Retain the full registered catalog and source mappings.

Agent-assisted-by: Claude Code / claude-opus-5-5 [effort=xhigh] (author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

PR review verdict — DO NOT PASS

Reviewed base 3a67f2456156f1071d4821e172a5bb55393f3f08 and head 5656e04e86f8d0f4a6741984436868991de77877 (full diff; this seed has no previous head).

Prior finding

  • Resolved: Codex P2 on 16a296585e (docs/reference-matrix.md, Infera row not associated with a registered skill). This head backticks calibrate-serving-simulation in that row, and regenerated docs/skill-coverage.md lists both Vidur and AMD Infera @ ff1136e4 for that skill (candidate · not_run · 3 readset(s)). Input digest is sha256:a42c2cdd0c173f0c50258e4344ff07ad055d40413c520757b16b16caa479ea51.

Blocker

  • src/inferrsi/data/repo_packs/inferrsi/knowledge/common/skills/optimization-search-policy.json records new source digests: SKILL.md d03957ba8f5ff3892947a5c3a45f46de21145bdad3bfb1cbed26faeb172de7a9 (was 0ba4ade1648764a7422f564abe2d4fc9f9a25b5943a6c70c81ce17b8e7fb48d9) and metadata.json c12db77c3536dc3b08635507efcf97c577dffc343186a953d32e5314380896df (was 6dc0c3b8ce13cff285ad99da4441f2fb6a5931247e7634e657275dd915854e02). The same record appends links to ../calibrate-serving-simulation/references/infera-serving-search/README.md and source-record.json. The full base..head diff does not modify src/inferrsi/data/skill_library/methods/optimization-search-policy/SKILL.md or metadata.json (the patch ends inside calibrate-serving-simulation/references/infera-serving-search/source-record.json). Those digests do not identify the optimization-search-policy bytes in this head. docs/reference-matrix.md and docs/searchspace-matrix.md still say search-policy links the Infera seed-only comparator and evaluated-trial ledger.
  • Expected correction: commit the skill and metadata edits that produce those digests, or regenerate the pack from the tree that is actually in this PR, then re-check python tools/build_skill_index.py --source-revision 8d40de5673666430573a5d1c1aa3f17e906a1be3 --check. The pinned snapshot, the committed sources, and the recorded digests need to be the same tree.

Verified

  • Infera provenance is owner-local under calibrate-serving-simulation. SKILL.md sends serving-tuner shortlists through references/infera-serving-search/README.md. Skill metadata and the packaged record add the ff1136e4a51998eba2933ed63cfb9c10120f86ea readset (16 paths) and provenance readsets source-notes.md, infera-serving-search/README.md, and source-record.json.
  • Visible claim locators I1–I6 sit inside the recorded inspected ranges: cli.py 122–310, evaluator.py 525–718 / 850–1086 / 1360–1385, inference_tuning.py 724–871 / 1394–1519, inference_agent.py 328–366, launcher.py 258–322 / 463–515 / 989–1050 / 1178–1187, des.py 2329–2394 / 2638–2668 / 3070–3145. Full-text reads cover history.py, the cited manuals, and test_tuning_slo.py.
  • Wording stays a source-derived candidate with empirical validation not_run. Scalar tuner scoring and DES percentiles are separated; missing SLO fields and the stale no-independent-P/D-queues note are qualified. The ranking plan is proposed.

Not verified

  • Did not run build_skill_index.py --check or build_skill_coverage.py --check, and did not recompute packaged content hashes.
  • Did not fetch AMD-AGI/Infera ff1136e4 blobs to confirm the recorded git blob SHA-1 or SHA-256 values.
  • Did not confirm snapshot 8d40de5673666430573a5d1c1aa3f17e906a1be3 is contained in head 5656e04e.
  • Patch lines 1912–1913 (source-record.json rights.selected_path_coverage tail) were unreadable in this seed. The 16 readset keys earlier in that file were counted.

Optional

  • The history/ledger paragraph in references/infera-serving-search/README.md is one long line. Wrap is cosmetic.

This comment does not approve and does not change scope. I will re-read after the author pushes.

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

PR review verdict — PASS

Incremental range 0a215de89a7cd9023d022fd5e9f4d943ef5ebf99 → 5656e04e86f8d0f4a6741984436868991de77877 on main at 3a67f2456156f1071d4821e172a5bb55393f3f08. The new head clears the previous integration review.

Resolved in this review(本轮已解决)

  • The new head descends from both the last reviewed head and current main. My trial merge produced the head's tree f536a6dc21a54a07b719077480e1a91855c65e5e without conflicts. The eight Infera source edits remain present alongside main's vllm-ascend registration. Regeneration is confined to the 80 skill records, generated knowledge README and coverage view. The coverage view still maps both Vidur and Infera to calibrate-serving-simulation. Integration follow-up · Coverage review
  • The complete tree comparison includes optimization-search-policy/SKILL.md and metadata.json. Their SHA-256 digests match the generated record at both 5656e04e and the committed source snapshot 8d40de56. The index check reproduced the current records, which closes the digest discrepancy reported from the truncated patch. Cursor review · Generated record

Before I can approve(批准前必做)

No outstanding items for this revision.

Non-blocking notes(非阻塞问题或建议)

The retained history, seed comparator, missing-SLO behavior and scalar/DES distinction are consistent with the pinned sources. The independent trace-ranking study remains proposed under the source-only scope. Issue #91 · Research record

Verification and limits

  • git diff --check, the current-main trial merge, build_skill_index.py --source-revision 8d40de5673666430573a5d1c1aa3f17e906a1be3 --check (80 records), and build_skill_coverage.py --check passed. I independently verified the upstream commit tree and all 16 readset files by Git blob SHA-1, byte length and SHA-256. Pinned source record
  • Focused local pytest suites for the knowledge library, catalog, index, coverage and CLI passed in an isolated checkout of this head.
  • Ready CI passed on the merge tree identical to this head, including full and installed-package checks on Python 3.10 and 3.11 and PR references. The current knowledge-model-policy check passed. SkillEval produced a plan and execution was skipped. Upstream tests, model/device execution, empirical calibration, service performance and agent efficacy remain unverified. Ready CI · Policy · SkillEval plan

Direct delegation: zengchuang-hw authorized Codex as the acting independent reviewer through the connected zengchuang-hw account. The delegation covers inspecting this PR, posting review findings, and submitting a formal Approve for the reviewed commit when the content and applicable checks pass. Original review request

@amy-why-3459 amy-why-3459 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

PR review verdict — PASS

Reviewed base 3a67f2456156f1071d4821e172a5bb55393f3f08 (current main) and head 5656e04e86f8d0f4a6741984436868991de77877. Incremental range since my last review: 0a215de89a7cd9023d022fd5e9f4d943ef5ebf99 → 5656e04e86f8d0f4a6741984436868991de77877.

Earlier findings

  • Resolved: current-main integration blocker from my coverage review. The new head descends from both 0a215de8 and current main 3a67f245 (merge commits c5540aae, 4f1ec3dd, 8d40de56, then regeneration 5656e04e; no history rewrite). GitHub reports mergeable=true. Relative to main the PR now touches exactly the 8 canonical paths plus 82 generated paths (80 skill records, generated knowledge README.md, docs/skill-coverage.md).
  • Not a defect: the digest blocker in the cursor[bot] review. optimization-search-policy/SKILL.md and metadata.json are in the PR file list (+2/-0 and +3/-1). Their SHA-256 at 5656e04e and at 8d40de56 are d03957ba… and c12db77c…, matching the generated optimization-search-policy.json; main's bytes are the old 0ba4ade1… / 6dc0c3b8…. The report came from a truncated patch.

Verified

  • All 80 generated skill records name source commit 8d40de5673666430573a5d1c1aa3f17e906a1be3.
  • Every source_files digest in the generated calibrate-serving-simulation.json (6 files, including the new Infera README and source-record.json) matches the head bytes.
  • Hosted checks on this head passed: full-check and installed-package on Python 3.10 and 3.11, pr-references, plan/publish. The latest declarations run passed (an earlier run at 01:50 UTC failed before the body update and was superseded at 01:54 UTC).
  • Content of the Infera reference was already reviewed without content defects at 0a215de8; the canonical Infera bytes are carried unchanged through the merges per the PR description and the matching digests above.

Not verified by me

  • I did not run build_skill_index.py --check / build_skill_coverage.py --check locally on this head; I rely on the hosted checks and the digest spot checks above.
  • Upstream source pins in references/infera-serving-search/source-record.json (zengchuang-hw reports verifying them independently).

Non-blocking: later knowledge PRs (#322/#324/#325/#339/#342) will need to regenerate projections from the combined source after this lands, as already noted.

@Dong1017
Dong1017 merged commit c38bb4e into InferMatrixLab:main Nov 9, 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 bot-reviewed kind:docs Documentation and template delivery

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants