Skip to content

knowledge: validate NInfer state and completion contracts - #325

Merged
amy-why-3459 merged 8 commits into
InferMatrixLab:mainfrom
Dong1017:codex/issue91-ninfer-source
Nov 10, 2026
Merged

amy-why-3459 merged 8 commits into
InferMatrixLab:mainfrom
Dong1017:codex/issue91-ninfer-source

Conversation

@Dong1017

@Dong1017 Dong1017 commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Refs #91. Refs #177.

Problem and scope

Zero accepted drafts does not mean zero adopted input, and a commit receipt does not establish device retirement. This source-only amendment adds a NInfer-specific state-restoration and completion-validation reference to the existing inference-benchmark-design owner, with an ordinary source ledger, a short entry pointer, incremental metadata and the two matrix mappings.

The reference identifies coupled StateImage/Main/MTP history, the same-physical-block fold oracle, frontend-adopted versus accepted/committed counts, and publication/retirement observations. It preserves cancellation, zero/mixed/full-prefix controls and historical phase/corpus/wave denominator differences. Existing speculative-budget and Ouro recurrent-KV owners retain their separate responsibilities. No engine, controller, runtime, schema, registered skill or test implementation is added.

Fixed source and provenance

  • Neroued/ninfer, pinned to 1882c6adbc98043fcf89f3589aa5addb3742777a.
  • The ledger records 27 selected full or bounded source, assertion-definition and rights files, with exact blob/byte identities and inspected ranges. This is a selected readset, not an audit of all 3,694 tree entries. Selected software/documentation is Apache-2.0; model/vendor rights remain separate. Original attributed prose and immutable links redistribute no implementation, model, corpus, figure or vendored dependency.
  • The implementation slice concerns Qwen3.5 GDN/MTP eager production/folding and public checkpoint/execution contracts. Other model algorithms, current Graph/kernel qualification and native correctness remain outside this source review. Historical Qwen3.8 measurements name 7f6aafedb5f20200def820cfe51ab81c09c20eeb, not the inspected source revision, and retain their quality/termination gaps.
  • Original canonical source d356da0b8e4697cd4f584c837d8cbbacac22c13e is retained through main-preserving integration M 7045a9eef66e310b4810fbb7d2d9d25ed1d14b24. Corrective source M bad68ff5c1426b050df78ffbd106ac2e370ce186 adds the existing benchmark owner ID to the Reference Matrix row, so the original parser associates the NInfer row with its owner. Both NInfer resources are unchanged since.

Current-main integration (head 8fd68009df7057d2be063e7bc0d2c9a5dc7511c0)

This follows the agreed order after #332, #322, #360 and #324 landed (main e16a5c2087fcd9cc4298794b4831e558eaefff46), and addresses the cross-PR integration finding in the earlier review. The branch fast-forwards from the previous head cbbee590ec78c77ec15e4c169f80aeefa7ab671e; no history was rewritten.

Commit Parents Content
d648f25732dee1c974da62a94c46a642ad52cef8 previous head, main e16a5c20 Combined source snapshot, described below. Generated projections kept main's bytes until regeneration
8fd68009df7057d2be063e7bc0d2c9a5dc7511c0 d648f257 Projections regenerated by main's unchanged writers from the committed combined source

Xe-Forge (#322) already landed in the same inference-benchmark-design owner, so three hand-written files needed a real merge. Every overlap is additive and keeps main's additions first, then this PR's:

  • metadata.json: main's four tags, two sources, three failure modes, recommendation, limitation and two readsets stay; this PR appends its three tags, the NInfer source, two failure modes, applicability clauses (scope, input contract, produced artifact, refusal point), recommendation, limitation, two readsets and the two cross-owner references. The merge is by JSON field, and any concurrent edit that is not a pure append would have stopped it.
  • docs/reference-matrix.md and docs/searchspace-matrix.md: this PR's NInfer row (1 line) and section (6 lines) are inserted directly after main's Xe-Forge row and section.
  • SKILL.md: git merged cleanly; the 7-line NInfer paragraph sits after the existing treatment-delivery paragraph and before main's later additions.

Relative to main e16a5c20, the head changes exactly the six NInfer canonical paths plus 82 generated paths: 80 registered owner records, the generated knowledge README.md and docs/skill-coverage.md. The two NInfer reference files are byte-identical to the previous head. The coverage view lists Xe-Forge and NInfer under inference-benchmark-design, and the DeepSeek, Infera and vLLM Ascend attributions are kept. Every owner record names d648f257 as its source commit.

Commands run at this head, all exit 0:

python tools/build_skill_index.py --source-revision d648f25732dee1c974da62a94c46a642ad52cef8
python tools/build_skill_coverage.py
python tools/build_skill_index.py --source-revision d648f25732dee1c974da62a94c46a642ad52cef8 --check   # 80 metadata records current
python tools/build_skill_coverage.py --check   # matches sources

git merge-tree --write-tree e16a5c20 8fd68009 is conflict-free and produces exactly this head's tree 0f2a22927af93a5b985f8d7c039f9e37260eb048.

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.

This integration has not had an independent review yet; formal review is requested on this head.

Earlier head evidence (cbbee590ec78c77ec15e4c169f80aeefa7ab671e)

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

Both native check modes passed with 79 metadata records. Native owner/catalog reads verified all 12 source-file manifest hashes; Collect selected all 15 resources (189,640 bytes) with no omissions. Ready 41636127211 passed all six jobs: Python 3.10 and 3.11 full checks each reported 3,544 passed / 13 skipped / 1 warning / 284 subtests, and both fresh wheels loaded 127 records. Private independent gpt-6.1-sol / ultra review of that complete head returned LGTM (review-only). Codex review completed with no findings. A same-head SkillEval publication succeeded; an older concurrent publisher was refused by the anti-stale guard, and that history is separate from trial outcomes.

Limits

SkillEval selected 0 comparisons / 0 model calls, with the inherited executable-snapshot limitation retained. Knowledge remains candidate/not_run and efficacy remains not_evaluated. Upstream C++/CUDA/native assertions were read as definitions, not executed. No upstream build/test suite, model/device execution, service/quality experiment or paid trial was run. Software and source consistency do not establish native model parity, device performance or agent benefit. Pending 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": "8fd68009df7057d2be063e7bc0d2c9a5dc7511c0",
  "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"
    }
  ]
}

Extend the existing benchmark-design owner with fixed-source coupled-state,
accepted-prefix and completion-denominator validation guidance. Retain source-only
candidate boundaries and the historical report's distinct execution revision.

Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
Agent-assisted-by: Codex (gpt-6.1-sol, reasoning_effort=max)
Regenerate coverage and packaged skill discovery from actual source d356da0.

Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
Agent-assisted-by: Codex (gpt-6.1-sol, reasoning_effort=max)
@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-03T12:34:49.868192Z cbbee59 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 8fd68009df7057d2be063e7bc0d2c9a5dc7511c0.
  • Blockers: Executable snapshot entries are not supported. No unsafe fallback; details below.
  • Selected comparisons: 0 · Estimated task calls: 0. 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 8fd68009df7057d2be063e7bc0d2c9a5dc7511c0. 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 d648f25732dee1c974da62a94c46a642ad52cef8 --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.
No supported automatic comparison is selected. Review the canonical changes and explain which claims need evidence, are unaffected, or remain unverified; do not treat generated records as separate behavioral claims.

  • inference-benchmark-design
    Selected by the trusted path mapping: src/inferrsi/data/skill_library/methods/inference-benchmark-design/SKILL.md; src/inferrsi/data/skill_library/methods/inference-benchmark-design/metadata.json (+2 more in the plan).
    Unsupported: Executable snapshot entries are not supported. No snapshot prepared; task metadata is in details. Do not relax snapshot safety.
    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.
  1. 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 1796823874 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.
  • No supported comparison cases were selected.
  • Uncovered/unsupported scope needs a case or explicit reviewer disposition.
    Plan SHA-256: f4b27ae66a1188fc78405832e27d11d2756bd6c05553fecc496e8d6eb9c33edb
    Base: e16a5c2087fcd9cc4298794b4831e558eaefff46 · Head: 8fd68009df7057d2be063e7bc0d2c9a5dc7511c0
    Trusted implementation: 68dbd5e811a043f113e17e90b3bbe79622cbf7a5

Model/settings: {"effort":"not_applicable","name":"claude-opus-5-5"}
Budget: {"comparisons":0,"estimated_calls":0,"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":null}

Skill Comparison Cases Estimated calls
inference-benchmark-design unsupported snapshot: Executable snapshot entries are not supported — 0

Selection/task metadata (not a relevance verdict):

{"adapter":"audit","basis":"trusted_path_mapping","matched_paths":["src/inferrsi/data/skill_library/methods/inference-benchmark-design/SKILL.md","src/inferrsi/data/skill_library/methods/inference-benchmark-design/metadata.json","src/inferrsi/data/skill_library/methods/inference-benchmark-design/references/ninfer-source.json","src/inferrsi/data/skill_library/methods/inference-benchmark-design/references/ninfer-state-and-completion-contracts.md"],"tasks":[{"evidence_scope":"http_fixed_workload","id":"audit-threshold","request":"Audit the fixed input report using its contract. Compute the median of per-trial request means, including every request in each trial, and the percentage reduction relative to the baseline aggregate.","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":"d648f25732dee1c974da62a94c46a642ad52cef8","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"
  • unsupported: "src/inferrsi/data/skill_library/methods/inference-benchmark-design/SKILL.md"
  • unsupported: "src/inferrsi/data/skill_library/methods/inference-benchmark-design/metadata.json"
  • unsupported: "src/inferrsi/data/skill_library/methods/inference-benchmark-design/references/ninfer-source.json"
  • unsupported: "src/inferrsi/data/skill_library/methods/inference-benchmark-design/references/ninfer-state-and-completion-contracts.md"

@Dong1017 Dong1017 added the area:knowledge Knowledge line: packs, skill library, knowledge admission label Nov 3, 2026 — with ChatGPT Codex Connector
Retain original state and completion evidence with all current-main canonical, applicability, resource-layer and release additions before regenerating projections.

Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
Agent-assisted-by: Codex / gpt-6.1-sol [effort=max] (author)
Regenerate the native coverage and catalog from actual source M
7045a9e.

Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
Agent-assisted-by: Codex / gpt-6.1-sol [effort=max] (author)
Make the reference matrix source row attributable to the registered
benchmark owner. Retain its hardware applicability exclusion and sources.

Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
Agent-assisted-by: Codex / gpt-6.1-sol [effort=max] (author)
Regenerate coverage and packaged skill discovery from actual source bad68ff.

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

Copy link
Copy Markdown

This PR adds a NInfer source ledger and a state-restoration/completion-validation reference to the existing inference-benchmark-design owner, wires it into metadata, SKILL.md, both matrices and the generated coverage page, and regenerates the packaged projections. I found no defect in the repository-internal artifacts I could check; the upstream NInfer claims themselves were not independently verifiable here. Verified locally: python tools/build_skill_index.py --source-revision bad68ff5c1426b050df78ffbd106ac2e370ce186 --check → "Skill index is current: 79 metadata records", python tools/build_skill_coverage.py --check → "matches its sources", ruff check src tests → clean, and the knowledge/skill-index/coverage test modules pass (full pytest has pre-existing environment-only failures caused by git 2.39 lacking --no-lazy-fetch, which reproduce on the base commit). Relevance: current — main is still at the PR's base commit 663f3b3, so no overlapping merged work displaces this change. No earlier bot findings exist to reconcile. Labels: kind:docs (documentation/knowledge delivery; the existing area:knowledge label already covers the knowledge line).

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

Copy link
Copy Markdown
Collaborator

Review at head cbbee590: no defect found in the NInfer source ledger/reference in isolation (tools/build_skill_coverage.py --check passes locally), 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: audit Infera serving-search result provenance #332, knowledge: audit DeepSeek C expert-cache byte validity #324 or knowledge: distinguish Xe-Forge trial origin and timing #322 produces 81-84 conflicting files in my local trial merges (generated repo_packs/.../knowledge/**, docs/skill-coverage.md, docs/reference-matrix.md, docs/searchspace-matrix.md). Extend VLA observation-to-action benchmark guidance #342, Add source-bound TTS playout benchmark guidance #339 and knowledge: distinguish Xe-Forge trial origin and timing #322 also edit the same hand-written src/inferrsi/data/skill_library/methods/inference-benchmark-design/SKILL.md and metadata.json, so those need a real content merge.
  2. Expected: please agree a merge order with the other authors; after each predecessor lands, rebase, re-merge inference-benchmark-design/SKILL.md/metadata.json, regenerate the projections, re-run the index/coverage checks and request re-review on the new head.

Not verified by me: the upstream source pins in ninfer-source.json.

Copy link
Copy Markdown
Collaborator

Re-review at head cbbee590ec78c77ec15e4c169f80aeefa7ab671e (range 663f3b327998526a13aa31e72ad729025c18983c...cbbee590ec78c77ec15e4c169f80aeefa7ab671e). Not approving.

No new commits since the prior short-SHA note. Isolation content (NInfer ledger/reference) still looks coherent, but blockers remain:

  1. Dirty vs main: mergeable_state=dirty; current main is 1246348f252dbc7e473efb1752c2d81da15e23fd (ahead of this PR's base 663f3b3...). Rebase required.
  2. Cross-PR integration: sibling knowledge PRs still open (Extend VLA observation-to-action benchmark guidance #342, Add source-bound TTS playout benchmark guidance #339, knowledge: audit Infera serving-search result provenance #332, knowledge: audit DeepSeek C expert-cache byte validity #324, knowledge: distinguish Xe-Forge trial origin and timing #322). Overlap on generated repo_packs/.../knowledge/** and matrix/coverage docs. Extend VLA observation-to-action benchmark guidance #342/Add source-bound TTS playout benchmark guidance #339/knowledge: distinguish Xe-Forge trial origin and timing #322 also edit the same hand-written inference-benchmark-design/SKILL.md and metadata.json.
  3. Expected: agree a merge order; after each predecessor lands, rebase, re-merge SKILL/metadata, regenerate projections, re-run index/coverage checks, and request re-review on the new head.

Not verified by me: upstream source pins in ninfer-source.json.

Reviewed commit: cbbee590ec78c77ec15e4c169f80aeefa7ab671e.

Merge main after the Infera, Xe-Forge and DeepSeek sources landed. Xe-Forge
and NInfer both extend inference-benchmark-design; keep main's additions
first, then the NInfer tags, source, applicability clauses, failure modes,
recommendation, limitation, readsets and matrix rows. Generated projections
keep main's bytes until they are regenerated from this commit.

Agent-assisted-by: Claude Code / claude-opus-5-5 [effort=xhigh] (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 e16a5c2087fcd9cc4298794b4831e558eaefff46 and head 8fd68009df7057d2be063e7bc0d2c9a5dc7511c0 (full diff; pr/prior-reviews.md empty; previous head unset). This review does not approve.

Blocker

The NInfer validation contract is not reviewable from the seeded diff, so required evidence for this knowledge change is insufficient.

  • pr/diff.patch is 1575 lines. Readable hunks stop in src/inferrsi/data/skill_library/methods/inference-benchmark-design/metadata.json at the failure_modes context (patch line 1573, starting "Raw throughput is optimized in place o…"). Patch line 1574 is one oversized line with no readable text; line 1575 is empty.
  • There is no readable diff --git body for the two files the index, matrices, and SKILL.md cite as the contract:
    • src/inferrsi/data/skill_library/methods/inference-benchmark-design/references/ninfer-state-and-completion-contracts.md (packaged source_files sha256 2b3de210d1790eec92319addadf0e38fcd1529fa2f23b5cddf96a789b783f4ac)
    • src/inferrsi/data/skill_library/methods/inference-benchmark-design/references/ninfer-source.json (sha256 ccda0fc6781e3c4dceb41521ab952445840b4afcc9f5a7d968857f76e8db6272)
  • Trigger: those bodies are what would substantiate the 27-file readset, rights/exclusions, per-file hashes, the upstream path docs/performance/qwen3.8-27b.md next to the Qwen3.5 claim, and a historical execution revision distinct from 1882c6adbc98043fcf89f3589aa5addb3742777a. I could not separate "files absent from the commit" from "diff tail collapsed into unreadable lines."
  • Expected correction: land those reference files (and the rest of the metadata.json delta) as normal diff text at the indexed hashes and push. I will re-read that head.

Verified on the readable prefix

  • docs/reference-matrix.md and docs/searchspace-matrix.md keep the slice at source-derived candidate / empirical not_run / efficacy not_evaluated, with historical author results on a separate execution revision and no new implementation, backend, or measured coverage.
  • The metadata.json source entry lists 27 paths at NInfer 1882c6adbc98043fcf89f3589aa5addb3742777a, license Apache-2.0, matching the matrix "27-file readset" wording. The same pin and path list are copied into inference-benchmark-design.json.
  • SKILL.md (coupled checkpoint, same-physical-block oracle, zero accepted drafts versus zero adopted inputs, logical commit versus device retirement, steady intervals versus complete-cohort denominators) matches the packaged failure modes, refusal, and added recommendation.
  • docs/skill-coverage.md digest is sha256:e26cf7b1c819cfe6381ac0cba56b3bfe1efca71f8fa97453d110c47602fe954b; inference-benchmark-design advice 6→7 and readsets 9→11, including the NInfer link.
  • Sampled knowledge records other than inference-benchmark-design only move the source pin 630bb57a54b4ddda8338e0e529664436f982d94e → d648f25732dee1c974da62a94c46a642ad52cef8.

Not verified here

  • python tools/build_skill_index.py --source-revision d648f25732dee1c974da62a94c46a642ad52cef8 --check and python tools/build_skill_coverage.py --check were not run. Content hashes were not recomputed.
  • Did not confirm d648f25732dee1c974da62a94c46a642ad52cef8 is an ancestor of head 8fd68009df7057d2be063e7bc0d2c9a5dc7511c0 whose skill blobs match the recorded hashes.
  • Upstream NInfer at 1882c6adbc98043fcf89f3589aa5addb3742777a was not inspected. Tests were not executed.

Copy link
Copy Markdown
Collaborator

Re-review of the new commits. I'm looking at cbbee590ec78c77ec15e4c169f80aeefa7ab671e...8fd68009df7057d2be063e7bc0d2c9a5dc7511c0: merge commit d648f25732dee1c974da62a94c46a642ad52cef8 (main e16a5c2087fcd9cc4298794b4831e558eaefff46) plus the regeneration in 8fd68009. Not approving yet.

Resolved since my last review

  • The rebase or merge blocker is cleared. The PR is now mergeable=true against main, and the earlier dirty state is gone.
  • The hand merge in inference-benchmark-design looks correct. In SKILL.md, the NInfer paragraph (+7 lines) sits after main's existing guidance without dropping any of it. In metadata.json, main's Xe-Forge tags and source entry are kept, and the NInfer tags (accepted-prefix, state-restoration, completion-accounting), git source entry and applicability clause are appended. The NInfer row in docs/reference-matrix.md sits after the Xe-Forge row, the new NInfer section in docs/searchspace-matrix.md is placed correctly, and the docs/skill-coverage.md row now lists both Xe-Forge and NInfer, with 11 readsets and 7 advice items. The remaining 81 files are generated repo_packs/** projections. I didn't regenerate them byte for byte myself.

Still blocking

  1. The declarations check fails on this head. The job log (run 42628046159, job 129196832792) reports "Missing, invalid or stale knowledge author declaration" for head 8fd68009…, with policy at main 68dbd5e8…. It looks like the author declaration is still bound to the old head. Please refresh it for 8fd68009df7057d2be063e7bc0d2c9a5dc7511c0 (or whatever head comes next) so the check goes green.
  2. full-check (3.10) and full-check (3.11) were still running when I checked, so there isn't yet a green full test run for this head. Please make sure they pass.
  3. Index and coverage verification for the new combined source. The SkillEval plan comment asks for python tools/build_skill_index.py --source-revision d648f25732dee1c974da62a94c46a642ad52cef8 --check at this head, and I don't see that result recorded yet. Please post that output and python tools/build_skill_coverage.py --check for 8fd68009, so we can confirm the 81 projections really are regenerated from d648f257.

Not blocking for this PR, just a heads-up: #342 and #339 are still open and also edit inference-benchmark-design/SKILL.md and metadata.json. Whichever lands second will need the same hand merge and regeneration. Main has also moved one commit, to 68dbd5e8 (docs only, #330), and GitHub still reports this PR as mergeable.

Not verified by me: the upstream source pins in ninfer-source.json.

@Dong1017

Dong1017 commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator Author

@zengchuang-hw @amy-why-3459, could you please review 8fd68009df7057d2be063e7bc0d2c9a5dc7511c0? It integrates main after #332, #322, #360 and #324 landed (e16a5c20), following the agreed order, and regenerates the projections from the combined source d648f257.

  • knowledge: distinguish Xe-Forge trial origin and timing #322 already extended the same inference-benchmark-design owner, so metadata.json and the two matrices needed a real merge, not only regeneration. Every overlap is additive: main's Xe-Forge content stays first and this PR's NInfer content follows. The PR description lists which metadata fields were appended, and the merge script would have stopped on any concurrent edit that was not a pure append.
  • The two NInfer reference files are byte-identical to the previous head. Relative to main e16a5c20, the head changes the six canonical paths plus 82 generated paths, and a trial merge into current main 68dbd5e8 is conflict-free.
  • Ready CI passed: 3,539 passed / 13 skipped per Python version (main's new plugin tests account for the increase over the previous 3,510), and both installed wheels loaded 128 records. knowledge-model-policy reports declaration compliance. The earlier declarations failure on this head ran before the PR description was updated; the later run passed.

@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 review cbbee590ec78c77ec15e4c169f80aeefa7ab671e..8fd68009df7057d2be063e7bc0d2c9a5dc7511c0. Reviewed head 8fd68009df7057d2be063e7bc0d2c9a5dc7511c0, PR base e16a5c2087fcd9cc4298794b4831e558eaefff46, and live main at 9f61a83f030bfa2ffe3b54eac1781593309d6380. Previous review · Integration review · Current request.

Resolved this round

  • The current-head declaration passes and both Python full checks have completed. The earlier declaration failure is superseded by the successful current-head rerun. Policy · Ready CI.
  • Both generation checks reproduce the checked-in projections from d648f25732dee1c974da62a94c46a642ad52cef8. The 79 other owner cards only move the source revision. The merged metadata retains the prior Xe-Forge inputs, and the NInfer row is attributed to the existing benchmark owner. The trial merge into live main is conflict-free. Files changed.
  • Both NInfer reference files are present at the reviewed head, byte-identical to the earlier head, and match the hashes in the generated owner record. Reading the actual Git objects clears the truncated-patch concern. I verified the pinned source tree and the Git blob hash, SHA-256, size and line ranges for all 27 selected files. I cross-checked the same-physical-block fold and zero-row control, accepted versus adopted counters, receipt and device retirement boundaries, and the distinct historical measurement denominators. Prior non-voting review · Pinned source · Issue scope.

Before I can approve

No remaining blocking items for this revision.

Non-blocking observations

The pending sibling integrations can check their own combined source and projections against the predecessor they actually use.

Checks and limits

Locally ran both generation checks, the whitespace check and trial merges. Verified the current-head hosted Ready suite and the required policy status. Reviewed the source and unexecuted test definitions. Upstream C++/CUDA execution, model quality, measured performance and agent efficacy were outside this source-only slice.

Delegation record. Codex independently reviewed and submitted this record under direct delegation from zengchuang-hw through the connected zengchuang-hw GitHub account. The delegation covers independent review of PR #325 on the stated revision and allows review comments and formal Approve when the content and applicable checks satisfy the repository's requirements.

@Dong1017

Copy link
Copy Markdown
Collaborator Author

@amy-why-3459, sorry, I missed your re-review when I posted the review request. All three blockers are resolved at the unchanged head 8fd68009df7057d2be063e7bc0d2c9a5dc7511c0:

  1. declarations: the failing run (13:44 UTC) evaluated the description while its declaration still named the previous head. After I updated head_sha, the rerun at 14:04 passed, and knowledge-model-policy reports declaration compliance for this head.
  2. full-check: both jobs finished just after your check and passed, 3.10 and 3.11, with 3,539 passed / 13 skipped / 284 subtests each. Both installed-package jobs loaded 128 records.
  3. Index and coverage: run at this head against the combined source, both exit 0 (Python 3.13). zengchuang-hw's approval also reports both checks reproducing the projections.
$ python tools/build_skill_index.py --source-revision d648f25732dee1c974da62a94c46a642ad52cef8 --check
Skill index is current: 80 metadata records
$ python tools/build_skill_coverage.py --check
docs\skill-coverage.md matches its sources

Main has since moved to e77f7f67 (#373, #375, #376: labels, docs and tests only). The trial merge with it is conflict-free and touches no knowledge files. Could you re-review?

@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.

PR review verdict — PASS (self-check; Approve blocked)

Reviewed base e16a5c2087fcd9cc4298794b4831e558eaefff46 and head 8fd68009df7057d2be063e7bc0d2c9a5dc7511c0.
Acting as InferRSI steward / Dong1017 stand-in. GitHub returned 422 Review Can not approve your own pull request, so this is COMMENTED only — no Approve/LGTM voting review from this account. Independent approvals remain required (one current Approve from zengchuang-hw).

Verified at this head:

  • Additive NInfer merge on inference-benchmark-design after Xe-Forge (SKILL.md, metadata, both matrices); Xe-Forge content retained.
  • ninfer-source.json (27 files) + contracts reference coherent as candidate/not_run; packaged sha256 match (ccda0fc6…, 2b3de210…).
  • Upstream Neroued/ninfer @1882c6ad… commit/tree and sampled blob SHA/size identities match via API.
  • Local: index --check 80 records from d648f257…; coverage --check matches; ruff clean; focused skill/knowledge tests green.
  • Ready CI green; live main e77f7f67 merge-tree conflict-free with no intervening knowledge-path edits.

Not blockers here: no native NInfer execution; SkillEval 0 comparisons; #339/#342 remain separate.

@amy-why-3459
amy-why-3459 merged commit 56c5003 into InferMatrixLab:main Nov 10, 2026
10 of 11 checks passed
Dong1017 added a commit that referenced this pull request Nov 10, 2026
The migrated snapshot named the pre-squash branch commit of #325. Point it at
the squash commit on main, which has identical skill-library bytes, so the pin
stays an ancestor after this change lands. Only _provenance.json changes.

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