From 74cd2059f4c1c287b76b0ae90170f0b5d8d9cf06 Mon Sep 17 00:00:00 2001 From: Dong1017 <55723162+Dong1017@users.noreply.github.com> Date: Fri, 27 Nov 2026 04:42:26 +0800 Subject: [PATCH] Migrate the NPU skill factory reference directory Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (implementation) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> --- .../npu-skill-factory.bounded-updates.json | 96 ++++++ .../atoms/npu-skill-factory.comparison.json | 96 ++++++ .../npu-skill-factory.evidence-routing.json | 96 ++++++ .../npu-skill-factory.integration_notes.json | 96 ++++++ .../npu-skill-factory.learning-to-commit.json | 96 ++++++ ...l-factory.methodology-counterexamples.json | 96 ++++++ .../atoms/npu-skill-factory.original.json | 177 ++++++++++ .../npu-skill-factory.protocol-details.json | 96 ++++++ .../knowledge/atoms/npu-skill-factory.qa.json | 96 ++++++ .../atoms/npu-skill-factory.readme.json | 96 ++++++ .../atoms/npu-skill-factory.readset.json | 96 ++++++ .../npu-skill-factory.repo-to-skill.json | 96 ++++++ ...factory.skill-factory-design-20261014.json | 96 ++++++ .../atoms/npu-skill-factory.skillopt.json | 96 ++++++ .../npu-skill-factory.source-manifest.json | 96 ++++++ .../atoms/npu-skill-factory.trace2skill.json | 96 ++++++ .../atoms/npu-skill-factory.unread_leads.json | 96 ++++++ .../atoms/workflows/npu-skill-factory.md | 221 +++++++++++++ .../references/papers-20261015/COMPARISON.md | 28 ++ .../papers-20261015/INTEGRATION_NOTES.md | 51 +++ .../references/papers-20261015/QA.md | 18 ++ .../references/papers-20261015/README.md | 24 ++ .../papers-20261015/UNREAD_LEADS.md | 7 + .../cases/methodology-counterexamples.md | 51 +++ .../knowledge/evidence-routing.md | 51 +++ .../references/learning-to-commit.md | 32 ++ .../references/protocol-details.md | 49 +++ .../papers-20261015/references/readset.md | 65 ++++ .../references/repo-to-skill.md | 28 ++ .../papers-20261015/references/skillopt.md | 33 ++ .../references/source-manifest.json | 74 +++++ .../papers-20261015/references/trace2skill.md | 32 ++ .../updates/bounded-updates.md | 69 ++++ .../skill-factory-design-20261014.md | 187 +++++++++++ .../compositions/npu-skill-factory.json | 301 ++++++++++++++++++ tests/knowledge/test_atomic_workflows.py | 87 +++-- 36 files changed, 3098 insertions(+), 23 deletions(-) create mode 100644 src/inferrsi/knowledge/atoms/npu-skill-factory.bounded-updates.json create mode 100644 src/inferrsi/knowledge/atoms/npu-skill-factory.comparison.json create mode 100644 src/inferrsi/knowledge/atoms/npu-skill-factory.evidence-routing.json create mode 100644 src/inferrsi/knowledge/atoms/npu-skill-factory.integration_notes.json create mode 100644 src/inferrsi/knowledge/atoms/npu-skill-factory.learning-to-commit.json create mode 100644 src/inferrsi/knowledge/atoms/npu-skill-factory.methodology-counterexamples.json create mode 100644 src/inferrsi/knowledge/atoms/npu-skill-factory.original.json create mode 100644 src/inferrsi/knowledge/atoms/npu-skill-factory.protocol-details.json create mode 100644 src/inferrsi/knowledge/atoms/npu-skill-factory.qa.json create mode 100644 src/inferrsi/knowledge/atoms/npu-skill-factory.readme.json create mode 100644 src/inferrsi/knowledge/atoms/npu-skill-factory.readset.json create mode 100644 src/inferrsi/knowledge/atoms/npu-skill-factory.repo-to-skill.json create mode 100644 src/inferrsi/knowledge/atoms/npu-skill-factory.skill-factory-design-20261014.json create mode 100644 src/inferrsi/knowledge/atoms/npu-skill-factory.skillopt.json create mode 100644 src/inferrsi/knowledge/atoms/npu-skill-factory.source-manifest.json create mode 100644 src/inferrsi/knowledge/atoms/npu-skill-factory.trace2skill.json create mode 100644 src/inferrsi/knowledge/atoms/npu-skill-factory.unread_leads.json create mode 100644 src/inferrsi/knowledge/atoms/workflows/npu-skill-factory.md create mode 100644 src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/COMPARISON.md create mode 100644 src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/INTEGRATION_NOTES.md create mode 100644 src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/QA.md create mode 100644 src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/README.md create mode 100644 src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/UNREAD_LEADS.md create mode 100644 src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/cases/methodology-counterexamples.md create mode 100644 src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/knowledge/evidence-routing.md create mode 100644 src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/learning-to-commit.md create mode 100644 src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/protocol-details.md create mode 100644 src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/readset.md create mode 100644 src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/repo-to-skill.md create mode 100644 src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/skillopt.md create mode 100644 src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/source-manifest.json create mode 100644 src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/trace2skill.md create mode 100644 src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/updates/bounded-updates.md create mode 100644 src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/skill-factory-design-20261014.md create mode 100644 src/inferrsi/knowledge/compositions/npu-skill-factory.json diff --git a/src/inferrsi/knowledge/atoms/npu-skill-factory.bounded-updates.json b/src/inferrsi/knowledge/atoms/npu-skill-factory.bounded-updates.json new file mode 100644 index 000000000..50cd2995f --- /dev/null +++ b/src/inferrsi/knowledge/atoms/npu-skill-factory.bounded-updates.json @@ -0,0 +1,96 @@ +{ + "authority": "checkout", + "metadata": { + "title": "Bounded amendments to existing methodology artifacts", + "origin": [ + "external" + ], + "sources": [ + { + "type": "git", + "repo": "https://github.com/InferMatrixLab/InferRSI", + "commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf", + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/updates/bounded-updates.md", + "sha256": "529c363e9c678f33f7c0be0420d26c64d056321f041726362dba69e53e1e375e" + } + ], + "applicability": { + "scope": "InferRSI skill lifecycle management", + "workflow": "checkout:npu-skill-factory" + }, + "state": "candidate", + "limitations": [ + "Source-derived candidate; no local efficacy validation." + ], + "attribution": [ + { + "url": "https://github.com/VectorSpaceLab/AREX-Skill", + "commit": "ac3fe1af", + "paths": [ + "docs/disco-meta-skills.md", + "docs/disco-workflows.md", + "src/disco/skills/create-paper-module-skill/SKILL.md", + "src/disco/skills/create-paper-module-skill/scripts/create_skill_skeleton.py", + "src/disco/skills/create-paper-module-skill/scripts/validate_skill_tree.py", + "src/disco/modes/skill-policy.ts", + "src/core/repo-skills-library-manager.ts" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/SkillOpt/SkillOpt", + "commit": "343db229", + "paths": [ + "skillopt/evaluation/gate.py", + "skillopt/optimizer/skill.py", + "skillopt/optimizer/clip.py", + "skillopt_sleep/cycle.py", + "skillopt_sleep/harvest_sources.py" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/WillowMindIE/MindIE-SD", + "commit": "8481d39b", + "paths": [ + ".agents/skills/profiling-analyze/SKILL.md", + ".agents/skills/dit-perf-opt/SKILL.md", + ".agents/skills/perf-gate/SKILL.md", + ".agents/skills/dit-parallel-opt/SKILL.md" + ], + "type": "git", + "revision_precision": "prefix" + } + ], + "empirical_validation": "not_run", + "id": "npu-skill-factory.bounded-updates", + "kind": "knowledge", + "entrypoint": "bounded-updates.md", + "atom": { + "when": {}, + "license": "Apache-2.0", + "permissions": { + "read": true, + "retain": true, + "redistribute": true + }, + "layer": "L3", + "source_span": { + "source_index": 0, + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/updates/bounded-updates.md", + "byte_range": [ + 0, + 7695 + ], + "sha256": "529c363e9c678f33f7c0be0420d26c64d056321f041726362dba69e53e1e375e" + } + } + }, + "content": { + "bounded-updates.md": { + "path": "workflows/npu-skill-factory/references/papers-20261015/updates/bounded-updates.md" + } + } +} diff --git a/src/inferrsi/knowledge/atoms/npu-skill-factory.comparison.json b/src/inferrsi/knowledge/atoms/npu-skill-factory.comparison.json new file mode 100644 index 000000000..d089ced43 --- /dev/null +++ b/src/inferrsi/knowledge/atoms/npu-skill-factory.comparison.json @@ -0,0 +1,96 @@ +{ + "authority": "checkout", + "metadata": { + "title": "Comparison: choose the artifact before choosing the learning method", + "origin": [ + "external" + ], + "sources": [ + { + "type": "git", + "repo": "https://github.com/InferMatrixLab/InferRSI", + "commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf", + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/COMPARISON.md", + "sha256": "38587678a96581f5c2dc697d982127343565504bffa191352811dffcc165aa23" + } + ], + "applicability": { + "scope": "InferRSI skill lifecycle management", + "workflow": "checkout:npu-skill-factory" + }, + "state": "candidate", + "limitations": [ + "Source-derived candidate; no local efficacy validation." + ], + "attribution": [ + { + "url": "https://github.com/VectorSpaceLab/AREX-Skill", + "commit": "ac3fe1af", + "paths": [ + "docs/disco-meta-skills.md", + "docs/disco-workflows.md", + "src/disco/skills/create-paper-module-skill/SKILL.md", + "src/disco/skills/create-paper-module-skill/scripts/create_skill_skeleton.py", + "src/disco/skills/create-paper-module-skill/scripts/validate_skill_tree.py", + "src/disco/modes/skill-policy.ts", + "src/core/repo-skills-library-manager.ts" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/SkillOpt/SkillOpt", + "commit": "343db229", + "paths": [ + "skillopt/evaluation/gate.py", + "skillopt/optimizer/skill.py", + "skillopt/optimizer/clip.py", + "skillopt_sleep/cycle.py", + "skillopt_sleep/harvest_sources.py" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/WillowMindIE/MindIE-SD", + "commit": "8481d39b", + "paths": [ + ".agents/skills/profiling-analyze/SKILL.md", + ".agents/skills/dit-perf-opt/SKILL.md", + ".agents/skills/perf-gate/SKILL.md", + ".agents/skills/dit-parallel-opt/SKILL.md" + ], + "type": "git", + "revision_precision": "prefix" + } + ], + "empirical_validation": "not_run", + "id": "npu-skill-factory.comparison", + "kind": "knowledge", + "entrypoint": "COMPARISON.md", + "atom": { + "when": {}, + "license": "Apache-2.0", + "permissions": { + "read": true, + "retain": true, + "redistribute": true + }, + "layer": "L3", + "source_span": { + "source_index": 0, + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/COMPARISON.md", + "byte_range": [ + 0, + 4267 + ], + "sha256": "38587678a96581f5c2dc697d982127343565504bffa191352811dffcc165aa23" + } + } + }, + "content": { + "COMPARISON.md": { + "path": "workflows/npu-skill-factory/references/papers-20261015/COMPARISON.md" + } + } +} diff --git a/src/inferrsi/knowledge/atoms/npu-skill-factory.evidence-routing.json b/src/inferrsi/knowledge/atoms/npu-skill-factory.evidence-routing.json new file mode 100644 index 000000000..1b59a11c8 --- /dev/null +++ b/src/inferrsi/knowledge/atoms/npu-skill-factory.evidence-routing.json @@ -0,0 +1,96 @@ +{ + "authority": "checkout", + "metadata": { + "title": "Candidate knowledge: evidence-to-artifact admission", + "origin": [ + "external" + ], + "sources": [ + { + "type": "git", + "repo": "https://github.com/InferMatrixLab/InferRSI", + "commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf", + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/knowledge/evidence-routing.md", + "sha256": "406d5d74c3fef4c1a23d495492e21a084c3c46495a1a84b385703ed104358874" + } + ], + "applicability": { + "scope": "InferRSI skill lifecycle management", + "workflow": "checkout:npu-skill-factory" + }, + "state": "candidate", + "limitations": [ + "Source-derived candidate; no local efficacy validation." + ], + "attribution": [ + { + "url": "https://github.com/VectorSpaceLab/AREX-Skill", + "commit": "ac3fe1af", + "paths": [ + "docs/disco-meta-skills.md", + "docs/disco-workflows.md", + "src/disco/skills/create-paper-module-skill/SKILL.md", + "src/disco/skills/create-paper-module-skill/scripts/create_skill_skeleton.py", + "src/disco/skills/create-paper-module-skill/scripts/validate_skill_tree.py", + "src/disco/modes/skill-policy.ts", + "src/core/repo-skills-library-manager.ts" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/SkillOpt/SkillOpt", + "commit": "343db229", + "paths": [ + "skillopt/evaluation/gate.py", + "skillopt/optimizer/skill.py", + "skillopt/optimizer/clip.py", + "skillopt_sleep/cycle.py", + "skillopt_sleep/harvest_sources.py" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/WillowMindIE/MindIE-SD", + "commit": "8481d39b", + "paths": [ + ".agents/skills/profiling-analyze/SKILL.md", + ".agents/skills/dit-perf-opt/SKILL.md", + ".agents/skills/perf-gate/SKILL.md", + ".agents/skills/dit-parallel-opt/SKILL.md" + ], + "type": "git", + "revision_precision": "prefix" + } + ], + "empirical_validation": "not_run", + "id": "npu-skill-factory.evidence-routing", + "kind": "knowledge", + "entrypoint": "evidence-routing.md", + "atom": { + "when": {}, + "license": "Apache-2.0", + "permissions": { + "read": true, + "retain": true, + "redistribute": true + }, + "layer": "L3", + "source_span": { + "source_index": 0, + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/knowledge/evidence-routing.md", + "byte_range": [ + 0, + 5282 + ], + "sha256": "406d5d74c3fef4c1a23d495492e21a084c3c46495a1a84b385703ed104358874" + } + } + }, + "content": { + "evidence-routing.md": { + "path": "workflows/npu-skill-factory/references/papers-20261015/knowledge/evidence-routing.md" + } + } +} diff --git a/src/inferrsi/knowledge/atoms/npu-skill-factory.integration_notes.json b/src/inferrsi/knowledge/atoms/npu-skill-factory.integration_notes.json new file mode 100644 index 000000000..686570630 --- /dev/null +++ b/src/inferrsi/knowledge/atoms/npu-skill-factory.integration_notes.json @@ -0,0 +1,96 @@ +{ + "authority": "checkout", + "metadata": { + "title": "Pack E integration notes", + "origin": [ + "external" + ], + "sources": [ + { + "type": "git", + "repo": "https://github.com/InferMatrixLab/InferRSI", + "commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf", + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/INTEGRATION_NOTES.md", + "sha256": "fbc4a96b6f6c477706eed83eaa4fcc29a14f881637629d6c004601ed049f2523" + } + ], + "applicability": { + "scope": "InferRSI skill lifecycle management", + "workflow": "checkout:npu-skill-factory" + }, + "state": "candidate", + "limitations": [ + "Source-derived candidate; no local efficacy validation." + ], + "attribution": [ + { + "url": "https://github.com/VectorSpaceLab/AREX-Skill", + "commit": "ac3fe1af", + "paths": [ + "docs/disco-meta-skills.md", + "docs/disco-workflows.md", + "src/disco/skills/create-paper-module-skill/SKILL.md", + "src/disco/skills/create-paper-module-skill/scripts/create_skill_skeleton.py", + "src/disco/skills/create-paper-module-skill/scripts/validate_skill_tree.py", + "src/disco/modes/skill-policy.ts", + "src/core/repo-skills-library-manager.ts" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/SkillOpt/SkillOpt", + "commit": "343db229", + "paths": [ + "skillopt/evaluation/gate.py", + "skillopt/optimizer/skill.py", + "skillopt/optimizer/clip.py", + "skillopt_sleep/cycle.py", + "skillopt_sleep/harvest_sources.py" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/WillowMindIE/MindIE-SD", + "commit": "8481d39b", + "paths": [ + ".agents/skills/profiling-analyze/SKILL.md", + ".agents/skills/dit-perf-opt/SKILL.md", + ".agents/skills/perf-gate/SKILL.md", + ".agents/skills/dit-parallel-opt/SKILL.md" + ], + "type": "git", + "revision_precision": "prefix" + } + ], + "empirical_validation": "not_run", + "id": "npu-skill-factory.integration_notes", + "kind": "knowledge", + "entrypoint": "INTEGRATION_NOTES.md", + "atom": { + "when": {}, + "license": "Apache-2.0", + "permissions": { + "read": true, + "retain": true, + "redistribute": true + }, + "layer": "L3", + "source_span": { + "source_index": 0, + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/INTEGRATION_NOTES.md", + "byte_range": [ + 0, + 5557 + ], + "sha256": "fbc4a96b6f6c477706eed83eaa4fcc29a14f881637629d6c004601ed049f2523" + } + } + }, + "content": { + "INTEGRATION_NOTES.md": { + "path": "workflows/npu-skill-factory/references/papers-20261015/INTEGRATION_NOTES.md" + } + } +} diff --git a/src/inferrsi/knowledge/atoms/npu-skill-factory.learning-to-commit.json b/src/inferrsi/knowledge/atoms/npu-skill-factory.learning-to-commit.json new file mode 100644 index 000000000..b34c129e9 --- /dev/null +++ b/src/inferrsi/knowledge/atoms/npu-skill-factory.learning-to-commit.json @@ -0,0 +1,96 @@ +{ + "authority": "checkout", + "metadata": { + "title": "Learning to Commit evidence ledger", + "origin": [ + "external" + ], + "sources": [ + { + "type": "git", + "repo": "https://github.com/InferMatrixLab/InferRSI", + "commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf", + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/references/learning-to-commit.md", + "sha256": "9c2d1d738e896d05c00f53e6adf14c9df2501ecc3f0020e71b5a1c2192547086" + } + ], + "applicability": { + "scope": "InferRSI skill lifecycle management", + "workflow": "checkout:npu-skill-factory" + }, + "state": "candidate", + "limitations": [ + "Source-derived candidate; no local efficacy validation." + ], + "attribution": [ + { + "url": "https://github.com/VectorSpaceLab/AREX-Skill", + "commit": "ac3fe1af", + "paths": [ + "docs/disco-meta-skills.md", + "docs/disco-workflows.md", + "src/disco/skills/create-paper-module-skill/SKILL.md", + "src/disco/skills/create-paper-module-skill/scripts/create_skill_skeleton.py", + "src/disco/skills/create-paper-module-skill/scripts/validate_skill_tree.py", + "src/disco/modes/skill-policy.ts", + "src/core/repo-skills-library-manager.ts" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/SkillOpt/SkillOpt", + "commit": "343db229", + "paths": [ + "skillopt/evaluation/gate.py", + "skillopt/optimizer/skill.py", + "skillopt/optimizer/clip.py", + "skillopt_sleep/cycle.py", + "skillopt_sleep/harvest_sources.py" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/WillowMindIE/MindIE-SD", + "commit": "8481d39b", + "paths": [ + ".agents/skills/profiling-analyze/SKILL.md", + ".agents/skills/dit-perf-opt/SKILL.md", + ".agents/skills/perf-gate/SKILL.md", + ".agents/skills/dit-parallel-opt/SKILL.md" + ], + "type": "git", + "revision_precision": "prefix" + } + ], + "empirical_validation": "not_run", + "id": "npu-skill-factory.learning-to-commit", + "kind": "knowledge", + "entrypoint": "learning-to-commit.md", + "atom": { + "when": {}, + "license": "Apache-2.0", + "permissions": { + "read": true, + "retain": true, + "redistribute": true + }, + "layer": "L3", + "source_span": { + "source_index": 0, + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/references/learning-to-commit.md", + "byte_range": [ + 0, + 2847 + ], + "sha256": "9c2d1d738e896d05c00f53e6adf14c9df2501ecc3f0020e71b5a1c2192547086" + } + } + }, + "content": { + "learning-to-commit.md": { + "path": "workflows/npu-skill-factory/references/papers-20261015/references/learning-to-commit.md" + } + } +} diff --git a/src/inferrsi/knowledge/atoms/npu-skill-factory.methodology-counterexamples.json b/src/inferrsi/knowledge/atoms/npu-skill-factory.methodology-counterexamples.json new file mode 100644 index 000000000..5150ce1c1 --- /dev/null +++ b/src/inferrsi/knowledge/atoms/npu-skill-factory.methodology-counterexamples.json @@ -0,0 +1,96 @@ +{ + "authority": "checkout", + "metadata": { + "title": "Candidate cases: where seemingly useful rules fail", + "origin": [ + "external" + ], + "sources": [ + { + "type": "git", + "repo": "https://github.com/InferMatrixLab/InferRSI", + "commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf", + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/cases/methodology-counterexamples.md", + "sha256": "f9fc21753ea41eef77ca020d78d031e945e5dd835b5d09c5ff0e53749ceb2ca4" + } + ], + "applicability": { + "scope": "InferRSI skill lifecycle management", + "workflow": "checkout:npu-skill-factory" + }, + "state": "candidate", + "limitations": [ + "Source-derived candidate; no local efficacy validation." + ], + "attribution": [ + { + "url": "https://github.com/VectorSpaceLab/AREX-Skill", + "commit": "ac3fe1af", + "paths": [ + "docs/disco-meta-skills.md", + "docs/disco-workflows.md", + "src/disco/skills/create-paper-module-skill/SKILL.md", + "src/disco/skills/create-paper-module-skill/scripts/create_skill_skeleton.py", + "src/disco/skills/create-paper-module-skill/scripts/validate_skill_tree.py", + "src/disco/modes/skill-policy.ts", + "src/core/repo-skills-library-manager.ts" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/SkillOpt/SkillOpt", + "commit": "343db229", + "paths": [ + "skillopt/evaluation/gate.py", + "skillopt/optimizer/skill.py", + "skillopt/optimizer/clip.py", + "skillopt_sleep/cycle.py", + "skillopt_sleep/harvest_sources.py" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/WillowMindIE/MindIE-SD", + "commit": "8481d39b", + "paths": [ + ".agents/skills/profiling-analyze/SKILL.md", + ".agents/skills/dit-perf-opt/SKILL.md", + ".agents/skills/perf-gate/SKILL.md", + ".agents/skills/dit-parallel-opt/SKILL.md" + ], + "type": "git", + "revision_precision": "prefix" + } + ], + "empirical_validation": "not_run", + "id": "npu-skill-factory.methodology-counterexamples", + "kind": "knowledge", + "entrypoint": "methodology-counterexamples.md", + "atom": { + "when": {}, + "license": "Apache-2.0", + "permissions": { + "read": true, + "retain": true, + "redistribute": true + }, + "layer": "L3", + "source_span": { + "source_index": 0, + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/cases/methodology-counterexamples.md", + "byte_range": [ + 0, + 5213 + ], + "sha256": "f9fc21753ea41eef77ca020d78d031e945e5dd835b5d09c5ff0e53749ceb2ca4" + } + } + }, + "content": { + "methodology-counterexamples.md": { + "path": "workflows/npu-skill-factory/references/papers-20261015/cases/methodology-counterexamples.md" + } + } +} diff --git a/src/inferrsi/knowledge/atoms/npu-skill-factory.original.json b/src/inferrsi/knowledge/atoms/npu-skill-factory.original.json new file mode 100644 index 000000000..dc58eda75 --- /dev/null +++ b/src/inferrsi/knowledge/atoms/npu-skill-factory.original.json @@ -0,0 +1,177 @@ +{ + "authority": "checkout", + "metadata": { + "id": "npu-skill-factory.original", + "kind": "knowledge", + "entrypoint": "guide.md", + "title": "Design and operation of the InferRSI NPU skill factory: artifact lifecycle, skill evaluation contract, corpus selection, hide-and-re-distill procedure, and skill evolution cycle. Use when deciding where new skill artifacts belong, how to distill a candidate skill, or how to run the No-Skill vs Human-Skill vs Distilled-Skill comparison.\n", + "origin": [ + "external" + ], + "sources": [ + { + "type": "git", + "repo": "https://github.com/InferMatrixLab/InferRSI", + "commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf", + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/SKILL.md", + "sha256": "0de28180da76b6cb9d2c9456733011d00d9801f7662afd32959c4c5d2c05a183" + }, + { + "url": "https://github.com/VectorSpaceLab/AREX-Skill", + "commit": "ac3fe1af", + "paths": [ + "docs/disco-meta-skills.md", + "docs/disco-workflows.md", + "src/disco/skills/create-paper-module-skill/SKILL.md", + "src/disco/skills/create-paper-module-skill/scripts/create_skill_skeleton.py", + "src/disco/skills/create-paper-module-skill/scripts/validate_skill_tree.py", + "src/disco/modes/skill-policy.ts", + "src/core/repo-skills-library-manager.ts" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/SkillOpt/SkillOpt", + "commit": "343db229", + "paths": [ + "skillopt/evaluation/gate.py", + "skillopt/optimizer/skill.py", + "skillopt/optimizer/clip.py", + "skillopt_sleep/cycle.py", + "skillopt_sleep/harvest_sources.py" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/WillowMindIE/MindIE-SD", + "commit": "8481d39b", + "paths": [ + ".agents/skills/profiling-analyze/SKILL.md", + ".agents/skills/dit-perf-opt/SKILL.md", + ".agents/skills/perf-gate/SKILL.md", + ".agents/skills/dit-parallel-opt/SKILL.md" + ], + "type": "git", + "revision_precision": "prefix" + } + ], + "applicability": { + "scope": "InferRSI skill lifecycle management", + "prerequisites": "Current candidate inventory and source/evaluation evidence; historical sibling execution interfaces are not required for read-only artifact admission", + "input_contract": "A candidate inventory plus the source and evaluation evidence for each candidate skill; read-only artifact admission needs no historical sibling execution interface", + "produced_artifact": "An admitted or refused skill candidate with its source, evidence and limitation record, and its stable id and owning path", + "failure_modes": [ + "A candidate admitted on an inventory line without source or evaluation evidence", + "A stable id or path assigned twice across owners", + "Indexing or admission reported as validation or promotion", + "Paper-to-code equivalence asserted without a pinned readset" + ], + "refusal_point": "Refuses admission when a candidate has neither source evidence nor a declared evaluation state, and records the refusal instead of leaving the field blank" + }, + "state": "candidate", + "limitations": [ + "Source-derived candidate; no local efficacy validation.", + "Checkout-only local skill; no automatic execution or promotion.", + "Only declared references are required; other cross-skill links are navigation.", + "Historical revisions require a matching checkout or a retained store." + ], + "attribution": [ + { + "url": "https://github.com/VectorSpaceLab/AREX-Skill", + "commit": "ac3fe1af", + "paths": [ + "docs/disco-meta-skills.md", + "docs/disco-workflows.md", + "src/disco/skills/create-paper-module-skill/SKILL.md", + "src/disco/skills/create-paper-module-skill/scripts/create_skill_skeleton.py", + "src/disco/skills/create-paper-module-skill/scripts/validate_skill_tree.py", + "src/disco/modes/skill-policy.ts", + "src/core/repo-skills-library-manager.ts" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/SkillOpt/SkillOpt", + "commit": "343db229", + "paths": [ + "skillopt/evaluation/gate.py", + "skillopt/optimizer/skill.py", + "skillopt/optimizer/clip.py", + "skillopt_sleep/cycle.py", + "skillopt_sleep/harvest_sources.py" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/WillowMindIE/MindIE-SD", + "commit": "8481d39b", + "paths": [ + ".agents/skills/profiling-analyze/SKILL.md", + ".agents/skills/dit-perf-opt/SKILL.md", + ".agents/skills/perf-gate/SKILL.md", + ".agents/skills/dit-parallel-opt/SKILL.md" + ], + "type": "git", + "revision_precision": "prefix" + } + ], + "empirical_validation": "not_run", + "atom": { + "when": {}, + "license": "Apache-2.0", + "permissions": { + "read": true, + "retain": true, + "redistribute": true + }, + "layer": "L3", + "source_span": { + "source_index": 0, + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/SKILL.md", + "byte_range": [ + 0, + 11624 + ], + "sha256": "0de28180da76b6cb9d2c9456733011d00d9801f7662afd32959c4c5d2c05a183" + } + } + }, + "content": { + "guide.md": { + "path": "workflows/npu-skill-factory.md" + } + }, + "parts": { + "navigation": { + "skill_section": "navigation", + "layer": "L0", + "byte_range": [ + 0, + 385 + ], + "sha256": "df91dcc575a6ec332c874761c80dc3725ff531ed9ac338ab41c2dad19faa8953" + }, + "decision": { + "skill_section": "decision", + "layer": "L1", + "byte_range": [ + 0, + 5501 + ], + "sha256": "a4cb3276728abb08b2b1aac66c7a353809ce824bf93cb38d8a621d5e46a2bcfc" + }, + "procedure": { + "skill_section": "procedure", + "layer": "L2", + "byte_range": [ + 5501, + 11624 + ], + "sha256": "e69b99de5ee65ed9d6289811b3993913961968184c4d8ee234def2bf4364db9a" + } + } +} diff --git a/src/inferrsi/knowledge/atoms/npu-skill-factory.protocol-details.json b/src/inferrsi/knowledge/atoms/npu-skill-factory.protocol-details.json new file mode 100644 index 000000000..f1b74f43e --- /dev/null +++ b/src/inferrsi/knowledge/atoms/npu-skill-factory.protocol-details.json @@ -0,0 +1,96 @@ +{ + "authority": "checkout", + "metadata": { + "title": "Protocol details and unreported quantities", + "origin": [ + "external" + ], + "sources": [ + { + "type": "git", + "repo": "https://github.com/InferMatrixLab/InferRSI", + "commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf", + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/references/protocol-details.md", + "sha256": "41298c6bde3a28f0712fa06a18bbc4ac59aea6d17cc9eb1318744f4121e3bab6" + } + ], + "applicability": { + "scope": "InferRSI skill lifecycle management", + "workflow": "checkout:npu-skill-factory" + }, + "state": "candidate", + "limitations": [ + "Source-derived candidate; no local efficacy validation." + ], + "attribution": [ + { + "url": "https://github.com/VectorSpaceLab/AREX-Skill", + "commit": "ac3fe1af", + "paths": [ + "docs/disco-meta-skills.md", + "docs/disco-workflows.md", + "src/disco/skills/create-paper-module-skill/SKILL.md", + "src/disco/skills/create-paper-module-skill/scripts/create_skill_skeleton.py", + "src/disco/skills/create-paper-module-skill/scripts/validate_skill_tree.py", + "src/disco/modes/skill-policy.ts", + "src/core/repo-skills-library-manager.ts" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/SkillOpt/SkillOpt", + "commit": "343db229", + "paths": [ + "skillopt/evaluation/gate.py", + "skillopt/optimizer/skill.py", + "skillopt/optimizer/clip.py", + "skillopt_sleep/cycle.py", + "skillopt_sleep/harvest_sources.py" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/WillowMindIE/MindIE-SD", + "commit": "8481d39b", + "paths": [ + ".agents/skills/profiling-analyze/SKILL.md", + ".agents/skills/dit-perf-opt/SKILL.md", + ".agents/skills/perf-gate/SKILL.md", + ".agents/skills/dit-parallel-opt/SKILL.md" + ], + "type": "git", + "revision_precision": "prefix" + } + ], + "empirical_validation": "not_run", + "id": "npu-skill-factory.protocol-details", + "kind": "knowledge", + "entrypoint": "protocol-details.md", + "atom": { + "when": {}, + "license": "Apache-2.0", + "permissions": { + "read": true, + "retain": true, + "redistribute": true + }, + "layer": "L3", + "source_span": { + "source_index": 0, + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/references/protocol-details.md", + "byte_range": [ + 0, + 6520 + ], + "sha256": "41298c6bde3a28f0712fa06a18bbc4ac59aea6d17cc9eb1318744f4121e3bab6" + } + } + }, + "content": { + "protocol-details.md": { + "path": "workflows/npu-skill-factory/references/papers-20261015/references/protocol-details.md" + } + } +} diff --git a/src/inferrsi/knowledge/atoms/npu-skill-factory.qa.json b/src/inferrsi/knowledge/atoms/npu-skill-factory.qa.json new file mode 100644 index 000000000..0cb9f0e7e --- /dev/null +++ b/src/inferrsi/knowledge/atoms/npu-skill-factory.qa.json @@ -0,0 +1,96 @@ +{ + "authority": "checkout", + "metadata": { + "title": "Pack E delivery QA", + "origin": [ + "external" + ], + "sources": [ + { + "type": "git", + "repo": "https://github.com/InferMatrixLab/InferRSI", + "commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf", + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/QA.md", + "sha256": "3f3785ec39a6938a5d1f2e874e99153fe92c0e666dd3e78a499c8b47d891346a" + } + ], + "applicability": { + "scope": "InferRSI skill lifecycle management", + "workflow": "checkout:npu-skill-factory" + }, + "state": "candidate", + "limitations": [ + "Source-derived candidate; no local efficacy validation." + ], + "attribution": [ + { + "url": "https://github.com/VectorSpaceLab/AREX-Skill", + "commit": "ac3fe1af", + "paths": [ + "docs/disco-meta-skills.md", + "docs/disco-workflows.md", + "src/disco/skills/create-paper-module-skill/SKILL.md", + "src/disco/skills/create-paper-module-skill/scripts/create_skill_skeleton.py", + "src/disco/skills/create-paper-module-skill/scripts/validate_skill_tree.py", + "src/disco/modes/skill-policy.ts", + "src/core/repo-skills-library-manager.ts" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/SkillOpt/SkillOpt", + "commit": "343db229", + "paths": [ + "skillopt/evaluation/gate.py", + "skillopt/optimizer/skill.py", + "skillopt/optimizer/clip.py", + "skillopt_sleep/cycle.py", + "skillopt_sleep/harvest_sources.py" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/WillowMindIE/MindIE-SD", + "commit": "8481d39b", + "paths": [ + ".agents/skills/profiling-analyze/SKILL.md", + ".agents/skills/dit-perf-opt/SKILL.md", + ".agents/skills/perf-gate/SKILL.md", + ".agents/skills/dit-parallel-opt/SKILL.md" + ], + "type": "git", + "revision_precision": "prefix" + } + ], + "empirical_validation": "not_run", + "id": "npu-skill-factory.qa", + "kind": "knowledge", + "entrypoint": "QA.md", + "atom": { + "when": {}, + "license": "Apache-2.0", + "permissions": { + "read": true, + "retain": true, + "redistribute": true + }, + "layer": "L3", + "source_span": { + "source_index": 0, + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/QA.md", + "byte_range": [ + 0, + 1853 + ], + "sha256": "3f3785ec39a6938a5d1f2e874e99153fe92c0e666dd3e78a499c8b47d891346a" + } + } + }, + "content": { + "QA.md": { + "path": "workflows/npu-skill-factory/references/papers-20261015/QA.md" + } + } +} diff --git a/src/inferrsi/knowledge/atoms/npu-skill-factory.readme.json b/src/inferrsi/knowledge/atoms/npu-skill-factory.readme.json new file mode 100644 index 000000000..b83861994 --- /dev/null +++ b/src/inferrsi/knowledge/atoms/npu-skill-factory.readme.json @@ -0,0 +1,96 @@ +{ + "authority": "checkout", + "metadata": { + "title": "Pack E — Evidence into repository memory and bounded skills", + "origin": [ + "external" + ], + "sources": [ + { + "type": "git", + "repo": "https://github.com/InferMatrixLab/InferRSI", + "commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf", + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/README.md", + "sha256": "221785e91c45588f82b3caab6d52f1ea1d102b16139c20a0802921e2789e6d28" + } + ], + "applicability": { + "scope": "InferRSI skill lifecycle management", + "workflow": "checkout:npu-skill-factory" + }, + "state": "candidate", + "limitations": [ + "Source-derived candidate; no local efficacy validation." + ], + "attribution": [ + { + "url": "https://github.com/VectorSpaceLab/AREX-Skill", + "commit": "ac3fe1af", + "paths": [ + "docs/disco-meta-skills.md", + "docs/disco-workflows.md", + "src/disco/skills/create-paper-module-skill/SKILL.md", + "src/disco/skills/create-paper-module-skill/scripts/create_skill_skeleton.py", + "src/disco/skills/create-paper-module-skill/scripts/validate_skill_tree.py", + "src/disco/modes/skill-policy.ts", + "src/core/repo-skills-library-manager.ts" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/SkillOpt/SkillOpt", + "commit": "343db229", + "paths": [ + "skillopt/evaluation/gate.py", + "skillopt/optimizer/skill.py", + "skillopt/optimizer/clip.py", + "skillopt_sleep/cycle.py", + "skillopt_sleep/harvest_sources.py" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/WillowMindIE/MindIE-SD", + "commit": "8481d39b", + "paths": [ + ".agents/skills/profiling-analyze/SKILL.md", + ".agents/skills/dit-perf-opt/SKILL.md", + ".agents/skills/perf-gate/SKILL.md", + ".agents/skills/dit-parallel-opt/SKILL.md" + ], + "type": "git", + "revision_precision": "prefix" + } + ], + "empirical_validation": "not_run", + "id": "npu-skill-factory.readme", + "kind": "knowledge", + "entrypoint": "README.md", + "atom": { + "when": {}, + "license": "Apache-2.0", + "permissions": { + "read": true, + "retain": true, + "redistribute": true + }, + "layer": "L3", + "source_span": { + "source_index": 0, + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/README.md", + "byte_range": [ + 0, + 2151 + ], + "sha256": "221785e91c45588f82b3caab6d52f1ea1d102b16139c20a0802921e2789e6d28" + } + } + }, + "content": { + "README.md": { + "path": "workflows/npu-skill-factory/references/papers-20261015/README.md" + } + } +} diff --git a/src/inferrsi/knowledge/atoms/npu-skill-factory.readset.json b/src/inferrsi/knowledge/atoms/npu-skill-factory.readset.json new file mode 100644 index 000000000..4b2a1aef7 --- /dev/null +++ b/src/inferrsi/knowledge/atoms/npu-skill-factory.readset.json @@ -0,0 +1,96 @@ +{ + "authority": "checkout", + "metadata": { + "title": "Exact readset and availability", + "origin": [ + "external" + ], + "sources": [ + { + "type": "git", + "repo": "https://github.com/InferMatrixLab/InferRSI", + "commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf", + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/references/readset.md", + "sha256": "6f953d20d8958c68339c9ceeae348604d0fea3e9c6ccb9b64a63d3b210426a22" + } + ], + "applicability": { + "scope": "InferRSI skill lifecycle management", + "workflow": "checkout:npu-skill-factory" + }, + "state": "candidate", + "limitations": [ + "Source-derived candidate; no local efficacy validation." + ], + "attribution": [ + { + "url": "https://github.com/VectorSpaceLab/AREX-Skill", + "commit": "ac3fe1af", + "paths": [ + "docs/disco-meta-skills.md", + "docs/disco-workflows.md", + "src/disco/skills/create-paper-module-skill/SKILL.md", + "src/disco/skills/create-paper-module-skill/scripts/create_skill_skeleton.py", + "src/disco/skills/create-paper-module-skill/scripts/validate_skill_tree.py", + "src/disco/modes/skill-policy.ts", + "src/core/repo-skills-library-manager.ts" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/SkillOpt/SkillOpt", + "commit": "343db229", + "paths": [ + "skillopt/evaluation/gate.py", + "skillopt/optimizer/skill.py", + "skillopt/optimizer/clip.py", + "skillopt_sleep/cycle.py", + "skillopt_sleep/harvest_sources.py" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/WillowMindIE/MindIE-SD", + "commit": "8481d39b", + "paths": [ + ".agents/skills/profiling-analyze/SKILL.md", + ".agents/skills/dit-perf-opt/SKILL.md", + ".agents/skills/perf-gate/SKILL.md", + ".agents/skills/dit-parallel-opt/SKILL.md" + ], + "type": "git", + "revision_precision": "prefix" + } + ], + "empirical_validation": "not_run", + "id": "npu-skill-factory.readset", + "kind": "knowledge", + "entrypoint": "readset.md", + "atom": { + "when": {}, + "license": "Apache-2.0", + "permissions": { + "read": true, + "retain": true, + "redistribute": true + }, + "layer": "L3", + "source_span": { + "source_index": 0, + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/references/readset.md", + "byte_range": [ + 0, + 7086 + ], + "sha256": "6f953d20d8958c68339c9ceeae348604d0fea3e9c6ccb9b64a63d3b210426a22" + } + } + }, + "content": { + "readset.md": { + "path": "workflows/npu-skill-factory/references/papers-20261015/references/readset.md" + } + } +} diff --git a/src/inferrsi/knowledge/atoms/npu-skill-factory.repo-to-skill.json b/src/inferrsi/knowledge/atoms/npu-skill-factory.repo-to-skill.json new file mode 100644 index 000000000..06f1302b5 --- /dev/null +++ b/src/inferrsi/knowledge/atoms/npu-skill-factory.repo-to-skill.json @@ -0,0 +1,96 @@ +{ + "authority": "checkout", + "metadata": { + "title": "Repo-To-Skill evidence ledger", + "origin": [ + "external" + ], + "sources": [ + { + "type": "git", + "repo": "https://github.com/InferMatrixLab/InferRSI", + "commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf", + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/references/repo-to-skill.md", + "sha256": "5ebdac2a2bbbe6614f9d4096bc9895bd685acdf76414e2c3c1fb7b50d57c738d" + } + ], + "applicability": { + "scope": "InferRSI skill lifecycle management", + "workflow": "checkout:npu-skill-factory" + }, + "state": "candidate", + "limitations": [ + "Source-derived candidate; no local efficacy validation." + ], + "attribution": [ + { + "url": "https://github.com/VectorSpaceLab/AREX-Skill", + "commit": "ac3fe1af", + "paths": [ + "docs/disco-meta-skills.md", + "docs/disco-workflows.md", + "src/disco/skills/create-paper-module-skill/SKILL.md", + "src/disco/skills/create-paper-module-skill/scripts/create_skill_skeleton.py", + "src/disco/skills/create-paper-module-skill/scripts/validate_skill_tree.py", + "src/disco/modes/skill-policy.ts", + "src/core/repo-skills-library-manager.ts" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/SkillOpt/SkillOpt", + "commit": "343db229", + "paths": [ + "skillopt/evaluation/gate.py", + "skillopt/optimizer/skill.py", + "skillopt/optimizer/clip.py", + "skillopt_sleep/cycle.py", + "skillopt_sleep/harvest_sources.py" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/WillowMindIE/MindIE-SD", + "commit": "8481d39b", + "paths": [ + ".agents/skills/profiling-analyze/SKILL.md", + ".agents/skills/dit-perf-opt/SKILL.md", + ".agents/skills/perf-gate/SKILL.md", + ".agents/skills/dit-parallel-opt/SKILL.md" + ], + "type": "git", + "revision_precision": "prefix" + } + ], + "empirical_validation": "not_run", + "id": "npu-skill-factory.repo-to-skill", + "kind": "knowledge", + "entrypoint": "repo-to-skill.md", + "atom": { + "when": {}, + "license": "Apache-2.0", + "permissions": { + "read": true, + "retain": true, + "redistribute": true + }, + "layer": "L3", + "source_span": { + "source_index": 0, + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/references/repo-to-skill.md", + "byte_range": [ + 0, + 3151 + ], + "sha256": "5ebdac2a2bbbe6614f9d4096bc9895bd685acdf76414e2c3c1fb7b50d57c738d" + } + } + }, + "content": { + "repo-to-skill.md": { + "path": "workflows/npu-skill-factory/references/papers-20261015/references/repo-to-skill.md" + } + } +} diff --git a/src/inferrsi/knowledge/atoms/npu-skill-factory.skill-factory-design-20261014.json b/src/inferrsi/knowledge/atoms/npu-skill-factory.skill-factory-design-20261014.json new file mode 100644 index 000000000..475209496 --- /dev/null +++ b/src/inferrsi/knowledge/atoms/npu-skill-factory.skill-factory-design-20261014.json @@ -0,0 +1,96 @@ +{ + "authority": "checkout", + "metadata": { + "title": "Skill factory design detail (historical, 2026-10-14/15)", + "origin": [ + "external" + ], + "sources": [ + { + "type": "git", + "repo": "https://github.com/InferMatrixLab/InferRSI", + "commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf", + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/skill-factory-design-20261014.md", + "sha256": "0b2e05bb6a4a3b3f6df0b04abc40ec125be60714b87f609a390246ee2a292d2d" + } + ], + "applicability": { + "scope": "InferRSI skill lifecycle management", + "workflow": "checkout:npu-skill-factory" + }, + "state": "candidate", + "limitations": [ + "Source-derived candidate; no local efficacy validation." + ], + "attribution": [ + { + "url": "https://github.com/VectorSpaceLab/AREX-Skill", + "commit": "ac3fe1af", + "paths": [ + "docs/disco-meta-skills.md", + "docs/disco-workflows.md", + "src/disco/skills/create-paper-module-skill/SKILL.md", + "src/disco/skills/create-paper-module-skill/scripts/create_skill_skeleton.py", + "src/disco/skills/create-paper-module-skill/scripts/validate_skill_tree.py", + "src/disco/modes/skill-policy.ts", + "src/core/repo-skills-library-manager.ts" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/SkillOpt/SkillOpt", + "commit": "343db229", + "paths": [ + "skillopt/evaluation/gate.py", + "skillopt/optimizer/skill.py", + "skillopt/optimizer/clip.py", + "skillopt_sleep/cycle.py", + "skillopt_sleep/harvest_sources.py" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/WillowMindIE/MindIE-SD", + "commit": "8481d39b", + "paths": [ + ".agents/skills/profiling-analyze/SKILL.md", + ".agents/skills/dit-perf-opt/SKILL.md", + ".agents/skills/perf-gate/SKILL.md", + ".agents/skills/dit-parallel-opt/SKILL.md" + ], + "type": "git", + "revision_precision": "prefix" + } + ], + "empirical_validation": "not_run", + "id": "npu-skill-factory.skill-factory-design-20261014", + "kind": "knowledge", + "entrypoint": "skill-factory-design-20261014.md", + "atom": { + "when": {}, + "license": "Apache-2.0", + "permissions": { + "read": true, + "retain": true, + "redistribute": true + }, + "layer": "L3", + "source_span": { + "source_index": 0, + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/skill-factory-design-20261014.md", + "byte_range": [ + 0, + 9435 + ], + "sha256": "0b2e05bb6a4a3b3f6df0b04abc40ec125be60714b87f609a390246ee2a292d2d" + } + } + }, + "content": { + "skill-factory-design-20261014.md": { + "path": "workflows/npu-skill-factory/references/skill-factory-design-20261014.md" + } + } +} diff --git a/src/inferrsi/knowledge/atoms/npu-skill-factory.skillopt.json b/src/inferrsi/knowledge/atoms/npu-skill-factory.skillopt.json new file mode 100644 index 000000000..ba72a590d --- /dev/null +++ b/src/inferrsi/knowledge/atoms/npu-skill-factory.skillopt.json @@ -0,0 +1,96 @@ +{ + "authority": "checkout", + "metadata": { + "title": "SkillOpt evidence ledger", + "origin": [ + "external" + ], + "sources": [ + { + "type": "git", + "repo": "https://github.com/InferMatrixLab/InferRSI", + "commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf", + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/references/skillopt.md", + "sha256": "148075daa67e19f4b4351710498438d17c279a9bce56b2d01cab26ff3be33e99" + } + ], + "applicability": { + "scope": "InferRSI skill lifecycle management", + "workflow": "checkout:npu-skill-factory" + }, + "state": "candidate", + "limitations": [ + "Source-derived candidate; no local efficacy validation." + ], + "attribution": [ + { + "url": "https://github.com/VectorSpaceLab/AREX-Skill", + "commit": "ac3fe1af", + "paths": [ + "docs/disco-meta-skills.md", + "docs/disco-workflows.md", + "src/disco/skills/create-paper-module-skill/SKILL.md", + "src/disco/skills/create-paper-module-skill/scripts/create_skill_skeleton.py", + "src/disco/skills/create-paper-module-skill/scripts/validate_skill_tree.py", + "src/disco/modes/skill-policy.ts", + "src/core/repo-skills-library-manager.ts" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/SkillOpt/SkillOpt", + "commit": "343db229", + "paths": [ + "skillopt/evaluation/gate.py", + "skillopt/optimizer/skill.py", + "skillopt/optimizer/clip.py", + "skillopt_sleep/cycle.py", + "skillopt_sleep/harvest_sources.py" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/WillowMindIE/MindIE-SD", + "commit": "8481d39b", + "paths": [ + ".agents/skills/profiling-analyze/SKILL.md", + ".agents/skills/dit-perf-opt/SKILL.md", + ".agents/skills/perf-gate/SKILL.md", + ".agents/skills/dit-parallel-opt/SKILL.md" + ], + "type": "git", + "revision_precision": "prefix" + } + ], + "empirical_validation": "not_run", + "id": "npu-skill-factory.skillopt", + "kind": "knowledge", + "entrypoint": "skillopt.md", + "atom": { + "when": {}, + "license": "Apache-2.0", + "permissions": { + "read": true, + "retain": true, + "redistribute": true + }, + "layer": "L3", + "source_span": { + "source_index": 0, + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/references/skillopt.md", + "byte_range": [ + 0, + 3040 + ], + "sha256": "148075daa67e19f4b4351710498438d17c279a9bce56b2d01cab26ff3be33e99" + } + } + }, + "content": { + "skillopt.md": { + "path": "workflows/npu-skill-factory/references/papers-20261015/references/skillopt.md" + } + } +} diff --git a/src/inferrsi/knowledge/atoms/npu-skill-factory.source-manifest.json b/src/inferrsi/knowledge/atoms/npu-skill-factory.source-manifest.json new file mode 100644 index 000000000..3670b8685 --- /dev/null +++ b/src/inferrsi/knowledge/atoms/npu-skill-factory.source-manifest.json @@ -0,0 +1,96 @@ +{ + "authority": "checkout", + "metadata": { + "title": "Paper and handoff source manifest", + "origin": [ + "external" + ], + "sources": [ + { + "type": "git", + "repo": "https://github.com/InferMatrixLab/InferRSI", + "commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf", + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/references/source-manifest.json", + "sha256": "716cd49ed01824ee9f6b6fc55ebf2b24fdd5d5a3e677f6e28e34a472616bbe25" + } + ], + "applicability": { + "scope": "InferRSI skill lifecycle management", + "workflow": "checkout:npu-skill-factory" + }, + "state": "candidate", + "limitations": [ + "Source-derived candidate; no local efficacy validation." + ], + "attribution": [ + { + "url": "https://github.com/VectorSpaceLab/AREX-Skill", + "commit": "ac3fe1af", + "paths": [ + "docs/disco-meta-skills.md", + "docs/disco-workflows.md", + "src/disco/skills/create-paper-module-skill/SKILL.md", + "src/disco/skills/create-paper-module-skill/scripts/create_skill_skeleton.py", + "src/disco/skills/create-paper-module-skill/scripts/validate_skill_tree.py", + "src/disco/modes/skill-policy.ts", + "src/core/repo-skills-library-manager.ts" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/SkillOpt/SkillOpt", + "commit": "343db229", + "paths": [ + "skillopt/evaluation/gate.py", + "skillopt/optimizer/skill.py", + "skillopt/optimizer/clip.py", + "skillopt_sleep/cycle.py", + "skillopt_sleep/harvest_sources.py" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/WillowMindIE/MindIE-SD", + "commit": "8481d39b", + "paths": [ + ".agents/skills/profiling-analyze/SKILL.md", + ".agents/skills/dit-perf-opt/SKILL.md", + ".agents/skills/perf-gate/SKILL.md", + ".agents/skills/dit-parallel-opt/SKILL.md" + ], + "type": "git", + "revision_precision": "prefix" + } + ], + "empirical_validation": "not_run", + "id": "npu-skill-factory.source-manifest", + "kind": "knowledge", + "entrypoint": "source-manifest.json", + "atom": { + "when": {}, + "license": "Apache-2.0", + "permissions": { + "read": true, + "retain": true, + "redistribute": true + }, + "layer": "L3", + "source_span": { + "source_index": 0, + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/references/source-manifest.json", + "byte_range": [ + 0, + 2431 + ], + "sha256": "716cd49ed01824ee9f6b6fc55ebf2b24fdd5d5a3e677f6e28e34a472616bbe25" + } + } + }, + "content": { + "source-manifest.json": { + "path": "workflows/npu-skill-factory/references/papers-20261015/references/source-manifest.json" + } + } +} diff --git a/src/inferrsi/knowledge/atoms/npu-skill-factory.trace2skill.json b/src/inferrsi/knowledge/atoms/npu-skill-factory.trace2skill.json new file mode 100644 index 000000000..38da19d3e --- /dev/null +++ b/src/inferrsi/knowledge/atoms/npu-skill-factory.trace2skill.json @@ -0,0 +1,96 @@ +{ + "authority": "checkout", + "metadata": { + "title": "Trace2Skill evidence ledger", + "origin": [ + "external" + ], + "sources": [ + { + "type": "git", + "repo": "https://github.com/InferMatrixLab/InferRSI", + "commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf", + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/references/trace2skill.md", + "sha256": "230d13b77ba819b5e3edee147523e8cad6bfce95afccc140fb4946d6c8747a2e" + } + ], + "applicability": { + "scope": "InferRSI skill lifecycle management", + "workflow": "checkout:npu-skill-factory" + }, + "state": "candidate", + "limitations": [ + "Source-derived candidate; no local efficacy validation." + ], + "attribution": [ + { + "url": "https://github.com/VectorSpaceLab/AREX-Skill", + "commit": "ac3fe1af", + "paths": [ + "docs/disco-meta-skills.md", + "docs/disco-workflows.md", + "src/disco/skills/create-paper-module-skill/SKILL.md", + "src/disco/skills/create-paper-module-skill/scripts/create_skill_skeleton.py", + "src/disco/skills/create-paper-module-skill/scripts/validate_skill_tree.py", + "src/disco/modes/skill-policy.ts", + "src/core/repo-skills-library-manager.ts" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/SkillOpt/SkillOpt", + "commit": "343db229", + "paths": [ + "skillopt/evaluation/gate.py", + "skillopt/optimizer/skill.py", + "skillopt/optimizer/clip.py", + "skillopt_sleep/cycle.py", + "skillopt_sleep/harvest_sources.py" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/WillowMindIE/MindIE-SD", + "commit": "8481d39b", + "paths": [ + ".agents/skills/profiling-analyze/SKILL.md", + ".agents/skills/dit-perf-opt/SKILL.md", + ".agents/skills/perf-gate/SKILL.md", + ".agents/skills/dit-parallel-opt/SKILL.md" + ], + "type": "git", + "revision_precision": "prefix" + } + ], + "empirical_validation": "not_run", + "id": "npu-skill-factory.trace2skill", + "kind": "knowledge", + "entrypoint": "trace2skill.md", + "atom": { + "when": {}, + "license": "Apache-2.0", + "permissions": { + "read": true, + "retain": true, + "redistribute": true + }, + "layer": "L3", + "source_span": { + "source_index": 0, + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/references/trace2skill.md", + "byte_range": [ + 0, + 2917 + ], + "sha256": "230d13b77ba819b5e3edee147523e8cad6bfce95afccc140fb4946d6c8747a2e" + } + } + }, + "content": { + "trace2skill.md": { + "path": "workflows/npu-skill-factory/references/papers-20261015/references/trace2skill.md" + } + } +} diff --git a/src/inferrsi/knowledge/atoms/npu-skill-factory.unread_leads.json b/src/inferrsi/knowledge/atoms/npu-skill-factory.unread_leads.json new file mode 100644 index 000000000..53a08389b --- /dev/null +++ b/src/inferrsi/knowledge/atoms/npu-skill-factory.unread_leads.json @@ -0,0 +1,96 @@ +{ + "authority": "checkout", + "metadata": { + "title": "Unread literature lead — separate from the approved extraction", + "origin": [ + "external" + ], + "sources": [ + { + "type": "git", + "repo": "https://github.com/InferMatrixLab/InferRSI", + "commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf", + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/UNREAD_LEADS.md", + "sha256": "6c1d87ebe491d27666703149eb05ad582c7e5aff77f0ac5c11a7b89c946f96ee" + } + ], + "applicability": { + "scope": "InferRSI skill lifecycle management", + "workflow": "checkout:npu-skill-factory" + }, + "state": "candidate", + "limitations": [ + "Source-derived candidate; no local efficacy validation." + ], + "attribution": [ + { + "url": "https://github.com/VectorSpaceLab/AREX-Skill", + "commit": "ac3fe1af", + "paths": [ + "docs/disco-meta-skills.md", + "docs/disco-workflows.md", + "src/disco/skills/create-paper-module-skill/SKILL.md", + "src/disco/skills/create-paper-module-skill/scripts/create_skill_skeleton.py", + "src/disco/skills/create-paper-module-skill/scripts/validate_skill_tree.py", + "src/disco/modes/skill-policy.ts", + "src/core/repo-skills-library-manager.ts" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/SkillOpt/SkillOpt", + "commit": "343db229", + "paths": [ + "skillopt/evaluation/gate.py", + "skillopt/optimizer/skill.py", + "skillopt/optimizer/clip.py", + "skillopt_sleep/cycle.py", + "skillopt_sleep/harvest_sources.py" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/WillowMindIE/MindIE-SD", + "commit": "8481d39b", + "paths": [ + ".agents/skills/profiling-analyze/SKILL.md", + ".agents/skills/dit-perf-opt/SKILL.md", + ".agents/skills/perf-gate/SKILL.md", + ".agents/skills/dit-parallel-opt/SKILL.md" + ], + "type": "git", + "revision_precision": "prefix" + } + ], + "empirical_validation": "not_run", + "id": "npu-skill-factory.unread_leads", + "kind": "knowledge", + "entrypoint": "UNREAD_LEADS.md", + "atom": { + "when": {}, + "license": "Apache-2.0", + "permissions": { + "read": true, + "retain": true, + "redistribute": true + }, + "layer": "L3", + "source_span": { + "source_index": 0, + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/references/papers-20261015/UNREAD_LEADS.md", + "byte_range": [ + 0, + 1038 + ], + "sha256": "6c1d87ebe491d27666703149eb05ad582c7e5aff77f0ac5c11a7b89c946f96ee" + } + } + }, + "content": { + "UNREAD_LEADS.md": { + "path": "workflows/npu-skill-factory/references/papers-20261015/UNREAD_LEADS.md" + } + } +} diff --git a/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory.md b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory.md new file mode 100644 index 000000000..4e99c29f3 --- /dev/null +++ b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory.md @@ -0,0 +1,221 @@ +--- +name: npu-skill-factory +description: 'Design and operation of the InferRSI NPU skill factory: artifact lifecycle, skill evaluation contract, corpus selection, hide-and-re-distill procedure, and skill evolution cycle. Use when deciding where new skill artifacts belong, how to distill a candidate skill, or how to run the No-Skill vs Human-Skill vs Distilled-Skill comparison. + + ' +metadata: + inferrsi: | + { + "schema_version": 1, + "status": "candidate", + "sources": [ + { + "url": "https://github.com/VectorSpaceLab/AREX-Skill", + "commit": "ac3fe1af", + "paths": [ + "docs/disco-meta-skills.md", + "docs/disco-workflows.md", + "src/disco/skills/create-paper-module-skill/SKILL.md", + "src/disco/skills/create-paper-module-skill/scripts/create_skill_skeleton.py", + "src/disco/skills/create-paper-module-skill/scripts/validate_skill_tree.py", + "src/disco/modes/skill-policy.ts", + "src/core/repo-skills-library-manager.ts" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/SkillOpt/SkillOpt", + "commit": "343db229", + "paths": [ + "skillopt/evaluation/gate.py", + "skillopt/optimizer/skill.py", + "skillopt/optimizer/clip.py", + "skillopt_sleep/cycle.py", + "skillopt_sleep/harvest_sources.py" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/WillowMindIE/MindIE-SD", + "commit": "8481d39b", + "paths": [ + ".agents/skills/profiling-analyze/SKILL.md", + ".agents/skills/dit-perf-opt/SKILL.md", + ".agents/skills/perf-gate/SKILL.md", + ".agents/skills/dit-parallel-opt/SKILL.md" + ], + "type": "git", + "revision_precision": "prefix" + } + ], + "verification": { + "locally_verified": false, + "evidence_level": "source_grounded", + "note": "Historical repository extraction and sibling schema at 82218b4, not a current local factory implementation. Reviewed paper additions and exact versions live in references/papers-20261015/references/readset.md and docs/reference-matrix.md; no efficacy or paper-to-code equivalence established." + }, + "applicability": { + "scope": "InferRSI skill lifecycle management", + "prerequisites": "Current candidate inventory and source/evaluation evidence; historical sibling execution interfaces are not required for read-only artifact admission", + "input_contract": "A candidate inventory plus the source and evaluation evidence for each candidate skill; read-only artifact admission needs no historical sibling execution interface", + "produced_artifact": "An admitted or refused skill candidate with its source, evidence and limitation record, and its stable id and owning path", + "failure_modes": [ + "A candidate admitted on an inventory line without source or evaluation evidence", + "A stable id or path assigned twice across owners", + "Indexing or admission reported as validation or promotion", + "Paper-to-code equivalence asserted without a pinned readset" + ], + "refusal_point": "Refuses admission when a candidate has neither source evidence nor a declared evaluation state, and records the refusal instead of leaving the field blank" + }, + "recommendations": [ + "Read the methodology counterexamples in references/papers-20261015/cases/ before admitting a candidate derived from a paper.", + "Keep the source snapshot revision as research evidence; it is not a campaign default.", + "Record an unvalidated candidate as candidate with not_run rather than omitting the state." + ], + "tags": [ + "skill-factory", + "distillation", + "evaluation", + "npu", + "ascend" + ], + "profile": "local-skill-v1", + "kind": "skill", + "origin": [ + "external" + ], + "empirical_validation": "not_run", + "limitations": [ + "Source-derived candidate; no local efficacy validation." + ], + "provenance_readsets": [ + "references/papers-20261015/cases/methodology-counterexamples.md", + "references/papers-20261015/COMPARISON.md", + "references/papers-20261015/INTEGRATION_NOTES.md", + "references/papers-20261015/knowledge/evidence-routing.md", + "references/papers-20261015/QA.md", + "references/papers-20261015/README.md", + "references/papers-20261015/references/learning-to-commit.md", + "references/papers-20261015/references/protocol-details.md", + "references/papers-20261015/references/readset.md", + "references/papers-20261015/references/repo-to-skill.md", + "references/papers-20261015/references/skillopt.md", + "references/papers-20261015/references/trace2skill.md", + "references/papers-20261015/UNREAD_LEADS.md", + "references/papers-20261015/updates/bounded-updates.md" + ], + "consumption_mode": "packaged", + "searchspace_not_applicable": "SKILL.md §§ Choose the evidence product, Artifact lifecycle, and What this skill does not do define skill-distillation/evaluation methodology; NPU task tiers are evaluation prerequisites, not a hardware-resource mechanism." + } +--- + +# NPU Skill Factory Design + +Status: candidate. A Tier A pilot was reported by the sibling workstream on +2026-10-14; it was not integrated or rerun here. This skill supplies methodology, +not an implemented factory or automatic promotion pipeline. + +## Choose the evidence product + +Choose a case, reusable knowledge, bounded amendment or new skill according to +scope and workflow ownership. A new source need not create a new skill; a distinct +trigger, procedure and output can justify one. The +[evidence-routing note](references/papers-20261015/knowledge/evidence-routing.md), +[comparison](references/papers-20261015/COMPARISON.md), +[counterexamples](references/papers-20261015/cases/methodology-counterexamples.md) +and [exact paper readset](references/papers-20261015/references/readset.md) +retain the approved paper-level reasoning alongside the older repository pins. + +Keep source fidelity, static usability, execution correctness, behavioral efficacy +and transfer evidence separate. Construction, selection, deployment-context and +downstream costs need distinct denominators; a library entry or upstream score +is not local promotion. Source limitations and unrun checks remain explicit. + +Current candidate bundles live under `src/inferrsi/knowledge/data/skill_library///`, +with linked references and cases under their owning skill. The library's +`skill-index.json` maps stable skill names to those category paths. Exactly two primary matrices record provenance +and coverage. Do not invent a paper Git SHA or force these notes into a repository +knowledge-record schema that requires implementation fields they cannot supply. +The CLI explicitly reads metadata, instructions and resources; it implements no +factory, automatic routing or updater. Manual integration is not an AREX/DisCo run. + +## Artifact lifecycle + +The following lifecycle and schema are historical design references from the +sibling workstream and PR #9, not current implemented repository contracts. +Use the current candidate layout above for integration; historical evaluation +examples neither launch work nor set universal promotion thresholds. + +``` +1. Raw/preflight evidence + ↓ (exploration, repo cloning, index extraction — read-only) +2. Imported / distilled source material + ↓ (knowledge JSON records in repo_packs/, skill_library/ entries) +3. Candidate skill (SKILL.md + schema-validated bundle) + ↓ (3-5 candidates from a distillation run; status: candidate) +4. Skill evaluation + ↓ (No-Skill vs Human vs Distilled comparison on held-out tasks) +5. Promoted executable skill (in skills/) + ↓ (only after a passing evaluation campaign with PASS evidence) +6. Evolution (bounded edit → re-evaluation → accept/reject) +``` + +**Promotion rule:** directory placement does not establish promotion. The current +`skill_library/` tree includes explicitly labeled candidates. A candidate without an +authorized evaluation trail remains unvalidated regardless of packaging. + +**Where each artifact belongs:** + +| Artifact | Location | Format | +|----------|----------|--------| +| Knowledge records (experience) | `src/inferrsi/knowledge/data/skill_library/records/.json` | Validated JSON (catalog.py schema) | +| Bilingual skill library | `src/inferrsi/knowledge/data/skill_library/en//` and `zh-CN//` | SKILL.md + references/ + scripts/ | +| Skill bundle (distillation output) | `evidence//plan/agent-source-candidates/` | schema-validated JSON bundle | +| Human reference skill | `evidence//plan/human-/SKILL.md` | SKILL.md + references/ | +| Candidate skill under evaluation | `evidence//plan/agent-source-candidates//` | SKILL.md + references/ | +| Promoted skill | `skills//SKILL.md` (including metadata) | InferRSI skill format | +| Skill evaluation evidence | `evidence//results/` | per InferRSI evidence tree | + +Source: PR #9 `skill_library/` layout (source-grounded, pr/9 @ 4ad551a9); +sibling workstream `evidence/skill-bootstrap-20261014/` (observed @ 82218b4). + +## Design detail (historical, not implemented here) + +The full historical design records — the sibling bundle schema +(`schemas/skill-bundle.json`, not present in this repository), the selected +NPU corpus with license status, the Stage 3.4 hide-and-re-distill procedure +(its `omnirsi.harness.skill_distill` entrypoint is a sibling-workstream +prototype, also not in this repository), the Stage 3.5 three-variant evaluation +contract with its SkillOpt-derived accept criterion, the revision-lineage +layout and the Phase 1 evolution cycle — live in +[skill-factory-design-20261014.md](references/skill-factory-design-20261014.md), +preserved with their sources and the two sibling-prototype entrypoints annotated. + +Boundaries that still hold from that design: + +- The sibling pilot (one Tier A task, all three variants passing) established no + statistical difference; promotion remains INCONCLUSIVE. +- Tier A tasks are CPU/static only; Tier B tasks require an NPU device. +- Do not promote based on token cost alone; record skill build cost separately + from per-task runtime benefit. + +## Where to go next after Phase 1 + +Once the evaluation contract is validated on ≥1 Tier A task with ≥3 tasks and +≥2 repetitions: + +1. Add Tier B tasks (require a real NPU environment — REMOTE). +2. Expand corpus from `raw_npu_repos_metadata_only` in `preflight.json`: + priority order is Ascend/pytorch, then op-plugin, then triton-ascend, then msit. + Do not clone all four at once; state the capability/question first. +3. Implement harvest-from-real-agent-traces (SkillOpt Sleep cycle pattern). +4. Wire the skill router to select skill by detected repository type and task tier. + +## What this skill does not do + +- It does not claim that any distilled skill works on a real NPU — all current + evaluation is Tier A (CPU/static). +- It does not establish statistical significance from the current pilot. +- It does not manage the catalog or automatically route agents to skills. +- It does not provide the skill library management framework — that is PR #9. diff --git a/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/COMPARISON.md b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/COMPARISON.md new file mode 100644 index 000000000..b6bd3d37c --- /dev/null +++ b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/COMPARISON.md @@ -0,0 +1,28 @@ +# Comparison: choose the artifact before choosing the learning method + +All destinations below are P, candidate/not_run. The underlying F records and exact paper locators are in the linked ledgers. + +| Source | Distinct evidence contribution beyond the prior repository summaries | Best-fit artifact decision | Main boundary | +|---|---|---|---| +| [Repo-To-Skill v1](references/repo-to-skill.md) | Distinguishes source-anchored construction from task-conditioned pools; verification and construction cost are separate from downstream score | Existing factory's evidence/admission contract; retain a source-local case when the reusable workflow is not established | The benchmark gains are not a controlled test of the entire public repository library | +| [Learning to Commit v1](references/learning-to-commit.md) | A historical expert patch is a contrastive reference for the agent's own attempted change | Repository-scoped persistent knowledge, or a revision/deprecation of an existing convention | Chronology prevents the specified adaptation leakage, not every possible contamination path; accepted code is not necessarily the unique correct solution | +| [Trace2Skill v5](references/trace2skill.md) | Separates causally investigated errors from successful procedures; studies interactions among patches | Consolidated procedural knowledge and a candidate update to an existing skill | Faster parallel construction is not proof of lower aggregate compute or reliable routing to the skill | +| [SkillOpt v2](references/skillopt.md) | Separates proposed edits, accepted skill state, rejected-edit history, and optimizer-only memory | A bounded change proposal with an independent acceptance decision | Selection improvement is neither a formal generalization guarantee nor a permission to deploy | + +## P — Artifact selection rule + +- **Case:** preserve a bounded observation when the source is singular, applicability is uncertain, the explanation is unverified, or a negative example is most informative. Store the original outcome and alternatives; do not silently turn it into a universal instruction. +- **Persistent knowledge:** retain a stable source contract or a supported reusable relationship. State repository/model/harness/version scope and evidence strength. A procedural claim can remain knowledge until a reliable trigger and validation contract exist. +- **Bounded update:** choose this when a current skill already owns the workflow and the evidence supports a specific correction. Identify the exact incumbent version, target passage, expected behavioral change, possible regressions, and rollback. No current body means no literal patch application. +- **New skill:** choose this only for a separately triggerable, materially distinct workflow with inputs, procedure, constraints, outputs, and checks. A new paper, repository, or failure does not by itself justify a new skill. +- **No promotion:** keep the item as a case or knowledge record when causality, scope, source integrity, or the evaluation signal is insufficient. + +## P — Reconciliation rather than a universal winner + +Broad offline consolidation and cautious incremental editing solve different problems. Use consolidation to assemble a coherent candidate from an independent evidence pool. Use bounded updates to preserve an incumbent whose value is already known. The combination is a proposal here; none of these four papers establishes that this combined policy is optimal for InferRSI. + +A historical merge, static documentation check, execution correctness check, held-out behavioral win, and cross-model transfer result answer different questions. Keep separate fields for each rather than a single “verified” flag. Make source availability and empirical validity independent of whether an artifact has been extracted. + +## P — Cost decision + +Record construction cost, candidate-selection cost, deployment context cost, and downstream task cost separately. Amortization is a workload hypothesis: benefit across future uses must exceed one-time construction plus repeated context/selection cost. Faster wall time, a small exported file, or fewer accepted edits alone does not establish that inequality. This pack does not select an optimizer, compute budget, or hardware target. diff --git a/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/INTEGRATION_NOTES.md b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/INTEGRATION_NOTES.md new file mode 100644 index 000000000..da20f6109 --- /dev/null +++ b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/INTEGRATION_NOTES.md @@ -0,0 +1,51 @@ +> Supplier integration proposal, preserved as historical source context (2026-10-15). The local owner review and current two matrices govern acceptance; suggested follow-ups and permission statements below do not authorize work or describe the current inventory. + +# Pack E integration notes + +Status: **candidate / not_run**. Independent paper-first deliverable, not a repository change. + +## What is incremental + +The prior work already names repository-memory construction, repo-to-skill lifecycle, Trace2Skill consolidation and bounded skill evolution. This pack adds original-paper evidence about what those mechanisms actually establish, their costs, their counterexamples, and the boundary between a case, knowledge, candidate construction and accepted update. It does not restate source-file pipeline maps or declare them absent. + +## Proposed integration destinations + +| Deliverable | Existing artifact target | Decision | +|---|---|---| +| [Evidence-routing knowledge](knowledge/evidence-routing.md) | `npu-skill-factory` references; link from `skill-evolution-playbook` | Reconcile as shared methodology knowledge, not a new factory/tool | +| [E-C1 and E-C4](cases/methodology-counterexamples.md) | Existing factory/evolution case references | Preserve task-condition and output-contract exceptions | +| [E-C2](cases/methodology-counterexamples.md#e-c2--better-repository-familiarity-can-produce-unnecessary-caution) | `repository-evolution-analysis` references | Repository-scoped convention-expiry case | +| [E-C3](cases/methodology-counterexamples.md#e-c3--fixing-targeted-failures-can-break-unrelated-successes) | `skill-evolution-playbook` references | Interaction/regression case | +| [E-U1–E-U5](updates/bounded-updates.md) | Existing skills identified per proposal | Compare latest bodies, retain only missing amendments; do not apply these as blind patches | +| [Four paper ledgers](COMPARISON.md) and [readset](references/readset.md) | `docs/reference-matrix.md` **§2 Methodology and corpus references** | Add paper versions/read scope as evidence alongside the prior repository pins | + +The existing target paths above are handoff-indexed. Their current bodies and verified public URLs were unavailable; no fabricated remote artifact link is supplied. The linked files in this pack are complete incremental artifacts. Preserve that availability distinction during integration. + +The only other primary matrix remains `docs/searchspace-matrix.md`. No methodology rows are forced into Accelerator/RAM/SSD/Communication/OS coverage. This handoff table is not a third primary matrix. The older independent bundle's `docs/repo-source-matrix.md` spelling is superseded by the uploaded Reference Matrix's authorized `docs/reference-matrix.md` path. + +## Interface with separate Pack F + +Pack F is a separate artifact supplied by the parent workstream, not a source mined here. Its adaptation-unit semantics can answer *what changes* (for example, a policy/search configuration or other bounded state). Pack E's admission decision answers *what evidence product to retain* and *what can justify altering an incumbent*. Match those two decisions before integration; do not turn a search candidate into a skill merely because it is persistent. Use the artifact names `Pack F` and `Pack E` across separate archives rather than relative file links that will break. Pack E makes no independent claims about Pack F's papers or results. + +## Non-negotiable evidence boundaries + +- Every local artifact remains candidate/not_run; author results remain author-reported. +- This pack proposes bounded updates rather than new skills because the known artifact ownership overlaps; GLM should reconcile current bodies before applying. This is a pack-specific choice, not a general gate against candidate-skill growth. +- No replay, installation, task execution, generated optimizer, framework, CLI change, matrix edit, promotion, commit or PR occurred. +- No AREX/DisCo execution claim. Prior manual repo-to-skill-inspired work is not an AREX run. +- No new claimed NPU capability or hardware coverage follows from these methodology papers. +- Full source copies and parsing scratch files are outside this delivery tree. + +## Integration follow-ups, not queued work + +1. Obtain the current bodies and hashes of the existing methodology skills and named pipeline indexes; only then convert a missing semantic amendment into a literal diff. +2. If a concrete reproducibility decision later requires it, reconcile the paper versions with the four already-known repository pins and author run artifacts. Do not clone or re-audit everything by default. +3. Resolve SkillOpt's split and cost-denominator discrepancies using author artifacts only if cost/protocol choice depends on them. +4. Request an authorized evaluation scope if behavioral efficacy, transfer to another model/harness, or promotion becomes the actual task. Define a task contract and suitable held-out/regression evidence then; this pack does not launch or prescribe a reproduction campaign. +5. Inspect other papers or additional frameworks only under a later gate. None is adopted as extra evidence in Pack E. + +A separately labeled [unread literature lead](UNREAD_LEADS.md) is provided without adding it to the extracted evidence. + +## Delivery QA + +Static editorial review covers paths, status labels, source versions, F/P separation, and correspondence between proposed amendments and inspected paper evidence. It does not establish runtime behavior or skill efficacy. See [QA.md](QA.md) for the final check result. diff --git a/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/QA.md b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/QA.md new file mode 100644 index 000000000..98b62603f --- /dev/null +++ b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/QA.md @@ -0,0 +1,18 @@ +> Supplier delivery snapshot, 2026-10-15. Packaging checks and inventory below refer to the original pack, not to this relocated integration. Empirical validation remains not_run. + +# Pack E delivery QA + +Status: candidate. Behavioral/runtime validation: not_run. + +Completed 2026-10-15: +- Original arXiv titles, version histories and exact version URLs checked for all four approved papers. +- Methods, experimental controls, resource costs, negative results and reporting inconsistencies inspected against original full text; no author result presented as a local result. +- Source hashes recorded; full texts and parsing scratch files excluded from the deliverable. +- Existing uploaded readsets distinguished from unavailable indexed skill/pipeline bodies. +- All local file-link targets verified after this QA file was created. Original-paper HTML fragment links checked against downloaded HTML IDs. +- Candidate/not_run scope, F/P distinction and no-execution boundary reviewed. +- Known artifact ownership overlaps preserved as bounded amendments; no forced new skill count. +- Methodology routing limited to `docs/reference-matrix.md` §2; `docs/searchspace-matrix.md` remains the only other primary matrix. +- Separate unread literature lead labeled as not opened/not mined; integration follow-ups labeled separately. + +Not performed: repository/source-version reconciliation, method installation or execution, hardware workloads, A/B evaluation, code tests, runtime skill validation, promotion, InferRSI/matrix edits or publication. This QA is editorial and structural, not independent empirical verification. Independent review corrected the MLE running-budget unit to GPU-hours per task and required explicit PassNet metric denominators/tolerance; both corrections are incorporated. Further parent-workstream review may add corrections before delivery. diff --git a/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/README.md b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/README.md new file mode 100644 index 000000000..5ea25660f --- /dev/null +++ b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/README.md @@ -0,0 +1,24 @@ +> Supplier delivery snapshot, 2026-10-15. Packaging checks and inventory below refer to the original pack, not to this relocated integration. Empirical validation remains not_run. + +# Pack E — Evidence into repository memory and bounded skills + +Status: **candidate**. Validation: **not_run**. Paper-first extraction, 2026-10-15. + +**Recommendation:** use the evidence's generality and validation status to choose a case, persistent knowledge, a bounded update, or a new skill. These are different products, not successive mandatory stages. This pack proposes additions to existing methodology artifacts rather than another skill-factory framework. + +Read in order: +1. [Comparison and decision](COMPARISON.md) +2. [Exact readset and prior-work availability](references/readset.md) +3. [Evidence-routing knowledge](knowledge/evidence-routing.md) +4. [Counterexample cases](cases/methodology-counterexamples.md) +5. [Bounded update proposals](updates/bounded-updates.md) +6. [Integration notes](INTEGRATION_NOTES.md) +7. [Separate unread literature lead](UNREAD_LEADS.md) + +[Protocol details and retained baselines](references/protocol-details.md) complement the compact ledgers. + +Paper ledgers: [Repo-To-Skill](references/repo-to-skill.md), [Learning to Commit](references/learning-to-commit.md), [Trace2Skill](references/trace2skill.md), [SkillOpt](references/skillopt.md). + +F identifies directly inspected source statements or author-reported measurements. P identifies this pack's proposed operational rules, interpretation, or verification requirements. An author's successful run is not local validation. Proposal acceptance is not execution permission. + +No repository implementation was re-mined; no AREX/DisCo, LearningToCommit, Trace2Skill, or SkillOpt execution occurred. No installation, evaluation run, reproducibility package, framework, runtime tool, InferRSI edit, matrix edit, commit, or PR is included. Source copies stay outside this deliverable. A new standalone SKILL.md is deliberately not emitted: the existing artifact names already cover these workflows, and their current full bodies were unavailable for a defensible duplication check. diff --git a/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/UNREAD_LEADS.md b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/UNREAD_LEADS.md new file mode 100644 index 000000000..5f797ae50 --- /dev/null +++ b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/UNREAD_LEADS.md @@ -0,0 +1,7 @@ +# Unread literature lead — separate from the approved extraction + +This lead is not evidence for Pack E. Its original paper was not opened, its latest version was not checked, and no implementation was inspected. Following it requires a later scope decision. + +- **SkillsBench: Benchmarking How Well Agent Skills Work Across Diverse Tasks**, arXiv **2602.12670**. The title and identifier are listed in [Trace2Skill v5's bibliography](https://arxiv.org/html/2603.25158v5#bib.bib2), which links the [original-paper landing page](https://arxiv.org/abs/2602.12670). Potential next question: which task, agent and skill conditions make a candidate useful or harmful, and what evidence would justify its validation contract? This is a complementary evaluation lead, not a basis for claiming any benchmark result here. + +Integration follow-ups (current skill bodies, repository-version reconciliation and unresolved denominators) are listed separately in [INTEGRATION_NOTES.md](INTEGRATION_NOTES.md). They are not additional literature sources. diff --git a/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/cases/methodology-counterexamples.md b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/cases/methodology-counterexamples.md new file mode 100644 index 000000000..ffe6265b3 --- /dev/null +++ b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/cases/methodology-counterexamples.md @@ -0,0 +1,51 @@ +# Candidate cases: where seemingly useful rules fail + +Status: candidate. Local validation: not_run. These are paper-reported historical cases, not InferRSI executions. P sections are proposed interpretations and boundaries. + +## E-C1 — A useful default becomes an unjustified ban + +**F locator:** Repo-To-Skill [Appendix A.2.4, paired verification and refinement](https://arxiv.org/html/2609.02749v1#A1.SS2.SSS4.Px3), Table 6. + +**F case:** PassNet refinement encountered a special convolution structure that could undermine a blanket preference for vendor operators. The authors changed an absolute prohibition into an exception-sensitive prior. Construction-stage arithmetic mean fell (.9566→.7492) while geometric mean (.5352→.6941), median (.7340→.7941), match failures (10→1 of 50), and solve time (40→22 minutes) improved. These construction trials used DeepSeek v4 pro/Claude Code, unlike the final GPT-5.5/Codex evaluation. + +**P mechanism:** a generally sensible precaution suppresses exploration after direct structural evidence suggests an exception. Preserve the precaution's conditions and the counterexample rather than deleting either. + +**P proposed action:** revise only the implicated prohibition, retain a correct baseline, require task-specific correctness and outcome evidence before choosing the exception. Do not import the convolution optimization into an NPU skill from this narrative alone. The exact specialized implementation was not inspected here. + +**P acceptance question:** does the narrower rule recover legitimate exceptions without encouraging unsupported rewrites elsewhere? This requires new evidence; the answer is not_run. + +## E-C2 — Better repository familiarity can produce unnecessary caution + +**F locator:** Learning to Commit [§4.3 case study](https://arxiv.org/html/2603.26664v1#S4.SS3.SSS0.Px3), Tables 2–4. + +**F case:** the paper contrasts successful localization of a shared-RNG issue with a training-step fix where skill-guided work retained a redundant guard. The quantitative seq-bycat condition also has worse line deviation and weak judge preference in the [ledger](../references/learning-to-commit.md). + +**P mechanism:** a historical defensive pattern can be activated beyond its original preconditions. Repository memory is most useful when it retains the reason and boundary for the rule, not only the coding pattern. + +**P proposed action:** keep the historical change as a case until the invariant can be stated precisely. Scope a new convention to the subsystem and condition actually supported. Do not equate a smaller oracle-like patch with functional correctness, and do not infer the private repository's exact code from the narrative. + +**P acceptance question:** are there both positive examples and cases where applying the rule adds needless behavior? Use both before a broad memory update. + +## E-C3 — Fixing targeted failures can break unrelated successes + +**F locator:** Trace2Skill [§4.3](https://arxiv.org/html/2603.25158v5#S4.SS3), [Appendix C.2](https://arxiv.org/html/2603.25158v5#A3.SS2), Appendix E. + +**F case:** the greedy patch study reports bidirectional task flips, including 57 failure-to-pass against 21 pass-to-failure at one step and 26 against 46 at another. Recurring patch themes also overlap semantically. Individually selected edits did not match whole-pool consolidation in that study. + +**P mechanism:** patch effects interact; a narrowly successful fix can redirect broader agent behavior. Duplicate guidance can change emphasis without adding capability. + +**P proposed action:** evaluate the combined candidate and retain an unrelated-success regression sample. Review semantic overlap and contradictory instructions before writing. Do not infer from this case that all patches should always be merged or that greedy selection is universally inferior. + +**P acceptance question:** what improved, what regressed, and which changes are attributable to the edited instruction rather than stochastic execution? No such test was run in this pack. + +## E-C4 — A scorer-compatible procedure can violate a deployment contract + +**F locator:** SkillOpt [§4.5 spreadsheet case](https://arxiv.org/html/2605.23904v2#S4.SS5), [Fig.4](https://arxiv.org/html/2605.23904v2#S4.F4); Trace2Skill [Appendix I.3 examples](https://arxiv.org/html/2603.25158v5#A9.SS3). + +**F case:** learned spreadsheet guidance includes static-value fallbacks and automation preferences conditioned on benchmark behavior. These examples are reported skill text, not independent proof of suitability for every spreadsheet request. + +**P mechanism:** optimizing the available evaluator can reward a shortcut that is valid for the benchmark but conflicts with a real request for reusable formulas or a particular automation format. + +**P proposed action:** preserve the user's output contract above any learned heuristic. Record the evaluator's view of success and flag dimensions it cannot test. A candidate update must not silently change the requested artifact type. + +**P acceptance question:** would the output still satisfy the user if evaluated outside the benchmark? Treat this as an explicit transfer boundary rather than generic skill quality. diff --git a/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/knowledge/evidence-routing.md b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/knowledge/evidence-routing.md new file mode 100644 index 000000000..e31628f4e --- /dev/null +++ b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/knowledge/evidence-routing.md @@ -0,0 +1,51 @@ +# Candidate knowledge: evidence-to-artifact admission + +Status: candidate. Validation: not_run. All rules in this file are P, proposed for reconciliation with existing methodology artifacts. The four [paper ledgers](../COMPARISON.md) provide the F basis; this is a synthesis, not an implementation reproduced from one author. + +## Objective and assumptions + +Retain evidence at the narrowest useful abstraction without losing counterexamples, increasing instruction conflicts, or claiming behavioral improvement that has not been measured. Assume the source identity and its inspected boundary are known. If they are not, retain a lead rather than authoritative knowledge. + +## Decision variables and constraints + +Choose artifact type, scope, owner, applicability trigger, evidence strength, and revision boundary. Constraints are the actual task contract, source version, authorized actions, known counterexamples, and whether the current incumbent can be inspected. Artifact count, repository popularity, and the number of source files are not objectives. + +## Proposed decision procedure + +1. **Identify the evidence unit.** Is it a versioned API/implementation contract, an expert's accepted historical diff, an individual execution, a repeated pattern, or an aggregate controlled evaluation? Do not combine them into an undifferentiated confidence score. +2. **Preserve the case first when necessary.** Capture the input/state, observed behavior, outcome, comparator, and alternatives. Separate direct observation from the proposed cause. A log message alone can identify a lead without establishing the cause. +3. **Determine whether generalization is supported.** A versioned contract may justify scoped knowledge directly. An empirical behavior needs recurrence or an intervention consistent with the proposed cause. A source-local exception can remain a case even when it challenges a general rule. +4. **Check ownership and overlap.** Read the current relevant skill body. If it already owns the trigger and procedure, propose a localized correction or reference. If its body is unavailable, provide a semantic amendment specification and defer literal patching. Do not create a second skill merely to avoid the missing comparison. +5. **Select the smallest durable representation.** Put stable preconditions and decision rules in knowledge; put uncommon examples in cases/references; put broadly reused procedure in an existing skill. Create a new skill only if a distinct workflow remains unowned. +6. **Define acceptance separately.** Static coherence, source fidelity, functional correctness, behavioral improvement, and transfer have separate evidence statuses. A source-derived candidate may be useful before empirical testing, but must keep not_run and unresolved branches visible. +7. **Preserve rejection and expiry.** Record what change was tried, which scope it targeted, why it was rejected, and when the evidence stops applying. Do not generalize “failed here” into a timeless ban. Conflicting newer evidence can narrow, replace, or retire a rule. + +## Required information, not a new schema implementation + +- Source/version and exact evidence locator; read versus inferred status +- Evidence unit and provenance lineage; independent examples versus correlated copies +- Applicable task, repository, model, harness, and environment conditions +- Claimed mechanism and plausible alternative explanation +- Expected benefit plus construction, selection, context, and downstream cost dimensions +- Known negative cases and disallowed extrapolations +- Current artifact owner and proposed operation: retain case, add knowledge, revise, deprecate, or create +- Verification already available versus future checks; outcome stays not_run where appropriate + +These are editorial requirements. This pack does not add a catalog, database, router, evaluator, optimizer, installer, or scheduled update mechanism. + +## Resource benefit and cost + +Potential benefit is less repeated rediscovery and fewer conflicting instructions. Cost includes investigating causes, retaining provenance, deduplicating, and evaluating candidate changes. Selective reading can reduce context burden, but instruction-guided agents may also perform more work. No break-even point is known for InferRSI. + +## Limits and counter-signals + +- More repeated text can reflect shared prompts or duplicated cases rather than independent evidence. +- A maintainer-approved historical patch may encode a temporary compromise rather than a lasting convention. +- A higher aggregate score may hide correctness, task-contract, latency, or subgroup regressions. +- A protected text region helps preserve editing boundaries but can also preserve an outdated rule; it still needs a revision authority and expiry test. +- An edit-count cap does not cap the number of behavioral changes. Inspect the actual replacement and retain a reversible incumbent. +- Test-set separation alone does not prove causal mechanism; matched controls and alternate explanations still matter. + +## Output for this pack + +The justified output is one admission-policy knowledge note, counterexample cases, and bounded update specifications for existing artifacts. No new skill and no empirically promoted update are warranted by the inspected evidence alone. diff --git a/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/learning-to-commit.md b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/learning-to-commit.md new file mode 100644 index 000000000..62c04b3b7 --- /dev/null +++ b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/learning-to-commit.md @@ -0,0 +1,32 @@ +# Learning to Commit evidence ledger + +F — [Learning to Commit: Generating Organic Pull Requests via Online Repository Memory](https://arxiv.org/abs/2603.26664v1), Li et al.; v1, 2026-03-27, work-in-progress. [Methods](https://arxiv.org/html/2603.26664v1#S3), [experiments](https://arxiv.org/html/2603.26664v1#S4). Prior implementation pin `7e5a1d77` is not independently reconciled with the paper. + +## Mechanism contract + +- **Objective:** repository-aligned future patches. +- **Assumptions:** chronological expert-reviewed commits; parent snapshots; intent-only queries. +- **Variables/constraints:** cutoff, curriculum, memory CRUD; future diffs excluded from onboarding (§3.1–3.4). +- **Mechanism:** attempt historical task before revealing accepted diff; contrast localization/API/style discrepancies; revise or deprecate memory (Eq.1, Fig.1). +- **Resources:** onboarding attempts/reflection plus full memory at solve time; total tokens, time and memory growth unreported. + +## Author-reported evidence + +Claude Opus 4.6; one internal RL repository; 24 learning/7 test tasks (§4.1). Table 2 pairs skill/base: + +| Condition | File IoU % | Tool calls | Line deviation | +|---|---:|---:|---:| +| seq-all | 80/61 | 56.8/71.9 | .69/1.59 | +| par-bycat | 80/68 | 62.7/62.7 | .62/.88 | +| par-all | 81/72 | 67.7/68.3 | .80/1.06 | +| seq-bycat | 71/71 | 75.0/76.4 | 1.22/1.13 | + +Table 3 skill-win % (Claude/Gemini): seq-all 55/58; par-bycat 54/57; par-all 46/54; seq-bycat 26/46. Functional pass rates and explicit API-reuse-rate results are not supplied. + +## P — Interpretation and limits + +The measured outcomes support a limited repository-onboarding hypothesis, not broad reliability or real maintainer acceptance. Oracle similarity can penalize valid alternate solutions; a smaller patch is not automatically correct. Keep tests, localization, bloat, style, and acceptance as separate outcomes. Only two conditions exceed 50% under both judges in Table 3, so do not repeat the broader prose claim as if every dimension agreed. + +Strict temporal separation blocks one known leakage route. Audit synthetic-query generation and benchmark access separately; the cutoff alone does not prove the model never encountered relevant material. Historical conventions also expire. Store when a rule was supported, conflicting later evidence, and a reason to retire it. + +The paper moves from 2,738 raw commits to 386 suitable commits while reporting 77.2% suitability; that percentage is not 386/2,738, and the intermediate denominator is not clear in the inspected report. Do not reuse it as the raw-history yield. The four curricula are comparisons, but neither an oracle-free matched ablation nor a multi-repository generalization result is reported. For InferRSI, propose scoped memory updates rather than treating history mining as validated skill promotion. diff --git a/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/protocol-details.md b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/protocol-details.md new file mode 100644 index 000000000..147eefd53 --- /dev/null +++ b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/protocol-details.md @@ -0,0 +1,49 @@ +# Protocol details and unreported quantities + +F entries below are author-reported protocol details, not recommended InferRSI settings. P entries identify what cannot safely be inferred. Local validation: not_run. + +## Repo-To-Skill + +**F — models and separation.** Repository-graph creation uses GPT-5.5/GPT-5.6-sol, xhigh; final controlled downstream comparisons use GPT-5.5/Codex, xhigh. PassNet's 50-task construction study instead uses DeepSeek v4 pro/Claude Code. The public 1,000-repository collection, the 153-paper/636-skill PaperBench collection, the per-competition MLE graphs, and the shared FrontierCS/PassNet graphs are separate construction populations. [§§4–5; Appendix A](https://arxiv.org/html/2609.02749v1#A1). + +**F — constraints.** MLE excludes the original competition site and competition-specific content; PaperBench skill sources exclude the target paper and released target artifacts. FrontierCS freezes its graph before 188 evaluations, each with five hours, two CPUs and 4 GiB agent RAM; task-judge limits vary independently. PassNet evaluation uses A100-SXM4-40GB. Its correctness and Fast_1 metrics use tolerance t = −5; Fast_1 is conditional on numerically correct subgraphs, whereas AS aggregates rectified speedups across tolerance levels. Source/module and graph-construction checks are not the same as downstream trials. [§5.1](https://arxiv.org/html/2609.02749v1#S5.SS1). + +**P — what remains unknown.** No matched total-cost comparison including skill construction is established. The PaperBench running-budget amount is not specified in the inspected protocol, despite the stated matching. Aggregate catalog counts do not establish isolated efficacy for catalog routing, every module, every repo, or every accelerator. + +## Learning to Commit + +**F — variants and judges.** Both solver conditions use Claude Opus 4.6 and identical tools. Sequential versus parallel onboarding is crossed with all-corpus versus category-specific assignment. Two judges are Claude Opus 4.6 and Gemini 3.1 Pro. Curation removes trivial changes and diffs over 180K tokens, constructs seven categories, and synthesizes intent queries while omitting solution details. [§§3.4–4.1](https://arxiv.org/html/2603.26664v1#S3.SS4). + +**F — metric contract.** File IoU is overlap of changed-file sets; line deviation is candidate-minus-oracle diff size divided by oracle size; solve steps count tool calls. Pairwise dimensions concern location, logic, redundancy and style. [§3.5](https://arxiv.org/html/2603.26664v1#S3.SS5). + +**P — what remains unknown.** A low or negative signed line deviation does not certify completeness, and a file-set match does not certify correctness. Neither a practical retention/size bound for the accumulated memory nor lifecycle cost is reported. Do not infer the value of chronological/oracle supervision in isolation from the curriculum comparisons. + +## Trace2Skill + +**F — target/author distinction.** Qwen3.5-122B-A10B and Qwen3.5-35B-A3B serve as both skill authors and users, with cross-pair deployment. Author-side trace generation, diagnosis and merging use the same model. Additional family tests use Gemma-4-31B-it and GPT-5.5-high. ReAct runs use instruct mode; single-call steps use thinking mode; no separate tool-call cap is imposed. [Appendix A](https://arxiv.org/html/2603.25158v5#A1). + +**F — evaluation breadth.** Spreadsheet evaluation has 200 verified test examples, 2,529 Soft/Hard examples after removing evolution items, 2,810 WikiTQ and 1,585 HiTab. Math uses 400 DAPO evolution examples, 100 held-out DAPO examples and AIME 2026 avg@8 over 30 problems. DocVQA uses 50 evolution examples and 5,299 remaining evaluation examples; reported metrics are ANLS and thresholded accuracy. Seeds are 41–43. [§3 and Appendices A–B](https://arxiv.org/html/2603.25158v5#S3). + +**F — subset study.** BO searches at most 15 high-support patches on 32 evolution-set validation examples; empty/full/singleton/random initialization, up to four rounds, eight chosen candidates per round from 500 proposals. Its objective has zero cardinality penalty. [Appendix E](https://arxiv.org/html/2603.25158v5#A5). + +**P — what remains unknown.** The three-minute comparison concerns skill-generation rounds, not a full end-to-end learning-plus-evaluation lifecycle. The total 20,000 GPU-hours is study-wide, not attributable to one method variant or exported skill. Support frequency, faster construction and successful transfer are separate claims; none establishes a universal default selector. + +## SkillOpt + +**F — default controls.** Four epochs; rollout batch 40; reflection batch 8; 16 analyst workers; merge batch 8; edit cap 4 with cosine floor 2; slow comparison over 20 training tasks; up to three reflection refinements. Benchmark overrides include LiveMath's 35 training items and ALFWorld's 39 train/140 selection/134 test environments. Same-model GPT-5.5 target/optimizer is used for component studies. [§4 setup; Appendix C](https://arxiv.org/html/2605.23904v2#A3). + +**F — model and baseline coverage.** Seven targets: GPT-5.5, GPT-5.4, GPT-5.4-mini, GPT-5.4-nano, GPT-5.2, Qwen3.5-4B, Qwen3.6-35B-A3B. Direct-chat comparisons include no skill, human, one-shot LLM, Trace2Skill, TextGrad and GEPA; EvoSkill is the harness-side comparator. The six benchmark families are SearchQA, SpreadsheetBench, OfficeQA, DocVQA, LiveMath and ALFWorld; ALFWorld is not included in Codex/Claude Code rows. [Table 1 and §4](https://arxiv.org/html/2605.23904v2#S3.T1). + +**F — GPT-5.5 direct-chat baseline retention.** Column order: SearchQA / Spreadsheet / OfficeQA / DocVQA / LiveMath / ALFWorld. Values are absolute benchmark scores, not deltas. + +| Method | Scores | +|---|---| +| No skill | 77.7 / 41.8 / 33.1 / 78.8 / 37.6 / 83.6 | +| Human | 81.8 / 72.9 / 66.9 / 90.1 / 38.4 / 91.8 | +| One-shot LLM | 80.9 / 43.2 / 51.7 / 89.6 / 40.0 / 93.3 | +| Trace2Skill | 82.4 / 49.6 / 65.7 / 90.6 / 52.0 / 87.3 | +| TextGrad | 81.4 / 41.1 / 42.0 / 87.2 / 49.2 / 82.8 | +| GEPA | 84.8 / 73.6 / 63.9 / 89.1 / 43.2 / 85.8 | +| SkillOpt | 87.3 / 80.7 / 72.1 / 91.2 / 66.9 / 95.5 | + +**P — what remains unknown.** Matched target/test/scorer does not establish matched total optimization cost across baselines. “No optimizer at deployment” does not mean zero additional skill-context cost. No confidence interval or monetary break-even estimate is supplied. Resolve the split/run inconsistencies in the main ledger before selecting a reproducibility or budget target. diff --git a/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/readset.md b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/readset.md new file mode 100644 index 000000000..e3fce8c0a --- /dev/null +++ b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/readset.md @@ -0,0 +1,65 @@ +# Exact readset and availability + +Read on 2026-10-15. Direct original-paper HTML and arXiv version history were inspected. The source cache is outside the deliverable; source hashes are in [source-manifest.json](source-manifest.json). No complete paper, repository, prompt template, or implementation source is bundled. + +## Existing material inspected first + +| Material | Inspected scope | What is established | +|---|---|---| +| Uploaded `HANDOFF.md`, 90 lines | Entire file; methodology especially §§2,4,5 | Prior repository pins and named pipeline indexes; no inference that the remote Windows workspace is locally mounted | +| Uploaded `reference-matrix.md`, 144 lines, snapshot `4d61d2c` | Entire file; extraction routing from §2 | Current two-matrix contract, methodology targets, prior evidence roles | +| Uploaded `[supplied handoff text; original filename in source archive]`, 238 lines, checkpoint `6ed8162` | Entire file | Earlier candidate-skill inventory and historical work boundaries; not current repository status | +| Prior independent bundle `INTEGRATION_NOTES.md` | Entire file | Existing five runtime candidate bundles, F/P discipline and no AREX execution; its old `docs/repo-source-matrix.md` path is superseded by the uploaded Reference Matrix | + +## Indexed but unavailable in this session + +- `indexes/learning-to-commit-pipeline.md` +- `indexes/arex-pipeline.md` +- `indexes/skillopt-pipeline.md` +- Current bodies/references of `repository-evolution-analysis`, `npu-skill-factory`, `skill-evolution-playbook`, `optimization-search-policy`, `dense-performance-evidence`, and `inference-benchmark-design` +- Any full trajectory/evaluation artifact behind the prior implementation work + +Two bounded Library searches used the named pipeline files and `skill-evolution-playbook` (one exact-quoted pass). Returned hits were the already supplied handoffs/matrices and unrelated or adjacent artifacts; no standalone requested pipeline-note body appeared in the inspected result pages. This is a retrieval limitation, not a claim that the files do not exist. No broad private-history search or assumption of local repository access followed. No upstream implementation clone/read was needed to answer the approved paper-level question. + +## Original-paper readsets + +### Repo-To-Skill, arXiv 2609.02749v1 + +- Identity/version: [abstract and history](https://arxiv.org/abs/2609.02749v1); submitted 2026-09-02, only v1 shown. +- Formalization: [§2](https://arxiv.org/html/2609.02749v1#S2), Eqs.1–4; [§3](https://arxiv.org/html/2609.02749v1#S3), Eqs.5–8, Fig.2. +- Collection versus evaluated pools: [§4](https://arxiv.org/html/2609.02749v1#S4), Fig.3. +- Setup/results: [§5.1–5.5](https://arxiv.org/html/2609.02749v1#S5), Tables 1–4, including metrics, negative tasks and resource columns. +- Implementation-method description: [A.1](https://arxiv.org/html/2609.02749v1#A1.SS1), all scoping/verification/classification/routing subsections. +- Task-specific construction: [A.2.1–A.2.4](https://arxiv.org/html/2609.02749v1#A1.SS2), Eq.9, Tables 5–6; all four benchmark protocols and recovery/counterexample paragraphs. +- Not mined: Appendix B's long repository inventory, bibliography-linked works, author repository implementation. Reading collection counts is not reading the individual repository skills. + +### Learning to Commit, arXiv 2603.26664v1 + +- Identity/version: [abstract/history](https://arxiv.org/abs/2603.26664v1); 2026-03-27, work-in-progress. +- Full main text §§1–5; [§3.1–3.5](https://arxiv.org/html/2603.26664v1#S3), Fig.1, Eq.1; [§4.1–4.3](https://arxiv.org/html/2603.26664v1#S4), Tables 2–4. Table 1 was read as authors' benchmark comparison, not independently verified claims about other projects. +- Not available in paper: exact pilot cutoff date, full private task/diff records, total build cost, functional-pass-rate results, explicit API-reuse-rate results, confidence intervals, a large multi-repository validation. +- Not mined: referenced benchmark papers or the existing repository implementation. + +### Trace2Skill, arXiv 2603.25158v5 + +- Identity/version: [abstract/history](https://arxiv.org/abs/2603.25158v5); v1 2026-03-26, v5 2026-06-04. +- [§2.1–2.4](https://arxiv.org/html/2603.25158v5#S2), Eqs.1–2, Figs.1–2; [§§3–4](https://arxiv.org/html/2603.25158v5#S3), all experiment and analysis prose, Tables 1–6; limits. +- [Appendix A](https://arxiv.org/html/2603.25158v5#A1): exact split sizes, serving, seeds, compute, Table 7 dispersion. +- [Appendix B](https://arxiv.org/html/2603.25158v5#A2): B.1 latency derivation, B.2–B.4 transfer and sequential/retrieval controls, Tables 8–11. +- [Appendices C–E](https://arxiv.org/html/2603.25158v5#A3): qualitative diagnosis/interaction analysis; Table 12; 32-task selection protocol, add/remove interventions, binary subset objective and TPE details. +- [Appendices F–H](https://arxiv.org/html/2603.25158v5#A6): broader domain setup, Table 13, head-to-head adaptation caveats/Fig.7, skill-creator Table 14. +- [Appendix I](https://arxiv.org/html/2603.25158v5#A9): target skill preloading, analyst/merge contracts and intermediate examples, including atomic reference-create/link pairs. +- HTML occasionally groups two printed tables under one container: printed Tables 2/3 use container `S3.T3`, 8/9 use `A2.T9`, and 10/11 use `A2.T11`. Use printed captions plus section when resolving. +- Not mined: author repository implementation, cited external baselines' repositories, per-run logs. Numeric claims in this pack use tables/prose; figures were not independently digitized. + +### SkillOpt, arXiv 2605.23904v2 + +- Identity/version: [abstract/history](https://arxiv.org/abs/2605.23904v2); v1 2026-05-22, v2 2026-05-25. The initially fetched unversioned HTML was byte-equal to the subsequently fetched v2 HTML. +- [§3.1–3.7](https://arxiv.org/html/2605.23904v2#S3), Eqs.1–3, Fig.2; [§4.1–4.5](https://arxiv.org/html/2605.23904v2#S4), all experiment/ablation/transfer/cost prose and Tables 1–6. Numerical extraction focuses on matched controls rather than reproducing every headline as a local claim. +- [Appendix A](https://arxiv.org/html/2605.23904v2#A1), [B limitations](https://arxiv.org/html/2605.23904v2#A2), [C protocol](https://arxiv.org/html/2605.23904v2#A3): Algorithm 1, all eight optimizer prompt contracts, patch safeguards and deployment/meta-memory separation. +- Reported protocol/denominator discrepancies are retained in the [ledger](skillopt.md), not silently resolved using the prior repository version. +- Not mined: SkillOpt/Sleep implementation, author run logs, model-serving documentation or extra frameworks. No claim about Sleep's operation is derived from this paper. + +## Cross-version boundary + +Prior repository pins (`ac3fe1af`, `7e5a1d77`, `3d0b52a`, `343db229`) are provenance from the user's existing work. They are not a tested dependency set and were not proven to implement these exact paper versions. Future reconciliation must inspect only the concrete version-sensitive question; it should not repeat the prior pipeline summaries. diff --git a/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/repo-to-skill.md b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/repo-to-skill.md new file mode 100644 index 000000000..5190c56fd --- /dev/null +++ b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/repo-to-skill.md @@ -0,0 +1,28 @@ +# Repo-To-Skill evidence ledger + +F — [Repo-To-Skill: Distilling GitHub Repositories Into AI4AI Skills](https://arxiv.org/abs/2609.02749v1), Chen et al.; v1, 2026-09-02. Read [§§2–5](https://arxiv.org/html/2609.02749v1#S2), [Appendix A](https://arxiv.org/html/2609.02749v1#A1). Prior implementation pin `ac3fe1af` is carried context, not matched to this paper version. + +## Mechanism contract + +- **Objective:** reusable operational context with unchanged backbone/harness (§2, Eqs.1–4). +- **Assumptions:** inspectable evidence, scoped capabilities, relevant future tasks, trustworthy checks. +- **Variables/constraints:** source/task anchor; capabilities; evidence subset; graph/interfaces; verification record (Eqs.5–8). Skill construction and evaluation are separated. +- **Mechanism:** capability-specific evidence becomes procedures with references, optional wrappers, and explicit unresolved gaps (§3; A.1). Paper modules undergo isolated checks and bounded recovery without reopening the source implementation (A.2.2). +- **Resource trade-off:** construction is paid before reuse; downstream context is selective. Library construction allocation ≈$40/repository; MLE construction ≤24 GPU-hours/task is additional to ≤24 GPU-hours/task for running (Table 5). + +## Author-reported evidence + +| Setting; controlled comparator | Without → with skill | Locator | +|---|---|---| +| GPT-5.5/Codex, MLE 75 tasks; medal % | 31.11±2.22 → 72.89±1.18; three runs, SEM | Table 1 | +| PaperBench 20; replication % | 29.45 → 39.59 | Table 2 | +| FrontierCS 188; score / tokens per task | 70.63 / 2.46M → 77.14 / 4.47M | Table 3 | +| PassNet 200; AS / correctness / Fast_1 | 1.343 / 81.35% / 28.48% → 1.5313 / 90.76% / 26.72% | Table 4 | + +F — PassNet metric denominators (§5.1): at tolerance t = −5, correctness is the fraction of subgraphs matching eager outputs; Fast_1 is the share of numerically correct subgraphs at least as fast as eager. AS aggregates rectified speedups across tolerance levels t ∈ [−10, 4] under the benchmark aggregation protocol; it is not a rate with the Fast_1 denominator. + +## P — Interpretation and limits + +The public repository count and the evaluated task/paper-specific collections must not be conflated. No result here establishes that every generated repository skill improves an agent. Same downstream budget does not mean equal total construction-plus-use cost. FrontierCS's larger token consumption makes an unconditional “skills save compute” rule indefensible. PassNet's aggregate and correctness gains coexist with a worse Fast_1 metric; select a metric contract before deciding which revision is preferable. + +No component-isolating ablation establishes a universal benefit for scripts, graph depth, routing, or verification itself. PaperBench's two negative tasks and the PassNet overconservative-rule case deserve preserved counterexamples, not deletion from a positive summary. The proposed factory change is to preserve verification type, scope and cost, with source-local exceptions and a fallback when guidance is poorly matched. These are proposed safeguards, not local results. diff --git a/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/skillopt.md b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/skillopt.md new file mode 100644 index 000000000..d34caf2b1 --- /dev/null +++ b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/skillopt.md @@ -0,0 +1,33 @@ +# SkillOpt evidence ledger + +F — [SkillOpt: Executive Strategy for Self-Evolving Agent Skills](https://arxiv.org/abs/2605.23904v2), Yang et al.; v2, 2026-05-25 (v1 2026-05-22). [§3](https://arxiv.org/html/2605.23904v2#S3), [§4](https://arxiv.org/html/2605.23904v2#S4), Appendices A–C, Algorithm 1. Prior `343db229` is not independently reconciled. + +## Mechanism contract + +- **Objective:** select a compact skill on selection data; report untouched-test performance (Eqs.1–3). +- **Assumptions:** reliable scalar feedback; frozen target/harness; independent splits. +- **Variables/constraints:** edit budget/schedule, rollout/reflection batches, current/best skill, rejected buffer, protected slow region, optimizer-only memory. +- **Mechanism:** ranked localized edits; strict selection improvement, ties rejected; epoch-level comparisons separately gated (§3.2–3.6). + +## Author-reported evidence + +| Measurement | Values | Locator | +|---|---|---| +| GPT-5.5 Spreadsheet, no-skill / strongest baseline / SkillOpt | 41.8 / 73.6 GEPA / 80.7 | Table 1 | +| Default / no edit budget; SearchQA, Spreadsheet, LiveMath | 87.1,77.5,61.3 / 84.6,75.7,57.3 | Table 3 | +| No rejected buffer | 85.5,72.9,58.9 | Table 3 | +| No meta or slow update | 86.3,55.0,59.7 | Table 3 | + +Table 6: 379–1,995 final tokens; 1–4 accepted updates. Training tokens: SearchQA 213.8M; Spreadsheet 21.4M; OfficeQA 20.8M; DocVQA 188.2M; LiveMath 23.2M; ALFWorld 59.3M. No optimizer calls at deployment. + +## P — Interpretation and limits + +A strict scalar gate controls acceptance; it does not prove that every important behavior is preserved. Add an explicit regression set and task contract before translating that gate into an operational policy. A single append operation can add a large instruction block, so counting edits is not a semantic or token-distance bound. Keep proposal size and changed behavior inspectable too. The optimizer's private learning history should not automatically become instructions for the deployed agent. + +Preserve these reporting uncertainties: +- Table 2(a) states a 4:1:5 train/selection/test split; Appendix C's ablation paragraph states 2:1:7. Do not silently select one. +- Table 6 cost/point values (37.9M, .6M, 1.1M, 46.4M, 3.6M, 15.9M) do not directly reproduce Table 1 no-skill gains from their total tokens. Treat the gain denominator/run identity as unresolved. +- Table 2's learning-rate sweep and Table 3's default row differ. The headline results are not all a single default-config run. +- No matched numerical gate-off row or repeated-seed uncertainty is supplied in the inspected result tables. A strong narrative claim about gating is not that missing ablation. + +The native verifiers and scorer-specific adaptations are useful only within their task contract. For example, a benchmark favoring static spreadsheet values does not authorize replacing formulas when a real user requires them. Training cost may be unattractive for one-off work. These are limits on transfer, not evidence that the method fails generally. diff --git a/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/source-manifest.json b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/source-manifest.json new file mode 100644 index 000000000..a55407c85 --- /dev/null +++ b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/source-manifest.json @@ -0,0 +1,74 @@ +[ + { + "source": "arXiv original paper", + "arxiv_version": "2609.02749v1", + "url": "https://arxiv.org/html/2609.02749v1", + "sha256": "69c75a6059a4ccf341ceb358149342e2055572218d4ad3a37a0f107eeb833210", + "bytes": 1415606, + "accessed": "2026-10-15", + "local_validation": "not_run", + "source_copy_in_deliverable": false + }, + { + "source": "arXiv original paper", + "arxiv_version": "2603.26664v1", + "url": "https://arxiv.org/html/2603.26664v1", + "sha256": "7a4b1fb93c8578e70fe3c2c64e2e0c4e26b10fadafa56e5d0e5b3bfe3862b767", + "bytes": 122076, + "accessed": "2026-10-15", + "local_validation": "not_run", + "source_copy_in_deliverable": false + }, + { + "source": "arXiv original paper", + "arxiv_version": "2603.25158v5", + "url": "https://arxiv.org/html/2603.25158v5", + "sha256": "e8847c7eccfd066869ef5b61fe208a8b8de251365150c62add9c4d313373623b", + "bytes": 692897, + "accessed": "2026-10-15", + "local_validation": "not_run", + "source_copy_in_deliverable": false + }, + { + "source": "arXiv original paper", + "arxiv_version": "2605.23904v2", + "url": "https://arxiv.org/html/2605.23904v2", + "sha256": "cf20e8e33038ff9f198d98beeb01e736ee4219eb1d7e2a71133d918a9b577e41", + "bytes": 571780, + "accessed": "2026-10-15", + "local_validation": "not_run", + "source_copy_in_deliverable": false + }, + { + "source": "existing supplied handoff", + "name": "HANDOFF.md", + "sha256": "a52b9584580f1b42210071e91d67a3cf3f46bddf68e734d46e54c2c9690009f8", + "bytes": 9812, + "scope": "entire file", + "source_copy_in_deliverable": false + }, + { + "source": "existing supplied handoff", + "name": "reference-matrix.md", + "sha256": "56d5115f4570fe1946d369ca61eecac361f2ff1c996709918b5ac3b508f3dd51", + "bytes": 21344, + "scope": "entire file", + "source_copy_in_deliverable": false + }, + { + "source": "existing supplied handoff", + "name": "[supplied handoff text; original filename in source archive]", + "sha256": "9fc4e217034d88fee1da947f5f305f574258b078a0a6f5036be1ff7d347167cd", + "bytes": 15447, + "scope": "entire file", + "source_copy_in_deliverable": false + }, + { + "source": "existing supplied handoff", + "name": "INTEGRATION_NOTES.md", + "sha256": "3ec7b0e0f7e30f13442e586c04cb218ef8d01938802d9e8bbf982e5fb57462dd", + "bytes": 6249, + "scope": "entire file", + "source_copy_in_deliverable": false + } +] diff --git a/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/trace2skill.md b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/trace2skill.md new file mode 100644 index 000000000..05319d099 --- /dev/null +++ b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/references/trace2skill.md @@ -0,0 +1,32 @@ +# Trace2Skill evidence ledger + +F — [Trace2Skill: Distill Trajectory-Local Lessons into Transferable Agent Skills](https://arxiv.org/abs/2603.25158v5), Ni et al.; v5, 2026-06-04 (v1 2026-03-26). [§2](https://arxiv.org/html/2603.25158v5#S2), [§§3–4](https://arxiv.org/html/2603.25158v5#S3), Appendices A–I. Prior `3d0b52a` is not a verified paper-version match. + +## Mechanism contract + +- **Objective:** frozen-agent test improvement from disjoint evolution evidence (Eq.1). +- **Assumptions:** labeled traces, inspectable artifacts, reusable target procedure. +- **Variables/constraints:** seed skill, error/success pools, merge breadth, edit applicability. Unexplained failures are excluded (§2.3). +- **Mechanism:** independent diagnoses become hierarchical consolidated edits; reject missing-file and conflicting-range edits (§2.4, Eq.2). +- **Resources:** 128 analysts, merge batch 32; same eight-A100 node; full study ≈20,000 GPU-hours (A; B.1), not per-skill cost. + +## Author-reported evidence + +| Controlled comparison | Result | Locator | +|---|---|---| +| Spreadsheet parallel / seq-1 / seq-4 | 122B Vrf 65.83/61.83/59.00; ≈3/60/15 min | Table 4 | +| Consolidated / ReasoningBank top-1 | 122B Vrf 69.83/56.00 | Table 5 | +| All-error / BO-selected | Vrf 65.83/69.83; HiTab 43.45/43.38 | Table 6 | +| Human skill / none, 35B | Vrf 9.67/19.00 | Table 1 | + +Main spreadsheets: 200 evolution/200 verified test; three seeds. +57.65 WikiTQ points is a specific 35B-author→122B-user creation/error result, not an average. + +## P — Interpretation and limits + +This is evidence for candidate consolidation, not an unconditional publish-all rule. The default aggregation avoids repeated subset evaluation, but the paper itself shows gains from selection and an unfavorable counter-metric. Independent diagnosis can still share correlated model errors; support counts should trace back to distinct tasks and sources, not merely the number of generated patches. + +The latency result is wall time with large concurrency, not token-normalized or dollar-normalized efficiency. Seq-1 remains higher on 35B Soft/Hard in Table 4. Top-1 retrieval is one particular retrieval comparator, and OOD retrieval results were excluded; do not conclude that consolidated skills dominate every retrieval strategy. + +The study preloads the known target SKILL.md (I.1). It therefore does not validate catalog discovery, routing, or autonomous skill selection. Treat the human skill's small-model regression as evidence for model/harness-specific suitability checks. The agentic analyst's benefit is also not universal: 122B creation's Avg is 26.02 versus 26.60 for log-only analysis (Table 12), despite better in-distribution scores. + +BO uses only 32 validation tasks and at most 15 high-coverage patches (Appendix E). Its search must remain separated from final test claims. No local trajectory was generated or diagnosed in this pack. diff --git a/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/updates/bounded-updates.md b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/updates/bounded-updates.md new file mode 100644 index 000000000..6c642767d --- /dev/null +++ b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/papers-20261015/updates/bounded-updates.md @@ -0,0 +1,69 @@ +> Historical supplier amendment proposal, 2026-10-15. This is editing context, not a deployed task procedure or an execution grant. The owning SKILL.md records the reconciled amendment. + +# Bounded amendments to existing methodology artifacts + +All entries: **P; candidate; not_run; not applied**. These are reviewable semantic amendments, not literal diffs. The current full skill bodies and their hashes are unavailable. The existing targets below are identified in the uploaded Reference Matrix §2 and prior handoff, not asserted to exist at a currently accessible remote URL. Before integration, compare the latest body, reuse matching language, and add only missing material. + +## E-U1 — Repository memory needs scope, contradiction, and expiration + +**Target:** `src/inferrsi/data/skill_library/workflows/research/repository-evolution-analysis/SKILL.md` and its existing evidence references. + +**Increment:** extend the already-covered temporal split with a distinction between accepted historical implementation and durable invariant. Use the [Learning to Commit ledger](../references/learning-to-commit.md) and [E-C2](../cases/methodology-counterexamples.md#e-c2--better-repository-familiarity-can-produce-unnecessary-caution). + +**Proposed insertion, if absent:** + +> For each historical lesson, record the parent snapshot, task intent, accepted change, evidence of the agent's specific discrepancy, and the narrow condition under which the lesson applies. Separate file-local habit, subsystem invariant, and repository-wide convention. Revise or retire a lesson when later accepted evidence contradicts it. Freeze adaptation inputs before future-task evaluation; audit issue synthesis and source access separately. Report correctness, localization, patch size, style and resource use separately. + +**Expected effect:** fewer invented repository-wide rules and less obsolete defensive behavior. **Regression risk:** overly narrow rules may miss useful transfer. **Acceptance evidence needed:** exact incumbent/version, a reviewed historical evidence pair, a counterexample/expiry condition, and a held-out future check if efficacy is claimed. No new history replay or benchmark is authorized here. + +## E-U2 — Factory output and verification are independent choices + +**Target:** `src/inferrsi/data/skill_library/workflows/maintenance/npu-skill-factory/SKILL.md` and its source/admission notes. + +**Increment:** add the [artifact decision](../knowledge/evidence-routing.md), not a second lifecycle or another factory implementation. + +**Proposed insertion, if absent:** + +> Choose case, knowledge, bounded amendment or new skill according to evidence generality and workflow ownership. A new source does not mandate a new skill. Keep source-fidelity, static usability, execution correctness, behavioral efficacy and transfer evidence distinct. Record construction cost separately from downstream cost. Mark unresolved checks and unrun checks explicitly; neither a curated library entry nor an upstream score promotes this local candidate. + +**Expected effect:** better admission discipline without expanding runtime machinery. **Regression risk:** excessive checking can consume more than a one-off task warrants. **Acceptance evidence needed:** latest factory body, duplicate-content review, explicit source constraints and known negative cases. Keep author construction modes descriptive; do not activate AREX/DisCo or inherit its installation/check permissions. + +## E-U3 — Consolidation proposes; validation decides + +**Target:** `src/inferrsi/data/skill_library/workflows/maintenance/skill-evolution-playbook/SKILL.md` and existing evolution references. + +**Increment:** distinguish evidence-pool consolidation from incumbent replacement using [Trace2Skill](../references/trace2skill.md), [SkillOpt](../references/skillopt.md), and [E-C3](../cases/methodology-counterexamples.md#e-c3--fixing-targeted-failures-can-break-unrelated-successes). + +**Proposed insertion, if absent:** + +> Diagnose the causal failure before proposing a corrective rule. Keep successful behaviors that a correction must preserve. Consolidate overlapping evidence into one coherent candidate, but do not treat consensus as an acceptance test. Bound the target passage and behavioral scope of each amendment, inspect its actual size, and retain the incumbent for rollback. Evaluate combined effects and unrelated-success regressions; keep the final test partition outside selection. A tie or uncertain result must not be reported as improvement. + +**Expected effect:** less anecdotal rule growth and fewer unobserved interactions. **Regression risk:** narrow edits may fail to realize complementary changes. **Acceptance evidence needed:** full incumbent, evidence lineage, candidate diff, independent evaluation contract, regression observations and rollback state. No automatic thresholds, worker counts, optimizer schedule, or software changes are adopted from the papers. + +## E-U4 — Negative feedback belongs to a versioned editing context + +**Target:** the same `skill-evolution-playbook` update/provenance section; optionally a reference linked by `npu-skill-factory`, rather than a separate skill. + +**Increment:** preserve a useful distinction in SkillOpt between target-facing guidance and optimizer-only learning history. + +**Proposed insertion, if absent:** + +> Record a rejected edit with the incumbent/candidate identifiers, target conditions, observed outcome and suspected reason. Treat rejection as evidence about that comparison, not a universal ban. Keep advice about how to edit skills outside the deployed task procedure unless it independently belongs there. Long-lived protected guidance remains subject to explicit revision when its evidence expires. + +**Expected effect:** avoid repeating harmful changes without leaking editing bureaucracy into task instructions. **Regression risk:** stale rejection records may suppress valid later changes. **Acceptance evidence needed:** scoped rejection example and a retirement condition. The pack does not create a persistent optimizer memory store. + +## E-U5 — Report costs and gains on comparable denominators + +**Target:** existing `src/inferrsi/data/skill_library/playbooks/measurement/dense-performance-evidence/SKILL.md` or `src/inferrsi/data/skill_library/playbooks/measurement/inference-benchmark-design/SKILL.md`, whichever already owns agent-methodology cost accounting; link from evolution notes instead if outside their current purpose. + +**Increment:** one narrowly placed metric-contract note, using the four ledgers rather than forcing methodology into hardware coverage. + +**Proposed insertion, if absent:** + +> Separate build, selection, deployment-context and downstream-task costs. State whether metrics are absolute points, relative gains, geometric means, or rates with conditional denominators. Retain worse metrics and per-task regressions. Flag unresolved protocol or denominator mismatches rather than repairing them by assumption. A shared task budget does not establish equal total cost. + +**Expected effect:** prevent false economics or promotion claims. **Regression risk:** misplaced content could bloat a hardware-specific skill; use a reference instead when appropriate. **Acceptance evidence needed:** ownership check in the current artifact. This entry is optional after deduplication, not a request to expand that skill's scope. + +## Stopping rule + +Stop after the evidence notes and amendment specifications. Literal edits, test campaigns, optimizer implementation, deployment, or publication require a later authorized task and current artifact access. No amendment here is a claim that the existing skill lacks this material. diff --git a/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/skill-factory-design-20261014.md b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/skill-factory-design-20261014.md new file mode 100644 index 000000000..88d1d21e0 --- /dev/null +++ b/src/inferrsi/knowledge/atoms/workflows/npu-skill-factory/references/skill-factory-design-20261014.md @@ -0,0 +1,187 @@ +# Skill factory design detail (historical, 2026-10-14/15) + +Historical design references from the sibling workstream and PR #9, moved from +the entry `SKILL.md` with the two sibling-prototype entrypoints annotated as +not present in this repository. They record methodology and observed pilot +material, **not** implemented InferRSI functionality: `schemas/skill-bundle.json` +and `python -m omnirsi.harness.skill_distill` below belonged to the sibling +`codex/skill-eval-bootstrap` workstream (observed @ 82218b4) and are **not +present in this repository**. Two sources that section cites: +PR #9 `skill_library/` layout (source-grounded, pr/9 @ 4ad551a9) and sibling +workstream `evidence/skill-bootstrap-20261014/` (observed @ 82218b4). + +## Skill bundle schema + +Each distillation produces a bundle validated against `schemas/skill-bundle.json`. +A bundle must have: + +- `status`: `"candidates_generated"` or `"blocked"` (not a placeholder). +- `capability_graph.nodes`: each node has `id`, `label`, and `source_paths` + pointing to files actually present in the source snapshot. +- `skills`: 3-5 candidates, each with: + - `name`: lowercase, no spaces, ≤63 chars. + - `capability`, `applicability`, `preconditions`, `inputs`, `outputs`, + `procedure`, `knowledge_sources`, `code_evidence`, `docs_evidence`, + `tools`, `scripts`, `validation` (≥1 item), `failure_modes`. + - `provenance.source_repo`, `provenance.source_revision`, + `provenance.source_paths` (all paths must be in the snapshot). + - `revision.version` and `revision.parent`. + +Source: `schemas/skill-bundle.json` (observed @ 82218b4). + +## Existing corpus: selected NPU performance skills + +These four skills are the starting corpus for hide-and-re-distill and the +A/B/C comparison: + +| Skill | Repo | Path | Purpose | Perf-relevant | +|-------|------|------|---------|---------------| +| profiling-analyze | MindIE-SD @ 8481d39b | `.agents/skills/profiling-analyze/` | 5-layer CANN profiling analysis from CSV/JSON | Yes | +| dit-perf-opt | MindIE-SD | `.agents/skills/dit-perf-opt/` | DiT bottleneck → feature selection → A/B | Yes | +| perf-gate | MindIE-SD | `.agents/skills/perf-gate/` | Same-window A/B protocol & noise floor | Yes | +| ops-profiling | awesome-ascend-skills @ 75ec89ce | `external/cannbot/ops/ops-profiling/` | Operator profiling → roofline | Yes | + +The two `vllm-ascend` skills in the sparse clone are framework-integration and +CI/CD skills, not performance skills. They are not used in this corpus. +Source: `w3b-ascend-corpus-evidence.md` (2026-10-14). + +**License status:** MindIE-SD is Apache-2.0. `awesome-ascend-skills` synced from +GitCode; license is UNKNOWN — flag this before any external publication. + +## Stage 3.4 — Hide-and-re-distill procedure + +Best candidate: `profiling-analyze` from MindIE-SD. + +**Why this candidate:** +- The skill encodes NPU-specific knowledge that is only partially recoverable from + public documentation: CANN CSV field aliasing proof (value-set matching, not + header name matching), silent failure patterns ("export succeeded" ≠ file + exists), and empirical utilization rules (call counts stable across devices, + single-kernel ms varies ±10%, single collective latency varies ~2×). +- Source material available before the skill's cutoff: CANN 24.7+ public CSV + spec, `torch_npu.profiler` API, reference materials in `.agents/skills/profiling-analyze/references/`. +- The distilled version can be compared at the same length budget (~295 lines, + ~1287 words). + +**Temporal cutoff (REMOTE verification required):** +Run `git -C log --follow -- .agents/skills/profiling-analyze/SKILL.md` +on the MindIE-SD clone at revision 8481d39b to find creation and last +substantive change dates. Reported by corpus agent as 6-12 months pre-cutoff, +but the exact dates are INSUFFICIENT_EVIDENCE locally. + +**Procedure:** +1. Archive source snapshot at `cutoff_commit` (the commit just before the skill + was last substantially changed). Remove `.agents/skills/profiling-analyze/` + from the archive (this is the "hidden" material). +2. Keep: CANN public docs, `torch_npu.profiler` API, any referenced source files + that predate the cutoff, the `analyze_trace.py` and `compare_traces.py` + scripts that ship with the skill. +3. Run the sibling workstream's distillation prototype (its entrypoint was + `python -m omnirsi.harness.skill_distill`; that module is not in this + repository) with the distillation config pointing to the archived snapshot, + producing 3-5 candidates. +4. Validate the bundle against the sibling `schemas/skill-bundle.json` (also not + in this repository). +5. Render candidate SKILL.md files from the bundle. +6. Proceed to Stage 3.5 evaluation. + +Source: sibling workstream `skill_distill.py` (observed @ 82218b4), which +implements this exact procedure for the `retire-mlapo-env` task. + +## Stage 3.5 — Skill evaluation contract + +**Three variants:** + +| Variant | What the agent receives | +|---------|------------------------| +| no_skill | Task only; no skill document | +| human | Task + frozen human SKILL.md from `plan/human-/` | +| distilled | Task + rendered candidate SKILL.md from bundle | + +Fix across all variants: same model, same harness, same tools, same task, +same base commit, same budgets. + +**Evaluation measures:** + +| Measure | Type | Notes | +|---------|------|-------| +| Task success | Primary | Frozen validator exit code: 0 = success, 1 = fail, other = inconclusive | +| Correctness | Primary | Does the patch actually pass the verification contract? | +| Regression | Primary | Does the validator's regression check pass? | +| Files inspected | Secondary | From agent trace `tool_calls` count | +| Tool calls | Secondary | From agent trace | +| Failed attempts | Secondary | `failed_commands` from trace | +| Input tokens | Cost | From `turn.completed` events | +| Wall time | Cost | Elapsed seconds per variant | +| Patch minimality | Quality | Lines added/removed relative to oracle diff | +| Repo convention adherence | Quality | Requires human review | + +Tier A tasks: CPU/static correctness only. Tier B tasks: require NPU device. + +**Accept criterion (SkillOpt-derived, adapted for InferRSI):** +The distilled skill is accepted for promotion when, on a held-out task set: +``` +task_success(distilled) > task_success(no_skill) +``` +with no regression relative to `human` on correctness or Tier A validation. +A single pilot result (1 task × 1 repetition each) is not sufficient for +promotion. The accept criterion requires: ≥3 tasks, ≥2 repetitions per variant, +`inconclusive` trials excluded from the success-rate estimate, and a campaign +evidence tree under `evidence//`. + +Do not promote based on token cost alone. Lower input tokens does not imply +better task success. + +Source: sibling workstream pilot result (one Tier A task, all three variants +pass, no statistical difference established — consistent with the criterion +above: INCONCLUSIVE for promotion). +`evidence/skill-bootstrap-20261014/results/pilot-01-summary.json` (observed @ 82218b4). + +**Skill build cost vs per-task runtime benefit:** +Record `build-cost.json` separately from task execution costs. The distillation +run's usage (model calls, elapsed time) is a one-time cost amortized over all +tasks the skill is used for. Do not include distillation cost in per-task ROI. + +## Skill revision lineage + +When an accepted skill is subsequently evolved, preserve the revision chain: + +``` +skills// + SKILL.md (current version, including revision.version and revision.parent) + history/ + v0/SKILL.md (initial promoted version) + v1/SKILL.md (first accepted evolution) + ... +``` + +`revision.parent` points to the previous version's SHA or version string. +Rejected candidates are stored in the evidence tree of the evolution campaign +under `evidence//plan/rejected-candidates/`. +Source: skill bundle schema `revision` field (observed @ 82218b4); skill history +layout is a design decision — no prior implementation exists in this branch. + +## Skill evolution cycle (minimum viable, Phase 1) + +One evolution cycle: + +1. **Select trigger:** a task where the current skill (v0) produced FAIL or + INCONCLUSIVE, or where the human skill outperformed the distilled one by a + measurable margin (not within noise). +2. **Bounded edit:** propose a revision that changes only the `procedure`, + `failure_modes`, or `knowledge_sources` sections, not the `capability` or + `applicability` contract. Length budget: ±20% of current skill length. + Do not replace the entire skill. +3. **Independent evaluation:** use development/selection evidence to choose the + candidate; keep final-test tasks outside adaptive edit selection. Check combined + behavior and unrelated successes, not only the triggering failure. +4. **Accept/reject gate:** apply the frozen task-specific contract. A tie or noisy + result is not an improvement. Preserve the incumbent and report regressions or + inconclusive outcomes without excluding them silently from success estimates. +5. **Revision lineage:** on accept, copy the current `SKILL.md` to `history/v0/` + and write the accepted edit as the new `SKILL.md`. Update its frontmatter + with the new `revision.version`. + +This cycle does not require automatic trace harvesting in Phase 1. The trigger +comes from observed evaluation failures. Harvest-from-real-traces (SkillOpt +Sleep cycle) is deferred to Phase 2. diff --git a/src/inferrsi/knowledge/compositions/npu-skill-factory.json b/src/inferrsi/knowledge/compositions/npu-skill-factory.json new file mode 100644 index 000000000..ae17931f9 --- /dev/null +++ b/src/inferrsi/knowledge/compositions/npu-skill-factory.json @@ -0,0 +1,301 @@ +{ + "authority": "checkout", + "metadata": { + "id": "npu-skill-factory", + "kind": "skill", + "entrypoint": "workflows/maintenance/npu-skill-factory/SKILL.md", + "title": "Design and operation of the InferRSI NPU skill factory: artifact lifecycle, skill evaluation contract, corpus selection, hide-and-re-distill procedure, and skill evolution cycle. Use when deciding where new skill artifacts belong, how to distill a candidate skill, or how to run the No-Skill vs Human-Skill vs Distilled-Skill comparison.\n", + "origin": [ + "external" + ], + "sources": [ + { + "type": "git", + "repo": "https://github.com/InferMatrixLab/InferRSI", + "commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf", + "path": "src/inferrsi/knowledge/data/skill_library/workflows/maintenance/npu-skill-factory/SKILL.md", + "sha256": "0de28180da76b6cb9d2c9456733011d00d9801f7662afd32959c4c5d2c05a183" + }, + { + "url": "https://github.com/VectorSpaceLab/AREX-Skill", + "commit": "ac3fe1af", + "paths": [ + "docs/disco-meta-skills.md", + "docs/disco-workflows.md", + "src/disco/skills/create-paper-module-skill/SKILL.md", + "src/disco/skills/create-paper-module-skill/scripts/create_skill_skeleton.py", + "src/disco/skills/create-paper-module-skill/scripts/validate_skill_tree.py", + "src/disco/modes/skill-policy.ts", + "src/core/repo-skills-library-manager.ts" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/SkillOpt/SkillOpt", + "commit": "343db229", + "paths": [ + "skillopt/evaluation/gate.py", + "skillopt/optimizer/skill.py", + "skillopt/optimizer/clip.py", + "skillopt_sleep/cycle.py", + "skillopt_sleep/harvest_sources.py" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/WillowMindIE/MindIE-SD", + "commit": "8481d39b", + "paths": [ + ".agents/skills/profiling-analyze/SKILL.md", + ".agents/skills/dit-perf-opt/SKILL.md", + ".agents/skills/perf-gate/SKILL.md", + ".agents/skills/dit-parallel-opt/SKILL.md" + ], + "type": "git", + "revision_precision": "prefix" + } + ], + "applicability": { + "scope": "InferRSI skill lifecycle management", + "prerequisites": "Current candidate inventory and source/evaluation evidence; historical sibling execution interfaces are not required for read-only artifact admission", + "input_contract": "A candidate inventory plus the source and evaluation evidence for each candidate skill; read-only artifact admission needs no historical sibling execution interface", + "produced_artifact": "An admitted or refused skill candidate with its source, evidence and limitation record, and its stable id and owning path", + "failure_modes": [ + "A candidate admitted on an inventory line without source or evaluation evidence", + "A stable id or path assigned twice across owners", + "Indexing or admission reported as validation or promotion", + "Paper-to-code equivalence asserted without a pinned readset" + ], + "refusal_point": "Refuses admission when a candidate has neither source evidence nor a declared evaluation state, and records the refusal instead of leaving the field blank" + }, + "state": "candidate", + "limitations": [ + "Source-derived candidate; no local efficacy validation.", + "Checkout-only local skill; no automatic execution or promotion.", + "Only declared references are required; other cross-skill links are navigation.", + "Historical revisions require a matching checkout or a retained store." + ], + "attribution": [ + { + "url": "https://github.com/VectorSpaceLab/AREX-Skill", + "commit": "ac3fe1af", + "paths": [ + "docs/disco-meta-skills.md", + "docs/disco-workflows.md", + "src/disco/skills/create-paper-module-skill/SKILL.md", + "src/disco/skills/create-paper-module-skill/scripts/create_skill_skeleton.py", + "src/disco/skills/create-paper-module-skill/scripts/validate_skill_tree.py", + "src/disco/modes/skill-policy.ts", + "src/core/repo-skills-library-manager.ts" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/SkillOpt/SkillOpt", + "commit": "343db229", + "paths": [ + "skillopt/evaluation/gate.py", + "skillopt/optimizer/skill.py", + "skillopt/optimizer/clip.py", + "skillopt_sleep/cycle.py", + "skillopt_sleep/harvest_sources.py" + ], + "type": "git", + "revision_precision": "prefix" + }, + { + "url": "https://github.com/WillowMindIE/MindIE-SD", + "commit": "8481d39b", + "paths": [ + ".agents/skills/profiling-analyze/SKILL.md", + ".agents/skills/dit-perf-opt/SKILL.md", + ".agents/skills/perf-gate/SKILL.md", + ".agents/skills/dit-parallel-opt/SKILL.md" + ], + "type": "git", + "revision_precision": "prefix" + } + ], + "empirical_validation": "not_run", + "required_resources": [ + "workflows/maintenance/npu-skill-factory/SKILL.md", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/COMPARISON.md", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/INTEGRATION_NOTES.md", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/QA.md", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/README.md", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/UNREAD_LEADS.md", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/cases/methodology-counterexamples.md", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/knowledge/evidence-routing.md", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/references/learning-to-commit.md", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/references/protocol-details.md", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/references/readset.md", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/references/repo-to-skill.md", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/references/skillopt.md", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/references/source-manifest.json", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/references/trace2skill.md", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/updates/bounded-updates.md", + "workflows/maintenance/npu-skill-factory/references/skill-factory-design-20261014.md" + ], + "composition": { + "when": {}, + "license": "Apache-2.0", + "permissions": { + "read": true, + "retain": true, + "redistribute": true + }, + "nodes": { + "navigation": { + "ref": "checkout:npu-skill-factory.original.navigation", + "revision": "sha256:709ed82e542e2f134c2d27e449fb32152a48270408d90ce74c1c4ee6b20cbce7" + }, + "decision": { + "ref": "checkout:npu-skill-factory.original.decision", + "revision": "sha256:a310dd98b685ca94561470c9320dc174b9fdd70045f15d3c79bda0ded11429b1" + }, + "procedure": { + "ref": "checkout:npu-skill-factory.original.procedure", + "revision": "sha256:12cd2a842d3119592858739ea8cb8a8f6cba14d101d07e555ef5f2793b5f753e", + "requires": [ + "decision" + ] + }, + "original": { + "ref": "checkout:npu-skill-factory.original", + "revision": "sha256:9881e63c945bd4297dfe697e543ab084c13e032df18c46955abb31f3658211a3" + }, + "comparison": { + "ref": "checkout:npu-skill-factory.comparison", + "revision": "sha256:e4ca9448d9dc10eaaf15547bdba0decc59fe8fd1a6a5b2af2a9aa7c9e78a76b5" + }, + "integration_notes": { + "ref": "checkout:npu-skill-factory.integration_notes", + "revision": "sha256:c719f99c6bce7db23cdbf3b9d426b2920770986e600029ae7ded16dd02ffe3a4" + }, + "qa": { + "ref": "checkout:npu-skill-factory.qa", + "revision": "sha256:48afe1626a9eaf6e128b159aae26f051b7bcd1a59c596c19d5c69e47327c4904" + }, + "readme": { + "ref": "checkout:npu-skill-factory.readme", + "revision": "sha256:28874ef5f612e4cbe61568b92496fe7a836536fa80e78b6f9f3cb784be9f4bf1" + }, + "unread_leads": { + "ref": "checkout:npu-skill-factory.unread_leads", + "revision": "sha256:145ee3449f74655fcc181aaf1a956daef6429dede9d7032a6b37edbd548070e6" + }, + "methodology-counterexamples": { + "ref": "checkout:npu-skill-factory.methodology-counterexamples", + "revision": "sha256:7ac7f2203943180cab5a3a9015fad3efada043017fc8890ebe5d550356fa594e" + }, + "evidence-routing": { + "ref": "checkout:npu-skill-factory.evidence-routing", + "revision": "sha256:f161e29b72176d359a1a9ea252eed2205858875e9e74d6dd7c193f8a2d655f05" + }, + "learning-to-commit": { + "ref": "checkout:npu-skill-factory.learning-to-commit", + "revision": "sha256:8e6ec85047234d0f7c5a057a3ac5bf6c6e5e1f294219ab436343d2a8e8e24639" + }, + "protocol-details": { + "ref": "checkout:npu-skill-factory.protocol-details", + "revision": "sha256:72e778d1998ec4797d9dac462472d51d538871d7accfa5bddca79a55d361ff84" + }, + "readset": { + "ref": "checkout:npu-skill-factory.readset", + "revision": "sha256:86d4a00872b1ae983e37aa64dee5f5b34a077a5de0466bd26a92fc1c9a04ee67" + }, + "repo-to-skill": { + "ref": "checkout:npu-skill-factory.repo-to-skill", + "revision": "sha256:1761b1c7442557a52a960562ddcc3df553e9e612d3b17dfcc336068cedd5a948" + }, + "skillopt": { + "ref": "checkout:npu-skill-factory.skillopt", + "revision": "sha256:20314f010eef7d18cc4e514b8cdebd0c93321a84c2abd37d4faa687b8b162cde" + }, + "source-manifest": { + "ref": "checkout:npu-skill-factory.source-manifest", + "revision": "sha256:67186a8326dcc1f522772ddd94323c5c3fcfcd82c1e5ce56933d1443e7e51bde" + }, + "trace2skill": { + "ref": "checkout:npu-skill-factory.trace2skill", + "revision": "sha256:1292d3b5e931dc9bec5068c13d087fd8dfbab09ef4df231d13c300e5d07f0895" + }, + "bounded-updates": { + "ref": "checkout:npu-skill-factory.bounded-updates", + "revision": "sha256:90f88bfdc2a49046223a3eec7947983a598e4f28adc6dfabb4f337027a2b300f" + }, + "skill-factory-design-20261014": { + "ref": "checkout:npu-skill-factory.skill-factory-design-20261014", + "revision": "sha256:6e1e59a9eeee0128e0013636bb7a684ac4db92412c50e3ea974191c9a9689027" + } + }, + "routes": { + "navigation": { + "layer": "L0", + "required": [ + "navigation" + ] + }, + "decision": { + "layer": "L1", + "required": [ + "decision" + ] + }, + "procedure": { + "layer": "L2", + "required": [ + "procedure" + ] + }, + "originals": { + "layer": "L3", + "required": [ + "original", + "comparison", + "integration_notes", + "qa", + "readme", + "unread_leads", + "methodology-counterexamples", + "evidence-routing", + "learning-to-commit", + "protocol-details", + "readset", + "repo-to-skill", + "skillopt", + "source-manifest", + "trace2skill", + "bounded-updates", + "skill-factory-design-20261014" + ] + } + }, + "skill": { + "directory_entry": true + } + } + }, + "directory_resources": { + "workflows/maintenance/npu-skill-factory/SKILL.md": "original", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/COMPARISON.md": "comparison", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/INTEGRATION_NOTES.md": "integration_notes", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/QA.md": "qa", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/README.md": "readme", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/UNREAD_LEADS.md": "unread_leads", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/cases/methodology-counterexamples.md": "methodology-counterexamples", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/knowledge/evidence-routing.md": "evidence-routing", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/references/learning-to-commit.md": "learning-to-commit", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/references/protocol-details.md": "protocol-details", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/references/readset.md": "readset", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/references/repo-to-skill.md": "repo-to-skill", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/references/skillopt.md": "skillopt", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/references/source-manifest.json": "source-manifest", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/references/trace2skill.md": "trace2skill", + "workflows/maintenance/npu-skill-factory/references/papers-20261015/updates/bounded-updates.md": "bounded-updates", + "workflows/maintenance/npu-skill-factory/references/skill-factory-design-20261014.md": "skill-factory-design-20261014" + } +} diff --git a/tests/knowledge/test_atomic_workflows.py b/tests/knowledge/test_atomic_workflows.py index b3f9b4a7d..7420cdd7b 100644 --- a/tests/knowledge/test_atomic_workflows.py +++ b/tests/knowledge/test_atomic_workflows.py @@ -2,7 +2,7 @@ import json import shutil -from pathlib import Path +from pathlib import Path, PurePosixPath import pytest @@ -17,7 +17,8 @@ FIXTURE = Path(__file__).resolve().parents[1] / "fixtures/atomic-reader/workflow-domain-v0.3.4.json" RELEASE = json.loads(FIXTURE.read_bytes()) KNOWLEDGE = FIXTURE.parents[3] / "src/inferrsi/knowledge" -GUIDES = ("cite-check-downstream-pr", "claim-contract", "competitor-scan") +GUIDES = ("cite-check-downstream-pr", "claim-contract", "competitor-scan", "npu-skill-factory") +LIBRARY = "src/inferrsi/knowledge/data/skill_library/" @pytest.fixture(scope="module") @@ -26,21 +27,29 @@ def workflow_installation(tmp_path_factory): author = make_author_root(root) pinned = root / "release" shutil.copytree(RELEASE_ROOT, pinned) - (author / "atoms/workflows").mkdir() for name in GUIDES: row = RELEASE["refs"]["checkout:" + name] - atom = f"atoms/{name}.original.json" - descriptor = json.loads((KNOWLEDGE / atom).read_bytes()) - body = "atoms/" + descriptor["content"]["guide.md"]["path"] - for relative in (atom, body, f"compositions/{name}.json"): - shutil.copyfile(KNOWLEDGE / relative, author / relative) - data = (author / body).read_bytes() - assert RELEASE["files"][row["entry_source"]] == {"sha256": digest(data), "bytes": len(data)} - assert row["required_resources"] == {row["entry_source"]: digest(data)} - assert row["dependencies"] == {} and row["relative_guide_links"] == {} - original = pinned / descriptor["metadata"]["sources"][0]["path"] - original.parent.mkdir(parents=True, exist_ok=True) - original.write_bytes(data) + composition = Path("compositions", name + ".json") + shutil.copyfile(KNOWLEDGE / composition, author / composition) + declaration = json.loads((author / composition).read_bytes()) + bindings = declaration["directory_resources"] + assert bindings.keys() == row["required_resources"].keys() + nodes = declaration["metadata"]["composition"]["nodes"] + for path, key in bindings.items(): + identity = nodes[key]["ref"].removeprefix("checkout:") + atom = Path("atoms", identity + ".json") + shutil.copyfile(KNOWLEDGE / atom, author / atom) + descriptor = json.loads((author / atom).read_bytes()) + (resource,) = descriptor["content"].values() + body = Path("atoms", resource["path"]) + (author / body).parent.mkdir(parents=True, exist_ok=True) + shutil.copyfile(KNOWLEDGE / body, author / body) + data = (author / body).read_bytes() + assert RELEASE["files"][path] == {"sha256": digest(data), "bytes": len(data)} + assert row["required_resources"][path] == digest(data) + original = pinned / (LIBRARY + path) + original.parent.mkdir(parents=True, exist_ok=True) + original.write_bytes(data) target = root / "installed" generation = build_generation(author, target, permits=allow, source_roots={RELEASE["source_commit"]: pinned}) @@ -58,15 +67,18 @@ def test_checkout_host_and_layered_selection_preserve_workflow_guide(workflow_in _, bundle = installed.read_resolved(ref, revision=revision) host = target / "skills" / name raw = (host / "SKILL.md").read_bytes() - assert sorted(p.name for p in host.iterdir()) == ["SKILL.md"] - assert bundle.content == {guide: raw} and bundle.dependencies == {} - assert bundle.metadata["required_resources"] == [guide] + directory = PurePosixPath(guide).parent + files = {(directory / p.relative_to(host).as_posix()).as_posix(): p.read_bytes() + for p in host.rglob("*") if p.is_file()} + assert {path: digest(data) for path, data in files.items()} == row["required_resources"] + assert bundle.content == files and bundle.dependencies == row["dependencies"] == {} + assert bundle.metadata["required_resources"] == sorted(files) assert digest(raw) == row["entry_sha256"] == row["guide_sha256"] assert digest(canonical(bundle.view()["resources"])) == row["resource_set"] - assert bundle.metadata["state"] == "candidate" and bundle.metadata["origin"] == ["first-party"] + assert bundle.metadata["state"] == "candidate" results = {} for layer in ("L0", "L1", "L2", "L3"): - selected = select(installed, ref, layer, len(raw)) + selected = select(installed, ref, layer, sum(map(len, files.values()))) assert selected.receipt["status"] == "delivered" size = sum(map(len, selected.bodies)) assert size == selected.receipt["body_bytes"] @@ -79,9 +91,12 @@ def test_checkout_host_and_layered_selection_preserve_workflow_guide(workflow_in for item, body in zip(selected.receipt["delivered"], selected.bodies, strict=True): lo, hi = item["source_byte_range"] assert item["source"]["commit"] == RELEASE["source_commit"] - assert item["source_path"] == "src/inferrsi/knowledge/data/skill_library/" + guide + path = item["source_path"].removeprefix(LIBRARY) + assert item["source_path"] == LIBRARY + path + if layer != "L3": + assert path == guide assert item["source_range_verification"] == "verified_at_build" - assert body == raw[lo:hi] and digest(body) == item["source_sha256"] + assert body == files[path][lo:hi] and digest(body) == item["source_sha256"] for denied in [ref, *(item["ref"] for item in selected.receipt["delivered"])]: result = select(installed, ref, layer, size, permits=lambda pin, op: pin.ref != denied) assert_empty(result, "permission_denied") @@ -92,6 +107,7 @@ def test_checkout_host_and_layered_selection_preserve_workflow_guide(workflow_in assert b"metadata:" not in navigation (decision,) = results["L1"] _, fields = _skill_search_source(decision.decode()) + assert fields["origin"] == bundle.metadata["origin"] assert fields["empirical_validation"] == bundle.metadata["empirical_validation"] == "not_run" projected = DecisionSource(ref, revision, "skill", guide, guide, fields).project()["card"] assert projected["revision"] == revision @@ -101,7 +117,32 @@ def test_checkout_host_and_layered_selection_preserve_workflow_guide(workflow_in assert compared["status"] == row["status"] == "partial" assert compared["missing_fields"] == row["missing_fields"] == ["validation"] assert results["L2"][0] == decision and b"".join(results["L2"]) == raw - assert results["L3"] == (raw,) + assert results["L3"] == tuple(files[path] for path in sorted(files)) + + +def test_factory_exports_linked_notes_and_preserves_source_attribution(workflow_installation): + installed, target = workflow_installation + name = "npu-skill-factory" + ref = "checkout:" + name + row = RELEASE["refs"][ref] + _, bundle = installed.read_resolved(ref, revision=installed.catalog[ref]["revision"]) + host = target / "skills" / name + _, fields = _skill_search_source((host / "SKILL.md").read_text(encoding="utf-8")) + assert bundle.metadata["origin"] == ["external"] + assert bundle.metadata["attribution"] == bundle.metadata["sources"][1:] == fields["sources"] + assert len(fields["sources"]) == 3 + assert len(row["relative_guide_links"]) == 5 and len(row["required_resources"]) == 17 + for link, old in row["relative_guide_links"].items(): + assert old["in_directory"] and digest((host / link).read_bytes()) == old["sha256"] + assert len(fields["provenance_readsets"]) == 14 + for readset in fields["provenance_readsets"]: + original = (PurePosixPath(row["guide"]).parent / readset).as_posix() + assert digest((host / readset).read_bytes()) == row["required_resources"][original] + manifest = host / "references/papers-20261015/references/source-manifest.json" + declared = json.loads(manifest.read_bytes()) + assert len(declared) == 8 + assert all(item["source_copy_in_deliverable"] is False for item in declared) + assert {item["sha256"] for item in declared}.isdisjoint(row["required_resources"].values()) @pytest.mark.parametrize("name", GUIDES)