ConcretePlanIR API¶
ConcretePlanIR is the target-bound authoritative command envelope. Common
coordination semantics stay in the envelope; target-only correctness semantics
live in a registered typed extension.
Target- and deployment-bound authoritative command plan.
SynchronizationTokens
module-attribute
¶
CommandBodyVariant
module-attribute
¶
CommandBodyVariant: TypeAlias = Launch | CollectiveCommand | Transfer | Barrier | Signal | Wait | HostCall
CommandSynchronizationVariant
module-attribute
¶
_CONCRETE_RESERVED
module-attribute
¶
_CONCRETE_RESERVED = frozenset({'start', 'start_time', 'predicted_start', 'end', 'end_time', 'predicted_end', 'duration', 'latency', 'estimated_time', 'predicted_duration'})
__all__
module-attribute
¶
__all__ = ['AccessMode', 'Barrier', 'BufferBinding', 'BufferUse', 'CommandKind', 'CommandBody', 'CommandBodyVariant', 'CommandSynchronization', 'CommandSynchronizationVariant', 'CollectiveCommand', 'ConcreteCommand', 'ConcretePlanIR', 'DevicePlacement', 'ImplementationRef', 'HostCall', 'IssueSlot', 'MemoryRegion', 'Launch', 'QueueIssueOrder', 'QueueKind', 'QueueScheduleExtension', 'QueueSpec', 'RouteConstraint', 'SlotDataflowExtension', 'Signal', 'SignalAfter', 'TargetScheduleExtension', 'Transfer', 'Unsynchronized', 'Wait', 'WaitAndSignal', 'WaitFor']
ValueConstraint ¶
Bases: Enum
Small closed vocabulary of reusable structural refinements.
VariantSpec
dataclass
¶
Manifest entry for one explicitly named ADT constructor.
FrozenDict ¶
Bases: Mapping[str, V], Generic[V]
A compact, hashable mapping with recursively frozen values.
Source code in src/blueprinting/schema/frozen.py
__reduce__ ¶
Use the public constructor for process and UI cache round-trips.
DiagnosticBag ¶
VerificationReport
dataclass
¶
Bases: DiagnosticSet
Backward-compatible name for the domain-free immutable diagnostics.
Lineage ¶
Typed provenance from source entities to one lowering product.
CanonicalIRMixin ¶
Behavior shared by immutable canonical IR roots.
to_json ¶
Serialize through a self-describing, digest-checked envelope.
Source code in src/blueprinting/synthesizer/stages/common.py
from_json
classmethod
¶
Decode an exact-schema snapshot without exception control flow.
Source code in src/blueprinting/synthesizer/stages/common.py
require_from_json
classmethod
¶
Explicit exception adapter for trusted internal/replay boundaries.
Source code in src/blueprinting/synthesizer/stages/common.py
load_migrated
classmethod
¶
Load through an explicit registered migration path.
Source code in src/blueprinting/synthesizer/stages/common.py
verify ¶
IRHeader ¶
Version and provenance header embedded in every canonical IR.
SchemaVersion ¶
Semantic version of one serialized IR schema.
DevicePlacement ¶
Binding from a logical rank to a physical target device.
QueueKind ¶
Bases: Enum
Target execution-engine category represented by a command queue.
QueueSpec ¶
A target-owned command queue attached to one physical device.
MemoryRegion ¶
A finite physical memory region available to concrete buffers.
BufferBinding ¶
Physical placement of one portable buffer with preserved lineage.
ImplementationRef ¶
Versioned target implementation and ABI selected for a command.
AccessMode ¶
Bases: Enum
Concrete command access performed on a bound buffer.
BufferUse ¶
Typed buffer access declared by one concrete command.
CommandKind ¶
Bases: Enum
Derived command category used by generic consumers and diagnostics.
CommandBody ¶
Closed family of mutually exclusive target command semantics.
Launch ¶
Bases: CommandBody
CollectiveCommand ¶
Bases: CommandBody
Transfer ¶
Bases: CommandBody
Barrier ¶
Bases: CommandBody
Signal ¶
Bases: CommandBody
Wait ¶
Bases: CommandBody
HostCall ¶
Bases: CommandBody
CommandSynchronization ¶
Closed synchronization clause orthogonal to executable command semantics.
Unsynchronized ¶
Bases: CommandSynchronization
WaitFor ¶
Bases: CommandSynchronization
SignalAfter ¶
Bases: CommandSynchronization
WaitAndSignal ¶
Bases: CommandSynchronization
ConcreteCommand ¶
Graph envelope around one typed implementation-bound command body.
TargetScheduleExtension ¶
Marker for registered target-owned scheduling correctness semantics.
QueueIssueOrder ¶
Correctness-significant issue order for one target queue.
QueueScheduleExtension ¶
Bases: TargetScheduleExtension
Typed target extension for queue-ordered execution semantics.
IssueSlot ¶
Exact cycle and slot assigned to a command by a slot target.
RouteConstraint ¶
Correctness-significant physical route required by a transfer command.
SlotDataflowExtension ¶
Bases: TargetScheduleExtension
Typed target extension for slot issue and routed dataflow semantics.
ConcretePlanIR ¶
Bases: CanonicalIRMixin
Dependency-driven plan consumed by both simulation and emission.
adt ¶
Declare the shared semantic wire namespace for a closed sum type.
Source code in src/blueprinting/schema/deriving.py
enum ¶
Register one closed enumeration through the public authoring surface.
Source code in src/blueprinting/schema/deriving.py
record ¶
Derive an immutable canonical record from an annotated class declaration.
Source code in src/blueprinting/schema/deriving.py
seal_adt ¶
Declare the explicit runtime closure corresponding to a static Union alias.
Source code in src/blueprinting/schema/deriving.py
variant ¶
Derive and register one explicitly named constructor of an ADT family.
Source code in src/blueprinting/schema/deriving.py
is_content_digest ¶
make_header ¶
make_header(schema_name: str, schema_version: SchemaVersion, *, parent_digests: Iterable[str] = (), features: Iterable[str] = (), producer_version: str = '0.0.0') -> IRHeader
Source code in src/blueprinting/synthesizer/stages/common.py
reject_reserved_attributes ¶
reject_reserved_attributes(bag: DiagnosticBag, attributes: FrozenDict, reserved: frozenset[str], *path: str) -> None
Reject semantic fields smuggled through extension dictionaries.
Source code in src/blueprinting/synthesizer/stages/common.py
verify_known_references ¶
verify_known_references(bag: DiagnosticBag, references: Iterable[StableId], known: Iterable[StableId], *path: str) -> None
Source code in src/blueprinting/synthesizer/stages/common.py
verify_ordered_dag ¶
verify_ordered_dag(bag: DiagnosticBag, entities: Sequence[Entity], id_of: Callable[[Entity], StableId], dependencies_of: Callable[[Entity], Iterable[StableId]], path: str) -> None
Verify references and require canonical topological sequence order.
Source code in src/blueprinting/synthesizer/stages/common.py
verify_unique_ids ¶
verify_unique_ids(bag: DiagnosticBag, entities: Sequence[Entity], id_of: Callable[[Entity], StableId], path: str) -> None