Knowledge Portal · engineering documentation

Skip to content

ZAIXOS Engineering Platform — Public API Architecture

Document type: Technical Specification
Version: 1.0 · Phase: 12-3
Status: Permanent technical authority
Governance: PLATFORM_PUBLIC_API.md


Purpose

Define the technical shape of the Public API — how classification maps to paths, schemas, entrypoints, and consumer integration — complementing governance classification without duplicating policy.


API surface layers

┌─────────────────────────────────────────────────────────┐
│ Consumer Integration Layer (product repo)               │
│  platform.yml · platform.lock · extensions/manifest.yml │
└─────────────────────────┬───────────────────────────────┘

┌─────────────────────────▼───────────────────────────────┐
│ Public Entrypoints Layer                                 │
│  validation command · materialization contract · docs    │
└─────────────────────────┬───────────────────────────────┘

┌─────────────────────────▼───────────────────────────────┐
│ Public Artifact Layer                                    │
│  contracts · methodology · templates · adapter profile   │
└─────────────────────────┬───────────────────────────────┘

┌─────────────────────────▼───────────────────────────────┐
│ Internal Implementation Layer (not consumer-facing)      │
│  validation/src · hook scripts · CI scripts              │
└─────────────────────────────────────────────────────────┘

Public path registry (technical)

Path patternClassConsumer access
core/methodology/*PRead
contracts/*PRead
runtime/manifests/schemas/*PRead
runtime/manifests/defaults/*PRead
adapters/{certified-id}/profile.mdPRead
adapters/{certified-id}/manifest.jsonPRead
adapters/{certified-id}/workspace/**PMaterialized copy
templates/**PRead / copy
docs/developer-guide.mdPRead
validation/tests/*Test.phpPExecute via PHPUnit
schemas/config/*.jsonPValidate against
.zaixos/platform.ymlPProduct write
.zaixos/platform.lockPProduct write
.zaixos/extensions/manifest.ymlPProduct write

Non-public paths (forbidden for product config reference)

PathClass
validation/src/Support/*I
Adapter hook *.py internals as APII
Platform release scriptsI
Draft docs pre-acceptanceI

Schema-public surfaces

All Public config files validate against JSON Schema in schemas/config/:

Schema fileTarget
platform-yml.schema.json.zaixos/platform.yml
platform-lock.schema.json.zaixos/platform.lock
extensions-manifest.schema.json.zaixos/extensions/manifest.yml
adapter-manifest.schema.jsonadapters/*/manifest.json

Schema files are Public — field additions follow semver rules in EVOLUTION_MODEL.md.


Entrypoint stability

EntrypointStabilityDocumented in
PHPUnit suite EngineeringRuntimePlatformStable per platform MAJORdeveloper-guide
Materialization sequenceStable per platform MAJORRUNTIME_MATERIALIZATION
Config schemas v1Stable for platform 1.xPLATFORM_CONFIGURATION_REFERENCE

Experimental entrypoints (zaixos CLI) are not Public until promoted.


Adapter public surface (technical)

Products integrate adapters only via:

  1. platform.ymladapter.id
  2. Materialized workspace at configured mount
  3. adapter.manifest.json validated by ContractComplianceTest

No PHP API to adapter in v1 — file materialization only.


Extension public surface (technical)

  1. Register in manifest.yml
  2. Place files in declared slot paths
  3. Pass ExtensionSchemaTest

Extensions do not receive semver from platform — product owns extension content versioning informally via Git.


API change detection (implementation guidance)

Platform CI SHOULD:

  • Diff Public path registry vs previous release tag
  • Fail MAJOR release if Public path removed without ADR
  • Emit DEPRECATED notices in validation output for Deprecated catalog items

Consumer contract (technical enforcement)

Products at Public API level MUST:

RequirementEnforced by
Pin exact lock on release branchesConfigSchemaTest + CI policy
Run Layers 0–5 on PRCI
No vendor core editsChecksumIntegrityTest
Extensions registeredExtensionSchemaTest
No contract text forksContractComplianceTest + review

Public API Architecture v1.0 — Phase 12-3.

ZAIXOS Knowledge Portal — public engineering docs at /docs · Staff operations at /admin