> For the complete documentation index, see [llms.txt](https://faction-os.gitbook.io/faction-os-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://faction-os.gitbook.io/faction-os-docs/.spec_system/archive/sessions/phase03-session05-web-orchestration-cockpit-controls/validation.md).

# Validation Report

**Session ID**: `phase03-session05-web-orchestration-cockpit-controls` **Package**: Cross-cutting (`apps/web`, `apps/server`, `packages/protocol`) **Validated**: 2026-05-29 **Result**: PASS

***

## Scope

This validation covers the session deliverables for local web orchestration controls, including the web panel, browser state helpers, server hydration frames, and the session docs/artifacts.

**Files reviewed**

* `apps/server/src/server.ts`
* `apps/server/src/ws/handlers.ts`
* `apps/server/tests/websocket.test.ts`
* `apps/web/src/App.tsx`
* `apps/web/src/components/OrchestrationPanel.tsx`
* `apps/web/src/lib/orchestrationApi.ts`
* `apps/web/src/lib/orchestrationUi.ts`
* `apps/web/src/lib/cockpitShell.ts`
* `apps/web/src/store/useGameStore.ts`
* `apps/web/src/store/useWsClient.ts`
* `apps/web/tests/CockpitShell.test.tsx`
* `apps/web/tests/OrchestrationPanel.test.tsx`
* `apps/web/tests/orchestrationStore.test.ts`
* `apps/web/tests/orchestrationUi.test.ts`
* `apps/web/tests/wsClientPrivacy.test.ts`
* `.spec_system/specs/phase03-session05-web-orchestration-cockpit-controls/implementation-notes.md`
* `.spec_system/specs/phase03-session05-web-orchestration-cockpit-controls/security-compliance.md`

***

## Validation Summary

* All 23 session tasks are marked complete.
* Session deliverables exist and are non-empty.
* Final code paths are ASCII-only with LF endings.
* Focused server and web typechecks pass.
* Focused Vitest coverage passes.
* Biome lint and `git diff --check` pass.
* Desktop and mobile Playwright smoke passes on the local app.

***

## Notes

* `apps/web/src/lib/orchestrationApi.ts` was adjusted to use browser-safe bound callables and the Vite `/api` proxy path so the orchestration panel can hydrate without page errors or CORS failures during browser smoke.
* The browser smoke initially exposed a runtime regression and a dev-origin fetch issue; both were corrected before final validation.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://faction-os.gitbook.io/faction-os-docs/.spec_system/archive/sessions/phase03-session05-web-orchestration-cockpit-controls/validation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
