onto-mcp 0.3.0 → 0.3.2
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.
- package/.onto/authority/core-lexicon.yaml +12 -0
- package/.onto/domains/software-engineering/competency_qs.md +192 -63
- package/.onto/domains/software-engineering/concepts.md +67 -5
- package/.onto/domains/software-engineering/conciseness_rules.md +22 -2
- package/.onto/domains/software-engineering/dependency_rules.md +78 -8
- package/.onto/domains/software-engineering/domain_scope.md +181 -150
- package/.onto/domains/software-engineering/extension_cases.md +318 -542
- package/.onto/domains/software-engineering/logic_rules.md +75 -3
- package/.onto/domains/software-engineering/problem_framing_profile.md +29 -2
- package/.onto/domains/software-engineering/prompt_interface.md +122 -0
- package/.onto/domains/software-engineering/structure_spec.md +53 -4
- package/.onto/principles/llm-native-development-guideline.md +20 -0
- package/.onto/principles/productization-charter.md +6 -0
- package/.onto/processes/evolve/material-kind-adapter-contract.md +6 -0
- package/.onto/processes/reconstruct/reconstruct-boundary-contract.md +468 -81
- package/.onto/processes/reconstruct/reconstruct-execution-ux-contract.md +177 -0
- package/.onto/processes/reconstruct/source-profile-contract.md +39 -6
- package/.onto/processes/reconstruct/top-level-concept-discovery-contract.md +387 -0
- package/.onto/processes/review/binding-contract.md +8 -0
- package/.onto/processes/review/lens-registry.md +16 -0
- package/.onto/processes/review/pre-dispatch-contracts.md +34 -13
- package/.onto/processes/review/productized-live-path.md +3 -1
- package/.onto/processes/shared/pipeline-execution-ledger-contract.md +185 -0
- package/.onto/processes/shared/target-material-kind-contract.md +24 -2
- package/.onto/roles/axiology.md +7 -2
- package/AGENTS.md +4 -2
- package/README.md +52 -29
- package/dist/core-api/reconstruct-api.js +92 -5
- package/dist/core-api/review-api.js +1744 -371
- package/dist/core-runtime/cli/mock-review-unit-executor.js +17 -0
- package/dist/core-runtime/cli/render-review-final-output.js +9 -0
- package/dist/core-runtime/cli/review-invoke.js +387 -55
- package/dist/core-runtime/cli/run-review-prompt-execution.js +361 -90
- package/dist/core-runtime/path-boundary.js +58 -0
- package/dist/core-runtime/pipeline-execution-ledger.js +100 -0
- package/dist/core-runtime/reconstruct/artifact-types.js +33 -1
- package/dist/core-runtime/reconstruct/materialize-preparation.js +54 -4
- package/dist/core-runtime/reconstruct/pipeline-execution-ledger.js +342 -0
- package/dist/core-runtime/reconstruct/post-seed-validation.js +630 -0
- package/dist/core-runtime/reconstruct/record.js +105 -1
- package/dist/core-runtime/reconstruct/run.js +1594 -38
- package/dist/core-runtime/reconstruct/seed-candidate-validation.js +29 -0
- package/dist/core-runtime/review/continuation-plan.js +160 -0
- package/dist/core-runtime/review/execution-plan-boundary.js +123 -0
- package/dist/core-runtime/review/materializers.js +8 -3
- package/dist/core-runtime/review/pipeline-execution-ledger.js +250 -0
- package/dist/core-runtime/review/review-artifact-utils.js +15 -2
- package/dist/core-runtime/review/review-invocation-runner.js +604 -0
- package/dist/core-runtime/target-material-kind.js +43 -5
- package/dist/mcp/server.js +289 -59
- package/dist/mcp/tool-schemas.js +28 -2
- package/package.json +4 -2
- package/.onto/domains/llm-native-development/competency_qs.md +0 -430
- package/.onto/domains/llm-native-development/concepts.md +0 -242
- package/.onto/domains/llm-native-development/conciseness_rules.md +0 -163
- package/.onto/domains/llm-native-development/dependency_rules.md +0 -216
- package/.onto/domains/llm-native-development/domain_scope.md +0 -197
- package/.onto/domains/llm-native-development/extension_cases.md +0 -474
- package/.onto/domains/llm-native-development/logic_rules.md +0 -123
- package/.onto/domains/llm-native-development/prompt_interface.md +0 -49
- package/.onto/domains/llm-native-development/structure_spec.md +0 -245
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
version: 2
|
|
3
|
-
last_updated: "2026-03-30"
|
|
4
|
-
source: manual
|
|
5
|
-
status: established
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# LLM-Native Development Domain — Domain Scope Definition
|
|
9
|
-
|
|
10
|
-
The reference document used by coverage when identifying "what should exist but is missing" in an LLM-powered system.
|
|
11
|
-
|
|
12
|
-
## Application Scope
|
|
13
|
-
|
|
14
|
-
This domain applies when designing, building, and operating **systems powered by LLMs**. The scope encompasses all design decisions specific to LLM-based systems — from model selection to production operations.
|
|
15
|
-
|
|
16
|
-
This is a full reclassification from the previous scope ("designing LLM-friendly knowledge structures"). The original scope's content (File=Concept, frontmatter, navigation, system maps) is retained as a sub-concern within Area 3 (Retrieval & Knowledge Systems).
|
|
17
|
-
|
|
18
|
-
## Classification Axis
|
|
19
|
-
|
|
20
|
-
**System Construction Concern** — "What distinct aspect of an LLM-powered system must be designed, built, and maintained?"
|
|
21
|
-
|
|
22
|
-
Each sub-area must satisfy all 3 independence criteria:
|
|
23
|
-
1. **Distinct design decisions**: Choices made in this area are not determined by choices in other areas
|
|
24
|
-
2. **Distinct failure modes**: A failure in this area does not automatically imply failure in other areas
|
|
25
|
-
3. **Distinct evaluation criteria**: Quality in this area is measured by metrics not shared with other areas
|
|
26
|
-
|
|
27
|
-
## Domain Boundary Criteria
|
|
28
|
-
|
|
29
|
-
Not all software engineering concerns fall within this domain. The following 2-stage test determines whether a concern is in-scope:
|
|
30
|
-
|
|
31
|
-
**Stage 1 — Core scope**: "If this concern is removed, does the system lose any LLM-related design decisions?"
|
|
32
|
-
- Yes → Core scope. Must be attributed to one of the 8 sub-areas.
|
|
33
|
-
|
|
34
|
-
**Stage 2 — Conditional scope**: "This is a general SE concern, but does the LLM system introduce design decisions unique to this concern that would not exist in a non-LLM system?"
|
|
35
|
-
- Yes → Conditional scope. Only the LLM-unique design decisions are in-scope.
|
|
36
|
-
- No → Out of scope.
|
|
37
|
-
|
|
38
|
-
**Auxiliary criterion** (for ambiguous cases): "Does the LLM system practitioner face trade-offs in this concern that differ from those a general software engineer would face?"
|
|
39
|
-
|
|
40
|
-
**CE verification implications**:
|
|
41
|
-
- Core scope item missing = CE violation (high severity)
|
|
42
|
-
- Conditional scope item missing = CE violation candidate (medium severity, requires verification of unique design decision existence)
|
|
43
|
-
- Out-of-scope item missing = Not a CE violation
|
|
44
|
-
|
|
45
|
-
### Technology Assumptions
|
|
46
|
-
|
|
47
|
-
The following assumptions underlie the current structure. If an assumption becomes invalid, the affected areas require re-evaluation:
|
|
48
|
-
|
|
49
|
-
| Assumption | Affected Areas | If Invalidated |
|
|
50
|
-
|---|---|---|
|
|
51
|
-
| Models are accessed primarily via API (Model-as-a-Service) | 1, 7 | Area 7 expands significantly (infrastructure management) |
|
|
52
|
-
| Text is the primary modality; multimodal is supplementary | 2, 3 | Area 2 restructures for multi-modal input design |
|
|
53
|
-
| Fine-tuning is optional, not mandatory for most applications | 8 | Area 8 becomes required rather than optional |
|
|
54
|
-
|
|
55
|
-
## Sub-Areas (8)
|
|
56
|
-
|
|
57
|
-
### 1. Model Integration
|
|
58
|
-
|
|
59
|
-
**Membership Criterion**: 모델 자체의 선택·연결·교체·라우팅에 관한 설계 결정. 모델에 전달할 입력 설계(→2)나 모델 파라미터 변형(→8)은 포함하지 않는다.
|
|
60
|
-
|
|
61
|
-
- **Includes**: Model selection criteria, API integration patterns, model routing and fallback strategies, model-specific behavior management, inference optimization (model-level: quantization, batching, caching at model layer), model version pinning, multi-model orchestration (router patterns), model capability assessment
|
|
62
|
-
- **Excludes**: Input construction for the model (→2), customizing model weights (→8), system-level cost tracking (→7)
|
|
63
|
-
|
|
64
|
-
### 2. Prompt & Context Design
|
|
65
|
-
|
|
66
|
-
**Membership Criterion**: 모델 입력(프롬프트, 컨텍스트, 출력 형식 제약)의 구성·형식·제약에 관한 설계 결정. 입력에 포함할 정보를 확보하는 것(→3)이나 출력의 안전성 제약(→6)은 포함하지 않는다.
|
|
67
|
-
|
|
68
|
-
- **Includes**: System prompt design, few-shot example design, chain-of-thought patterns, instruction hierarchy, structured output design (JSON mode, tool call schemas), token budget management, context window utilization strategy, context rot mitigation, prompt templates and versioning
|
|
69
|
-
- **Excludes**: Retrieving information to include in the prompt (→3), safety-related output constraints (→6), autonomous action decision-making (→4)
|
|
70
|
-
|
|
71
|
-
### 3. Retrieval & Knowledge Systems
|
|
72
|
-
|
|
73
|
-
**Membership Criterion**: 모델이 참조할 외부 정보의 저장·검색·구조화에 관한 설계 결정. 검색된 정보의 프롬프트 조립(→2)이나 에이전트 실행 상태 관리(→4)는 포함하지 않는다.
|
|
74
|
-
|
|
75
|
-
- **Includes**: RAG pipeline design (chunking strategies, embedding model selection, retrieval algorithms, reranking), vector database selection and management, knowledge base design and maintenance, **LLM-favored structure** (File=Concept paradigm, YAML frontmatter metadata, navigation paths, system maps, llms.txt, CLAUDE.md patterns), persistent memory systems (long-term knowledge storage), knowledge graph construction for retrieval, hybrid search (keyword + semantic)
|
|
76
|
-
- **Excludes**: Composing retrieved information into prompts (→2), runtime agent state management (→4), model training data preparation (→8)
|
|
77
|
-
|
|
78
|
-
**Handoff point with Area 2**: Retrieval results returned = Area 3 boundary. Assembling results into prompt = Area 2 boundary.
|
|
79
|
-
|
|
80
|
-
### 4. Agentic Systems
|
|
81
|
-
|
|
82
|
-
**Membership Criterion**: 모델을 자율적 행위자로 동작시키는 아키텍처·워크플로우·도구 연결에 관한 설계 결정. 에이전트가 참조하는 지식 저장소(→3)나 에이전트 출력의 안전성(→6)은 포함하지 않는다.
|
|
83
|
-
|
|
84
|
-
- **Includes**: Agent architecture patterns (ReAct, tool use, planning, reflection), workflow patterns (prompt chaining, routing, parallelization, orchestrator-workers, evaluator-optimizer), multi-agent coordination and communication, MCP (Model Context Protocol) server/client design, tool design (ACI — Agent-Computer Interface), agent state management (in-session state, scratchpads), long-running agent continuity (multi-session persistence, structured progress tracking), agent memory (working memory within execution context), browser/computer use agent patterns
|
|
85
|
-
- **Excludes**: Tool internal implementation (→each tool's own domain), persistent knowledge stores the agent reads from (→3), safety constraints on agent actions (→6), agent output quality evaluation (→5)
|
|
86
|
-
|
|
87
|
-
### 5. Evaluation & Testing
|
|
88
|
-
|
|
89
|
-
**Membership Criterion**: 시스템 출력의 품질을 측정·검증하는 방법·기준에 관한 설계 결정. 품질 결함의 차단·완화 메커니즘(→6)이나 프로덕션 환경의 실시간 모니터링(→7)은 포함하지 않는다.
|
|
90
|
-
|
|
91
|
-
- **Includes**: Output quality evaluation metrics, hallucination detection methodology, golden set testing, AI-as-judge evaluation, comparative evaluation, A/B testing for system output quality, regression testing, benchmarking, human evaluation protocols (HITL for quality measurement), evaluation pipeline design, model selection evaluation (comparative performance)
|
|
92
|
-
- **Excludes**: Blocking or mitigating quality defects (→6), real-time production monitoring (→7), model training experiment tracking (→8)
|
|
93
|
-
|
|
94
|
-
### 6. Safety & Alignment
|
|
95
|
-
|
|
96
|
-
**Membership Criterion**: 시스템 출력의 유해성 차단과 모델 행동의 의도 부합 보장에 관한 설계 결정. 유해성 탐지 방법론 자체(→5)나 모델 파라미터 변경을 통한 행동 교정(→8)은 포함하지 않는다.
|
|
97
|
-
|
|
98
|
-
- **Includes**: Prompt injection defense, input/output filtering and guardrails, content policy enforcement, red teaming methodology, alignment verification (does the model behave as intended?), jailbreak prevention, PII detection and redaction, responsible AI practices, regulatory compliance design (EU AI Act, etc.)
|
|
99
|
-
- **Excludes**: Measuring output quality (→5), modifying model behavior through parameter changes (→8), cost/latency management (→7)
|
|
100
|
-
|
|
101
|
-
### 7. Production Operations
|
|
102
|
-
|
|
103
|
-
**Membership Criterion**: LLM 시스템의 배포·실행·관측·비용 관리에 관한 운영 결정. 품질 측정 방법론 설계(→5)나 모델 자체의 선택·교체 결정(→1)은 포함하지 않는다.
|
|
104
|
-
|
|
105
|
-
- **Includes**: Logging and tracing for LLM calls, monitoring (latency, error rates, throughput), cost tracking and optimization (per-token costs, budget management), quality drift detection (output degradation over time), feedback loops (user feedback collection → system improvement), incident response for LLM-specific failures, deployment strategies (blue-green, canary for model updates), rate limiting and load balancing, system-level caching (response caching, KV cache management)
|
|
106
|
-
- **Excludes**: Pre-deployment quality evaluation methodology (→5), model selection and replacement decisions (→1), safety policy design (→6)
|
|
107
|
-
|
|
108
|
-
### 8. Data & Model Adaptation
|
|
109
|
-
|
|
110
|
-
**Membership Criterion**: 학습 데이터 준비와 모델 파라미터 변형(fine-tuning, RLHF, LoRA 등)에 관한 설계 결정. 모델을 변형하지 않는 상태에서의 활용(→1,2)이나 검색 대상 데이터의 구조화(→3)는 포함하지 않는다.
|
|
111
|
-
|
|
112
|
-
- **Includes**: Fine-tuning strategies (when/how, full vs parameter-efficient), dataset engineering (curation, augmentation, synthesis, cleaning), RLHF/DPO/RLAIF alignment training, parameter-efficient techniques (LoRA, QLoRA, adapters), model training experiment tracking, training infrastructure decisions, data quality assessment, distillation and model compression
|
|
113
|
-
- **Excludes**: Using existing models via API without modification (→1), behavior adjustment through prompting only (→2), structuring data for retrieval (→3)
|
|
114
|
-
|
|
115
|
-
## Cross-Cutting Concern: Development Lifecycle
|
|
116
|
-
|
|
117
|
-
The following concerns span multiple sub-areas and are not attributed to any single area:
|
|
118
|
-
|
|
119
|
-
- **CI/CD for LLM systems**: Automated testing, deployment pipelines, rollback strategies
|
|
120
|
-
- **Version management**: Prompt versions, tool schema versions, agent configuration versions, model version tracking
|
|
121
|
-
- **Development methodology**: Spec-first development, LLM-assisted development workflows
|
|
122
|
-
|
|
123
|
-
Cross-cutting concerns do not have their own Membership Criterion. They are addressed within each area's specific context.
|
|
124
|
-
|
|
125
|
-
### Experiment Tracking Attribution Rule
|
|
126
|
-
|
|
127
|
-
"Experiment tracking" is not a cross-cutting concern. Attribution is determined by the experiment's subject:
|
|
128
|
-
|
|
129
|
-
| Experiment Subject | Attributed Area |
|
|
130
|
-
|---|---|
|
|
131
|
-
| Model parameters or datasets | Area 8 (Data & Model Adaptation) |
|
|
132
|
-
| System output quality (A/B testing) | Area 5 (Evaluation & Testing) |
|
|
133
|
-
| Deployment/infrastructure configuration | Area 7 (Production Operations) |
|
|
134
|
-
|
|
135
|
-
### Cross-Cutting Concern Addition Criteria
|
|
136
|
-
|
|
137
|
-
A concern qualifies as cross-cutting only if:
|
|
138
|
-
1. It requires involvement from 3 or more sub-areas, AND
|
|
139
|
-
2. Attributing it to a single area would compromise that area's cohesion
|
|
140
|
-
|
|
141
|
-
## Membership Criterion Hierarchy
|
|
142
|
-
|
|
143
|
-
When determining whether a topic belongs to an area:
|
|
144
|
-
|
|
145
|
-
1. **Exclude list** takes precedence (explicit exclusions override all other rules)
|
|
146
|
-
2. **Membership Criterion** determines scope (the topic must satisfy the criterion)
|
|
147
|
-
3. **Include list** provides confirmed examples (unlisted topics may still belong if they satisfy the criterion)
|
|
148
|
-
|
|
149
|
-
## Required Concept Categories
|
|
150
|
-
|
|
151
|
-
Concept categories that must be addressed in any LLM-powered system:
|
|
152
|
-
|
|
153
|
-
| Category | Description | Risk if Missing | Primary Area |
|
|
154
|
-
|---|---|---|---|
|
|
155
|
-
| Model interface | How the system connects to and communicates with LLMs | Cannot send/receive from the model | 1 |
|
|
156
|
-
| Input design | Structure and constraints of what is sent to the model | Inconsistent/inefficient model usage | 2 |
|
|
157
|
-
| Knowledge source | Where the system obtains information for the model | Hallucination, outdated information | 3 |
|
|
158
|
-
| Autonomy design | How and whether the model acts independently | Uncontrolled agent behavior, or inability to automate | 4 |
|
|
159
|
-
| Quality measurement | How system output quality is assessed | No feedback on whether the system works | 5 |
|
|
160
|
-
| Harm prevention | How harmful outputs are prevented | Safety incidents, compliance violations | 6 |
|
|
161
|
-
| Operational visibility | How the system's runtime behavior is observed | Silent failures, cost overruns | 7 |
|
|
162
|
-
| Model customization | Whether and how the model is adapted to the use case | Sub-optimal performance, unnecessary API costs | 8 |
|
|
163
|
-
|
|
164
|
-
## Reference Standards/Frameworks
|
|
165
|
-
|
|
166
|
-
| Standard/Framework | Application Area | Usage |
|
|
167
|
-
|---|---|---|
|
|
168
|
-
| Anthropic: Building Effective Agents | 4 (Agentic Systems) | Agent architecture patterns, workflow patterns, ACI design |
|
|
169
|
-
| Anthropic: Context Engineering for AI Agents | 2, 3 | Token optimization, context rot, progressive disclosure |
|
|
170
|
-
| Anthropic: Effective Harnesses | 4 | Long-running agent continuity, multi-session persistence |
|
|
171
|
-
| OpenAI: Practical Guide to Building Agents | 4 | Single/multi-agent patterns, tool design, guardrails |
|
|
172
|
-
| OpenAI: Production Best Practices | 1, 5, 7 | Model pinning, evaluation, caching, load balancing |
|
|
173
|
-
| MCP (Model Context Protocol) | 4 | Standardized tool/resource interface for agents |
|
|
174
|
-
| AGENTS.md (Linux Foundation) | 3 | Coding conventions for AI agents, directory-scoped instructions |
|
|
175
|
-
| llms.txt specification | 3 | LLM-friendly system map design |
|
|
176
|
-
| Chip Huyen: AI Engineering (O'Reilly 2025) | All | Comprehensive reference across evaluation, prompting, RAG, fine-tuning |
|
|
177
|
-
| LangChain/LangGraph | 4 | Chain/graph-based orchestration patterns |
|
|
178
|
-
| LlamaIndex | 3 | Data ingestion, indexing, retrieval pipeline patterns |
|
|
179
|
-
| Diataxis documentation framework | 3 | Document type classification for knowledge structuring |
|
|
180
|
-
| LLM instruction file conventions (CLAUDE.md, .cursorrules, etc.) | 3 | Vendor-specific LLM instruction structure |
|
|
181
|
-
|
|
182
|
-
## Bias Detection Criteria
|
|
183
|
-
|
|
184
|
-
- If 4 or more of the 8 sub-areas are not represented at all → **insufficient coverage**
|
|
185
|
-
- If only API consumption patterns exist without model adaptation or fine-tuning considerations → **customization perspective absent**
|
|
186
|
-
- If only development-time concerns exist without production operations → **operational perspective absent**
|
|
187
|
-
- If only single-model/single-agent patterns exist without multi-model routing or multi-agent coordination → **scalability bias**
|
|
188
|
-
- If only prompt-based approaches exist without retrieval or fine-tuning alternatives → **technique bias (prompt-only)**
|
|
189
|
-
- If only model capabilities are considered without safety/alignment constraints → **safety perspective absent**
|
|
190
|
-
- If only automated evaluation exists without human evaluation or feedback loops → **human-in-the-loop absent**
|
|
191
|
-
- If LLM-favored knowledge structure design is absent from Area 3 → **knowledge structure perspective absent**
|
|
192
|
-
|
|
193
|
-
## Related Documents
|
|
194
|
-
- concepts.md — Term definitions within this scope
|
|
195
|
-
- structure_spec.md — Specific rules for system structure
|
|
196
|
-
- competency_qs.md — Questions this scope must be able to answer
|
|
197
|
-
- prompt_interface.md — Prompt/interface design criteria (retained from previous version)
|