81 / IDEF0 / FUNCTION MODELING · ICOM · DECOMPOSITION
81 / METHODOLOGY / FUNCTION MODELING · INPUT · CONTROL · OUTPUT · MECHANISM

IDEF0.

IDEF0 — метод функционального моделирования систем. Он показывает не последовательность событий, а что делает система или функция, что она преобразует, что ею управляет, что получается на выходе и за счёт каких механизмов она выполняется.

Главная идея: одна функция изображается как блок с четырьмя типами стрелок: Input, Control, Output, Mechanism — ICOM. Затем блок декомпозируется на дочерние функции, сохраняя контекст и интерфейсы родительской диаграммы.
00. ARCHITECTURAL STATUS

DESIGN-TIME FUNCTIONAL MODELING METHODOLOGY

№81 — METHODOLOGY / DEFAULT N/A / SEPARATE COMPONENT N/A / Design-time / Problem Solving. IDEF0 полезен для архитектурного анализа, разграничения ответственности, описания сложной AI-системы сверху вниз и поиска мест, где одна функция перегружена controls/mechanisms or lacks clear outputs.
TYPEMETHODOLOGYFunctional system modeling.
DEFAULTN/ANot a runtime mechanism.
USE WHENFUNCTIONS / RESPONSIBILITY UNCLEARNeed system decomposition and interfaces.
SEPARATE COMPONENTN/ANo IDEF0 runtime service.
LIVES INDESIGN-TIME / PROBLEM SOLVINGArchitecture, process and system analysis.
COMPLEXITYLOW → HIGHContext diagram → multi-level model.
USE FOR FUNCTIONAL CLARITY
80% практической ценности: define viewpoint/purpose, create context function A-0, identify I/C/O/M correctly, decompose into 3–6 coherent child functions, maintain boundary consistency, distinguish controls from inputs and mechanisms from functions, then use the model to expose missing responsibilities, duplicated controls, unclear outputs and architectural coupling.
01A. ARCHITECTURE BOUNDARIES & OPERATIONS

ГРАНИЦЫ С СОСЕДНИМИ МЕТОДАМИ

A. BOUNDARY WITH NEIGHBORS

№82 BPMN показывает последовательность процесса, события, gateways, waits и participants. IDEF0 показывает функции и их ICOM-интерфейсы без обязательной временной последовательности. №80 TOC ищет constraint в системе; IDEF0 помогает увидеть функции/mechanisms/controls, которые формируют систему. №79 KT диагностирует deviations; IDEF0 даёт структурный контекст. №78 TRIZ преобразует функции/противоречия, которые модель помогла обнаружить.

B. PREREQUISITES / CROSS-REFERENCES

Полезные соседи: №13 Problem Formulation, №14 Decomposition, №41 Cognitive Architecture, №50 Structured Contracts, №77 Production Architecture. IDEF0 особенно полезен для нашего проекта как способ изобразить R01–R10 и supporting infrastructure через функции, а не через список технологий.

C. CONTROL / DATA / RUNTIME / OFFLINE

CONTROL PLANE: modeling conventions, viewpoint, purpose, node numbering and glossary. DATA PLANE: boxes, ICOM arrows, decomposition relations and notes. RUNTIME: N/A; diagram may describe runtime functions but is not execution logic. OFFLINE: architecture design/review, requirements analysis, operating model, system decomposition.

D. FAILURE & OPERATIONS CONTRACT

Success: each box is an activity/function expressed as verb phrase; inputs are transformed, controls constrain/direct, outputs are produced, mechanisms enable execution; child diagram preserves parent boundary. Failure: org chart disguised as functions, every arrow called input, chronological sequence forced onto IDEF0, uncontrolled decomposition depth or inconsistent boundaries.

E. WHAT THIS TOPIC DOES NOT OWN

IDEF0 does not execute processes, define APIs precisely, model event timing, concurrency, state machines or message delivery semantics. It owns FUNCTIONAL STRUCTURE AND CONTEXT: what transformations exist and what enables/controls them.

01. ICOM

INPUT · CONTROL · OUTPUT · MECHANISM

INPUT →

Что преобразуется

Материал, данные, запрос, документ, состояние или объект, который функция изменяет/обрабатывает.

Question: “What does the function act on?”

FUNCTION A0Обработать AI-задачу
→ OUTPUT

Что функция производит

Результат преобразования: ответ, артефакт, решение, обновлённое состояние, событие, действие.

Question: “What exists because the function ran?”

↓ CONTROL

Что управляет выполнением

Policies, requirements, constraints, rules, objectives, contracts, standards, plans. Control обычно не “расходуется” и не является объектом преобразования.

↑ MECHANISM

Чем/кем выполняется

People, software modules, models, tools, databases, infrastructure, equipment — resources that perform or enable the function.

02. CANONICAL BOX

ARROW POSITION HAS SEMANTICS

                         CONTROL
                            │
                            ▼
INPUT ───────────────▶ ┌───────────────┐ ───────────────▶ OUTPUT
                       │               │
                       │   FUNCTION    │
                       │      A1       │
                       │               │
                       └───────────────┘
                            ▲
                            │
                        MECHANISM

LEFT   = INPUT
TOP    = CONTROL
RIGHT  = OUTPUT
BOTTOM = MECHANISM
В IDEF0 расположение стрелки кодирует её роль. Поэтому “красивые произвольные стрелки” разрушают смысл модели.
03. INPUT vs CONTROL

САМАЯ ЧАСТАЯ ОШИБКА

QuestionINPUTCONTROL
Что делает функция?Преобразует/использует как предмет обработки.Ограничивает, направляет или определяет правила обработки.
Example: AI writerSource text, brief, product facts.Brand tone, legal rules, output schema, platform limits.
Example: RAGUser query / source corpus candidate.Access policy, retrieval mode, top-k rule, tenant scope.
DiagnosticWithout it, what object is left to transform?Without it, function may still run but incorrectly/unbounded.
Один и тот же объект в разных моделях может играть разные роли. Семантика определяется функцией и viewpoint, а не “типом данных навсегда”.
04. MECHANISM vs CONTROL

RULE DOES NOT PERFORM WORK; RESOURCE DOES

CONTROL

“How should it be done?”

Policy, prompt specification, acceptance criteria, budget limit, security rule.

MECHANISM

“What performs it?”

LLM, parser, engineer, queue worker, browser runtime, database, model gateway.

Prompt text can be modeled as control if it constrains how an AI function behaves; the LLM itself is mechanism.
05. FUNCTION NAMING

VERB + OBJECT, NOT DEPARTMENT NAME

BAD

“Model Gateway”

Это component/resource noun; непонятно, какую функцию модель описывает.

GOOD

“Маршрутизировать модельный запрос”

Function clearly states transformation/action. Model Gateway can appear as mechanism.

IDEF0 purpose is functional decomposition. Components may implement functions, but diagram should not collapse immediately into deployment topology.
06. VIEWPOINT & PURPOSE

ОДНА СИСТЕМА МОЖЕТ ИМЕТЬ НЕСКОЛЬКО ПРАВИЛЬНЫХ IDEF0-МОДЕЛЕЙ

PURPOSE

Why model?

Architecture review, automation discovery, ownership clarification, compliance analysis, bottleneck discovery.

VIEWPOINT

From whose perspective?

Product owner, system architect, operations team, data governance, end user.

BOUNDARY

What is inside?

Define system boundary before decomposition so external controls/mechanisms are not silently pulled inside.

MODEL HEADER

Purpose:
  clarify functional architecture
  of the production AI system.

Viewpoint:
  system architect.

System boundary:
  from authenticated task intake
  to verified output/action.

Outside:
  external model providers,
  customer systems,
  human users,
  legal/regulatory environment.
07. CONTEXT DIAGRAM A-0

ONE TOP-LEVEL FUNCTION DEFINES SYSTEM CONTEXT

                         CONTROLS
         product policy · security · governance
                budgets · task contracts
                            │
                            ▼
USER REQUEST ───────▶ ┌───────────────────────────┐ ───────▶ VERIFIED OUTCOME
SOURCE DATA ────────▶ │ A-0                       │ ───────▶ ARTIFACT / ACTION
EVENT / TRIGGER ────▶ │ EXECUTE AI PRODUCT TASK   │ ───────▶ TRACE / FEEDBACK
                      └───────────────────────────┘
                            ▲
                            │
                         MECHANISMS
           AI runtime · models · tools · knowledge
        production fabric · people · external systems
A-0 задаёт контекст и внешние интерфейсы. Следующая диаграмма A0 декомпозирует эту функцию на крупные подфункции.
08. DECOMPOSITION

PARENT BOX → CHILD DIAGRAM

A-0Execute AI product task.
A1Formulate task.
A2Build context / plan.
A3Acquire knowledge / act.
A4Generate candidate output.
A5Verify / commit.
A6Observe / learn.
IDEF0 обычно предпочитает manageable number of child boxes per diagram. Смысл — удержать диаграмму читаемой и вынести детали на следующий уровень.
09. BALANCING / BOUNDARY CONSISTENCY

CHILD DIAGRAM MUST RESPECT PARENT INTERFACES

PARENT BOX A3:

Inputs:
  task query
  source refs

Controls:
  access policy
  research strategy

Outputs:
  evidence set
  tool results

Mechanisms:
  R06 Knowledge Engine
  R07 Tool Engine


CHILD DIAGRAM A3:

A31 retrieve sources
A32 call external tools
A33 normalize evidence
A34 attach provenance

Boundary arrows of A3
must be explainable on A31–A34.

Do not invent:
  new external payment system
  new unrestricted data source
inside child diagram
without updating parent context.
Balancing keeps decomposition honest: detail can refine internal routing, but the parent-child contract cannot silently change.
10. NODE NUMBERING

A0 → A1…A6 → A11…

A-0

Context

Single top function and external ICOM.

A0

Top decomposition

Main system functions A1, A2, A3…

A3

Child node

Represents one function from parent diagram.

A31

Grandchild function

One function inside decomposition of A3.

Numbering is navigation, not runtime execution order. A1 before A2 on page does not automatically mean chronological sequence.
11. PRECEDENCE ≠ TIME FLOW

LEFT-TO-RIGHT CAN SUGGEST DOMINANCE, BUT IDEF0 IS NOT A TIMELINE

FUNCTION RELATION

Outputs feed others

An output of one function can be input/control to another.

ITERATION

Feedback is normal

Later function can produce control/input used by an earlier function.

FOR SEQUENCE

Use BPMN

If exact event order, waits, timers and branching matter, model them separately in №82.

12. ARROW BRANCHING & JOINING

ONE INFORMATION OBJECT MAY FEED MULTIPLE FUNCTIONS

                     ┌──────────────┐
source metadata ────▶│ A21 classify │
      │              └──────────────┘
      │
      ├─────────────▶┌──────────────┐
      │              │ A22 route     │
      │              └──────────────┘
      │
      └─────────────▶┌──────────────┐
                     │ A23 log/audit │
                     └──────────────┘

Branch:
  one arrow concept splits into uses.

Join:
  multiple compatible flows can merge
  only when the resulting arrow meaning remains clear.
Не объединяйте разнородные arrows только ради визуальной чистоты, если после join уже непонятно, что именно входит в функцию.
13. TUNNELING

NOT EVERY ARROW NEEDS TO APPEAR ON EVERY LEVEL

TUNNEL

Hide unnecessary interface detail

Arrow may be intentionally omitted on parent/child boundary when it would add noise and its context is understood/documented.

RISK

Do not hide critical contracts

Security policy, external authority, important outputs and ownership boundaries should not disappear merely because diagram is crowded.

Use tunneling sparingly. The model should simplify complexity, not conceal architecture.
14. GLOSSARY

ARROW LABELS NEED SHARED MEANING

TERM

Canonical name

“Verified evidence set”.

DEFINITION

What exactly it means

Evidence refs that passed source existence/access checks, not “trusted truth”.

OWNER / SOURCE

Where definition comes from

Contract, architecture module, policy, business glossary.

Without glossary, diagrams drift into semantic ambiguity: two arrows can have the same label but different lifecycle or authority.
15. IDEF0 FOR OUR 10 RUNTIME MODULES

MODEL FUNCTIONS, NOT TEN BOXES JUST BECAUSE R01–R10 EXIST

A-0 EXECUTE AI TASK

Possible top decomposition:

A1 FORMULATE TASK
  mechanisms:
    R02

A2 CONTROL EXECUTION
  mechanisms:
    R01
    R03

A3 BUILD OPERATING CONTEXT
  mechanisms:
    R04
    R05

A4 ACQUIRE KNOWLEDGE / PERFORM ACTION
  mechanisms:
    R06
    R07

A5 GENERATE / ROUTE MODEL WORK
  mechanisms:
    R09
    models / gateway

A6 VERIFY & COMMIT RESULT
  mechanisms:
    R08
    policies / HITL / tools

A7 LEARN FROM OUTCOME
  mechanisms:
    R10
    eval / feedback systems

Notice:
  function map ≠ module list.
  One function may use several mechanisms.
  One mechanism may support several functions.
Это важное различие: IDEF0 помогает не превращать architecture modules в искусственный process sequence.
16. EXAMPLE — MODEL ROUTING FUNCTION

“SELECT ELIGIBLE MODEL TARGET” AS IDEF0

                             CONTROLS
          data governance · model policy · budgets
            capability requirements · latency SLO
                                │
                                ▼
model request ─────────▶ ┌───────────────────────────┐ ─────────▶ selected target
task metadata ─────────▶ │ SELECT MODEL TARGET       │ ─────────▶ routing rationale
runtime health ─────────▶ │ A51                       │ ─────────▶ fallback candidates
                         └───────────────────────────┘
                                ▲
                                │
                             MECHANISMS
                    R09 Model Router
                    №65 Model Gateway
                    health registry
                    quota service
Provider/model list — input/state evidence; policy/budget — controls; router/gateway — mechanisms; selected route — output.
17. EXAMPLE — RAG FUNCTION

“PROVIDE TASK-RELEVANT EVIDENCE”

                             CONTROLS
      access policy · retrieval strategy · top-k budget
           freshness rules · evidence requirements
                                │
                                ▼
query ─────────────────▶ ┌──────────────────────────────┐ ───────▶ evidence refs
source/index state ─────▶│ PROVIDE RELEVANT EVIDENCE    │ ───────▶ retrieval metadata
                         │ A41                           │ ───────▶ insufficiency signal
                         └──────────────────────────────┘
                                ▲
                                │
                             MECHANISMS
                     R06 Knowledge Engine
                     vector DB / HNSW
                     source store
                     reranker
HNSW here is a mechanism, not the function itself. Function stays stable even if vector provider or retrieval algorithm changes.
18. EXAMPLE — GOVERN DATA

POLICY CAN BE CONTROL IN ONE MODEL AND FUNCTION IN ANOTHER

At high-level runtime model:

data governance policy
  = CONTROL
  directing other functions.

Inside governance subsystem:

A1 CLASSIFY DATA
A2 DETERMINE ALLOWED PURPOSE
A3 DETERMINE PROVIDER / REGION ELIGIBILITY
A4 APPLY RETENTION / DELETION RULES

Now governance itself
is decomposed into FUNCTIONS.

This is not contradiction.

IDEF0 semantics depend on
the system boundary and viewpoint.
19. FUNCTION vs COMPONENT

KEEP THEM SEPARATE LONG ENOUGH TO SEE REDUNDANCY

FunctionPossible mechanisms
Verify structured outputJSON Schema validator, Pydantic, deterministic code, R08 Quality Engine.
Retrieve relevant evidencePostgres FTS, vector DB, graph store, web tool, R06.
Route model requestR09, №65 gateway, config registry.
Persist artifactObject storage, filesystem, database blob store.
Approve consequential actionUser UI, human reviewer, approval service, policy engine.
Once function is explicit, technology can be replaced without changing the conceptual model. This is one of IDEF0's strongest architecture benefits.
20. FUNCTION OWNERSHIP

IDEF0 EXPOSES RESPONSIBILITY GAPS

NO MECHANISM

Who performs it?

Function exists conceptually but no component/person actually owns execution.

NO CONTROL

What constrains it?

Potentially dangerous free-form behavior.

NO OUTPUT CONSUMER

Why produce it?

Dead artifact/telemetry that creates cost without downstream use.

DUPLICATE MECHANISM

Same function in many places

Can reveal duplicated routing, validation, policy or data transformation logic.

21. IDEF0 & CONTRACTS

ARROWS CAN BECOME CANDIDATE CONTRACT BOUNDARIES

IDEF0 ARROW

“Verified evidence set” connects A4 → A6.

CONTRACT

Define schema, version, ownership, required provenance, errors and lifecycle.

IMPLEMENTATION

Typed data structure/API/event ref used by actual modules.

IDEF0 does not replace №50 Structured Outputs & Agent Contracts, but it is excellent for discovering where contracts should exist.
22. IDEF0 & TOC

FUNCTION MODEL CAN REVEAL SHARED SCARCE MECHANISMS

A1 classify request ──mechanism──▶ Human Reviewer
A2 approve action  ───mechanism──▶ Human Reviewer
A3 review failure  ───mechanism──▶ Human Reviewer
A4 approve release ───mechanism──▶ Human Reviewer

IDEF0 reveals:
  one mechanism supports many critical functions.

TOC asks:
  is this shared mechanism
  the current system constraint?

Then:
  exploit / subordinate / elevate
  around that resource.
23. IDEF0 & TRIZ

MODEL FUNCTIONS → FIND HARM / CONFLICT → REDESIGN

IDEF0

Make function structure explicit

Who transforms what, under which controls, using which mechanism?

TRIZ

Change the mechanism/function relation

Trim a component, transfer function, separate contradictory conditions, exploit system resources.

IDEF0 often gives TRIZ a much cleaner problem model than starting from component names alone.
24. IDEF0 & BPMN

FUNCTION STRUCTURE FIRST; PROCESS DYNAMICS SECOND

QuestionIDEF0BPMN
What functions exist?StrongPossible but not primary
What is transformed?Input / OutputData objects/messages
What constrains work?Control is first-classRules/gateways/events modeled differently
What resources enable it?Mechanism is first-classPools/lanes/resources less explicit semantically
Exact sequence?Not primaryCore strength
Timers/events/waits?WeakCore strength
Практический порядок: use IDEF0 to understand functional architecture; use BPMN when exact workflow behavior must be specified.
25. MODEL DEPTH

STOP WHEN MORE DECOMPOSITION NO LONGER HELPS THE PURPOSE

L0

Context

External system boundary and ICOM.

L1

Major functions

Usually enough for executive architecture view.

L2

Subsystem detail

Useful for ownership/interfaces and design.

L3+

Only if purpose requires

Do not decompose to individual code functions just because notation allows it.

IDEF0 is a communication model, not a challenge to draw the entire company down to every SQL query.
26. MODEL REVIEW QUESTIONS

CHECK EACH BOX

QuestionWhy it matters
Is box name an active function?Avoid component/org-chart modeling.
What input is transformed?If none, maybe function is control/management or poorly framed.
What output proves function occurred?Clarifies value and downstream contract.
Which controls constrain it?Reveals rules/policies/objectives.
Which mechanisms actually perform it?Maps function to resources/components.
Who consumes outputs?Detect dead work.
Does child diagram preserve parent boundary?Maintains model consistency.
Does the decomposition serve the model purpose?Stops unnecessary detail.
27. AI-ASSISTED IDEF0

LLM IS GOOD AT DRAFTING FUNCTION MODELS — BUT NEEDS SEMANTIC DISCIPLINE

EXTRACT

From documents

Identify candidate functions, inputs, outputs, controls and mechanisms from architecture/process descriptions.

NORMALIZE

Verb phrases

Convert component lists into functional language and detect overloaded nouns.

REVIEW

Find semantic mistakes

Flag arrows likely misclassified as input/control/mechanism.

CAUTION

Do not invent interfaces

Missing control/output should be marked unknown/gap, not hallucinated as fact.

28. STRUCTURED MODEL FORMAT

IDEF0 CAN BE STORED AS DATA, THEN RENDERED

{
  "model_id":"AI-PROD",
  "purpose":"functional architecture review",
  "viewpoint":"system architect",
  "node":"A0",
  "parent":"A-0",
  "boxes":[
    {
      "id":"A1",
      "name":"Formulate task",
      "inputs":["raw_request"],
      "controls":["product_policy","task_contract_rules"],
      "outputs":["task_contract"],
      "mechanisms":["R02"]
    }
  ],
  "boundary":{
    "inputs":["raw_request"],
    "controls":["security_policy"],
    "outputs":["verified_outcome"],
    "mechanisms":["ai_runtime"]
  }
}
BENEFIT

Machine-checkable consistency

Tooling can validate missing labels, parent-child boundary mismatches, duplicate arrow definitions and glossary coverage before rendering diagrams.

29. AUTOMATIC CHECKS

SOME MODEL QUALITY CAN BE VERIFIED DETERMINISTICALLY

UNLABELED ARROW

Reject

Every meaningful arrow needs a concept/label.

DUPLICATE NODE

Reject

Node IDs unique within model.

BOUNDARY GAP

Warn

Parent external ICOM absent from child decomposition without explicit tunnel.

NOUN-ONLY FUNCTION

Warn

“Database”, “Model”, “Marketing” probably represent mechanism/org entity rather than activity.

AI can draft; deterministic validators can enforce notation hygiene.
30. ANTI-PATTERNS

HOW IDEF0 BECOMES A DECORATIVE BOX-AND-ARROW DIAGRAM

COMPONENTS AS BOXES
Diagram becomes deployment topology.
VERB + OBJECT FUNCTIONS
EVERYTHING = INPUT
Rules/resources/data lose distinction.
ICOM SEMANTICS
TIME FLOW ASSUMED
Readers infer false execution order.
USE BPMN FOR SEQUENCE
NO PURPOSE / VIEWPOINT
Model scope becomes arbitrary.
DECLARE MODEL CONTEXT
UNBALANCED CHILD
New external interfaces appear silently.
BOUNDARY CONSISTENCY
OVER-DECOMPOSITION
Hundreds of boxes nobody can maintain.
STOP AT DECISION-USEFUL DEPTH
ARROW = VAGUE “DATA”
Contract/meaning remains unclear.
PRECISE GLOSSARY TERMS
DIAGRAM = TRUTH
Outdated model hides real system differences.
VALIDATE AGAINST IMPLEMENTATION
31. QUALITY METRICS

MEASURE MODEL USEFULNESS, NOT NUMBER OF DIAGRAMS

ICOM

Semantic Completeness

% important functions with meaningful I/C/O/M where applicable.

BAL

Boundary Consistency

Parent-child interfaces consistent or explicitly tunneled.

OWN

Ownership Coverage

% critical functions mapped to mechanisms/owners.

GAP

Gap Discovery

Missing controls/mechanisms/consumers found during review.

DUP

Duplication

Functions redundantly implemented across components.

CTR

Contract Candidates

Important inter-function arrows formalized into typed interfaces.

DEP

Useful Depth

How many decomposition levels are actually used in design decisions.

DRF

Drift

Mismatch rate between current implementation and model.

32. 30-MINUTE IDEF0 SESSION

LIGHTWEIGHT ARCHITECTURE MODELING

TimeAction
0–3 minWrite model purpose, viewpoint and system boundary.
3–8 minCreate A-0 top function as verb + object.
8–13 minList external Inputs, Controls, Outputs, Mechanisms.
13–18 minDecompose A-0 into 3–6 major functions.
18–23 minConnect outputs to downstream inputs/controls and assign mechanisms.
23–26 minCheck parent-child boundary consistency and glossary ambiguity.
26–30 minIdentify missing function ownership, duplicated mechanisms, unclear controls and candidate contracts.
33. PRACTICAL WORKSHEET

COPY THIS FOR A REAL SYSTEM

IDEF0 WORKSHEET
=========================================================

MODEL PURPOSE
Why are we modeling this system?
→

VIEWPOINT
Whose perspective?
→

SYSTEM BOUNDARY
Inside:
→
Outside:
→

A-0 TOP FUNCTION
Verb + object:
→

INPUTS
What does the function transform?
1.
2.
3.

CONTROLS
What constrains/directs it?
1.
2.
3.

OUTPUTS
What does it produce?
1.
2.
3.

MECHANISMS
Who/what performs it?
1.
2.
3.

---------------------------------------------------------

A0 DECOMPOSITION

A1:
Function:
Inputs:
Controls:
Outputs:
Mechanisms:

A2:
Function:
Inputs:
Controls:
Outputs:
Mechanisms:

A3:
Function:
Inputs:
Controls:
Outputs:
Mechanisms:

A4:
Function:
Inputs:
Controls:
Outputs:
Mechanisms:

---------------------------------------------------------

BOUNDARY CHECK

Parent input represented?
[ ] yes [ ] tunneled [ ] gap

Parent control represented?
[ ] yes [ ] tunneled [ ] gap

Parent output produced?
[ ] yes [ ] tunneled [ ] gap

Parent mechanism represented?
[ ] yes [ ] tunneled [ ] gap

---------------------------------------------------------

ARCHITECTURE FINDINGS

Missing owner/mechanism:
→

Missing control:
→

Dead output:
→

Duplicated function:
→

Ambiguous arrow:
→

Candidate typed contract:
→

Need deeper decomposition?
→ yes / no

Need BPMN for sequence?
→ yes / no
34. AI PROMPT TEMPLATE

IDEF0-STYLE FUNCTIONAL MODELING ASSISTANT

You are assisting with IDEF0 functional modeling.

Rules:
1. Ask/derive the model PURPOSE and VIEWPOINT first.
2. Define the system boundary.
3. Create one A-0 function using a verb + object phrase.
4. Classify every external arrow as:
   INPUT, CONTROL, OUTPUT or MECHANISM.
5. Use these semantics:
   INPUT = transformed/processed object;
   CONTROL = rule/constraint/objective directing function;
   OUTPUT = result produced by function;
   MECHANISM = resource/component/person performing function.
6. Do not model components/departments as functions
   unless rewritten as activities.
7. Decompose a parent function into a small coherent set
   of child functions.
8. Preserve parent-child boundary consistency.
9. Do not assume box position implies exact chronology.
10. If chronological flow matters, recommend a separate BPMN model.
11. Mark missing controls, mechanisms or outputs as gaps;
    do not invent them.
12. Maintain a glossary for important arrow concepts.
13. For every diagram identify:
    - missing responsibilities;
    - duplicated functions;
    - dead outputs;
    - overloaded/shared mechanisms;
    - candidate contract boundaries.
14. Stop decomposition when additional detail
    no longer serves the declared purpose.
35. PRACTICAL DECISION

WHERE IDEF0 EARNS ITS PLACE

QuestionAnswer
Стоит ли использовать?Да. Для functional architecture, responsibility mapping, complex system decomposition and pre-BPMN analysis.
Separate Component?N/A. This is design-time notation/methodology.
Минимум 80% ценности?Purpose/viewpoint, A-0 context, correct ICOM, one useful decomposition level, boundary balancing and architecture findings.
Когда overkill?Simple linear process where BPMN alone is sufficient, tiny component, or when exact runtime sequence—not functional structure—is the only question.
Trigger?“We know components but not who actually owns which function”; “controls and data are mixed”; “system decomposition is unclear”.
Как измерить uplift?Fewer ownership gaps, clearer interfaces, reduced duplicated functions, faster architecture review and contract discovery.
Можно ли использовать AI?Да. AI can draft and normalize ICOM models; deterministic checks should validate notation consistency, while humans/implementation verify factual correctness.
36. DESIGN RULES

THE IDEF0 RULEBOOK

RULE 01

Function = verb + object

Model what system does, not what components are named.

RULE 02

ICOM semantics matter

Input, control, output and mechanism are not interchangeable arrow decorations.

RULE 03

Purpose and viewpoint first

There is no useful decomposition without a declared modeling purpose.

RULE 04

Context before detail

A-0 establishes system boundary before child diagrams.

RULE 05

Balance parent and child

Decomposition refines; it does not silently redefine interfaces.

RULE 06

Function ≠ chronology

Use BPMN/state/workflow models for detailed time behavior.

RULE 07

Mechanisms can be reused

One resource may support multiple functions and expose a constraint.

RULE 08

Arrows reveal contracts

Important interfaces should later become typed schemas/APIs/events where appropriate.

RULE 09

Stop at useful depth

The diagram exists to support decisions, not maximize box count.

37. FINAL MAP

IDEF0 AS A FUNCTIONAL ARCHITECTURE LENS

START
  ↓
DEFINE MODEL PURPOSE
  architecture?
  automation?
  ownership?
  controls?
  constraint discovery?
  ↓
DEFINE VIEWPOINT
  architect
  operations
  product
  governance
  user
  ↓
DEFINE SYSTEM BOUNDARY
  ↓
CREATE A-0

                CONTROL
                   ↓
INPUT ───────▶ [ FUNCTION ] ───────▶ OUTPUT
                   ↑
               MECHANISM

────────────────────────────────────────

ASK:

INPUT
  what is transformed?

CONTROL
  what constrains/directs execution?

OUTPUT
  what exists because function ran?

MECHANISM
  who/what performs or enables it?

────────────────────────────────────────

DECOMPOSE:

A-0
  ↓
A0 diagram

A1 function
A2 function
A3 function
A4 function
A5 function

then:

A3
  ↓
A31
A32
A33
...

ONLY AS DEEP
AS MODEL PURPOSE REQUIRES.

────────────────────────────────────────

BALANCE:

parent external ICOM
must remain explainable
on child diagram

unless explicitly tunneled.

────────────────────────────────────────

IN AI ARCHITECTURE:

FUNCTION:
  provide relevant evidence

INPUT:
  query / source state

CONTROL:
  access policy
  retrieval strategy
  freshness requirements

OUTPUT:
  evidence refs
  insufficiency signal

MECHANISM:
  R06
  vector DB
  source store
  reranker

HNSW IS A MECHANISM,
NOT THE BUSINESS FUNCTION.

────────────────────────────────────────

FUNCTION:
  select model target

INPUT:
  request
  health/capability state

CONTROL:
  governance
  budgets
  latency SLO
  model policy

OUTPUT:
  selected route
  fallback candidates

MECHANISM:
  R09
  Model Gateway

────────────────────────────────────────

USE WITH:

TOC
  to find overloaded/shared mechanisms
  and system constraints

KT
  to diagnose deviations in a function

TRIZ
  to redesign conflicting functions
  or trim mechanisms

BPMN
  to specify exact sequence,
  waits, events and branching

STRUCTURED CONTRACTS
  to formalize critical arrows

────────────────────────────────────────

THE CENTRAL QUESTION IS NOT:

“WHAT SERVICES DO WE HAVE?”

IT IS:

“WHAT FUNCTIONS MUST THE SYSTEM PERFORM,
WHAT DO THEY TRANSFORM,
WHAT CONTROLS THEM,
WHAT DO THEY PRODUCE,
AND WHAT ACTUALLY MAKES THEM HAPPEN?”

THAT SHIFT
FROM COMPONENTS
TO FUNCTIONS
IS THE PRACTICAL VALUE
OF IDEF0.

ECC RETROFIT / PRACTICAL HARNESS INTEGRATION

A. Related ECC ideas. Context-as-cache, scoped memory, lifecycle hooks, selective capabilities, feature flags, deterministic enforcement, provider-neutral adapters and eval-gated learning are applied only where relevant to №81 IDEF0.

B–E. Existing boundary and placement. The existing conceptual boundary, class METHODOLOGY, default N/A and owner Design-time / Problem Solving remain authoritative. Runtime/control/data/offline placement is unchanged; durable state stays outside model context.

F–H. Hooks and contracts. Use bounded PRE_MODEL/POST_MODEL, PRE_TOOL/POST_TOOL, CHECKPOINT and TASK_COMPLETED events as applicable. Illustrative fields and canonical contracts are defined in NEW_CONTRACTS_SPEC.md; no universal schema is implied.

I–J. Security and evaluation. Host-side schema, permission, secret, budget, idempotency and audit checks take precedence over LLM output. Optional mechanisms require a feature flag and WITH/WITHOUT ablation; measure quality, acceptance, correction, latency, cost, escalations and severe errors.

K–L. Task profiles and cross-references. A TaskProfile selects the relevant skill, tool/context slice, memory scope and enforcement profile independently from FAST/STANDARD/DEEP. See cross-reference map, hook spec and ablation plan. Provider adapters remain outside the core.