Skip to main content
An extension is written against a moving platform. This page says which parts of that platform hold still.

What is covered

fapost/foundation. The contracts and DTOs in this package are the public surface. They are what an extension is built against, and they are what Core undertakes not to break within a major version. fapost/support. Primitives that depend on no FaPost package except fapost/foundation, on the same terms. Node contracts, by version. A node’s contract is versioned explicitly. A published flow keeps reaching the handler version it was built against — see Versioning and compatibility. State namespaces. The meaning of system.*, flow.*, rag.*, and module.* is fixed, along with who may write each. rag is deprecated and goes in the next major version of fapost/foundation. A Solution’s own namespace, named by its id, is written only by that Solution’s node types. The console’s run-time interface for Solutions. What a prebuilt Solution bundle runs against in the browser — see Console UI:
  • @fapost/ui, the console kit, at the public subpaths that page lists. It is published to npm from its first version, 0.1.0, and follows semver with a rule for 0.x: a breaking change to the surface raises the minor version (0.2.0), additions and fixes raise the patch version, so a ^0.1.0 range takes new components and never a break. An installation serves exactly one version of it.
  • The fapost-ui.json schema.
  • Page and component names, <id>::<Path>, and the string values of the console targets (contact.view, floating, admin, …).

Experimental extension points

Some contracts are published before a real extension has exercised them. They are marked @experimental in their PHPDoc and on this site, and they are the one exception to “not broken within a major version”: an experimental contract may change in a minor release of fapost/foundation, and the change is described in its changelog. The console UI contract is experimental today. So is the Solution testing kit (Fapost\Testing), which ships with Core rather than Foundation: it may change in a minor release of Core, described in Core’s release notes. While the platform is pre-1.0 a constraint such as ^0.15 accepts one minor only, so such a change reaches your package when you raise the constraint.

What is not covered

Everything under App\…. Core’s domains, models, services, and jobs are internal. They are refactored freely, and a use App\… in an extension is expected to break.
If a contract you need is not in fapost/foundation, reaching into App\… is not the workaround — it is a broken extension with a delayed failure. Propose the contract instead.
The database schema. Core’s tables are an implementation detail of Core’s domains. Read module data through a data accessor, not through a query. The compiled front end. The internal structure of the console and the builder — their components, stores, routes in the browser and chunks — is not a contract, apart from the run-time interface listed above. Configure nodes through schema — see Builder UI extensions.

Where the line is enforced

This is not an honour system. foundation and support are separate repositories with their own Composer requirements, so they cannot import App\… — it would not autoload outside Core. Core’s own architecture rules (PHPat, run in composer run test:arch) cover flow runtime isolation, handler versioning, ID strategy, messaging boundaries and migrations; the dependency direction itself has no PHPat rule.

While the platform is pre-1.0

The Solution and Plugin lifecycles are not product-complete. Packages are on 0.x versions, where ^0.1 accepts 0.1.* only and adopting a new minor is a deliberate constraint bump. Expect the surface to gain contracts rather than lose them, and read Development setup for how version constraints behave in that range.