query · world.actor

Actor job choices

Pages one Actor's retained current job alternatives and complete personal scoring evidence.

world.actor.job-choices(filters?, cursor?, page_size?) -> query-page
Stable ID
world.actor.job-choices
Owner
game.actor-runtime
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

Query one actor_id to inspect the Actor-owned alternatives from the latest autonomous job evaluation. Read the selected alternative, hard rejections, and every personal and settlement scoring contribution without changing the choice.

Parameters

Returns

Detached alternative rows with the choice revision, policy version, evaluation tick, outcome, selected job, Work source and demand identities, rejection, twelve scoring inputs, final score, and selected marker.

Cost

One indexed Actor lookup and one bounded visit per retained alternative.

Fields

IDTypeUnitsRequiredDescription
actor_idstable-idnoneyesActor identity.
capability_fitunsigned-integerbasis-pointsyesActor capability fit.
choice_revisionrevisionnoneyesActor-owned choice ledger revision.
commitment_fitunsigned-integerbasis-pointsyesCurrent commitment fit.
condition_readinessunsigned-integerbasis-pointsyesActor condition readiness.
danger_fitunsigned-integerbasis-pointsyesRoute danger fit to personal tolerance.
demand_idstable-idnoneyesAlternative demand identity.
evaluated_at_tickunsigned-integerticksyesChoice evaluation tick.
household_obligationunsigned-integerbasis-pointsyesHousehold obligation fit.
job_idstable-idnoneyesAlternative job identity.
learned_preferenceunsigned-integerbasis-pointsyesLearned vocation preference.
outcomeenumerationnoneyesOverall job-choice outcome.
player_priorityunsigned-integerbasis-pointsyesPlayer-authored priority.
recent_work_fitunsigned-integerbasis-pointsyesRecent-work variety fit.
rejectionenumerationnoneyesHard rejection reason or none.
resource_readinessunsigned-integerbasis-pointsyesRequired resource readiness.
route_costunsigned-integerticksyesWorld route cost.
routine_fitunsigned-integerbasis-pointsyesCurrent routine fit.
scoreunsigned-integerbasis-pointsyesFinal authored-policy score.
selectedbooleannoneyesWhether this alternative was selected.
selected_job_idstable-id-or-nullnonenoSelected job identity.
source_idstable-idnoneyesWork source identity.
source_kindenumerationnoneyesWork source kind.
tuning_versionunsigned-integernoneyesAuthored scoring policy version.
urgencyunsigned-integerbasis-pointsyesSettlement urgency contribution input.

Errors

Examples

local choices = world.query("world.actor.job-choices", {page_size = 16, filters = {actor_id = selected_id}})
if choices.status == "completed" then
    for _, choice in ipairs(choices.records) do
        if choice.selected then
            ui.text("Chosen work", choice.source_kind)
        end
    end
end

API history

Related symbols

Project references