Signal Contracts and Runtime

Read the SIGNAL_API_v1 contract, prepare typed operands, and check which operations you can call from a Python Job.

Setup and API Discovery

Require SIGNAL_API_v1@1:math.signal+operation_schema. list_operations lists the operation IDs provided by Signal. The direct call gxtxt_api_call(API,'convolution.linear',[a,b,c]) and the dispatcher call gxtxt_api_call(API,'call',['convolution','linear',a,b,c]) use the same operand order. operation_schema_full also exposes each field and its constraints. validate_operation_full validates the contract before invoking the numerical kernel. Some operations use GNU Octave. The Job used Python 3.13.5 and NumPy 2.2.4. The test environment used Octave 9.4.0 with signal 1.4.6 and control 4.1.1.

Operand Nodes and Result Field Selection

Scientific operations take three scientific nodes, A, B, and C, plus an optional typed struct. Complex array nodes store real and imaginary components with matching shapes. Mark unused slots with {'kind':'empty'}. Use result_fields where supported to request only the columns you need. Dataset operations require the canonical Session API. Providing a directory or an arbitrary ID in a node grants no access.

Operation Reference

Jump to an Operation

Host-Only and Script Bridge Interfaces

  • ::GX::SignalAPIv1::apiInfo

    Access policy
    REGISTERED_TYPED_ADAPTER
    Interface
    api_info
    Condition
    The original math.signal component reads the installed descriptor, version, and capabilities, with no paths chosen by the caller and no numerical calculation. The api_info adapter calls it directly and keeps every field, the order of the capabilities, and the original representation of the provider version, typing only the declared API version. The describe metadata of the shared registry follow a separate contract. The operation does not use the GUI, does not modify the Document, calls no callbacks, and introduces no scientific implementation.
  • ::GX::SignalAPIv1::call

    Access policy
    REGISTERED_TYPED_ADAPTER
    Interface
    call
    Condition
    The original public call accepts family, action, a, b, c, and optional typed options. It checks the ID formed by joining family and action against the original list and calls ScientificTransportv1 and the module’s installed kernel. The call profile forwards the same signature and, if options is omitted, the original Tcl default applies. It keeps resultTypes and the existing encoder, preserving every field, binary64 real and complex components, shapes, and unit strings within the limits of the original transport. The per-family and per-action routes remain compatible specializations. Signal bulk execution follows its own route. The call adds no estimators, arbitrary Tcl prefixes, lists of allowed scientific operations, local-only restrictions, or support for native buffers and uint64. The typed representation follows its own contract with respect to the syntax and state of the direct Tcl interface.
  • ::GX::SignalAPIv1::interpretResult

    Access policy
    REGISTERED_TYPED_ADAPTER
    Interface
    interpret_result
    Condition
    interpret_result calls Signal interpretResult directly, with the operation, the raw results, the context, and the optional original provenance. statisticalContract and StatisticsV1.fromNumeric keep all the model, unit, conditional-availability, and consistency checks. The existing CORE statistical-result encoder converts the whole result. The adapter does not apply the field selection of the separate from_numeric route, computes no estimates, invents no context or provenance, and does not give the supplied data the status of the producer’s canonical evidence. The original rejections for a missing unit and an unsupported contract still apply. The interpretation works on data and needs no live widgets, commands, or files chosen by the caller.
  • ::GX::SignalAPIv1::listOperations

    Access policy
    REGISTERED_TYPED_ADAPTER
    Interface
    list_operations
    Condition
    The original component reads the module’s operations TSV, keeping the order and the set of entries. list_operations calls it directly. The keys registered in Script Bridge are a separate list. The only addition to the original Signal list is statistical_contract. operation_schema, validate_operation, and the new adapter profiles have their own registered names. Unknown arguments are rejected. Installed paths and descriptors remain under the control of the original module. The query needs no calculation and no active GUI.
  • ::GX::SignalAPIv1::operationMetadata

    Access policy
    REGISTERED_TYPED_ADAPTER
    Interface
    operation_metadata
    Condition
    The original component checks the operation ID against its own TSV, adds the original family and help metadata and, for Signal, includes the complete result of operationSchema. operation_metadata keeps every original field, the order of the argument descriptors and result fields, the exact representation of units, defaults, and bounds, and the complete keyed Signal schema, including ui_field and final_scientific_checks. For unknown IDs it returns the original error. It is a query of the installed metadata, with no provider commands, caller-supplied paths, or copies of algorithms.
  • ::GX::SignalAPIv1::statisticalContract

    Access policy
    REGISTERED_TYPED_ADAPTER
    Interface
    statistical_contract
    Condition
    The statistical_contract adapter calls the original Signal statisticalContract implementation directly. It keeps the original identifiers of numerical operation, model, profile, and semantics, as well as the errors for unsupported operations. Its job is to retrieve the contract, not to estimate or interpret results. The shared registry and any CORE methods with the same name are separate. The only scalar normalization concerns the type of the declared API version. The original provider and model remain authoritative.
  • ::GX::SignalAPIv1::operationFormCreate

    Access policy
    HOST_ONLY_RAW_OWNER_LIFECYCLE
    Interface
    operation_schema_full
    Condition
    The direct interface creates a ttk parent frame, labels, native UI Field controls, and the Validate button. It binds callbacks and cleanup on Destroy and stores forms, formValues, and formStatus for the widget path. A serialized parent name alone gives no access to a live Tk parent, to the event loop, or to the lifecycle of the controls. The original method and cleanup were verified by entering values in the native controls of the host component. Script Bridge registers no direct form-creation route for the module. operation_schema_full returns only complete declarative metadata. The exclusion depends on the actual control over widgets, state, and callbacks, regardless of name or family.
  • ::GX::SignalAPIv1::operationFormRequest

    Access policy
    HOST_ONLY_RAW_OWNER_LIFECYCLE
    Interface
    validate_operation_full
    Condition
    The method reads forms(parent) and the formValues set up by operationFormCreate, without making direct Tk calls. It applies the original schema, requirements, defaults, and numeric normalization, then packs typed operands and options. The parent argument nevertheless refers to the real state of the host module and its lifecycle up to Destroy. An arbitrary string from the worker process gives no access to that state. The check used the real frame, native input, the request, Destroy, and a request with the expired reference. Script Bridge does not expose the direct route that takes parent. operation_schema_full and validate_operation_full give independent access to the declarative data and to validation, without reading another module’s state. The declarative data-preparation logic remains usable.
  • ::GX::SignalAPIv1::operationSchema

    Access policy
    REGISTERED_TYPED_ADAPTER
    Interface
    operation_schema_full
    Condition
    operation_schema_full calls the original schema component directly and returns every top-level field, the keyed fields, the ui_field definitions, optional defaults or expressions, the exact representation of bounds, units, and requirements, the declared constraints for lists, maps, and scalars, validation_owner, and final_scientific_checks. It decodes only the metadata types declared at the source and generates no schemas or rules. The older operation_schema offers a narrower list view, without ui_field and the final scientific checks. Unknown IDs and the empty schema of metadata-only operations follow the original behavior. The schema creates no widgets.
  • ::GX::SignalAPIv1::validateOperation

    Access policy
    REGISTERED_TYPED_ADAPTER
    Interface
    validate_operation_full
    Condition
    validate_operation_full forwards operation, a, b, c, and the optional typed options to the original validateOperation function. It keeps the original order of schema check, default application, and error reporting. It then validates the contract through ScientificTransportv1 and gxtxt_signal_v1 and returns all current valid and field_count values. It performs no numerical calculation and introduces no new validator. The older validate_operation remains the original bulk-provider route with five required arguments. The original errors for malformed data and unknown schemas still apply, as do the defaults applied when the optional argument is actually omitted.

statistical_contract

Access
Registered in the Python Job
Arguments
signal_operation (string)
Units
The public CORE API supplies the actual units and availability.
Result
Numeric operation and CORE model identifiers, with no recalculation or duplicated interpretation logic.
Purpose
Retrieves the CORE statistical contract registered for a Signal operation.
gxtxt_api_call("SIGNAL_API_v1", "statistical_contract", args)
Recorded Result · statistical_contract

Download the example script (extract the ZIP first).

Example Operands Preview

[
  "spectral.welch"
]

Result Preview

{
  "api_version": 1,
  "signal_operation": "spectral.welch",
  "numerical_api": "NUMERIC_API_v1",
  "numerical_operation": "signal_welch",
  "semantics_api": "STATISTICAL_RESULT_SEMANTICS_API_v1",
  "model_id": "math.numeric.signal_welch",
  "profile": "signal_spectral"
}
Negative Test or Attempt Result · statistical_contract:without-contract

Download the example script (extract the ZIP first).

Example Operands Preview

[
  "filter.causal"
]

Result Preview

"GXTXT:ScriptBridge:RemoteError: SIGNAL_API_v1/statistical_contract: Signal operation has no registered statistical-result contract"

operation_schema

Access
Registered in the Python Job
Arguments
[{“name”: “signal_operation”, “kind”: “string”, “required”: true}]
Result
Typed fields, defaults, units, and conditional requirements.
Purpose
Reads the typed validation schema of the operation from the API provider.
gxtxt_api_call("SIGNAL_API_v1", "operation_schema", args)
Recorded Result · operation_schema

Download the example script (extract the ZIP first).

Example Operands Preview

[
  "convolution.circular"
]

Result Preview

{
  "api_id": "SIGNAL_API_v1",
  "schema_version": 1,
  "operation": "convolution.circular",
  "fields": [
    {
      "name": "a",
      "label": "Signal",
      "type": "array",
      "required": true,
      "unit": "signal",
      "shape": "vector",
      "error_id": "GXTXT:Signal:InvalidOperand"
    },
    {
      "name": "b",
      "label": "Kernel",
      "type": "array",
      "required": true,
      "unit": "kernel",
      "shape": "vector",
      "error_id": "GXTXT:Signal:InvalidOperand"
    },
    {
      "name": "c",
      "label": "Unused protocol operand",
      "type": "empty",
      "required": false,
      "unit": "1",
      "shape": "unused",
      "error_id": "GXTXT:Signal:InvalidOperand"
    },
    {
      "name": "options.length",
      "label": "Circular length",
      "type": "integer",
      "required": false,
      "unit": "1",
      "shape": "",
      "error_id": "GXTXT:Signal:InvalidLength",
      "default_expression": "max(numel(a),numel(b))",
      "min": "1"
    }
  ],
  "validation_owner": "gxtxt_signal_validate_v1",
  "constraints": {}
}

validate_operation

Access
Registered in the Python Job
Arguments
[{“name”: “operation”, “kind”: “string”, “required”: true}, {“name”: “a”, “kind”: “typed operand”, “required”: true}, {“name”: “b”, “kind”: “typed operand”, “required”: true}, {“name”: “c”, “kind”: “typed operand”, “required”: true}, {“name”: “options”, “kind”: “typed operand”, “required”: true}]
Result
Validation result. The numerical component performs the final data-dependent checks.
Purpose
Validates the typed inputs without running the numerical calculation.
gxtxt_api_call("SIGNAL_API_v1", "validate_operation", args)
Recorded Result · validate_operation

Download the example script (extract the ZIP first).

Example Operands Preview

[
  "design.fir_window",
  {
    "kind": "array",
    "shape": [
      1,
      1
    ],
    "real": [
      6
    ]
  },
  {
    "kind": "array",
    "shape": [
      1,
      1
    ],
    "real": [
      0.25
    ]
  },
  {
    "kind": "empty"
  },
  {
    "kind": "struct",
    "fields": {
      "band": {
        "kind": "text",
        "value": "low"
      }
    }
  }
]

Result Preview

{
  "valid": true,
  "field_count": 6.0
}
Negative Test or Attempt Result · validate_operation:unknown

Download the example script (extract the ZIP first).

Example Operands Preview

[
  "no_such_action",
  {
    "kind": "array",
    "shape": [
      1,
      1
    ],
    "real": [
      1
    ]
  },
  {
    "kind": "empty"
  },
  {
    "kind": "empty"
  },
  {
    "kind": "struct",
    "fields": {}
  }
]

Result Preview

"GXTXT:Signal:UnknownOperation: unknown Signal operation"

api_info

Access
Registered in the Python Job
Arguments
[]
Result
Complete result of the original component, through the existing typed transport. Authority over numerical results and provenance stays with the original component.
Purpose
Original provider profile: api_info.
gxtxt_api_call("SIGNAL_API_v1", "api_info", args)
Recorded Result · api_info

Download the example script (extract the ZIP first).

Example Operands Preview

[]

Result Preview

{
  "api_id": "SIGNAL_API_v1",
  "api_version": 1,
  "provider_id": "math.signal",
  "provider_version": "1.5.0",
  "capabilities": [
    "operation_schema",
    "typed_validation",
    "guided_form",
    "durable_script_job_execution",
    "captured_statistical_columns",
    "statistical_contract",
    "core_statistical_interpretation",
    "analytic",
    "frequency_metric",
    "time_metric"
  ]
}

list_operations

Access
Registered in the Python Job
Arguments
[]
Result
Complete result of the original component, through the existing typed transport. Authority over numerical results and provenance stays with the original component.
Purpose
Original provider profile: list_operations.
gxtxt_api_call("SIGNAL_API_v1", "list_operations", args)
Recorded Result · list_operations

Download the example script (extract the ZIP first).

Example Operands Preview

[]

Result Preview

[
  "convolution.linear",
  "convolution.circular",
  "convolution.deconvolve",
  "correlation.auto",
  "correlation.cross",
  "correlation.delay",
  "filter.inspect",
  "filter.causal",
  "filter.zero_phase",
  "filter.sos"
]

operation_metadata

Access
Registered in the Python Job
Arguments
operation
Result
Complete result of the original component, through the existing typed transport. Authority over numerical results and provenance stays with the original component.
Purpose
Original provider profile: operation_metadata.
gxtxt_api_call("SIGNAL_API_v1", "operation_metadata", args)
Recorded Result · operation_metadata

Download the example script (extract the ZIP first).

Example Operands Preview

[
  "design.fir_window"
]

Result Preview

{
  "id": "design.fir_window",
  "summary": "design fir window",
  "api_id": "SIGNAL_API_v1",
  "api_version": 1,
  "operands": "order,cutoff,ripple,options",
  "input_shapes": "scalar;scalar_or_pair;scalar",
  "result_shapes": "coefficients;poles;SOS",
  "units": "cutoff_normalized_or_radians_per_second",
  "complex_behavior": "real_coefficients",
  "errors": "InvalidOrder;InvalidBand;InvalidCutoff",
  "arguments": [
    "order",
    "cutoff",
    "ripple",
    "options"
  ],
  "argument_descriptors": [
    {
      "name": "order",
      "shape": "scalar",
      "source": "cell,range,column,scalar,option"
    },
    {
      "name": "cutoff",
      "shape": "scalar_or_pair",
      "source": "cell,range,column,scalar,option"
    },
    {
      "name": "ripple",
      "shape": "scalar",
      "source": "cell,range,column,scalar,option"
    },
    {
      "name": "options",
      "shape": "action-specific",
      "source": "cell,range,column,scalar,option"
    }
  ],
  "signature": "signal.design.fir_window(order, cutoff, ripple, options)",
  "worksheet_example": "Apply signal.design.fir_window using Worksheet ranges A1:A20 and B1:B20; set action-specific operands in the guided dialog.",
  "result_fields": [
    "coefficients",
    "poles",
    "SOS"
  ],
  "unit_behavior": "cutoff_normalized_or_radians_per_second",
  "operation_schema": {
    "api_id": "SIGNAL_API_v1",
    "schema_version": 1,
    "operation": "design.fir_window",
    "fields": {
      "a": {
        "name": "a",
        "label": "Filter order",
        "type": "integer",
        "required": "1",
        "unit": "1",
        "shape": "",
        "error_id": "GXTXT:Signal:InvalidOrder",
        "min": "1",
        "ui_field": {
          "type": "integer",
          "label": "Filter order",
          "required": "1",
          "min": "1"
        }
      },
      "b": {
        "name": "b",
        "label": "Cutoff",
        "type": "array",
        "required": "1",
        "unit": "Nyquist fraction for discrete; rad/s for analog",
        "shape": "one edge for low/high; two increasing edges for bandpass/stop; discrete edges <1",
        "error_id": "GXTXT:Signal:InvalidCutoff",
        "min": ">0",
        "ui_field": {
          "type": "string",
          "label": "Cutoff",
          "required": "1"
        }
      },
      "c": {
        "name": "c",
        "label": "Unused protocol operand",
        "type": "empty",
        "required": "0",
        "unit": "1",
        "shape": "unused",
        "error_id": "GXTXT:Signal:InvalidOperand",
        "ui_field": {
          "type": "empty",
          "label": "Unused protocol operand",
          "required": "0",
          "allow_inherit": "1"
        }
      },
      "options.band": {
        "name": "options.band",
        "label": "Band",
        "type": "choice",
        "required": "0",
        "unit": "1",
        "shape": "",
        "error_id": "GXTXT:Signal:InvalidBand",
        "default": "low",
        "choices": [
          "low",
          "high",
          "bandpass",
          "stop"
        ],
        "ui_field": {
          "type": "choice",
          "label": "Band",
          "required": "0",
          "allow_inherit": "1",
          "default": "low",
          "values": [
            "low",
            "high",
            "bandpass",
            "stop"
          ]
        }
      },
      "options.domain": {
        "name": "options.domain",
        "label": "Domain",
        "type": "choice",
        "
[…]

call

Access
Registered in the Python Job
Arguments
family, action, a, b, c, options
Result
Complete result of the original component, through the existing typed transport. Authority over numerical results and provenance stays with the original component.
Purpose
Original provider owner profile: call
gxtxt_api_call("SIGNAL_API_v1", "call", args)
Recorded Result · call:explicit-options

Download the example script (extract the ZIP first).

Example Operands Preview

[
  "convolution",
  "linear",
  {
    "kind": "array",
    "shape": [
      3,
      1
    ],
    "real": [
      1,
      2,
      3
    ]
  },
  {
    "kind": "array",
    "shape": [
      2,
      1
    ],
    "real": [
      1,
      1
    ]
  },
  {
    "kind": "empty"
  },
  {
    "kind": "struct",
    "fields": {}
  }
]

Result Preview

{
  "value_real": {
    "dtype": "float64",
    "shape": [
      4,
      1
    ],
    "values": [
      1.0,
      3.0,
      5.0,
      3.0
    ]
  },
  "value_imaginary": {
    "dtype": "float64",
    "shape": [
      4,
      1
    ],
    "values": [
      0.0,
      0.0,
      0.0,
      0.0
    ]
  },
  "output_length": 4.0
}

operation_schema_full

Access
Registered in the Python Job
Arguments
operation
Result
Complete result of the original component, through the existing typed transport. Authority over numerical results and provenance stays with the original component.
Purpose
Original provider profile: operation_schema_full.
gxtxt_api_call("SIGNAL_API_v1", "operation_schema_full", args)
Recorded Result · operation_schema_full

Download the example script (extract the ZIP first).

Example Operands Preview

[
  "design.fir_window"
]

Result Preview

{
  "api_id": "SIGNAL_API_v1",
  "schema_version": 1,
  "operation": "design.fir_window",
  "fields": {
    "a": {
      "name": "a",
      "label": "Filter order",
      "type": "integer",
      "required": "1",
      "unit": "1",
      "shape": "",
      "error_id": "GXTXT:Signal:InvalidOrder",
      "min": "1",
      "ui_field": {
        "type": "integer",
        "label": "Filter order",
        "required": "1",
        "min": "1"
      }
    },
    "b": {
      "name": "b",
      "label": "Cutoff",
      "type": "array",
      "required": "1",
      "unit": "Nyquist fraction for discrete; rad/s for analog",
      "shape": "one edge for low/high; two increasing edges for bandpass/stop; discrete edges <1",
      "error_id": "GXTXT:Signal:InvalidCutoff",
      "min": ">0",
      "ui_field": {
        "type": "string",
        "label": "Cutoff",
        "required": "1"
      }
    },
    "c": {
      "name": "c",
      "label": "Unused protocol operand",
      "type": "empty",
      "required": "0",
      "unit": "1",
      "shape": "unused",
      "error_id": "GXTXT:Signal:InvalidOperand",
      "ui_field": {
        "type": "empty",
        "label": "Unused protocol operand",
        "required": "0",
        "allow_inherit": "1"
      }
    },
    "options.band": {
      "name": "options.band",
      "label": "Band",
      "type": "choice",
      "required": "0",
      "unit": "1",
      "shape": "",
      "error_id": "GXTXT:Signal:InvalidBand",
      "default": "low",
      "choices": [
        "low",
        "high",
        "bandpass",
        "stop"
      ],
      "ui_field": {
        "type": "choice",
        "label": "Band",
        "required": "0",
        "allow_inherit": "1",
        "default": "low",
        "values": [
          "low",
          "high",
          "bandpass",
          "stop"
        ]
      }
    },
    "options.domain": {
      "name": "options.domain",
      "label": "Domain",
      "type": "choice",
      "required": "0",
      "unit": "1",
      "shape": "",
      "error_id": "GXTXT:Signal:InvalidModel",
      "default": "discrete",
      "choices": [
        "discrete",
        "analog"
      ],
      "ui_field": {
        "type": "choice",
        "label": "Domain",
        "required": "0",
        "allow_inherit": "1",
        "default": "discrete",
        "values": [
          "discrete",
          "analog"
        ]
      }
    },
    "options.window": {
      "name": "options.window",
      "label": "Window",
      "type": "choice",
      "required": "0",
      "unit": "1",
      "shape": "discrete domain only; high/stop require even order",
      "error_id": "GXTXT:Signal:InvalidWindow",
      "default": "hamming",
      "choices": [
        "hamming",
        "hann",
        "blackman"
      ],
      "ui_field": {
        "type": "choice",
        "label": "Window",
        "required": "0",
        "allow_inherit": "1",
        "default": "hamming",
        "values": [
          "hamming",
          "hann",
          "blackman"
        ]
      }
    }
  },
  "constraints": {
    "cutoff_length_by_band": {
      "low": "1",
      "high": "1",
      "bandpass": "2",
      "stop": "2"
    },
    "cutoff_unit_by_domain": {
      "discrete": "fraction of Nyquist",
      "analog": "rad/s"
    },
    "cutoff_order": "strictly_increasing",
    "discrete_cutoff_range": {
      "exclusive_lower": "0",
      "exclusive_upper": "1"
    },
    "supported_domain": "discrete",
    "even_order_bands": [
    
[…]
Negative Test or Attempt Result · operation_schema_full:unknown

Download the example script (extract the ZIP first).

Example Operands Preview

[
  "no_such_action"
]

Result Preview

"GXTXT:ScriptBridge:RemoteError: SIGNAL_API_v1/operation_schema_full: Unknown Signal operation 'no_such_action'"

validate_operation_full

Access
Registered in the Python Job
Arguments
operation, a, b, c, options
Result
Complete result of the original component, through the existing typed transport. Authority over numerical results and provenance stays with the original component.
Purpose
Original provider profile: validate_operation_full.
gxtxt_api_call("SIGNAL_API_v1", "validate_operation_full", args)
Recorded Result · validate_operation_full

Download the example script (extract the ZIP first).

Example Operands Preview

[
  "design.fir_window",
  {
    "kind": "array",
    "shape": [
      1,
      1
    ],
    "real": [
      6
    ]
  },
  {
    "kind": "array",
    "shape": [
      1,
      1
    ],
    "real": [
      0.25
    ]
  },
  {
    "kind": "empty"
  }
]

Result Preview

{
  "valid": true,
  "field_count": 6.0
}
Negative Test or Attempt Result · validate_operation_full:cutoff-order

Download the example script (extract the ZIP first).

Example Operands Preview

[
  "design.butterworth",
  {
    "kind": "array",
    "shape": [
      1,
      1
    ],
    "real": [
      4
    ]
  },
  {
    "kind": "array",
    "shape": [
      2,
      1
    ],
    "real": [
      0.5,
      0.3
    ]
  },
  {
    "kind": "empty"
  },
  {
    "kind": "struct",
    "fields": {
      "band": {
        "kind": "text",
        "value": "bandpass"
      }
    }
  }
]

Result Preview

"GXTXT:ScriptBridge:RemoteError: SIGNAL_API_v1/validate_operation_full: cutoff must be positive and digital cutoff below one"

interpret_result

Access
Registered in the Python Job
Arguments
operation, raw, context, provenance
Result
Complete result of the original component, through the existing typed transport. Authority over numerical results and provenance stays with the original component.
Purpose
Original provider profile: interpret_result.
gxtxt_api_call("SIGNAL_API_v1", "interpret_result", args)
Recorded Result · interpret_result:welch-8hz

Download the example script (extract the ZIP first).

Example Operands Preview

[
  "spectral.welch",
  {
    "frequency_hz": 8.0,
    "psd_real": 0.49999999999999994,
    "psd_imaginary": 0.0,
    "n": 256.0,
    "sample_rate": 128.0,
    "fft_length": 128.0,
    "bin_count": 65.0,
    "window_length": 128.0,
    "overlap_samples": 0.0,
    "window_count": 2.0,
    "used_sample_count": 256.0,
    "method": "octave_native_welch_window_energy",
    "spectral_operation": "welch",
    "sidedness": "onesided",
    "detrend": "global_mean_over_used_segment_span",
    "input_kind": "real",
    "normalization": "window_energy_and_sample_rate"
  },
  {
    "x_unit": "V"
  },
  {
    "source": "Synthetic 8 Hz / 128 Hz control; zero-based k=8"
  }
]

Result Preview

{
  "api_id": "STATISTICAL_RESULT_SEMANTICS_API_v1",
  "api_version": 1,
  "schema": "gxtxt.statistical_result.v1",
  "model": {
    "label": "welch spectral estimates",
    "profile": "signal_spectral",
    "parameter_convention": "none",
    "description": "",
    "parameter_ids": [],
    "id": "math.numeric.signal_welch",
    "owner": "math.numeric"
  },
  "residual": {
    "definition": "observed_minus_predicted_at_source_x",
    "orientation": "y_of_x",
    "axis": "y",
    "unit": "",
    "coordinate_space": "original_physical",
    "status": "not_applicable",
    "reason": "This analysis has no residual model",
    "zero_normal_sign_policy": "unspecified"
  },
  "parameters": [],
  "quantities": {
    "replicate_mean": {
      "status": "not_applicable",
      "label": "Consensus mean",
      "unit": "",
      "kind": "scalar",
      "reason": "Quantity requires a registered aligned replicate profile",
      "definition": "Arithmetic mean of aligned contributing curves"
    },
    "replicate_median": {
      "status": "not_applicable",
      "label": "Consensus median",
      "unit": "",
      "kind": "scalar",
      "reason": "Quantity requires a registered aligned replicate profile",
      "definition": "Median of aligned contributing curves"
    },
    "replicate_dispersion": {
      "status": "not_applicable",
      "label": "Profile dispersion",
      "unit": "",
      "kind": "scalar",
      "reason": "Quantity requires a registered aligned replicate profile",
      "definition": "Sample curve spread; cloud mode uses combined local and source-location spread when available"
    },
    "replicate_sem": {
      "status": "not_applicable",
      "label": "Conditional consensus SEM",
      "unit": "",
      "kind": "scalar",
      "reason": "Quantity requires a registered aligned replicate profile",
      "definition": "Sample curve standard deviation divided by square root of curve count under the declared independent-trace model"
    },
    "replicate_within": {
      "status": "not_applicable",
      "label": "Within-source dispersion component",
      "unit": "",
      "kind": "scalar",
      "reason": "Quantity requires a registered aligned replicate profile",
      "definition": "Labelled mode uses pooled within-source moments; cloud mode uses RMS of local residual dispersions"
    },
    "replicate_between": {
      "status": "not_applicable",
      "label": "Between-source dispersion component",
      "unit": "",
      "kind": "scalar",
      "reason": "Quantity requires a registered aligned replicate profile",
      "definition": "Labelled mode uses the truncated random-effects moment; cloud mode uses sample spread of source locations"
    },
    "replicate_total": {
      "status": "not_applicable",
      "label": "Combined source dispersion",
      "unit": "",
      "kind": "scalar",
      "reason": "Quantity requires a registered aligned replicate profile",
      "definition": "Quadrature combination of available within-source and between-source dispersion components"
    },
    "replicate_trace_count": {
      "status": "not_applicable",
      "label": "Contributing curves",
      "unit": "count",
      "kind": "scalar",
      "reason": "Quantity requires a registered aligned replicate profile",
      "definition": "Count of aligned input curves; not a verified independent replicate count"
    },
    "replicate_source_count": {
      "status": "not_applicable",
      "label": "Distinct sources",
      "unit": "coun
[…]
Negative Test or Attempt Result · interpret_result:bulk-needs-columns

Download the example script (extract the ZIP first).

Example Operands Preview

[
  "spectral.welch",
  {
    "frequency_hz": {
      "dtype": "float64",
      "shape": [
        65,
        1
      ],
      "values": [
        0.0,
        1.0,
        2.0,
        3.0,
        4.0,
        5.0,
        6.0,
        7.0,
        8.0,
        9.0,
        10.0,
        11.0
      ]
    },
    "psd_real": {
      "dtype": "float64",
      "shape": [
        65,
        1
      ],
      "values": [
        1.2185511617508177e-32,
        5.681705801959767e-33,
        1.1569837495124349e-32,
        5.57711427598781e-32,
        7.046741499200674e-31,
        1.4790658267700833e-31,
        8.85509606837798e-32,
        4.4340767396073056e-32,
        0.49999999999999994,
        2.5637212950911756e-32,
        5.042096911373439e-32,
        3.635513617903586e-32
      ]
    },
    "psd_imaginary": {
      "dtype": "float64",
      "shape": [
        65,
        1
      ],
      "values": [
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0
      ]
    },
    "n": 256.0,
    "sample_rate": 128.0,
    "fft_length": 128.0,
    "bin_count": 65.0,
    "window_length": 128.0,
    "overlap_samples": 0.0,
    "window_count": 2.0,
    "used_sample_count": 256.0,
    "method": "octave_native_welch_window_energy",
    "spectral_operation": "welch",
    "sidedness": "onesided",
    "detrend": "global_mean_over_used_segment_span",
    "input_kind": "real",
    "normalization": "window_energy_and_sample_rate"
  },
  {
    "x_unit": "V"
  },
  {
    "source": "Synthetic 8 Hz / 128 Hz control; zero-based k=8"
  }
]

Result Preview

"GXTXT:ScriptBridge:RemoteError: SIGNAL_API_v1/interpret_result: Spectral interpretation requires scalar per-bin facts; use from_numeric_columns or a Dataset-local column binding for vectors"