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,94 @@
|
|
|
1
|
+
version: "0.1.0"
|
|
2
|
+
schema_version: "1"
|
|
3
|
+
purpose: |
|
|
4
|
+
design/commands gate-guard error reason 을 Principal-facing 한국어 메시지로 변환하는
|
|
5
|
+
matching table. W-B-08 (BL-044) 로 기존 문자열 매칭 switch 에서 code registry 로 전환.
|
|
6
|
+
|
|
7
|
+
notes:
|
|
8
|
+
- "Entry 는 위에서 아래로 평가되며, 첫 매칭이 반환된다. 기존 error-messages.ts 의 평가 순서를 보존."
|
|
9
|
+
- "matchers 배열 내부는 OR. 각 matcher 내부의 includes_all 배열은 AND."
|
|
10
|
+
- "passthrough: true 이면 message_ko 대신 reason 원문을 그대로 사용한다 (이미 한국어인 경우)."
|
|
11
|
+
- "category 는 telemetry/분류용 — 현재 소비자는 없으나 향후 diagnostic dashboard 로 확장."
|
|
12
|
+
- "authority-adjacent data seat. concept SSOT 아님. 인용 금지 검증 대상 아님."
|
|
13
|
+
|
|
14
|
+
schema:
|
|
15
|
+
entry:
|
|
16
|
+
code: "DIAG-<CATEGORY>-<NN> 형식"
|
|
17
|
+
matchers: "array of matcher. 배열 간 OR. 각 matcher 는 {includes: string} 또는 {includes_all: string[]}"
|
|
18
|
+
message_ko: "한국어 Principal-facing 메시지. passthrough=true 면 생략 가능"
|
|
19
|
+
passthrough: "boolean. true 면 reason 원문을 그대로 반환"
|
|
20
|
+
category: "state-transition | referential | constraint | convergence | compile | target-lock | validation"
|
|
21
|
+
|
|
22
|
+
diagnostic_codes:
|
|
23
|
+
- code: "DIAG-STATE-TRANSITION-01"
|
|
24
|
+
matchers:
|
|
25
|
+
- includes: "Transition denied"
|
|
26
|
+
message_ko: "현재 단계에서 이 작업을 수행할 수 없습니다."
|
|
27
|
+
category: "state-transition"
|
|
28
|
+
|
|
29
|
+
- code: "DIAG-REFERENTIAL-01"
|
|
30
|
+
matchers:
|
|
31
|
+
- includes: "Referential integrity"
|
|
32
|
+
message_ko: "내부 참조 오류가 발생했습니다. 에이전트가 이벤트를 재확인해야 합니다."
|
|
33
|
+
category: "referential"
|
|
34
|
+
|
|
35
|
+
- code: "DIAG-CONSTRAINT-RATIONALE-01"
|
|
36
|
+
matchers:
|
|
37
|
+
- includes_all: ["Required constraint", "rationale"]
|
|
38
|
+
message_ko: "필수 제약 사항을 무시하려면 이유를 반드시 입력해야 합니다."
|
|
39
|
+
category: "constraint"
|
|
40
|
+
|
|
41
|
+
- code: "DIAG-CONVERGENCE-01"
|
|
42
|
+
matchers:
|
|
43
|
+
- includes: "Convergence blocked"
|
|
44
|
+
message_ko: "수렴 차단 상태입니다. 방향 변경, scope 축소, 또는 보류 중 하나를 선택하세요."
|
|
45
|
+
category: "convergence"
|
|
46
|
+
|
|
47
|
+
- code: "DIAG-COMPILE-RETRY-01"
|
|
48
|
+
matchers:
|
|
49
|
+
- includes: "Compile retry limit"
|
|
50
|
+
message_ko: "compile 재시도 한도(3회)를 초과했습니다. scope를 보류하거나 방향을 재검토하세요."
|
|
51
|
+
category: "compile"
|
|
52
|
+
|
|
53
|
+
- code: "DIAG-CONSTRAINT-INVALIDATE-01"
|
|
54
|
+
matchers:
|
|
55
|
+
- includes: "cannot be invalidated by system alone"
|
|
56
|
+
message_ko: "필수 제약 사항은 시스템이 단독으로 무효화할 수 없습니다. 주체자의 확인이 필요합니다."
|
|
57
|
+
category: "constraint"
|
|
58
|
+
|
|
59
|
+
- code: "DIAG-TARGET-LOCK-01"
|
|
60
|
+
matchers:
|
|
61
|
+
- includes: "Target lock"
|
|
62
|
+
passthrough: true
|
|
63
|
+
category: "target-lock"
|
|
64
|
+
|
|
65
|
+
- code: "DIAG-COMPILE-FAIL-01"
|
|
66
|
+
matchers:
|
|
67
|
+
- includes: "Compile 실패:"
|
|
68
|
+
- includes: "Compile Defense failed"
|
|
69
|
+
message_ko: "구현 명세 생성에 실패했습니다. 에이전트가 구현 계획을 수정한 뒤 재시도합니다."
|
|
70
|
+
category: "compile"
|
|
71
|
+
|
|
72
|
+
- code: "DIAG-STATE-TRANSITION-02"
|
|
73
|
+
matchers:
|
|
74
|
+
- includes_all: ["must be", "state"]
|
|
75
|
+
message_ko: "현재 단계에서 이 작업을 수행할 수 없습니다."
|
|
76
|
+
category: "state-transition"
|
|
77
|
+
|
|
78
|
+
- code: "DIAG-COMPILE-READY-01"
|
|
79
|
+
matchers:
|
|
80
|
+
- includes: "compile_ready is false"
|
|
81
|
+
message_ko: "아직 구현 명세를 생성할 수 없습니다. 제약 사항 결정이 완료되지 않았거나 소스가 변경되었습니다."
|
|
82
|
+
category: "compile"
|
|
83
|
+
|
|
84
|
+
- code: "DIAG-VALIDATION-HASH-01"
|
|
85
|
+
matchers:
|
|
86
|
+
- includes: "validation_plan_hash mismatch"
|
|
87
|
+
message_ko: "검증 계획이 변경되었습니다. compile을 다시 실행해야 합니다."
|
|
88
|
+
category: "validation"
|
|
89
|
+
|
|
90
|
+
- code: "DIAG-VALIDATION-MISSING-01"
|
|
91
|
+
matchers:
|
|
92
|
+
- includes: "no matching injectValidation"
|
|
93
|
+
message_ko: "구현 계획에 누락된 검증 항목이 있습니다. 에이전트가 수정한 뒤 재시도합니다."
|
|
94
|
+
category: "validation"
|
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
---
|
|
2
|
+
version: 2
|
|
3
|
+
last_updated: "2026-04-16"
|
|
4
|
+
source: manual
|
|
5
|
+
status: established
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Accounting Domain — Competency Questions
|
|
9
|
+
|
|
10
|
+
A list of core questions that this domain's system must be able to answer.
|
|
11
|
+
|
|
12
|
+
Classification axis: **Accounting verification concern** — classified by the concern that must be addressed during accounting system review.
|
|
13
|
+
|
|
14
|
+
Priority levels:
|
|
15
|
+
- **P1** — Must be answerable in any accounting system review. Failure indicates a fundamental gap.
|
|
16
|
+
- **P2** — Should be answerable for production systems. Failure indicates a quality gap.
|
|
17
|
+
- **P3** — Recommended for mature systems. Failure indicates a refinement opportunity.
|
|
18
|
+
|
|
19
|
+
## CQ ID System
|
|
20
|
+
|
|
21
|
+
### Prefix Allocation
|
|
22
|
+
|
|
23
|
+
| Prefix | Concern Area | Aligned Sub-Area |
|
|
24
|
+
|--------|-------------|------------------|
|
|
25
|
+
| CQ-DE | Double-Entry Bookkeeping | Double-Entry Bookkeeping |
|
|
26
|
+
| CQ-FS | Financial Statement Structure | Financial Statements |
|
|
27
|
+
| CQ-RR | Revenue Recognition (IFRS 15) | Revenue Recognition |
|
|
28
|
+
| CQ-FI | Financial Instruments (IFRS 9) | Financial Instruments |
|
|
29
|
+
| CQ-LS | Leases (IFRS 16) | Leases |
|
|
30
|
+
| CQ-PC | Period and Closing | Period and Closing |
|
|
31
|
+
| CQ-TX | Tax Accounting | Tax Accounting |
|
|
32
|
+
| CQ-AU | Audit and Internal Controls | Audit and Internal Controls |
|
|
33
|
+
| CQ-CS | Consolidated Accounting | Consolidated Accounting |
|
|
34
|
+
| CQ-DS | Disclosure and Notes | Disclosure and Notes |
|
|
35
|
+
| CQ-AT | Audit Trail (cross-cutting) | Cross-cutting |
|
|
36
|
+
| CQ-PA | Period Attribution (cross-cutting) | Cross-cutting |
|
|
37
|
+
| CQ-MC | Measurement Consistency (cross-cutting) | Cross-cutting |
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## 1. Double-Entry Bookkeeping (CQ-DE)
|
|
42
|
+
|
|
43
|
+
Verifies that double-entry principles are correctly applied throughout transaction recording.
|
|
44
|
+
|
|
45
|
+
- **CQ-DE-01** [P1] Do Debit totals equal Credit totals in every Journal Entry?
|
|
46
|
+
- Inference path: concepts.md §Double-Entry Bookkeeping Core Terms → Accounting Equation → logic_rules.md §Double-Entry Balance Logic
|
|
47
|
+
- Verification criteria: PASS if every journal entry has equal debits and credits. FAIL if any entry is unbalanced
|
|
48
|
+
|
|
49
|
+
- **CQ-DE-02** [P1] Are all accounts used in Journal Entries defined in the chart of accounts?
|
|
50
|
+
- Inference path: structure_spec.md §Chart of Accounts → dependency_rules.md §Referential Integrity → account existence requirement
|
|
51
|
+
- Verification criteria: PASS if every debit/credit account traces to the chart of accounts. FAIL if any journal uses undefined accounts
|
|
52
|
+
|
|
53
|
+
- **CQ-DE-03** [P1] Do journal amounts match General Ledger amounts through the Posting process?
|
|
54
|
+
- Inference path: concepts.md §Double-Entry Bookkeeping Core Terms → Posting → logic_rules.md §Double-Entry Balance Logic
|
|
55
|
+
- Verification criteria: PASS if journal sum per account = ledger balance change. FAIL if any posting discrepancy
|
|
56
|
+
|
|
57
|
+
- **CQ-DE-04** [P1] Is the Trial Balance in balance (total debits = total credits across all accounts)?
|
|
58
|
+
- Inference path: concepts.md §Double-Entry Bookkeeping Core Terms → Trial Balance → logic_rules.md §Double-Entry Balance Logic
|
|
59
|
+
- Verification criteria: PASS if trial balance totals match. FAIL if imbalance (even 1 unit)
|
|
60
|
+
|
|
61
|
+
- **CQ-DE-05** [P2] Are account classifications (5 elements) correctly assigned per Journal Entry?
|
|
62
|
+
- Inference path: concepts.md §Double-Entry Bookkeeping Core Terms → Accounting Equation → structure_spec.md §Chart of Accounts
|
|
63
|
+
- Verification criteria: PASS if every account is one of Assets/Liabilities/Equity/Revenue/Expenses. FAIL if misclassified
|
|
64
|
+
|
|
65
|
+
- **CQ-DE-06** [P2] Do normal balance directions match account types (Assets: Debit; Liabilities/Equity: Credit; Revenue: Credit; Expenses: Debit)?
|
|
66
|
+
- Inference path: concepts.md §Double-Entry Bookkeeping → Debit/Credit → logic_rules.md §Double-Entry Balance Logic
|
|
67
|
+
- Verification criteria: PASS if normal balances match element rules. FAIL if e.g., Cash has credit normal balance
|
|
68
|
+
|
|
69
|
+
- **CQ-DE-07** [P3] Are subsidiary ledgers reconciled to General Ledger control accounts?
|
|
70
|
+
- Inference path: concepts.md §Double-Entry Bookkeeping → Subsidiary Ledger → dependency_rules.md §Inter-Account Dependencies
|
|
71
|
+
- Verification criteria: PASS if subsidiary ledger totals = control account balances. FAIL if unreconciled
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## 2. Financial Statement Structure (CQ-FS)
|
|
76
|
+
|
|
77
|
+
Verifies that financial statements are correctly structured and linked.
|
|
78
|
+
|
|
79
|
+
- **CQ-FS-01** [P1] Does the Statement of Financial Position satisfy Assets = Liabilities + Equity?
|
|
80
|
+
- Inference path: logic_rules.md §Double-Entry Balance Logic → Accounting Equation → structure_spec.md §Financial Statement Structure
|
|
81
|
+
- Verification criteria: PASS if identity holds within rounding tolerance. FAIL if any violation
|
|
82
|
+
|
|
83
|
+
- **CQ-FS-02** [P1] Is the current/non-current classification criterion applied consistently (12-month rule)?
|
|
84
|
+
- Inference path: concepts.md §Financial Statement Terms → logic_rules.md §Classification Rules → IAS 1.66/1.69
|
|
85
|
+
- Verification criteria: PASS if every BS item has current/non-current classification. FAIL if missing or inconsistent
|
|
86
|
+
|
|
87
|
+
- **CQ-FS-03** [P1] Does cash change on the Statement of Cash Flows match the cash change on the Statement of Financial Position?
|
|
88
|
+
- Inference path: dependency_rules.md §Inter-Financial-Statement Linkage → CF-BS cash reconciliation
|
|
89
|
+
- Verification criteria: PASS if reconciliation holds. FAIL if mismatch
|
|
90
|
+
|
|
91
|
+
- **CQ-FS-04** [P1] Does net income on the Statement of Comprehensive Income connect to Retained Earnings change on the Statement of Changes in Equity?
|
|
92
|
+
- Inference path: dependency_rules.md §Inter-Financial-Statement Linkage → IS to SoCE linkage
|
|
93
|
+
- Verification criteria: PASS if net income appears consistently in both statements. FAIL if mismatch
|
|
94
|
+
|
|
95
|
+
- **CQ-FS-05** [P2] Does OCI on the Statement of Comprehensive Income connect to Accumulated OCI change on the Statement of Changes in Equity?
|
|
96
|
+
- Inference path: dependency_rules.md §Inter-Financial-Statement Linkage → OCI to SoCE linkage
|
|
97
|
+
- Verification criteria: PASS if OCI items reconcile. FAIL if mismatch
|
|
98
|
+
|
|
99
|
+
- **CQ-FS-06** [P2] Does closing equity on SoCE match total equity on Statement of Financial Position?
|
|
100
|
+
- Inference path: dependency_rules.md §Inter-Financial-Statement Linkage → SoCE to BS equity
|
|
101
|
+
- Verification criteria: PASS if closing equity matches. FAIL if mismatch
|
|
102
|
+
|
|
103
|
+
- **CQ-FS-07** [P2] Is each line item supported by a trial balance account balance?
|
|
104
|
+
- Inference path: structure_spec.md §Hierarchy Structure Principles → upward aggregation → dependency_rules.md §Referential Integrity
|
|
105
|
+
- Verification criteria: PASS if every statement line traces to account balances. FAIL if unsupported
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## 3. Revenue Recognition (CQ-RR, IFRS 15)
|
|
110
|
+
|
|
111
|
+
- **CQ-RR-01** [P1] Does revenue recognition follow the 5-step IFRS 15 model (contract → performance obligations → transaction price → allocation → recognition)?
|
|
112
|
+
- Inference path: logic_rules.md §Recognition Logic → IFRS 15 5-step → concepts.md §Revenue Recognition Terms
|
|
113
|
+
- Verification criteria: PASS if each revenue contract traces through 5 steps with documentation. FAIL if any step missing or undocumented
|
|
114
|
+
|
|
115
|
+
- **CQ-RR-02** [P1] Is the criterion for over-time vs point-in-time recognition stated per contract?
|
|
116
|
+
- Inference path: concepts.md §Revenue Recognition Terms → Over Time / Point in Time → logic_rules.md §Recognition Logic
|
|
117
|
+
- Verification criteria: PASS if recognition method documented per contract. FAIL if indistinguishable
|
|
118
|
+
|
|
119
|
+
- **CQ-RR-03** [P1] Are expenses recognized in the same period as related revenue (matching principle)?
|
|
120
|
+
- Inference path: logic_rules.md §Recognition Logic → matching principle
|
|
121
|
+
- Verification criteria: PASS if direct matching for identifiable expenses. FAIL if systematic cross-period matching errors
|
|
122
|
+
|
|
123
|
+
- **CQ-RR-04** [P2] Is variable consideration estimated and included in transaction price?
|
|
124
|
+
- Inference path: concepts.md §Revenue Recognition Terms → Variable Consideration → logic_rules.md §Recognition Logic
|
|
125
|
+
- Verification criteria: PASS if variable consideration estimated using expected value or most likely amount. FAIL if ignored
|
|
126
|
+
|
|
127
|
+
- **CQ-RR-05** [P2] Are contract assets and contract liabilities correctly classified when performance and payment are not simultaneous?
|
|
128
|
+
- Inference path: concepts.md §Revenue Recognition Terms → Contract Asset/Liability → dependency_rules.md §Inter-Account Dependencies
|
|
129
|
+
- Verification criteria: PASS if timing differences create proper contract asset/liability. FAIL if misclassified as trade receivable/payable
|
|
130
|
+
|
|
131
|
+
- **CQ-RR-06** [P2] For multi-element contracts, is transaction price allocated by standalone selling price?
|
|
132
|
+
- Inference path: concepts.md §Revenue Recognition Terms → Standalone Selling Price → logic_rules.md §Recognition Logic
|
|
133
|
+
- Verification criteria: PASS if allocation documented. FAIL if allocation ad-hoc or missing
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## 4. Financial Instruments (CQ-FI, IFRS 9)
|
|
138
|
+
|
|
139
|
+
- **CQ-FI-01** [P1] Are financial assets classified (AC/FVOCI/FVTPL) based on business model and SPPI test?
|
|
140
|
+
- Inference path: concepts.md §Financial Instruments Terms → classification criteria → logic_rules.md §Recognition Logic
|
|
141
|
+
- Verification criteria: PASS if classification documented per asset with both tests. FAIL if classification arbitrary
|
|
142
|
+
|
|
143
|
+
- **CQ-FI-02** [P1] Is Expected Credit Loss calculated using forward-looking information?
|
|
144
|
+
- Inference path: concepts.md §Financial Instruments Terms → ECL 3-stage → logic_rules.md §Measurement Logic
|
|
145
|
+
- Verification criteria: PASS if ECL uses forward-looking macro variables. FAIL if only historical loss rates
|
|
146
|
+
|
|
147
|
+
- **CQ-FI-03** [P2] Are ECL stages (1/2/3) tracked per asset?
|
|
148
|
+
- Inference path: concepts.md §Financial Instruments Terms → ECL 3-stage model
|
|
149
|
+
- Verification criteria: PASS if stage transitions documented. FAIL if stages indistinguishable
|
|
150
|
+
|
|
151
|
+
- **CQ-FI-04** [P2] When hedge accounting is applied, is the hedging relationship documented and effectiveness tested?
|
|
152
|
+
- Inference path: concepts.md §Financial Instruments Terms → Hedge Accounting → logic_rules.md §Recognition Logic
|
|
153
|
+
- Verification criteria: PASS if documentation exists and effectiveness retested periodically. FAIL if hedge applied without documentation
|
|
154
|
+
|
|
155
|
+
- **CQ-FI-05** [P3] Is effective interest method correctly applied for AC and FVOCI debt instruments?
|
|
156
|
+
- Inference path: concepts.md §Financial Instruments Terms → Effective Interest Method
|
|
157
|
+
- Verification criteria: PASS if amortisation schedule exists. FAIL if straight-line amortisation used
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## 5. Leases (CQ-LS, IFRS 16)
|
|
162
|
+
|
|
163
|
+
- **CQ-LS-01** [P1] Are Right-of-Use Assets and Lease Liabilities recognized at commencement?
|
|
164
|
+
- Inference path: concepts.md §Lease Terms → ROU asset and lease liability recognition
|
|
165
|
+
- Verification criteria: PASS if both recognized at commencement date. FAIL if off-balance-sheet treatment
|
|
166
|
+
|
|
167
|
+
- **CQ-LS-02** [P1] Are short-term lease (≤12 months) or low-value asset exemptions applied only when criteria met?
|
|
168
|
+
- Inference path: concepts.md §Lease Terms → Short-Term Lease / Low-Value Lease
|
|
169
|
+
- Verification criteria: PASS if exemption applied only to qualifying leases. FAIL if improper exemption
|
|
170
|
+
|
|
171
|
+
- **CQ-LS-03** [P2] Is the discount rate for Lease Liability measurement documented (implicit rate or IBR)?
|
|
172
|
+
- Inference path: concepts.md §Lease Terms → Incremental Borrowing Rate
|
|
173
|
+
- Verification criteria: PASS if rate and basis documented per lease. FAIL if rate undocumented
|
|
174
|
+
|
|
175
|
+
- **CQ-LS-04** [P2] Is ROU asset depreciated over shorter of lease term and useful life?
|
|
176
|
+
- Inference path: concepts.md §Lease Terms → ROU depreciation
|
|
177
|
+
- Verification criteria: PASS if depreciation period matches rule. FAIL if inconsistent
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## 6. Period and Closing (CQ-PC)
|
|
182
|
+
|
|
183
|
+
- **CQ-PC-01** [P1] Are period-end adjusting entries made for accrued revenues, accrued expenses, prepaid expenses, and unearned revenues?
|
|
184
|
+
- Inference path: concepts.md §Period Attribution Terms → 4 accrual types → logic_rules.md §Period Attribution Logic
|
|
185
|
+
- Verification criteria: PASS if all 4 types of adjustments made. FAIL if any missing
|
|
186
|
+
|
|
187
|
+
- **CQ-PC-02** [P1] Are closing entries posted to transfer temporary account balances to Retained Earnings?
|
|
188
|
+
- Inference path: concepts.md §Double-Entry Bookkeeping → Closing Entry → logic_rules.md §Closing Procedures
|
|
189
|
+
- Verification criteria: PASS if revenue/expense accounts zeroed at period end. FAIL if balances carried over
|
|
190
|
+
|
|
191
|
+
- **CQ-PC-03** [P2] Do opening balances (current period) equal closing balances (prior period) for all permanent accounts?
|
|
192
|
+
- Inference path: dependency_rules.md §Period Dependencies → carryover consistency
|
|
193
|
+
- Verification criteria: PASS if every permanent account rolls forward correctly. FAIL if any discontinuity
|
|
194
|
+
|
|
195
|
+
- **CQ-PC-04** [P2] Are depreciation, ECL allowance, and other estimates recorded systematically at period end?
|
|
196
|
+
- Inference path: logic_rules.md §Measurement Logic → systematic allocation
|
|
197
|
+
- Verification criteria: PASS if estimates recorded per documented methodology. FAIL if estimates ad-hoc
|
|
198
|
+
|
|
199
|
+
- **CQ-PC-05** [P2] Are comparative period figures correctly restated when accounting policies change?
|
|
200
|
+
- Inference path: dependency_rules.md §Period Dependencies → comparative restatement → IAS 8
|
|
201
|
+
- Verification criteria: PASS if prior period figures restated for policy changes. FAIL if only prospective applied without justification
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
## 7. Tax Accounting (CQ-TX)
|
|
206
|
+
|
|
207
|
+
- **CQ-TX-01** [P1] Are differences between K-IFRS income and taxable income identified and reconciled?
|
|
208
|
+
- Inference path: concepts.md §Tax Accounting Terms → Tax Adjustment → logic_rules.md §Tax-Accounting Difference Logic
|
|
209
|
+
- Verification criteria: PASS if tax adjustment schedule reconciles. FAIL if income gaps unexplained
|
|
210
|
+
|
|
211
|
+
- **CQ-TX-02** [P1] Are Deferred Tax assets/liabilities recognized for temporary differences?
|
|
212
|
+
- Inference path: concepts.md §Tax Accounting Terms → Temporary Difference → logic_rules.md §Tax-Accounting Difference Logic
|
|
213
|
+
- Verification criteria: PASS if all temporary differences produce deferred tax. FAIL if ignored
|
|
214
|
+
|
|
215
|
+
- **CQ-TX-03** [P2] Is recoverability of Deferred Tax Assets assessed?
|
|
216
|
+
- Inference path: concepts.md §Tax Accounting Terms → Deferred Tax Asset → recognition threshold
|
|
217
|
+
- Verification criteria: PASS if DTA recognized only when future taxable income probable. FAIL if DTA recognized without assessment
|
|
218
|
+
|
|
219
|
+
- **CQ-TX-04** [P2] Are permanent differences correctly excluded from deferred tax?
|
|
220
|
+
- Inference path: concepts.md §Tax Accounting Terms → Permanent Difference
|
|
221
|
+
- Verification criteria: PASS if permanent differences identified and excluded. FAIL if misclassified as temporary
|
|
222
|
+
|
|
223
|
+
- **CQ-TX-05** [P3] Does the effective tax rate reconciliation explain deviations from statutory rate?
|
|
224
|
+
- Inference path: concepts.md §Tax Accounting Terms → Effective Tax Rate
|
|
225
|
+
- Verification criteria: PASS if reconciliation disclosed in notes. FAIL if effective rate unexplained
|
|
226
|
+
|
|
227
|
+
---
|
|
228
|
+
|
|
229
|
+
## 8. Audit and Internal Controls (CQ-AU)
|
|
230
|
+
|
|
231
|
+
- **CQ-AU-01** [P1] Is an audit trail traceable from source document to financial statement presentation?
|
|
232
|
+
- Inference path: domain_scope.md §Cross-Cutting Concerns → Audit Trail → structure_spec.md §Verification Structure
|
|
233
|
+
- Verification criteria: PASS if every statement line can be traced back to supporting transactions. FAIL if any trace breaks
|
|
234
|
+
|
|
235
|
+
- **CQ-AU-02** [P1] Are bases for key estimates (depreciation, provisions, fair value) documented?
|
|
236
|
+
- Inference path: concepts.md §Audit and Internal Control Terms → Audit Evidence → logic_rules.md §Measurement Logic
|
|
237
|
+
- Verification criteria: PASS if each estimate has documented methodology. FAIL if estimates unsupported
|
|
238
|
+
|
|
239
|
+
- **CQ-AU-03** [P1] Are related party transactions identified and properly disclosed?
|
|
240
|
+
- Inference path: domain_scope.md §Key Sub-Areas → Disclosure and Notes → concepts.md §Interpretation Principles
|
|
241
|
+
- Verification criteria: PASS if related parties identified and transactions disclosed. FAIL if treated as arm's-length
|
|
242
|
+
|
|
243
|
+
- **CQ-AU-04** [P2] Do internal controls address the 5 COSO components?
|
|
244
|
+
- Inference path: domain_scope.md §Reference Standards/Frameworks → COSO Internal Control Framework
|
|
245
|
+
- Verification criteria: PASS if all 5 components (environment, risk assessment, control activities, information/communication, monitoring) documented. FAIL if any component absent
|
|
246
|
+
|
|
247
|
+
- **CQ-AU-05** [P2] Are materiality thresholds defined for the audit?
|
|
248
|
+
- Inference path: concepts.md §Audit and Internal Control Terms → Material Misstatement
|
|
249
|
+
- Verification criteria: PASS if threshold documented (e.g., 5% of pre-tax income). FAIL if threshold undefined
|
|
250
|
+
|
|
251
|
+
- **CQ-AU-06** [P3] Are Key Audit Matters identified and reported?
|
|
252
|
+
- Inference path: concepts.md §Audit and Internal Control Terms → KAM (ISA 701)
|
|
253
|
+
- Verification criteria: PASS if KAM section exists in audit report. FAIL if KAM absent
|
|
254
|
+
|
|
255
|
+
---
|
|
256
|
+
|
|
257
|
+
## 9. Consolidated Accounting (CQ-CS)
|
|
258
|
+
|
|
259
|
+
- **CQ-CS-01** [P1] Is consolidation scope determined by control (3 elements of IFRS 10)?
|
|
260
|
+
- Inference path: concepts.md §Consolidation Terms → Control → logic_rules.md §Consolidation Logic
|
|
261
|
+
- Verification criteria: PASS if control test documented (power + variable returns + link). FAIL if scope based only on ownership %
|
|
262
|
+
|
|
263
|
+
- **CQ-CS-02** [P1] Are intercompany transactions fully eliminated in consolidation?
|
|
264
|
+
- Inference path: concepts.md §Consolidation Terms → Intercompany Transactions → logic_rules.md §Consolidation Logic
|
|
265
|
+
- Verification criteria: PASS if intercompany sales/purchases, loans, dividends eliminated. FAIL if double-counted
|
|
266
|
+
|
|
267
|
+
- **CQ-CS-03** [P2] Are unrealized profits on intercompany inventory eliminated?
|
|
268
|
+
- Inference path: concepts.md §Consolidation Terms → Unrealized Profit
|
|
269
|
+
- Verification criteria: PASS if unrealized profit eliminated until external sale. FAIL if included in consolidated earnings
|
|
270
|
+
|
|
271
|
+
- **CQ-CS-04** [P2] Is Non-controlling Interest separately presented and correctly calculated?
|
|
272
|
+
- Inference path: concepts.md §Consolidation Terms → Non-controlling Interest
|
|
273
|
+
- Verification criteria: PASS if NCI shown separately in equity and attributed share of net income. FAIL if combined with parent equity
|
|
274
|
+
|
|
275
|
+
- **CQ-CS-05** [P2] For business combinations, is purchase price allocated to identifiable assets/liabilities at fair value?
|
|
276
|
+
- Inference path: concepts.md §Consolidation Terms → Purchase Price Allocation → IFRS 3
|
|
277
|
+
- Verification criteria: PASS if PPA documented with fair values. FAIL if excess lumped entirely into goodwill
|
|
278
|
+
|
|
279
|
+
- **CQ-CS-06** [P2] Is goodwill tested for impairment annually?
|
|
280
|
+
- Inference path: concepts.md §Consolidation Terms → Goodwill → IAS 36 impairment
|
|
281
|
+
- Verification criteria: PASS if annual impairment test documented. FAIL if goodwill tested only when impairment indicator
|
|
282
|
+
|
|
283
|
+
- **CQ-CS-07** [P3] Are associates and joint ventures accounted for using equity method?
|
|
284
|
+
- Inference path: concepts.md §Consolidation Terms → Equity Method
|
|
285
|
+
- Verification criteria: PASS if 20-50% ownership uses equity method. FAIL if treated as available-for-sale
|
|
286
|
+
|
|
287
|
+
---
|
|
288
|
+
|
|
289
|
+
## 10. Disclosure and Notes (CQ-DS)
|
|
290
|
+
|
|
291
|
+
- **CQ-DS-01** [P1] Are significant accounting policies described in the notes?
|
|
292
|
+
- Inference path: domain_scope.md §Key Sub-Areas → Disclosure and Notes → IAS 1.117
|
|
293
|
+
- Verification criteria: PASS if policies for significant items (revenue, inventory, PP&E, leases, financial instruments) disclosed. FAIL if policies missing
|
|
294
|
+
|
|
295
|
+
- **CQ-DS-02** [P1] Are sources and sensitivities of estimation uncertainty disclosed?
|
|
296
|
+
- Inference path: concepts.md §Interpretation Principles → Estimates require documentation
|
|
297
|
+
- Verification criteria: PASS if critical estimates identified with sensitivity analysis. FAIL if estimates silent
|
|
298
|
+
|
|
299
|
+
- **CQ-DS-03** [P2] Are contingent liabilities disclosed with probability and amount estimates?
|
|
300
|
+
- Inference path: domain_scope.md §Key Sub-Areas → Disclosure and Notes → IAS 37
|
|
301
|
+
- Verification criteria: PASS if contingent liabilities disclosed per IAS 37. FAIL if off-balance-sheet items hidden
|
|
302
|
+
|
|
303
|
+
- **CQ-DS-04** [P2] Are related party transactions disclosed with party identity and transaction nature?
|
|
304
|
+
- Inference path: domain_scope.md §Key Sub-Areas → Disclosure and Notes → IAS 24
|
|
305
|
+
- Verification criteria: PASS if IAS 24 disclosures complete. FAIL if related party obscured
|
|
306
|
+
|
|
307
|
+
- **CQ-DS-05** [P3] Are subsequent events (post-reporting period) disclosed?
|
|
308
|
+
- Inference path: IAS 10 subsequent events
|
|
309
|
+
- Verification criteria: PASS if material post-reporting events disclosed. FAIL if adjusting events missed
|
|
310
|
+
|
|
311
|
+
---
|
|
312
|
+
|
|
313
|
+
## 11. Audit Trail (CQ-AT) — Cross-cutting
|
|
314
|
+
|
|
315
|
+
- **CQ-AT-01** [P1] Can every financial statement line be traced back to journal entries?
|
|
316
|
+
- Inference path: domain_scope.md §Cross-Cutting Concerns → Audit Trail → structure_spec.md §Hierarchy Structure Principles
|
|
317
|
+
- Verification criteria: PASS if statement-to-journal trace exists. FAIL if any gap
|
|
318
|
+
|
|
319
|
+
- **CQ-AT-02** [P1] Can every journal entry be traced to a source document?
|
|
320
|
+
- Inference path: concepts.md §Interpretation Principles → Audit Evidence
|
|
321
|
+
- Verification criteria: PASS if every entry has document reference. FAIL if entries without support
|
|
322
|
+
|
|
323
|
+
- **CQ-AT-03** [P2] Are all modifications to prior records logged with reason and authorization?
|
|
324
|
+
- Inference path: structure_spec.md §Verification Structure → adjusting entries require authorization
|
|
325
|
+
- Verification criteria: PASS if modifications logged. FAIL if silent overwrites
|
|
326
|
+
|
|
327
|
+
---
|
|
328
|
+
|
|
329
|
+
## 12. Period Attribution (CQ-PA) — Cross-cutting
|
|
330
|
+
|
|
331
|
+
- **CQ-PA-01** [P1] Are transactions recorded in the correct accounting period per accrual basis?
|
|
332
|
+
- Inference path: concepts.md §Period Attribution Terms → logic_rules.md §Period Attribution Logic
|
|
333
|
+
- Verification criteria: PASS if economic event drives period attribution. FAIL if cash timing drives attribution
|
|
334
|
+
|
|
335
|
+
- **CQ-PA-02** [P2] Does cutoff testing verify period boundary transactions?
|
|
336
|
+
- Inference path: concepts.md §Audit and Internal Control Terms → Management Assertion (cutoff)
|
|
337
|
+
- Verification criteria: PASS if cutoff tests performed. FAIL if period boundaries unverified
|
|
338
|
+
|
|
339
|
+
---
|
|
340
|
+
|
|
341
|
+
## 13. Measurement Consistency (CQ-MC) — Cross-cutting
|
|
342
|
+
|
|
343
|
+
- **CQ-MC-01** [P1] Are measurement bases (historical cost, fair value, amortised cost) consistently applied per accounting policy?
|
|
344
|
+
- Inference path: concepts.md §Accounting Policy Choices → logic_rules.md §Measurement Logic
|
|
345
|
+
- Verification criteria: PASS if measurement basis documented per item class. FAIL if ad-hoc measurement
|
|
346
|
+
|
|
347
|
+
- **CQ-MC-02** [P2] When measurement basis changes, is the change retrospectively applied per IAS 8?
|
|
348
|
+
- Inference path: dependency_rules.md §Period Dependencies → comparative restatement
|
|
349
|
+
- Verification criteria: PASS if retrospective application documented. FAIL if prospective without disclosure
|
|
350
|
+
|
|
351
|
+
- **CQ-MC-03** [P2] Is the Fair Value hierarchy (Level 1/2/3) disclosed per fair-valued item?
|
|
352
|
+
- Inference path: concepts.md §Financial Statement Terms → Fair Value → IFRS 13
|
|
353
|
+
- Verification criteria: PASS if hierarchy disclosed. FAIL if level not identifiable
|
|
354
|
+
|
|
355
|
+
---
|
|
356
|
+
|
|
357
|
+
## Coverage Verification
|
|
358
|
+
|
|
359
|
+
| Area | CQ Count | P1 | P2 | P3 |
|
|
360
|
+
|---|---|---|---|---|
|
|
361
|
+
| Double-Entry Bookkeeping (CQ-DE) | 7 | 4 | 2 | 1 |
|
|
362
|
+
| Financial Statement Structure (CQ-FS) | 7 | 4 | 3 | 0 |
|
|
363
|
+
| Revenue Recognition (CQ-RR) | 6 | 3 | 3 | 0 |
|
|
364
|
+
| Financial Instruments (CQ-FI) | 5 | 2 | 2 | 1 |
|
|
365
|
+
| Leases (CQ-LS) | 4 | 2 | 2 | 0 |
|
|
366
|
+
| Period and Closing (CQ-PC) | 5 | 2 | 3 | 0 |
|
|
367
|
+
| Tax Accounting (CQ-TX) | 5 | 2 | 2 | 1 |
|
|
368
|
+
| Audit and Internal Controls (CQ-AU) | 6 | 3 | 2 | 1 |
|
|
369
|
+
| Consolidated Accounting (CQ-CS) | 7 | 2 | 4 | 1 |
|
|
370
|
+
| Disclosure and Notes (CQ-DS) | 5 | 2 | 2 | 1 |
|
|
371
|
+
| Audit Trail (CQ-AT) | 3 | 2 | 1 | 0 |
|
|
372
|
+
| Period Attribution (CQ-PA) | 2 | 1 | 1 | 0 |
|
|
373
|
+
| Measurement Consistency (CQ-MC) | 3 | 1 | 2 | 0 |
|
|
374
|
+
| **Total** | **65** | **30** | **29** | **6** |
|
|
375
|
+
|
|
376
|
+
## Related Documents
|
|
377
|
+
|
|
378
|
+
- domain_scope.md — Sub-area to CQ section mapping, bias detection criteria
|
|
379
|
+
- logic_rules.md — Recognition, measurement, balance logic, closing procedures
|
|
380
|
+
- structure_spec.md — Financial statement structure, chart of accounts, verification structure
|
|
381
|
+
- dependency_rules.md — Inter-statement linkage, referential integrity
|
|
382
|
+
- concepts.md — Term definitions, synonym mappings, interpretation principles
|
|
383
|
+
- extension_cases.md — Scenarios for advanced questions
|
|
384
|
+
- conciseness_rules.md — Redundancy patterns
|