Knowledge Harness
At SimpleModeling, we maintain BoK (Body of Knowledge), a repository of knowledge described in CML (Cozy Modeling Language) and natural-language documents. A Knowledge Harness uses the terms, relationships, and rules defined in BoK to constrain requirements and design. Proposals are constructed from those definitions, reviewed for inconsistencies, and kept from acceptance until the inconsistencies are resolved.
Introducing BoK
BoK stores knowledge described in CML and natural-language documents so that people and AI can share and reuse it. Natural-language documents describe business terminology, rules, requirements, scenarios, design intent, and the reasons for decisions. CML integrates natural-language explanations with Object Model definitions.
Documents, glossaries, and model definitions are connected through terms, identifiers, and references. People read this content as HTML; AI refers to the required knowledge through MCP and other interfaces. Converting Literate Models and Object Models into Knowledge Models while retaining correspondence with the original descriptions allows the same knowledge to inform multiple development efforts and deliverables.
BoK holds both shared development knowledge and business knowledge specific to a customer.
-
Shared development knowledge: terminology, modeling concepts, design policies, and development patterns.
-
Customer-specific business knowledge: term meanings, business rules, applicability conditions, and agreed reasons for decisions. In the Order A example, this includes the meaning of credit approval and the rule requiring the entire order to ship together.
Related article: BoK Building. See BoK Building for its document structure, organization through glossaries and references, and delivery to people and AI. This article explains how development proceeds from that repository and how requirements and design are kept consistent with its knowledge.
Development Using BoK Knowledge
People and AI start from knowledge in BoK, make requirements concrete, construct designs and models, and develop the implementation. They derive necessary conditions from business descriptions and scenarios and consult the corresponding model definitions and component contracts. Cozy transforms executable CML models into programs, configuration, and documentation, which are combined with components and any necessary supplementary implementation.

Figure 1. Development using knowledge from BoK
Natural-language documents and CML in BoK provide the starting point for requirements, design, models, and implementation. Prototypes are reviewed with the customer, and the resulting knowledge and reasons for decisions are returned to BoK.
Table 1. Developing from knowledge stored in BoK
| Descriptions stored in BoK | Use in development | Resulting deliverables |
|---|---|---|
|
Business descriptions, terms, and rules in natural language |
Confirm meaning and applicability; derive necessary conditions |
Requirements and acceptance conditions |
|
Requirements, scenarios, and decision rationale |
Make responsibilities, operations, states, and constraints concrete |
Design and Object Models |
|
CML model definitions |
Generate programs, configuration, and documentation with Cozy |
Implementation, configuration, and manuals |
The following checks apply the framework in Table 1 to order processing and shipping.
-
Check requirements: determine whether the customer’s word "approved" refers to credit approval or inventory allocation.
-
Make the design concrete: if full allocation is required, consider models and components that can enforce it.
-
Connect implementation and confirmation: generate from the model, combine components and supplementary implementation, and return findings from customer review of the prototype to BoK.
Knowledge in one repository is reused to examine requirements, create models, implement software, and generate documentation. Requirements and decision rationale obtained through customer review are also returned to BoK as a basis for later development. The next section explains how the harness keeps this development consistent with the original knowledge.
Literate Descriptions and Knowledge Transformation
A Literate Model shares term meanings, business rules, intent, and decision rationale with the customer. CML is also a Literate Model: it integrates natural-language explanations and Object Model definitions. Information is shared with the customer in natural language while the Object Model is described within the same Literate Model.

Figure 2. Cooperation among Literate, Object, and Knowledge Models
Literate Models share information with the customer; CML integrates natural language with Object Model definitions. Both Literate Model and Object Model content are converted into a Knowledge Model and related to the original descriptions through common terms and identifiers.
Table 2. Relationships among the three models
| Model | Main content | Credit approval example |
|---|---|---|
|
Shares information with the customer through natural language, diagrams, and examples. CML is also a Literate Model integrating natural language and Object Model definitions. |
Describes the meaning and rationale of approval together with its model definition |
|
|
Represents structure, behavior, and constraints. Its executable portion is described in CML, a Literate Model. |
Defines an order’s approval state, approval operation, and shipping conditions |
|
|
Knowledge Model |
Converts Literate and Object Model content into concepts, semantic relationships, rules, rationale, and sources that AI can reference |
Retains correspondence among the approval description, model elements, rules, and rationale |
Both the natural-language content of a Literate Model and the Object Model described in CML are converted into a Knowledge Model. Aligning terms, subjects, and applicability makes it possible to detect contradictions between natural-language rules and model conditions during conversion. Retaining correspondence with the original descriptions supports checking consistency between customer agreement and model definitions and returning issues for correction.
The connection is based on concept meanings defined in the glossary and stable identifiers. Starting from the term "credit approval," one can trace the natural-language description confirmed by the customer, CML approval states and operations, and Knowledge Model rules and rationale. Intent and history remain in the Literate Model, connecting descriptions and conversion results through the same terminology.
Related article: Knowledge Modeling for AI Collaboration. See Knowledge Modeling for AI Collaboration for the three models, the glossary, and their use in model definition, review, and queries.
How Knowledge Acts as a Harness
When development proceeds from BoK to requirements, design, models, and implementation, decisions can contradict the original business knowledge or omit necessary conditions. The Knowledge Harness makes stored knowledge serve as constraints during creation and as criteria during review, preventing acceptance until contradictions and omissions are resolved.
Rejecting Inconsistent Requirements and Designs
If BoK requires full allocation before shipment, requirements and design are constructed from that rule. If AI nevertheless proposes that credit approval alone should permit shipment, review identifies the contradiction and the missing full-allocation condition. Both using knowledge during creation and checking the resulting proposal are necessary.
Table 3. Construct from BoK and review for contradictions and omissions
| Stage | Use of BoK | Harness function |
|---|---|---|
|
Creating requirements and design |
Construct proposals using BoK terms, relationships, and rules |
Make requirements concrete and constrain the choice of models and components |
|
Review |
Compare the resulting requirements and design with the original knowledge |
Find misinterpretations, rule contradictions, and missing conditions |
|
Addressing findings |
Connect the relevant rule to the affected part of the proposal |
Correct requirements and design. If the knowledge itself must change, agree with the customer, update BoK, and review again. |
Combining creation and review as shown in Table 3 prevents acceptance of proposals that contradict the knowledge.
Building on BoK
BoK is used from the start, when requirements are made concrete and models and components are selected. Agreed business meanings are expressed as types, states, rules, and public contracts. These definitions constrain the choices available to AI when it constructs a proposal.
Establishing Meaning, Rules, and Scope
Domain terms in Use Case Scenarios and specification text presented to AI are limited to terms defined in BoK. Relationships among terms and business rules must also follow BoK definitions. Specify the applicable business context, version, time, and agreement record and provide these as the criteria for proposal creation.
Compare terms, relationships, and rules to align scenarios and specifications with BoK.
-
Terms: within the problem domain, use only BoK-defined terms and preserve their defined meanings.
-
Relationships: preserve the defined subjects and direction. Do not replace the order in a relationship that allocates inventory to that order with a different subject.
-
Rules: check scenario conditions, order, and exceptions, as well as design constraints, against BoK.
Do not add undefined terms, relationships, or rules only to a requirement or specification. Agree on the change with the customer and update BoK. Then recheck requirements and design; proposals with unresolved inconsistencies are not accepted.
For Order A, fix the following meanings, rules, and applicability.
-
Meaning: credit approval is a decision permitting the credit limit to be exceeded; it does not mean inventory has been reserved.
-
Rule: all ten units of Order A ship together. An earlier shipment of only six units is not allowed.
-
Applicability: identify the rule and version adopted for this engagement; do not mix in conditions from other engagements or earlier versions.
Connecting Knowledge to Model Constraints
During requirements and design work, derive necessary conditions from agreed rules and express them in model states, constraints, and the public contracts of components. Keep the reasons for decisions in the Literate Model and express formalizable conditions in CML or another model notation. This correspondence supports Cozy generation and provides a path back to the original rules during later review.
Table 4. Turning Order A’s business knowledge into requirements and design constraints
| Knowledge in BoK | Required conditions | Design constraints |
|---|---|---|
|
Credit approval and allocation are separate decisions |
Both states can be checked separately |
Keep approval and allocation states separate |
|
Hold shipment until the full quantity is available |
Do not ship a ten-unit order with only six units |
Make full allocation a precondition of shipment |
|
Allocation reserves inventory for an order |
An inventory query alone does not establish allocation |
Choose an operation that accepts an order and quantity and returns an allocation result |
Reviewing Against BoK

Figure 3. How terms, relationships, and rules constrain requirements and design
BoK terms constrain vocabulary and model-element meanings; relationships constrain connections among subjects and model associations; rules constrain requirement conditions and design preconditions. Establish this correspondence during creation and use the same correspondence in review.
Table 5. Connecting review findings to correction and acceptance
| Review result | Disposition | Next action |
|---|---|---|
|
Contradiction with a business rule or a missing condition |
Do not accept |
Identify the rule and affected part; correct and review again |
|
Rationale or applicability is insufficient |
Hold acceptance |
Confirm with the customer or knowledge owner |
|
Findings resolved and required checks completed |
Proceed to acceptance |
Retain correspondence between the adopted rules and decision |
Review maps requirements and design, including scenarios and specifications presented to AI, back to the adopted BoK terms, relationships, and rules. Findings identify undefined terms, incorrect relationships, rule contradictions, or missing conditions, citing both the BoK definition and the affected part. Review also checks discrepancies introduced when making models and components concrete. Proposals with unresolved findings are not accepted.
Reviewing Requirements
For an order of ten units with six in stock, review the requirement that credit approval alone should permit shipment. It omits the full-allocation condition, so it is not finalized. Identify the violated rule and return the requirement for correction to include allocation.
Decide whether to accept the requirement by checking shipping conditions and identifying questions for the customer.
-
Return for correction: a proposal in which "approved" alone makes an order eligible for shipment.
-
Required for acceptance: confirm both credit approval and full allocation.
-
If conditions are unsettled: ask the customer whether partial shipments are allowed. Do not finalize an AI assumption before agreement.
Reviewing Designs
Writing full allocation into a requirement is insufficient if the design selects only an inventory-query component. A public contract that merely returns stock levels does not establish that inventory has been reserved for Order A. Filter template and component candidates using the constraints derived from BoK.
Check states, component contracts, and connections to establish whether the design can implement full allocation.
-
State consistency: does the design distinguish credit approval from allocation?
-
Contract coverage: does the component accept an order and required quantity and return allocation success or failure?
-
Condition preservation: does the connection confirm successful full allocation before shipment?
Rechecking After Changes
Requirements and design that were once consistent must be rechecked when their basis changes. The harness preserves meanings and conditions after changes as well as at the initial use of knowledge.
Returning Inconsistencies for Correction
Stable identifiers connecting terms and rules to requirements, model elements, and acceptance examples make change impact traceable. If an allocation-state model element changes, shipping conditions and acceptance examples that reference the old element return to review. RDF can represent these correspondences and support tracing references.
Identify where changed knowledge is used and organize the actions needed before reconfirmation.
-
Locate: trace the changed rule to affected requirements, models, component connections, and acceptance examples.
-
Return: hold acceptance of affected items with unresolved broken references or missing conditions.
-
Recheck: verify correspondences and constraints after correction and reconfirm the necessary acceptance examples.
Updating Knowledge with Customer Agreement
Investigating a contradiction with requirements or design may reveal that BoK itself must be updated. Review the Literate Model's natural-language HTML with the customer and agree on the update. Conversion of Literate and Object Model content into a Knowledge Model also detects contradictions in the described knowledge.

Figure 4. Updating BoK through customer agreement and contradiction checks
Review natural language as HTML with the customer, then convert Literate and Object Model content into a Knowledge Model. Detect contradictions within the knowledge and between natural language and model definitions, and return them to the original descriptions. Accepting an update only after resolution makes this process a harness.
Customer Confirmation of Literate Descriptions
Customers can inspect knowledge in BoK as natural-language Literate Model descriptions rendered as HTML. They read rules and rationale in business language, compare concrete examples, and agree on new understanding and changes. Customer confirmation does not require directly editing the Knowledge Model's internal representation.
The following steps present an update to the customer and retain confirmation and agreement in the Literate Model.
-
Describe in natural language: state what changes, why, and which business context and time it applies to.
-
Confirm with the customer: review term meanings and business rules in HTML and test conditions using concrete examples such as Order A.
-
Record agreement: retain the confirmed meanings, rules, and reasons for change in the Literate Model.
Detecting Description and Definition Conflicts
Conversion of Literate and Object Model content into a Knowledge Model can detect contradictions within the knowledge and between natural-language explanations and model definitions. Comparing rules associated with the same terms, identifiers, subjects, and applicability reveals differences between the description shared with the customer and the executable definitions.
Suppose the agreed natural-language rule requires full allocation before shipment, but the CML shipping operation permits shipment on credit approval alone. These conditions disagree on whether an order for ten units may ship with only six in stock. During conversion, compare them as conditions of the same shipping operation and return the conflicting natural-language and CML definitions for correction.
Table 6. Detecting contradictions between natural language and model definitions during conversion
| Subject | Shipping conditions | Check during conversion |
|---|---|---|
|
Natural language shared with the customer |
Credit approval and full allocation are required |
Associate the agreed conditions with common terms and applicability |
|
Object Model definition in CML |
Credit approval alone permits shipment |
Allows shipment before full allocation, contradicting the natural-language rule |
|
Conversion into a Knowledge Model |
Compare both sets of conditions |
Return findings to the relevant descriptions and definitions; hold update acceptance until resolution |
Return each detected contradiction with links to its natural-language and CML definitions. Correct errors in the descriptions or definitions; if the business rule itself must change, reconfirm it with the customer. Convert both again and check that the contradiction is resolved. Detection covers inconsistencies in conditions and relationships that have been represented in the Knowledge Model and can be checked.
Accepting Consistent Knowledge Updates
Customer confirmation and agreement, together with resolution of contradictions detected within the knowledge or between natural language and model definitions, are acceptance conditions for an update. Do not finalize a BoK update with unresolved findings; return to correction and conversion. Reflect the consistent Literate, Object, and Knowledge Models, then revise and review the affected requirements and design using the updated knowledge.
Connecting Checks to Admission
Table 7. Three roles required for a Knowledge Harness
| Role | Action | Required conditions |
|---|---|---|
|
Provide knowledge |
Make BoK, models, and component contracts referenceable |
Preserve source, version, and applicability |
|
Review and check |
Check requirement/design discrepancies and knowledge contradictions |
Tools check formalized conditions; people check meaning |
|
Control acceptance |
Do not accept inconsistent proposals |
Make inspection and confirmation mandatory |
To implement the roles in Table 7, confirm the division of checking responsibilities and the connection to acceptance control.
-
Checking responsibilities: tools inspect formalized conditions; people assess meaning, validity, and conditions that have not been formalized. Unchecked conditions are not treated as satisfied.
-
Application check: the acceptance control described here is a design requirement for the Knowledge Harness. MCP access and RDF representation alone do not establish it. Confirm which conditions can be checked and how those checks connect to the acceptance path.
This episode has focused on finalizing requirements and design. Enforcing the agreed conditions when business state changes connects to the Runtime Harness in Episode 7. Observation and evaluation of execution results continue in Episodes 9 and 10.
Summary
The Knowledge Harness preserves consistency with BoK in three situations.
-
Requirements and design: construct proposals from BoK terms, relationships, rules, and applicability conditions.
-
Review: compare proposals with BoK, find contradictions, missing conditions, and discrepancies in realization, and prevent acceptance until they are resolved.
-
Change: when knowledge itself must change, agree with the customer, update BoK, and correct and review the affected requirements and design again.
References
Glossary
- CML (Cozy Modeling Language)
-
CML (Cozy Modeling Language) is the SimpleModeling formal modeling language for describing the Executable Model portion of an Object Model that connects to program generation and execution.
- BoK (Body of Knowledge)
-
At SimpleModeling, the core knowledge system for contextual sharing is called the BoK (Body of Knowledge). The goal of building a BoK is to enable knowledge sharing, education, AI support, automation, and decision-making assistance.
- SimpleModeling
-
SimpleModeling is a modeling-centered software development methodology and technology system for constructing a Domain Model from Knowledge, formalizing it in CML, realizing it as executable software through Cozy and AI, and running it on Textus.
- Constraint
-
In UML, a Constraint is a condition or restriction expressed in natural language or a machine-readable language to declare part of the Semantics of one or more Model Elements. Its evaluation yields a Boolean value and has no side effects.
- Object Model
-
Undefined
- Glossary
-
A Glossary is a knowledge resource that manages the names, meanings, boundaries, synonyms, and identifiers of terms used in a subject domain. It provides a common foundation for participants to use the same terms with the same meanings.
- Identifier
-
An Identifier is a value used to refer to a subject with Identity or to a correlation subject and distinguish it from others. An Identifier may represent Identity, but it is not itself the meaning by which the subject remains the same over time.
- Model Context Protocol (MCP)
-
The Model Context Protocol (MCP) is an open protocol for connecting applications that use generative AI with external data sources and tools and for providing context and capabilities in a standardized form.
- Knowledge Model
-
A Knowledge Model structures the concepts, semantic relationships, classifications, rules, evidence, sources, and related knowledge in a SimpleModeling Model primarily so that generative AI can retrieve, explore, relate, and interpret them.
- Literate Model
-
Undefined
- Object
-
An Object is an Instance classified by a Class or another Classifier and may have structure, State, and Behavior. It is treated as an individual that can be referred to separately from other Instances of the same Classifier.
- Model
-
A Model is an abstraction that represents a subject according to a particular Purpose and Concern so that it can be understood, reasoned about, evaluated, or constructed. It is not the subject itself; it preserves the elements, relationships, and meanings required for its purpose.
- Cozy
-
Cozy is the SimpleModeling toolchain that analyzes Models expressed in CML and other DSLs and transforms them into realization artifacts such as programs, configuration, and documentation.
- State
-
In UML, a State models a situation during which an invariant condition holds. The current State of an Object may determine accepted Events and Operations, applicable Constraints, and possible next Transitions.
- Responsibility
-
A Responsibility is an obligation stating what an Object or Role must know, decide, perform, or protect. It assigns ownership of rules and Behavior, not merely structural information.
- Operation
-
In UML, an Operation is a Behavioral Feature of a Classifier that specifies the name, type, Parameters, and Constraints for invoking associated Behavior. The Operation specifies an invocation contract, while a Method or another Behavior realizes it.
- Knowledge Modeling
-
Undefined
- Collaboration
-
In UML, a Collaboration is a Classifier describing a structure of participant Roles that perform specialized functions and collectively accomplish desired functionality.
- Use Case
-
In UML, a Use Case is a Model Element that specifies a set of Actions performed by a subject to yield an observable result of value to an Actor or other stakeholder.
- RDF
-
A W3C-standardized data model that represents information as subject–predicate–object triples.