proto.computer / compiler spec

compiler ir spec

this is the formal self-housed reference for how authored law becomes executable machine shape. it defines the rust-only normalization phases, the public compiled artifact surfaces, the typed lowered ruleset dag, the strict expression ast, and the fully resolved lane, authority, discharge, and diagnostic plans. every typed surface carries its algebra breadcrumb explicitly so the reader can see exactly where a type sits in the chain from source material to picture.

docs are the spec; proto and rust follow validated → resolved → lowered → compiled stable dotted handles, no compiled uuids full chain mini-map on every surface

compiler thesis

AuthoredWorld/AuthoredSet → ValidatedWorld/ValidatedSet → ResolvedWorld/ResolvedSet → LoweredWorld/LoweredSet → CompiledWorld/CompiledSet
source_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ

the compiler does not mint law. it makes authored law executable. compiled output is therefore a public executable artifact, while the richer normalization layers remain rust-only internal structure. stable semantic handles, not uuids, are the compiler identity currency.

validated

closes authored refs, bans folklore, and proves that every boundary, route, process transition, and policy surface exists.

resolved

freezes stable handles, precedence, legality, and viewer-safe placement math so runtime never guesses between policies.

lowered

turns resolved law into byte-stable executable dag and artifact shape for κ, χ, μ, ν, and σ.

how to read the mini-map

every type and every operator in this doc starts with the same compact mini-map. it always includes the full algebra chain, the local focus, the owning strata, the abstraction zoom, and the consumed/emitted surfaces. this keeps the formal layer and the cinematic html layer aligned.

full chain source_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focus ρ → α → λ or any local slice of the chain that this surface specializes
strata κ, χ, μ, ν, or σ, singly or in combination
zoom authored, compiled, live, or viewer; this doc focuses on compiled plus rust-only normalization
consumes the input surfaces this type/operator expects
emits the output surfaces this type/operator makes available to the next layer

boundary focus

source_material → admitχ → d is used for bindings, faces, and schema-map lowering.

execution focus

d → ρ → α → λ → ι → ξ/ℓ/ο is used for routes, lanes, authority, discharge, and compiled machinery plans.

viewer focus

ℓ → ω → ψ and σ → ν → ψ are used for projections, set surfaces, and staging-facing handles.

phase ir

these are rust-only types. they are not protobuf artifacts. they exist so the compiler can remain explicit, typed, and deterministic without squeezing every intermediate concern into the public compiled contracts too early.

ValidatedWorld

the fully closed authored world after reference, completeness, and legality checking, but before precedence and handles are frozen.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusauthored law → compiled intake
strataκ + χ + σ
zoomcompiled intake / rust-only
consumesAuthoredWorld
emitsValidatedRef[], ValidatedRuleset[], typed validation tables
ValidatedWorld {
  authored_world: AuthoredWorld,
  refs: map<SlugPath, ValidatedRef>,
  rulesets: map<RulesetSlug, ValidatedRuleset>,
  policy_declarations: ValidationPolicyTable,
  diagnostics: CompileDiagnostic[],
}
fieldmeaning
authored_worldthe original authored contract, preserved for span provenance and later lowering.
refsevery authored slug path resolved to a declared target kind or rejected as missing/ambiguous.
rulesetsvalidated dag-shaped authored rulesets with closed node refs and terminal requirements.
policy_declarationsthe raw lane, bind/birth, authority, and discharge declarations before precedence reduction.
diagnosticsvalidation-stage notes, warnings, and errors.
  • invariants. every intake face, effect face, route fact kind, process transition, and set landmark ref must exist here or compilation stops.
  • not yet done. no stable handles, no global positions, and no resolved precedence appear in this phase.
  • first appearance. this is the first place where “the authored world is closed” becomes a machine-checkable claim.
specimen:
ValidatedWorld.refs["route.activation.credit.create"] = ValidatedRef {
  kind: "route",
  slug_path: "route.activation.credit.create",
  target_kind: "Route",
  origin_span: "fixtures/finexa/authored_world.pbjson#routes[0]"
}
ValidatedSet

the authored set after landmark closure and district-local geometry validation, but before global placement resolution.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusσ authored placement → compiled placement
strataσ + ν
zoomcompiled intake / rust-only
consumesAuthoredSet, ValidatedWorld
emitsvalidated district frames, validated landmark refs, placement diagnostics
ValidatedSet {
  authored_set: AuthoredSet,
  districts: map<DistrictSlug, DistrictFrame>,
  landmark_refs: map<SlugPath, ValidatedRef>,
  diagnostics: CompileDiagnostic[],
}
fieldmeaning
districtsdistrict-local frames with origin and extent checked for shape, overlap intent, and member closure.
landmark_refsevery face/anchor/track/dock/screen ref proven to target an authored world object of the right kind.
diagnosticslayout and reference diagnostics prior to global placement resolution.
  • invariants. set authoring may place only declared semantic landmarks; it may not create routes, bays, or process law.
  • coordinate stance. all authored positions remain district-local here.
specimen:
ValidatedSet.districts["activation"] = DistrictFrame { origin: (20,0,0), extent: (12,6,10) }
ResolvedWorld

the world after stable handles, precedence, legality, and executable policy resolution. runtime never needs to recompute authorial precedence beyond this point.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusρ → α → λ plus compiled κ/χ/σ preparation
strataκ + χ + σ + μ + ν
zoomcompiled / rust-only
consumesValidatedWorld
emitsresolved handles, bind/birth plans, lane plans, authority matrix, discharge plans, lowerable dag inputs
ResolvedWorld {
  validated: ValidatedWorld,
  handles: map<SlugPath, ResolvedHandle>,
  bind_plans: map<ProtoBayHandle, ResolvedBindPlan>,
  birth_plans: map<ProtoBayHandle, ResolvedBirthPlan>,
  lane_plans: map<RouteHandle, ResolvedLanePlan>,
  authority_matrix: ResolvedAuthorityMatrix,
  authority_by_route: map<RouteHandle, ResolvedAuthorityPlan>,
  discharge_by_effect: map<EffectHandle, ResolvedDischargePlan>,
  diagnostics: CompileDiagnostic[],
}
  • invariants. same-tier policy conflict, unresolved lane plan, illegal truth promotion, impossible bind/birth reuse, and route-side bind/birth redefinition are all errors here.
  • identity stance. every public compiled handle is already frozen here and remains stable through lowering.
  • runtime stance. runtime reads resolved authority and discharge plans; it does not redo authored precedence logic.
specimen:
ResolvedWorld.handles["route.activation.credit.create"] = "cw.finexa_credit_world.route.activation.credit.create"
ResolvedSet

the set after stable handles, global positions, derived conduits/gates/bridges, and viewer-safe geometry handles are resolved.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusσ → ν → ψ
strataσ + ν
zoomcompiled / rust-only
consumesValidatedSet, ResolvedWorld
emitsglobal placement tables, derived scene machinery, viewer-safe handles
ResolvedSet {
  validated: ValidatedSet,
  district_frames: map<DistrictHandle, DistrictFrame>,
  global_positions: map<LandmarkHandle, Vec3>,
  derived_edges: DerivedSceneEdges,
  diagnostics: CompileDiagnostic[],
}
  • invariants. the compiler may derive conduits, gates, switches, chambers, bridges, labels, and overlay channels only from authored landmarks plus compiled world topology.
  • geometry stance. district-local authored coordinates are lifted into global positions exactly once here.
specimen:
ResolvedSet.global_positions["cs.finexa_credit_world.anchor.credit_request"] = (4,1,0)
LoweredWorld

the protobuf-ready world shape after resolved plans and lowered dag nodes are ordered into deterministic public artifact form.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusκ + χ + μ + ν + σ emitted as compiled artifact
strataκ + χ + μ + ν + σ
zoomcompiled lowering / rust-only
consumesResolvedWorld, LoweredRulesetDag[]
emitsCompiledWorld
LoweredWorld {
  resolved: ResolvedWorld,
  compiled_world: CompiledWorld,
  serialization_order: LoweringOrder,
}
  • determinism. equal authored input plus equal schema edition yields equal handle sets, equal plan ordering, and byte-stable compiled output.
  • public boundary. this is the last rust-only stop before the public compiled artifact.
specimen:
LoweredWorld.serialization_order.routes = ["cw.finexa_credit_world.route.activation.credit.create"]
LoweredSet

the protobuf-ready set artifact with resolved global placement and derived scene machinery ordered deterministically.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusσ → ν → ψ
strataσ + ν
zoomcompiled lowering / rust-only
consumesResolvedSet, ResolvedWorld
emitsCompiledSet
LoweredSet {
  resolved: ResolvedSet,
  compiled_set: CompiledSet,
  serialization_order: LoweringOrder,
}
specimen:
LoweredSet.serialization_order.tracks = ["cs.finexa_credit_world.track.activation"]

stable handle policy

compiled handles are readable dotted semantic ids. they are derived from authored slug paths, not generated as uuids. edition, hash, and producer provenance live in ArtifactMeta, not in the handle string itself.

familyformatexamplerule
world artifactcw.<world_slug>.<family>.<local_slug>cw.finexa_credit_world.route.activation.credit.createpublic compiled world handle namespace
set artifactcs.<world_slug>.<family>.<local_slug>cs.finexa_credit_world.track.activationpublic compiled set handle namespace
nested field…field.<field_slug>cw.finexa_credit_world.proto.credit.field.principal_balancenested handles extend the authored path
dag node…ruleset.<ruleset_slug>.node.<node_slug>cw.finexa_credit_world.ruleset.trello_pipeline_rules.node.filter_activationlowered dag nodes remain readable and stable

typed atoms used below

aliasmeaningnotes
Handlestable dotted semantic identitypublic identity basis for compiled artifacts
ContractRefref to a declared material or row contractused by rulesets, projections, and field hydration
FieldPathReftyped path into a contract field treevalidated before lowering completes
DatumKindclosed enum of admitted datum familiesno free-form datum-kind strings in compiled surfaces
ReceiptKindclosed enum of receipt familiesused by discharge planning and replay closure
ReasonCodestable terminal classifierused by reject and quarantine nodes
AuthorityGroupReftyped field-group identityauthority is compiled at proto + field-group granularity
DurationSpectyped duration valuenot an ad hoc string; later proto may encode seconds + nanos
WatermarkPolicytyped watermark contractrequired for window nodes with lateness behavior
EscalationTargetReftyped escalation endpoint refmay resolve to effect, process, or notification policy target
BranchLabelclosed branch identityused by lowered dag edges
TerminalActionclosed terminal node actionadmit, project, effect_emit, quarantine, reject
ConfidenceGatetyped threshold policy for bind lookupused only where authored law demands confidence scoring
AmbiguousMatchBehaviorclosed ambiguity policy enumfor example error, quarantine, prefer_exact
BirthTriggerclosed birth timing enumfor example on_commit or on_receipt where lawful
BirthShapeReftyped reference to the resulting proto shell shapecompiler must know the exact born shape
BirthFailureBehaviorclosed failure mode enumfor example quarantine, reject, error

public compiled artifact catalog

these are the public executable artifact surfaces. they are the shapes the later protobuf schemas and rust bindings must conform to. each one is described here at the conceptual, typed, and operational levels.

compiled world surfaces

CompiledWorld

the root executable artifact for law, machinery, readout, and viewer adapters.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusd → ρ → α → λ → ι → ξ/ℓ/ο → ω → ψ
strataκ + χ + μ + ν + σ
zoomcompiled
consumesLoweredWorld
emitsLaw, Machinery, Readout, static/dynamic viewer loaders
CompiledWorld {
  meta: ArtifactMeta,
  authored_world_ref: Handle,
  resolved_ids: ResolvedIds,
  compiled_sources: map<SourceSlug, CompiledSource>,
  compiled_ports: map<PortSlug, CompiledPort>,
  compiled_port_bindings: map<BindingSlug, CompiledPortBinding>,
  compiled_faces: map<FaceSlug, CompiledFace>,
  compiled_rulesets: map<RulesetSlug, CompiledRuleset>,
  compiled_protos: map<ProtoSlug, CompiledProto>,
  compiled_proto_bays: map<ProtoBaySlug, CompiledProtoBay>,
  compiled_processes: map<ProcessSlug, CompiledProcess>,
  compiled_routes: map<RouteSlug, CompiledRoute>,
  compiled_projections: map<ProjectionSlug, CompiledProjection>,
  bind_plans: map<ProtoBayHandle, ResolvedBindPlan>,
  birth_plans: map<ProtoBayHandle, ResolvedBirthPlan>,
  lane_plans: map<RouteHandle, ResolvedLanePlan>,
  authority_matrix: ResolvedAuthorityMatrix,
  authority_by_route: map<RouteHandle, ResolvedAuthorityPlan>,
  discharge_rules: map<EffectHandle, ResolvedDischargePlan>,
  viewer_handles: ViewerHandles,
  compile_diagnostics: CompileDiagnostic[],
}
fieldmeaning
metaartifact provenance, schema edition, and schema hash.
authored_world_refthe authored root this compiled artifact lowers from.
resolved_idsthe stable handle atlas for all public world families.
compiled_* mapsthe public executable surfaces for each world family.
bind_plans / birth_plans / lane_plansfully resolved execution plans for proto crossing and commit placement.
authority_matrix / authority_by_routeglobal field-group authority plus route-local resolved authority.
discharge_ruleseffect-indexed resolved discharge plans.
viewer_handlesthe stable set-facing handle list used for static viewer loading and overlays.
compile_diagnosticsall non-fatal diagnostics emitted during compilation.
  • invariants. this artifact never invents missing authored law; every route fact kind, process move, effect face, and boundary surface must trace back to authored declarations.
  • consequence. runtime, replay, and viewer can all read this artifact without re-running compile-time precedence.
specimen:
CompiledWorld.compiled_routes["activation.credit.create"].process_transition =
  { process: "activation", from: "approved", to: "active" }
ResolvedIds

the public atlas from authored slugs to compiled stable handles.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focuscompiled identity basis
strataκ + χ + μ + ν + σ
zoomcompiled
consumesResolvedHandle[]
emitspublic handle lookups for every world family
ResolvedIds {
  world: Handle,
  sources: map<SourceSlug, Handle>,
  ports: map<PortSlug, Handle>,
  faces: map<FaceSlug, Handle>,
  protos: map<ProtoSlug, Handle>,
  bindings: map<BindingSlug, Handle>,
  processes: map<ProcessSlug, Handle>,
  routes: map<RouteSlug, Handle>,
  projections: map<ProjectionSlug, Handle>,
  effects: map<EffectSlug, Handle>,
}
  • invariants. one authored slug path yields one stable handle; missing or duplicate public handle allocation is an error.
  • runtime consequence. every downstream public contract uses these handles as durable references.
specimen:
ResolvedIds.routes["activation.credit.create"] = "cw.finexa_credit_world.route.activation.credit.create"
CompiledSource

compiled boundary capability summary for one authored source.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focussource_material → admitχ
strataχ
zoomcompiled
consumesSource
emitstrust/capability summary for boundary planning
CompiledSource {
  handle: Handle,
  kind: SourceKind,
  trust: TrustPosture,
  material_contracts: ContractRef[],
}
fieldmeaning
handlestable public identity for the source capability summary.
kindthe normalized source class used by binding and runtime admission logic.
trustthe resolved trust posture used by boundary and authority validation.
material_contractsthe typed material contracts this source may lawfully expose.
  • invariants. compiled source states capability only; it never injects new parsing, authority, or effect law.
  • first appears. resolved in ResolvedWorld after source closure.
  • consequence. boundary validation can reject impossible source/binding combinations before runtime.
specimen:
CompiledSource {
  handle: "cw.finexa_credit_world.source.trello",
  kind: SOURCE_KIND_TRELLO,
  trust: TRUST_POSTURE_OBSERVATIONAL,
  material_contracts: ["trello.card.action"]
}
CompiledPort

the deployed transport surface after direction and deployment hints are normalized.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focussource_material → admitχ and outbound delivery
strataχ
zoomcompiled
consumesPort
emitsnormalized port capability and deployment data
CompiledPort {
  handle: Handle,
  direction: Direction,
  transport_family: TransportFamily,
  deployment: PortDeployment,
}
fieldmeaning
handlestable public identity for the deployed contact surface.
directionwhether the port is inbound, outbound, or duplex.
transport_familynormalized transport class used by adapter/runtime selection.
deploymenttyped deployment contract containing locality, endpoint ref, and runtime binding hints.
  • invariants. port deployment is transport posture only; semantic matching and truth movement still live on bindings, faces, and routes.
  • first appears. resolved in ResolvedWorld after deployment closure.
  • consequence. inbound admission and outbound delivery share one normalized transport surface without conflating it with law.
specimen:
CompiledPort {
  handle: "cw.finexa_credit_world.port.trello_webhook",
  direction: DIRECTION_INBOUND,
  transport_family: TRANSPORT_FAMILY_HTTP_WEBHOOK,
  deployment: PortDeployment { locality: LOCALITY_REMOTE, endpoint_ref: "deployment.trello.webhook" }
}
CompiledPortBinding

the compiled boundary object for one deployed source-composition path.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focussource_material → admitχ → d
strataχ
zoomcompiled
consumesPortBinding, CompiledSource, CompiledPort
emitstyped ingress/egress adapter plan, material contract, matcher, and diagnostics
CompiledPortBinding {
  binding_id: Handle,
  port_ref: Handle,
  source_ref: Handle,
  direction: Direction,
  deployment_ref: Handle,
  credential_contract: ContractRef,
  protocol_adapter: Handle,
  parser_plan: Handle,
  material_contract: ContractRef,
  matcher_plan: Handle,
  admit_policy: Handle,
  bind_hook: Handle?,
  birth_hook: Handle?,
  effect_policy: Handle?,
  trust_posture: TrustPosture,
  diagnostics: CompileDiagnostic[],
}
fieldmeaning
binding_idthe stable public handle for this boundary path.
port_ref / source_refthe normalized endpoints this binding bridges.
deployment_refthe concrete deployed endpoint this binding resolves through.
credential_contractthe required auth posture or secret shape for the boundary path.
protocol_adapter / parser_planthe typed transport and payload normalization chain.
material_contractthe canonical ingress/egress material shape after parsing.
matcher_planthe typed matching strategy used before face admission or effect delivery.
admit_policy / bind_hook / birth_hookthe authored boundary semantics carried forward for machinery use; hooks stay typed refs, not folklore strings.
effect_policythe outbound-only semantic posture, if this is an egress binding.
trust_posturethe resolved trust classification after source + binding reconciliation.
diagnosticsboundary-local compile findings that do not invalidate the whole artifact.
  • invariant. compiled port binding may authenticate, parse, classify, and match source material, but it never maintains proto truth by itself.
  • first appears. resolved in ResolvedWorld once source, port, deployment, and policy refs are closed.
  • runtime consequence. admitχ and outbound discharge both use this surface directly.
specimen:
CompiledPortBinding {
  binding_id: "cw.finexa_credit_world.binding.trello_card_action",
  port_ref: "cw.finexa_credit_world.port.trello_webhook",
  source_ref: "cw.finexa_credit_world.source.trello",
  material_contract: "trello.card.action",
  admit_policy: "cw.finexa_credit_world.policy.admit.trello_pipeline",
  matcher_plan: "cw.finexa_credit_world.matcher.card_list_activation"
}
CompiledFace

the normalized semantic aperture that turns classified material into admitted datum families.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusadmitχ → d → routeχ
strataχ
zoomcompiled
consumesFace, CompiledPortBinding[], CompiledRuleset
emitsadmitted datum families and target proto-bay access
CompiledFace {
  handle: Handle,
  port_bindings: Handle[],
  ruleset: Handle,
  target_proto_bays: Handle[],
  admitted_datum_kinds: DatumKind[],
}
fieldmeaning
handlestable public identity for the face.
port_bindingsthe boundary bindings that may feed or service this face.
rulesetthe compiled ruleset handle that normalizes material for this face.
target_proto_baysthe proto crossings the face may hand admitted material into.
admitted_datum_kindsthe closed datum families the face may emit after admission.
  • invariants. face admission is semantic normalization only; it does not decide process movement or durable truth on its own.
  • first appears. resolved after bindings and ruleset lowering are complete.
  • consequence. runtime can map admitted material into route candidates without rediscovering boundary topology.
specimen:
CompiledFace {
  handle: "cw.finexa_credit_world.face.trello_pipeline",
  port_bindings: ["cw.finexa_credit_world.binding.trello_card_action"],
  ruleset: "cw.finexa_credit_world.ruleset.trello_pipeline_rules",
  target_proto_bays: ["cw.finexa_credit_world.proto_bay.credit_request"],
  admitted_datum_kinds: [DATUM_KIND_ACTIVATION_COMMAND]
}
CompiledRuleset

the public executable dag for one face or effect ruleset. this doc treats it as typed dag, not operator strings.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focussource_material → d or ο → discharge
strataχ inbound/outbound, with readout links into μ
zoomcompiled
consumesLoweredRulesetDag
emitspublic typed dag nodes and edges for runtime admission or effect execution
CompiledRuleset {
  nodes: LoweredNode[],
  edges: LoweredEdge[],
  entry_nodes: Handle[],
  terminal_nodes: Handle[],
  input_contract: ContractRef,
  output_contract: ContractRef,
  event_time_policy: LoweredTimePolicy,
  lowering_diagnostics: CompileDiagnostic[],
}
fieldmeaning
nodesthe ordered typed dag nodes that perform schema mapping, transform, filtering, joining, windowing, aggregation, projection, quarantine, or reject.
edgesthe branch and dataflow edges between nodes.
entry_nodes / terminal_nodesexplicit dag boundaries; terminals must end in admit, reject, quarantine, or effect emission.
input_contract / output_contractthe canonical contract before and after the ruleset dag.
event_time_policythe default time basis for windowed or aggregate nodes; defaults to event-time unless overridden per node.
lowering_diagnosticsdag-local warnings or notes, such as non-minimal casts or unreachable branches.
  • invariant. dag nodes and edges are typed and deterministic; runtime is never asked to infer operator intent from plain strings.
  • phase. first fully appears in LoweredRulesetDag; exported publicly here.
specimen:
CompiledRuleset {
  entry_nodes: ["cw.finexa_credit_world.ruleset.trello_pipeline_rules.node.schema_map"],
  terminal_nodes: [
    "cw.finexa_credit_world.ruleset.trello_pipeline_rules.node.project_activation",
    "cw.finexa_credit_world.ruleset.trello_pipeline_rules.node.reject_unmapped"
  ],
  output_contract: "normalized_activation_command"
}
CompiledProto

compiled field-maintenance and relation-index plan for one proto kind.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusd → ρ → ι → ℓ with field maintenance into μ
strataκ + χ + μ
zoomcompiled
consumesProto, FieldBinding[], resolved authority
emitsfield hydration plans and relation indices
CompiledProto {
  handle: Handle,
  field_hydration_plans: map<Handle, FieldHydrationPlan>,
  relation_indices: map<Handle, Handle>,
  authority_groups: map<AuthorityGroupRef, Handle[]>,
}
fieldmeaning
handlestable public identity for the proto kind.
field_hydration_plansper-field maintenance contracts keyed by compiled field handle.
relation_indicescompiled lookup handles for relation-fact addressing and replay reads.
authority_groupsthe compiled grouping from fields into authority-bearing field groups.
  • invariants. proto schema and hydration law are fixed here; runtime may execute maintenance but not reinterpret field meaning.
  • first appears. resolved from authored proto plus field bindings, then exported publicly on CompiledWorld.
  • consequence. replay and readout can maintain proto truth from durable envelopes without hidden schema knowledge.
specimen:
CompiledProto {
  handle: "cw.finexa_credit_world.proto.credit",
  authority_groups: { "credit.lifecycle": ["...field.status", "...field.opened_at"] }
}
FieldHydrationPlan

the compiled plan for maintaining one proto field from upstream datums, records, observations, joins, windows, aggregates, or projections.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusd/ℓ → μ → field maintenance
strataχ + μ
zoomcompiled
consumesresolved field bindings, authority matrix, ruleset outputs
emitstyped maintenance mode and upstream dependency set
FieldHydrationPlan {
  mode: HydrationMode,
  upstream: Handle[],
  authority_group: AuthorityGroupRef,
  observations_allowed: bool,
  null_policy: NullPolicy,
  freshness_mode: FreshnessMode,
}
fieldmeaning
modehow the field is maintained: direct mapping, join, window, aggregate, projection, default, or observation-fed.
upstreamthe concrete upstream handles this field depends on.
authority_groupthe resolved field group that governs truth authority for this field.
observations_allowedwhether observational inputs may maintain the field under resolved authority.
null_policyhow null upstream values are treated during maintenance.
freshness_modewhether updates are edge-triggered, latest-wins, windowed, or monotonic.
  • mode examples. direct face mapping, ruleset output, join, window, aggregate, projection-fed, or constant/default.
  • authority rule. observation-fed plans require both explicit observation consumption in authored bindings and allowance in the resolved authority matrix.
  • first appears. shaped during resolution from FieldBinding and exported publicly on CompiledProto.
  • consequence. proto maintenance becomes replayable and inspectable instead of hidden inside runtime handlers.
specimen:
FieldHydrationPlan {
  mode: HYDRATION_MODE_DIRECT_FACE_MAPPING,
  upstream: ["cw.finexa_credit_world.face.trello_pipeline"],
  authority_group: "credit_request.identity",
  observations_allowed: false
}
CompiledProtoBay

the public proto crossing plan for one kind boundary.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusd → ρ → α → λ at the proto boundary
strataχ
zoomcompiled
consumesResolvedBindPlan, ResolvedBirthPlan, default lane plan
emitspublic crossing plan for runtime place/commit
CompiledProtoBay {
  handle: Handle,
  bind_plan: ResolvedBindPlan,
  birth_plan: ResolvedBirthPlan,
  lane_default: ResolvedLanePlan,
}
fieldmeaning
handlestable public identity for the proto crossing surface.
bind_planordered identity resolution for matching admitted material to existing epis.
birth_planthe explicit birth law for creating a new epi of this kind.
lane_defaultthe default lane policy when a route does not override it.
  • invariants. field hydration never lives here; proto bay is identity, birth, and lane posture only.
  • first appears. resolved in ResolvedWorld and then exported unchanged.
  • consequence. runtime can execute place/birth decisions without consulting authored DSL structure.
specimen:
CompiledProtoBay {
  handle: "cw.finexa_credit_world.proto_bay.credit",
  bind_plan: ResolvedBindPlan { handle: "cw.finexa_credit_world.bind.credit" },
  birth_plan: ResolvedBirthPlan { handle: "cw.finexa_credit_world.birth.credit" }
}
CompiledProcess

the public lawful motion table for one process family.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusρ → ι → ℓ process legality
strataκ + χ
zoomcompiled
consumesProcess, declared transitions
emitspublic status and transition legality tables
CompiledProcess {
  handle: Handle,
  statuses: ProcessStatusSlug[],
  transitions: CompiledProcessTransition[],
}
fieldmeaning
handlestable public identity for the process family.
statusesthe closed set of lawful process statuses.
transitionsthe legal directed edges between statuses, including effect emission posture.
  • invariants. no compiled process may add statuses or transitions absent from authored law.
  • first appears. validated as authored FSM law, then resolved and exported here.
  • consequence. decide and commit can treat process legality as data, not code folklore.
specimen:
CompiledProcess {
  handle: "cw.finexa_credit_world.process.activation",
  statuses: ["approved", "active"],
  transitions: [{ from: "approved", to: "active", effects: ["cw.finexa_credit_world.effect.sync_to_fibo"] }]
}
CompiledProcessTransition

one public lawful edge in a compiled process, including the effects it may emit when traversed.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusρ → ι → ξ/ℓ/ο
strataκ + χ
zoomcompiled
consumesdeclared transition, route legality, effect refs
emitspublic lawful process edge
CompiledProcessTransition {
  handle: Handle,
  from: StatusSlug,
  to: StatusSlug,
  effects: Handle[],
}
fieldmeaning
handlestable identity for this lawful process edge.
from / tothe source and target statuses of the lawful move.
effectsthe outbound effects this transition may emit if chosen by a route.
  • invariants. effects listed here must trace to authored effect declarations and route permissions.
  • first appears. validated as authored process law, then embedded into CompiledProcess and routes.
  • consequence. viewer and runtime can both reason about lawful motion from one typed edge surface.
specimen:
CompiledProcessTransition {
  handle: "cw.finexa_credit_world.process.activation.transition.approved_to_active",
  from: "approved",
  to: "active",
  effects: ["cw.finexa_credit_world.effect.sync_to_fibo"]
}
CompiledRoute

the public execution plan for one legal path chosen from an admitted datum family.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusd → ρ → α → λ → ι → ξ/ℓ/ο
strataκ + χ
zoomcompiled
consumesresolved route, lane plan, authority plan, discharge plans, process transition
emitsroute selection contract used by spawn/place/decide/commit
CompiledRoute {
  datum_face: Handle,
  lane_plan: ResolvedLanePlan,
  birth_targets: Handle[],
  authority_plan: ResolvedAuthorityPlan,
  discharge_rules: Handle[],
  commit_fact_kinds: CommitFactSpec[],
  process_transition: CompiledProcessTransition,
}
fieldmeaning
datum_facethe compiled face handle this route may be chosen from.
lane_planthe fully resolved lane placement rule for attempts on this route.
birth_targetsthe proto kinds this route is allowed to birth when commit law allows it.
authority_planthe route-local resolved authority posture; runtime does not merge precedence again.
discharge_rulesthe resolved effect closure rules that apply when the route emits obligations.
commit_fact_kindsthe authored durable fact kinds this route may emit at commit.
process_transitionthe exact lawful process edge this route may traverse.
  • invariant. compiled route never invents process movement or fact kinds beyond authored law.
  • runtime consequence. one admitted route yields one attempt and one local commit boundary.
specimen:
CompiledRoute { datum_face: "cw.finexa_credit_world.face.trello_pipeline", birth_targets: ["cw.finexa_credit_world.proto.credit"] }
CompiledProjection

the compiled readout/view handle for one authored projection.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusℓ → ω → ψ
strataμ + ν
zoomcompiled
consumesProjection, set screen refs
emitsviewer-facing readout handle
CompiledProjection {
  handle: Handle,
  screen_handle: Handle,
  contract: ContractRef,
  projection_kind: ProjectionKind,
}
fieldmeaning
handlestable identity for the projection surface.
screen_handlethe compiled screen landmark this projection renders onto.
contractthe output readout contract consumed by the screen or viewer.
projection_kindthe readout stance, such as table, metric strip, card wall, or breadcrumb trail.
  • invariants. compiled projection is readout only; it may not invent new world truth or set topology.
  • first appears. resolved once screen refs and projection contracts are closed.
  • consequence. viewer screens can boot directly from compiled contracts before live runtime overlays exist.
specimen:
CompiledProjection {
  handle: "cw.finexa_credit_world.projection.activation_queue",
  screen_handle: "cs.finexa_credit_world.screen.activation_queue",
  contract: "readout.activation.queue",
  projection_kind: PROJECTION_KIND_TABLE
}
DischargeRule

the public effect closure rule as surfaced on the compiled artifact.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusο → ξ and replay closure
strataχ
zoomcompiled
consumesResolvedDischargePlan
emitspublic effect-indexed discharge contract
DischargeRule {
  effect: Handle,
  receipts: ReceiptKind[],
  timeout: DurationSpec?,
  escalation_target: EscalationTargetRef?,
  terminal_failure_mode: TerminalFailureMode,
}
fieldmeaning
effectthe compiled effect handle this discharge rule closes.
receiptsthe receipt families that count as satisfaction for the obligation.
timeoutthe typed timeout window after which the obligation escalates or fails.
escalation_targetthe typed target to notify or route into on timeout.
terminal_failure_modethe durable failure posture if acceptable receipts never arrive.
  • invariants. no obligation discharges on undeclared receipt families.
  • first appears. resolved from effect policy and optional route override in ResolvedDischargePlan.
  • consequence. replay can tell whether an obligation is still owed, discharged, escalated, or terminally failed without code-specific logic.
specimen:
DischargeRule {
  effect: "cw.finexa_credit_world.effect.sync_to_fibo",
  receipts: [RECEIPT_KIND_FIBO_ACCEPTED],
  timeout: DurationSpec { seconds: 86400 },
  escalation_target: "cw.finexa_credit_world.effect.raise_sync_alert"
}
ViewerHandles

the stable landmark handle set the viewer can use without re-discovering topology.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusσ → ν → ψ
strataσ + ν
zoomcompiled
consumesResolvedWorld, ResolvedSet
emitsstable viewer landmark lists
ViewerHandles {
  districts: Handle[],
  anchors: Handle[],
  tracks: Handle[],
  screens: Handle[],
  docks: Handle[],
}
fieldmeaning
districtscompiled district handles for camera framing and visibility control.
anchorssemantic landmark handles for proto/process placement.
trackstrack handles used for motion and lane overlays.
screensprojection target handles.
docksoutbound effect landmark handles.
  • invariants. this is a handle atlas only; it does not duplicate topology or viewer state.
  • first appears. resolved at set/world integration time, then exported on CompiledWorld.
  • consequence. the viewer can bootstrap selection, highlighting, and overlay targeting without graph discovery.
specimen:
ViewerHandles {
  districts: ["cs.finexa_credit_world.district.intake", "cs.finexa_credit_world.district.activation"],
  tracks: ["cs.finexa_credit_world.track.activation"]
}
CompileDiagnostic

the public compile finding surface shared across validation, resolution, lowering, and layout derivation.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusauthored → compiled proof trail
strataκ + χ + μ + ν + σ
zoomcompiled
consumesall phases
emitsuser-facing compile findings
CompileDiagnostic {
  stage: CompileStage,
  code: DiagnosticCode,
  severity: DiagnosticSeverity,
  subject_ref: Handle,
  related_refs: Handle[],
  authored_span: DiagnosticSpan,
  message: string,
  fix_hint: string?,
}
  • severity set. error, warning, note.
  • emission rule. warnings and notes may still emit artifacts; any error prevents artifact emission.
specimen:
CompileDiagnostic { stage: COMPILE_STAGE_RESOLVE, code: "resolve.authority.conflict", severity: DIAGNOSTIC_SEVERITY_ERROR }

compiled set surfaces

CompiledSet

the root compiled set artifact for static topology, placement, derived scene machinery, and viewer defaults.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusσ → ν → ψ
strataσ + ν
zoomcompiled
consumesLoweredSet, CompiledWorld
emitsstatic world topology and placement for viewer loading
CompiledSet {
  meta: ArtifactMeta,
  authored_set_ref: Handle,
  compiled_world_ref: Handle,
  districts: map<DistrictSlug, ResolvedDistrict>,
  face_placements: map<FaceSlug, ResolvedPlacement>,
  anchors: map<ProtoSlug, ResolvedPlacement>,
  tracks: map<TrackSlug, ResolvedTrack>,
  docks: map<EffectSlug, ResolvedPlacement>,
  screens: map<ProjectionSlug, ResolvedPlacement>,
  semantic_connection_points: map<TrackSlug, ConnectionPoints>,
  control_points: map<TrackSlug, Vec3[]>,
  resolved_global_positions: map<Handle, Vec3>,
  derived_conduits: Handle[],
  derived_gates: Handle[],
  derived_switches: Handle[],
  derived_chambers: Handle[],
  relation_bridges: Handle[],
  overlay_channels: Handle[],
  default_labels: map<Handle, string>,
  default_camera_state: CameraState,
  default_lens_state: LensState,
  compile_diagnostics: CompileDiagnostic[],
}
field familymeaning
districts + landmark placement mapsthe authored landmarks after district-local coordinates are resolved into compiled world-space placement.
semantic_connection_points / control_pointsthe semantic and geometric routing data for tracks.
resolved_global_positionsthe complete landmark-to-position atlas for viewer loading and overlays.
derived_* + relation_bridges + overlay_channelsviewer-supporting derived scene machinery that never adds new process law.
default_labels / camera / lenspresentation defaults owned by compiled set rather than by the viewer frame.
  • invariant. this artifact may derive scene machinery only from authored landmarks plus compiled world topology.
  • first appears. built in LoweredSet from ResolvedSet and CompiledWorld.
  • viewer boundary. static viewer reads topology, placement, and defaults from here; ViewerFrame stays thin.
specimen:
CompiledSet.tracks["activation"] =
  ResolvedTrack { from: "cs.finexa_credit_world.anchor.credit_request", to: "cs.finexa_credit_world.anchor.credit" }
ResolvedDistrict

one district frame after placement resolution.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusσ frame basis
strataσ
zoomcompiled
consumesDistrictPlacement
emitsglobal district frame for viewer and layout derivation
ResolvedDistrict { id: Handle, origin: Vec3, extent: Vec3, members: Handle[] }
fieldmeaning
idstable district handle.
origin / extentthe resolved world-space frame for the district.
membersthe landmark handles that live inside the district.
  • first appears. resolved in ResolvedSet when district-local coordinates are lifted.
  • consequence. camera fitting, culling, and layout diagnostics all anchor on this frame.
specimen:
ResolvedDistrict { id: "cs.finexa_credit_world.district.activation", origin: (20,0,0), extent: (12,6,10) }
ResolvedPlacement

one landmark after district-local coordinates are lifted into world-space coordinates.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusσ → ν placement
strataσ + ν
zoomcompiled
consumesvalidated landmark placement + district frame
emitsglobal position for one face/anchor/dock/screen
ResolvedPlacement { handle: Handle, district: Handle, global_position: Vec3 }
fieldmeaning
handlethe landmark being placed.
districtthe resolved district frame it belongs to.
global_positionthe final world-space position used by the viewer.
  • first appears. emitted during set resolution from district-local authored positions.
  • consequence. viewer startup never has to recompute placement math.
specimen:
ResolvedPlacement { handle: "cs.finexa_credit_world.anchor.credit_request", district: "cs.finexa_credit_world.district.intake", global_position: (4,1,0) }
ResolvedTrack

one process track after semantic connection points and control points are lifted into resolved world geometry.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusσ + ν process motion staging
strataσ + ν
zoomcompiled
consumestrack placement + resolved anchor handles
emitscurve-ready track geometry
ResolvedTrack {
  district: Handle,
  from: Handle,
  to: Handle,
  semantic_connection_points: ConnectionPoints,
  control_points: Vec3[],
}
fieldmeaning
districtthe owning district frame for the track.
from / tothe semantic anchors this track connects.
semantic_connection_pointsthe logical endpoint positions used for routing and overlays.
control_pointsoptional extra spline points for viewer geometry.
  • first appears. resolved in ResolvedSet after anchor placement closure.
  • consequence. motion, breadcrumb animation, and lane highlighting all share the same compiled geometry.
specimen:
ResolvedTrack { district: "cs.finexa_credit_world.district.activation", from: "cs.finexa_credit_world.anchor.credit_request", to: "cs.finexa_credit_world.anchor.credit" }
ConnectionPoints

the semantic endpoints of one authored or compiled track.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusσ track anchor semantics
strataσ
zoomcompiled
consumesauthored track endpoints
emitscanonical from/to points for track routing
ConnectionPoints { from_point: Vec3, to_point: Vec3 }
fieldmeaning
from_pointsemantic departure point for the track.
to_pointsemantic arrival point for the track.
  • first appears. derived during track resolution from authored endpoints and district frames.
  • consequence. viewer routing stays semantically anchored even if spline geometry changes later.
specimen:
ConnectionPoints { from_point: (4,1,0), to_point: (9,1,0) }

rust-only normalization catalog

these types stay internal to the compiler. they are still part of the formal spec because implementation quality depends on the compiler remaining typed all the way through validation, resolution, and lowering.

ValidatedRef

one closed authored reference with proven target kind and origin span.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusauthored proof trail
strataκ + χ + σ
zoomcompiled intake / rust-only
consumesauthored slug ref
emitstyped closed reference
ValidatedRef {
  kind: RefKind,
  slug_path: SlugPath,
  target_kind: TypeKind,
  target_slug: SlugPath,
  origin_span: DiagnosticSpan,
  resolution_state: RefResolutionState,
}
fieldmeaning
kindthe authored reference family being resolved.
slug_paththe original authored reference path.
target_kind / target_slugthe proven target family and target path.
origin_spanthe authored location where this reference originated.
resolution_statewhether the reference closed cleanly, was missing, or remained ambiguous.
  • first appears. emitted during ValidatedWorld and ValidatedSet.
  • consequence. all later compiler phases can talk in typed refs instead of raw authored strings.
specimen:
ValidatedRef { kind: REF_KIND_ROUTE, slug_path: "route.activation.credit.create", target_kind: TYPE_KIND_ROUTE }
ValidatedRuleset

the authored ruleset after node closure, branch closure, terminal proof, and contract proof.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focussource_material → d graph proof
strataχ
zoomcompiled intake / rust-only
consumesauthored ruleset stages and refs
emitsclosed dag candidate for lowering
ValidatedRuleset {
  handle: Handle,
  context: RulesetContext,
  nodes: AuthoredNode[],
  edges: AuthoredEdge[],
  input_contract: ContractRef,
  output_contract: ContractRef,
  terminal_requirements: TerminalAction[],
}
fieldmeaning
handlethe future stable ruleset identity allocated during validation for diagnostics and graph closure.
contextwhether the ruleset serves a face or an effect path.
nodes / edgesthe authored dag after node and branch refs are closed.
input_contract / output_contractthe proved contract boundary of the authored ruleset.
terminal_requirementsthe terminal actions every path must be able to end in.
  • invariants. every path must terminate lawfully before lowering begins.
  • first appears. emitted during ValidatedWorld.
  • consequence. lowering can remain mechanical because graph legality is already proved.
specimen:
ValidatedRuleset { handle: "cw.finexa_credit_world.ruleset.trello_pipeline_rules", context: RULESET_CONTEXT_FACE }
ResolvedHandle

the internal typed proof that an authored slug path resolved to one stable public handle.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focuscompiled identity basis
strataκ + χ + μ + ν + σ
zoomcompiled / rust-only
consumesValidatedRef
emitsstable dotted handle
ResolvedHandle {
  slug_path: SlugPath,
  handle: Handle,
  family: HandleFamily,
  phase: CompileStage,
}
fieldmeaning
slug_paththe authored path this handle was derived from.
handlethe stable dotted semantic identity.
familythe public artifact family, such as route, proto, field, or projection.
phasethe compiler stage that froze this mapping.
  • first appears. emitted in ResolvedWorld and ResolvedSet.
  • consequence. public and internal phases can speak about the same identity without drift.
specimen:
ResolvedHandle { slug_path: "proto.credit", handle: "cw.finexa_credit_world.proto.credit", family: HANDLE_FAMILY_PROTO }
ResolvedBindPlan

the ordered executable identity lookup chain for one proto bay.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusd → ρ → α proto crossing
strataχ
zoomcompiled / rust-only
consumesBindStrategy, validated keys
emitsordered lookup steps and ambiguity policy
ResolvedBindPlan {
  handle: Handle,
  proto_bay: Handle,
  steps: BindLookupStep[],
  confidence_gate: ConfidenceGate?,
  on_ambiguous_match: AmbiguousMatchBehavior,
}
  • step shape. each lookup step names source field refs or compound refs, lookup index, and exact failure continuation.
  • determinism. step order is authored precedence order, never planner whim.
  • first appears. resolved during ResolvedWorld after key closure and precedence reduction.
  • consequence. runtime place logic can bind deterministically without consulting authored bay syntax.
specimen:
ResolvedBindPlan { handle: "cw.finexa_credit_world.bind.credit_request", on_ambiguous_match: AMBIGUOUS_MATCH_ERROR }
ResolvedBirthPlan

the executable birth law for one proto bay after trigger and shape requirements are frozen.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusι → ξ/ℓ birth legality
strataχ
zoomcompiled / rust-only
consumesBirthStrategy, route birth permission
emitsone executable birth guard plan
ResolvedBirthPlan {
  handle: Handle,
  proto_bay: Handle,
  when: BirthTrigger,
  requires: FieldPathRef[],
  shape: BirthShapeRef,
  on_fail: BirthFailureBehavior,
}
fieldmeaning
handlestable identity for the birth plan.
proto_baythe proto crossing this birth law belongs to.
whenthe lawful birth trigger, such as commit-time birth.
requiresthe exact field refs required for a birth to be legal.
shapethe born shell or resulting proto shape to materialize.
on_failthe typed failure posture if birth requirements are unmet.
  • invariants. routes may permit or deny birth targets, but they may not redefine this plan.
  • first appears. resolved during ResolvedWorld.
  • consequence. commit can apply birth law directly and durably explain why a birth did or did not happen.
specimen:
ResolvedBirthPlan { handle: "cw.finexa_credit_world.birth.credit", when: BIRTH_TRIGGER_ON_COMMIT, shape: "birth_shape.credit.minimal_shell" }
ResolvedLanePlan

the fully typed lane compilation result for one route or default proto-bay lane.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusρ → α → λ
strataχ
zoomcompiled / rust-only
consumesLanePolicy, resolved field refs, route failure policy
emitscanonical lane serializer, fallback rule, collision rule, optional short hash
ResolvedLanePlan {
  handle: Handle,
  owner_route: Handle,
  source_proto: Handle,
  key_parts: LaneKeyPart[],
  fallback_lane: LaneLiteral?,
  collision_behavior: CollisionBehavior,
  missing_key_behavior: MissingLaneKeyBehavior,
  canonical_serializer: LaneSerializer,
  short_hash: ShortHash?,
}
fieldmeaning
key_partsfield refs or compound refs in authored precedence order.
fallback_lanethe explicit fallback lane if the full key cannot be materialized at runtime.
collision_behaviortyped collision semantics, never inferred.
missing_key_behaviorfixed to fallback-then-route-on_fail; partial inferred lanes are forbidden.
canonical_serializerhuman-readable tuple format used as the primary lane identity.
short_hashsecondary compact representation for indexes or ui convenience only.
  • lane format. credit_request|request_id=req_942; compound keys sort by authored precedence, not alphabetically.
  • runtime rule. if required key parts are missing, use the fallback lane if present; otherwise apply route on_fail.
  • first appears. resolved during ResolvedWorld after route-over-bay precedence is applied.
  • consequence. placeχ can compute lane identity without hidden serialization logic.
specimen:
ResolvedLanePlan { handle: "cw.finexa_credit_world.lane.activation_credit_create", canonical_serializer: LANE_SERIALIZER_PROTO_TUPLE }
ResolvedAuthorityMatrix

the global field-group authority table compiled per (proto_ref, field_group).

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusκ → χ → ℓ truth authority
strataκ + χ + μ
zoomcompiled / rust-only
consumesworld defaults, proto field-group policy, route override mode
emitsglobal authority entries and provenance
ResolvedAuthorityMatrix {
  entries: map<(ProtoHandle, FieldGroup), ResolvedAuthorityEntry>,
}
ResolvedAuthorityEntry {
  canonical_owner: AuthorityOwner,
  observation_faces: Handle[],
  writeback_effects: Handle[],
  route_override_mode: RouteOverrideMode,
  provenance: Handle[],
}
  • granularity. global authority is compiled at proto plus field-group, not per-field expansion.
  • allowlists. observation uses face allowlists; writeback uses effect allowlists.
  • first appears. emitted during ResolvedWorld after world, proto-group, and route precedence are reduced.
  • consequence. runtime can gate truth movement with a single lookup rather than recomputing policy algebra.
specimen:
ResolvedAuthorityMatrix.entries[("cw.finexa_credit_world.proto.credit", "credit.lifecycle")] =
  ResolvedAuthorityEntry { canonical_owner: AUTHORITY_OWNER_COMPILED_WORLD }
ResolvedAuthorityPlan

the route-local authority posture after global matrix and route override are merged once, at compile time.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusρ → ι → ℓ route-local truth gating
strataκ + χ
zoomcompiled / rust-only
consumesResolvedAuthorityMatrix, route override
emitsone route-local truth permission plan
ResolvedAuthorityPlan {
  route: Handle,
  entries: map<(ProtoHandle, FieldGroup), ResolvedAuthorityEntry>,
  precedence_provenance: Handle[],
}
  • runtime rule. runtime consumes this plan directly and never recomputes route > proto > world precedence.
  • first appears. emitted during ResolvedWorld after route override merge.
  • consequence. every commit path carries an already-decided truth posture into execution and replay.
specimen:
ResolvedAuthorityPlan { route: "cw.finexa_credit_world.route.activation.credit.create", precedence_provenance: ["world.default_authority", "proto.credit.lifecycle"] }
ResolvedDischargePlan

the fully typed closure rule for one effect after route override and effect policy are merged once at compile time.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusο → ξ
strataχ
zoomcompiled / rust-only
consumesEffect, route discharge override
emitsone resolved effect closure plan
ResolvedDischargePlan {
  effect_ref: Handle,
  accepted_receipt_kinds: ReceiptKind[],
  timeout: DurationSpec?,
  escalation_target: EscalationTargetRef?,
  terminal_failure_mode: TerminalFailureMode,
  provenance: Handle[],
}
fieldmeaning
effect_refthe effect this plan closes.
accepted_receipt_kindsreceipt families that satisfy the obligation.
timeouttyped timeout window before escalation or failure.
escalation_targetthe typed escalation endpoint, if any.
terminal_failure_modethe durable failure posture if no acceptable receipt arrives.
provenancethe authored effect/route refs that produced this resolved plan.
  • first appears. emitted during ResolvedWorld after route-over-effect precedence is applied.
  • consequence. replay can derive obligation state transitions from typed closure law instead of handler-specific conventions.
specimen:
ResolvedDischargePlan { effect_ref: "cw.finexa_credit_world.effect.sync_to_fibo", accepted_receipt_kinds: [RECEIPT_KIND_FIBO_ACCEPTED] }
LoweredRulesetDag

the rust-only typed dag immediately before public compiled export.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focussource_material → d or ο → discharge executable dag
strataχ
zoomcompiled lowering / rust-only
consumesValidatedRuleset, resolved contracts, typed ast
emitsCompiledRuleset
LoweredRulesetDag {
  handle: Handle,
  nodes: LoweredNode[],
  edges: LoweredEdge[],
  entry_nodes: Handle[],
  terminal_nodes: Handle[],
  input_contract: ContractRef,
  output_contract: ContractRef,
  event_time_policy: LoweredTimePolicy,
  diagnostics: CompileDiagnostic[],
}
fieldmeaning
handlestable identity for the lowered dag.
nodes / edgesthe typed executable graph immediately before public export.
entry_nodes / terminal_nodesexplicit boundaries used for runtime execution and diagnostics.
input_contract / output_contractthe final proved contract boundary after lowering.
event_time_policythe default temporal basis for the dag.
diagnosticsdag-local notes, warnings, or errors discovered during lowering.
  • first appears. emitted during LoweredWorld.
  • consequence. public CompiledRuleset export becomes a lossless structural copy rather than a reinterpretation.
specimen:
LoweredRulesetDag { handle: "cw.finexa_credit_world.ruleset.trello_pipeline_rules", entry_nodes: ["...node.schema_map"] }
LoweredNode

one typed executable node inside a lowered ruleset dag.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focussource_material → d local transform step
strataχ
zoomcompiled lowering / rust-only
consumesoperator config + typed inputs
emitstyped output rows or terminal branch
LoweredNode {
  handle: Handle,
  operator_kind: OperatorKind,
  config: LoweredOperatorConfig,
  input_contracts: ContractRef[],
  output_contracts: ContractRef[],
  terminal_action: TerminalAction?,
  determinism_class: DeterminismClass,
}
fieldmeaning
handlestable node identity.
operator_kindthe closed operator family this node executes.
configthe typed operator config payload.
input_contracts / output_contractsthe contract surfaces this node reads from and writes to.
terminal_actionthe terminal action if the node ends a branch.
determinism_classthe determinism claim that lowering proved for this node.
  • first appears. emitted during LoweredRulesetDag construction.
  • consequence. runtime executes typed node semantics without re-parsing authored stages.
specimen:
LoweredNode { handle: "cw.finexa_credit_world.ruleset.trello_pipeline_rules.node.filter_activation", operator_kind: OPERATOR_KIND_FILTER }
LoweredEdge

one typed branch or dataflow edge in the lowered dag.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focussource_material → d branch shape
strataχ
zoomcompiled lowering / rust-only
consumesnode handles, optional predicate ref
emitsdeterministic branch path
LoweredEdge {
  from: Handle,
  to: Handle,
  branch_label: BranchLabel,
  predicate_ref: Handle?,
  deterministic: bool,
}
fieldmeaning
from / tothe source and target node handles.
branch_labelthe stable semantic label of the branch.
predicate_refthe optional predicate node or expression ref that guards the branch.
deterministicwhether lowering proved deterministic branch evaluation.
  • first appears. emitted during LoweredRulesetDag construction.
  • consequence. viewers and runtimes can explain branch flow by label rather than opaque edge position.
specimen:
LoweredEdge { from: "...node.filter_activation", to: "...node.project_activation", branch_label: BRANCH_LABEL_PASS }
LoweredOperatorConfig

the typed operator union used by every lowered dag node.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focussource_material → d transform semantics
strataχ
zoomcompiled lowering / rust-only
consumesauthored stage config + typed ast
emitsone exact operator variant per node
LoweredOperatorConfig =
  | SchemaMapConfig
  | MapConfig
  | FilterConfig
  | JoinConfig
  | WindowConfig
  | AggregateConfig
  | ProjectConfig
  | QuarantineConfig
  | RejectConfig
  • no string dispatch. runtime executes typed variants, not string tags plus folklore.
  • first appears. emitted during lowering once authored stages are normalized into operator families.
  • consequence. operator execution, diagnostics, and viewer explanation all share one typed operator union.
specimen:
LoweredOperatorConfig = FilterConfig { predicate: Compare(EQ, FieldRef("list"), Literal("Activation")) }
LoweredExpr

the strict typed expression ast used by map, filter, join predicates, aggregate arguments, and projection shaping.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focussource_material → d typed expression semantics
strataχ
zoomcompiled lowering / rust-only
consumesauthored operator expressions
emitstyped executable ast nodes
LoweredExpr =
  | Literal(value: LoweredValue)
  | FieldRef(path: FieldPathRef)
  | PathRef(base: Handle, path: FieldPathRef)
  | ListIndex(base: LoweredExpr, index: LoweredExpr)
  | Unary(op: UnaryOp, arg: LoweredExpr)
  | Binary(op: BinaryOp, left: LoweredExpr, right: LoweredExpr)
  | Compare(op: CompareOp, left: LoweredExpr, right: LoweredExpr)
  | Bool(op: BoolOp, args: LoweredExpr[])
  | Cast(expr: LoweredExpr, to: LoweredValueType)
  | Coalesce(args: LoweredExpr[])
  | Call(name: BuiltinFunctionRef, args: LoweredExpr[])
  | CaseWhen(branches: (LoweredExpr, LoweredExpr)[], else_expr: LoweredExpr)
  • strict typing. all casts are explicit; null never silently coerces.
  • filter semantics. only true passes; false and null do not pass.
  • first appears. emitted during lowering from authored operator expressions.
  • consequence. the same AST can power compile diagnostics, runtime evaluation, and viewer explanation.
specimen:
LoweredExpr = Compare(EQ, FieldRef("card.list_name"), Literal("Activation"))
LoweredValueType

the value domain for the strict ast.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focustyped expression domain
strataχ + μ
zoomcompiled lowering / rust-only
consumesauthored schema and operator type info
emitsone exact typed domain tag
LoweredValueType =
  bool | int64 | uint64 | float64 | decimal | string | bytes |
  timestamp | duration | date | list<T> | object | null
  • first appears. used during validation and frozen during lowering.
  • consequence. compile-time type checks and runtime evaluation share the same value domain.
specimen:
LoweredValueType = list<string>
LoweredTimePolicy

the resolved temporal basis for one ruleset or one windowed node.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusχ → μ time basis
strataχ + μ
zoomcompiled lowering / rust-only
consumesruleset or operator time config
emitsevent-time default or explicit processing-time override
LoweredTimePolicy {
  basis: TimeBasis,
  field_ref: FieldPathRef?,
  watermark: WatermarkPolicy?,
  allowed_lateness: DurationSpec?,
}
  • default. event-time is the default for the full compiler spec.
  • first appears. resolved during lowering from ruleset-level or node-level time config.
  • consequence. windows and aggregates run against one explicit temporal contract.
specimen:
LoweredTimePolicy { basis: TIME_BASIS_EVENT_TIME, field_ref: "occurred_at", allowed_lateness: DurationSpec { seconds: 300 } }
LoweredJoinPlan

the typed plan for a join node.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focussource_material → d join semantics
strataχ + μ
zoomcompiled lowering / rust-only
consumesleft/right inputs, key refs or predicate
emitstyped inner/left/right/full join behavior
LoweredJoinPlan {
  join_kind: JoinKind,
  left_input: Handle,
  right_input: Handle,
  key_pairs: (LoweredExpr, LoweredExpr)[],
  predicate: LoweredExpr?,
  null_extension: NullExtensionMode,
  cardinality: JoinCardinality,
}
  • first appears. emitted during lowering of join operators.
  • consequence. runtime can execute inner, left, right, and full joins without hidden SQL-semantics assumptions.
specimen:
LoweredJoinPlan { join_kind: JOIN_KIND_LEFT, left_input: "...node.activation_rows", right_input: "...node.credit_rows" }
LoweredAggregatePlan

the typed plan for aggregate nodes, including ordering requirements and empty-input rules.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusχ → μ aggregation
strataχ + μ
zoomcompiled lowering / rust-only
consumesgroup keys, optional window ref, aggregate calls
emitsdeterministic aggregate semantics
LoweredAggregatePlan {
  group_keys: LoweredExpr[],
  window_ref: Handle?,
  functions: AggregateCall[],
  order_by: LoweredExpr[],
  empty_input_rule: EmptyInputRule,
}
  • minimum functions. count, count_all, sum, avg, min, max, first, last.
  • null rules. sum/avg/min/max ignore nulls and return null on empty input; count counts non-null values; count_all counts rows.
  • ordering rule. first and last require deterministic input ordering.
  • first appears. emitted during lowering of aggregate operators.
  • consequence. aggregate replay and compile diagnostics share one precise reduction contract.
specimen:
LoweredAggregatePlan { functions: [sum(principal), count_all(*)], empty_input_rule: EMPTY_INPUT_RETURN_NULLS }
DiagnosticSpan

the authored location payload attached to diagnostics.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusauthored proof trail
strataκ + χ + σ
zoomcompiled / rust-only
consumesauthored file and anchor metadata
emitsprecise diagnostic location
DiagnosticSpan {
  artifact_ref: Handle,
  anchor: AnchorPath,
  start_line: int,
  end_line: int,
  excerpt: string?,
}
fieldmeaning
artifact_refthe authored artifact or fixture the diagnostic points into.
anchorthe stable path inside that artifact.
start_line / end_linethe line range for human-facing diagnostics.
excerptoptional nearby authored text for richer tooling.
  • first appears. emitted as soon as validation produces diagnostics.
  • consequence. diagnostics stay renderable in docs, cli, and viewer without source-specific parsing hacks.
specimen:
DiagnosticSpan { artifact_ref: "fixtures/finexa/authored_world.pbjson", anchor: "routes[0]", start_line: 212, end_line: 233 }

ruleset dag and expression ast

rulesets lower into a typed executable dag. expressions are strict typed. event-time is the default temporal basis. the compiler must reject any ruleset that would require implicit coercion or unstated ordering to become executable.

dag invariants

  • single input contract, explicit outputs. every ruleset names its input and output contracts.
  • terminal proof. every path ends in admit, reject, quarantine, or effect emission.
  • typed nodes. no node is dispatched by stringly folklore at runtime.
  • typed edges. branches carry labels and optional predicate refs.

expression invariants

  • strict typed. casts are explicit; null never silently coerces.
  • function determinism. builtin functions must be deterministic unless the operator explicitly documents otherwise.
  • path refs are typed. field/path access is checked against contracts before lowering completes.
  • containers are first-class. list and object values are supported in the ast.
function familyminimum builtin setdeterminism rule
scalarlower, upper, trim, concat, substr, lengthpure and deterministic for equal arguments
numericabs, round, floor, ceilexplicit cast required before cross-kind math
booleanis_null, is_not_nullnever coerce non-boolean into boolean
date/timedate_trunc, extract, to_date, to_timestamptimezone and unit must be explicit when relevant
collectioncontains, get, has_key, cardinalitylist/object access must type-check statically

runtime implementations may add more builtin functions later, but the spec must always classify whether they are deterministic, time-sensitive, or disallowed inside compile-time-equated plans such as lane or authority resolution.

operator atlas

every operator family below uses the same typed config stance: exact config shape, exact input/output contract meaning, exact failure semantics, and exact algebra breadcrumb.

schema_map

purpose. version-aware contract normalization at the boundary.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focussource_material → admitχ → d
strataχ
zoomcompiled lowering
consumesraw material contract, version matcher, field mapping table
emitscanonical contract row or reject/quarantine branch
SchemaMapConfig {
  accepted_versions: SchemaVersion[],
  canonical_contract: ContractRef,
  field_maps: (FieldPathRef, FieldPathRef, CastPlan?)[],
  unknown_field_behavior: UnknownFieldBehavior,
  missing_field_behavior: MissingFieldBehavior,
}
  • input / output. consumes one versioned row shape and emits one canonical row shape.
  • failure semantics. missing required fields or unknown versions follow explicit reject/quarantine rules; no silent version drift.
lowered example:
+ node.schema_map: SchemaMapConfig { accepted_versions: ["trello.v1"], canonical_contract: "normalized_activation_command" }
map

purpose. field assignment and row reshaping via the strict expression ast.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focussource_material → d
strataχ
zoomcompiled lowering
consumestyped input row and expression assignments
emitsone output row per input row
MapConfig { assignments: (FieldPathRef, LoweredExpr)[] }
  • input / output. preserves row cardinality.
  • failure semantics. type mismatch or impossible cast is a compile error, not a runtime surprise.
lowered example:
+ node.map_request: MapConfig { assignments: [("request_id", FieldRef("card.id"))] }
filter

purpose. boolean predicate filter with strict truth semantics.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focussource_material → d
strataχ
zoomcompiled lowering
consumestyped predicate
emitskept rows only
FilterConfig { predicate: LoweredExpr }
  • input / output. preserves row shape and only changes row count.
  • failure semantics. only true passes; false and null are both non-passing.
lowered example:
+ node.filter_activation: FilterConfig { predicate: Compare(EQ, FieldRef("list_name"), Literal("Activation")) }
join

purpose. typed relational join with explicit join kind, key pairs and/or predicate, and null-extension semantics.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focussource_material → d multi-input shape
strataχ + μ
zoomcompiled lowering
consumesleft/right input streams, key refs and/or predicate
emitsjoined typed rows with null-extension where required
JoinConfig = LoweredJoinPlan
  • input / output. emits inner, left, right, or full joined rows according to JoinKind.
  • failure semantics. impossible cardinality promises or untyped join keys are compile errors or warnings, never implicit behavior.
lowered example:
+ node.join_credit: JoinConfig { join_kind: JOIN_KIND_LEFT, left_input: "...activation", right_input: "...credit" }
window

purpose. temporal bucketing operator with event-time default.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusχ → μ temporal grouping
strataχ + μ
zoomcompiled lowering
consumestime policy, watermark, lateness policy
emitswindowed row groups
WindowConfig {
  kind: WindowKind,
  time_policy: LoweredTimePolicy,
  size: DurationSpec?,
  slide: DurationSpec?,
  session_gap: DurationSpec?,
  close_condition: WindowCloseCondition?,
}
  • input / output. emits typed window scopes for later aggregate or project nodes.
  • failure semantics. missing time basis, invalid watermark posture, or contradictory size/slide/session config is a compile error.
lowered example:
+ node.window_recent: WindowConfig { kind: WINDOW_KIND_SLIDING, size: 15m, slide: 5m }
aggregate

purpose. grouped or windowed reduction operator.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusχ → μ reduction
strataχ + μ
zoomcompiled lowering
consumesgroup keys, optional window ref, aggregate calls
emitsone reduced row per group/window
AggregateConfig = LoweredAggregatePlan
  • input / output. emits one reduced row per group or per group-window pair.
  • failure semantics. non-deterministic first/last, invalid empty-input rules, or untyped aggregate arguments are compile errors.
lowered example:
+ node.aggregate_metrics: AggregateConfig { functions: [count_all(*), sum(principal)] }
project

purpose. named output contract emission for downstream face/proto/projection/effect consumption.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusd or ω shaped output
strataχ + μ + ν
zoomcompiled lowering
consumestyped row and named output contract
emitsone named contract surface
ProjectConfig { output_contract: ContractRef, field_order: FieldPathRef[] }
  • input / output. preserves row count while freezing output field ordering and contract shape.
  • failure semantics. missing required output fields or duplicate projections are compile errors.
lowered example:
+ node.project_activation: ProjectConfig { output_contract: "normalized_activation_command", field_order: ["request_id", "applicant_name"] }
quarantine

purpose. typed terminal branch for suspicious or incomplete material that should remain inspectable but not admitted.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focussource_material → quarantine
strataχ
zoomcompiled lowering
consumesreason code, captured refs, optional payload hash
emitsterminal quarantine outcome
QuarantineConfig {
  reason_code: ReasonCode,
  captured_refs: Handle[],
  retain_payload: bool,
}
  • input / output. emits no admitted rows; produces a terminal quarantine outcome only.
  • failure semantics. this is itself the explicit failure posture; no hidden fallback to reject or admit.
lowered example:
+ node.quarantine_missing_request_id: QuarantineConfig { reason_code: REASON_CODE_MISSING_KEY, captured_refs: ["card.id"] }
reject

purpose. typed terminal branch for material that is definitively illegal or irrelevant for this world.

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focussource_material → reject
strataχ
zoomcompiled lowering
consumesreason code and captured refs
emitsterminal reject outcome
RejectConfig {
  reason_code: ReasonCode,
  captured_refs: Handle[],
}
  • input / output. emits no admitted rows and terminates the branch permanently.
  • failure semantics. reject is the explicit terminal law for definitively illegal or irrelevant material.
lowered example:
+ node.reject_unmapped: RejectConfig { reason_code: REASON_CODE_UNMAPPED_ACTION, captured_refs: ["card.action_type"] }

precedence lowering

surfacedeclaration sitescompile-time resolutiontyped resulterror rule
laneRoute, ProtoBayroute.lane_policy_override > proto_bay.lane_policyResolvedLanePlanmissing plan or same-tier conflict is an error
authorityRoute, Proto.field_group_policy, WorldSpec.default_authorityroute.authority_override > proto.field_group_policy > world.default_authorityResolvedAuthorityMatrix + ResolvedAuthorityPlansame-tier conflict or illegal truth promotion is an error
dischargeRoute, Effectroute.discharge_override > effect.discharge_policyResolvedDischargePlanunresolved discharge or same-tier conflict is an error
bind/birthProtoBay, route birth permissionProtoBay defines strategy; route may allow or deny birth targets onlyResolvedBindPlan + ResolvedBirthPlanroute-side strategy redefinition is an error

lane serializer

primary:
proto_slug|field=value

compound:
credit_request|qr_context_id=qr_91|phone=+52155...

secondary:
short_hash = optional only

authority stance

global:
(proto_ref, field_group)

route-local:
compiled once onto route

runtime:
consumes compiled plan only

discharge stance

effect owed
  → accepted receipts
  → timeout
  → escalation target
  → terminal failure mode

no receipt
  = still owed

diagnostic atlas

diagnostics are first-class compile products, not an afterthought. they must be typed enough for a viewer, editor, or cli to group and render them consistently.

stagesubsystemexample codemeaning
validaterefsvalidate.ref.missinga referenced slug path does not exist or targets the wrong family
validatecontractsvalidate.ruleset.terminal_missinga ruleset path fails to terminate in admit/reject/quarantine/effect
resolveauthorityresolve.authority.conflictsame-tier or illegal authority promotion conflict
resolvelaneresolve.lane.missing_keylane key parts cannot be fully resolved and no fallback exists
resolvebind/birthresolve.birth.route_redefinitionroute attempts to redefine proto-bay bind/birth law
lowerrulesetlower.ruleset.non_deterministic_ordera node ordering or aggregate semantics would be unstable
lowerlayoutlower.set.landmark_overlap_notea viewer-facing layout concern that is noteworthy but not fatal

error

blocks artifact emission. examples: missing refs, illegal truth promotion, impossible lane plan, missing discharge rule.

warning

artifacts still emit. examples: suspicious many-to-many join promise, derived label fallback, non-minimal cast chain.

note

purely informational. examples: deterministic reordering, derived scene conduit count, optimization hint.

worked finexa lowering

this example walks one authored path, activation.credit.create, through the three abstraction layers required by the compiler: conceptual story, typed normalization surfaces, and emitted compiled shape.

layer 1 / conceptual

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusd → ρ → α → λ → ι → ξ/ℓ/ο
strataκ + χ
zoomconceptual
consumestrello_pipeline admitted activation command
emitsone attempt, one lane, durable credit facts, one fibo sync obligation
story:
trello operator action
  → admitted at trello_pipeline
  → route activation.credit.create
  → lane by credit_request.request_id
  → legal activation approved -> active
  → commit credit.created + credit_request.linked
  → owe sync_to_fibo

layer 2 / typed normalization

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focusρ → α → λ and route-local compile plans
strataκ + χ
zoomresolved / lowered
consumesvalidated route, process edge, lane policy, authority override, discharge override
emitsresolved lane/authority/discharge plans plus lowered dag
ResolvedLanePlan {
  owner_route: "cw.finexa_credit_world.route.activation.credit.create",
  source_proto: "cw.finexa_credit_world.proto.credit_request",
  key_parts: ["request_id"],
  canonical_serializer: "credit_request|request_id=<value>"
}

ResolvedAuthorityPlan {
  route: "cw.finexa_credit_world.route.activation.credit.create",
  entries: {
    ("cw.finexa_credit_world.proto.credit", "balance"): AUTHORITY_OWNER_COMPILED_WORLD,
    ("cw.finexa_credit_world.proto.credit", "lifecycle"): AUTHORITY_OWNER_COMPILED_WORLD
  }
}

LoweredRulesetDag(handle="cw.finexa_credit_world.ruleset.trello_pipeline_rules")

layer 3 / emitted compiled shape

full chainsource_material → admitχ → d → routeχ → ρ → spawnχ → α → placeχ → λ → decideκ → ι → commitχ → ξ/ℓ/ο → measureμ → ω → renderν → ψ
focuscompiled route + diagnostics
strataκ + χ + σ + ν
zoomcompiled
consumeslowered world
emitspublic artifact shape
CompiledRoute {
  datum_face: "cw.finexa_credit_world.face.trello_pipeline",
  lane_plan: "credit_request|request_id=<value>",
  birth_targets: ["cw.finexa_credit_world.proto.credit"],
  authority_plan: "route-local resolved authority",
  discharge_rules: ["cw.finexa_credit_world.effect.sync_to_fibo"],
  commit_fact_kinds: [
    "credit.created:COMMIT_ATOM_KIND_EVENT",
    "credit_request.linked:COMMIT_ATOM_KIND_RELATION_FACT"
  ],
  process_transition: { process: "activation", from: "approved", to: "active" }
}

CompileDiagnostic {
  stage: "note",
  code: "lower.ruleset.branch_pruned",
  subject_ref: "cw.finexa_credit_world.ruleset.trello_pipeline_rules.node.filter_activation",
  message: "unmapped branches were lowered into explicit reject terminals"
}