Files
Siddharth GanesanandVikhyath Mondreti f525ff2feb feat(mothership): add super-user Plan and knowledge graph settings with benchmark tooling (#8637)
* feat(mothership): authorize private cross-workspace memory scopes

* feat(desktop): add gated macOS computer use

* fix(desktop): preserve generated computer-use contracts

* fix(desktop): cancel computer use when its renderer exits

* fix(desktop): complete native computer tool lifecycle

* fix(desktop): support rich editors and verified Mac input batches

* fix: preserve desktop observations through recovery and report app focus

* Gate Search Assistant integration lookups with AppConfig (#8301)

* Enable read-only integration lookups for Search Assistant

* Preserve inherited tool versions in generated integration docs

* Align provider tests with Search read-only operations

* Gate Search integration tools with AppConfig

* Preserve dev test runner isolation during promotion

* Default Plan chats to independently saved Opus 5.5 Medium preferences

* Remove default Mship execution cutoff and expose Slack agent prerequisites

* fix(catalog): preserve credential gates for automation discovery

* Add workspace specification benchmarks with isolated Plan evaluation

* Add private knowledge graph selection in settings

* Retain benchmark run history with comparisons and human review

* chore: redeploy Sim after benchmark configuration update

* Add superuser benchmark console with selected-user execution

* Inspect benchmark workspaces incrementally and search generated specs

* Remove benchmark cutoffs and renew active stage leases

* Generate benchmark redactions from exact passages

* Create owned conversations for every benchmark execution

* Preserve partial benchmark answers for human review

* Grade benchmark mechanics with verified reference resolution

* Reconcile Plan feature with staging contracts and validation gates

* Expose the Graphiti rollout gate through authorized memory scope

* Share benchmark super-user eligibility with Plan and knowledge graphs

* fix(plan): address eligibility, benchmark state and desktop review findings

* feat: compare benchmark planner models with saved scores

* test: align Plan composer and desktop fixtures with staging

* fix(desktop): keep disabled computer use dormant

* fix(plan): enforce benchmark and native action admission

* fix(plan): preserve secret metadata during benchmark reads

* fix(plan): isolate embedded CLI and checkpoint benchmark stages

* fix(desktop): bound native requests and completion images

* fix(plan): revalidate access and retain benchmark state

* fix(plan): qualify persisted effort integration fixtures

* fix(db): reconcile benchmark migrations with staging retirement

* fix(db): preserve table change log in benchmark migration chain

* fix(benchmarks): delete artifacts with their execution target

* fix(mothership): isolate benchmark state and preserve tool completions

* fix(desktop): preserve action evidence in unload completions

* fix(desktop): keep projected parent references valid

* fix(computer): preserve uncertainty and label permission controls

* test(mothership): await actual tool cancellation completion

* fix(plan): resolve review findings and trigger initialization

* docs(triggers): point Linq guidance at the builder module

* fix(plan): preserve fork scope and benchmark redaction boundaries

* fix(plan): retry retained completions and guard benchmark drafts

* fix(computer): stop completion delivery at identity reset

---------

Co-authored-by: Vikhyath Mondreti <vikhyath@simstudio.ai>
2026-10-13 16:24:27 -07:00

33 lines
1.7 KiB
Python

"""Run against a compiled helper; no permission requests or personal UI reads."""
import json
import subprocess
import sys
helper = sys.argv[1]
process = subprocess.Popen([helper], stdin=subprocess.PIPE, stdout=subprocess.PIPE, text=True)
def call(method, params=None):
process.stdin.write(json.dumps({'id': method, 'method': method, 'params': params or {}}) + '\n')
process.stdin.flush()
return json.loads(process.stdout.readline())
status = call('status')['result']
assert status['kind'] == 'status' and status['platform'] == 'darwin'
assert isinstance(status['accessibility'], bool) and isinstance(status['screenRecording'], bool)
assert call('unknown')['error']['code'] == 'unknown_method'
assert call('request_permission', {'permission': 'invalid'})['error']['code'] == 'invalid_arguments'
if not status['accessibility']:
for action in ['get_app_state', 'click', 'type_text', 'press_key', 'scroll', 'drag', 'set_value', 'perform_action']:
assert call(action, {'bundleId': 'com.mothership.computer-use-fixture'})['error']['code'] == 'accessibility_permission_required'
else:
assert call('get_app_state', {'bundleId': 'com.apple.systempreferences'})['error']['code'] == 'protected_app'
assert call('get_app_state', {'bundleId': 'com.simstudio.computer-use'})['error']['code'] == 'protected_app'
process.stdin.write('x' * (129 * 1024) + '\n')
process.stdin.flush()
assert json.loads(process.stdout.readline())['error']['code'] == 'invalid_request'
assert call('unknown', {'text': 'A😀é漢字'})['error']['code'] == 'unknown_method'
assert call('status')['result'] == status
process.stdin.close()
assert process.wait(timeout=5) == 0
print('PASS: persistent JSONL, status, malformed method, invalid permission, permission gates, clean EOF')