changedInput schema / properties / objective / anyOf
Previous value: -[
- {
- "additionalProperties": true,
- "description": "Balance objective: {metric: '<column>|__account_count__', workload_bias: 0..100, metric_bias: 0..100}. Biases sum to 100. For pure metric balance, pass {metric: '<column>', workload_bias: 0, metric_bias: 100} (or {metric: '<column>'} on restructure tools). When omitted on restructure tools, inherits the source TAL build_provenance objective or seed_build target.",
- "properties": {
- "metric": {
- "description": "Point metric column name to balance (e.g. 'Revenue', 'weekly_volume'), or '__account_count__' for location-count balance.",
- "type": "string"
- },
- "metric_bias": {
- "description": "Weight (0..100) on the metric or location-count dimension.",
- "maximum": 100,
- "minimum": 0,
- "type": "integer"
- },
- "workload_bias": {
- "description": "Weight (0..100) on workload (drive time + dwell).",
- "maximum": 100,
- "minimum": 0,
- "type": "integer"
- }
- },
- "type": "object"
- },
- {
- "type": "null"
- }
-]New value: +[
+ {
+ "additionalProperties": true,
+ "description": "Balance objective: workload_bias + metric_bias + count_bias = 100, weighting workload (drive + dwell), one metric column, and account count. Workload: {workload_bias: 100}. Metric: {metric: '<column>', workload_bias: 0, metric_bias: 100}. Count: {workload_bias: 0, count_bias: 100}. Three-way: {metric: 'Score', workload_bias: 40, metric_bias: 40, count_bias: 20}. Only one metric column balances; combine several into one score column at ingest. Omitted on restructure tools: inherits the source TAL build_provenance objective.",
+ "properties": {
+ "count_bias": {
+ "description": "Weight (0..100) on account count (locations per territory). Default 0.",
+ "maximum": 100,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "metric": {
+ "description": "Point metric column name to balance (e.g. 'Revenue', 'Score'). Required when metric_bias > 0. Account count is count_bias, not a column.",
+ "type": "string"
+ },
+ "metric_bias": {
+ "description": "Weight (0..100) on the metric column.",
+ "maximum": 100,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "workload_bias": {
+ "description": "Weight (0..100) on workload (drive time + dwell).",
+ "maximum": 100,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+]
changedInput schema / properties / part_filter / anyOf
Previous value: -[
- {
- "additionalProperties": true,
- "minProperties": 1,
- "properties": {
- "county_name": {
- "type": [
- "string",
- "array"
- ]
- },
- "part_layer": {
- "type": "string"
- },
- "population": {
- "oneOf": [
- {
- "type": "number"
- },
- {
- "additionalProperties": false,
- "minProperties": 1,
- "properties": {
- "between": {
- "items": {
- "type": "number"
- },
- "maxItems": 2,
- "minItems": 2,
- "type": "array"
- },
- "eq": {
- "type": "number"
- },
- "gt": {
- "type": "number"
- },
- "gte": {
- "type": "number"
- },
- "lt": {
- "type": "number"
- },
- "lte": {
- "type": "number"
- }
- },
- "type": "object"
- }
- ]
- },
- "spatial": {
- "additionalProperties": false,
- "oneOf": [
- {
- "required": [
- "bbox"
- ]
- },
- {
- "required": [
- "geometry"
- ]
- }
- ],
- "properties": {
- "bbox": {
- "description": "[min_lon, min_lat, max_lon, max_lat] in EPSG:4326.",
- "items": {
- "type": "number"
- },
- "maxItems": 4,
- "minItems": 4,
- "type": "array"
- },
- "geometry": {
- "description": "GeoJSON Polygon or MultiPolygon in EPSG:4326.",
- "type": "object"
- },
- "operator": {
- "enum": [
- "intersects",
- "within",
- "contains"
- ],
- "type": "string"
- }
- },
- "required": [
- "operator"
- ],
- "type": "object"
- },
- "state_abbr": {
- "type": [
- "string",
- "array"
- ]
- },
- "territory": {
- "additionalProperties": false,
- "oneOf": [
- {
- "required": [
- "ts_handle"
- ]
- },
- {
- "required": [
- "map_session_id"
- ]
- }
- ],
- "properties": {
- "include_descendants": {
- "default": true,
- "description": "When true, rollup territories include descendant leaf territory part_ids.",
- "type": "boolean"
- },
- "map_session_id": {
- "description": "Open map session whose Territory Solution holds the TAL.",
- "minLength": 1,
- "type": "string"
- },
- "tal_id": {
- "minLength": 1,
- "type": "string"
- },
- "territory_id": {
- "minLength": 1,
- "type": "string"
- },
- "ts_handle": {
- "description": "Territory Solution reference (tsh_...) holding the TAL (no inline TS).",
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "tal_id",
- "territory_id"
- ],
- "type": "object"
- },
- "text": {
- "additionalProperties": false,
- "properties": {
- "case_sensitive": {
- "default": false,
- "type": "boolean"
- },
- "field": {
- "description": "Safe text field to search. Defaults to the public part ID column.",
- "type": "string"
- },
- "mode": {
- "default": "prefix",
- "enum": [
- "prefix",
- "contains",
- "exact"
- ],
- "type": "string"
- },
- "value": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "value"
- ],
- "type": "object"
- }
- },
- "type": "object"
- },
- {
- "type": "null"
- }
-]New value: +[
+ {
+ "additionalProperties": true,
+ "minProperties": 1,
+ "properties": {
+ "county_name": {
+ "type": [
+ "string",
+ "array"
+ ]
+ },
+ "in_tal": {
+ "additionalProperties": false,
+ "description": "Keep only the parts assigned to a leaf territory of tal_id: the TAL's whole footprint, however many separate regions it has. ANDed with the other predicates (alone it is exactly that footprint). The TAL must use the same part_layer and hold parts. query_parts needs ts_handle or map_session_id here; builds read the TAL from the build's own Territory Solution.",
+ "properties": {
+ "map_session_id": {
+ "description": "query_parts only: open map session whose Territory Solution holds the TAL.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "tal_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "territory_ids": {
+ "description": "Narrow to these territory_id values (not display labels); a rollup includes every leaf below it. Unknown ids return UNKNOWN_TERRITORY_ID with available_territory_ids.",
+ "items": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "ts_handle": {
+ "description": "query_parts only: Territory Solution reference (tsh_...) holding the TAL.",
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "tal_id"
+ ],
+ "type": "object"
+ },
+ "not_in_tal": {
+ "additionalProperties": false,
+ "description": "White space: drop every part assigned to a leaf territory of tal_id from whatever the other predicates select (the whole layer when alone). The TAL must use the same part_layer. query_parts needs ts_handle or map_session_id here; builds read the TAL from the build's own Territory Solution.",
+ "properties": {
+ "map_session_id": {
+ "description": "query_parts only: open map session whose Territory Solution holds the TAL.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "tal_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "ts_handle": {
+ "description": "query_parts only: Territory Solution reference (tsh_...) holding the TAL.",
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "tal_id"
+ ],
+ "type": "object"
+ },
+ "part_layer": {
+ "type": "string"
+ },
+ "population": {
+ "oneOf": [
+ {
+ "type": "number"
+ },
+ {
+ "additionalProperties": false,
+ "minProperties": 1,
+ "properties": {
+ "between": {
+ "items": {
+ "type": "number"
+ },
+ "maxItems": 2,
+ "minItems": 2,
+ "type": "array"
+ },
+ "eq": {
+ "type": "number"
+ },
+ "gt": {
+ "type": "number"
+ },
+ "gte": {
+ "type": "number"
+ },
+ "lt": {
+ "type": "number"
+ },
+ "lte": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ "selection_task_id": {
+ "description": "Builds only (auto_build, account_build, seed_build): a committed request_part_selection task (psel_...) whose part_ids become the scope; it is the only key in that part_filter.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "spatial": {
+ "additionalProperties": false,
+ "oneOf": [
+ {
+ "required": [
+ "bbox"
+ ]
+ },
+ {
+ "required": [
+ "geometry"
+ ]
+ }
+ ],
+ "properties": {
+ "bbox": {
+ "description": "[min_lon, min_lat, max_lon, max_lat] in EPSG:4326.",
+ "items": {
+ "type": "number"
+ },
+ "maxItems": 4,
+ "minItems": 4,
+ "type": "array"
+ },
+ "geometry": {
+ "description": "GeoJSON Polygon or MultiPolygon in EPSG:4326.",
+ "type": "object"
+ },
+ "operator": {
+ "enum": [
+ "intersects",
+ "within",
+ "contains"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "operator"
+ ],
+ "type": "object"
+ },
+ "state_abbr": {
+ "type": [
+ "string",
+ "array"
+ ]
+ },
+ "text": {
+ "additionalProperties": false,
+ "properties": {
+ "case_sensitive": {
+ "default": false,
+ "type": "boolean"
+ },
+ "field": {
+ "description": "Safe text field to search. Defaults to the public part ID column.",
+ "type": "string"
+ },
+ "mode": {
+ "default": "prefix",
+ "enum": [
+ "prefix",
+ "contains",
+ "exact"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "value"
+ ],
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+]