Briosa Python client
briosa-2026-1-0529-7 is the asynchronous Python client for the open-source
Briosa SpatialAnalyzer bridge. It
provides idiomatic lifecycle and MP APIs while keeping generated protobuf and
gRPC types private.
The package does not include SpatialAnalyzer, the SA SDK, or a license. It
targets SpatialAnalyzer 2026.1.0529.7 exactly and Python 3.10 or later. The
complete protocol identity is pinned in protocol.lock.json.
Package Identity
The distribution is named briosa-2026-1-0529-7, while application code keeps
the stable briosa import package. Install the distribution with:
python -m pip install briosa-2026-1-0529-7==0.5.1
To try a local build instead, build it as shown under Development and install
the wheel from its dist folder into a fresh virtual environment. pip skips a
wheel whose version is already installed, so to replace the installed package
in an environment that already has its dependencies, run
python -m pip install --force-reinstall --no-deps <path-to-wheel>.
Each exact SpatialAnalyzer target will have a separate distribution name. Two
target distributions intentionally provide the same briosa import package,
so applications targeting different SA releases should use separate virtual
environments or processes. There is no universal runtime target selector. Both
reviewed SA targets are maintained independently in this repository.
Usage
from briosa import BriosaClient
async with BriosaClient() as briosa:
working_directory = await briosa.get_working_directory()
Construction is dormant. Entering the async context, or calling start(),
locates and launches the matching local Briosa server, starts a disconnected SA
SDK generation, launches SpatialAnalyzer, connects the SDK, and verifies MP
readiness. BriosaStartOptions can select a control-plane-only startup or
connect to an eligible application that is already running.
Application and SDK state, launch, connect, stop, and recovery methods remain
available for diagnosis and explicit control. stop(), aclose(), and async
context exit stop the owned server and SDK but never close SpatialAnalyzer.
BriosaStartOptions.startup_timeout bounds the whole start(). Omitted, it is
120.0 seconds, which covers the server's default worst case of about 100
seconds for a start that launches SpatialAnalyzer, with a 20-second margin.
With Server 0.10.1 and later, an omitted budget follows the server's own
lifecycle settings. Once the client has verified the server, the budget becomes
the server's published startup allowance for the phases you selected plus 20
seconds, counted from the start of start() and never less than 120 seconds. A
server whose bounds are raised therefore raises the client budget with them.
Against Server 0.10.0, which publishes no allowance, the budget stays at 120
seconds: if you raise that server's Briosa:Worker:StartupTimeout,
Briosa:Worker:ReadinessProbeTimeout, or
Briosa:SpatialAnalyzer:ApplicationStartupTimeout, raise the client budget too;
the public API contract
shows how to size it. An explicit startup_timeout, even 120.0, is always
used as given.
Only constructing BriosaStartOptions without passing startup_timeout
leaves the budget automatic: the client records which arguments the constructor
received, never which value it holds. A value you pass is explicit however you
obtained it, including BriosaStartOptions().startup_timeout and the default
that inspect.signature() and dataclasses.fields() show. Reading the omitted
default gives a plain float, 120.0; a value you pass reads back as you
passed it, so an explicit 120 reads back as the int 120, as in 0.5.0.
dataclasses.replace() and copy.replace() pass every current value, so their
result has an explicit budget; build new options to keep the automatic one.
Copies and pickles keep the choice. Subclasses of BriosaStartOptions keep
the 0.5.0 behaviour and do not take the server's published startup
allowance. Equality and hashing
compare values as in 0.5.0, so omitted options equal, and hash like, options
with an explicit 120.0; a cache keyed only by an options object can therefore
return the result computed for the other.
With a server that publishes lifecycle bounds, the client also reads the clock
and the startup's cancellation before it takes ownership of the session, before
it reports success, and for each request it sends during startup after the
request is built and immediately before it is sent. A startup whose budget has
run out, or that was cancelled, therefore sends no further request and never
reports success, even if the event loop was too busy to run its timer. A
request that fails once the budget has run out raises BriosaStartupError
with startup-timeout, with that failure as its __cause__; one that fails
earlier keeps its own error, including a TimeoutError of its own. If such a
startup fails after the client took ownership of the session, that session
admits no MP command for the rest of its life, whatever later state reads
report; call stop() and then start() to begin a new one. If cleaning up
after a failed startup also fails, the startup's error is still the one
raised, with a note naming what could not be closed. That cleanup runs after
the startup budget has ended, so the budget never interrupts it, and finishes
before start() returns.
The client schedules a ten-second timeout for each close. Cleanup can
take longer than twenty seconds if the event loop is blocked.
If a close is still pending when its timeout fires, the client cancels it and
adds a note that it was abandoned. Against Server 0.10.0 each step runs as
with client 0.5.0.
Lifecycle methods send no deadline unless you pass timeout. If the budget
expires while the server is starting or connecting the SDK, read the SDK state
before retrying: the server finishes a step it has accepted, so the abandoned
start may still produce a ready generation.
The client retains lifecycle generations and supplies guards automatically. Typed lifecycle failures, compatibility failures, task cancellation, ambiguous MP completion, and replay guidance remain distinct. MP operations are never automatically replayed.
See the Briosa documentation for the client API overview. The target-specific source and locked protocol define this package's exact API.
New in 0.5.1 (Server 0.10.1)
Client 0.5.1 adds the values below, which arrive with Server 0.10.1. Against
Server 0.10.0, which sends none of these values, each one is None or
UNKNOWN. The attributes added to OperationFailure,
BriosaOperationCapability and BriosaServerSnapshot are keyword-only and stay
out of repr(), equality and hashing. What 0.5.1 guarantees an application
written for 0.5.0, and the known differences, follow the list.
-
Typed denial detail. A
POLICY_DENIEDfailure carriesBriosaOperationError.failure.policy_denial, aPolicyDenialDetailsthat says which policy step denied the call:rule(PolicyDenialRule), thedenied_flagfor a flag denial (anOperationRiskFlag,UNKNOWNfor a flag this client doesn't know), theadmission_profilefor a profile denial, and therequest_option_fieldthe server attributed the denial to. That field is the protobuf field name of the request option, never a value you sent. The detail is present only on policy denials, never changes the failure's kind, disposition, or guidance, and isNoneagainst Server 0.10.0.try: await briosa.save_as(job_file) except BriosaOperationError as error: denial = error.failure.policy_denial if denial is not None and denial.rule is PolicyDenialRule.FLAG: print(f"Denied by the {denial.denied_flag} flag")
-
Denied capabilities. In
list_capabilities(include_denied=True), each deniedBriosaOperationCapabilitycarries the same detail inpolicy_denial. It never changesadmission. -
Request options. Each
BriosaOperationCapabilityhasrequest_options:Nonewhen the server doesn't describe them (Server 0.10.0), and an empty tuple when none apply. EachOperationRequestOptiongives the protobuffield_name, itseffect(operator UI or work left running), theconditionthat turns it on, theenabling_enum_values, whatomissiondoes, and theadmissionandpolicy_denialfor a request that turns on that option alone. The server still decides every actual call, and the client never pre-validates a request from this description. -
Unknown values. A rule, effect, condition, or omission that this client doesn't recognize is
UNKNOWN. It is metadata only: it never admits anything and never fails discovery. -
Lifecycle bounds.
BriosaServerSnapshot.lifecycle_boundsis aBriosaLifecycleBoundswith the server's published wait allowances, each adatetime.timedeltaorNonewhen unavailable:start_sdk,launch_spatial_analyzer,connect_spatial_analyzer,recover_sdk,stop_sdk,close_owned_spatial_analyzer,startup_with_launchandstartup_without_launch.host_graceful_shutdownis aGracefulShutdownBoundwhosekindisUNAVAILABLE,FINITE(with aduration), orUNBOUNDED; a missing bound is unavailable, never unbounded. Each allowance covers only the server's own work, and none promises that a response arrives or a process exits within it.lifecycle_boundsisNoneagainst Server 0.10.0. -
Configured interaction mode.
BriosaServerSnapshot.configured_interaction_modeis the SpatialAnalyzer interaction mode the server is configured to set after each Connect (Briosa:SpatialAnalyzer:InteractionMode), as aConfiguredSpatialAnalyzerInteractionMode. It is the server's configuration, never SpatialAnalyzer's live mode, which has no getter and can change at any time. It isUNKNOWNagainst Server 0.10.0. -
Startup budget. An omitted
startup_timeoutfollows the server's published startup allowance, as described under Usage. An explicit value is always used as given. -
Server selection. Client 0.5.1 selects and accepts Server 0.10.0 and Server 0.10.1 alike, and still checks the running server against the installation it selected.
-
Startup-budget expiry on Python 3.10. Startup-budget expiry raises
BriosaStartupErrorwith diagnostic codestartup-timeouton every supported Python version. On Python 3.10, this exception also derives fromasyncio.TimeoutError, preserving the handler used with client 0.5.0. It pickles and copies with the same message and code; a pickle of it loads on Python 3.11 and later as plainBriosaStartupError.
Compatibility with client 0.5.0. Guaranteed for an application written for client 0.5.0:
- Every public name and signature of 0.5.0 is still there; client 0.5.1 only adds names, and keyword-only parameters with defaults.
- Against Server 0.10.0, ordinary use behaves as with 0.5.0, with two
differences, both on Python 3.10 only: a startup timeout is now a
BriosaStartupErrorthat is also anasyncio.TimeoutError, sotype(e) is asyncio.TimeoutErroris no longer true; and astop()during a hung startup now closes the client's resources on the first call. - Objects of Briosa's own value types that 0.5.0 pickled load in 0.5.1.
repr(), equality and hashing of those types are unchanged.- Subclasses of
BriosaStartOptionsbehave as in 0.5.0: a subclass's startup always uses its ownstartup_timeout, never the server's published startup allowance.
Not guaranteed; known differences from 0.5.0:
dataclasses.fields(),astuple()andasdict()onOperationFailure,BriosaOperationCapabilityandBriosaServerSnapshotinclude the fields 0.5.1 added:OperationFailuregoes from 9 fields to 10,BriosaOperationCapabilityfrom 8 to 10 andBriosaServerSnapshotfrom 8 to 10, so code that unpacks an exact number of values needs updating.- Your own subclass of one of those three types that adds fields, or that declares a field or property with the name of a field 0.5.1 added, may need changes, and pickles of such subclasses written by 0.5.0 are not guaranteed to load correctly.
- A subclass of one of those three types can define a read-only property
named like a field added in 0.5.1. Constructing an instance with the
inherited initializer raises
AttributeError. - Field changes can affect 0.5.0 pickles of
@dataclass(slots=True)subclasses of those three types. Positional restoration can put a subclass value into a field added in 0.5.1 and leave a subclass field unset. Reading an unset field raisesAttributeError. - On 64-bit CPython,
BriosaStartOptionsand its subclasses occupy one additional pointer-sized slot. - On Python 3.10,
get_type_hints(BriosaStartOptions.__init__)["logging"]displaysBriosaLoggingOptions | None. Version 0.5.0 displayedtyping.Optional[BriosaLoggingOptions]. The two compare equal. - On an event loop that disallows application-defined attributes, abandoning a close can replace the startup error with an attribute-assignment error and leave the unfinished close uncancelled and untracked.
- With an eager task factory and a subclass that permits a nonpositive timeout, 0.5.0 could enter the launcher before timing out. Version 0.5.1 times out before launch.
- Client 0.5.0 can't load a
BriosaServerSnapshotpickled by 0.5.1, or anOperationFailureorBriosaOperationCapabilitypickled by 0.5.1 that carries a policy denial detail or request options.
Upgrading to 0.5.0 (Server 0.10.x)
0.5.0 is a breaking release. Client 0.5.x works with Server 0.10.x (starting
with Server 0.10.0; Client 0.5.0 is built against protocol checkpoint
0.10.0-dev.1) and does not work with Server 0.9.x and earlier; clients 0.4.x
and earlier do not work with Server 0.10.x. If you must stay on Server 0.9.x,
use Client 0.4.0. For server releases after 0.10.0, a patch update keeps the
same clients working; a minor update may require a client upgrade. The
Server 0.10.0 change record
and the
shared client behavior specification
are authoritative; this section lists what changes for Python callers.
Results and typed failures
-
Partial success. An MP that returns code 4 (PARTIAL SUCCESS) did its work, but not all of its intended effect. The method returns its outputs as usual when all of them are retrieved, and never retries. To see how a call completed, pass the keyword-only
on_mp_completionthat every MP method takes. It receives oneMpCompletionwithstate(MpExecutionState.SUCCEEDEDorPARTIAL_SUCCESS) and itsmp_result_code(2 or 4), before the method returns:completions: list[MpCompletion] = [] directory = await briosa.get_working_directory(on_mp_completion=completions.append) if completions[0].state is MpExecutionState.PARTIAL_SUCCESS: ...
The client checks every MP success, whether or not you pass an observer: the execution details must pair
SUCCEEDEDwith MP code 2 orPARTIAL_SUCCESSwith code 4. Anything else, including a missing code, isBriosaProtocolError(mp-completion-invalid). The observer runs before the outputs are mapped, so it hears of a success even when the outputs then fail to map.A failed call reports no completion. Its
BriosaOperationError.failurecarriesmp_execution(anMpExecutionDetails), which keepsPARTIAL_SUCCESSdistinct. After code 4, the call fails when an output can't be retrieved, andmp_executionkeepsPARTIAL_SUCCESSwith code 4:OUTPUT_RETRIEVAL_FAILUREwhen a getter returned no usable value, or when the worker couldn't deliver the result, for example an oversized value;SDK_CALL_FAULTEDwhen a getter raised.
Both have disposition
COMPLETEDand replay guidanceDO_NOT_REPLAY.mp_execution.output_retrievalsgives each output's state as the server reports it. It doesn't always identify the getter: an undeliverable result, or a getter fault without per-output evidence, marks every outputFAILED.Four operations document code 4 as leaving the work undone, and report it as an ordinary
MP_FAILUREwith code 4:construct_point_from_survey_target_center,open_sa_file,open_template_fileandset_report_options_for_object. -
SDK call faults.
OperationFailureKind.SDK_CALL_FAULTEDreports that an SDK call threw during the MP sequence. The execution disposition gives the phase:NOT_STARTED(nothing ran),STARTED_OUTCOME_UNKNOWN(reconcile before any replay) orCOMPLETED(an output getter failed after MP success). It is never folded intoINTERNALor a retrieval failure. -
Modal dialogs. A watchdog timeout or readiness failure caused by an open SpatialAnalyzer dialog reports diagnostic
sa-modal-dialog-open, with recovery guidanceOPERATOR_INTERVENTION_REQUIREDfor operations. Replacing the worker doesn't clear the dialog: an operator must close it. The client never retries. Unattended stations can set the server optionBriosa:SpatialAnalyzer:InteractionModetoSilent(the default isUnchanged). SpatialAnalyzer keeps the mode across restarts and has no getter for it, and the client never sets it. -
Lifecycle caller kinds.
SpatialAnalyzerSdkLifecycleFailureKindandSpatialAnalyzerLifecycleFailureKindgainCALLER_CANCELLEDandCALLER_DEADLINE_EXCEEDED. They describe the caller's own interruption, never a state conflict. gRPC rarely delivers them: cancelling a call raisesasyncio.CancelledError, and atimeoutraisesBriosaTransportErrorwithtransport-deadline-exceeded. -
Wire-order enums. Every enum value is appended in wire order. An unknown value is still a protocol error, except in discovery (below).
Discovery and admission
BriosaServerSnapshotreports the server'sadmission_profileand an opaquepolicy_fingerprint; compare the fingerprint only for equality.- Each
BriosaOperationCapabilitycarriesrisk_flags(an ordered set; empty means no reviewed risk),duration_class,validation_statusandadmission. A value added by a later compatible server release maps toUNKNOWN. - The snapshot's operations are the admitted ones only. The client takes admission from the server and never pre-validates a call or its options; the server decides. Validation status is informational.
await briosa.list_capabilities(include_denied=True)is a diagnostic listing that also returns each denied operation with its denial reason inadmission. It never makes an operation callable.- The packaged
standardprofile no longer admits device sessions, device configuration, motion, code execution, external IO, file deletion or operator UI. The seven device-configuration setters needProfile=deviceorfull,Flags:device_config=allow, or a per-operationallowoverride; interactive operations need the explicit opt-in,Flags:interactive_ui=allowor a per-operationallowoverride. Facades for denied and exclusive operations remain, and a denied call fails withPOLICY_DENIEDandNOT_STARTED. See the admission profile migration.
Request defaults and arguments
- Ten defaults flip, because the server now denies the old values:
measure_immediately=Trueonmeasure_single_point_here,configure_and_measure,measure_existing_single_point,measure_existing_single_point_and_compareandmeasure_existing_single_point_manual_guide;auto_start=Trueonauto_measure_points;wait_for_complete=Trueonauto_measure_specified_geometry;acknowledge_arrival=Trueon both robot moves; andprompt_on_missing_components=Falseondirect_cad_access. - Now optional, left unset when omitted: the
template_chart_nameofcreate_chart_from_vector_group(now keyword-only), theprofile_file_nameofset_user_interface_profile, and thestarting_condition_geometryof the three fit operations. - Now required, with no default: the relationship
toleranceandconstraintof the fourmake_*_relationshipoperations (passToleranceVectorOptions.NO_LIMITSfor none); the six joints ofmove_robot_machine_to_joint_pose_six_dof;set_automaticallyofset_instrument_weather_setting; thescale_factorofscale_objectsand of both instrument scale-factor setters; the model-linkconfiguration(whose members lose their defaults); the robotparameter_nameandparameter_valueofset_robot_machine_parameter; theobservation_indexandvector_indexof the three destructive index operations; and the names and patterns ofdelete_folder,delete_variable,delete_variables_wildcard_match,delete_vector_by_nameanddelete_robot_calibration, and thetag_nameofremove_report_tag. - Weather values:
temperature,pressureandrelative_humiditylose their 0 default. Omitted, they stay unset; the server rejects that whenset_automaticallyis false. - Lists: the callout notes and both
quick_alignlists stay optional and are sent empty when omitted orNone(briosa-py#44). The fourfeature_inspection_auto_filterlists and the quick fit'sother_objects_to_transformare required, because the server rejects them empty. USMNexcluded_groupsstays optional; the server skips its setter for an empty list. - Inputs the server requires are required, with no fill-in: no identity
transform, default settings value, empty list or default choice. Omitting one
fails with
TypeErrorbefore any call. These lose their default orNone:- Transforms:
calculate_tcp_fixture_uncertainties(tcp_in_working);construct_ellipsoid(transform_in_working_coordinates);construct_frame(transform_in_working_coordinates);construct_frame_from_transform_in_world(transform_in_world_coordinates);set_calibration_appliance_node_measurement_offset_transform(measurement_offset_transform);set_robot_calibration_measurement_offset_in_tool_frame(measurement_frame);set_robot_calibration_tool_frame(tool_frame);set_robot_machine_base_transform(destination_transform). - Settings:
auto_filter_clouds_to_nominal_geometry_2d(filter_proximity_settings_2d);auto_filter_clouds_to_nominal_geometry_3d(filter_proximity_settings_3d);auto_filter_points_to_nominal_geometry_3d(filter_proximity_settings_3d);do_relationship_fit(motion_to_allow);make_groups_to_objects_relationship(projection_options);make_point_clouds_to_objects_relationship(projection_options);make_points_to_objects_relationship(projection_options);move_collections_by_minimizing_relationships(motion_to_allow);relationship_watch_window_template(options). - Tolerances:
build_target(tolerance);make_frame_to_frame_relationship(orientation_tolerance,position_tolerance);set_object_to_object_direction_relationship_tolerances(angle_between_vectors_tolerances,mutual_perpendicular_length_tolerances). - Lists:
auto_filter_points_groups_clouds_to_surface_faces(points,groups,clouds);create_points_to_objects_map(points,groups);extract_geometry_from_point_clouds(bounding_points);set_points_to_points_relationship_associated_data(nominal_points,actual_points);set_relationship_associated_data(individual_points,point_groups,point_clouds,objects). - Choices:
auto_filter_points_groups_clouds_to_surface_faces(offset_direction);collimation(tilt_mode,baseline_method);construct_points_from_surfaces_on_uv_grid(edge_point_mode);create_point_callout(desired_coordinate_system);extract_geometry_from_point_clouds(geometry_type);feature_inspection_auto_filter(offset_direction);locate_instruments_usmn(show_usmn_dialog);make_collection_item_name_ref_list_wildcard_selection(item_type);make_collection_object_name_ref_list_by_type(object_type);make_collection_object_name_ref_list_by_type_and_color(object_type);make_collection_object_name_ref_list_runtime_select(object_type);make_collection_object_name_ref_list_wildcard_selection(object_type);make_collection_object_name_runtime_select(object_type);make_dynamic_circle_relationship(construction_mode);make_dynamic_ellipse_relationship(construction_mode);make_dynamic_line_relationship(construction_mode);make_dynamic_plane_relationship(construction_mode);make_dynamic_point_relationship(construction_mode);set_gdt_options(distance_between_mode,evaluation_method);set_target_computation_options(computation_method). - Names, points and vectors:
auto_correspond_with_proximity_trigger(deviation_vector_group_name);collimation(scale_point_1,scale_point_2,not_measured_by_moving_instrument,as_measured_by_moving_instrument);construct_cross_section_cloud(reference_object);construct_point_from_cloud_point_runtime_select(constructed_point_name);construct_points_shifted_in_working_frame(shift_vector);construct_points_subset_with_greatest_spacing(group_for_subset);enable_disable_datum_alignment_for_feature_check(alignment);get_gradient_at_projected_point_on_surface_edge(edge_offset_direction);make_dynamic_point_relationship(third_reference_geometry);relationship_watch_window_template(watch_window_template_name);set_observation_collimation_shot_options(targeted_instrument). - Q-DAS:
export_qdas_characteristicsandprepare_qdas_data_list(k0004_date_time_stamp), which defaulted to a captured timestamp. The SA 2024 package already required it. - Option members: every member of
FilterProximitySettings(below); theudp_network_transmit_settingsofRelationshipWatchWindowTemplateOptions(passRelationshipWatchWindowUdpSettings()to leave UDP off); and theobjects,geometry_relationships,auxiliary_objectandauxiliary_geometry_relationshipof both GD&T annotation options, which are now keyword-only.ReportOutputOptionsneeds exactly one destination. PassProjectionOptions.DEFAULTto keep the reviewed projection defaults. A newly required input that follows every positional parameter and precedes every optional input in MP order is positional; the others are required keywords, so no existing positional parameter moves.
- Transforms:
- Proximity settings. All eleven
FilterProximitySettingsmembers are required, with no default: the six distances (surface_inclusion_proximity,edge_exclusion_proximity,planar_inclusion_proximity,planar_exclusion_proximity,radial_inclusion_proximity,geometry_extraction_tolerance), the two Booleans (project_to_plane,assert_plane_boundaries) and the three proximity modes. The server reads the distances and Booleans without checking presence, so an absent one would reach SA as 0 or false, and a distance is a length in the SA job's units. Client 0.4 filled in 0.1, 0.1, 0.5, 0.1, 0.1 and 0.01,TrueandFalse, andBOTHfor each mode. Pass the values your job needs instead. - An argument you leave unset is never sent as an empty value, 0 or false, and
the client doesn't pre-validate empty values. The server rejects them before
dispatch with
VALIDATIONandNOT_STARTED. See the argument defaults migration.
Removed operations
Nine operations are gone with their value types. The first eight failed on both exact targets in licensed probe sessions:
- Returned MP code -1 (each depends on an SDK argument the exporter marks
NOT_SUPPORTED):mirror_objects(withMirrorFramePlane),delete_cloud_points_by_x_y_z_range,construct_circles_lines_from_surfaces(withCircleLineMode) andset_callout_view_properties. Nothing replaces them. There is no X Y Z box delete; the radial delete has different semantics, and a licensed session validated it on both targets for one cloud and one point. - Reached MP success (code 2) but returned no usable list:
make_callout_view_ref_list_wildcard_selection(its result is markedNOT_SUPPORTEDand the list getter returned nothing),add_collection_instruments_to_ref_list_wildcard_selection(reading the input list back returned nothing, and the MP documents no return argument) andmake_collection_vector_group_name_ref_list_runtime_select(its getter returned nothing). To select callout views,make_collection_item_name_ref_list_wildcard_selectionwith the callout-view item type uses a different MP step, and that item type has not been observed on a licensed run. Callers can build an instrument list directly, and nothing replaces the vector-group runtime select. - Stalled the worker with no MP result:
construct_polygonized_surface_from_point_clouds(withMeshOrientationType); its mesh-orientation setter is absent from the committed interop. Nothing replaces it. make_vector_name_ref_list_runtime_selectis the exception: it was removed unverified rather than shown not to work, because no operator could complete the selection on either target in licensed probe session 3. It can return in a later compatible server release once a licensed session verifies it.
Lifecycle
- A server accepts a Start, Connect, Reconnect or Recover and then finishes it
under its own bounds, even after the caller stops waiting. After a cancelled
or timed-out lifecycle call, refresh state with
get_spatial_analyzer_sdk_state()before deciding what to do: the startup you abandoned may still produce a ready generation. Callget_server_snapshot()to reopen MP calls on it. - Treat
sdk-lifecycle-transition-in-progress(STATE_CONFLICT,REFRESH_STATE) as "refresh and retry later". Stop a generation you own only after the accepted transition has ended. - After a launch timeout, the server may still bring SpatialAnalyzer to
RUNNING. Refresh application state before launching again, and treatapplication-lifecycle-transition-in-progressthe same way.
Fixed
locate_instrument_group_to_surface_quick_fitreturned a bareTypeErrorafter every successful fit. It now mapsmaximum_absolute_errortoFitErrorResult.maximum_error(briosa-py#45).get_robot_machine_model_link_parametersraisedTypeErrorafter every successful call; it now returns its nested result.- Eight facades sent one argument twice and never sent another.
set_vector_group_to_vector_group_fit_weightssent each gap as its fit weight, andconstruct_point_group_from_point_cloudsent thesub_samplingflag assub_sampling_distance. The other six failed every call before dispatch:construct_frame_known_origin_object_direction_object_direction, the threeconstruct_points_at_projection_on_surfaces_*operations, andget_ith_callout_position_in_callout_viewandset_ith_callout_position_in_callout_view. - A result that doesn't match its result type now fails as
BriosaProtocolError(operation-result-field-driftoroperation-result-invalid), never as a bareTypeError. get_working_directoryis an ordinary MP operation now. A missing directory isrequired-output-missing:directory, like any other missing output.get_relationship_ref_list_variableandget_report_items_reference_list_variableare annotatedlist[CollectionItemName], the type they return; they saidlist[CollectionObjectName].- A negative enum number now fails like any other unknown value. Client 0.4
counted it from the end of the member list, so a lifecycle state or typed
failure could report a member the server never sent. An operation error
that carries one, including in its MP execution details, fails as
typed-error-malformed; a lifecycle state or lifecycle error raisesBriosaProtocolError(unknown-enum-value).
Server selection
Applications select a server independently of their protocol generation pin. On Windows x64, discovery reads Registry64 installation hints, committed canonical stores, explicit search roots, and supported local layouts. It validates receipts and manifests, filters by exact SA target and server compatibility, and selects the highest compatible stable release. No internet access is needed.
Client 0.5.x works with Server 0.10.x. Client 0.5.1 is built against protocol
checkpoint 0.10.1-dev.1 (spatialanalyzer/briosa d4057790), which carries
the Server 0.10.1 additions, and works with Server 0.10.0 unchanged. Before
launch, it checks that the installation matches the exact SA target and
declares support for this client. It rejects installations with missing compatibility
information as well as Server 0.9.x and earlier (including every released 0.9,
0.8, 0.7, and 0.6 server); clients 0.4.x and earlier do not work with Server
0.10.x. For server releases after 0.10.0, a patch update keeps the same clients
working; a minor update may require a client upgrade. Protocol and source pins
remain exact build inputs; startup verifies the running server against its
selected installation.
The three robot methods Get Robot Machine Parameter, Start Robot Machine Interface, and Stop Robot Machine Interface now take a collection/instrument identity for the MP argument named Machine ID. Supply an instrument ID rather than a machine ID; other robot methods retain their existing types.
A full server queue returns an overload error with NotStarted, no recovery action, and MayReplay guidance. The client preserves these separate facts and never retries automatically. The 64 KiB inbound limit may also produce a transport size error without typed detail. See the authoritative migration guide.
A missing or incompatible explicit choice fails without selecting another installation. The choice is fixed for the session, including worker recovery. Prereleases require explicit opt-in. Conflicting manifests for the same release precedence produce an ambiguity error; identical copies prefer machine, user, then portable scope and a stable path order. Elevated automatic discovery admits only protected machine installations.
The optional selection settings include an executable path or installation ID,
an exact version, minimum version (inclusive), maximum version (exclusive),
excluded versions, search roots, allowed scopes, and an SA executable path.
Search roots name package stores with a committed products directory.
Read-only discovery returns candidates, the selected identity, and rejection codes
without starting Briosa, the SDK, or SA. Detailed paths belong to explicitly
requested diagnostics; installer Verify/Repair provides full payload checks.
BRIOSA_SERVER_PATH is ignored by default in client 0.2. Use a direct selection
option in new applications. Existing scripts can opt in to the legacy environment
override; an invalid override fails without fallback. Direct selectors take
precedence. Published 0.1.0/0.1.1 packages retain their original behavior.
Custom stores can be registered through the Installer's Register existing
installations action or packages register command. Alternatively provide a
search root or executable path per application. No machine-wide active server is
selected. Installing several SA releases does not establish concurrent execution:
the server still verifies the activated SDK and connected SA independently.
The shared selection contract owns these rules and the compatibility matrix distinguishes tested pairs from declared forward compatibility.
from briosa import BriosaServerSelection, BriosaStartOptions, discover_installations
selection = BriosaServerSelection(version="0.10.0")
report = discover_installations(selection) # no process launch
await briosa.start(BriosaStartOptions(server_selection=selection))
Use executable_path, installation_id, minimum_version, maximum_version_exclusive,
excluded_versions, search_roots, allowed_scopes, allow_prerelease,
spatial_analyzer_executable_path, and use_legacy_environment_override as needed.
Pass paths as pathlib.Path values. Use a separate environment for each exact-target package.
Development
Run these commands from targets/2026.1.0529.7/. Each target builds and
packages independently. Use a separate Python environment for each target.
python -m venv .venv
./.venv/Scripts/python -m pip install -e ".[dev]"
./.venv/Scripts/python -m ruff format --check .
./.venv/Scripts/python -m ruff check .
./.venv/Scripts/python -m mypy
./.venv/Scripts/python -m pytest
./eng/Test-Conformance.ps1 `
-ArtifactPath C:\path\to\briosa-client-conformance-0.9.2-sa-2026.1.0529.7-win-x64.zip `
-ExpectIncompatible `
-PythonExecutable ./.venv/Scripts/python.exe
./eng/Test-Conformance.ps1 `
-ArtifactPath C:\path\to\briosa-client-conformance-0.10.0-sa-2026.1.0529.7-win-x64.zip `
-LockPath published-server-conformance.lock.json `
-PythonExecutable ./.venv/Scripts/python.exe
./.venv/Scripts/python -m build
./.venv/Scripts/python eng/test_package_identity.py
./.venv/Scripts/python eng/test_package_consumer.py
Unit tests use fake server/transport boundaries. The shared conformance suite
runs the real client and server against a portable fake SDK/application host.
Neither path requires SpatialAnalyzer nor a license. Set
BRIOSA_CONFORMANCE_DIAGNOSTICS_DIRECTORY to a folder to keep a failed
scenario's diagnostics, including its server logs; the Server 0.9.2 runner
ignores it.
Protocol regeneration
./.venv/Scripts/python eng/import_protocol_artifact.py `
C:\path\to\briosa-protocol-0.10.1-dev.1-sa-2026.1.0529.7.zip `
--update --source-channel source_commit_bootstrap
./.venv/Scripts/python eng/import_protocol_artifact.py `
C:\path\to\briosa-protocol-0.10.1-dev.1-sa-2026.1.0529.7.zip
Never edit generated *_pb2.py, *_pb2.pyi, *_pb2_grpc.py,
protocol_identity.py, or protocol.lock.json files by hand.
Server Logging
Pass optional typed logging settings through BriosaStartOptions:
from briosa import BriosaLoggingOptions, BriosaLogLevel, BriosaStartOptions
await briosa.start(BriosaStartOptions(
logging=BriosaLoggingOptions(
minimum_level=BriosaLogLevel.DEBUG,
console_enabled=False,
max_file_size_mib=20,
retained_file_count=10,
),
))
The remaining controls are category_levels, file_enabled, file_directory,
max_age_days, and max_total_size_mib. Omitted settings preserve server
configuration. Options validate at construction; custom directories must be
absolute Windows paths. See the shared startup contract
and server observability guide.
Compatibility and validation
This package pins its generation artifact and tests server compatibility against packaged servers. Client 0.5.x works with Server 0.10.x and must reject the retained Server 0.9.2 baseline (the latest 0.9.x server) before launch. CI runs the packed client against that baseline, against the published Server 0.10.0, and against the server built from the pinned protocol source. Exact SA target, runtime identity, capabilities, and readiness still gate MP calls.
Portable conformance covers lifecycle, identity mismatch, denied capabilities with the admission profile and denial reasons, typed MP and output failure, SDK call faults, partial success, deadlines, cancellation, an abandoned lifecycle Connect, watchdog recovery, SDK loss, and owned-process cleanup. With Server 0.10.1 and later it also covers the typed denial detail, request options, published lifecycle bounds, and a result at the server's 1 MiB worker response budget, which the fixture checks by the UTF-8 length and SHA-256 of the text it received. Unit tests also check every changed default, omission and requiredness rule on the built request, and map a fully populated response for every operation. Its harness disables Control Center auto-launch and restores the prior setting afterward. These checks use a fake SDK, without a SpatialAnalyzer installation or license.
The public relationship-reference inputs use CollectionItemName, including
the item name and optional item type; they are not geometric object references.
This corrects earlier pre-publication facade annotations that disagreed with the
protocol. Existing callers of those methods must pass the item-name value.
Broader licensed runtime coverage and protected runtime CI remain outstanding. Enterprise Artifactory integration is also unverified. This package remains v0.x; portable results do not imply v1.0 readiness or validation on physical instruments.
Metadata
Release files for briosa-2026-1-0529-7 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| briosa_2026_1_0529_7-0.5.1.tar.gz | 686.0 kB | With provenance | Details for briosa_2026_1_0529_7-0.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| briosa_2026_1_0529_7-0.5.1-py3-none-any.whl | Python 3 | none | any | Details for briosa_2026_1_0529_7-0.5.1-py3-none-any.whl |
Total release size: 1.3 MB
Release files / briosa_2026_1_0529_7-0.5.1.tar.gz
| Download URL | briosa_2026_1_0529_7-0.5.1.tar.gz |
|---|---|
| Size | 686.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef67c4cd76e19cd526f1e182d57440faff5f6f10694f84fdc54c902c782422ef
|
|
BLAKE2b-256 checksum How to use checksums |
f3e50861e705e61dcadc53024af12fd561eaa99a7f4724cf7845a9ae35a09eed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / briosa_2026_1_0529_7-0.5.1-py3-none-any.whl
| Download URL | briosa_2026_1_0529_7-0.5.1-py3-none-any.whl |
|---|---|
| Size | 612.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ac5e597273ce1e1ed0907047e7cb23d38637a2458531c208cdc26379ee4697bd
|
|
BLAKE2b-256 checksum How to use checksums |
e65291bfbfd4c9a44714c48df25013d9ee40a603de75f9762f557f4629d7e0e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logSecurity for briosa-2026-1-0529-7 0.5.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for briosa_2026_1_0529_7-0.5.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.