@aarwitz/tapp 0.18.0 → 0.18.2

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.
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <meta name="description" content="Tapp turns repositories into UI maps, deterministic release contracts, and evidence-backed merge decisions across iOS, Android, and web.">
6
+ <meta name="description" content="Tapp Studio: run Tapp against a repository target or a website, watch it live, and open the evidence.">
7
7
  <meta name="tapp-api-base" content="">
8
8
  <meta name="tapp-login-url" content="">
9
9
  <title>Tapp</title>
@@ -14,10 +14,6 @@
14
14
  <svg hidden aria-hidden="true" xmlns="http://www.w3.org/2000/svg">
15
15
  <symbol id="i-grid" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="2" y="2" width="5" height="5" rx="1"/><rect x="9" y="2" width="5" height="5" rx="1"/><rect x="2" y="9" width="5" height="5" rx="1"/><rect x="9" y="9" width="5" height="5" rx="1"/></symbol>
16
16
  <symbol id="i-play" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="8" cy="8" r="6.25"/><path d="M6.5 5.5v5l4-2.5z" fill="currentColor" stroke="none"/></symbol>
17
- <symbol id="i-warn" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"><path d="M8 2.5 14 13H2z"/><path d="M8 6.5v3M8 11.3v.2"/></symbol>
18
- <symbol id="i-map" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"><path d="M2 4l4-1.5 4 1.5 4-1.5v10l-4 1.5-4-1.5-4 1.5z"/><path d="M6 2.5v10M10 4v10"/></symbol>
19
- <symbol id="i-check" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 8.5l3 3 7-7"/></symbol>
20
- <symbol id="i-gear" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="8" cy="8" r="2.25"/><path d="M8 1.75v2M8 12.25v2M1.75 8h2M12.25 8h2M3.6 3.6l1.4 1.4M11 11l1.4 1.4M3.6 12.4 5 11M11 5l1.4-1.4"/></symbol>
21
17
  <symbol id="i-folder" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M2 4.5A1.5 1.5 0 0 1 3.5 3h3l1.5 1.5h4.5A1.5 1.5 0 0 1 14 6v5.5A1.5 1.5 0 0 1 12.5 13h-9A1.5 1.5 0 0 1 2 11.5z"/></symbol>
22
18
  <symbol id="i-branch" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="4" cy="3.5" r="1.5"/><circle cx="4" cy="12.5" r="1.5"/><circle cx="12" cy="5" r="1.5"/><path d="M4 5v6M12 6.5c0 3-8 2-8 4.5"/></symbol>
23
19
  <symbol id="i-server" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="2" y="2.5" width="12" height="4.5" rx="1"/><rect x="2" y="9" width="12" height="4.5" rx="1"/><path d="M4.5 4.75h.01M4.5 11.25h.01"/></symbol>
@@ -27,58 +23,42 @@
27
23
 
28
24
  <main class="source-onboarding hidden" id="source-onboarding">
29
25
  <header class="onboarding-topbar">
30
- <button class="brand" data-brand-home aria-label="Tapp overview">tapp<span class="brand-mark"></span><small>release confidence</small></button>
31
- <span class="mode-pill" id="onboarding-mode-pill">Local engine</span>
26
+ <button class="brand" data-brand-home aria-label="Tapp overview">tapp<span class="brand-mark"></span><small>ship with proof</small></button>
27
+ <span class="mode-pill" id="onboarding-mode-pill">Self-host · this machine</span>
32
28
  </header>
33
29
  <section class="welcome-copy">
34
- <p class="eyebrow">Release contracts for real applications</p>
35
- <h1>Bring the product.<br>Tapp builds the proof.</h1>
36
- <p>Connect a repository once. Tapp detects its targets, builds and explores the real application, maps what users can do, proposes the business journeys worth protecting, and installs deterministic release gates. A website alone can be explored and recorded, but only source gives a release verdict.</p>
30
+ <p class="eyebrow">Run viewer</p>
31
+ <h1>Point Tapp at something real.</h1>
32
+ <p>A repository on this machine gets built, explored and gated; a website gets a read-only audit. Either way the evidence is what the engine wrote — screenshots, findings, a report page — not a summary written afterwards.</p>
37
33
  <div class="platform-row" aria-label="Supported target platforms">
38
34
  <span>iOS</span><span>Android</span><span>Web</span>
39
35
  </div>
40
36
  </section>
41
37
 
42
- <section class="source-choices" aria-label="Connect a repository">
43
- <article class="source-card local-runner-card">
38
+ <section class="source-choices" aria-label="Open a repository or audit a website">
39
+ <article class="source-card">
44
40
  <span class="source-layer">Repository</span>
45
41
  <div class="source-icon">⌘</div>
46
- <p class="eyebrow">This Mac</p>
47
- <h2>Run from your checkout</h2>
48
- <p>Your source never uploads. Tapp builds with local Xcode and drives your local simulator, while the web app shows progress and evidence.</p>
49
- <div id="local-repositories"><small>Looking for connected Mac repositories…</small></div>
42
+ <p class="eyebrow">This machine</p>
43
+ <h2>Open a checkout</h2>
44
+ <p>Start the Studio from the repository you want to test. Tapp detects its iOS, Android and web targets, builds with your local toolchain, and never uploads source.</p>
45
+ <pre class="command"><code>npx -y @aarwitz/tapp@latest app /path/to/repo</code></pre>
46
+ <small>Already have a terminal in the repository? <code>tapp app .</code> does the same.</small>
50
47
  </article>
51
- <article class="source-card drop-zone" id="repository-drop-zone" tabindex="0">
52
- <span class="source-layer">Repository</span>
53
- <div class="source-icon">↥</div>
54
- <p class="eyebrow">Cloud copy</p>
55
- <h2>Upload a project folder</h2>
56
- <p>Upload an isolated working copy from this computer. Committed hidden config (like <code>.tapp/</code>) is included; dependency and build output folders are skipped.</p>
57
- <button class="primary" id="browse-folder">Browse folder</button>
58
- <input id="folder-input" type="file" webkitdirectory multiple hidden>
59
- <small>For direct edits to an existing checkout, start with <code>tapp app /path/to/repo</code>.</small>
60
- </article>
61
- <article class="source-card github-card">
62
- <span class="source-layer">Repository</span>
63
- <div class="source-icon github-icon">⌘</div>
64
- <p class="eyebrow">GitHub</p>
65
- <h2>Connect to GitHub</h2>
66
- <p id="github-source-copy">Select one of the repositories authorized by your local GitHub session. Tapp clones an isolated checkout and never pushes silently.</p>
67
- <button class="secondary" id="connect-github">Choose repository</button>
68
- <small id="github-source-note">Local preview uses <code>gh auth</code>. Hosted Tapp will use repository-scoped GitHub App authorization.</small>
69
- </article>
70
- <article class="source-card website-card" id="website-card">
48
+ <article class="source-card website-card">
71
49
  <span class="source-layer">Website</span>
72
50
  <div class="source-icon">⌁</div>
73
51
  <p class="eyebrow">No source code</p>
74
- <h2>Connect a website</h2>
75
- <p id="website-source-copy">Explore, record, and check the journeys of an app you own from its public URL. Without source there is no release verdict — exploration observes; only the repository gate judges.</p>
76
- <a class="button-link hidden" id="website-connect-link" href="/connect">Connect a website</a>
77
- <small id="website-source-note">In the local Studio, website checks run from the CLI: <code>npx -y @aarwitz/tapp@latest explore https://example.com --read-only</code>. Website projects live in the hosted Studio.</small>
52
+ <h2>Audit a website</h2>
53
+ <p>Read-only: Tapp renders up to six pages and reports what is broken as served — dead controls, broken images and links, failed requests, layout that scrolls sideways on a phone. Nothing is clicked, typed or submitted, so it is safe on production or a site you do not own. No release verdict without source.</p>
54
+ <form class="audit-form" id="onboarding-audit-form">
55
+ <label class="field"><span>Website URL</span><input id="onboarding-audit-url" name="url" type="url" inputmode="url" placeholder="https://example.com" required autocomplete="off"></label>
56
+ <button class="primary" type="submit" id="onboarding-audit-start">Audit read-only</button>
57
+ </form>
78
58
  </article>
79
59
  </section>
80
60
 
81
- <div class="privacy-note"><strong id="privacy-note-title">Your code stays on this machine in local mode.</strong><span id="privacy-note-detail">Ordinary exploration, replay, and merge decisions are deterministic and require no API key.</span></div>
61
+ <div class="privacy-note"><strong id="privacy-note-title">Your code stays on this machine.</strong><span id="privacy-note-detail">Exploration, replay and merge decisions are deterministic and need no API key. This machine must stay open while a run is in progress.</span></div>
82
62
  </main>
83
63
 
84
64
  <div class="product-shell hidden" id="product-shell">
@@ -91,10 +71,6 @@
91
71
  <nav class="primary-nav" aria-label="Product navigation">
92
72
  <button data-view="overview" class="active"><span><svg><use href="#i-grid"/></svg></span>Overview</button>
93
73
  <button data-view="runs"><span><svg><use href="#i-play"/></svg></span>Runs <i id="run-count" class="zero">0</i></button>
94
- <button data-view="findings"><span><svg><use href="#i-warn"/></svg></span>Findings <i id="finding-count" class="zero">0</i></button>
95
- <button data-view="coverage"><span><svg><use href="#i-map"/></svg></span>Coverage</button>
96
- <button data-view="contracts"><span><svg><use href="#i-check"/></svg></span>Contracts <i id="contract-count" class="zero">0</i></button>
97
- <button data-view="settings"><span><svg><use href="#i-gear"/></svg></span>Settings</button>
98
74
  </nav>
99
75
  <div class="sidebar-project">
100
76
  <p class="eyebrow">Project</p>
@@ -103,10 +79,10 @@
103
79
  <div class="row"><span><svg><use href="#i-target"/></svg></span><span id="sidebar-target">Select a target</span></div>
104
80
  <div class="row"><span><svg><use href="#i-server"/></svg></span><span id="sidebar-runner">Runner not checked</span></div>
105
81
  <div class="row hidden" id="sidebar-app-row"><span><svg><use href="#i-app"/></svg></span><span><code id="sidebar-app-id"></code></span></div>
106
- <span class="mode-pill" id="mode-pill">Local engine</span>
82
+ <span class="mode-pill" id="mode-pill">Self-host · this machine</span>
107
83
  </div>
108
84
  <div class="sidebar-footer">
109
- <button class="quiet" id="change-source">+ Add project</button>
85
+ <button class="quiet" id="change-source">⌁ Audit a website</button>
110
86
  <button class="quiet hidden" id="refresh-project">Refresh</button>
111
87
  </div>
112
88
  </aside>
@@ -114,7 +90,7 @@
114
90
  <main class="workspace">
115
91
  <section class="workspace-view active" data-view-panel="overview" id="overview">
116
92
  <div class="command-bar">
117
- <div><h1>Release Command Center</h1><p><span id="app-name">Your release workspace</span> · <span id="app-summary">Inspect the repository to discover product targets and release intent.</span></p></div>
93
+ <div><h1>Release check</h1><p><span id="app-name">Your project</span> · <span id="app-summary">Inspecting the repository for targets.</span></p></div>
118
94
  <div class="command-actions">
119
95
  <span class="phase-pill hidden" id="phase-pill"><span class="spinner"></span><span id="phase-pill-text">Working…</span></span>
120
96
  <button class="primary" id="command-run">Run release check</button>
@@ -142,33 +118,20 @@
142
118
  </div>
143
119
  <span class="vrule"></span>
144
120
  <div class="chat-panel">
145
- <div class="chat-head"><div><h2>tapp chat</h2><p>Live narration of screens, actions, and findings during a run</p></div></div>
121
+ <div class="chat-head"><div><h2>tapp chat</h2><p>The engine's own progress log: screens, actions and findings as they happen</p></div></div>
146
122
  <div class="chat-transcript" id="chat-transcript"></div>
147
- <div class="chat-footer">Narration comes from the engine's own progress events. Nothing here is generated after the fact.</div>
123
+ <div class="chat-footer">Nothing here is generated after the fact.</div>
148
124
  </div>
149
125
  </section>
150
126
 
151
127
  <div class="view-heading" style="margin-top:20px">
152
- <nav class="journey" aria-label="Release setup progress" style="margin:0">
153
- <button data-jump="connect"><span>1</span><b>Connect</b><small>Repository</small></button>
154
- <button data-jump="target-stage"><span>2</span><b>Target</b><small>Build & runtime</small></button>
155
- <button data-jump="map"><span>3</span><b>Map</b><small>Observed product</small></button>
156
- <button data-jump="contracts"><span>4</span><b>Contracts</b><small>Review intent</small></button>
157
- <button data-jump="validate"><span>5</span><b>Validate</b><small>Keyless replay</small></button>
158
- <button data-jump="evidence"><span>6</span><b>Gate</b><small>Decision & CI</small></button>
159
- </nav>
160
128
  <div class="decision-card neutral" id="decision-card"><span class="decision-label">CURRENT DECISION</span><strong id="decision-title">Not evaluated</strong><span id="decision-detail">Run a conclusive release gate to establish evidence.</span></div>
161
129
  </div>
162
130
 
163
- <section class="panel section" id="connect">
164
- <div class="section-heading"><div><p class="eyebrow">Connected repository</p><h2 id="repository-title">Repository</h2><p id="repository-detail">Tapp reads canonical repository artifacts and writes only explicit, reviewable changes.</p></div><span class="status-chip" id="connect-status">Not inspected</span></div>
165
- <div class="button-row"><button class="secondary" id="inspect">Inspect repository</button><button class="quiet" data-view="settings">Repository settings</button></div>
166
- </section>
167
-
168
131
  <section class="panel section" id="target-stage">
169
- <div class="section-heading"><div><p class="eyebrow">Build & run</p><h2>Choose the product target</h2><p>Tapp detected these targets from source. Multiple targets require an explicit choice; build results validate—not replace—the model.</p></div><span class="status-chip" id="target-status">No target selected</span></div>
132
+ <div class="section-heading"><div><p class="eyebrow">Build & run</p><h2>Choose the product target</h2><p>Tapp detected these targets from source. With more than one, you choose; nothing builds until you do.</p></div><span class="status-chip" id="target-status">No target selected</span></div>
170
133
  <div class="target-choice-callout hidden" id="target-choice-callout"><span>1</span><div><strong>Choose what Tapp should test</strong><small>Nothing will build until you select a target. Tapp never guesses when a repository contains multiple applications.</small></div></div>
171
- <div id="targets" class="target-grid"><div class="empty">Inspect the repository to detect iOS, Android, and web targets.</div></div>
134
+ <div id="targets" class="target-grid"><div class="empty">Inspecting the repository for iOS, Android and web targets…</div></div>
172
135
  <div class="runtime-row hidden" id="runtime-row">
173
136
  <label class="field android-runtime hidden" id="serial-field"><span>Android device serial <i>optional</i></span><input id="android-serial" placeholder="emulator-5554"><small>Leave blank to use the first connected and authorized device.</small></label>
174
137
  <div class="run-cta"><div class="button-row"><button class="primary" id="explore">Build, launch & explore</button><button class="secondary" id="start-session">Open live app</button></div><small id="explore-help">Select one target to continue.</small></div>
@@ -177,79 +140,35 @@
177
140
  </section>
178
141
 
179
142
  <section class="panel section live-session-panel hidden" id="live-session-panel">
180
- <div class="section-heading"><div><p class="eyebrow">Live application</p><h2>Drive the running target</h2><p>The device feed above shows the same real application surface used by Tapp's deterministic engine. Semantic controls refresh after every action.</p></div><div class="button-row"><span class="status-chip" id="live-platform">Target</span><span class="status-chip" id="live-recorded-steps">0 recorded steps</span><button class="quiet" id="refresh-live-session">Refresh</button><button class="secondary" id="end-session">End session</button></div></div>
143
+ <div class="section-heading"><div><p class="eyebrow">Live application</p><h2>Drive the running target</h2><p>The device feed above is the real application. Semantic controls refresh after every action; successful actions are recorded as a Flow you can save.</p></div><div class="button-row"><span class="status-chip" id="live-platform">Target</span><span class="status-chip" id="live-recorded-steps">0 recorded steps</span><button class="quiet" id="refresh-live-session">Refresh</button><button class="secondary" id="end-session">End session</button></div></div>
181
144
  <div class="live-layout">
182
145
  <aside class="live-controls"><div class="live-controls-heading"><div><strong>Semantic controls</strong><small id="live-control-count">0 available</small></div></div><div id="live-control-list"><div class="empty">Controls appear when the session starts.</div></div><div class="manual-action"><label><span>Target or field</span><input id="live-action-target" placeholder="Accessibility id or visible label"></label><label><span>Text <i>for type/wait</i></span><input id="live-action-text" autocomplete="off"></label><div class="button-row"><button class="secondary" id="live-tap">Tap</button><button class="secondary" id="live-type">Type</button><button class="quiet" id="live-back">Back</button><button class="quiet" id="live-swipe">Swipe up</button></div></div></aside>
183
- <div class="flow-recorder-panel"><div class="flow-recorder-head"><div><strong>Keep this journey as a deterministic Flow</strong><small>Successful actions are recorded with semantic selectors. Existing files are preserved.</small></div></div><div class="flow-recorder"><label><span>Flow name</span><input id="live-flow-name" placeholder="Checkout smoke"></label><button class="primary" id="save-live-flow">Save Flow</button><p>Saved Flows replay without AI and can be promoted into the release gate from Contracts.</p></div></div>
146
+ <div class="flow-recorder-panel"><div class="flow-recorder-head"><div><strong>Keep this journey as a deterministic Flow</strong><small>Saved Flows replay without AI; promote them into the gate from the repository.</small></div></div><div class="flow-recorder"><label><span>Flow name</span><input id="live-flow-name" placeholder="Checkout smoke"></label><button class="primary" id="save-live-flow">Save Flow</button></div></div>
184
147
  </div>
185
148
  </section>
186
149
 
187
150
  <section class="overview-grid">
188
- <article class="panel summary-panel"><div class="section-heading compact"><div><p class="eyebrow">Latest evidence</p><h2>What changed?</h2></div><button class="quiet" data-view="runs">All runs</button></div><div id="overview-evidence"><div class="empty">No release run yet.</div></div></article>
189
- <article class="panel summary-panel"><div class="section-heading compact"><div><p class="eyebrow">Coverage</p><h2>Observed surface</h2></div><button class="quiet" data-view="coverage">Open map</button></div><div id="overview-coverage" class="metric-grid"></div></article>
151
+ <article class="panel summary-panel"><div class="section-heading compact"><div><p class="eyebrow">Latest evidence</p><h2>What the last run proved</h2></div><button class="quiet" data-view="runs">All runs</button></div><div id="overview-evidence"><div class="empty">No run yet.</div></div></article>
190
152
  </section>
191
153
  </section>
192
154
 
193
155
  <section class="workspace-view" data-view-panel="runs">
194
- <div class="view-heading simple"><div><p class="eyebrow">Runs</p><h1>Release history</h1><p>Every autonomous sweep, deterministic replay, finding, and decision stays inspectable.</p></div><button class="primary" id="run-gate">Run release gate</button></div>
156
+ <div class="view-heading simple"><div><p class="eyebrow">Runs</p><h1>Every run, with its evidence</h1><p>Release checks on this repository and read-only website audits. Each opens the report page the engine wrote.</p></div><button class="primary" id="run-gate">Run release gate</button></div>
157
+ <section class="panel section audit-panel">
158
+ <div class="section-heading compact"><div><p class="eyebrow">Website</p><h2>Audit a website — read-only</h2><p>Up to six pages, nothing clicked. Safe on production or a site you do not own; no release verdict without source.</p></div></div>
159
+ <form class="audit-form" id="runs-audit-form">
160
+ <label class="field"><span>Website URL</span><input id="audit-url" name="url" type="url" inputmode="url" placeholder="https://example.com" required autocomplete="off"></label>
161
+ <button class="primary" type="submit" id="audit-start">Audit read-only</button>
162
+ </form>
163
+ </section>
195
164
  <div class="split-view">
196
165
  <section class="panel list-panel" id="runs-list"><div class="empty">No runs yet.</div></section>
197
- <section class="panel detail-panel" id="run-detail"><div class="empty">Select a run to inspect its decision, checks, findings, and artifacts.</div></section>
198
- </div>
199
- </section>
200
-
201
- <section class="workspace-view" data-view-panel="findings">
202
- <div class="view-heading simple"><div><p class="eyebrow">Findings</p><h1>What needs attention</h1><p>Findings preserve their severity and regression state. A failed contract is never silently healed.</p></div><select id="finding-filter"><option value="all">All severities</option><option value="critical">Critical</option><option value="high">High</option><option value="medium">Medium</option><option value="low">Low</option></select></div>
203
- <div class="split-view findings-layout"><section class="panel list-panel" id="findings-list"><div class="empty">No findings yet.</div></section><section class="panel detail-panel" id="finding-detail"><div class="empty">Select a finding to inspect its evidence.</div></section></div>
204
- </section>
205
-
206
- <section class="workspace-view" data-view-panel="coverage" id="map">
207
- <div class="view-heading simple"><div><p class="eyebrow">Coverage</p><h1>The product Tapp understands</h1><p>One platform-neutral Application Model and UI Map power exploration, planning, maintenance, CLI, MCP, and CI.</p></div><span class="metric" id="map-metric">0 states</span></div>
208
- <div class="subnav"><button data-coverage-tab="map" class="active">Flow Map</button><button data-coverage-tab="screens">Screens</button><button data-coverage-tab="application">Application</button><button data-coverage-tab="plan">Release Plan</button></div>
209
- <section class="coverage-panel active" data-coverage-panel="map"><div class="map-layout"><div class="map-canvas" id="map-canvas"><div class="empty">Explore the real product to build its map.</div></div><aside id="coverage-summary" class="coverage-summary"></aside></div><div id="transition-list" class="transition-list"></div></section>
210
- <section class="coverage-panel" data-coverage-panel="screens"><div class="panel table-panel" id="screen-list"><div class="empty">No observed screens yet.</div></div></section>
211
- <section class="coverage-panel" data-coverage-panel="application"><div class="application-grid" id="application-model"><div class="empty">Inspect the repository to build its Application Model.</div></div></section>
212
- <section class="coverage-panel" data-coverage-panel="plan"><div id="coverage-plan-list" class="plan-list"><div class="empty">No release plan yet.</div></div></section>
213
- </section>
214
-
215
- <section class="workspace-view" data-view-panel="contracts" id="contracts">
216
- <div class="view-heading simple"><div><p class="eyebrow">Release contracts</p><h1>Review business guarantees</h1><p>Approve a compact set of important outcomes. Tapp composes reusable Tasks instead of generating one script for every situation.</p></div><span class="status-chip" id="plan-status">No plan</span></div>
217
- <section class="panel section">
218
- <div class="plan-toolbar"><button class="quiet" id="approve-high">Approve high & critical</button><button class="quiet" id="defer-rest">Defer undecided</button><span class="spacer"></span><button class="primary" id="save-review">Save review</button></div>
219
- <div id="plan-list" class="plan-list"><div class="empty">Inspect and explore to create a grounded release plan.</div></div>
220
- </section>
221
- <section class="panel section" id="validate">
222
- <div class="section-heading"><div><p class="eyebrow">Deterministic suite</p><h2>Generate, replay, then promote</h2><p>Draft Tasks and contracts remain untrusted until they pass without AI against the selected real target. Promotion is explicit.</p></div><span class="status-chip" id="validation-status">Not generated</span></div>
223
- <div class="pipeline"><article><span>01</span><h3>Generate drafts</h3><p>Compose reusable Tasks and TypeScript contracts from approved, grounded intent.</p><button class="secondary" id="generate">Generate</button></article><article><span>02</span><h3>Replay without AI</h3><p>Execute exact assertions and bounded waits on the actual selected platform.</p><button class="secondary" id="validate-drafts">Validate</button></article><article><span>03</span><h3>Promote reviewed proof</h3><p>Move only validated drafts into the committed suite and update map coverage.</p><button class="secondary" id="promote">Promote</button></article></div>
224
- <div id="artifact-list" class="artifact-list"></div>
225
- </section>
226
- </section>
227
-
228
- <section class="workspace-view" data-view-panel="settings">
229
- <div class="view-heading simple"><div><p class="eyebrow">Settings</p><h1>Project and execution</h1><p>Only unavoidable target, environment, actor, and credential inputs belong here.</p></div></div>
230
- <div class="settings-grid">
231
- <section class="panel settings-section"><p class="eyebrow">Repository</p><h2>Source</h2><div id="settings-repository"></div><button class="secondary" id="settings-add-repository">Add repository</button></section>
232
- <section class="panel settings-section"><p class="eyebrow">Runners</p><h2>Execution surfaces</h2><div id="runner-list"></div></section>
233
- <section class="panel settings-section"><p class="eyebrow">Actors & credentials</p><h2>Runtime-only values</h2><p>Values stay in this browser session and process environment; they are never written into repository artifacts or job results.</p><label class="field"><span>Test email</span><input id="test-email" autocomplete="off"></label><label class="field"><span>Test password</span><input id="test-password" type="password" autocomplete="new-password"></label><div id="actor-list" class="actor-list"></div></section>
234
- <section class="panel settings-section"><p class="eyebrow">AI & data</p><h2>Optional orchestration</h2><div class="setting-row"><div><strong>Remote AI</strong><small>Planning and maintenance only. Deterministic execution does not need it.</small></div><span class="status-chip">Off</span></div><p class="honesty">Remote AI consent and provider controls are not yet exposed in this local browser build. Tapp will not opt you in implicitly.</p></section>
166
+ <section class="panel detail-panel" id="run-detail"><div class="empty">Select a run to inspect its evidence.</div></section>
235
167
  </div>
236
- <section class="panel section" id="evidence">
237
- <div class="section-heading"><div><p class="eyebrow">Release evidence & CI</p><h2>Install the same decision in GitHub</h2><p>Preview the target-aware workflow, required secrets, unresolved configuration, and exact policy before writing anything.</p></div><div class="button-row"><button class="secondary" id="create-baseline" disabled>Establish baseline</button><button class="secondary" id="preview-ci">Preview CI</button><button class="primary" id="install-ci">Write reviewable patch</button></div></div>
238
- <div id="latest-evidence" class="evidence-grid"><div class="empty">No release run yet.</div></div>
239
- <pre id="ci-preview" class="code-preview hidden"></pre>
240
- </section>
241
168
  </section>
242
169
  </main>
243
170
  </div>
244
171
 
245
- <dialog id="github-dialog">
246
- <form method="dialog" class="dialog-shell">
247
- <div class="dialog-heading"><div><p class="eyebrow">Connect to GitHub</p><h2>Select a repository</h2><p>Tapp only displays repositories available to your authenticated local GitHub session.</p></div><button class="quiet" value="cancel" aria-label="Close">Close</button></div>
248
- <input class="search-input" id="github-search" placeholder="Search repositories…" autocomplete="off">
249
- <div id="github-repositories" class="github-repositories"><div class="empty">Loading authorized repositories…</div></div>
250
- </form>
251
- </dialog>
252
-
253
172
  <div class="operation-drawer hidden" id="operation-drawer" role="status" aria-live="polite"><div class="spinner"></div><div class="operation-copy"><strong id="operation-title">Working…</strong><p id="operation-progress">Starting operation</p><div class="progress-track"><span id="operation-progress-bar"></span></div></div></div>
254
173
  <div class="toast hidden" id="toast"></div>
255
174
  <script type="module" src="./assets/app.js"></script>
@@ -1,25 +1,25 @@
1
- // Executable parity contract for Tapp's one customer-facing browser product.
2
- // Both the local adapter and hosted adapter must serve this same application.
1
+ // Executable contract for Tapp's one browser surface: the Studio served by `tapp app`.
2
+ // It is a run viewer — start a run against a repository target or a URL, watch it live, open
3
+ // its evidence — not a second Command Center (ADR-0006, owner decision of 2026-10-15). The
4
+ // hosted control plane embeds these same assets unchanged.
3
5
  export const customerProductContract = Object.freeze({
4
- schemaVersion: 1,
6
+ schemaVersion: 2,
5
7
  product: "Tapp",
6
8
  interface: "customer-browser",
7
9
  targetPlatforms: ["ios", "android", "web"],
8
- repositorySources: ["local-folder", "github"],
10
+ // A repository is opened by path (`tapp app /path/to/repo`); a website by URL in the Studio.
11
+ repositorySources: ["local-path"],
12
+ entryLayers: ["repository", "website"],
9
13
  views: [
10
- { id: "overview", label: "Overview", capabilities: ["release-decision", "onboarding-progress", "current-operation", "latest-evidence"] },
11
- { id: "runs", label: "Runs", capabilities: ["run-history", "run-detail", "timeline", "screenshots", "recordings", "logs", "artifacts"] },
12
- { id: "findings", label: "Findings", capabilities: ["finding-list", "severity-filter", "regression-state", "evidence"] },
13
- { id: "coverage", label: "Coverage", capabilities: ["application-model", "ui-map", "screens", "transitions", "controls", "task-coverage", "contract-coverage"] },
14
- { id: "contracts", label: "Contracts", capabilities: ["release-plan-review", "task-generation", "contract-generation", "deterministic-validation", "explicit-promotion"] },
15
- { id: "settings", label: "Settings", capabilities: ["target-selection", "runner-status", "runtime-inputs", "actors", "credentials", "ai-consent", "ci-installation"] },
14
+ { id: "overview", label: "Overview", capabilities: ["target-selection", "release-check", "live-feed", "progress-transcript", "live-session", "flow-recording", "latest-evidence"] },
15
+ { id: "runs", label: "Runs", capabilities: ["run-history", "run-detail", "evidence-page", "website-audit"] },
16
16
  ],
17
- operations: ["initialize", "session-start", "session-act", "session-save-flow", "session-end", "review", "generate", "validate", "promote", "gate", "baseline", "ci-preview", "ci-install"],
17
+ operations: ["initialize", "session-start", "session-act", "session-save-flow", "session-end", "gate", "audit"],
18
18
  invariants: [
19
- "Browser is the Tapp customer interface; web is one target platform.",
20
- "Repository paths are selected by the server or imported into isolated workspaces.",
21
- "AI is optional for planning; deterministic replay and ordinary merge decisions are keyless.",
22
- "Generated Tasks and contracts remain untrusted until real replay passes and promotion is explicit.",
23
- "The internal fleet console is not a customer product surface.",
19
+ "The Studio shows runs; it never scores or judges them. Only the deterministic gate decides.",
20
+ "Every run's evidence is the report.html the engine wrote; the Studio links to it rather than re-rendering it.",
21
+ "A website audit is read-only: nothing is clicked, typed, submitted, or hovered.",
22
+ "Repositories are opened from the machine the Studio runs on; nothing is uploaded or cloned by the Studio.",
23
+ "Deterministic replay and ordinary merge decisions are keyless.",
24
24
  ],
25
25
  });
@@ -1,83 +1,60 @@
1
- # Browser Release Studio
1
+ # Browser Studio
2
2
 
3
- Status: current product contract as of 2026-10-14 (shell and evidence panel reworked for desktop
4
- parity; the 2026-08-08 "paused track" framing is superseded by ADR-0006, "Three entry layers,
5
- two execution modes", in the private decision log).
3
+ Status: current product contract as of 2026-10-15 (ADR-0006, owner decision). Supersedes the
4
+ "desktop-parity Command Center" framing of 2026-10-14.
6
5
 
7
- The browser Release Studio is the one web UI. `browser/` is its only source; the hosted control
8
- plane (`saas/`) copies these assets at build time, so the self-host Studio (`tapp app`) and
9
- `app.runtapp.com` are the same interface with different execution modes. Its layout mirrors the
10
- macOS Command Center: wordmark and project menu, Overview / Runs / Findings / Coverage / Contracts /
11
- Settings, a project block, and an Overview that pairs a device feed with "tapp chat". The feed shows
12
- a live session frame or the newest screenshot the running exploration wrote; the chat is the
13
- engine's own progress log (phase changes, per-action narratives such as `Tapped "Place order"`,
14
- `Reached Checkout`, findings, completion). Nothing in either panel is generated after the fact, and
15
- there is no message input because no chat backend exists in the package. Web is one application
16
- target beside iOS and Android; it is not a separate QA product. CLI, MCP, VS Code, the Action,
17
- desktop, and the hosted Studio all adapt the shared product operations described in
18
- [`PRODUCT-ENGINE.md`](PRODUCT-ENGINE.md).
6
+ The Studio in `browser/` is the one browser surface. It is a **run viewer**: point Tapp at a
7
+ repository target or a website, watch the run live, open its evidence. It never scores or judges
8
+ a run — only the deterministic gate decides — and it never re-renders evidence: every run opens
9
+ the `report.html` the engine wrote into the capture. The hosted control plane (`saas/`, frozen)
10
+ embeds these same assets at build time.
19
11
 
20
12
  ## Start locally
21
13
 
22
14
  ```bash
23
- npx -y @aarwitz/tapp@latest app
15
+ npx -y @aarwitz/tapp@latest app /path/to/repo # a repository on this machine
16
+ npx -y @aarwitz/tapp@latest app # no repository: website audits only
24
17
  ```
25
18
 
26
- Tapp prints an authenticated one-time launch URL and opens it in the default browser. Use
27
- `--no-open` when copying the URL manually and `--port 4317` only when a fixed loopback port is
28
- needed. Drag/drop or Browse Folder copies source into a Tapp-owned workspace. Connect GitHub lists
29
- repositories authorized to the local `gh` session and makes a shallow isolated clone.
30
- `tapp app /path/to/repo` intentionally works directly in that checkout.
19
+ Tapp prints an authenticated one-time launch URL and opens it in the default browser (`--no-open`
20
+ to copy it by hand, `--port 4317` for a fixed loopback port). A repository is opened from the
21
+ machine the Studio runs on; the Studio does not upload or clone source. Everything runs on this
22
+ machine with its own toolchain (Xcode for iOS, JDK/SDK + `adb` for Android, Playwright Chromium
23
+ for web), which must stay open while a run is in progress.
31
24
 
32
- The local server binds to `127.0.0.1`. It owns workspace paths; browser requests cannot submit an
33
- arbitrary server path. Mutations require an `HttpOnly` same-site session cookie, the exact local
34
- Origin, and an in-memory CSRF token. Application runtimes, repository credentials, and evidence stay
35
- in the local process/filesystem. This is a local trust boundary, not hosted multi-tenancy.
25
+ ## What is on the page
36
26
 
37
- ## Product journey
27
+ | View | What it shows | Operations |
28
+ |---|---|---|
29
+ | Overview | The detected targets (an explicit choice when there are several), the live device feed, "tapp chat" (the engine's own progress log — nothing is generated after the fact), the current decision from the last gate, the latest evidence | `initialize` (inspect, then build + explore), live session `start / act / save-flow / end`, release check |
30
+ | Runs | Every run on this repository and every read-only website audit, newest first; each opens its evidence page. A URL field runs an audit from here. | `gate`, `audit` |
38
31
 
39
- 1. **Connect** a copied folder, an explicit checkout, or a repository authorized by local `gh`.
40
- 2. **Detect and choose** an iOS, Android, or web target. Continue automatically only when the target
41
- and configuration are conclusive.
42
- 3. **Build, launch, and explore** the real simulator, emulator/device, or browser surface.
43
- 4. **Understand the UI Map** through observed states, transitions, controls, provenance, and gaps.
44
- 5. **Review intent** by approving, rejecting, deferring, or constraining a compact release plan.
45
- 6. **Generate drafts** of Tasks and contracts. Drafts remain visibly untrusted.
46
- 7. **Validate** approved drafts deterministically against the real target.
47
- 8. **Promote** only validated artifacts into the canonical suite and refreshed Application Model.
48
- 9. **Gate** with autonomous evidence plus the promoted deterministic suite.
49
- 10. **Baseline** only a passing, conclusive, target-scoped gate.
50
- 11. **Install CI** by previewing and writing a reviewable repository patch. Tapp does not commit,
51
- push, create GitHub secrets, or enable branch protection.
32
+ A **website audit** is `explore --read-only`: up to six same-origin pages are rendered and read —
33
+ dead controls, broken images/assets/links, failed requests, JS exceptions, mixed content,
34
+ horizontal overflow — and nothing is clicked, typed, submitted or hovered, so it is safe on
35
+ production or a site you do not own. A website has no source revision, so it has no release
36
+ verdict; the audit says what it checked and what it could not (its detectors were qualified on 25
37
+ real small-business sites in October 2026; the remaining findings were verified by hand).
52
38
 
53
- Successful semantic actions can be saved in `.tapp/flows/`; credential values are templated to
54
- environment references. Long-lived repository artifacts store binding names, not resolved secret
55
- values.
39
+ ## What was removed, and where it lives instead
56
40
 
57
- ## Verified reference journey
58
-
59
- `tests/browser-journey.test.js` drives the visible local browser against a fresh CommerceDemo copy.
60
- It exercises startup, a real live web surface and semantic action, UI Map creation, Flow recording
61
- and replay, proposal review, generation, deterministic validation, promotion, a first gate,
62
- baseline-aware rerun, and CI preview.
41
+ The Contracts, Coverage and Settings views, the six-step journey stepper, and the folder-upload,
42
+ GitHub-clone and remote-runner onboarding were removed on 2026-10-15. Reviewing and promoting
43
+ contracts is `tapp plan` / `tapp validate` in the repository; coverage is on every run's
44
+ `report.html`; actors and credentials live in `.tapp/project.json`; CI installation is `tapp ci`.
45
+ The Studio keeps only what a browser does better than a terminal: watching a real device while a
46
+ run happens, driving it by hand, and reading evidence.
63
47
 
64
- The opt-in `tests/browser-native-journey.test.js` passed on 2026-08-06 against a booted iOS
65
- simulator: the browser built and installed a disposable DemoApp checkout, ran shared target
66
- preparation and exploration, rendered an observed UI Map, drove the live surface, and saved a
67
- repository-native iOS Flow. The equivalent Android browser journey was not verified in that audit
68
- because no emulator/device was connected.
48
+ ## Verified reference journey
69
49
 
70
- This evidence proves representative local journeys. It does not prove arbitrary frameworks,
71
- production credentials, third-party services, hosted execution, or complete inference of business
72
- intent.
50
+ `tests/browser-journey.test.js` drives the CommerceDemo fixture end to end in a real browser:
51
+ target choice, exploration, a live session that records a Flow, the gate, and the runs list.
52
+ `tests/browser-onboarding.test.js` covers the no-repository start and a read-only website audit;
53
+ `tests/browser-product.test.js` covers authentication, CSRF, the audit operation and the removed
54
+ endpoints answering 404.
73
55
 
74
56
  ## Hosted relationship
75
57
 
76
- The future hosted application will present the same product journey through a different adapter: application
77
- accounts/organizations, GitHub App repository authorization, private storage, a durable queue, and
78
- isolated managed workers. It cannot reuse the loopback session, local `gh` authority, filesystem
79
- boundary, or in-memory ownership assumptions.
80
-
81
- The old hosted preview and `cloud/` prototype do not satisfy this boundary. The managed SaaS is a
82
- separate, paused track (see the private source repository); do not market or accept private
83
- repositories until its readiness gate passes.
58
+ `saas/` serves the same `browser/` assets through `/api/studio` with an API base and login URL
59
+ injected. It is frozen at its current commit (ADR-0006, owner decision) and will embed the
60
+ simplified Studio when it is next deployed. Nothing in the Studio depends on it.
@@ -58,7 +58,7 @@ Current convergence:
58
58
  - VS Code remains a thin MCP client;
59
59
  - desktop reads the same `.tapp` artifacts but still has legacy import/build orchestration. It is
60
60
  retained, not the launch UX, until that orchestration is removed;
61
- - `cloud/runner` is retained prototype evidence for exact checkout, versioned operation envelopes,
61
+ - The former `cloud/runner` prototype (removed 2026-10-15) was the evidence for exact checkout, versioned operation envelopes,
62
62
  leases, and cleanup. It is not the production hosted adapter or an adequate arbitrary-customer
63
63
  isolation boundary. The new SaaS must call these shared operations only through a tenant-aware,
64
64
  queued worker contract (defined in the private source repository's SaaS architecture doc).