@evo-dev/evodev 0.0.1-alpha → 0.0.1-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/.claude-plugin/marketplace.json +2 -2
  2. package/dist/assets/agents/review/code-reviewer/examples.md +1 -1
  3. package/dist/assets/agents/review/code-reviewer/prompt.md +1 -1
  4. package/dist/assets/agents/review/code-reviewer/verification.md +1 -1
  5. package/dist/assets/skills/coding/knowledge-distillation/SKILL.md +251 -0
  6. package/dist/assets/skills/coding/knowledge-distillation/manifest.json +10 -0
  7. package/dist/assets/skills/coding/knowledge-distillation/references/knowledge-distillation-methods.md +126 -0
  8. package/dist/assets/team/agents/code-reviewer.md +48 -0
  9. package/dist/assets/team/agents/docs-maintainer.md +51 -0
  10. package/dist/assets/team/agents/implementation-engineer.md +51 -0
  11. package/dist/assets/team/agents/product-scope-analyst.md +58 -0
  12. package/dist/assets/team/agents/release-engineer.md +55 -0
  13. package/dist/assets/team/agents/security-boundary-reviewer.md +50 -0
  14. package/dist/assets/team/agents/solution-architect.md +51 -0
  15. package/dist/assets/team/agents/verification-engineer.md +51 -0
  16. package/dist/assets/team/team.md +102 -0
  17. package/dist/assets/workflows/rd-bug-fix/WORKFLOW.json +1 -1
  18. package/dist/assets/workflows/rd-code-review/WORKFLOW.json +1 -1
  19. package/dist/assets/workflows/rd-docs-update/WORKFLOW.json +1 -1
  20. package/dist/assets/workflows/rd-feature-implementation/WORKFLOW.json +1 -1
  21. package/dist/assets/workflows/rd-refactor/WORKFLOW.json +1 -1
  22. package/dist/assets/workflows/rd-release-readiness/WORKFLOW.json +1 -1
  23. package/dist/assets/workflows/rd-security-boundary-review/WORKFLOW.json +2 -2
  24. package/dist/assets/workflows/rd-test-generation/WORKFLOW.json +1 -1
  25. package/dist/index.js +29774 -9310
  26. package/dist/plugins/evodev/.claude-plugin/plugin.json +2 -2
  27. package/dist/plugins/evodev/.codex-plugin/plugin.json +8 -6
  28. package/dist/plugins/evodev/.mcp.json +6 -0
  29. package/dist/plugins/evodev/hooks/codex-hooks.json +10 -10
  30. package/dist/plugins/evodev/hooks/codex.ts +596 -34
  31. package/dist/plugins/evodev/hooks/hooks.json +18 -18
  32. package/dist/plugins/evodev/hooks/hooks.ts +470 -25
  33. package/dist/plugins/evodev/hooks/index.ts +15 -0
  34. package/dist/plugins/evodev/hooks/paths.ts +44 -1
  35. package/dist/plugins/evodev/hooks/plugin.ts +160 -9
  36. package/dist/plugins/evodev/hooks/runtime.ts +234 -43
  37. package/dist/plugins/evodev/hooks/transform-agent.ts +30 -0
  38. package/dist/plugins/evodev/hooks/workspace-core.ts +154 -0
  39. package/dist/plugins/evodev/package.json +3 -3
  40. package/dist/plugins/evodev/skills/engineering-discipline/SKILL.md +63 -0
  41. package/dist/plugins/evodev/skills/engineering-discipline/anti-patterns.md +21 -0
  42. package/dist/plugins/evodev/skills/engineering-discipline/examples.md +19 -0
  43. package/dist/plugins/evodev/skills/engineering-discipline/verification.md +11 -0
  44. package/dist/plugins/evodev/skills/knowledge-distillation/SKILL.md +251 -0
  45. package/dist/plugins/evodev/skills/knowledge-distillation/references/knowledge-distillation-methods.md +126 -0
  46. package/dist/ui/app.js +9 -0
  47. package/dist/ui/styles.css +2 -0
  48. package/package.json +9 -7
  49. package/dist/evodev +0 -11
@@ -0,0 +1,126 @@
1
+ # Knowledge Distillation Method Notes
2
+
3
+ This reference explains why the skill uses an evidence curation pipeline instead of a generic summarization workflow.
4
+
5
+ ## Method Comparison
6
+
7
+ | Method | What it contributes | EvoDev adaptation |
8
+ |---|---|---|
9
+ | Postmortem / SRE review | Blameless failure analysis, root cause, impact, action items | Use for failure-derived `warning`, `anti-pattern`, `checklist`, and `workflow-improvement` candidates |
10
+ | After Action Review | Expected vs actual, what went well, what failed, what changes next time | Use for evos cases and team/process improvement candidates |
11
+ | Lessons learned systems | Reviewed lessons from projects/programs, not raw incident notes | Keep active OKF knowledge separate from raw evidence and transient plans |
12
+ | ADR / decision logs | One durable decision with context, alternatives, rationale, consequences | Use `decision` candidates for architecture/workflow choices |
13
+ | SKOS-style knowledge organization | Concepts, labels, narrower/broader/related terms, scope notes | Keep role tags and domain tags controlled enough for retrieval |
14
+ | Agent memory research | Semantic facts, episodic cases, procedural improvements | Split knowledge, evos cases, and repo asset suggestions instead of one memory bucket |
15
+ | Agent skills | Small triggerable procedures with references/assets for larger material | Keep `SKILL.md` operational and place long examples/taxonomies in references |
16
+ | Evaluation-driven development | Behavior changes need regression cases and objective assertions | Pair skill, role, team, workflow, routing, tool-use, and subagent proposals with evo eval sets |
17
+
18
+ ## Evidence Quality
19
+
20
+ Prefer evidence in this order:
21
+
22
+ 1. Verified local outcomes: tests, typecheck, lint, build, release dry-run, smoke checks, or accepted fixes.
23
+ 2. Reviewed findings: code review, security review, user correction, or postmortem conclusion.
24
+ 3. Official or upstream references: standards, vendor docs, framework docs, release notes, or source repositories.
25
+ 4. Existing repository contracts: `AGENTS.md`, design docs, task contracts, tests, schemas, and explicit policy files.
26
+ 5. Model reflection: useful for candidate generation only; never enough for active OKF knowledge.
27
+
28
+ ## Candidate Types
29
+
30
+ - `rule`: normative guidance with a clear trigger and expected behavior.
31
+ - `decision`: accepted choice plus context, alternatives, and consequences.
32
+ - `pattern`: repeatable implementation or workflow shape.
33
+ - `anti-pattern`: repeatable bad shape to avoid.
34
+ - `warning`: risk that should influence planning or review.
35
+ - `checklist`: short verification list for a role or workflow.
36
+ - `concept`: term, domain note, taxonomy entry, or glossary item.
37
+ - `workflow-improvement`: process change with trigger and expected future behavior.
38
+ - `task-split-improvement`: improved decomposition, dependencies, owner roles, evidence, or stop conditions.
39
+ - `tool-use-improvement`: improved tool selection, risk classification, command gating, or verification behavior.
40
+ - `skill-improvement`: proposed change to a skill trigger, input requirements, output schema, references, or behavior.
41
+ - `repo-asset-suggestion`: proposed project rule, skill, agent, subagent, or config file.
42
+ - `role-agent-suggestion`: proposed user/project role definition or role capability.
43
+ - `team-suggestion`: proposed EvoHub team composition and trigger.
44
+ - `eval-set`: proposed regression cases for a skill, role, team, workflow, routing, tool-use, or subagent behavior.
45
+ - `open-question`: unresolved issue that should not become accepted memory yet.
46
+
47
+ ## Scoring Rubric
48
+
49
+ Use 1-5 integers. Keep the score approximate; it is a review aid, not a scientific metric.
50
+
51
+ | Score | High value means | Low value means |
52
+ |---|---|---|
53
+ | `evidenceStrength` | Directly supported by verified/reviewed evidence | Mostly inferred or speculative |
54
+ | `reuseValue` | Likely useful across future similar tasks | One-off or too narrow |
55
+ | `actionability` | Clear trigger and next action | Vague or only descriptive |
56
+ | `stability` | Likely to remain true for the repo/workflow | Depends on volatile context |
57
+ | `privacyRisk` | Higher is worse: needs sensitive context | Redacted summary is enough |
58
+ | `duplicationRisk` | Higher is worse: likely duplicate | Distinct from existing entries |
59
+
60
+ Suggested write queue rule:
61
+
62
+ - Propose active OKF knowledge only when `evidenceStrength >= 4`, `reuseValue >= 3`, `actionability >= 3`, `privacyRisk <= 2`, and `duplicationRisk <= 3`.
63
+ - Propose evos cases when the item is mainly about a trigger/intervention/outcome history.
64
+ - Propose repo assets only when repeated future execution would benefit from a rule, skill, role, or team and explicit project opt-in can be obtained.
65
+ - Propose evo eval sets whenever a skill, role-agent, team, workflow, routing, tool-use, or subagent behavior change is proposed. If no eval is useful, state why in the proposal.
66
+
67
+ ## Executable Contract Notes
68
+
69
+ The runtime accepts only JSON outputs with `kind: "knowledge-distillation-output"` and `schemaVersion: 1`. Candidate decisions are `auto-accept`, `create`, `update`, `needs-human`, `skip`, and canonical `no_write`. Active writes must be metadata-only, evidence-backed, review-state gated, verified, and targeted at safe relative `.md` OKF paths. Behavior-changing active writes must include `evalSetRefs` that point to provided `evoEvalSets`.
70
+
71
+ Contract validation runs before OKF writes. Validation failures are saved as redacted, non-resumable failed-plan artifacts; organizer failures preserve a resumable plan. Failed artifacts are organizer inputs only and must not influence runtime retrieval.
72
+
73
+ ## Evolution Event Analysis
74
+
75
+ Use reviewed event evidence to explain why the future behavior should change.
76
+
77
+ | Signal | Good analysis asks |
78
+ |---|---|
79
+ | Task slices | Was the work decomposed into verifiable units with owner roles, dependencies, and stop conditions? |
80
+ | Tool calls | Was the selected tool appropriate, gated by risk, and followed by verification or recovery? |
81
+ | Skill invocations | Did the skill trigger correctly, receive the needed evidence, and produce a complete schema with privacy checks? |
82
+ | Subagent lifecycle | Was the role necessary, bounded, mergeable, and verified without storing transcript content? |
83
+ | Verification | Did required checks run at the right time and produce evidence for the claim? |
84
+
85
+ Common skill defects:
86
+
87
+ - `trigger-mismatch`: the skill was invoked when it should not have been, or missed when it should have run.
88
+ - `input-gap`: required evidence class was missing.
89
+ - `output-omission`: a required proposal, field, path, role tag, privacy check, or eval set was absent.
90
+ - `inaccurate-claim`: output contradicted verified evidence.
91
+ - `schema-drift`: output did not match the declared contract.
92
+ - `privacy-defect`: output depended on raw private content.
93
+
94
+ ## Evo Eval Set Types
95
+
96
+ | Type | Checks |
97
+ |---|---|
98
+ | `schema` | Required fields, enum values, ids, and status are present. |
99
+ | `omission-detection` | Missing recommendations, evidence refs, privacy checks, or eval sets are caught. |
100
+ | `privacy` | Raw prompt/source/command output/secrets are not stored. |
101
+ | `routing` | A skill, workflow, role, or team should or should not trigger. |
102
+ | `role-attention` | Role-tagged knowledge is selected only when scope, consent, and role policy match. |
103
+ | `tool-use` | Tool choice, risk classification, and verification behavior are correct. |
104
+ | `subagent-routing` | Role selection, scope, output contract, and merge requirements are correct. |
105
+
106
+ ## Storage Mapping
107
+
108
+ | Candidate target | Canonical layer | Notes |
109
+ |---|---|---|
110
+ | `okf` | Active knowledge | OKF Markdown concepts with frontmatter, provenance, links, directory indexes, and logs |
111
+ | `evo-eval-set` | Evolution eval sets | Regression cases tied to proposed or accepted behavior changes |
112
+ | `repo-asset-proposal` | Proposal queue first | Never write project files by default |
113
+ | `none` | Report only | Useful but not durable |
114
+
115
+ Indexes, vector search, graph exports, and runtime caches are derived views. They must be rebuildable from active OKF concepts and must not store raw private content. Transient knowledge plans are organizer inputs, not accepted knowledge.
116
+
117
+ ## Source Notes
118
+
119
+ - Google SRE postmortem practice: https://sre.google/sre-book/postmortem-culture/
120
+ - US Army AAR guidance: https://www.first.army.mil/Portals/102/FM%207-0%20Appendix%20K.pdf
121
+ - NASA Lessons Learned: https://www.nasa.gov/nasa-lessons-learned/
122
+ - ADR references and templates: https://adr.github.io/
123
+ - W3C SKOS Reference: https://www.w3.org/TR/skos-reference/
124
+ - W3C PROV-O provenance ontology: https://www.w3.org/TR/prov-o/
125
+ - OpenAI Agents SDK sessions/memory reference: https://openai.github.io/openai-agents-python/sessions/
126
+ - Claude Code skills documentation: https://docs.anthropic.com/en/docs/claude-code/skills