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
|
@@ -4,16 +4,30 @@ import { parse as parseYaml, stringify as stringifyYaml } from "yaml";
|
|
|
4
4
|
const RECORD_ARTIFACT_KEYS = [
|
|
5
5
|
"target_material_profile",
|
|
6
6
|
"source_inventory",
|
|
7
|
+
"initial_source_frontier",
|
|
7
8
|
"source_observations",
|
|
8
9
|
"source_observation_directive",
|
|
9
10
|
"source_observation_directive_validation",
|
|
11
|
+
"lens_judgment_index",
|
|
12
|
+
"exploration_synthesis",
|
|
13
|
+
"source_frontier",
|
|
14
|
+
"source_frontier_validation",
|
|
10
15
|
"domain_context_selection",
|
|
16
|
+
"domain_context_selection_validation",
|
|
11
17
|
"seed_candidate",
|
|
12
18
|
"seed_candidate_validation",
|
|
19
|
+
"claim_realization_map",
|
|
20
|
+
"claim_realization_map_validation",
|
|
13
21
|
"seed_confirmation",
|
|
22
|
+
"seed_confirmation_validation",
|
|
14
23
|
"competency_questions",
|
|
24
|
+
"competency_questions_validation",
|
|
25
|
+
"competency_question_assessment",
|
|
26
|
+
"competency_question_assessment_validation",
|
|
15
27
|
"failure_classification",
|
|
28
|
+
"failure_classification_validation",
|
|
16
29
|
"revision_proposal",
|
|
30
|
+
"revision_proposal_validation",
|
|
17
31
|
"reconstruct_metrics",
|
|
18
32
|
"stop_decision",
|
|
19
33
|
"final_output",
|
|
@@ -22,6 +36,7 @@ const RECORD_ARTIFACT_KEYS = [
|
|
|
22
36
|
const PREPARATION_REQUIRED_KEYS = [
|
|
23
37
|
"target_material_profile",
|
|
24
38
|
"source_inventory",
|
|
39
|
+
"initial_source_frontier",
|
|
25
40
|
"source_observations",
|
|
26
41
|
];
|
|
27
42
|
function isPreparationRequiredKey(key) {
|
|
@@ -66,7 +81,13 @@ function deriveRecordStage(args) {
|
|
|
66
81
|
if (args.finalOutputPresent &&
|
|
67
82
|
args.stopDecisionPresent &&
|
|
68
83
|
args.metricsPresent &&
|
|
69
|
-
args.seedCandidateStatus === "valid"
|
|
84
|
+
args.seedCandidateStatus === "valid" &&
|
|
85
|
+
args.claimRealizationStatus === "valid" &&
|
|
86
|
+
args.seedConfirmationValidationStatus === "valid" &&
|
|
87
|
+
args.competencyQuestionsValidationStatus === "valid" &&
|
|
88
|
+
args.competencyQuestionAssessmentValidationStatus === "valid" &&
|
|
89
|
+
args.failureClassificationValidationStatus === "valid" &&
|
|
90
|
+
args.revisionProposalValidationStatus === "valid") {
|
|
70
91
|
return "completed";
|
|
71
92
|
}
|
|
72
93
|
if (args.stopDecisionPresent) {
|
|
@@ -75,12 +96,33 @@ function deriveRecordStage(args) {
|
|
|
75
96
|
if (args.metricsPresent) {
|
|
76
97
|
return "metrics_computed";
|
|
77
98
|
}
|
|
99
|
+
if (args.revisionProposalPresent &&
|
|
100
|
+
args.revisionProposalValidationStatus === "valid") {
|
|
101
|
+
return "revision_proposal_validated";
|
|
102
|
+
}
|
|
103
|
+
if (args.failureClassificationPresent &&
|
|
104
|
+
args.failureClassificationValidationStatus === "valid") {
|
|
105
|
+
return "failure_classification_validated";
|
|
106
|
+
}
|
|
107
|
+
if (args.competencyQuestionAssessmentPresent &&
|
|
108
|
+
args.competencyQuestionAssessmentValidationStatus === "valid") {
|
|
109
|
+
return "competency_question_assessment_validated";
|
|
110
|
+
}
|
|
111
|
+
if (args.competencyQuestionsValidationStatus === "valid") {
|
|
112
|
+
return "competency_questions_validated";
|
|
113
|
+
}
|
|
78
114
|
if (args.competencyQuestionsPresent) {
|
|
79
115
|
return "competency_questions_written";
|
|
80
116
|
}
|
|
117
|
+
if (args.seedConfirmationValidationStatus === "valid") {
|
|
118
|
+
return "seed_confirmation_validated";
|
|
119
|
+
}
|
|
81
120
|
if (args.seedConfirmationPresent) {
|
|
82
121
|
return "seed_confirmed";
|
|
83
122
|
}
|
|
123
|
+
if (args.claimRealizationStatus === "valid") {
|
|
124
|
+
return "claim_realization_validated";
|
|
125
|
+
}
|
|
84
126
|
if (args.seedCandidateStatus === "valid") {
|
|
85
127
|
return "seed_candidate_validated";
|
|
86
128
|
}
|
|
@@ -116,17 +158,41 @@ export async function assembleReconstructRecord(params) {
|
|
|
116
158
|
const targetMaterialProfile = await readYamlIfPresent(artifactRefs.target_material_profile);
|
|
117
159
|
const sourceObservationDirectiveValidation = await readYamlIfPresent(artifactRefs.source_observation_directive_validation);
|
|
118
160
|
const seedCandidateValidation = await readYamlIfPresent(artifactRefs.seed_candidate_validation);
|
|
161
|
+
const claimRealizationMapValidation = await readYamlIfPresent(artifactRefs.claim_realization_map_validation);
|
|
119
162
|
const seedConfirmation = await readYamlIfPresent(artifactRefs.seed_confirmation);
|
|
163
|
+
const seedConfirmationValidation = await readYamlIfPresent(artifactRefs.seed_confirmation_validation);
|
|
120
164
|
const competencyQuestions = await readYamlIfPresent(artifactRefs.competency_questions);
|
|
165
|
+
const competencyQuestionsValidation = await readYamlIfPresent(artifactRefs.competency_questions_validation);
|
|
166
|
+
const competencyQuestionAssessment = await readYamlIfPresent(artifactRefs.competency_question_assessment);
|
|
167
|
+
const competencyQuestionAssessmentValidation = await readYamlIfPresent(artifactRefs.competency_question_assessment_validation);
|
|
168
|
+
const failureClassification = await readYamlIfPresent(artifactRefs.failure_classification);
|
|
169
|
+
const failureClassificationValidation = await readYamlIfPresent(artifactRefs.failure_classification_validation);
|
|
170
|
+
const revisionProposal = await readYamlIfPresent(artifactRefs.revision_proposal);
|
|
171
|
+
const revisionProposalValidation = await readYamlIfPresent(artifactRefs.revision_proposal_validation);
|
|
121
172
|
const reconstructMetrics = await readYamlIfPresent(artifactRefs.reconstruct_metrics);
|
|
122
173
|
const sourceObservationDirectiveStatus = projectValidationStatus(sourceObservationDirectiveValidation);
|
|
123
174
|
const seedCandidateStatus = projectValidationStatus(seedCandidateValidation);
|
|
175
|
+
const claimRealizationStatus = projectValidationStatus(claimRealizationMapValidation);
|
|
176
|
+
const seedConfirmationValidationStatus = projectValidationStatus(seedConfirmationValidation);
|
|
177
|
+
const competencyQuestionsValidationStatus = projectValidationStatus(competencyQuestionsValidation);
|
|
178
|
+
const competencyQuestionAssessmentValidationStatus = projectValidationStatus(competencyQuestionAssessmentValidation);
|
|
179
|
+
const failureClassificationValidationStatus = projectValidationStatus(failureClassificationValidation);
|
|
180
|
+
const revisionProposalValidationStatus = projectValidationStatus(revisionProposalValidation);
|
|
124
181
|
const recordStage = deriveRecordStage({
|
|
125
182
|
missingArtifacts,
|
|
126
183
|
sourceObservationDirectiveStatus,
|
|
127
184
|
seedCandidateStatus,
|
|
185
|
+
claimRealizationStatus,
|
|
186
|
+
seedConfirmationValidationStatus,
|
|
187
|
+
competencyQuestionsValidationStatus,
|
|
188
|
+
competencyQuestionAssessmentValidationStatus,
|
|
189
|
+
failureClassificationValidationStatus,
|
|
190
|
+
revisionProposalValidationStatus,
|
|
128
191
|
seedConfirmationPresent: await exists(artifactRefs.seed_confirmation),
|
|
129
192
|
competencyQuestionsPresent: await exists(artifactRefs.competency_questions),
|
|
193
|
+
competencyQuestionAssessmentPresent: await exists(artifactRefs.competency_question_assessment),
|
|
194
|
+
failureClassificationPresent: await exists(artifactRefs.failure_classification),
|
|
195
|
+
revisionProposalPresent: await exists(artifactRefs.revision_proposal),
|
|
130
196
|
metricsPresent: await exists(artifactRefs.reconstruct_metrics),
|
|
131
197
|
stopDecisionPresent: await exists(artifactRefs.stop_decision),
|
|
132
198
|
finalOutputPresent: await exists(artifactRefs.final_output),
|
|
@@ -149,11 +215,35 @@ export async function assembleReconstructRecord(params) {
|
|
|
149
215
|
semantic_claim_count: seedCandidateValidation?.semantic_claim_count ?? null,
|
|
150
216
|
evidence_ref_count: seedCandidateValidation?.evidence_ref_count ?? null,
|
|
151
217
|
confirmed_claim_count: reconstructMetrics?.confirmed_claim_count ??
|
|
218
|
+
seedConfirmationValidation?.accepted_claim_ids.length ??
|
|
152
219
|
seedConfirmation?.confirmed_claim_ids.length ??
|
|
153
220
|
null,
|
|
221
|
+
rejected_claim_count: reconstructMetrics?.rejected_claim_count ??
|
|
222
|
+
seedConfirmationValidation?.rejected_claim_ids.length ??
|
|
223
|
+
seedConfirmation?.rejected_claim_ids.length ??
|
|
224
|
+
null,
|
|
225
|
+
partial_claim_count: reconstructMetrics?.partial_claim_count ??
|
|
226
|
+
seedConfirmationValidation?.partial_claim_ids.length ??
|
|
227
|
+
seedConfirmation?.partial_claim_ids?.length ??
|
|
228
|
+
null,
|
|
229
|
+
deferred_claim_count: reconstructMetrics?.deferred_claim_count ??
|
|
230
|
+
seedConfirmationValidation?.deferred_claim_ids.length ??
|
|
231
|
+
seedConfirmation?.deferred_claim_ids?.length ??
|
|
232
|
+
null,
|
|
154
233
|
competency_question_count: reconstructMetrics?.competency_question_count ??
|
|
155
234
|
competencyQuestions?.questions.length ??
|
|
156
235
|
null,
|
|
236
|
+
competency_question_assessment_count: reconstructMetrics?.competency_question_assessment_count ??
|
|
237
|
+
competencyQuestionAssessment?.assessments.length ??
|
|
238
|
+
null,
|
|
239
|
+
failure_count: failureClassificationValidation?.failure_count ??
|
|
240
|
+
failureClassification?.failures.length ??
|
|
241
|
+
null,
|
|
242
|
+
revision_proposal_count: revisionProposalValidation?.proposal_count ??
|
|
243
|
+
revisionProposal?.proposals.length ??
|
|
244
|
+
null,
|
|
245
|
+
unresolved_count: reconstructMetrics?.unresolved_question_count ?? null,
|
|
246
|
+
deferred_count: reconstructMetrics?.deferred_count ?? null,
|
|
157
247
|
pass_rate: reconstructMetrics?.pass_rate ?? null,
|
|
158
248
|
},
|
|
159
249
|
missing_artifacts: missingArtifacts,
|
|
@@ -162,9 +252,18 @@ export async function assembleReconstructRecord(params) {
|
|
|
162
252
|
runtime_owned_gates: [
|
|
163
253
|
"target_material_profiling",
|
|
164
254
|
"source_inventory",
|
|
255
|
+
"initial_source_frontier",
|
|
165
256
|
"source_observation",
|
|
257
|
+
"source_frontier_validation",
|
|
166
258
|
"source_observation_directive_validation",
|
|
167
259
|
"seed_candidate_validation",
|
|
260
|
+
"claim_realization_validation",
|
|
261
|
+
"seed_confirmation_validation",
|
|
262
|
+
"competency_questions_validation",
|
|
263
|
+
"competency_question_assessment_validation",
|
|
264
|
+
"failure_classification_validation",
|
|
265
|
+
"revision_proposal_validation",
|
|
266
|
+
"final_output_provenance_validation",
|
|
168
267
|
"reconstruct_metrics",
|
|
169
268
|
"record_assembly",
|
|
170
269
|
"run_manifest_assembly",
|
|
@@ -174,9 +273,14 @@ export async function assembleReconstructRecord(params) {
|
|
|
174
273
|
],
|
|
175
274
|
llm_owned_directives: [
|
|
176
275
|
"source_observation_directive",
|
|
276
|
+
"lens_judgment",
|
|
277
|
+
"exploration_synthesis",
|
|
278
|
+
"source_frontier",
|
|
177
279
|
"domain_context_selection",
|
|
178
280
|
"seed_candidate",
|
|
281
|
+
"claim_realization_map",
|
|
179
282
|
"competency_questions",
|
|
283
|
+
"competency_question_assessment",
|
|
180
284
|
"failure_classification",
|
|
181
285
|
"revision_proposal",
|
|
182
286
|
"stop_decision",
|