TheSingularityWorkshop.FSM_COS 0.1.0-alpha.4

This is a prerelease version of TheSingularityWorkshop.FSM_COS.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package TheSingularityWorkshop.FSM_COS --version 0.1.0-alpha.4
                    
NuGet\Install-Package TheSingularityWorkshop.FSM_COS -Version 0.1.0-alpha.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TheSingularityWorkshop.FSM_COS" Version="0.1.0-alpha.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TheSingularityWorkshop.FSM_COS" Version="0.1.0-alpha.4" />
                    
Directory.Packages.props
<PackageReference Include="TheSingularityWorkshop.FSM_COS" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TheSingularityWorkshop.FSM_COS --version 0.1.0-alpha.4
                    
#r "nuget: TheSingularityWorkshop.FSM_COS, 0.1.0-alpha.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TheSingularityWorkshop.FSM_COS@0.1.0-alpha.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TheSingularityWorkshop.FSM_COS&version=0.1.0-alpha.4&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=TheSingularityWorkshop.FSM_COS&version=0.1.0-alpha.4&prerelease
                    
Install as a Cake Tool

The Singularity Workshop — FSM_COS

License: MIT NuGet version NuGet downloads

Build Status Last commit Code Coverage

FSM_COS is the composition system.

FSM_COS intentionally keeps its dependency floor small: FSM_API supplies state/context primitives and MicroBundleDomain supplies canonical MicroBundle identity/version/dependency/provider metadata. GUI, serialization, storage, and host frameworks remain outside the kernel.

<p align="center"> <img src="docs/assets/fsm-cos-crane.gif" alt="Animated industrial composition crane lifting a runtime assembly"> </p>

<p align="center"><em>Runtime request → composition → stable assembly → host manifestation</em></p>

It takes a Runtime Manifest and assembles the MicroBundles, dependencies, configuration, and runtime components required by that manifest.

Runtime Manifest
      │
      ▼
   FSM_COS
      │
      ├── resolve MicroBundles
      ├── resolve dependencies
      ├── propagate configuration
      ├── load/install bundles
      ├── arbitrate toward convergence
      ▼
RuntimeAssembly

FSM_COS is the crane that assembles the machine. It does not become the machine.

What FSM_COS actually is

<p align="center"> <img src="docs/assets/fsm-cos-system.svg" alt="FSM_COS composition kernel between authoring and host manifestation"> </p>

FSM_COS is not simply a bundle loader. It is the composition kernel: the layer that turns a published runtime request into a stable assembled composition.

The central distinction is:

The manifest says what is requested. FSM_COS determines what must exist together. RuntimeAssembly says that composition is ready for handoff. The host decides what happens next.

The deeper explanation lives in FSM_COS Theory. The README uses that theory as a map and links into it repeatedly so the implementation and the architectural model stay connected.

The composition boundary

authoring intent
      ↓
Runtime Manifest
      ↓
    FSM_COS
      ├── dependency closure
      ├── configuration propagation
      ├── configured loading
      └── arbitration / convergence
      ↓
RuntimeAssembly
      ↓
host / manifestation

FSM_COS assembles the system. It does not become the system.

See Theory — what “composition of systems” means and Runtime Boundary.

Why this repository exists

FSM_COS is the repository for the composition-of-systems boundary in The Singularity Workshop architecture.

It is deliberately separate from:

  • FSM_API — behavioral/state-machine primitives.
  • TheSingularityWorkshop.GUI — semantic GUI construction and platform manifestation.
  • WebPage / WebForge — a browser host and proving ground.
  • Unity-facing adapters or packages — platform integration, not the composition kernel.
  • Warehouse infrastructure — storage and delivery of data.
  • Experiences — things a user encounters and executes.

FSM_COS answers one narrower question:

Given a published runtime manifest, what must be assembled before that runtime can be handed to a host?

The repository therefore owns the composition contracts, dependency closure, configured loading, arbitration, convergence, and the resulting RuntimeAssembly.

Current alpha boundary

The current 0.1.0-alpha.3 implementation is intentionally a small vertical slice:

RuntimeManifest
    ↓
BundleRequest
    ↓
MicroBundleCatalog
    ↓
dependency closure
    ↓
configured Load()
    ↓
Arbitrate() rounds
    ↓
RuntimeAssembly

It does not yet own:

  • host execution scheduling;
  • GUI rendering;
  • browser, desktop, or Unity lifecycle;
  • Warehouse allocation;
  • telemetry or metaDev adaptation;
  • networking;
  • Experience presentation;
  • general application configuration.

Those concerns can become inputs, providers, or later composition layers without turning FSM_COS into an application framework.

Living architecture

Git is static. The architecture does not have to feel static.

The documentation deliberately uses two visual forms:

  • SVG is the precise blueprint/source-of-truth illustration.
  • GIF supplies lightweight motion when motion communicates a semantic event rather than decoration.

The crane is the first living artifact: its load rises and settles because composition is an active operation — request, lift, stabilize, handoff. GitHub documents that repository SVG views do not support animation, while GIF is a supported image format, so the living asset is intentionally separate from the blueprint SVG.

<p align="center"> <img src="docs/assets/fsm-cos-crane.gif" alt="Living FSM_COS composition crane animation"> </p>

The rule for future visuals is simple: animate the concept, not the decoration. Motion should communicate loading, dependency travel, arbitration rounds, convergence, or handoff.

Visual map

The documentation diagrams are deliberately architecture-first: they show where responsibility lives, what crosses the FSM_COS boundary, and where composition stops.

The manifest is the center

<p align="center"> <img src="docs/assets/runtime-manifest-pipeline.svg" alt="Runtime Manifest publication pipeline"> </p>

A RuntimeManifest is a published runtime request, not an application configuration file.

Editor/tooling systems may know rich information:

  • human-readable names;
  • ontology relationships;
  • variants;
  • dependency relationships;
  • provenance;
  • visual/editor structure;
  • authoring metadata.

That information can be validated and baked into compact machine-oriented IDs and opaque configuration before runtime.

FSM_COS consumes the published representation.

See Runtime Manifest Theory and the deeper FSM_COS Theory.

MicroBundles

A MicroBundle is micro in focus, not necessarily in byte size.

<p align="center"> <img src="docs/assets/microbundle-cartridge.svg" alt="Futuristic MicroBundle capability cartridge"> </p>

FSM_COS does not care whether a bundle is physically tiny or enormous. It cares that the bundle has a focused composition responsibility and exposes the contract required for assembly.

The current contract is:

public interface IMicroBundle
{
    ulong Id { get; }
    IReadOnlyList<BundleRequest> Dependencies { get; }
    void Load(MicroBundleLoadContext context);
    bool Arbitrate(ArbitrationContext context, int roundIndex);
}

A bundle can therefore participate in composition without knowing whether it will ultimately manifest in WebForge, AnyApp, Unity, Desktop Forge, or another host.

Dependency resolution

The manifest declares roots. Dependencies are discovered from those roots.

For:

A
├── B
│   └── C
└── D

FSM_COS installs:

C → B → D → A

before arbitration begins.

Cycles are composition errors. Missing bundles are composition errors. FSM_COS does not guess around either condition.

Configuration

BundleRequest carries a bundle ID plus opaque configuration bytes.

That matters because a dependency can be entangled with the request that caused it to load:

A requests B + configuration X
B requests C + configuration Y

FSM_COS transports the configuration. The bundle that owns it interprets it.

This keeps the composition engine independent from the serialization format and domain meaning of configuration.

When configuration becomes a serialized representation, FSM_COS deliberately points downward to TheSingularityWorkshop.FSM_Serialization rather than defining another serializer here. See FSM_COS Theory — Composition is not serialization and the FSM_Serialization Theory.

Arbitration

Loading establishes the initial composition.

Arbitration allows the installed set to reconcile itself:

load
  ↓
round
  ↓
changed?
  ├── yes → another round
  └── no  → stable RuntimeAssembly

The current default maximum is 10 rounds.

A bundle returns true when its participation changed the composition and false when it did not. A complete round with no changes is convergence.

Non-convergence is an error. FSM_COS does not return an assembly that it knows is unstable.

See Arbitration and Convergence and FSM_COS Theory — Arbitration is composition negotiation.

RuntimeAssembly is the handoff

RuntimeAssembly is the result of composition.

<p align="center"> <img src="docs/assets/runtime-assembly-handoff.svg" alt="RuntimeAssembly as the handoff between FSM_COS and a host"> </p>

It records the runtime identity, loaded MicroBundles, and arbitration result. It is not the application and it is not a renderer.

A host receives the assembled result and decides how to execute, present, or encounter it.

                  RuntimeAssembly
                         │
          ┌──────────────┼──────────────┐
          ▼              ▼              ▼
       WebForge        AnyApp      another host
          │
        GUI
          │
       browser

Composition is not manifestation.

Repository structure

TheSingularityWorkshop.FSM_COS/
│
├── README.md
├── LICENSE.txt
├── TheSingularityWorkshop.FSM_COS.sln
├── TheSingularityWorkshop.FSM_COS.slnx
│
├── docs/
│   ├── THEORY.md
│   ├── ARCHITECTURE.md
│   ├── RUNTIME_MANIFEST.md
│   ├── MICROBUNDLES.md
│   ├── RUNTIME_ASSEMBLY.md
│   ├── MANIFEST_THEORY.md
│   ├── ARBITRATION.md
│   ├── RUNTIME_BOUNDARY.md
│   └── DEVELOPMENT.md
│
├── src/
│   └── FSM_COS/
│       ├── FSM_COS.csproj
│       ├── IFsmCos.cs
│       ├── FsmCos.cs
│       ├── RuntimeManifest.cs
│       ├── BundleRequest.cs
│       ├── IMicroBundle.cs
│       ├── IMicroBundleCatalog.cs
│       ├── MicroBundleLoadContext.cs
│       ├── ArbitrationContext.cs
│       └── RuntimeAssembly.cs
│
└── tests/
    └── FSM_COS.Tests/
        └── FsmCosTests.cs

There is intentionally one canonical FSM_COS implementation project: src/FSM_COS/FSM_COS.csproj.

The old root scaffold that contained only Class1.cs has been removed. The solution now points at the real project.

<p align="center"> <img src="docs/assets/ai-composition.svg" alt="FSM_COS AI composition: ProtocolAI and GrammarAI assembled as runtime capabilities" width="1100"> </p>

<p align="center"><strong>AI capabilities are composed like any other capability; FSM_COS does not become the AI framework.</strong></p>

Documentation

This repository carries its own architecture and theory. The documents here describe FSM_COS itself, rather than asking another repository to explain its internals.

Package

Package: TheSingularityWorkshop.FSM_COS
Version: 0.1.0-alpha.3
Target: .NET 8
License: MIT

The repository contains the packaging and trusted-publishing workflow for GitHub Packages and NuGet.org. Publishing is an explicit workflow-dispatch action; the current alpha package is published through the repository's trusted-publishing workflow.

WebPage integration

WebPage is a host and proving ground for FSM_COS; it is not a special case inside the composition kernel. The intended flow is:

WebPage published manifest
        ↓
     FsmCos
        ↓
IMicroBundleCatalog supplied by WebPage
        ↓
 RuntimeAssembly
        ↓
WebPage / GUI manifestation
        ↓
     Blazor/browser

WebPage should reference the TheSingularityWorkshop.FSM_COS package and implement the catalog/host boundary around it. Platform-specific lifecycle, browser APIs, GUI rendering, and Experience presentation remain outside FSM_COS.

The first AI/GUI vertical slice now follows the same boundary: WebPage supplies ProtocolAI, GrammarAI, and GUI-facing MicroBundles through its catalog; FSM_COS composes them and returns them through RuntimeAssembly; the WebPage host uses the shared GUI builder for manifestation and owns clipboard/provider interaction. This keeps the package reusable while proving that the semantic exchange can be assembled as ordinary runtime capability.

For the concrete integration contract, see WebPage Integration and FSM_COS Theory — Same composition, different manifestation.

Design invariant

FSM_API      → behavior
FSM_COS      → composition
MicroBundle  → focused capability/content/behavior
Warehouse    → storage and delivery
Host         → execution / manifestation
Experience   → what is encountered

The boundaries can evolve. The responsibility of FSM_COS should remain clear:

Assemble what was requested. Return a stable composition. Hand it to the host.


🔗 Resources & Support

📦 Get the core packages

💖 Support The Singularity Workshop

<p align="center"> <a href="https://github.com/TrentBest/FSM_API"> <img src="https://raw.githubusercontent.com/TrentBest/FSM_API/master/Documentation/Branding/TheSingularityWorkshop.png" alt="The Singularity Workshop" height="200"> </a> </p>

<p align="center"> <em>The Singularity Workshop — Tools for the curious, the bold, and the systemically inclined.</em><br> <strong>Because state shouldn't be a mess.</strong> </p>


🔗 The Singularity Workshop

FSM_COS is one layer in a deliberately troublesome ecosystem:

<p align="center"><em>The Singularity Workshop — Tools for the curious, the bold, and the systemically inclined.</em><br><strong>Because state shouldn't be a mess.</strong><br><em>And because static boundaries are invitations to cause trouble.</em></p>

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on TheSingularityWorkshop.FSM_COS:

Package Downloads
TheSingularityWorkshop.FSM_Rest

Framework-agnostic REST capability descriptors and transport boundary for the FSM ecosystem.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-alpha.6 2,331 10/11/2026
0.1.0-alpha.5 3,137 10/3/2026
0.1.0-alpha.4 412 10/1/2026
0.1.0-alpha.3 1,868 9/29/2026
0.1.0-alpha.2 86 9/29/2026
0.1.0-alpha.1 126 9/28/2026