Reusable capability block manifest¶
The manifest is the governed description of what a source module exports. It carries the reusable capability block's identity, its exact auth requirements, its dependency intent, its environment declaration, and one entry per export with that export's execution contract. Publish adds immutable requirement identities after checking the bake-sealed requirement set.
{
"manifest_id": "billing-manifest",
"version": "1.0.0",
"document": {
"auth_requirement_base": {"kind": "initial"},
"auth_requirement_contract_version": "secret.published_auth_requirement.v1",
"auth_requirement_set_digest": "sha256:2f86...",
"reusable_capability_blocks": [
{
"reusable_capability_block_id": "billing",
"interface_id": "billing.Billing",
"interface_version": "1.0.0",
"owner_team": "platform",
"maintainer": "platform@local",
"support_tier": "tier-1",
"lifecycle_state": "active",
"declared_auth": {
"contract_version": "reusable_capability_block.auth_declaration.v2",
"produced_by": "reusable_capability_block_generation",
"reusable_capability_block_id": "billing",
"interface_id": "billing.Billing",
"requirements": [
{"key": "api_key", "method": "Billing.charge", "export_ordinal": 0}
]
},
"auth_requirement_decisions": [
{
"key": "api_key",
"method": "Billing.charge",
"export_ordinal": 0,
"auth_meaning_decision": "new",
"requirement_revision": 1
}
],
"auth_requirements": [
{
"contract_version": "secret.published_auth_requirement.v1",
"produced_by": "capability_publish",
"key": "api_key",
"requirement_id": "arq_7f19...",
"requirement_revision": 1,
"reusable_capability_block_id": "billing",
"interface_id": "billing.Billing",
"interface_version": "1.0.0",
"method": "Billing.charge",
"export_ordinal": 0
}
],
"dependency_intent": {
"python": { "backend": "uv", "requirements": ["stripe>=8.0"] },
"apt": [],
"image": ""
},
"environment_declaration": {},
"exports": [
{
"symbol": "Billing.charge",
"export_ordinal": 0,
"entrypoint": "billing_capabilities:charge",
"execution_contract": {
"side_effect_class": "read_only",
"output_stability": "stable",
"idempotency": { "required": false, "scope": "node", "key_fields": [] }
}
}
]
}
]
}
}
Top level¶
| Field | Meaning |
|---|---|
manifest_id |
Names this manifest, defaulting to <module>-manifest |
version |
The manifest version, defaulting to 1.0.0 |
document.reusable_capability_blocks |
One entry per block, a non-empty array |
The block entry¶
Each entry in that array describes one block. Generation derives every field from the source module.
| Field | Source |
|---|---|
reusable_capability_block_id |
The module name |
interface_id |
<module>.<class>, or <module>.<module> |
interface_version |
The manifest version |
declared_auth |
Every @xratu_auth key qualified by its method and export ordinal |
auth_requirement_decisions |
The reviewed new, preserved or changed decision and revision for every declared requirement |
auth_requirements |
The immutable qualified requirements created by publication |
dependency_intent |
The @xratu requirements, system packages and image |
environment_declaration |
The @xratu environment values |
exports |
One entry per discovered public callable |
Governance metadata¶
Four fields carry the block's ownership and support commitment, and generation
fills them with defaults: owner_team is platform, maintainer is
platform@local, support_tier is tier-1, and lifecycle_state is
active.
These travel with the block into publication, so a catalog entry names who owns it and what its support commitment is. See Deprecation and retirement.
The export entry¶
| Field | Default | Meaning |
|---|---|---|
symbol |
Required | The callable, qualified by its owner class when one exists |
export_ordinal |
Required | A non-negative integer, assigned by the compiled interface |
entrypoint |
Required | module.path:function, the adapter entrypoint |
engine |
python |
The adapter convention |
io_profile |
generic |
generic, retrieval, or text_generation |
description |
"" |
Free text |
timeout_seconds |
60 |
Positive integer |
retry_policy.max_attempts |
1 |
At least 1 |
mapping |
{} |
Input mapping |
required_context |
[] |
Context values needed |
required_artifacts |
[] |
Artifacts that must be present |
quality_policy |
{} |
Quality rules attached to the export |
execution_contract |
Required | Side-effect class, output stability, idempotency |
io_contract |
Optional | Typed inputs and outputs |
Every export in one block has a unique symbol and ordinal. Discovery
deduplicates on the owner and callable pair, so two classes may each declare
invoke and both reach the surface.
Auth requirement identity¶
The source decorator keeps its callable-local form:
Generation associates api_key with the exact interface, method and export
ordinal. A class-level declaration expands to every admitted export. Bake seals
that set in the execution capsule manifest, and publish creates the immutable
catalog requirements shown in auth_requirements.
A compatible release can preserve a requirement revision and identity. A
reviewed change in credential meaning advances requirement_revision and
creates a new identity, so project authors map the changed requirement again.
The manifest digest is calculated after publication has inserted the complete
requirement set.
Validating a manifest¶
The first checks the document shape. The second runs the full schema, including the execution contract and IO contract rules.
Related: Execution contracts and side-effect classes covers the contract fields, and Block generation output covers the other three documents generation writes beside this one.