The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
test: repeat pre-PR validation and capture implemented orchestrator launcher
Dee48f115c6de96
diff --git a/desktop/test/orchestrator_review_render_test.dart b/desktop/test/orchestrator_review_render_test.dartnew file mode 100644index 000000000..c72c8d9e7--- /dev/null+++ b/desktop/test/orchestrator_review_render_test.dart@@ -0,0 +1,121 @@+import 'dart:io';+import 'dart:ui' as ui;++import 'package:flutter/material.dart';+import 'package:flutter/rendering.dart';+import 'package:flutter/services.dart';+import 'package:flutter_test/flutter_test.dart';+import 'package:harness/auth/auth_session.dart';+import 'package:harness/core/config.dart';+import 'package:harness/core/models.dart';+import 'package:harness/orchestrator/orchestrator_launcher.dart';+import 'package:harness/shared/theme/app_theme.dart' as grid;+import 'package:harness/state/app_state.dart';++import 'support/real_fonts.dart';+import 'swarm_state_test.dart' show MemoryStore;++class _ReviewApp extends AppNotifier {+ _ReviewApp()+ : super(+ config: AppConfig.dev,+ authSession: AuthSession(storage: MemoryStore()),+ ) {+ const machine = Machine(+ machineId: 'review',+ name: 'Review fixture',+ authMode: MachineAuthMode.remote,+ );+ machines = [machine];+ machineStates['review'] = MachineState(machine)..localOnly = true;+ }++ @override+ Future<Map<String, dynamic>> orchestratorRequest(+ String machineId,+ Map<String, dynamic> payload,+ ) async {+ // Rendering must never start an agent or contact the user's daemon.+ expect(payload['action'], 'list');+ return {'projects': <Map<String, dynamic>>[]};+ }+}++void main() {+ setUpAll(() async {+ await loadRealFonts();+ await (FontLoader(+ 'MaterialIcons',+ )..addFont(rootBundle.load('fonts/MaterialIcons-Regular.otf'))).load();+ await (FontLoader('packages/lucide_icons_flutter/Lucide')..addFont(+ rootBundle.load('packages/lucide_icons_flutter/assets/lucide.ttf'),+ ))+ .load();+ // Widget tests disable native font fallback. Supply symbol glyphs under+ // fallback names already used by the production theme, only in this test.+ final symbols = File('/System/Library/Fonts/Apple Symbols.ttf');+ if (symbols.existsSync()) {+ for (final family in ['Helvetica Neue', 'Noto Sans']) {+ await (FontLoader(+ family,+ )..addFont(symbols.readAsBytes().then(ByteData.sublistView))).load();+ }+ }+ });++ // Match the dark-only desktop shell, including its global color tokens.+ for (final size in [const Size(1280, 850), const Size(600, 700)]) {+ testWidgets('Orchestrator launcher fits $size', (tester) async {+ tester.view.devicePixelRatio = 1;+ tester.view.physicalSize = size;+ addTearDown(tester.view.reset);+ final app = _ReviewApp();+ final key = GlobalKey();+ addTearDown(() async {+ await tester.pumpWidget(const SizedBox());+ app.dispose();+ });+ await tester.pumpWidget(+ RepaintBoundary(+ key: key,+ child: MaterialApp(+ debugShowCheckedModeBanner: false,+ theme: grid.buildAppTheme(brightness: Brightness.dark),+ home: Scaffold(body: OrchestratorLauncher(notifier: app)),+ ),+ ),+ );+ await tester.pumpAndSettle();+ await tester.enterText(+ find.byKey(const ValueKey('orchestrator-prompt')),+ 'Create a small desk token and a perfectly fitted holder. Use Solid '+ 'for the token, then Workshop to build around the exact CAD output. '+ 'Verify the clearance and keep each version.',+ );+ await tester.pumpAndSettle();+ final start = find.byKey(const ValueKey('orchestrator-start'));+ await tester.ensureVisible(start);+ expect(start.hitTestable(), findsOneWidget);+ expect(tester.widget<FilledButton>(start).onPressed, isNotNull);+ expect(tester.takeException(), isNull);+ final output = Platform.environment['HARNESS_ORCHESTRATOR_CAPTURE_DIR'];+ if (output != null) {+ final boundary =+ key.currentContext!.findRenderObject()! as RenderRepaintBoundary;+ await tester.runAsync(() async {+ final image = await boundary.toImage(pixelRatio: 1);+ try {+ final bytes = await image.toByteData(+ format: ui.ImageByteFormat.png,+ );+ await Directory(output).create(recursive: true);+ await File('$output/launcher-dark-${size.width.toInt()}.png')+ .writeAsBytes(bytes!.buffer.asUint8List());+ } finally {+ image.dispose();+ }+ });+ }+ });+ }+}diff --git a/docs/plans/2026-09-18-orchestrator-morning-report.md b/docs/plans/2026-09-18-orchestrator-morning-report.mdindex 89d61ee78..c671c2300 100644--- a/docs/plans/2026-09-18-orchestrator-morning-report.md+++ b/docs/plans/2026-09-18-orchestrator-morning-report.md@@ -2,6 +2,8 @@Work is isolated on `codex/orchestrator-workspace` in `/Users/d/code/autonomous-harness-orchestrator`. The shared main checkout, installed app, running daemon, other agent sessions, and account configuration were not replaced.+Update: the [pre-PR verification round](2026-09-18-orchestrator-pr-verification.md) repeats the full suites, native checks, production builds, and a second successful live CAD project, and includes captures of the implemented launcher.+## What you can tryThis is built and pushed, **not installed over your running app/daemon**. The normal debug app is at `desktop/build/macos/Build/Products/Debug/Harness.app`. Full production use needs this branch's desktop **and matching CLI**; an older daemon will ask for a CLI update. A deliberate switch can happen when you are ready, without disturbing the other worktrees overnight.diff --git a/docs/plans/2026-09-18-orchestrator-pr-verification.md b/docs/plans/2026-09-18-orchestrator-pr-verification.mdnew file mode 100644index 000000000..a8330c0a1--- /dev/null+++ b/docs/plans/2026-09-18-orchestrator-pr-verification.md@@ -0,0 +1,54 @@+# Orchestrator: pre-PR verification++Repeated on September 18, 2026 in the isolated `codex/orchestrator-workspace` worktree. The production implementation tested is `5ecc8994`; the final checkpoint adds only rendering tests, screenshots, and this verification record. No production fixes were needed in this round. Current `origin/main` was an ancestor of the branch, with no merge conflicts.++## Fresh results++| Check | Result |+| --- | --- |+| Full CLI suite, serial with 30-second per-test deadline | **3,011 passed, 52 skipped, 0 failed** |+| Full desktop suite, concurrency 2 | **1,955 passed, 3 skipped, 0 failed** |+| New launcher rendering checks, run separately | **2 passed**, 1280×850 and 600×700 |+| CLI orchestrator coverage on Node 26.7.0 and managed Node 22.23.2 | **80 tests passed on each**; 430/430 lines, 568/568 statements, 313/313 branches, 88/88 functions |+| Desktop orchestrator coverage | **20 tests passed**; 529/529 lines in the three feature files |+| TypeScript typecheck and targeted Flutter analysis | Passed; no issues |+| CLI development build and release-style bundle | Both passed |+| Bundled CLI under managed Node 22.23.2 | Version, actual loopback catalog RPC, and empty project list passed against a new isolated peer; no agents started |+| Deterministic desktop → daemon → tmux → real viewers E2E | Passed in 14 seconds, including pinned handoffs, reconnect and cancellation isolation |+| Native three-WKWebView integration | Passed, including page DOM inspection and director draft/focus retention |+| Native shortcuts/titlebar | **101 keymap + 464 titlebar checks passed**, including nine focused-viewer shortcut checks |+| Normal-entrypoint macOS debug build | Passed after the integration-test build |+| Second account-backed Solid → Workshop project | **Completed in 479 seconds**; all seven external checks passed |+| Independent CAD reimport | **12/12 passed** for both the original saved artifacts and the second live run |++Host: macOS 26.6.2, x86_64; Flutter 3.47.2 / Dart 3.13.2. The complete CLI suite used Node 26.7.0. The feature suite, typecheck, bundled build, and bundled transport smoke check also ran under the installed production runtime, Node 22.23.2. No Linux or Windows run is claimed.++The 55 skips remain skips. Coverage is scoped to the new orchestrator modules, not the whole repository or arbitrary model behavior. The two screenshot tests were added after the full desktop run started and were separately run and analyzed. Repository CI is intentionally manual; opening the PR does not itself run the GitHub workflow.++## Second real project++Run `b3ecdeec484931b6964a51e872747cb6` used a Codex director and the installed Solid and Autonomous Workshop harnesses. The workers generated new geometry rather than replaying the first run's files. Workshop consumed the exact pinned upstream token.++- Token: 24 mm diameter, 5 mm thick, 4 mm hole offset 6 mm; volume 2199.114857512874 mm³.+- Holder: 32 mm outside diameter, 24.6 mm recess, 2 mm base, 5 mm recess depth.+- Independently reimported assembly: two valid solids, 0.3 mm radial clearance, zero intersection volume, and zero upstream-token symmetric difference after undoing its 2 mm placement.+- Token STEP SHA-256: `462bb1d7554dac272d7daab8d36c080ded5e6d2f93de28e2b1b69f52a2f7acee`.+- Assembly STEP SHA-256: `a934b3bca90da361b3830f47aee10821bd8477acc469af1a7ebc1f1dd869d549`.++Independent validation executes the checked-in verifier, not worker-generated Python. The live harness uses the documented bounded headless adapter rather than the production interactive engine TUI. Its own paid processes, viewers, and tmux server stopped afterward. Existing app/daemon sessions were not replaced. Physical fit and manufacturing readiness remain unverified.++## Implemented launcher, not a mockup++These are programmatic captures of the production Flutter launcher with a read-only local fixture. They do not start agents, read real project history, or claim to show a running CAD viewer. Fonts and icons are loaded explicitly because headless widget tests disable native font fallback. The actual macOS viewers were checked independently by the native integration test above.++++[Narrow launcher capture](../../output/orchestrator-review/launcher-dark-600.png).++To regenerate from `desktop/`, set `HARNESS_ORCHESTRATOR_CAPTURE_DIR` to an output directory and run `flutter test --no-pub test/orchestrator_review_render_test.dart`. The test mirrors the app's supported dark-only shell; it does not invent a light-mode product variant.++## Review and remaining boundaries++Use both this branch's desktop and matching CLI to try ⌘P; ⌘B remains unchanged. The debug app and CLI bundle were built, not installed over the running versions. The [morning report](2026-09-18-orchestrator-morning-report.md) contains the architecture, initial live evidence, reproduction commands, and recovery/storage limitations. The [combination cookbook](../orchestrator-combinations.md) distinguishes proven combinations from proposed workflows.++Claude/Blender and Remotion were not revalidated in this round. The earlier Claude run hit expired OAuth credentials, and Remotion was not installed in the validated inventory. Unknown launches, vanished workers, local-only orchestration, finite history/state limits, and same-OS-user artifact isolation retain the documented boundaries; passing tests do not remove those limitations.diff --git a/output/orchestrator-review/launcher-dark-1280.png b/output/orchestrator-review/launcher-dark-1280.pngnew file mode 100644index 000000000..a54658289Binary files /dev/null and b/output/orchestrator-review/launcher-dark-1280.png differdiff --git a/output/orchestrator-review/launcher-dark-600.png b/output/orchestrator-review/launcher-dark-600.pngnew file mode 100644index 000000000..574b2d088Binary files /dev/null and b/output/orchestrator-review/launcher-dark-600.png differ