query · world.settlement

Settlement goals

Returns the latest Settlement-owned goal portfolio, including committed goals and rejected or deferred alternatives.

world.settlement.goals(filters?, cursor?, page_size?) -> query-page
Stable ID
world.settlement.goals
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

Read the latest Settlement-owned portfolio of committed, paused, retired, and rejected civic goals without creating work or mutating any owner. Supply settlement_id to select the settlement.

Parameters

Returns

Detached candidate rows with stable goal identity when retained, source and sponsor kinds, need domain, source strength, weighted score, benefit, cost, risk, opportunity cost, reconsideration threshold, dependency and incompatibility counts, status, eligibility, selection, and direct decision detail.

Cost

One exact Settlement lookup plus one bounded traversal of the latest retained goal-candidate page. Recurring evaluation uses the settlement definition's rotating visit budget and fixed cadence.

Fields

IDTypeUnitsRequiredDescription
completed_evaluation_countunsigned-integernoneyesDurable portfolio sequence count.
dependency_countunsigned-integernoneyesDeclared prerequisite goal count.
detailstringnoneyesDirect selection or rejection reason.
domainenumerationnoneyesTyped settlement need domain.
eligiblebooleannoneyesWhether the candidate passed source and score gates.
evaluation_tickunsigned-integerfixed-ticksyesFixed tick evaluated.
expected_benefitunsigned-integerbasis-pointsyesExpected benefit.
expected_costunsigned-integerbasis-pointsyesExpected cost.
goal_idstable-id-or-nullnonenoDurable goal identity when one exists.
goal_keystringnoneyesData-authored goal identity.
incompatibility_countunsigned-integernoneyesDeclared incompatible goal count.
next_evaluation_tickunsigned-integerfixed-ticksyesNext fixed tick when evaluation may run.
opportunity_costunsigned-integerbasis-pointsyesOpportunity cost.
priority_scoresigned-integerbasis-pointsyesWeighted portfolio score.
reconsider_belowunsigned-integerbasis-pointsyesSource threshold below which a retained goal retires.
riskunsigned-integerbasis-pointsyesExpected risk.
selectedbooleannoneyesWhether the portfolio committed the candidate.
settlement_idstable-idnoneyesSettlement identity.
settlement_revisionrevisionnoneyesCurrent Settlement owner revision.
source_kindenumerationnoneyesNeed, opportunity, obligation, or ambition.
source_need_assessment_tickunsigned-integerfixed-ticksyesNeed assessment used as source evidence.
source_settlement_revisionrevisionnoneyesSettlement revision used to evaluate the portfolio.
source_strengthunsigned-integerbasis-pointsyesCurrent source strength.
sponsor_idstringnoneyesStable sponsor identity.
sponsor_kindenumerationnoneyesHousehold, business, civic, or institution.
statusenumerationnoneyesCommitted, paused, retired, or rejected.

Errors

Examples

local goals = world.query("world.settlement.goals", {filters = {settlement_id = 1}, page_size = 16})

API history

Related symbols

Project references