query · world.settlement

Settlement spatial executions

Returns the bounded Settlement-owned lifecycle binding selected spatial options to authoritative Building Construction, Infrastructure Construction, or Land conversion.

world.settlement.spatial-executions(filters?, cursor?, page_size?) -> query-page
Stable ID
world.settlement.spatial-executions
Owner
game.settlement
Authority
read_only
Timing
immediate
Availability
active-session
Side effects
none
Determinism
stable owner order at the current committed tick
Introduced
1.19.0

Usage

Inspect the bounded Settlement-owned lifecycle that binds a selected spatial option to its authoritative physical owner. Supply settlement_id. The query cannot start, advance, cancel, or mutate the retained project.

Parameters

Returns

Detached execution rows with stable identity, source option and service, physical owner kind, optional owner identity, owner revision, active or terminal status, source portfolio tick, direct blocker or outcome, and creation and update ticks.

Cost

One exact Settlement lookup plus one bounded traversal of the retained spatial execution ledger. Runtime reconciliation visits only active executions under its authored budget.

Fields

IDTypeUnitsRequiredDescription
created_at_tickunsigned-integerfixed-ticksyesExecution creation tick.
detailstringnoneyesDirect lifecycle, blocker, or outcome explanation.
execution_idstable-idnoneyesDurable spatial execution identity.
option_keystringnoneyesSelected spatial option identity.
owner_idstable-id-or-nullnonenoAuthoritative physical owner identity.
owner_kindenumerationnoneyesAuthoritative physical owner kind.
owner_revisionrevisionnoneyesLatest authoritative owner revision.
serviceenumerationnoneyesSelected spatial service.
settlement_idstable-idnoneyesSettlement identity.
settlement_revisionrevisionnoneyesCurrent Settlement owner revision.
source_portfolio_evaluation_tickunsigned-integerfixed-ticksyesPortfolio evaluation used.
statusenumerationnoneyesActive, completed, blocked, cancelled, or failed.
updated_at_tickunsigned-integerfixed-ticksyesLatest lifecycle update tick.

Errors

Examples

local executions = world.query("world.settlement.spatial-executions", {filters = {settlement_id = 1}, page_size = 16})
for _, execution in ipairs(executions.records) do
    ui.text(execution.service, execution.status .. ": " .. execution.detail)
end

API history

Related symbols

Project references