Skip to content

feat(skill-eval): add manual local artifact evaluation for #253 - #258

Merged
Dong1017 merged 2 commits into
mainfrom
issue253-local-engineering
Oct 30, 2026
Merged

Dong1017 merged 2 commits into
mainfrom
issue253-local-engineering

Conversation

@Dong1017

Copy link
Copy Markdown
Collaborator

Scope

Refs #253.

  • Reuse the existing local prepare → stage → author execution → capture → report flow.
  • Separate frozen inputs from the writable artifact, retain the actual artifact and author-supplied logs, and independently revalidate retained source.
  • Add one reconstructed CPU response-parser task derived from docs(casebook): three cases from a Qwen3.8 dedicated-engine campaign #90, with 19 public behavior checks. This is not the original server or a hardware benchmark.
  • Report artifact differences, failed checks, coverage boundaries and review implications; keep author-reported execution provenance distinct from independently verified artifact behavior.

Verification

  • Related regression suite: 239 passed, 2 skipped, plus 52 subtests passed.
  • Independent focused software review: 47 passed; actual sandbox controls were excluded.
  • Ruff and diff checks passed.
  • These results apply to the reviewed source tree f99ac5f35e11be83c13cda5dd7eeae1de5686412 (local reviewed commit c43e76f56ec0f62753e7977a0bd0e8ce389d8fd4, published head 28f3fd6efb94dad9d9cfa44702088247021afb01). Current-main integration checks remain separate.

Draft / remaining limits

  • Actual sandbox qualification and a real baseline/candidate agent comparison are not completed.
  • Isolation failures return INCONCLUSIVE, with no unsafe host-execution fallback.
  • Public checks are not a hidden benchmark, and artifact results do not establish causal skill benefit, hardware efficacy or whole-PR acceptance.
  • No model or hardware experiment was run. No automatic merge or Issue closure is added.
  • [Tracking] SkillEval evolution: local evidence, PR review and optional LLM judge #253 remains open for the outstanding evidence and acceptance work.

Workflow, diagrams, frozen task and explicit remaining checklist dispositions are documented in docs/local-skill-evaluation.md and tests/fixtures/skill_eval_engineering/contract.md.

Separate frozen inputs from the writable parser artifact. Preserve author-run provenance, independently replay retained source in a fail-closed namespace, and keep artifact outcomes distinct from skill efficacy and PR acceptance.

Agent-assisted-by: Codex (implementation and artifact verifier)
Signed-off-by: Codex <codex@openai.com>

Reviewed-local-source-commit: c43e76f56ec0f62753e7977a0bd0e8ce389d8fd4
Published via GitHub Git Data API with identical tree bytes; connector commit metadata may differ.
@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Skill evaluation

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

Advisory: obtain missing evidence

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

  • Retained evidence is planned / unexecuted.
  • No supported comparison cases were selected.
  • Uncovered/unsupported scope needs a case or explicit reviewer disposition.

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

Selected comparisons: 0 · Estimated task calls: 0.
Uncovered/unsupported changes: 103. Gaps never count as passes.

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

Plan bindings, budget, frozen exam and advisory details

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

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

[]

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

Plan SHA-256: 53b0c5ae0b5ed0b6e00831836f04dc90601f6e3aa14913d0257b93dc17d0b887
Base: 401ee8a256c21e6c489e7d179e62c70ac08723d3 · Head: f122b0978920dad78edeac859f332e83291e6bab
Trusted implementation: 3731b73120f27277a0b136d69ac50abfe5e28a63

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

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

@Dong1017
Dong1017 marked this pull request as ready for review October 30, 2026 00:41
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 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-10-30T00:53:29.708474Z f122b09 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.

@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: 28f3fd6efb

ℹ️ 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 on lines +239 to +242
try:
return json.loads(raw)
except (ValueError, UnicodeDecodeError):
return None

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 Handle excessive nesting in artifact JSON output

On supported controller runtimes such as Python 3.12, an artifact that prints deeply nested JSON and exits successfully can raise RecursionError here despite staying within the 64 KiB output bound. For example, 10,000 nested arrays require only 20,001 bytes. This exception escapes both verify() and capture's SandboxUnavailable handler, aborting capture after evidence files have been written but before the result and receipt exist; subsequent capture attempts then refuse to overwrite the partial attempt. Treat excessive JSON nesting as an invalid artifact response so it produces a failed check rather than crashing the evaluation.

Useful? React with 👍 / 👎.

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.

Fixed in f122b09. _invoke now catches RecursionError while decoding artifact JSON and treats it as an invalid response, so verification records a failed check rather than aborting capture. Added a mocked 20,001-byte nested-array regression. Independent scoped verification: 48 passed, 2 actual-sandbox tests deliberately deselected; published tree 3e20bb204124fe9a746e273f700a9947c72e757e matches the tested tree. New-head hosted CI is pending. This software regression test does not establish actual sandbox qualification or agent efficacy.

Treat decoder recursion exhaustion as an invalid artifact response after the trusted worker boundary, preserving failed checks instead of interrupting evidence capture.

Agent-assisted-by: Codex (review follow-up)
Signed-off-by: Codex <codex@openai.com>

Reviewed-local-source-commit: 3ade25aba495e8896e21bf6edce3281a22c4d67d
Published via GitHub Git Data API with identical tree bytes; connector commit metadata may differ.

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

Scoped LGTM for the software delivery at f122b09, not completion of #253 or an efficacy acceptance.

Existing findings reconciled: the earlier contract coverage, capture-path safety, replay portability and sandbox-readiness findings were corrected in the reviewed initial tree. The new excessive-JSON-nesting finding (r4419377730) is fixed by catching RecursionError and a 20,001-byte mocked-output regression; independent delta verification passed 48 tests with 2 actual-sandbox tests explicitly deselected. No remaining blocking software finding in this bounded slice; current-head Codex review also reports completed/no findings.

Integration with main 3731b73 was tested in combined tree d4a4b9db3a8246e9a3ec02ce10ede6edaeb3eb2b: 303 passed, 2 skipped, 2 actual-sandbox tests deselected, plus 52 subtests. Current-head Ready CI https://github.com/InferMatrixLab/InferRSI/actions/runs/40981928237 passes both Python versions and installed-package checks.

Disposition of the SkillEval advisory: its zero comparisons/planned-only output supplies no efficacy evidence. This PR delivers the local staging/capture/reporting software and fail-closed behavior only. Actual supported-host sandbox qualification and a genuine baseline/candidate agent comparison remain prerequisites for the corresponding #253 acceptance items. No model/device experiment or paid execution was performed; no unsafe fallback is accepted. #253 remains open. COMMENT only, no formal APPROVE.

@Dong1017
Dong1017 merged commit 1147c5b into main Oct 30, 2026
10 checks passed
@Dong1017
Dong1017 deleted the issue253-local-engineering branch October 30, 2026 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant