oh-my-llmwikimode 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,6 +10,16 @@
10
10
 
11
11
  The user starts with Chat-first capture: saying what they want so Eos captures that intent as a local review-required artifact, then makes it visible in `Side Review`. Chat does not execute shell commands, providers, agents, wiki promotion, git actions, or background work by itself.
12
12
 
13
+ EOS Workspace uses the **Local AI Operating Workbench** shell:
14
+
15
+ - left app rail for Home, Chat, Side Review, and future evidence/status surfaces.
16
+ - top workspace tabs for keeping multiple work surfaces open while the user compares context.
17
+ - main work area for the active capture, review, or evidence surface.
18
+ - right inspector for artifact metadata, source paths, evidence, and prepared decision details.
19
+ - bottom status strip for Local Only, Review Required, Not Applied, daemon/token state, and harness readiness.
20
+
21
+ The shell is web-service first. It is not a VS Code extension app, and it does not require a VSIX runtime.
22
+
13
23
  ## 2. Primary promise
14
24
 
15
25
  Use this product promise when shaping UI copy:
@@ -20,12 +30,16 @@ Tell Eos what you want to prepare. Eos captures it for local review before anyth
20
30
 
21
31
  ## 3. Required regions
22
32
 
23
- 1. **Header rail** - `EOS Workspace`, short local workspace status, and links to `Eos Chat` and `Side Review`.
24
- 2. **Safety strip** - always-visible copy: `Local review workspace. Nothing is applied automatically.`
25
- 3. **Welcome state** - explains chat-first workflow without starter chips.
26
- 4. **Status cards** - wiki status, review queue count, and harness readiness in compact cards.
27
- 5. **Message list** - local acknowledgements only; no execution transcript unless a future approved execution flow exists.
28
- 6. **Composer** - bottom input with a short placeholder and explicit send button.
33
+ 1. **Left app rail** - persistent navigation for `EOS Workspace`, `Eos Chat`, and `Side Review`.
34
+ 2. **Top workspace tabs** - browser-like open surfaces for Home, Chat, Side Review, and future evidence panels.
35
+ 3. **Header rail** - `EOS Workspace`, short local workspace status, and links to `Eos Chat` and `Side Review`.
36
+ 4. **Safety strip** - always-visible copy: `Local review workspace. Nothing is applied automatically.`
37
+ 5. **Welcome state** - explains chat-first workflow without starter chips.
38
+ 6. **Status cards** - wiki status, review queue count, and harness readiness in compact cards.
39
+ 7. **Main work area** - local acknowledgements and the active task surface only; no execution transcript unless a future approved execution flow exists.
40
+ 8. **Right inspector** - optional artifact, evidence, and prepared decision detail surface.
41
+ 9. **Composer** - bottom input with a short placeholder and explicit send button.
42
+ 10. **Bottom status strip** - local-only, review-required, Not Applied, and route/auth status.
29
43
 
30
44
  ## 4. Empty state copy
31
45
 
@@ -83,8 +97,9 @@ Do not use these labels in the Eos Chat MVP:
83
97
 
84
98
  - `GET /chat/` serves the Eos Chat local UI.
85
99
  - `GET /chat` redirects to `/chat/`.
86
- - `GET /workspace/` serves the canonical EOS Workspace Home.
100
+ - `GET /workspace/` serves the canonical operating workbench and EOS Workspace Home.
87
101
  - `GET /workspace` redirects to `/workspace/`.
102
+ - `GET /side-review/` serves the review desk for local artifacts, evidence, and prepare-only decision notes.
88
103
  - `GET /api/home` remains a read-only home data snapshot.
89
104
  - `POST /api/chat/requests` creates a review-required local artifact only.
90
105
 
@@ -98,7 +113,9 @@ Do not use these labels in the Eos Chat MVP:
98
113
  - Review-required.
99
114
  - No hidden execution.
100
115
  - No source wiki mutation.
101
- - No hosted sync.
116
+ - Hosted sync is deferred.
117
+ - Production Discord control is deferred.
118
+ - Marketplace, account, payment, publish, push, and package split work are deferred.
102
119
  - No auto-promotion, auto-merge, auto-delete, or auto-push.
103
120
  - Browser UI uses self-only CSP, local assets, and text-node rendering.
104
121
 
@@ -134,3 +151,18 @@ Required dashboard groups:
134
151
  - `System Health` - explains local load errors or confirms local review data is readable.
135
152
 
136
153
  The Chat home panel may show compact `Next Safe Actions` and `Recent Requests`, but these are navigation/review aids only. They must not become starter chips, execution shortcuts, provider dispatch, or hidden agent controls.
154
+
155
+ ## 13. Workspace completion snapshot - 2026-06-01
156
+
157
+ `GET /api/home` now includes an `operating_snapshot` read model for the browser workbench.
158
+
159
+ Stable fields:
160
+
161
+ - `operating_snapshot.version: 2`
162
+ - `operating_snapshot.shell.motif: Local AI Operating Workbench`
163
+ - `operating_snapshot.shell.regions`: `left_app_rail`, `top_workspace_tabs`, `main_work_area`, `right_inspector`, `bottom_status_strip`
164
+ - `operating_snapshot.route_roles`: `/workspace/` as canonical operating workbench, `/chat/` as compatibility inbox, `/side-review/` as review desk
165
+ - `operating_snapshot.artifact_lifecycle`: capture request -> local artifact -> Side Review card -> prepare-only decision artifact -> future explicit approval flow
166
+ - `review_queue.side_review_decision_recent`: latest prepared decision artifacts for the right inspector/Home summary
167
+
168
+ The snapshot is a read model only. It must not become an execution queue, approval queue, hosted sync contract, or source wiki mutation path.
@@ -10,6 +10,12 @@ EOS Workspace is the browser-first Home. Chat is the inbox. Side Review is the r
10
10
 
11
11
  The user writes a request through Chat-first capture on `/workspace/` or the compatibility `/chat/` surface. Eos files it as a local review item, adds a deterministic intent hint, and places it on the `Side Review` desk. Nothing is executed or applied just because the request was captured.
12
12
 
13
+ The UI motif is a Local AI Operating Workbench:
14
+
15
+ - `/workspace/` is the canonical operating workbench with the left app rail, top workspace tabs, main work area, right inspector, and bottom status strip.
16
+ - `/chat/` is the compatibility inbox for focused capture.
17
+ - `/side-review/` is the review desk for review-required artifacts, evidence, prepared decisions, and completion reports.
18
+
13
19
  ## 2. Operating loop
14
20
 
15
21
  ```text
@@ -106,3 +112,17 @@ This slice must not add:
106
112
  ## 9. Workspace Home coordination
107
113
 
108
114
  `/workspace/` is the canonical browser Home for this slice. It exposes `EOS Workspace`, `Chat-first capture`, `Capture for Review`, `Open Chat`, and `Open Side Review` while keeping every output local-only, review-required, and Not Applied.
115
+
116
+ The review-required artifact lifecycle remains capture request -> local artifact -> Side Review card -> prepare-only decision artifact -> future explicit approval flow. Hosted sync and production Discord control are deferred; marketplace, package split, publish, push, hidden execution, and source wiki mutation stay out of scope.
117
+
118
+ ## 10. Completion proof - 2026-06-01
119
+
120
+ The operating loop is now verified as a browser-first product slice:
121
+
122
+ - A request can be captured through the local HTTP/browser flow and surfaced as Home queue pressure.
123
+ - The captured request appears in Side Review with evidence and safe prepare-only actions.
124
+ - Preparing a decision writes `.system/eos/side-review/decisions/{id}.json` and Home shows it as a recent prepared decision.
125
+ - Source markdown checksums remain unchanged; only `.system/eos` review artifacts are written.
126
+ - Chrome desktop/mobile evidence confirms the workspace shell and route-specific surfaces render as nonblank local pages.
127
+
128
+ Completion evidence lives under `.omo/ulw-loop/evidence/eos-workspace-completion-20260601/`.
@@ -22,6 +22,22 @@ Eos is **not** a cloud assistant surface, marketing landing page, autonomous exe
22
22
 
23
23
  The interface should feel like a trustworthy local cockpit where conversation opens separate work panels, not a generic chatbot SaaS clone or button-heavy dashboard.
24
24
 
25
+ **Local AI Operating Workbench** is the browser-service shell motif for EOS Workspace. It borrows the familiar shape of operating tools without turning EOS into a VS Code extension:
26
+
27
+ - left app rail: persistent navigation for Workspace Home, Chat, Side Review, future evidence views, and status surfaces.
28
+ - top workspace tabs: multiple open work surfaces can be kept visible like browser or IDE tabs.
29
+ - main work area: the active surface owns the center of the screen and carries the primary task.
30
+ - right inspector: optional evidence, artifact metadata, source path, decision detail, and review context.
31
+ - bottom status strip: local-only state, review-required mode, Not Applied state, harness readiness, and route/auth status.
32
+
33
+ Route roles stay explicit:
34
+
35
+ - `/workspace/` is the canonical operating workbench and default browser Home.
36
+ - `/chat/` is the compatibility inbox and focused capture surface.
37
+ - `/side-review/` is the review desk for artifacts, evidence, prepared decisions, and completion reports.
38
+
39
+ The review-required artifact lifecycle is: capture request -> local artifact -> Side Review card -> prepare-only decision artifact -> future explicit approval flow. Hosted sync, production Discord control, marketplace work, package split, publish, push, real execution, and automatic mutation are deferred until separate specs authorize them.
40
+
25
41
  Compatibility note: the VS Code extension design gate still tracks the earlier `Dawn Control Room` metaphor and the Korean chat prompt `무엇을 맡길까요?`. Treat both as compatible markers for the same calm, chat-first local command center direction, not as permission to add a dashboard-first or execution-first surface.
26
42
 
27
43
  ## Primary Surfaces for This Slice
@@ -298,3 +314,28 @@ Verification anchors:
298
314
  - `test/eos/home-data.test.js`
299
315
  - `test/eos/side-review-routes.test.js`
300
316
  - `test/eos/workspace-boundary-side-review-view-model.test.js`
317
+
318
+ ## Implemented EOS Workspace Completion Slice - 2026-06-01
319
+
320
+ The EOS Workspace completion slice turns `/workspace/` into the canonical browser-first operating workbench.
321
+
322
+ What changed:
323
+
324
+ - `GET /api/home` now exposes operating snapshot v2 with the `Local AI Operating Workbench` motif, route roles, artifact lifecycle, recent chat requests, and recent prepared Side Review decisions.
325
+ - `/workspace/` now renders the shell regions directly: left app rail, top workspace tabs, main work area, right inspector, and bottom status strip.
326
+ - Chat capture remains available from `/workspace/` and `/chat/`; both routes create review-required local artifacts only.
327
+ - Prepared Side Review decisions are visible from Home/Workspace as local review-required artifacts.
328
+ - Desktop and mobile Chrome evidence is captured under `.omo/ulw-loop/evidence/eos-workspace-completion-20260601/`.
329
+
330
+ Boundary:
331
+
332
+ - The slice remains web-service first, not a VS Code extension.
333
+ - It does not add hosted sync, production Discord control, marketplace/account/payment features, package splitting, npm publish, auto-apply, auto-promotion, auto-merge/delete, auto-push, hidden execution, or source wiki mutation.
334
+
335
+ Verification anchors:
336
+
337
+ - `test/eos/home-data.test.js`
338
+ - `test/eos/workspace-home-routes.test.js`
339
+ - `test/eos/uiux-product-shape.test.js`
340
+ - `npm run test:eos`
341
+ - `npm run verify:eos-workspace-completion`
@@ -8,6 +8,8 @@
8
8
 
9
9
  `Side Review` is the companion window for looking at structured material while `EOS Workspace` at `/workspace/` remains the browser-first Home and `Eos Chat` remains the compatibility capture surface.
10
10
 
11
+ In the Local AI Operating Workbench shell, `/side-review/` is the review desk. It can be opened from the left app rail or held as a top workspace tab while the main work area stays on Chat or Home. Its cards may feed the right inspector with artifact paths, evidence, and prepared decision detail, while the bottom status strip continues to show Local Only, Review Required, and Not Applied state.
12
+
11
13
  It answers five questions:
12
14
 
13
15
  1. What is waiting?
@@ -356,3 +358,21 @@ The UI and API may summarize these proof fields, but must not convert them into
356
358
  ### Future boundary
357
359
 
358
360
  Real approval execution, source wiki mutation, promotion, merge, delete, push, release, npm publish, hosted sync, and Discord runtime control require a separate explicit product spec and are not part of this MVP.
361
+
362
+ ## 13. Workspace completion integration - 2026-06-01
363
+
364
+ `Side Review` is now part of the EOS operating workbench loop rather than a standalone browser surface.
365
+
366
+ Integration contract:
367
+
368
+ - `/workspace/` links to Side Review as the review desk in the left app rail and top workspace tabs.
369
+ - Prepared decision artifacts remain in `.system/eos/side-review/decisions/` and are summarized by Home through `review_queue.side_review_decision_recent`.
370
+ - The Workspace right inspector may summarize recent prepared decisions, but it must not expose execution, approval, promotion, merge, delete, push, or source mutation controls.
371
+ - The decision artifact lifecycle remains prepare-only until a future explicit approval flow is specified and separately verified.
372
+
373
+ Verification anchors:
374
+
375
+ - `test/eos/home-data.test.js`
376
+ - `test/eos/side-review-routes.test.js`
377
+ - `test/eos/workspace-home-routes.test.js`
378
+ - `test/eos/uiux-product-shape.test.js`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-llmwikimode",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "LLM Wiki plugin for OpenCode ??auto-memory, retrieval, and knowledge promotion",
5
5
  "type": "module",
6
6
  "main": "./src/server.js",
@@ -29,6 +29,7 @@
29
29
  "test:security": "node --test test/security.test.js",
30
30
  "test:eos": "node --test test/eos/**/*.test.js",
31
31
  "verify:eos-workspace-product": "npm run test:eos && npm run verify:eos-boundary-policy && npm run verify:eos-boundary && npm run eos:a11y-snapshot -- --json",
32
+ "verify:eos-workspace-completion": "node scripts/verify-eos-workspace-completion.js",
32
33
  "verify:package": "node test/verify-package.test.js",
33
34
  "verify:docs": "node test/verify-docs.test.js",
34
35
  "verify:side-effects": "node scripts/side-effect-audit.js",
@@ -70,7 +70,7 @@ body {
70
70
  color: var(--eos-accent);
71
71
  font-size: 0.78rem;
72
72
  font-weight: 700;
73
- letter-spacing: 0.08em;
73
+ letter-spacing: 0;
74
74
  text-transform: uppercase;
75
75
  }
76
76
 
package/src/eos/home.js CHANGED
@@ -11,6 +11,27 @@ import {
11
11
  } from "../llmwiki/eos-adapter.js";
12
12
  import { classifyChatIntent } from "./chat/intent-hints.js";
13
13
 
14
+ const OPERATING_SNAPSHOT_VERSION = 2;
15
+ const WORKSPACE_SHELL_REGIONS = Object.freeze([
16
+ Object.freeze({ id: "left_app_rail", label: "Left app rail", role: "persistent_navigation" }),
17
+ Object.freeze({ id: "top_workspace_tabs", label: "Top workspace tabs", role: "workspace_context" }),
18
+ Object.freeze({ id: "main_work_area", label: "Main work area", role: "primary_task_surface" }),
19
+ Object.freeze({ id: "right_inspector", label: "Right inspector", role: "evidence_and_detail" }),
20
+ Object.freeze({ id: "bottom_status_strip", label: "Bottom status strip", role: "local_safety_status" }),
21
+ ]);
22
+ const ROUTE_ROLES = Object.freeze({
23
+ workspace: "canonical_operating_workbench",
24
+ chat: "compatibility_inbox",
25
+ side_review: "review_desk",
26
+ });
27
+ const ARTIFACT_LIFECYCLE = Object.freeze([
28
+ "capture_request",
29
+ "local_artifact",
30
+ "side_review_card",
31
+ "prepare_only_decision_artifact",
32
+ "future_explicit_approval_flow",
33
+ ]);
34
+
14
35
  function readJson(filePath, fallback = {}) {
15
36
  try {
16
37
  return JSON.parse(fs.readFileSync(filePath, "utf-8"));
@@ -44,6 +65,8 @@ function buildReviewQueue(wikiRoot) {
44
65
  const graphInsightCount = safeCount(graphReasoning.summary?.insight_count ?? graphReasoning.insights?.length);
45
66
  const chatRequests = summarizeChatRequestsForHome(wikiRoot);
46
67
  const chatRequestCount = chatRequests.total;
68
+ const sideReviewDecisions = summarizeSideReviewDecisionsForHome(wikiRoot);
69
+ const sideReviewDecisionCount = sideReviewDecisions.total;
47
70
 
48
71
  return {
49
72
  curator_queue_count: curatorQueueCount,
@@ -54,7 +77,15 @@ function buildReviewQueue(wikiRoot) {
54
77
  chat_request_intent_counts: chatRequests.intent_counts,
55
78
  chat_request_recent: chatRequests.recent,
56
79
  chat_request_load_errors: chatRequests.load_errors,
57
- total_review_required: curatorQueueCount + curatorProposalCount + graphQueueCardCount + graphInsightCount + chatRequestCount,
80
+ side_review_decision_count: sideReviewDecisionCount,
81
+ side_review_decision_recent: sideReviewDecisions.recent,
82
+ side_review_decision_load_errors: sideReviewDecisions.load_errors,
83
+ total_review_required: curatorQueueCount
84
+ + curatorProposalCount
85
+ + graphQueueCardCount
86
+ + graphInsightCount
87
+ + chatRequestCount
88
+ + sideReviewDecisionCount,
58
89
  };
59
90
  }
60
91
 
@@ -148,6 +179,13 @@ function buildWorkspaceHome() {
148
179
  return {
149
180
  title: "EOS Workspace",
150
181
  route: "/workspace/",
182
+ operating_snapshot_version: OPERATING_SNAPSHOT_VERSION,
183
+ shell: {
184
+ motif: "Local AI Operating Workbench",
185
+ regions: WORKSPACE_SHELL_REGIONS,
186
+ },
187
+ route_roles: ROUTE_ROLES,
188
+ artifact_lifecycle: ARTIFACT_LIFECYCLE,
151
189
  primary_surface: "chat_capture",
152
190
  companion_surface: "side_review",
153
191
  capture_endpoint: "/api/chat/requests",
@@ -184,6 +222,48 @@ function buildWorkspaceHome() {
184
222
  };
185
223
  }
186
224
 
225
+ function summarizeSideReviewDecisionsForHome(wikiRoot) {
226
+ const recent = [];
227
+ const loadErrors = [];
228
+ let entries;
229
+ const decisionsDir = path.join(wikiRoot, ".system", "eos", "side-review", "decisions");
230
+ try {
231
+ entries = fs.readdirSync(decisionsDir, { withFileTypes: true });
232
+ } catch (error) {
233
+ if (error?.code === "ENOENT") {
234
+ return { total: 0, recent: [], load_errors: [] };
235
+ }
236
+ throw error;
237
+ }
238
+
239
+ for (const entry of entries) {
240
+ if (!entry.isFile() || !entry.name.endsWith(".json")) continue;
241
+ try {
242
+ const filePath = path.join(decisionsDir, entry.name);
243
+ const artifact = JSON.parse(fs.readFileSync(filePath, "utf-8"));
244
+ if (artifact?.type !== "eos_side_review_decision" || artifact?.status !== "review_required") continue;
245
+ recent.push({
246
+ id: artifact.id,
247
+ card_id: artifact.card_id,
248
+ decision: artifact.decision,
249
+ decision_label: artifact.decision_label || artifact.decision || "review decision",
250
+ status: artifact.status,
251
+ artifact_path: artifact.artifact_path,
252
+ source_artifact_path: artifact.source_artifact_path || null,
253
+ source_path: artifact.source_path || null,
254
+ created_at: artifact.created_at || null,
255
+ });
256
+ } catch (error) {
257
+ loadErrors.push({
258
+ path: path.posix.join(".system", "eos", "side-review", "decisions", entry.name),
259
+ error: error instanceof Error ? error.message : String(error),
260
+ });
261
+ }
262
+ }
263
+ recent.sort((left, right) => String(right.created_at || "").localeCompare(String(left.created_at || "")) || String(left.id).localeCompare(String(right.id)));
264
+ return { total: recent.length, recent: recent.slice(0, 5), load_errors: loadErrors };
265
+ }
266
+
187
267
  function summarizeChatRequestsForHome(wikiRoot) {
188
268
  const counts = {
189
269
  knowledge_request: 0,
@@ -323,6 +403,7 @@ export function buildEosHomeData(wikiRoot, config = {}, options = {}) {
323
403
  const reviewQueue = buildReviewQueue(wikiRoot);
324
404
  const librarian = buildLibrarianState(wikiRoot, config, options);
325
405
  const nextSafeActions = buildNextSafeActions(reviewQueue, librarian);
406
+ const workspaceHome = buildWorkspaceHome();
326
407
 
327
408
  return {
328
409
  version: 1,
@@ -336,7 +417,20 @@ export function buildEosHomeData(wikiRoot, config = {}, options = {}) {
336
417
  recent_entries: Array.isArray(stats.recent_entries) ? stats.recent_entries.slice(0, 8) : [],
337
418
  },
338
419
  review_queue: reviewQueue,
339
- workspace_home: buildWorkspaceHome(),
420
+ workspace_home: workspaceHome,
421
+ operating_snapshot: {
422
+ version: OPERATING_SNAPSHOT_VERSION,
423
+ shell: workspaceHome.shell,
424
+ route_roles: workspaceHome.route_roles,
425
+ artifact_lifecycle: workspaceHome.artifact_lifecycle,
426
+ recent_requests: reviewQueue.chat_request_recent,
427
+ recent_decisions: reviewQueue.side_review_decision_recent,
428
+ safety: {
429
+ local_only: true,
430
+ review_required: true,
431
+ not_applied: true,
432
+ },
433
+ },
340
434
  librarian,
341
435
  command_center: buildCommandCenter(reviewQueue, librarian, nextSafeActions),
342
436
  search: {
@@ -93,7 +93,7 @@ textarea {
93
93
  color: var(--eos-safe);
94
94
  font-size: 0.78rem;
95
95
  font-weight: 800;
96
- letter-spacing: 0.16em;
96
+ letter-spacing: 0;
97
97
  text-transform: uppercase;
98
98
  }
99
99
 
@@ -106,7 +106,7 @@ h1 {
106
106
  margin-bottom: 16px;
107
107
  font-size: clamp(2.4rem, 7vw, 5.4rem);
108
108
  line-height: 0.92;
109
- letter-spacing: -0.06em;
109
+ letter-spacing: 0;
110
110
  }
111
111
 
112
112
  .lede {
@@ -356,7 +356,7 @@ code {
356
356
  color: var(--eos-muted);
357
357
  font-size: 0.78rem;
358
358
  font-weight: 800;
359
- letter-spacing: 0.08em;
359
+ letter-spacing: 0;
360
360
  text-transform: uppercase;
361
361
  }
362
362
 
@@ -462,7 +462,7 @@ textarea {
462
462
  h1 {
463
463
  font-size: clamp(2rem, 11vw, 2.8rem);
464
464
  line-height: 1.02;
465
- letter-spacing: -0.045em;
465
+ letter-spacing: 0;
466
466
  }
467
467
 
468
468
  .lede {
@@ -13,6 +13,7 @@ const elements = {
13
13
  reviewCount: document.querySelector("#review-count"),
14
14
  intentSummary: document.querySelector("#intent-summary"),
15
15
  healthSummary: document.querySelector("#health-summary"),
16
+ decisionSummary: document.querySelector("#decision-summary"),
16
17
  };
17
18
 
18
19
  function setText(node, value) {
@@ -54,6 +55,14 @@ function formatIntentSummary(counts = {}) {
54
55
  return visible.map(([label, count]) => `${label} ${count}`).join(" / ");
55
56
  }
56
57
 
58
+ function formatDecisionSummary(decisions = []) {
59
+ if (!Array.isArray(decisions) || decisions.length === 0) return "No prepared decisions yet";
60
+ const first = decisions[0];
61
+ const decision = first.decision_label || first.decision || "review decision";
62
+ const suffix = decisions.length === 1 ? "decision" : "decisions";
63
+ return `${decisions.length} prepared ${suffix}; latest is ${decision}.`;
64
+ }
65
+
57
66
  function appendCaptureResult(result) {
58
67
  if (!elements.resultList) return;
59
68
  if (elements.resultEmpty) elements.resultEmpty.hidden = true;
@@ -96,11 +105,13 @@ async function loadHome() {
96
105
  setText(elements.reviewCount, `${queue.total_review_required ?? 0} waiting`);
97
106
  setText(elements.intentSummary, formatIntentSummary(queue.chat_request_intent_counts));
98
107
  setText(elements.healthSummary, health);
108
+ setText(elements.decisionSummary, formatDecisionSummary(queue.side_review_decision_recent));
99
109
  } catch {
100
110
  setText(elements.wikiCount, "Unavailable");
101
111
  setText(elements.reviewCount, "Check local server");
102
112
  setText(elements.intentSummary, "Unavailable");
103
113
  setText(elements.healthSummary, "Home data is unavailable. Nothing was applied.");
114
+ setText(elements.decisionSummary, "Prepared decisions are unavailable.");
104
115
  } finally {
105
116
  setLoadingHome(false);
106
117
  }
@@ -8,57 +8,88 @@
8
8
  </head>
9
9
  <body>
10
10
  <a class="skip-link" href="#workspace-content">Skip to EOS Workspace content</a>
11
- <main id="workspace-content" class="workspace-shell" aria-labelledby="workspace-title">
12
- <header class="top-row">
13
- <div>
14
- <p class="eyebrow">Chat-first capture</p>
15
- <h1 id="workspace-title">EOS Workspace</h1>
16
- <p class="subtitle">Capture requests to local review artifacts before any source updates.</p>
17
- </div>
18
- <nav aria-label="Workspace navigation">
19
- <a class="nav-link" href="/chat/">Open Chat</a>
20
- <a class="nav-link" href="/side-review/">Open Side Review</a>
11
+ <div class="operating-workbench">
12
+ <aside class="app-rail" aria-label="Left app rail">
13
+ <p class="rail-title">Left app rail</p>
14
+ <a class="rail-link is-active" href="/workspace/" aria-current="page">Workspace</a>
15
+ <a class="rail-link" href="/chat/">Chat</a>
16
+ <a class="rail-link" href="/side-review/">Side Review</a>
17
+ </aside>
18
+
19
+ <div class="workspace-frame">
20
+ <nav class="workspace-tabs" aria-label="Top workspace tabs">
21
+ <span class="tab is-active">Top workspace tabs</span>
22
+ <a class="tab" href="/chat/">Chat Capture</a>
23
+ <a class="tab" href="/side-review/">Side Review</a>
21
24
  </nav>
22
- </header>
23
25
 
24
- <section class="safety-strip" aria-label="Safety contract">
25
- <span>Local Only</span>
26
- <span>Review Required</span>
27
- <span>Not Applied</span>
28
- <strong>Local artifact capture only. Nothing was applied.</strong>
29
- </section>
26
+ <main id="workspace-content" class="workspace-shell main-work-area" aria-labelledby="workspace-title">
27
+ <header class="top-row">
28
+ <div>
29
+ <p class="eyebrow">Chat-first capture / Main work area</p>
30
+ <h1 id="workspace-title">EOS Workspace</h1>
31
+ <p class="subtitle">Capture requests to local review artifacts before any source updates.</p>
32
+ </div>
33
+ <nav aria-label="Workspace navigation">
34
+ <a class="nav-link" href="/chat/">Open Chat</a>
35
+ <a class="nav-link" href="/side-review/">Open Side Review</a>
36
+ </nav>
37
+ </header>
38
+
39
+ <section class="safety-strip" aria-label="Safety contract">
40
+ <span>Local Only</span>
41
+ <span>Review Required</span>
42
+ <span>Not Applied</span>
43
+ <strong>Local artifact capture only. Nothing was applied.</strong>
44
+ </section>
45
+
46
+ <section class="status-grid" id="status-grid" aria-busy="true" aria-label="Workspace status">
47
+ <article>
48
+ <p class="label">Wiki Entries</p>
49
+ <strong id="wiki-count">Loading...</strong>
50
+ </article>
51
+ <article>
52
+ <p class="label">Review Queue</p>
53
+ <strong id="review-count">Loading...</strong>
54
+ </article>
55
+ <article>
56
+ <p class="label">Intent Summary</p>
57
+ <strong id="intent-summary">Loading...</strong>
58
+ </article>
59
+ <article>
60
+ <p class="label">Local Health</p>
61
+ <strong id="health-summary">Loading...</strong>
62
+ </article>
63
+ </section>
64
+
65
+ <form id="capture-form" class="capture-form" aria-label="Capture request for local review">
66
+ <label for="request-input">Request</label>
67
+ <textarea id="request-input" name="message" rows="4" maxlength="8000" required placeholder="Tell EOS what to prepare for review."></textarea>
68
+ <button type="submit">Capture for Review</button>
69
+ <p class="help-text">Captured requests remain review-required until you inspect them in Side Review.</p>
70
+ </form>
30
71
 
31
- <section class="status-grid" id="status-grid" aria-busy="true" aria-label="Workspace status">
32
- <article>
33
- <p class="label">Wiki Entries</p>
34
- <strong id="wiki-count">Loading...</strong>
35
- </article>
36
- <article>
37
- <p class="label">Review Queue</p>
38
- <strong id="review-count">Loading...</strong>
39
- </article>
40
- <article>
41
- <p class="label">Intent Summary</p>
42
- <strong id="intent-summary">Loading...</strong>
43
- </article>
44
- <article>
45
- <p class="label">Local Health</p>
46
- <strong id="health-summary">Loading...</strong>
47
- </article>
48
- </section>
72
+ <section class="result-panel" aria-live="polite" aria-label="Capture results">
73
+ <p id="result-empty" class="muted">No captured requests in this browser session.</p>
74
+ <ol id="result-list" class="result-list"></ol>
75
+ </section>
76
+ </main>
49
77
 
50
- <form id="capture-form" class="capture-form" aria-label="Capture request for local review">
51
- <label for="request-input">Request</label>
52
- <textarea id="request-input" name="message" rows="4" maxlength="8000" required placeholder="Tell EOS what to prepare for review."></textarea>
53
- <button type="submit">Capture for Review</button>
54
- <p class="help-text">Captured requests remain review-required until you inspect them in Side Review.</p>
55
- </form>
78
+ <aside class="right-inspector" aria-label="Right inspector">
79
+ <p class="eyebrow">Right inspector</p>
80
+ <h2>Prepared Decisions</h2>
81
+ <p id="decision-summary">No prepared decisions yet.</p>
82
+ <p class="muted">Decision artifacts stay local and review-required until an explicit approval flow exists.</p>
83
+ </aside>
56
84
 
57
- <section class="result-panel" aria-live="polite" aria-label="Capture results">
58
- <p id="result-empty" class="muted">No captured requests in this browser session.</p>
59
- <ol id="result-list" class="result-list"></ol>
60
- </section>
61
- </main>
85
+ <footer class="bottom-status" aria-label="Bottom status strip">
86
+ <span>Bottom status strip</span>
87
+ <span>Local Only</span>
88
+ <span>Review Required</span>
89
+ <span>Not Applied</span>
90
+ </footer>
91
+ </div>
92
+ </div>
62
93
  <script src="/workspace/app.js" defer></script>
63
94
  </body>
64
95
  </html>
@@ -23,6 +23,83 @@ body {
23
23
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 90%, transparent), var(--bg));
24
24
  }
25
25
 
26
+ .operating-workbench {
27
+ min-height: 100vh;
28
+ display: grid;
29
+ grid-template-columns: 184px minmax(0, 1fr);
30
+ }
31
+
32
+ .app-rail {
33
+ min-width: 0;
34
+ padding: 18px 12px;
35
+ border-right: 1px solid var(--border);
36
+ background: color-mix(in srgb, var(--bg) 82%, black);
37
+ }
38
+
39
+ .rail-title {
40
+ margin: 0 0 14px;
41
+ color: var(--muted);
42
+ font-size: 0.78rem;
43
+ font-weight: 800;
44
+ text-transform: uppercase;
45
+ }
46
+
47
+ .rail-link {
48
+ display: flex;
49
+ align-items: center;
50
+ min-height: 36px;
51
+ margin-bottom: 6px;
52
+ padding: 8px 10px;
53
+ border: 1px solid transparent;
54
+ border-radius: 8px;
55
+ color: var(--text);
56
+ font-weight: 700;
57
+ text-decoration: none;
58
+ }
59
+
60
+ .rail-link.is-active,
61
+ .rail-link:focus-visible,
62
+ .rail-link:hover {
63
+ border-color: color-mix(in srgb, var(--accent) 48%, var(--border));
64
+ background: color-mix(in srgb, var(--accent) 14%, var(--surface-soft));
65
+ }
66
+
67
+ .workspace-frame {
68
+ min-width: 0;
69
+ min-height: 100vh;
70
+ display: grid;
71
+ grid-template-columns: minmax(0, 1fr) minmax(240px, 288px);
72
+ grid-template-rows: auto minmax(0, 1fr) auto;
73
+ }
74
+
75
+ .workspace-tabs {
76
+ grid-column: 1 / -1;
77
+ min-width: 0;
78
+ display: flex;
79
+ align-items: end;
80
+ gap: 6px;
81
+ padding: 10px 14px 0;
82
+ border-bottom: 1px solid var(--border);
83
+ background: color-mix(in srgb, var(--surface-soft) 88%, transparent);
84
+ }
85
+
86
+ .tab {
87
+ min-height: 36px;
88
+ padding: 9px 12px;
89
+ border: 1px solid transparent;
90
+ border-bottom: 0;
91
+ border-radius: 8px 8px 0 0;
92
+ color: var(--muted);
93
+ font-weight: 800;
94
+ text-decoration: none;
95
+ }
96
+
97
+ .tab.is-active {
98
+ color: var(--text);
99
+ border-color: var(--border);
100
+ background: var(--surface);
101
+ }
102
+
26
103
  .skip-link {
27
104
  position: absolute;
28
105
  top: 12px;
@@ -41,18 +118,58 @@ body {
41
118
  }
42
119
 
43
120
  .workspace-shell {
44
- width: min(980px, calc(100vw - 28px));
45
- margin: 0 auto;
46
- min-height: 100vh;
47
- padding: 24px 0 32px;
121
+ width: 100%;
122
+ min-width: 0;
123
+ min-height: 0;
124
+ padding: 18px;
48
125
  display: grid;
49
126
  gap: 14px;
127
+ align-content: start;
50
128
  }
51
129
 
52
130
  .workspace-shell > * {
53
131
  min-width: 0;
54
132
  }
55
133
 
134
+ .main-work-area {
135
+ background: color-mix(in srgb, var(--bg) 54%, transparent);
136
+ }
137
+
138
+ .right-inspector {
139
+ min-width: 0;
140
+ padding: 18px 14px;
141
+ border-left: 1px solid var(--border);
142
+ background: color-mix(in srgb, var(--surface-soft) 76%, transparent);
143
+ }
144
+
145
+ .right-inspector h2 {
146
+ margin: 0 0 10px;
147
+ font-size: 1.05rem;
148
+ line-height: 1.2;
149
+ }
150
+
151
+ .bottom-status {
152
+ grid-column: 1 / -1;
153
+ min-width: 0;
154
+ display: flex;
155
+ flex-wrap: wrap;
156
+ gap: 8px;
157
+ align-items: center;
158
+ padding: 8px 14px;
159
+ border-top: 1px solid var(--border);
160
+ color: var(--muted);
161
+ background: color-mix(in srgb, var(--bg) 82%, black);
162
+ font-size: 0.82rem;
163
+ font-weight: 700;
164
+ }
165
+
166
+ .bottom-status span:not(:first-child) {
167
+ border: 1px solid var(--border);
168
+ border-radius: 999px;
169
+ padding: 3px 8px;
170
+ color: var(--warning);
171
+ }
172
+
56
173
  .top-row,
57
174
  .status-grid article,
58
175
  .capture-form,
@@ -77,7 +194,7 @@ body {
77
194
  text-transform: uppercase;
78
195
  font-size: 0.76rem;
79
196
  font-weight: 700;
80
- letter-spacing: 0.06em;
197
+ letter-spacing: 0;
81
198
  }
82
199
 
83
200
  h1,
@@ -217,6 +334,38 @@ button:disabled {
217
334
  }
218
335
 
219
336
  @media (max-width: 820px) {
337
+ .operating-workbench {
338
+ grid-template-columns: 1fr;
339
+ }
340
+
341
+ .app-rail {
342
+ display: flex;
343
+ flex-wrap: wrap;
344
+ gap: 6px;
345
+ align-items: center;
346
+ padding: 10px 12px;
347
+ border-right: 0;
348
+ border-bottom: 1px solid var(--border);
349
+ }
350
+
351
+ .rail-title {
352
+ flex: 1 0 100%;
353
+ margin: 0;
354
+ }
355
+
356
+ .rail-link {
357
+ margin-bottom: 0;
358
+ }
359
+
360
+ .workspace-frame {
361
+ grid-template-columns: 1fr;
362
+ }
363
+
364
+ .right-inspector {
365
+ border-left: 0;
366
+ border-top: 1px solid var(--border);
367
+ }
368
+
220
369
  .top-row {
221
370
  display: grid;
222
371
  }
@@ -228,8 +377,16 @@ button:disabled {
228
377
 
229
378
  @media (max-width: 560px) {
230
379
  .workspace-shell {
231
- width: min(100% - 16px, 980px);
232
- padding: 18px 0 24px;
380
+ padding: 12px;
381
+ }
382
+
383
+ .workspace-tabs {
384
+ flex-wrap: wrap;
385
+ overflow-x: visible;
386
+ }
387
+
388
+ .tab {
389
+ white-space: normal;
233
390
  }
234
391
 
235
392
  .status-grid {
@@ -254,6 +411,12 @@ button:disabled {
254
411
  .result-panel,
255
412
  .result-item,
256
413
  .safety-strip,
414
+ .app-rail,
415
+ .rail-link,
416
+ .workspace-tabs,
417
+ .tab,
418
+ .right-inspector,
419
+ .bottom-status,
257
420
  textarea,
258
421
  button,
259
422
  .nav-link {