Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Thirteen Coupling Patterns

The catalogue in Handschuh’s Hybrid AI Patterns groups patterns by what crosses the model/rules boundary, who controls the process, how reasoning is shared, and how knowledge changes over time. Numbers retain the handbook’s identities, including patterns 12 and 13 in their conceptual groups.

This is an implementation-oriented guide. The complete catalogue and its measurements remain in the course reading.

At the boundary

PatternUse it whenWhat the rules must decide
1. Model as SensorFacts are expressed in documents, speech or other unstructured inputWhich extracted values have sufficient evidence and may become facts
2. Model as AuthorA policy text needs a proposed formalizationWhether a draft passes syntax, vocabulary and regression checks before a person adopts it
3. Model as TranslatorA person asks a question or needs an explanation in ordinary languageWhether a proposed query may run and whether the answer stays tied to the symbolic result
12. Model Selects, Rules WriteDisplayed passages and values must be exactWhether selected IDs identify permitted source passages; deterministic code copies their content

For Sensor, retain the source and quote and make the checks part of acceptance. The extraction example uses groundIn, quoteFound and valueQuoted. A model’s confidence cannot replace that evidence, and an exact quote still needs an appropriate interpretation.

For Author, use hidden cases and allowed rule heads to test a candidate in isolation. A passing check offers a draft for adoption; it is not an automatic policy change. The public export omits the handbook’s _checkCandidate implementation.

For Translator, constrain the formal vocabulary and operations before execution. Check the proposed query and ground the wording of the response in the actual result and explanation. A plausible natural-language answer is not evidence that the underlying query was correct.

For Selects, Rules Write, ask the model for IDs rather than rewritten source text. Check them and assemble the answer from retained passages or facts. Exact copying prevents textual drift but does not prevent selection of an irrelevant passage.

Control

PatternUse it whenWhat the rules must decide
4. Model Proposes, Rules DisposeA model proposes actions with external effectsAdmit, refuse or narrow the proposal based on current permissions and evidence
5. Rules Steer the ModelA protocol has explicit steps and stopping conditionsWhich step is active, what context it sees, and what may happen next
6. Critique and RepairA checkable reply fails a conditionWhat feedback to return, how many attempts are allowed, and when repair has stalled
7. Division by CompetenceSome cases can be decided formally while others remain ambiguousWhich cases the rules settle and which require another reader or a person
13. Fail-Safe UnionSeveral checks assess one case and an overly permissive result is costlyCombine verdicts under an explicit order; stricter evidence can only tighten the result

For Proposes, Rules Dispose, permit effects only after checking the current state. Completion requires recorded evidence, not a model declaring itself finished. Include action scope and revision in the decision.

For Steer, keep transitions and context selection in the policy. Models can phrase a question or judge an answer without choosing the next step. The public dialogue driver supplies this structure.

For Repair, return the actual failed check. Use a new attempt identity and a fixed bound. Repeating the same unresolved failure must eventually stop or hand over; repair must not silently rewrite a verdict in Python.

For Division by Competence, route on explicit result and evidence states. A model’s claim of high confidence is not an authority to bypass the rules. An ambiguous case may need a specific missing fact rather than another unconstrained model response.

For Fail-Safe Union, declare the verdict ordering, for example release < hold < block, and the required sources. Define what happens when a source fails or has not returned; missing evidence must not imply release. Expect more false alarms as stricter sources are added.

In the reasoning

PatternUse it whenWhat the rules must decide
8. Model as Hypothesis GeneratorAn observation needs candidate explanationsWhich hypotheses survive explicit tests and what evidence would discriminate them
9. Model as Critic of the RulesA rule change needs review beyond available automated checksWhich grounded remarks become findings and whether unresolved findings block approval
10. Rules Teach the ModelA model needs examples, labels or feedback from a formal domainLabels, examples and grades derived with proofs

For Hypothesis Generator, keep candidate generation distinct from testing. No surviving candidate after a bounded search does not prove that no explanation exists. Ask for evidence that separates remaining candidates.

For Critic, run deterministic checks first and give the model a fixed change to review. A critic supplements those checks; it cannot certify that all semantic faults have been found.

For Teach, keep evaluation cases independent of training examples and feedback. A learned response does not inherit the guarantee of the engine that supplied its label.

Over time

PatternUse it whenWhat the rules must decide
11. Rule-Governed MemoryConversation-derived knowledge persists and changes across sessionsWhich source may establish each fact; admission, supersession, withdrawal and context selection

Memory storage uses Sensor; recall uses Steer. Retain the utterance, source, quote and time. Derive which statements are current and which are selected for a request; validate cited IDs against that selection. Forgetting a cache record alone does not withdraw an accepted claim.

Use Choosing and Combining Patterns to compose these designs. Every composition still needs all five invariants.