Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofpackage pursuitKit.package·originates fromworld 0a0b119f-a…

description

What the pursuers know the suspect looks like, and losing it.

byzero-proxy @ DESKTOP-DB3UJOJ·posted 11d ago
What it does

description

What the pursuers know the suspect looks like, and losing it.

A description is a set of tags with values ("jacket" = "ochre", "vehicle.kind" = "van", "vehicle.colour" =
"blue", "vehicle.plate" = "VR 1123"), noted when the suspect
is identified. While the suspect's current appearance matches any noted tag, observers treat it as worth
looking at (perception's `described`). Changing the thing a tag describes, out of sight, sheds that tag.

  local Description = require("~.modules.description")
  local d = Description.new()
  d:note({ jacket = "ochre", vehicle = "blue van" })
  d:matches({ jacket = "ochre" })            -- true, { "jacket" }
  d:matches({ jacket = "grey", vehicle = nil })  -- false, {}   (on foot, jacket turned)
  d:strength({ jacket = "ochre" })           -- 0..1: the share of what they know that the appearance matches
  d:shed("jacket")                           -- they no longer know the jacket (returns true if they did)
  d:known()                                  -- { jacket = "ochre", ... } a copy, for UI
  d:clear()

The interface is documented in the header of init.luau; this file repeats it for the asset browser.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

pursuitKit.modules.description — what the pursuers know the suspect looks like, and losing it. A description is a set of tags with values ("jacket" = "ochre", "vehicle.kind" = "van", "vehicle.colour" = "blue", "vehicle.plate" = "VR 1123"), noted when the suspect is identified. While the suspect's current appearance matches any noted tag, observers treat it as worth looking at (perception's `described`). Changing the thing a tag describes, out of sight, sheds that tag. local Description = require("~.modules.description") local d = Description.new() d:note({ jacket = "ochre", vehicle = "blue van" }) d:matches({ jacket = "ochre" }) -- true, { "jacket" } d:matches({ jacket = "grey", vehicle = nil }) -- false, {} (on foot, jacket turned) d:strength({ jacket = "ochre" }) -- 0..1: the share of what they know that the appearance matches d:shed("jacket") -- they no longer know the jacket (returns true if they did) d:known() -- { jacket = "ochre", ... } a copy, for UI d:clear()

new( ) → any

note(appearance: any) → void

Record what was seen. Nil values are ignored; a new value for a tag replaces the old.

argtypedescription
appearanceany

matches(appearance: any) → void

Whether the current appearance matches anything known, and which tags.

argtypedescription
appearanceany

strength(appearance: any) → number

How much of the held description the appearance matches: matched tags / known tags (0 when nothing is known).

argtypedescription
appearanceany

shedPrefix(prefix: string) → number

Forget every tag that starts with a prefix ("vehicle.": the car was left behind). Returns how many went.

argtypedescription
prefixstring

shed(tag: string) → boolean

argtypedescription
tagstring

any( ) → boolean

known( ) → any

clear( ) → void

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.