Class WorkflowSchemaVersion

java.lang.Object
com.agentforge4j.schema.WorkflowSchemaVersion

public final class WorkflowSchemaVersion extends Object
The workflow schema version this framework build understands.

This single integer is the whole schema-compatibility surface, enforced at two points. Every workflow document (workflow.json) must declare the format version it is authored against in its required schemaVersion field; the workflow bundle loaders reject a document whose declared version does not match SUPPORTED_WORKFLOW_SCHEMA_VERSION, naming both versions. A shipped-workflow catalog additionally declares the schema version it was authored against in its agentforge4j-catalog.json manifest (workflowSchemaVersion); the catalog compatibility gate rejects a catalog whose declared version does not match, so a catalog built against a newer (or older) workflow schema cannot be loaded by an incompatible framework. Nested documents of a bundle (blueprints, agents, artifacts) carry no version field of their own — the workflow document's schemaVersion names the wire format of the whole bundle.

  • Field Details

    • SUPPORTED_WORKFLOW_SCHEMA_VERSION

      public static final int SUPPORTED_WORKFLOW_SCHEMA_VERSION
      The single workflow schema version supported by this framework build.
      See Also: