Repository navigation
Todo
Labels
area: protocolgRPC and protobuf API designarea: securitySecurity architecture, endpoint protection, and auditabilityenhancementNew feature or request
Description
Outcome
Deliver a supported, exact-target mechanism (Briosa.Cli.exe) that allows end users' AI agents to inspect and—when explicitly authorized—operate SpatialAnalyzer directly through Briosa without writing a custom client program or using brittle desktop UI automation.
One shared target-scoped .NET 10 binary packaged inside each Windows x64 server distribution provides:
- a progressive-discovery, local
stdioMCP server for desktop and IDE AI hosts (Claude Desktop, Cursor, VS Code, etc.); and - a composable, JSON-first CLI for terminal/coding agents and shell scripting.
Delivery starts with an attach-only, observe-only-lifecycle, read-only inspection MVP for SpatialAnalyzer 2026.1.0529.7, then expands to controlled mutations with replay interlocks and 2024.1.0508.5 parity.
Remote Streamable HTTP MCP is intentionally outside this Epic and remains gated on #156 and #251.
Architecture Record
Recorded in Architecture Discussion #9.
Key design commitments:
- distinct raw-protocol agent adapter layer above the typed gRPC boundary (preserving exact
snake_caseprotobuf field names and binding to Briosa's compatibility, disposition, replay, and fake-worker conformance guarantees); - single-authority enforcement of agent safety tiers via a narrowing-only caller restriction header evaluated in
OperationPolicy.EvaluateRequest(covering conditionalrequest_optionsand a pinned exhaustiveness test across all registered operations); - value-free field-level validation detail in
OperationError, additivemp_stepinDiscoveryService/ListCapabilities, and bundleddescriptor/briosa.protoset; - attach-only, observe-only lifecycle in MVP (leaving server launch, SA/SDK attestation, and connection management with
Briosa.ControlCenter.exe); - completion safety for
PartialSuccess(MP code4), decoupled MCP host cancellation + async handle/await forlong_runningops, and post-unknown-outcome replay interlocks; - prompt-injection delimiting for untrusted SA strings, bounded inline JSON + explicit local-only/spill-to-file data-egress mode, and excluding
physical_motion,device_*,code_execution, andexternal_iofrom initial MCP releases; and - preserving
briosa-installerADR 0007 for MVP (copyable exact-path config toBriosa.Cli.exe).
Coordinated Scope
Phase 0 — Packaging & Descriptor Spike
- Spike: Validate Briosa.Cli.exe packaging, signing, MCP SDK notices, and dynamic protobuf JSON round-trip #441 — Spike: Validate
Briosa.Cli.exepackaging, signing, MCP SDK notices, and dynamic protobuf JSON round-trip
Phase 1 — Server & Protocol Enablers (Both Targets, Compatibility Revision Bump)
- Add value-free field-level validation detail to OperationError #442 — Add value-free field-level validation detail to
OperationError - Support narrowing-only caller restriction header evaluated by OperationPolicy.EvaluateRequest #443 — Support narrowing-only caller restriction header evaluated by
OperationPolicy.EvaluateRequest - Expose mp_step in DiscoveryService/ListCapabilities and bundle briosa.protoset in server packages #444 — Expose
mp_stepinDiscoveryService/ListCapabilitiesand bundlebriosa.protosetin server packages
Phase 2 — Attach-Only Inspection MVP (targets/2026.1.0529.7)
- Implement attach-only Briosa.Cli.exe (JSON CLI and local stdio MCP) for SA 2026.1.0529.7 #445 — Implement attach-only
Briosa.Cli.exe(JSON CLI and localstdioMCP) for SA2026.1.0529.7
Phase 3 — Controlled Mutation & Long-Running Safety (targets/2026.1.0529.7)
- Add controlled mutating execution, async long-running handles, and replay interlock to Briosa.Cli.exe #446 — Add controlled mutating execution, async long-running handles, and replay interlock to
Briosa.Cli.exe
Phase 4 — Cross-Target Parity, Docs & Ecosystem Follow-Up
- Extend Briosa.Cli.exe to SA 2024.1.0508.5, publish agent docs/SKILL.md, and evaluate installer scope #447 — Extend
Briosa.Cli.exeto SA2024.1.0508.5, publish agent docs/SKILL.md, and evaluate installer scope
Explicitly Deferred / Out of Scope
- Remote Streamable HTTP MCP transport (gated on Epic: Deliver Secure Remote Briosa Connectivity #156 and Decide local API authentication for owned sessions (D3) #251).
- Managed/auto-launched server mode (requires a dedicated process-lifetime, job-object, graceful-stop, and single-instance design).
- Exposing
physical_motion,device_session,device_config,code_execution, orexternal_iooperations via MCP. - Auto-retrying ambiguous MP calls or hiding preliminary MP calls behind opaque macros.
- Resolving optional scalar default semantics across all ~530 fields (tracked separately in Decide MP omission and default semantics for optional and risky arguments (D2) #243).
Exit Criteria
-
Briosa.Cli.exeis signed byReleasePackageSigning.psm1, passes deterministic double-build ZIP verification, and accounts for all third-party notices ineng/licenses/reviewed-windows-evidence.json. - A pinned test verifies every registered operation maps to exactly one bridge safety tier and cannot bypass
OperationPolicy.EvaluateRequestvia conditionalrequest_options. - Packaged fake-worker conformance tests verify stdio MCP and CLI behavior across
OK,PartialSuccess, field-level validation errors, policy denials, cancelled/timed-out unknown outcomes (dispatch count = 1), replay interlocks, hostile SA strings, and oversized results. - Explicitly authorized scripted licensed SA validation confirms real inspection and controlled mutation behavior on
2026.1.0529.7without model-driven test execution. - End-user documentation honestly states local-only scope, data-egress implications, validation coverage, and when to prefer MCP vs. CLI vs.
briosa-py/briosa-js/briosa-dotnet.
Metadata
Metadata
Assignees
Labels
area: protocolgRPC and protobuf API designarea: securitySecurity architecture, endpoint protection, and auditabilityenhancementNew feature or request
Type
Projects
- StatusShow more project fieldsIn Progress
Activity