onto-mcp 0.3.0
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-lens-registry.yaml +134 -0
- package/.onto/authority/core-lexicon.yaml +1562 -0
- package/.onto/authority/diagnostic-codes.yaml +94 -0
- package/.onto/domains/accounting/competency_qs.md +384 -0
- package/.onto/domains/accounting/concepts.md +186 -0
- package/.onto/domains/accounting/conciseness_rules.md +160 -0
- package/.onto/domains/accounting/dependency_rules.md +239 -0
- package/.onto/domains/accounting/domain_scope.md +213 -0
- package/.onto/domains/accounting/extension_cases.md +416 -0
- package/.onto/domains/accounting/logic_rules.md +226 -0
- package/.onto/domains/accounting/structure_spec.md +298 -0
- package/.onto/domains/accounting-kr/competency_qs.md +562 -0
- package/.onto/domains/accounting-kr/concepts.md +187 -0
- package/.onto/domains/accounting-kr/conciseness_rules.md +125 -0
- package/.onto/domains/accounting-kr/dependency_rules.md +93 -0
- package/.onto/domains/accounting-kr/domain_scope.md +140 -0
- package/.onto/domains/accounting-kr/extension_cases.md +343 -0
- package/.onto/domains/accounting-kr/logic_rules.md +160 -0
- package/.onto/domains/accounting-kr/structure_spec.md +85 -0
- package/.onto/domains/business/competency_qs.md +263 -0
- package/.onto/domains/business/concepts.md +200 -0
- package/.onto/domains/business/conciseness_rules.md +135 -0
- package/.onto/domains/business/dependency_rules.md +113 -0
- package/.onto/domains/business/domain_scope.md +240 -0
- package/.onto/domains/business/extension_cases.md +249 -0
- package/.onto/domains/business/logic_rules.md +134 -0
- package/.onto/domains/business/structure_spec.md +114 -0
- package/.onto/domains/finance/competency_qs.md +362 -0
- package/.onto/domains/finance/concepts.md +194 -0
- package/.onto/domains/finance/conciseness_rules.md +155 -0
- package/.onto/domains/finance/dependency_rules.md +171 -0
- package/.onto/domains/finance/domain_scope.md +215 -0
- package/.onto/domains/finance/extension_cases.md +350 -0
- package/.onto/domains/finance/logic_rules.md +191 -0
- package/.onto/domains/finance/structure_spec.md +182 -0
- package/.onto/domains/llm-native-development/competency_qs.md +430 -0
- package/.onto/domains/llm-native-development/concepts.md +242 -0
- package/.onto/domains/llm-native-development/conciseness_rules.md +163 -0
- package/.onto/domains/llm-native-development/dependency_rules.md +216 -0
- package/.onto/domains/llm-native-development/domain_scope.md +197 -0
- package/.onto/domains/llm-native-development/extension_cases.md +474 -0
- package/.onto/domains/llm-native-development/logic_rules.md +123 -0
- package/.onto/domains/llm-native-development/prompt_interface.md +49 -0
- package/.onto/domains/llm-native-development/structure_spec.md +245 -0
- package/.onto/domains/market-intelligence/competency_qs.md +274 -0
- package/.onto/domains/market-intelligence/concepts.md +233 -0
- package/.onto/domains/market-intelligence/conciseness_rules.md +165 -0
- package/.onto/domains/market-intelligence/dependency_rules.md +197 -0
- package/.onto/domains/market-intelligence/domain_scope.md +231 -0
- package/.onto/domains/market-intelligence/extension_cases.md +425 -0
- package/.onto/domains/market-intelligence/logic_rules.md +247 -0
- package/.onto/domains/market-intelligence/structure_spec.md +209 -0
- package/.onto/domains/ontology/competency_qs.md +394 -0
- package/.onto/domains/ontology/concepts.md +172 -0
- package/.onto/domains/ontology/conciseness_rules.md +134 -0
- package/.onto/domains/ontology/dependency_rules.md +125 -0
- package/.onto/domains/ontology/domain_scope.md +114 -0
- package/.onto/domains/ontology/extension_cases.md +501 -0
- package/.onto/domains/ontology/logic_rules.md +114 -0
- package/.onto/domains/ontology/problem_framing_profile.md +67 -0
- package/.onto/domains/ontology/structure_spec.md +115 -0
- package/.onto/domains/palantir-foundry/RESEARCH_NOTES.md +911 -0
- package/.onto/domains/palantir-foundry/competency_qs.md +191 -0
- package/.onto/domains/palantir-foundry/competitive_comparison.md +329 -0
- package/.onto/domains/palantir-foundry/concepts.md +197 -0
- package/.onto/domains/palantir-foundry/conciseness_rules.md +245 -0
- package/.onto/domains/palantir-foundry/dependency_rules.md +135 -0
- package/.onto/domains/palantir-foundry/domain_scope.md +395 -0
- package/.onto/domains/palantir-foundry/extension_cases.md +210 -0
- package/.onto/domains/palantir-foundry/logic_rules.md +172 -0
- package/.onto/domains/palantir-foundry/structure_spec.md +291 -0
- package/.onto/domains/software-engineering/competency_qs.md +538 -0
- package/.onto/domains/software-engineering/concepts.md +238 -0
- package/.onto/domains/software-engineering/conciseness_rules.md +167 -0
- package/.onto/domains/software-engineering/dependency_rules.md +216 -0
- package/.onto/domains/software-engineering/domain_scope.md +183 -0
- package/.onto/domains/software-engineering/extension_cases.md +551 -0
- package/.onto/domains/software-engineering/logic_rules.md +240 -0
- package/.onto/domains/software-engineering/problem_framing_profile.md +68 -0
- package/.onto/domains/software-engineering/structure_spec.md +185 -0
- package/.onto/domains/ui-design/competency_qs.md +567 -0
- package/.onto/domains/ui-design/concepts.md +194 -0
- package/.onto/domains/ui-design/conciseness_rules.md +190 -0
- package/.onto/domains/ui-design/dependency_rules.md +323 -0
- package/.onto/domains/ui-design/domain_scope.md +340 -0
- package/.onto/domains/ui-design/extension_cases.md +563 -0
- package/.onto/domains/ui-design/logic_rules.md +349 -0
- package/.onto/domains/ui-design/structure_spec.md +252 -0
- package/.onto/domains/visual-design/competency_qs.md +472 -0
- package/.onto/domains/visual-design/concepts.md +147 -0
- package/.onto/domains/visual-design/conciseness_rules.md +186 -0
- package/.onto/domains/visual-design/dependency_rules.md +282 -0
- package/.onto/domains/visual-design/domain_scope.md +290 -0
- package/.onto/domains/visual-design/extension_cases.md +480 -0
- package/.onto/domains/visual-design/logic_rules.md +232 -0
- package/.onto/domains/visual-design/structure_spec.md +213 -0
- package/.onto/principles/llm-native-development-guideline.md +401 -0
- package/.onto/principles/llm-runtime-interface-principles.md +665 -0
- package/.onto/principles/non-specialist-communication-guideline.md +74 -0
- package/.onto/principles/ontology-as-code-guideline.md +243 -0
- package/.onto/principles/ontology-as-code-naming-charter.md +130 -0
- package/.onto/principles/product-locality-principle.md +129 -0
- package/.onto/principles/productization-charter.md +569 -0
- package/.onto/processes/evolve/material-kind-adapter-contract.md +113 -0
- package/.onto/processes/reconstruct/reconstruct-boundary-contract.md +366 -0
- package/.onto/processes/reconstruct/source-profile-contract.md +107 -0
- package/.onto/processes/reconstruct/source-profiles/code.md +72 -0
- package/.onto/processes/reconstruct/source-profiles/database.md +74 -0
- package/.onto/processes/reconstruct/source-profiles/document.md +71 -0
- package/.onto/processes/reconstruct/source-profiles/spreadsheet.md +79 -0
- package/.onto/processes/review/binding-contract.md +270 -0
- package/.onto/processes/review/execution-preparation-artifacts.md +281 -0
- package/.onto/processes/review/interpretation-contract.md +245 -0
- package/.onto/processes/review/issue-stance-deliberation-contract.md +761 -0
- package/.onto/processes/review/lens-prompt-contract.md +402 -0
- package/.onto/processes/review/lens-registry.md +127 -0
- package/.onto/processes/review/pre-dispatch-contracts.md +428 -0
- package/.onto/processes/review/productized-live-path.md +398 -0
- package/.onto/processes/review/prompt-execution-runner-contract.md +187 -0
- package/.onto/processes/review/record-contract.md +427 -0
- package/.onto/processes/review/record-field-mapping.md +337 -0
- package/.onto/processes/review/review-context-manifest-contract.md +356 -0
- package/.onto/processes/review/review-execution-ux-contract.md +809 -0
- package/.onto/processes/review/review-target-profile-contract.md +259 -0
- package/.onto/processes/review/shared-phenomenon-contract.md +129 -0
- package/.onto/processes/review/synthesize-prompt-contract.md +343 -0
- package/.onto/processes/shared/target-material-kind-contract.md +198 -0
- package/.onto/roles/axiology.md +81 -0
- package/.onto/roles/conciseness.md +36 -0
- package/.onto/roles/coverage.md +34 -0
- package/.onto/roles/dependency.md +37 -0
- package/.onto/roles/evolution.md +35 -0
- package/.onto/roles/logic.md +104 -0
- package/.onto/roles/pragmatics.md +32 -0
- package/.onto/roles/semantics.md +36 -0
- package/.onto/roles/structure.md +33 -0
- package/.onto/roles/synthesize.md +92 -0
- package/AGENTS.md +240 -0
- package/CLAUDE.md +39 -0
- package/README.md +287 -0
- package/bin/onto +92 -0
- package/dist/cli.js +101 -0
- package/dist/core-api/reconstruct-api.js +222 -0
- package/dist/core-api/review-api.js +1271 -0
- package/dist/core-runtime/cli/assemble-review-record.js +431 -0
- package/dist/core-runtime/cli/bootstrap-review-binding.js +186 -0
- package/dist/core-runtime/cli/codex-nested-dispatch.js +226 -0
- package/dist/core-runtime/cli/codex-nested-dispatch.test.js +390 -0
- package/dist/core-runtime/cli/codex-nested-teamlead-executor.js +464 -0
- package/dist/core-runtime/cli/codex-nested-teamlead-executor.test.js +335 -0
- package/dist/core-runtime/cli/codex-review-unit-executor.js +228 -0
- package/dist/core-runtime/cli/complete-review-session.js +64 -0
- package/dist/core-runtime/cli/complexity-assessment.js +153 -0
- package/dist/core-runtime/cli/coordinator-helpers.js +583 -0
- package/dist/core-runtime/cli/coordinator-state-machine-deliberation.test.js +167 -0
- package/dist/core-runtime/cli/coordinator-state-machine.js +794 -0
- package/dist/core-runtime/cli/e2e-codex-multi-agent-fixes.test.js +615 -0
- package/dist/core-runtime/cli/e2e-start-review-session.test.js +312 -0
- package/dist/core-runtime/cli/health.js +44 -0
- package/dist/core-runtime/cli/inline-http-review-unit-executor.js +656 -0
- package/dist/core-runtime/cli/inline-http-review-unit-executor.test.js +567 -0
- package/dist/core-runtime/cli/materialize-review-execution-preparation.js +104 -0
- package/dist/core-runtime/cli/materialize-review-prompt-packets.js +952 -0
- package/dist/core-runtime/cli/migrate-session-roots.js +118 -0
- package/dist/core-runtime/cli/mock-review-unit-executor.js +285 -0
- package/dist/core-runtime/cli/onto-tools.js +369 -0
- package/dist/core-runtime/cli/prepare-review-session.js +272 -0
- package/dist/core-runtime/cli/render-review-final-output.js +350 -0
- package/dist/core-runtime/cli/repo-layout-migration-replace.smoke.test.js +106 -0
- package/dist/core-runtime/cli/review-invoke-auto-resolution.test.js +268 -0
- package/dist/core-runtime/cli/review-invoke-coordinator-topology.test.js +136 -0
- package/dist/core-runtime/cli/review-invoke-resolver-caching.test.js +201 -0
- package/dist/core-runtime/cli/review-invoke-topology-dispatch.test.js +192 -0
- package/dist/core-runtime/cli/review-invoke.js +2030 -0
- package/dist/core-runtime/cli/run-review-prompt-execution.js +2152 -0
- package/dist/core-runtime/cli/session-root-guard.js +168 -0
- package/dist/core-runtime/cli/spawn-watcher.js +173 -0
- package/dist/core-runtime/cli/spawn-watcher.test.js +457 -0
- package/dist/core-runtime/cli/start-review-session.js +68 -0
- package/dist/core-runtime/cli/strip-wrapping-code-fence.js +56 -0
- package/dist/core-runtime/cli/strip-wrapping-code-fence.test.js +79 -0
- package/dist/core-runtime/cli/teamcreate-lens-deliberation-executor.js +412 -0
- package/dist/core-runtime/cli/teamcreate-lens-deliberation-executor.test.js +351 -0
- package/dist/core-runtime/cli/topology-executor-mapping.js +139 -0
- package/dist/core-runtime/cli/topology-executor-mapping.test.js +173 -0
- package/dist/core-runtime/cli/write-review-interpretation.js +81 -0
- package/dist/core-runtime/config/onto-config-cli.js +278 -0
- package/dist/core-runtime/config/onto-config-key-path.js +288 -0
- package/dist/core-runtime/config/onto-config-key-path.test.js +195 -0
- package/dist/core-runtime/config/onto-config-preview.js +108 -0
- package/dist/core-runtime/config/onto-config-preview.test.js +132 -0
- package/dist/core-runtime/discovery/config-chain.js +118 -0
- package/dist/core-runtime/discovery/config-chain.test.js +103 -0
- package/dist/core-runtime/discovery/config-profile.js +199 -0
- package/dist/core-runtime/discovery/config-profile.test.js +233 -0
- package/dist/core-runtime/discovery/host-detection.js +33 -0
- package/dist/core-runtime/discovery/host-detection.test.js +186 -0
- package/dist/core-runtime/discovery/installation-paths.js +21 -0
- package/dist/core-runtime/discovery/installation-paths.test.js +65 -0
- package/dist/core-runtime/discovery/lens-registry.js +60 -0
- package/dist/core-runtime/discovery/lens-registry.test.js +81 -0
- package/dist/core-runtime/discovery/onto-home.js +71 -0
- package/dist/core-runtime/discovery/path-normalization.js +28 -0
- package/dist/core-runtime/discovery/path-normalization.test.js +22 -0
- package/dist/core-runtime/discovery/plugin-path.js +72 -0
- package/dist/core-runtime/discovery/plugin-path.test.js +95 -0
- package/dist/core-runtime/discovery/project-root.js +47 -0
- package/dist/core-runtime/discovery/settings-chain.js +353 -0
- package/dist/core-runtime/discovery/walk-up.js +17 -0
- package/dist/core-runtime/evolve/adapters/code-product/compile/compile-defense.js +344 -0
- package/dist/core-runtime/evolve/adapters/code-product/compile/compile-defense.test.js +915 -0
- package/dist/core-runtime/evolve/adapters/code-product/compile/compile.js +564 -0
- package/dist/core-runtime/evolve/adapters/code-product/compile/compile.test.js +708 -0
- package/dist/core-runtime/evolve/adapters/code-product/parsers/brief-parser.js +165 -0
- package/dist/core-runtime/evolve/adapters/code-product/parsers/brief-parser.test.js +227 -0
- package/dist/core-runtime/evolve/adapters/code-product/validators/validate.js +59 -0
- package/dist/core-runtime/evolve/adapters/code-product/validators/validate.test.js +205 -0
- package/dist/core-runtime/evolve/adapters/methodology/adapter.js +16 -0
- package/dist/core-runtime/evolve/adapters/methodology/adapter.test.js +9 -0
- package/dist/core-runtime/evolve/adapters/methodology/perspectives/authority-consistency.js +298 -0
- package/dist/core-runtime/evolve/adapters/methodology/perspectives/authority-consistency.test.js +70 -0
- package/dist/core-runtime/evolve/adapters/methodology/scope-types/process.js +46 -0
- package/dist/core-runtime/evolve/adapters/methodology/scope-types/process.test.js +73 -0
- package/dist/core-runtime/evolve/adapters/registry.js +47 -0
- package/dist/core-runtime/evolve/adapters/registry.test.js +67 -0
- package/dist/core-runtime/evolve/cli.js +256 -0
- package/dist/core-runtime/evolve/commands/align.js +194 -0
- package/dist/core-runtime/evolve/commands/align.test.js +82 -0
- package/dist/core-runtime/evolve/commands/apply.js +161 -0
- package/dist/core-runtime/evolve/commands/apply.test.js +138 -0
- package/dist/core-runtime/evolve/commands/close.js +39 -0
- package/dist/core-runtime/evolve/commands/close.test.js +99 -0
- package/dist/core-runtime/evolve/commands/defer.js +40 -0
- package/dist/core-runtime/evolve/commands/defer.test.js +134 -0
- package/dist/core-runtime/evolve/commands/draft.js +323 -0
- package/dist/core-runtime/evolve/commands/draft.test.js +178 -0
- package/dist/core-runtime/evolve/commands/e2e-evolve-full-cycle.test.js +208 -0
- package/dist/core-runtime/evolve/commands/error-messages.js +125 -0
- package/dist/core-runtime/evolve/commands/error-messages.test.js +167 -0
- package/dist/core-runtime/evolve/commands/propose-align.js +222 -0
- package/dist/core-runtime/evolve/commands/propose-align.test.js +136 -0
- package/dist/core-runtime/evolve/commands/reconstruct.js +330 -0
- package/dist/core-runtime/evolve/commands/reconstruct.test.js +278 -0
- package/dist/core-runtime/evolve/commands/shared.js +22 -0
- package/dist/core-runtime/evolve/commands/stale-check.js +103 -0
- package/dist/core-runtime/evolve/commands/stale-check.test.js +84 -0
- package/dist/core-runtime/evolve/commands/start.js +887 -0
- package/dist/core-runtime/evolve/commands/start.test.js +396 -0
- package/dist/core-runtime/evolve/config/project-config.js +99 -0
- package/dist/core-runtime/evolve/config/project-config.test.js +170 -0
- package/dist/core-runtime/evolve/renderers/align-packet.js +280 -0
- package/dist/core-runtime/evolve/renderers/align-packet.test.js +332 -0
- package/dist/core-runtime/evolve/renderers/draft-packet.js +303 -0
- package/dist/core-runtime/evolve/renderers/draft-packet.test.js +377 -0
- package/dist/core-runtime/evolve/renderers/format.js +5 -0
- package/dist/core-runtime/evolve/renderers/scope-md.js +237 -0
- package/dist/core-runtime/evolve/renderers/scope-md.test.js +306 -0
- package/dist/core-runtime/govern/cli.js +369 -0
- package/dist/core-runtime/govern/cli.test.js +314 -0
- package/dist/core-runtime/govern/drift-engine.js +103 -0
- package/dist/core-runtime/govern/drift-engine.test.js +319 -0
- package/dist/core-runtime/govern/promote-principle.js +206 -0
- package/dist/core-runtime/govern/promote-principle.test.js +368 -0
- package/dist/core-runtime/govern/queue.js +81 -0
- package/dist/core-runtime/govern/types.js +16 -0
- package/dist/core-runtime/install/cli.js +530 -0
- package/dist/core-runtime/install/detect.js +128 -0
- package/dist/core-runtime/install/detect.test.js +155 -0
- package/dist/core-runtime/install/gitignore-update.js +74 -0
- package/dist/core-runtime/install/gitignore-update.test.js +64 -0
- package/dist/core-runtime/install/install-integration.test.js +373 -0
- package/dist/core-runtime/install/prompts.js +389 -0
- package/dist/core-runtime/install/prompts.test.js +293 -0
- package/dist/core-runtime/install/types.js +26 -0
- package/dist/core-runtime/install/validation.js +295 -0
- package/dist/core-runtime/install/validation.test.js +313 -0
- package/dist/core-runtime/install/writer.js +254 -0
- package/dist/core-runtime/install/writer.test.js +218 -0
- package/dist/core-runtime/learning/extractor.js +461 -0
- package/dist/core-runtime/learning/feedback.js +179 -0
- package/dist/core-runtime/learning/health-report.js +165 -0
- package/dist/core-runtime/learning/health-report.test.js +169 -0
- package/dist/core-runtime/learning/loader.js +388 -0
- package/dist/core-runtime/learning/loader.test.js +102 -0
- package/dist/core-runtime/learning/promote/apply-state.js +240 -0
- package/dist/core-runtime/learning/promote/audit-obligation.js +195 -0
- package/dist/core-runtime/learning/promote/collector.js +432 -0
- package/dist/core-runtime/learning/promote/degraded-state.js +125 -0
- package/dist/core-runtime/learning/promote/domain-doc-proposer.js +166 -0
- package/dist/core-runtime/learning/promote/e2e-promote.test.js +6385 -0
- package/dist/core-runtime/learning/promote/health-snapshot.js +150 -0
- package/dist/core-runtime/learning/promote/insight-reclassifier.js +544 -0
- package/dist/core-runtime/learning/promote/judgment-auditor.js +517 -0
- package/dist/core-runtime/learning/promote/panel-reviewer.js +1158 -0
- package/dist/core-runtime/learning/promote/promote-executor.js +1675 -0
- package/dist/core-runtime/learning/promote/promoter.js +307 -0
- package/dist/core-runtime/learning/promote/retirement.js +122 -0
- package/dist/core-runtime/learning/promote/types.js +23 -0
- package/dist/core-runtime/learning/prompt-sections.js +51 -0
- package/dist/core-runtime/learning/shared/artifact-registry-init.js +45 -0
- package/dist/core-runtime/learning/shared/artifact-registry.js +254 -0
- package/dist/core-runtime/learning/shared/audit-obligation-kernel.js +73 -0
- package/dist/core-runtime/learning/shared/audit-state.js +99 -0
- package/dist/core-runtime/learning/shared/duplicate-check.js +28 -0
- package/dist/core-runtime/learning/shared/llm-caller.js +831 -0
- package/dist/core-runtime/learning/shared/llm-caller.test.js +601 -0
- package/dist/core-runtime/learning/shared/llm-tool-loop.js +393 -0
- package/dist/core-runtime/learning/shared/mode.js +25 -0
- package/dist/core-runtime/learning/shared/paths.js +84 -0
- package/dist/core-runtime/learning/shared/paths.test.js +79 -0
- package/dist/core-runtime/learning/shared/patterns.js +37 -0
- package/dist/core-runtime/learning/shared/recoverability.js +355 -0
- package/dist/core-runtime/learning/shared/recovery-context.js +374 -0
- package/dist/core-runtime/learning/shared/scope.js +1 -0
- package/dist/core-runtime/learning/shared/semantic-classifier.js +94 -0
- package/dist/core-runtime/learning/shared/specs/apply-execution-state-spec.js +42 -0
- package/dist/core-runtime/learning/shared/specs/audit-state-spec.js +37 -0
- package/dist/core-runtime/learning/shared/specs/backup-metadata-spec.js +39 -0
- package/dist/core-runtime/learning/shared/specs/emergency-log-spec.js +41 -0
- package/dist/core-runtime/learning/shared/specs/layout-version-spec.js +38 -0
- package/dist/core-runtime/learning/shared/specs/promote-decisions-spec.js +43 -0
- package/dist/core-runtime/learning/shared/specs/promote-report-spec.js +113 -0
- package/dist/core-runtime/learning/shared/specs/prune-log-spec.js +36 -0
- package/dist/core-runtime/learning/shared/specs/recovery-resolution-spec.js +48 -0
- package/dist/core-runtime/learning/shared/specs/restore-manifest-spec.js +43 -0
- package/dist/core-runtime/learning/shared/specs/spec-helpers.js +64 -0
- package/dist/core-runtime/learning/usage-tracker.js +190 -0
- package/dist/core-runtime/learning/usage-tracker.test.js +176 -0
- package/dist/core-runtime/llm/llm-caller.js +649 -0
- package/dist/core-runtime/llm/llm-tool-loop.js +401 -0
- package/dist/core-runtime/llm/model-switcher.js +62 -0
- package/dist/core-runtime/logger.js +22 -0
- package/dist/core-runtime/onboard/detect-review-axes.js +122 -0
- package/dist/core-runtime/onboard/detect-review-axes.test.js +127 -0
- package/dist/core-runtime/onboard/write-review-block.js +188 -0
- package/dist/core-runtime/onboard/write-review-block.test.js +240 -0
- package/dist/core-runtime/readers/brownfield-builder.js +150 -0
- package/dist/core-runtime/readers/brownfield-builder.test.js +136 -0
- package/dist/core-runtime/readers/code-chunk-collector.js +53 -0
- package/dist/core-runtime/readers/code-chunk-collector.test.js +136 -0
- package/dist/core-runtime/readers/file-utils.js +240 -0
- package/dist/core-runtime/readers/file-utils.test.js +146 -0
- package/dist/core-runtime/readers/lexicon-citation-check.js +93 -0
- package/dist/core-runtime/readers/lexicon-citation-check.test.js +77 -0
- package/dist/core-runtime/readers/mcp-figma.js +30 -0
- package/dist/core-runtime/readers/mcp-figma.test.js +82 -0
- package/dist/core-runtime/readers/mcp-generic.js +31 -0
- package/dist/core-runtime/readers/mcp-generic.test.js +76 -0
- package/dist/core-runtime/readers/ontology-index.js +148 -0
- package/dist/core-runtime/readers/ontology-index.test.js +245 -0
- package/dist/core-runtime/readers/ontology-query.js +168 -0
- package/dist/core-runtime/readers/ontology-query.test.js +311 -0
- package/dist/core-runtime/readers/ontology-resolve.js +48 -0
- package/dist/core-runtime/readers/ontology-resolve.test.js +48 -0
- package/dist/core-runtime/readers/patterns/index.js +7 -0
- package/dist/core-runtime/readers/review-log.js +213 -0
- package/dist/core-runtime/readers/review-log.test.js +313 -0
- package/dist/core-runtime/readers/scan-local.js +102 -0
- package/dist/core-runtime/readers/scan-local.test.js +102 -0
- package/dist/core-runtime/readers/scan-tarball.js +121 -0
- package/dist/core-runtime/readers/scan-tarball.test.js +283 -0
- package/dist/core-runtime/readers/scan-vault.js +34 -0
- package/dist/core-runtime/readers/scan-vault.test.js +81 -0
- package/dist/core-runtime/readers/types.js +42 -0
- package/dist/core-runtime/readers/types.test.js +94 -0
- package/dist/core-runtime/readers/viewpoint-collectors.js +229 -0
- package/dist/core-runtime/reconstruct/artifact-types.js +1 -0
- package/dist/core-runtime/reconstruct/directive-validation.js +123 -0
- package/dist/core-runtime/reconstruct/materialize-preparation.js +251 -0
- package/dist/core-runtime/reconstruct/record.js +198 -0
- package/dist/core-runtime/reconstruct/run.js +578 -0
- package/dist/core-runtime/reconstruct/seed-candidate-validation.js +356 -0
- package/dist/core-runtime/reconstruct/source-observations.js +62 -0
- package/dist/core-runtime/reconstruct/source-profiles.js +73 -0
- package/dist/core-runtime/release-channel/release-channel.js +90 -0
- package/dist/core-runtime/review/artifact-types.js +13 -0
- package/dist/core-runtime/review/citation-audit.js +204 -0
- package/dist/core-runtime/review/citation-audit.test.js +165 -0
- package/dist/core-runtime/review/controlled-lens-deliberation.js +125 -0
- package/dist/core-runtime/review/execution-plan-resolver.js +247 -0
- package/dist/core-runtime/review/execution-plan-resolver.test.js +243 -0
- package/dist/core-runtime/review/execution-topology-resolver-axis-first.test.js +246 -0
- package/dist/core-runtime/review/execution-topology-resolver.js +401 -0
- package/dist/core-runtime/review/execution-topology-resolver.test.js +315 -0
- package/dist/core-runtime/review/failure-records.js +57 -0
- package/dist/core-runtime/review/inline-context-embedder.js +141 -0
- package/dist/core-runtime/review/inline-context-embedder.test.js +154 -0
- package/dist/core-runtime/review/issue-artifact-runtime.js +859 -0
- package/dist/core-runtime/review/legacy-mode-policy.js +88 -0
- package/dist/core-runtime/review/lens-completion-policy.js +17 -0
- package/dist/core-runtime/review/materializers-effort-persist.test.js +79 -0
- package/dist/core-runtime/review/materializers.js +963 -0
- package/dist/core-runtime/review/ontology-path-classifier.js +179 -0
- package/dist/core-runtime/review/ontology-path-classifier.test.js +216 -0
- package/dist/core-runtime/review/packet-boundary-policy.js +215 -0
- package/dist/core-runtime/review/packet-boundary-policy.test.js +107 -0
- package/dist/core-runtime/review/participating-lens-paths.js +61 -0
- package/dist/core-runtime/review/participating-lens-paths.test.js +73 -0
- package/dist/core-runtime/review/review-artifact-utils.js +287 -0
- package/dist/core-runtime/review/review-config-legacy-translate.js +244 -0
- package/dist/core-runtime/review/review-config-legacy-translate.test.js +161 -0
- package/dist/core-runtime/review/review-config-validator.js +289 -0
- package/dist/core-runtime/review/review-config-validator.test.js +236 -0
- package/dist/core-runtime/review/review-execution-profile.js +193 -0
- package/dist/core-runtime/review/review-execution-route.js +52 -0
- package/dist/core-runtime/review/review-progress-contract.js +123 -0
- package/dist/core-runtime/review/review-record-validation.js +251 -0
- package/dist/core-runtime/review/review-result-classification.js +379 -0
- package/dist/core-runtime/review/review-state-machine.js +39 -0
- package/dist/core-runtime/review/route-visibility.js +125 -0
- package/dist/core-runtime/review/shape-pipeline-audit.test.js +311 -0
- package/dist/core-runtime/review/shape-to-topology-id.js +117 -0
- package/dist/core-runtime/review/shape-to-topology-id.test.js +132 -0
- package/dist/core-runtime/review/topology-shape-derivation.js +155 -0
- package/dist/core-runtime/review/topology-shape-derivation.test.js +195 -0
- package/dist/core-runtime/scope-runtime/constants.js +12 -0
- package/dist/core-runtime/scope-runtime/constraint-pool.js +166 -0
- package/dist/core-runtime/scope-runtime/constraint-pool.test.js +674 -0
- package/dist/core-runtime/scope-runtime/domain-validation-log.js +135 -0
- package/dist/core-runtime/scope-runtime/domain-validation-log.test.js +156 -0
- package/dist/core-runtime/scope-runtime/eval-persistence.js +65 -0
- package/dist/core-runtime/scope-runtime/eval-persistence.test.js +84 -0
- package/dist/core-runtime/scope-runtime/event-pipeline.js +64 -0
- package/dist/core-runtime/scope-runtime/event-pipeline.test.js +450 -0
- package/dist/core-runtime/scope-runtime/event-store.js +39 -0
- package/dist/core-runtime/scope-runtime/event-store.test.js +95 -0
- package/dist/core-runtime/scope-runtime/gate-guard.js +348 -0
- package/dist/core-runtime/scope-runtime/gate-guard.test.js +1047 -0
- package/dist/core-runtime/scope-runtime/hash.js +4 -0
- package/dist/core-runtime/scope-runtime/hash.test.js +33 -0
- package/dist/core-runtime/scope-runtime/id.js +4 -0
- package/dist/core-runtime/scope-runtime/id.test.js +17 -0
- package/dist/core-runtime/scope-runtime/reducer.js +297 -0
- package/dist/core-runtime/scope-runtime/reducer.test.js +759 -0
- package/dist/core-runtime/scope-runtime/scope-manager.js +161 -0
- package/dist/core-runtime/scope-runtime/state-machine.js +309 -0
- package/dist/core-runtime/scope-runtime/state-machine.test.js +704 -0
- package/dist/core-runtime/scope-runtime/types.js +116 -0
- package/dist/core-runtime/scope-runtime/types.test.js +69 -0
- package/dist/core-runtime/target-material-kind.js +256 -0
- package/dist/core-runtime/translate/render-for-user.js +169 -0
- package/dist/core-runtime/translate/render-for-user.test.js +122 -0
- package/dist/mcp/server.js +1011 -0
- package/dist/mcp/tool-schemas.js +93 -0
- package/dist/providers/capability-contract.js +1 -0
- package/package.json +68 -0
- package/settings.example.json +33 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Source Profile: Spreadsheet
|
|
2
|
+
|
|
3
|
+
> Target material kind: `spreadsheet`
|
|
4
|
+
|
|
5
|
+
## Support Status
|
|
6
|
+
|
|
7
|
+
Design profile only. Planned first runtime support should cover `.xlsx` and
|
|
8
|
+
`.csv`. Other spreadsheet formats such as `.xls` and `.ods` must fail explicitly
|
|
9
|
+
until adapter support is implemented.
|
|
10
|
+
|
|
11
|
+
## Target Material Identification Hints
|
|
12
|
+
|
|
13
|
+
- File extension is `.xlsx`, `.csv`, `.xls`, or `.ods`.
|
|
14
|
+
- MIME type indicates a spreadsheet workbook.
|
|
15
|
+
- User identifies the target as a spreadsheet, workbook, sheet, model, report, or
|
|
16
|
+
accounting file.
|
|
17
|
+
|
|
18
|
+
## Module Inventory Unit
|
|
19
|
+
|
|
20
|
+
Workbook, sheet, named range, table, or used range.
|
|
21
|
+
|
|
22
|
+
## Structural Recognition Scope
|
|
23
|
+
|
|
24
|
+
- cell values
|
|
25
|
+
- formulas and formula references
|
|
26
|
+
- formatting such as background color, font, borders, and merged cells
|
|
27
|
+
- cross-sheet references
|
|
28
|
+
- data validation rules
|
|
29
|
+
- named ranges
|
|
30
|
+
- hidden rows and columns
|
|
31
|
+
- macros or VBA presence
|
|
32
|
+
|
|
33
|
+
## Correct Observation Examples
|
|
34
|
+
|
|
35
|
+
> Cells `A1:F1` are merged with background color `#4472C4`, bold font, and
|
|
36
|
+
> formatting different from the rows below.
|
|
37
|
+
|
|
38
|
+
> Cell `B2` contains `=VLOOKUP(A2, Sheet2!A:C, 3, FALSE)` and references columns
|
|
39
|
+
> `A:C` of `Sheet2`.
|
|
40
|
+
|
|
41
|
+
## Prohibited Interpretation Examples
|
|
42
|
+
|
|
43
|
+
> `A1:F1` is a table header.
|
|
44
|
+
|
|
45
|
+
> This sheet is a sales report.
|
|
46
|
+
|
|
47
|
+
> The formula is a cost-recognition policy.
|
|
48
|
+
|
|
49
|
+
## Detail Location Format
|
|
50
|
+
|
|
51
|
+
```text
|
|
52
|
+
{description} -- {sheet}:{cell range}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Example:
|
|
56
|
+
|
|
57
|
+
```text
|
|
58
|
+
formula =SUM(B2:B10) -- Sheet1:B11
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Context Questions
|
|
62
|
+
|
|
63
|
+
- What is the primary purpose of this file: report, data collection, calculation
|
|
64
|
+
model, dashboard, accounting schedule, or another use?
|
|
65
|
+
- Do colors or formatting have special meaning?
|
|
66
|
+
- Who primarily uses this file?
|
|
67
|
+
- Is there an existing domain glossary or accounting policy reference?
|
|
68
|
+
|
|
69
|
+
## Scan Targets
|
|
70
|
+
|
|
71
|
+
- sheet list and used range per sheet
|
|
72
|
+
- named ranges
|
|
73
|
+
- table definitions
|
|
74
|
+
- formula cells and cross-sheet references
|
|
75
|
+
- merged ranges and distinct formatting regions
|
|
76
|
+
- hidden rows and columns
|
|
77
|
+
- data validation rules
|
|
78
|
+
- macro/VBA presence
|
|
79
|
+
- external data connections
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
# Review Binding Contract
|
|
2
|
+
|
|
3
|
+
> 상태: Active
|
|
4
|
+
> 목적: MCP review 호출이 `검토 해석 (InvocationInterpretation)` 다음에 수행해야 하는 `검토 고정 (InvocationBinding)` 책임을 고정한다.
|
|
5
|
+
> 기준 문서:
|
|
6
|
+
> - `.onto/processes/review/interpretation-contract.md`
|
|
7
|
+
> - `.onto/authority/core-lexicon.yaml`
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 1. Position
|
|
12
|
+
|
|
13
|
+
`검토 고정 (InvocationBinding)`은
|
|
14
|
+
`검토 해석 (InvocationInterpretation)`의 결과를 받아
|
|
15
|
+
실제 실행 가능한 review request로 고정하는 runtime/host 소유 단계다.
|
|
16
|
+
|
|
17
|
+
즉 이 단계의 핵심은:
|
|
18
|
+
|
|
19
|
+
- 해석 결과를 믿고
|
|
20
|
+
- 실제 path, domain, session, artifact path를 확정하고
|
|
21
|
+
- 이후 lens/synthesize execution이 사용할 deterministic shell을 만드는 것
|
|
22
|
+
|
|
23
|
+
이다.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 2. Why This Is Runtime-Owned
|
|
28
|
+
|
|
29
|
+
아래 일들은 semantic judgment보다
|
|
30
|
+
closed-world validation에 가깝다.
|
|
31
|
+
|
|
32
|
+
1. target path가 실제로 존재하는지 확인
|
|
33
|
+
2. domain token이 유효한지 확인
|
|
34
|
+
3. session ID를 만들고 session directory를 생성
|
|
35
|
+
4. review artifact 경로를 정함
|
|
36
|
+
5. execution mode를 실제로 고정
|
|
37
|
+
6. 팀 생성 또는 background task 호출에 필요한 explicit 값을 준비
|
|
38
|
+
|
|
39
|
+
이것들은 의미 판단이 아니라 검증, 생성, 고정이므로 runtime/host 소유다.
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## 3. Inputs
|
|
44
|
+
|
|
45
|
+
`검토 고정 (InvocationBinding)`의 입력은 아래다.
|
|
46
|
+
|
|
47
|
+
1. `검토 해석 (InvocationInterpretation)` 출력
|
|
48
|
+
2. 현재 project root
|
|
49
|
+
3. 실제 filesystem 상태
|
|
50
|
+
4. `.onto/settings.json`
|
|
51
|
+
5. host execution capability
|
|
52
|
+
- Claude plugin
|
|
53
|
+
- Codex CLI availability
|
|
54
|
+
- domain document location
|
|
55
|
+
6. explicit user selection
|
|
56
|
+
- domain confirmation
|
|
57
|
+
- core-axis/full override
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## 4. Outputs
|
|
62
|
+
|
|
63
|
+
`검토 고정 (InvocationBinding)`의 출력은 아래를 포함해야 한다.
|
|
64
|
+
|
|
65
|
+
1. `resolved_target_scope`
|
|
66
|
+
2. `domain_final_selection`
|
|
67
|
+
3. `resolved_session_domain`
|
|
68
|
+
4. `resolved_execution_realization`
|
|
69
|
+
5. `resolved_host_runtime`
|
|
70
|
+
6. `resolved_review_mode`
|
|
71
|
+
- `core-axis` 또는 `full`
|
|
72
|
+
7. `resolved_lens_set`
|
|
73
|
+
8. `session_id`
|
|
74
|
+
9. `session_root`
|
|
75
|
+
10. `round1_root`
|
|
76
|
+
11. `execution_preparation_root`
|
|
77
|
+
12. `execution_plan_path`
|
|
78
|
+
13. `session_metadata_path`
|
|
79
|
+
14. `interpretation_artifact_path`
|
|
80
|
+
15. `binding_output_path`
|
|
81
|
+
16. `target_snapshot_path`
|
|
82
|
+
17. `target_snapshot_manifest_path`
|
|
83
|
+
18. `materialized_input_path`
|
|
84
|
+
19. `context_candidate_assembly_path`
|
|
85
|
+
20. `synthesis_output_path`
|
|
86
|
+
21. `review_record_path`
|
|
87
|
+
22. `final_output_path`
|
|
88
|
+
23. `boundary_policy`
|
|
89
|
+
24. `boundary_presentation`
|
|
90
|
+
25. `boundary_enforcement_profile`
|
|
91
|
+
26. `effective_boundary_state`
|
|
92
|
+
27. `binding_notes`
|
|
93
|
+
|
|
94
|
+
### 4.1 `resolved_target_scope` shape
|
|
95
|
+
|
|
96
|
+
`resolved_target_scope`는 최소 아래 kind를 허용해야 한다.
|
|
97
|
+
|
|
98
|
+
1. `file`
|
|
99
|
+
- `resolved_refs`에 1개 파일 경로
|
|
100
|
+
2. `directory`
|
|
101
|
+
- `resolved_refs`에 포함 파일 또는 대상 디렉터리 기준 ref set
|
|
102
|
+
3. `bundle`
|
|
103
|
+
- `resolved_refs`에 bundle member 전체
|
|
104
|
+
- `bundle_kind`로 묶음 종류를 추가 표기 가능
|
|
105
|
+
|
|
106
|
+
예시:
|
|
107
|
+
|
|
108
|
+
```yaml
|
|
109
|
+
resolved_target_scope:
|
|
110
|
+
kind: bundle
|
|
111
|
+
bundle_kind: seed_domain_bundle
|
|
112
|
+
resolved_refs:
|
|
113
|
+
- /Users/kangmin/.onto/drafts/ontology/domain_scope.md
|
|
114
|
+
- /Users/kangmin/.onto/drafts/ontology/concepts.md
|
|
115
|
+
- /Users/kangmin/.onto/drafts/ontology/competency_qs.md
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
## 5. Example
|
|
121
|
+
|
|
122
|
+
### 5.1 Input
|
|
123
|
+
|
|
124
|
+
`검토 해석 (InvocationInterpretation)` 출력:
|
|
125
|
+
|
|
126
|
+
```yaml
|
|
127
|
+
entrypoint: review
|
|
128
|
+
target_scope_candidate:
|
|
129
|
+
kind: file
|
|
130
|
+
primary_ref: .onto/principles/ontology-as-code-guideline.md
|
|
131
|
+
intent_summary: production semantic quality bar planning의 완결성과 실용성을 검토한다.
|
|
132
|
+
domain_recommendation: "@ontology"
|
|
133
|
+
domain_selection_required: true
|
|
134
|
+
review_mode_recommendation: full
|
|
135
|
+
lens_selection_plan:
|
|
136
|
+
always_include:
|
|
137
|
+
- axiology
|
|
138
|
+
recommended_lenses:
|
|
139
|
+
- logic
|
|
140
|
+
- pragmatics
|
|
141
|
+
- evolution
|
|
142
|
+
ambiguity_notes: []
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### 5.2 Binding Output
|
|
146
|
+
|
|
147
|
+
```yaml
|
|
148
|
+
resolved_target_scope:
|
|
149
|
+
kind: file
|
|
150
|
+
resolved_refs:
|
|
151
|
+
- /Users/kangmin/cowork/onto/.onto/principles/ontology-as-code-guideline.md
|
|
152
|
+
domain_final_selection:
|
|
153
|
+
recommendation: "@ontology"
|
|
154
|
+
final_value: ontology
|
|
155
|
+
selection_mode: user_confirmed_recommendation
|
|
156
|
+
resolved_session_domain: ontology
|
|
157
|
+
resolved_execution_realization: worker
|
|
158
|
+
resolved_host_runtime: codex
|
|
159
|
+
resolved_review_mode: full
|
|
160
|
+
resolved_lens_set:
|
|
161
|
+
- logic
|
|
162
|
+
- structure
|
|
163
|
+
- dependency
|
|
164
|
+
- semantics
|
|
165
|
+
- pragmatics
|
|
166
|
+
- evolution
|
|
167
|
+
- coverage
|
|
168
|
+
- conciseness
|
|
169
|
+
- axiology
|
|
170
|
+
session_id: 20260404-a1b2c3d4
|
|
171
|
+
session_root: /Users/kangmin/cowork/onto/.onto/review/20260404-a1b2c3d4
|
|
172
|
+
round1_root: /Users/kangmin/cowork/onto/.onto/review/20260404-a1b2c3d4/round1
|
|
173
|
+
execution_preparation_root: /Users/kangmin/cowork/onto/.onto/review/20260404-a1b2c3d4/execution-preparation
|
|
174
|
+
execution_plan_path: /Users/kangmin/cowork/onto/.onto/review/20260404-a1b2c3d4/execution-plan.yaml
|
|
175
|
+
session_metadata_path: /Users/kangmin/cowork/onto/.onto/review/20260404-a1b2c3d4/session-metadata.yaml
|
|
176
|
+
interpretation_artifact_path: /Users/kangmin/cowork/onto/.onto/review/20260404-a1b2c3d4/interpretation.yaml
|
|
177
|
+
binding_output_path: /Users/kangmin/cowork/onto/.onto/review/20260404-a1b2c3d4/binding.yaml
|
|
178
|
+
target_snapshot_path: /Users/kangmin/cowork/onto/.onto/review/20260404-a1b2c3d4/execution-preparation/target-snapshot.md
|
|
179
|
+
target_snapshot_manifest_path: /Users/kangmin/cowork/onto/.onto/review/20260404-a1b2c3d4/execution-preparation/target-snapshot-manifest.yaml
|
|
180
|
+
materialized_input_path: /Users/kangmin/cowork/onto/.onto/review/20260404-a1b2c3d4/execution-preparation/materialized-input.md
|
|
181
|
+
context_candidate_assembly_path: /Users/kangmin/cowork/onto/.onto/review/20260404-a1b2c3d4/execution-preparation/context-candidate-assembly.yaml
|
|
182
|
+
synthesis_output_path: /Users/kangmin/cowork/onto/.onto/review/20260404-a1b2c3d4/synthesis.md
|
|
183
|
+
error_log_path: /Users/kangmin/cowork/onto/.onto/review/20260404-a1b2c3d4/error-log.md
|
|
184
|
+
review_record_path: /Users/kangmin/cowork/onto/.onto/review/20260404-a1b2c3d4/review-record.yaml
|
|
185
|
+
final_output_path: /Users/kangmin/cowork/onto/.onto/review/20260404-a1b2c3d4/final-output.md
|
|
186
|
+
boundary_policy:
|
|
187
|
+
web_research_policy: denied
|
|
188
|
+
repo_exploration_policy: allowed
|
|
189
|
+
recursive_reference_expansion_policy: denied
|
|
190
|
+
boundary_presentation:
|
|
191
|
+
primary_target_presentation: embedded_and_ref
|
|
192
|
+
required_context_presentation: ref_only
|
|
193
|
+
boundary_enforcement_profile:
|
|
194
|
+
prompt_boundary_enforcement: prompt_declared_only
|
|
195
|
+
network_boundary_enforcement: prompt_declared_only
|
|
196
|
+
effective_boundary_state:
|
|
197
|
+
web_research:
|
|
198
|
+
requested_policy: denied
|
|
199
|
+
effective_policy: denied
|
|
200
|
+
guarantee_level: prompt_declared_only
|
|
201
|
+
binding_notes:
|
|
202
|
+
- "explicit domain token was not provided; ontology was recommended by interpretation and explicitly confirmed by the user"
|
|
203
|
+
- "full review was preserved from interpretation recommendation"
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
208
|
+
## 6. What It Must Not Do
|
|
209
|
+
|
|
210
|
+
`검토 고정 (InvocationBinding)` 단계는 아래를 하면 안 된다.
|
|
211
|
+
|
|
212
|
+
1. 경량/전원 리뷰 필요성을 새로 semantic 판단한다
|
|
213
|
+
2. lens finding을 작성한다
|
|
214
|
+
3. synthesis judgment를 작성한다
|
|
215
|
+
4. contradiction 여부를 판단한다
|
|
216
|
+
5. domain recommendation을 새로 해석한다
|
|
217
|
+
|
|
218
|
+
즉 이 단계는 `interpretation 결과를 실행 가능한 형태로 고정`하는 데까지만 책임진다.
|
|
219
|
+
|
|
220
|
+
`resolved_lens_set`도 이 단계가 새로 semantic하게 고르는 것이 아니라,
|
|
221
|
+
이미 해석 단계에서 나온 `lens_selection_plan`과 explicit user choice를
|
|
222
|
+
실행 가능한 값으로 materialize한 결과여야 한다.
|
|
223
|
+
|
|
224
|
+
`domain_final_selection`도 마찬가지로,
|
|
225
|
+
이 단계가 recommendation을 새로 만드는 것이 아니라
|
|
226
|
+
recommendation, explicit token, 주체자 확인 결과를
|
|
227
|
+
최종 값으로 materialize한 결과여야 한다.
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
231
|
+
## 7. Prompt / MCP / Runtime Effect
|
|
232
|
+
|
|
233
|
+
현재 MCP-native runtime에서 이 단계가 뜻하는 바는 아래다.
|
|
234
|
+
|
|
235
|
+
1. `onto.review` 또는 `onto.prepare_review` 호출은 interpretation 결과를 받은 뒤
|
|
236
|
+
- target scope를 검증하고
|
|
237
|
+
- domain/context를 고정하고
|
|
238
|
+
- review mode와 lens set을 materialize하고
|
|
239
|
+
- session directory를 만든다
|
|
240
|
+
2. runtime은 이 binding 결과를 바탕으로 configured provider executor를 사용할 수 있다.
|
|
241
|
+
|
|
242
|
+
즉 MCP host/provider가 바뀌어도 binding output은 같아야 한다.
|
|
243
|
+
|
|
244
|
+
prompt-backed reference path에서 team lead는
|
|
245
|
+
최소 아래 artifact를 이 output에 맞춰 실제로 작성해야 한다.
|
|
246
|
+
|
|
247
|
+
1. `session-metadata.yaml`
|
|
248
|
+
2. `interpretation.yaml`
|
|
249
|
+
3. `binding.yaml`
|
|
250
|
+
4. `execution-plan.yaml`
|
|
251
|
+
5. `execution-preparation/*`
|
|
252
|
+
|
|
253
|
+
즉 `binding`은 단순 내부 결정이 아니라,
|
|
254
|
+
artifact seat를 포함한 deterministic shell materialization이다.
|
|
255
|
+
|
|
256
|
+
또한 현재 `binding`은 최소한 아래 boundary seat를 같이 가져야 한다.
|
|
257
|
+
|
|
258
|
+
1. `BoundaryPolicy`
|
|
259
|
+
2. `BoundaryPresentation`
|
|
260
|
+
3. `BoundaryEnforcementProfile`
|
|
261
|
+
4. `EffectiveBoundaryState`
|
|
262
|
+
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
## 8. Immediate Follow-up
|
|
266
|
+
|
|
267
|
+
이 문서 다음 단계는 아래다.
|
|
268
|
+
|
|
269
|
+
1. `src/core-api/review-api.ts`와 `src/mcp/server.ts`가 interpretation -> binding 순서를 보존한다
|
|
270
|
+
2. 이후 `lens prompt contract`와 `synthesize prompt contract`를 분리한다
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
# Review Execution Preparation Artifacts
|
|
2
|
+
|
|
3
|
+
> 상태: Active
|
|
4
|
+
> 목적: `검토 고정 (InvocationBinding)` 이후 lens 실행 전에 materialize되어야 하는 bridge artifact를 고정한다.
|
|
5
|
+
> 기준 문서:
|
|
6
|
+
> - `.onto/processes/review/productized-live-path.md`
|
|
7
|
+
> - `.onto/processes/review/binding-contract.md`
|
|
8
|
+
> - `.onto/processes/review/record-contract.md`
|
|
9
|
+
> - `.onto/processes/review/pre-dispatch-contracts.md`
|
|
10
|
+
> - `.onto/authority/core-lexicon.yaml`
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## 1. Position
|
|
15
|
+
|
|
16
|
+
`검토 해석 (InvocationInterpretation)`과 `검토 고정 (InvocationBinding)`만으로는
|
|
17
|
+
lens가 실제로 무엇을 읽어야 하는지가 닫히지 않는다.
|
|
18
|
+
|
|
19
|
+
그래서 lens 실행 전에 최소 아래 bridge artifact와 gate artifact가 필요하다.
|
|
20
|
+
|
|
21
|
+
1. `review_session_metadata`
|
|
22
|
+
2. `target_snapshot`
|
|
23
|
+
3. `review_target_materialized_input`
|
|
24
|
+
4. `review_target_profile`
|
|
25
|
+
5. `context_candidate_assembly`
|
|
26
|
+
6. `actor_invocation_profiles`
|
|
27
|
+
7. `actor_consumer_bindings`
|
|
28
|
+
8. `domain_binding`
|
|
29
|
+
9. `review_value_alignment_criteria`
|
|
30
|
+
10. `review_context_manifest`
|
|
31
|
+
|
|
32
|
+
이 artifact들은 이후 `ReviewRecord`의 execution preparation layer를 이룬다.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## 2. Canonical Filesystem Seats
|
|
37
|
+
|
|
38
|
+
현재 prompt-backed reference path의 canonical seat는 아래다.
|
|
39
|
+
|
|
40
|
+
```text
|
|
41
|
+
.onto/review/{session_id}/
|
|
42
|
+
session-metadata.yaml
|
|
43
|
+
interpretation.yaml
|
|
44
|
+
binding.yaml
|
|
45
|
+
execution-plan.yaml
|
|
46
|
+
error-log.md
|
|
47
|
+
execution-preparation/
|
|
48
|
+
target-snapshot.md
|
|
49
|
+
target-snapshot-manifest.yaml
|
|
50
|
+
materialized-input.md
|
|
51
|
+
review-target-profile.yaml
|
|
52
|
+
context-candidate-assembly.yaml
|
|
53
|
+
actor-invocation-profiles.yaml
|
|
54
|
+
actor-consumer-bindings.yaml
|
|
55
|
+
domain-binding.yaml
|
|
56
|
+
review-value-alignment-criteria.yaml
|
|
57
|
+
review-context-manifest.yaml
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
원칙:
|
|
61
|
+
|
|
62
|
+
- `interpretation.yaml`과 `binding.yaml`은 invocation phase 산출물이다
|
|
63
|
+
- `execution-plan.yaml`은 lens/synthesize/finalize seat를 고정하는 deterministic coordination artifact다
|
|
64
|
+
- `binding.yaml`과 `execution-plan.yaml`은 boundary seat도 함께 가진다
|
|
65
|
+
- `BoundaryPolicy`
|
|
66
|
+
- `BoundaryPresentation`
|
|
67
|
+
- `BoundaryEnforcementProfile`
|
|
68
|
+
- `EffectiveBoundaryState`
|
|
69
|
+
- `error-log.md`는 deterministic conformance log seat다
|
|
70
|
+
- `degradation-summary.yaml`은 degraded case / partial failure를 기록하는 structured source seat다
|
|
71
|
+
- `execution-preparation/` 아래 artifact들은 lens 실행 직전 basis artifact다
|
|
72
|
+
- `pre-dispatch-contracts.md`가 정한 gate를 통과하지 못하면 lens dispatch를 시작하지 않는다
|
|
73
|
+
- later runtime implementation도 이 구분은 유지해야 한다
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## 3. review_session_metadata
|
|
78
|
+
|
|
79
|
+
`review_session_metadata`는 실행 단위의 deterministic metadata다.
|
|
80
|
+
|
|
81
|
+
최소 필드:
|
|
82
|
+
|
|
83
|
+
- `session_id`
|
|
84
|
+
- `entrypoint`
|
|
85
|
+
- `execution_realization`
|
|
86
|
+
- `host_runtime`
|
|
87
|
+
- `review_mode`
|
|
88
|
+
- `created_at`
|
|
89
|
+
- `project_root`
|
|
90
|
+
- `requested_target`
|
|
91
|
+
- `requested_domain_token`
|
|
92
|
+
- `onto_home`
|
|
93
|
+
|
|
94
|
+
예시:
|
|
95
|
+
|
|
96
|
+
```yaml
|
|
97
|
+
session_id: 20260404-a1b2c3d4
|
|
98
|
+
entrypoint: review
|
|
99
|
+
execution_realization: worker
|
|
100
|
+
host_runtime: codex
|
|
101
|
+
review_mode: full
|
|
102
|
+
created_at: 2026-04-04T15:20:00+09:00
|
|
103
|
+
project_root: /Users/kangmin/cowork/onto-mcp
|
|
104
|
+
requested_target: src/core-runtime/review
|
|
105
|
+
requested_domain_token: "@ontology"
|
|
106
|
+
onto_home: /Users/kangmin/cowork/onto-mcp
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
`onto_home`는 review 실행 시점에 resolve 된 onto-mcp runtime resource root의 snapshot 이다.
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## 4. target_snapshot
|
|
114
|
+
|
|
115
|
+
`target_snapshot`은 review 당시 실제로 읽은 target basis다.
|
|
116
|
+
|
|
117
|
+
중요:
|
|
118
|
+
|
|
119
|
+
- current file state를 나중에 다시 읽는 것으로 대체하면 안 된다
|
|
120
|
+
- 당시 review basis를 그대로 보존해야 한다
|
|
121
|
+
|
|
122
|
+
`target-snapshot.md`는 실제 읽힌 본문을 보존한다.
|
|
123
|
+
`target-snapshot-manifest.yaml`은 snapshot metadata를 보존한다.
|
|
124
|
+
|
|
125
|
+
`target-snapshot-manifest.yaml` 최소 필드:
|
|
126
|
+
|
|
127
|
+
- `review_target_scope_kind`
|
|
128
|
+
- `resolved_target_refs`
|
|
129
|
+
- `review_target_profile_ref`
|
|
130
|
+
- `captured_at`
|
|
131
|
+
- `capture_reason`
|
|
132
|
+
|
|
133
|
+
예시:
|
|
134
|
+
|
|
135
|
+
```yaml
|
|
136
|
+
review_target_scope_kind: bundle
|
|
137
|
+
resolved_target_refs:
|
|
138
|
+
- /Users/kangmin/cowork/onto-mcp/src/core-runtime/review
|
|
139
|
+
- /Users/kangmin/cowork/onto-mcp/.onto/processes/review
|
|
140
|
+
review_target_profile_ref: /Users/kangmin/cowork/onto-mcp/.onto/review/20260404-a1b2c3d4/execution-preparation/review-target-profile.yaml
|
|
141
|
+
captured_at: 2026-04-04T15:21:00+09:00
|
|
142
|
+
capture_reason: prompt-backed review execution
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
## 5. review_target_materialized_input
|
|
148
|
+
|
|
149
|
+
`review_target_materialized_input`은 lens가 실제로 읽는 normalized execution input이다.
|
|
150
|
+
|
|
151
|
+
이 artifact는 `review_target_scope`를 실행 친화적 shape로 materialize한다.
|
|
152
|
+
|
|
153
|
+
허용 shape:
|
|
154
|
+
|
|
155
|
+
1. `single_text`
|
|
156
|
+
2. `directory_listing`
|
|
157
|
+
3. `bundle_member_texts`
|
|
158
|
+
|
|
159
|
+
원칙:
|
|
160
|
+
|
|
161
|
+
- `target_snapshot`은 basis preservation이다
|
|
162
|
+
- `review_target_materialized_input`은 execution-friendly reading bundle이다
|
|
163
|
+
- 둘은 같은 것이 아니다
|
|
164
|
+
|
|
165
|
+
예시:
|
|
166
|
+
|
|
167
|
+
```yaml
|
|
168
|
+
kind: bundle_member_texts
|
|
169
|
+
members:
|
|
170
|
+
- ref: /Users/kangmin/cowork/onto-mcp/src/core-runtime/review
|
|
171
|
+
label: review_runtime
|
|
172
|
+
content_path: execution-preparation/materialized-input.md#review_runtime
|
|
173
|
+
- ref: /Users/kangmin/cowork/onto-mcp/.onto/processes/review
|
|
174
|
+
label: review_contracts
|
|
175
|
+
content_path: execution-preparation/materialized-input.md#review_contracts
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
## 6. review_target_profile
|
|
181
|
+
|
|
182
|
+
`review_target_profile`은 현재 review target의 artifact role, target
|
|
183
|
+
material kind, closure obligation을 고정한다.
|
|
184
|
+
|
|
185
|
+
이 artifact는 target을 다시 읽기 위한 권한이 아니라, 이미 고정된 target refs를
|
|
186
|
+
어떤 종류의 artifact로 평가할지 정하는 runtime-owned profile이다.
|
|
187
|
+
|
|
188
|
+
최소 필드:
|
|
189
|
+
|
|
190
|
+
- `target_scope_kind`
|
|
191
|
+
- `materialized_input_kind`
|
|
192
|
+
- `target_input_kind`
|
|
193
|
+
- `target_material_kind`
|
|
194
|
+
- `artifact_roles`
|
|
195
|
+
- `domain`
|
|
196
|
+
- `maturity`
|
|
197
|
+
- `closure_level`
|
|
198
|
+
- `review_goal`
|
|
199
|
+
- `closure_obligation_policy`
|
|
200
|
+
- `target_refs`
|
|
201
|
+
- `material_profile`
|
|
202
|
+
- `boundary`
|
|
203
|
+
- `inference`
|
|
204
|
+
|
|
205
|
+
허용 `target_input_kind`:
|
|
206
|
+
|
|
207
|
+
1. `single_file`
|
|
208
|
+
2. `directory`
|
|
209
|
+
3. `explicit_bundle`
|
|
210
|
+
4. `git_diff`
|
|
211
|
+
5. `generated_packet`
|
|
212
|
+
|
|
213
|
+
기준 문서:
|
|
214
|
+
|
|
215
|
+
- `.onto/processes/review/review-target-profile-contract.md`
|
|
216
|
+
|
|
217
|
+
---
|
|
218
|
+
|
|
219
|
+
## 7. context_candidate_assembly
|
|
220
|
+
|
|
221
|
+
`context_candidate_assembly`는 각 lens가 self-loading 또는 main-context loading으로 접근할 수 있는 candidate context set을 적는다.
|
|
222
|
+
|
|
223
|
+
최소 필드:
|
|
224
|
+
|
|
225
|
+
- `system_purpose_refs`
|
|
226
|
+
- `domain_context_refs`
|
|
227
|
+
- `role_definition_refs`
|
|
228
|
+
- `execution_rule_refs`
|
|
229
|
+
|
|
230
|
+
예시:
|
|
231
|
+
|
|
232
|
+
```yaml
|
|
233
|
+
system_purpose_refs:
|
|
234
|
+
- /Users/kangmin/cowork/onto-mcp/README.md
|
|
235
|
+
domain_context_refs:
|
|
236
|
+
- /Users/kangmin/.onto/domains/ontology/domain_scope.md
|
|
237
|
+
role_definition_refs:
|
|
238
|
+
- /Users/kangmin/cowork/onto-mcp/.onto/roles/logic.md
|
|
239
|
+
execution_rule_refs:
|
|
240
|
+
- /Users/kangmin/cowork/onto-mcp/.onto/processes/review/productized-live-path.md
|
|
241
|
+
- /Users/kangmin/cowork/onto-mcp/.onto/processes/review/prompt-execution-runner-contract.md
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
원칙:
|
|
245
|
+
|
|
246
|
+
- 이것은 candidate set이다
|
|
247
|
+
- 어떤 항목이 실제로 중요한지는 lens가 판단한다
|
|
248
|
+
- 즉 runtime/host는 context relevance judgment를 대신하지 않는다
|
|
249
|
+
|
|
250
|
+
---
|
|
251
|
+
|
|
252
|
+
## 8. Ownership
|
|
253
|
+
|
|
254
|
+
이 artifact들의 owner는 아래다.
|
|
255
|
+
|
|
256
|
+
| Artifact | Owner |
|
|
257
|
+
|---|---|
|
|
258
|
+
| `session-metadata.yaml` | runtime/host |
|
|
259
|
+
| `interpretation.yaml` | `LLM` |
|
|
260
|
+
| `binding.yaml` | runtime/host |
|
|
261
|
+
| `target-snapshot.*` | runtime/host |
|
|
262
|
+
| `materialized-input.md` | runtime/host |
|
|
263
|
+
| `review-target-profile.yaml` | runtime/host |
|
|
264
|
+
| `context-candidate-assembly.yaml` | runtime/host |
|
|
265
|
+
| `actor-invocation-profiles.yaml` | runtime/host |
|
|
266
|
+
| `actor-consumer-bindings.yaml` | runtime/host |
|
|
267
|
+
| `domain-binding.yaml` | runtime/host |
|
|
268
|
+
| `review-value-alignment-criteria.yaml` | runtime/host with principal authority |
|
|
269
|
+
| `review-context-manifest.yaml` | runtime/host |
|
|
270
|
+
|
|
271
|
+
즉 semantic interpretation은 `LLM`이 맡고,
|
|
272
|
+
그 해석을 실제 실행 basis로 materialize하는 것은 runtime/host가 맡는다.
|
|
273
|
+
|
|
274
|
+
---
|
|
275
|
+
|
|
276
|
+
## 9. Immediate Follow-up
|
|
277
|
+
|
|
278
|
+
다음 단계는 아래다.
|
|
279
|
+
|
|
280
|
+
1. prompt-backed path에서 이 artifact 내용을 실제 field shape로 안정화한다
|
|
281
|
+
2. later runtime replacement에서 file generator를 하나씩 치환한다
|