Skip to content

docs: correct retired paths and drop dead knowledge path patterns - #600

Merged
Dong1017 merged 1 commit into
mainfrom
impl/595-docs
Nov 23, 2026
Merged

Dong1017 merged 1 commit into
mainfrom
impl/595-docs

Conversation

@Dong1017

Copy link
Copy Markdown
Collaborator

Governing Issue and delivery slice

Refs #595

Knowledge authorship declaration

No path protected by docs/knowledge-model-policy.md changes. .github/knowledge-model-policy.json and docs/knowledge-model-policy.md are policy paths, which the policy classifies and reports but does not gate. The declaration below is disclosure only.

{"schema_version":1,"head_sha":"750b3fc70424242967f52bef301dc57c3adebeb5","human_only":false,"material_ai_authors":[{"tool":"Claude Code","model_id":"claude-opus-5-5","effort":"xhigh","role":"author"}]}

Changed artifacts and evidence

Requirement (#595) Actual change Check / evidence and result Remaining gap
DOC-01: Harness README names retired scenarios/ files src/inferrsi/harness/README.md names trials/external.py, benchmark/metrics.py and benchmark/sampling.py, matching the function-owners.md row for harness/trials/external Every named file exists on main none
AGENTS.md presents the SIAS planes as packages under src/inferrsi/ Lines 7 and 72: the planes describe the target system, and InferRSI's code lives in four cores Reading check; src/inferrsi/model and infra are absent (ci-merge.yml asserts this) none
docs/architecture.md module table keeps the retired Model layer The table lists Knowledge, Harness, Benchmark, Apps and contracts//resources/; Anthropic adapters sit under Apps Consistent with docs/module-layout.md "Core and technical packages" and "Tentative current ownership" none
docs/contracts/function-owners.md rows cite retired paths Row 21: apps/host/inspection. Row 25: apps.artifacts.sha256 and test_sampling_sha256_matches_the_apps_hasher. Row 26: apps/host/targets, and the root execution.py forwarder is recorded as deleted by R1. Owners and decisions are unchanged; each row says which change moved the path. tests/test_legacy_run_split.py:162 defines the cited test; tests/_gate_policy_support.py:121 keys inferrsi.apps.host.inspection; apps/legacy/run.py:8 imports apps.host.targets none
docs/module-layout.md row for the old-run files names an Infra edge Names harness/local_process.py as the executor Reading check none
CI path patterns match nothing since #516 Removes knowledge_packs/** and repo_packs/**/knowledge/** from .github/knowledge-model-policy.json, the skill-eval-pr.yml trigger and docs/knowledge-model-policy.md, and removes the repo_packs/inferrsi/knowledge/ generated prefix from tools/knowledge_declaration_paths.py; finishes the truncated sentence on the policy page git ls-files src/inferrsi/knowledge/data lists only skill_library/, which skill_library/** still protects. The two tests that used the dead paths now use skill_library/records/ and skill_library/_compiled/ paths. none

Checks and dependencies

  • Checks actually run (result and tested scope):
    • tests/test_knowledge_declaration_paths.py, tests/test_knowledge_model_policy.py and tests/test_template_layout.py, run locally on Windows with Python 3.13: 208 passed, 1 failed (see the next item).
    • ruff check (0.14.10) on the three changed Python files: passed.
    • The policy JSON parses.
    • git diff --check: clean.
  • Failed, skipped, timed-out or not-run checks (if applicable):
    • test_maintained_documentation_links_resolve failed locally only because the sparse local checkout omits evidence/ and plugins/. Both missing targets exist in the tree (git ls-tree), and this PR adds no link.
    • A link check limited to the six edited docs found no broken link apart from that sparse-checkout case.
    • Hosted CI is the full-suite proof.
  • Dependencies / shared interfaces / integration assumptions (if applicable): The knowledge policy check evaluates the target branch's policy, so this PR does not change its own admission. After merge, PRs that touch only the removed paths would no longer be classified as protected; no such path exists.

Remaining work and Issue closure

🤖 Generated with Claude Code

The Harness README still pointed to scenarios/external.py and
scenarios/media.py; it now names harness/trials/external.py,
benchmark/metrics.py and benchmark/sampling.py.

AGENTS.md described the SIAS planes as packages under src/inferrsi/.
The planes describe the target system; InferRSI's code lives in four
cores. The architecture module table drops the retired Model layer and
lists Knowledge, Harness, Benchmark, Apps and the technical packages.
Three adopted function-owner rows and one module-layout row cite paths
and a test name that the infra/model retirement and R1 removed.

The knowledge model policy, the skill PR trigger and the declaration
helper still listed knowledge_packs/** and repo_packs/**/knowledge/**.
Since the knowledge layout migration those paths hold nothing; skill_library/** covers the
records. The patterns are removed and the policy page's truncated
sentence is finished. Tests use a skill_library path instead.

Agent-assisted-by: Claude Code / claude-opus-5-5 [effort=xhigh] (author)
Signed-off-by: GUOGUO <xwdong1998@163.com>
@github-actions

github-actions Bot commented Nov 23, 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: resolve check applicability at head 750b3fc70424242967f52bef301dc57c3adebeb5.
  • Task selection: no supported automatic comparison; choose a relevant source/content check and disposition uncovered claims.
  • Selected comparisons: 0 · Estimated task calls: 0. Uncovered/unsupported changes: 11; Canonical library paths: 0; Generated projection paths: 0; Other paths: 11. 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 750b3fc70424242967f52bef301dc57c3adebeb5. If it differs, obtain a current plan; do not reuse old results.
  2. Choose an applicable check. Match each changed behavior to the task below or a source/content check; a path match alone does not establish relevance.
    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.
    Uncovered scope by location: Canonical library paths: 0; Generated projection paths: 0; Other paths: 11. 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 1797996866 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: 3350a8f3383c28721b1046da485fe2f0cf76ada2184337dabf4de4007c473166
    Base: 3b1b4cebf0b2babba37758d3752aec59fdc9a41d · Head: 750b3fc70424242967f52bef301dc57c3adebeb5
    Trusted implementation: 3b1b4cebf0b2babba37758d3752aec59fdc9a41d

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

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

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 (11)
  • uncovered: ".github/knowledge-model-policy.json"
  • uncovered: ".github/workflows/skill-eval-pr.yml"
  • uncovered: "AGENTS.md"
  • uncovered: "docs/architecture.md"
  • uncovered: "docs/contracts/function-owners.md"
  • uncovered: "docs/knowledge-model-policy.md"
  • uncovered: "docs/module-layout.md"
  • uncovered: "src/inferrsi/harness/README.md"
  • uncovered: "tests/test_knowledge_declaration_paths.py"
  • uncovered: "tests/test_knowledge_model_policy.py"
  • uncovered: "tools/knowledge_declaration_paths.py"

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

PASS
dot, acting for @zengchuang-hw

Independent first review of 3b1b4cebf0b2babba37758d3752aec59fdc9a41d..750b3fc70424242967f52bef301dc57c3adebeb5 (#595 accepted Group 3 only).

  • Checked the updated Harness trial, metrics and sampling paths, Apps host bindings, and renamed hash-parity test against the actual source. The docs corrections leave those ownership boundaries intact.
  • Compared both complete Git trees and policy files. Neither removed pattern matches a tracked file; all 754 knowledge-data blobs remain under skill_library/** at both revisions. The remaining workflow trigger and policy still cover that active tree. The declaration fixture still tests generated-path classification, deletion, and both ends of a rename.
  • Non-blocking wording: in docs/architecture.md, use “neither package is a core” and “Apps assembles the other three cores” to align with the four-module description in AGENTS.md.

Checks performed: static diff, source, tree, and policy matching. I did not run pytest, link checks, or CI. This approval is limited to Group 3 and is not acceptance or closure of #595.

@Dong1017 Dong1017 added the kind:task Bounded delivery task with a delegated slice label Nov 23, 2026
@Dong1017

Copy link
Copy Markdown
Collaborator Author

PR review verdict — PASS (self-check)

Reviewed base 3b1b4cebf0b2babba37758d3752aec59fdc9a41d and head 750b3fc70424242967f52bef301dc57c3adebeb5 (full diff). No formal review was seeded on this head.

A formal Approve from this login was rejected: GitHub returned "Review Can not approve your own pull request" (author Dong1017). This note is a Dong-bot self-check, not an independent approval. An eligible reviewer still needs to submit Approve with LGTM on the first line.

No blockers in the diff.

Verified:

  • Retired patterns knowledge_packs/** and repo_packs/**/knowledge/** leave together from .github/knowledge-model-policy.json, .github/workflows/skill-eval-pr.yml paths, docs/knowledge-model-policy.md, and the declaration-path fixtures. The JSON array stays well-formed: the skill_library/** entry still has its comma, and the doc paths follow it. The policy prose states Unify inference knowledge in skill_library with seven task routes and direct search #516 moved that content into skill_library/records/, which skill_library/** still covers.
  • tests/test_knowledge_model_policy.py points KNOWLEDGE at src/inferrsi/knowledge/data/skill_library/records/cuda/case.json and drops the knowledge_packs/peer/example/case.json example, so the protected-path cases match the reduced policy.
  • tools/knowledge_declaration_paths.py drops the generated prefix repo_packs/inferrsi/knowledge/ and keeps skill_library/_compiled/ and docs/skill-coverage.md. tests/test_knowledge_declaration_paths.py moves RECORD to skill_library/_compiled/common/skills/c.json, which still matches both the remaining protected skill_library/** glob and the remaining generated prefix. The in-test POLICY fixture drops the same repo_packs glob.
  • Path corrections match wording already present beside the edits. Harness README now cites trials/external.py, benchmark/metrics.py, and benchmark/sampling.py, consistent with docs/contracts/function-owners.md and docs/module-layout.md. Function-owners now names apps/host/inspection (former infra/inspection), apps/host/targets, apps.artifacts.sha256, and test_sampling_sha256_matches_the_apps_hasher, and records that task: R01 — retire legacy root paths and close core dependencies #412 R1 deleted the root execution.py forwarder. docs/module-layout.md already places the Git snapshot on apps/host/targets and states that R1 removed the old-run root forwarders. The architecture table now lists Knowledge, Harness, Benchmark, Apps, and contracts/ + resources/, with Anthropic adapters under Apps and RunSpec under contracts, matching the existing paragraph that task: retire the infra/ and model/ packages into their owning modules #498 removed the Infra and Model packages.
  • AGENTS.md now describes SIAS harness | model | infra as planes of the system being optimized. That matches the same task: retire the infra/ and model/ packages into their owning modules #498 package removal in docs/architecture.md.

Not verified here: tests were not executed, CI was not checked, and this session had no worktree to stat harness/local_process.py, apps.artifacts, or confirm the retired pack directories are absent. assets/modular-components-en.svg is unchanged in this diff.

Optional follow-up: make the core count read the same in both entry docs. AGENTS.md names four cores (Knowledge, Harness, Benchmark, Apps). docs/architecture.md says Apps assembles the three cores, and that contracts/ and resources/ are not a fourth core.

Dong-bot (authorized delegate).

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

PASS for 750b3fc70424242967f52bef301dc57c3adebeb5. Reviewed the 11 docs and policy-path changes. The retired patterns match no current source; the canonical skill_library paths and covered inventory are unchanged. The docs now point to the owning modules, and the changes do not claim to repair the separate shipped skills or task-schema work.

Exact-head Ready (45106350108) and knowledge-model-policy (45106350230) passed; no separate Skill Eval run or runtime behavior is claimed.

Reviewer: Dot, acting under direct delegation from @david6666666 for independent InferRSI PR review and eligible Approve votes.

@Dong1017
Dong1017 merged commit 65f7149 into main Nov 23, 2026
17 of 18 checks passed
@Dong1017
Dong1017 deleted the impl/595-docs branch November 23, 2026 07:15
Dong1017 added a commit that referenced this pull request Nov 23, 2026
Resolve the docs/agent-collaboration.md conflict by keeping both the merge
queue paragraph from this branch and the independent-approval observer
section from main (#441); #600's path corrections merge cleanly.

Agent-assisted-by: bothouse / claude (implementer)
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

kind:task Bounded delivery task with a delegated slice

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants