raptor.schema.manifest#
The bird-neutral (neutral across the family’s own eagle/hawk/raptor packages) kernel-manifest schema — the layer hawk touches.
This module MUST stay clean of the extension family’s vocabulary (declared in
raptor.schema.blocks, the sibling module this file never imports — the
purity direction is one-way: blocks may reference manifest, never the
reverse). This is what lets hawk’s writer bind against this module alone and
keep its own core-purity gate green.
Mirrors eagle/python/eagle/roles.py (the Python half of the schema-v1
protocol) for the bird-neutral subset of its vocabulary, and the C++ twin
eagle/plugin/roles.h / eagle/plugin/plugin_registry/manifest.h.
NOTE on the top-level key order: the full order for the EXTENDED manifest
kind (see raptor.schema.blocks) is schema_version, pattern, aether_abi,
blocks, plugins — spelling the literal blocks here would tie this
neutral module to the extension’s carriage key, so the FULL order is housed
in raptor.schema.blocks instead; TOP_LEVEL_KEY_ORDER below is
the neutral 4-key order for an ordinary (unextended) manifest.
A toy manifest document, just enough to pass check_schema_version()
and check_execution_axis():
doc = {
"schema_version": 1,
"pattern": "pure",
"aether_abi": "aether-abi/1",
"plugins": [],
}
check_schema_version(doc) # -> 1
check_execution_axis(doc, 1) # -> None (no exec keys allowed at v1)
Module Attributes
raptor's own plugin-schema version — the schema triad's number of record. |
|
the highest |
|
entry-point symbol of every kernel artifact, generated or hand-written (verbatim value of |
|
the FIELD name carrying the AETHER ABI tag on a manifest/sidecar. |
|
the |
|
the |
|
the |
|
how the plugin body touches sample-local vs. |
|
the reduction-operator vocabulary a schema-v2 manifest's |
|
the v2-only FLAT top-level keys naming the execution axis. |
|
top-level key order of an ORDINARY (unextended) manifest — contractual for the C++ text scanner. |
|
|
|
the base plugin-family vocabulary a bird-neutral manifest/sidecar may name (schema v1). |
|
the |
|
the manifest-entry |
Functions
Validate the schema-v2 execution axis, given the ALREADY-resolved |
|
Return the artifact's plugin-schema version, rejecting one too new to load. |