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

The Forma application layer — reconstructed modules and products

Status: DELIVERED-SYSTEM DOCUMENTATION (v0.1) — RETIRED (see the notice below) Date: 2026-10-02 Authority: NONE (documentation is not semantic authority). The durable architecture owner is docs/book/src/autoridades/43-application-modules-architecture.md; the campaign/evidence owners are Git-resolvable at the pre-cutover master commit 660426b2e056257056c54c73ed8dca429fe44419; the standing set-identity owner of the catalog was application-kit/pilot/harness/canonical_catalog_gate.py (pre-removal; the tree is preserved as Git history at 8f4efbc6).

Retired (owner decision 2026-10-16). The application layer this package documents — application-kit/ and application-products/ — was removed from the live tree; the unarchived demos/ corpus is the repository’s live demonstration surface. The pages below are the historical record of the layer as delivered at the pre-removal master revision 8f4efbc6: every path, command, gate and receipt they name is Git-resolvable history, not a live tree. The retirement is carried by the bounded Application Layer Retirement State Amendment; the governance statement lives in Autoridade e governança dos contratos.


What this layer is

application-kit/ and application-products/ are the repository’s demonstration of Forma used as an application language: 65 catalogued application modules and 24 complete applications, all expressed as .fsl semantic declarations, all executable, all carried by positive/negative test suites whose negative cases are attack-sensitive.

They were not written from scratch as sample code. They were reconstructed from a frozen corpus of rich demo applications through a governed campaign methodology: identify the reusable semantic core, seal it, then rebuild every application as sealed modules + explicit composition + an irreducible product-local delta, with deletion and substitution attacks proving that every claimed reuse edge is load-bearing.

application-kit/pilot/        = the module kit (SEALED K0: 56 modules + catalog
                                + fixtures + witnesses; later canonical waves
                                added 9 forma::core::* modules -> 65 entries)
application-products/         = 24 reconstructed applications, each importing
                                K0 modules and owning an explicit local delta

Why it matters as a demonstration

Each artifact demonstrates a Forma practice that generic sample code cannot show honestly:

  • Semantic reuse with proof. Products import module semantics (import forma::pilot::payment) and never re-declare them; deletion witnesses prove that removing a module breaks a real consumer obligation.
  • Refusals as first-class behavior. Every module and product carries negative worlds that pin what must NOT derive (a payment without an authorization never completes; a webhook replay is suppressed).
  • Attack-sensitive evidence. Suite negatives are discriminants: a semantic mutation of a load-bearing gate flips the suite (see TUTORIAL.md for an executed demonstration).
  • Governed evolution. The catalog grew 56 → 60 → 65 through ratified campaigns, and a fail-closed gate proves set identity at any time.

The two trees at a glance

TreeContentsStatus
application-kit/pilot/src/catalog.fsl65 ActiveCatalogEntry facts (E01–E65)canonical active catalog
application-kit/pilot/packages/forma.pilot.module.*56 K0 modules + 4 superseded wave suppliersK0 = SEALED / read-only
application-kit/pilot/packages/forma.core.module.*9 canonical forma::core::* modules (M57–M65)catalogued, read-only
application-kit/pilot/packages/forma.pilot.fixtures.* + forma.core.fixtures.*per-family test worlds and G17 gate worldsevidence
application-kit/pilot/packages/forma.pilot.witnesses259 witness sources (origin / deletion / substitution / independence)evidence
application-products/<product>/24 applications: manifest + product .fsl + worlds/ + suitesthe demonstration apps

Full inventories with per-item purpose and origin: INVENTORY.md.

How to read this package

DocumentQuestion it answers
HOW-BUILT.mdHow were the modules and apps made? (campaign chronology, gates, conferences)
MODULE-ANATOMY.mdWhat does one application module consist of, and why?
PRODUCT-ANATOMY.mdWhat does one reconstructed application consist of, and what closes it?
GETTING-STARTED.mdHow do I verify, run and inspect them? (executed transcripts)
TUTORIAL.mdHow do I author a new module the same way? (executed end-to-end cycle)
INVENTORY.mdWhat exactly exists? (all 56 + 9 + 1 modules, all 24 products)
DEFINITIONS.mdWhat do K0, delta, witness, G17, load-bearing edge mean?

Operating state at documentation time

All results below were executed on master@8f4efbc6 (2026-10-02) and are reproducible with the commands in GETTING-STARTED.md:

canonical_catalog_gate   PASS   (65 entries; C1-C5 set identity intact)
evidence_gate            PASS   (60/60 module suites, 371 cases; witnesses 521
                                 cases; roots 259==259; exact totals E1=100 E2=40)
defense modules          5/5    suite pass (run explicitly; G3 does not cover them)
detrule                  1/1    suite pass
product battery          24/24  suite pass

Boundaries

  • The K0 module set (application-kit/pilot/**) is SEALED and read-only: changes are ΔK candidates staged through a campaign, never in-place edits.
  • The superseded wave suppliers (sla, routing, idres, dstanding) are SUPERSEDED-EVIDENCE packages: live suppliers of the engagement wave products, not catalogued K0 (dstanding is forma::eng::*, evidence only).
  • The historical per-demo books under docs/applications/forma-* document the archived demos/** generation (frozen baselines); they are historical evidence, not documentation of the current layer.
  • Nothing in this package redefines language semantics; for the language itself see the user guide (docs/user/) and docs/FORMASL.md.