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

Application Modules — Architecture (v0.1)

Status: STABLE Authority: DURABLE DOWNSTREAM APPLICATION ARCHITECTURE OWNER (stylesheet: application modules, application kit, application products) Basis: owner decisions D1–D15 closed at CONFERENCE-0 on 2026-09-24 (campaign FORMA-APPLICATION-MODULES-RECONSTRUCTION-v0.1, carrier docs/formasl-application-modules-campaign-v0.1.0/DECISIONS.md). Materialized by: AMK-00 (implementation WP; the underlying R3 architectural decision was owner-closed before materialization). Supersedes: the prior productization architecture of campaign FORMASL-APPLICATION-PRODUCTIZATION-v0.1 (MOD-ARCH-01 owner catalog docs/formasl-application-productization-v0.1/APPLICATION-MODULE-CATALOG.md, deleted from the live tree in 3c49f5be; surviving claims in application-kit/README.md and application-products/README.md are marked superseded). That attempt remains historical evidence only. Implementation authority: none yet. No replacement application-kit module, contract or product is admitted by this document. Module boundaries/dispositions are staged as candidates and closed only at the campaign’s owner conference gates.


1. The three application layers

stdlib/**
= reusable catalog of concepts/foundations for modeling worlds
  (time, space, money, measures, parties, and other general
  modeling foundations), so each application does not redefine them

application-kit/**
= catalog of reusable Application Modules: self-contained application
  functions a developer can choose and compose into a new application

application-products/**
= complete reconstructed applications, each formed from
  existing Application Modules + explicit semantic composition
  + genuinely new product-specific delta

Preserve:

stdlib                       != application-kit
stdlib concept               != Application Module
Application Module           != Application Product
Application Module           != realization (process/container/network service)
Application Module catalog   != all Forma capital

money, time, party and equivalent stdlib foundations do not become Application Modules by being imported by one. Application Modules may import stdlib foundations freely; that import does not change what the module is.

2. Application Module definition

An Application Module is a self-contained application function: a function of an application sufficiently closed that another application can consume it without reconstructing that function’s essential semantics internally.

APPLICATION MODULE
= cohesive application function
+ semantic closure
+ explicit consumption boundary
+ independent testability

Candidate names of the intended category (KYC, Payment, Settlement, Account, Loan, Subscription, Purchase Order, Incident Management, …) do NOT pre-ratify their boundaries. Boundaries are discovered from the rich application corpus by functional closure.

A candidate must be able to declare, materially:

FUNCTION
BOUNDARY
OWNS
DOES_NOT_OWN
INPUTS
OUTPUTS
OPERATIONS
LIFECYCLE / STATES
DEPENDENCIES
COMPOSITION EDGES

The decisive closure question:

If a consumer imports this candidate, must the consumer recreate an essential part of this function for it to work correctly?

If yes, the candidate has not closed.

Not defining a module:

semantic recurrence / cross-application frequency
market category
vendor packaging / SKU taxonomy
file or package boundary
consumer count
size
desire to maximize module count

3. Recurrence is not modularity

Recurring semantic characteristics are not Application Modules merely because they recur across applications. In particular:

Approval
Observation
Assessment
Revision
authority patterns
effect-gating patterns

MUST NOT be promoted to Application Modules by recurrence. Their proper home, if any, is determined independently by their actual semantic role; that is a separate architectural question (stdlib, language, or module — to be decided by evidence and the applicable owner gate), never evidence for module promotion by frequency.

3.1 SINGLE-HOST MODULE LAW (owner-closed at CONFERENCE-1)

A function MUST NOT be classified as PRODUCT_LOCAL merely
because it currently appears in only one application.

Independent reuse is evidence of module maturity,
not a prerequisite for module identity.

Module identity is primarily determined by functional closure
and independent consumability.

Primary question: "Would a developer building another application
reasonably want to import this function instead of rebuilding it?"

Consequences:

single current host  -/-> product-local
multiple current hosts -/-> module

Recurrence may supply evidence; it never defines modularity. PRODUCT_LOCAL is not a residual bucket: it requires a positive justification (the function cannot close independently; its identity is materially inseparable from the host; extraction would carry most of the host’s semantics; the public boundary would be artificial or larger than the function; or the function exists specifically to express the application’s irreducible distinguishing semantics). Count of current consumers, absence of proven reuse, absence of an existing package, or absence from the old application-kit are NOT acceptable justifications. Where evidence is insufficient, BOUNDARY_UNRESOLVED or INSUFFICIENT_EVIDENCE is the correct disposition.

4. Supersession of the prior productization

The prior application productization is superseded owner-side:

current application-kit/**
= FAILED HISTORICAL ATTEMPT (disposable; no preservation obligation
  for its packages, boundaries, names, API or compatibility)

current application-products/**
= FAILED HISTORICAL PRODUCTIZATION (superseded; not the parity
  denominator for the reconstruction)

prior MOD-ARCH-01 catalog (D1–D10, incl. Approval as a shared module)
= superseded owner-side by CONFERENCE-0 decisions

Bookkeeping/routing/accounting/README claims (ACCOUNTED, ROUTED, DOCUMENTED) do not substitute for an implemented function. The historical artifacts remain in the tree as evidence until the reconstruction establishes their replacement; no compatibility obligation is inferred from them.

5. Mining source for the catalog

Module discovery starts from the rich application corpus:

demos/**
+ synthesis evidence
+ historical obligations
+ journeys
+ negative distinctions
+ adversarial witnesses
+ relevant genealogy evidence

— not from the simplified superseded products. Existing completed synthesis/reconstruction work is reused as input evidence, not blindly redone; the census determines what is already synthesized, reconstructed, partially covered or new.

ERP genealogy correction: the Forma ERP historical synthesis is built from SAP S/4HANA, Microsoft Dynamics 365 Finance and Oracle Fusion Cloud ERP / Financials. NetSuite was not used and must not be introduced retrospectively.

6. Composition and consumption discipline

New applications are increasingly formed as:

existing Application Modules
+ explicit semantic composition
+ genuinely new product-specific delta

Consumers import only the function they need — no forced dependency enlargement. A SaaS needing Subscription does not automatically consume the complete Payment module. Composition must not require hidden knowledge of a module’s source application.

DependencyResolution != SemanticComposition
Import               != Composition

7. Governance

IMPLEMENTATION AGENT MAY IMPLEMENT CLOSED DECISIONS
IMPLEMENTATION AGENT MUST NOT CREATE SHARED ARCHITECTURAL DECISIONS

The implementation agent may discover candidates, produce evidence, falsify candidates and record that a boundary is unresolved. It may not, autonomously, promote a candidate to a shared module, invent/split/merge/ widen/weaken a shared module boundary, or reinterpret an admitted module contract. Shared module-boundary decisions are owner conference decisions.

Promotion rule: a candidate becomes a shared Application Module only after owner-approved boundary review at the applicable conference gate. Before such review, candidates are staged only as:

CANDIDATE_MODULE
LIKELY_PRODUCT_LOCAL
LIKELY_COMPOSITION
NON_MODULE
BOUNDARY_UNRESOLVED
INSUFFICIENT_EVIDENCE
SYSTEM_GAP

ADMITTED_MODULE is an owner-gate outcome and is never staged by an implementation agent.

3.2 ESSENTIAL-OBLIGATION OWNERSHIP LAW (owner-closed at CONFERENCE-2; ACCREDITED / PERMANENT K0 GATE per CONFERENCE-2B)

A module does not close merely because its rules and lifecycle
are internally represented.

Every obligation constitutive of the claimed application function
must have semantic ownership inside the module boundary.

A module MAY delegate computation or realization of that obligation,
but it MUST NOT delegate the semantic authority that determines
whether the obligation exists or what it means.

Short form:

external mechanism may compute
external mechanism may realize

external mechanism MUST NOT silently own
a constitutive obligation of the module

Canonical example (General Ledger):

GL owns:  the balanced-entry requirement
mechanism computes: whether debit total == credit total

NOT acceptable:
external actor asserts JournalBalanceValidated
and GL merely trusts the assertion

Operational interpretation (binding for all module work):

  1. For every fact shaped XValidated / XApproved / XAvailable / XCompliant / XBalanced / XAuthorized where X is constitutive of the module’s own claimed function, the module must answer: who owns the obligation, who computes the result, who decides what counts as valid, and can the module distinguish a legitimate witness from an arbitrary assertion?
  2. If an external actor owns or decides a constitutive obligation, FUNCTIONAL_CLOSURE = FAIL.
  3. Parameterized policies are permitted: the module owns the REQUIREMENT that admission obey the applicable policy and the binding of that policy to the right scope; the computation of occupancy/aggregate/extent may be performed by an authorized mechanism — in-language (preferred) or a bounded realization — while authority over the obligation stays inside the boundary.
  4. FUNCTIONAL_CLOSURE for every K0 candidate REQUIRES ESSENTIAL_OBLIGATION_OWNERSHIP (PERMANENT gate per CONFERENCE-2B, 2026-09-24).
  5. Canonical K0 catalog (CONFERENCE-2B): the active catalog under application-kit/** exports exactly the MODULE_CLOSED modules; catalog presence is a closure claim; package identities are stable, do not encode origin application or pilot status, and imply no semantic hierarchy. The five pilot modules are K0 capital: they join the same canonical catalog without a permanent pilot distinction; migration must keep semantic contracts unchanged, re-run all gates, and leave no live dependency on application-kit/pilot/** before CONFERENCE-3. The legacy application-kit attempt remains SUPERSEDED evidence — never part of the active catalog.

Campaign gates for the reconstruction (binding): CONFERENCE-0 CLOSED 2026-09-24 (decisions D1–D15); CONFERENCE-1 mandatory stop with the candidate K0 module map BEFORE any replacement application-kit implementation; then CONFERENCE-2 (pilot closure), CONFERENCE-3 (K0 seal), CONFERENCE-4 (ΔK promotion, batchable), CONFERENCE-5 (final K*/campaign closure). Hard stops and the campaign execution contract are owned by the campaign package docs/formasl-application-modules-campaign-v0.1.0/GATES.md.

K notation: K_n is the versioned inventory of admitted reusable Application Modules available before application/campaign step n. It names the Application Module catalog state only, not all Forma capital.

Experiment honesty: the campaign may close with the agentic productivity hypothesis CHALLENGED, FALSIFIED or INCONCLUSIVE; acceptance criteria are never weakened to manufacture a positive result.

8. Status of this document

This document owns the durable application-architecture vocabulary and governance boundaries above. It does not admit any module, fix any module boundary, or authorize any replacement-kit implementation. Those are outcomes of the campaign’s owner conference gates. Transient execution state lives in the root ACTIVE-WP.md and the campaign package; git history preserves the superseded prior productization.