AlmondTill/G3N API

PolicyValueRecord

object type

A PolicyValueRecord — ONE effective-dated value window in the tenant POLICY schedule, resolved LF → org → the registry default NEAREST-ANCESTOR-WITH-VALUE at every read. Keys are REGISTRY-DEFINED (appointment.lead_time_minutes · appointment.max_advance_days · appointment.no_show_window_minutes · appointment.overbook_allowed · fraud.threshold.cash_over_short · fraud.threshold.discount_override_abuse · fraud.threshold.dispute_chargeback · fraud.threshold.override_pattern · fraud.threshold.return_refund_abuse · fraud.threshold.void_no_sale · training.score_visibility — an unknown key refuses naming the roster; v1 = the fraud-alert thresholds, one per signal kind, default 0 on the 0..100 score scale; future keys join by registry row). Doom cancels a not-yet-effective FUTURE record only (CONFLICT/IMMUTABLE otherwise — supersede instead). The window/key/value fields are wire-IMMUTABLE (the edit surface is caption only). ⚠ The catalog ladder's zone rung is a NAMED registry growth — no v1 key legally scopes there.

Fields

FieldTypeNotes
idID ID!The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it.
sysIdString String!The group-scoped human-facing system id (PC-…).
typeString String!The kind of record — always PolicyValueRecord here.
captionString String!The record’s display name — what people see it called.
statusString String!The FSM state: active | doomed.
parentIdID ID!The scope anchor: an Organization or a LogicalFacility — validated live at create; rootId = the org group.
rootIdID ID!The org-group family root.
createdAtString String!When the record was created, as a UTC timestamp.
updatedAtString String!When the record last changed, as a UTC timestamp.
revisionNumInt Int!How many times this record has been edited; the first save is 0.
revisionID ID!The OCC revision token — supply it on every mutation of this record; rotates on every write.
refCaptionsRefCaption [RefCaption!]!The server-composed captions of this record's declared references (the referenced-caption rule) — one row per referenced id; see RefCaption.
levelString String!The resolution level this record binds (org | lf — most-specific-wins). Stored explicit, validated against the REAL parent at create; IMMUTABLE.
keyString String!The registry key. IMMUTABLE — a different key is a different sub-schedule.
valueIntInt Int!The value (INT — the no-floats discipline; registry-bounded per key: the v1 thresholds take 1..100). IMMUTABLE — supersede with a new window.
startAtString String!The window start (INCLUSIVE; UTC ISO-8601) — set at birth (absent in the create input = effective NOW, server-stamped), IMMUTABLE thereafter.
endAtString String!The window end (EXCLUSIVE; UTC ISO-8601; ALWAYS present — far-future = the standing value). Moves ONLY via the system splice trim.

Used by