Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 28 additions & 4 deletions docs/Task1111.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Project images, semi-automated showcase updates, and the Command Center naming
cut. Implementation GO was given on November 3, 2026.

Status: implemented locally and staged for sanitized-batch review. No portfolio
commit/push has been made. Publication still needs the operator's review of the
specific batch; the general implementation GO is not approval of unseen images.
Status: implemented capture, preview and publication workflow. Each portfolio
update needs the operator's review of its specific sanitized batch; the general
implementation GO is not approval of unseen images.

## Goal

Expand Down Expand Up @@ -46,10 +46,19 @@ automation. They must not require model calls or AICs.

## Implemented pieces

- `Show-DeskMenu.ps1 -CaptureView Status|Model -CapturePng <path>` renders only
- `Show-DeskMenu.ps1 -CaptureView Status|Model|Ask|Monitor|Layouts -CapturePng <path>` renders only
the intended native form offscreen without activation, status timers, tray,
hotkeys, display discovery or action clicks. Private connection details are
omitted and the capture is explicitly labeled.
`CMDASK` shows the actual Ask page in Research mode with scope, attachments,
prompt and answer cleared; it reads no files or clipboard and sends no request.
`DISPLAYLAYOUTS` shows the actual layout controls without profile discovery,
hotkey registration, saved configuration changes or display Apply. Saved names
and display details are omitted, not replaced with invented live profiles.
The Command Center catalog keeps Status, Model and Monitor, replaces the
redundant standalone AirPlay image with Ask, and places layouts beside Monitor.
AirPlay remains in Workstation & AI control and its explicit capture route
remains available; it is no longer a default gallery capture.
- `Capture-Reclaim11Gui.ps1 -PublicPreview` renders the real WPF views without
collecting host inventory or connecting repair handlers. It is a UI preview,
not repair evidence.
Expand All @@ -73,6 +82,21 @@ automation. They must not require model calls or AICs.
desktop/mobile layouts, the portfolio's existing persisted theme toggle and
light print output. It exposes no local API or controls.

## ClipShare case study

ClipShare's implementation repository is private. The public showcase links
here for case-study notes and to the
[illustration source](../godbrain_core/showcase/clipshare-workflow.html),
not to inaccessible implementation files or private recipient links.

The illustrated workflow takes a completed Explorer file, copies it through
private staging and an atomic Inbox rename, then prepares browser-friendly
media on CPU. A hash-bound receipt identifies the prepared derivative; live
share state still determines whether its read-only recipient link is usable.
Owner administration stays local. Revocation stops future access, not copies
already downloaded. The image is a source-workflow illustration, not the native
sender UI, a live sharing demonstration or proof of external reachability.

## Naming

Desktop: **Command Center**, subtitle **Workstation & AI control**.
Expand Down
13 changes: 10 additions & 3 deletions godbrain_core/frontend/capture-workspace.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const root = path.resolve(directory, '..', '..');
const require = createRequire(import.meta.url);
const {chromium} = require(path.join(directory, '..', 'skill_lab', 'node_modules', 'playwright'));
const {values} = parseArgs({options: {image: {type: 'string'}, output: {type: 'string'}}});
assert.ok(['WORKSPACEMAP', 'WORKSPACEENV', 'WORKSPACEEVAL', 'IOSWORKFLOW'].includes(values.image), 'Unknown named capture');
assert.ok(['WORKSPACEMAP', 'WORKSPACEENV', 'WORKSPACEEVAL', 'IOSWORKFLOW', 'CLIPSHAREFLOW'].includes(values.image), 'Unknown named capture');
assert.equal(path.extname(values.output || '').toLowerCase(), '.png', '--output must name a PNG');
const origin = 'http://127.0.0.1:32168';
const sourceHashes = {};
Expand Down Expand Up @@ -40,7 +40,14 @@ try {
const page = await browser.newPage({viewport: {width: 1440, height: 1000}, serviceWorkers: 'block'});
const errors = [];
page.on('pageerror', error => errors.push(error.message));
if (values.image === 'IOSWORKFLOW') {
if (values.image === 'CLIPSHAREFLOW') {
const html = await source('godbrain_core\\showcase\\clipshare-workflow.html');
await page.route('**/*', route => {
assert.equal(route.request().url(), origin + '/');
return route.fulfill({contentType: 'text/html', body: html});
});
await page.goto(origin + '/');
} else if (values.image === 'IOSWORKFLOW') {
const docs = (await source('docs\\phone-control.md')).toString('utf8');
await source('scripts\\Start-RustDesk.ps1');
assert.ok(docs.includes('Run Script Over SSH') && docs.includes('RustDesk remote-desktop service ready'), 'Workflow evidence changed');
Expand Down Expand Up @@ -132,7 +139,7 @@ try {
await mkdir(path.dirname(path.resolve(values.output)), {recursive: true});
await writeFile(values.output, bytes, {flag: 'wx'});
const receipt = {id: values.image, sha256: sha256(bytes), at: new Date().toISOString(),
kind: values.image === 'IOSWORKFLOW' ? 'source-workflow-illustration' : 'live-sanitized-source-ui', sourceHashes};
kind: ['IOSWORKFLOW', 'CLIPSHAREFLOW'].includes(values.image) ? 'source-workflow-illustration' : 'live-sanitized-source-ui', sourceHashes};
await writeFile(values.output + '.receipt.json', JSON.stringify(receipt, null, 2) + '\n', {flag: 'wx'});
console.log(JSON.stringify({id: receipt.id, sha256: receipt.sha256, kind: receipt.kind, sourceBound: true}));
} finally {await browser.close();}
24 changes: 24 additions & 0 deletions godbrain_core/showcase/clipshare-workflow.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>ClipShare: a simple link, a nontrivial boundary</title>
<style>
*{box-sizing:border-box}body{margin:0;padding:56px;background:#0d1727;color:#eef4ff;font:20px system-ui}
small{color:#91bddc;letter-spacing:.1em}h1{font-size:52px;line-height:1.15;margin:20px 0}p{color:#b5c5d8;line-height:1.55}
.flow{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin:36px 0}
.step{border:1px solid #395370;background:#142339;border-radius:22px;padding:28px}.step h2{font-size:27px}
.number{font-size:30px;font-weight:700;color:#73d0cc}.detail{font-size:18px;color:#9adbd7}
.boundary{border-left:4px solid #73d0cc;padding:18px 26px;background:#162b3b;border-radius:0 18px 18px 0}
footer{margin-top:28px;color:#99abc0;font-size:16px}
@media(max-width:760px){body{padding:24px;font-size:18px}h1{font-size:36px}.flow{grid-template-columns:1fr}.step{padding:22px}}
</style></head><body>
<small>NATIVE WINDOWS / LOCAL FILES / ENGINEERING CASE STUDY</small>
<h1>Just send a link.<br>Make the boundary do the hard work.</h1>
<p>ClipShare turns a completed local file into media an ordinary browser can use, without opening the owner's private Library.</p>
<div class="flow">
<section class="step"><div class="number">01 / INTAKE</div><h2>Keep the original.</h2><p>Select in Explorer.<br>Copy into private staging.<br>Publish an entire Inbox file.</p><div class="detail">Real copy progress / atomic rename / no half-copied input</div></section>
<section class="step"><div class="number">02 / PREPARE</div><h2>Change only what is needed.</h2><p>Remux compatible video.<br>Convert other supported media on CPU.<br>Verify the resulting derivative.</p><div class="detail">Fast-start MP4 / MP3 / normalized PNG / no GPU worker</div></section>
<section class="step"><div class="number">03 / SHARE</div><h2>The selected file. Not the library.</h2><p>Copy its exact ready link.<br>Check live expiry and revocation.<br>Serve read-only media or a minimal player.</p><div class="detail">Hash-bound receipt / live share state / optional restricted HTTPS</div></section>
</div>
<div class="boundary"><strong>A receipt proves preparation. It does not grant perpetual access.</strong><p>Owner administration stays local. Revocation stops future access, not copies already downloaded. Public reachability needs its own external check.</p></div>
<footer>Source-workflow illustration, not the native sender UI or a live sharing demonstration.<br>Source: usrname1git/ClipShare, documentation commit 801d1e6. No private files, credentials or bearer links.</footer>
</body></html>
3 changes: 2 additions & 1 deletion godbrain_core/showcase/gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
const node=(tag,text,className)=>{const value=document.createElement(tag);if(text!==undefined)value.textContent=text;if(className)value.className=className;return value};
const container=document.getElementById('projects'),status=document.getElementById('status'),viewer=document.getElementById('viewer');
let projects=[];
const projectOrder=new Map([['workspace',0],['command-center',1],['ios-shortcuts',2],['remote-dashboard',3],['reclaim11',Number.MAX_SAFE_INTEGER]]);
function link(text,value){const url=new URL(value);if(url.protocol!=='https:'||url.username||url.password)throw new Error('Invalid project link');const a=node('a',text);a.href=url.href;a.rel='noopener noreferrer';return a}
function imageUrl(project,image){
if(!/^[a-z][a-z0-9-]{0,47}$/.test(project.id)||!/^[A-Z][A-Z0-9_]{0,47}$/.test(image.id)||!/^[a-f0-9]{64}$/.test(image.sha256)||
Expand Down Expand Up @@ -30,5 +31,5 @@ document.getElementById('search').addEventListener('input',render);
document.getElementById('close').addEventListener('click',()=>viewer.close());
fetch('./catalog.json',{cache:'no-store'}).then(response=>{if(!response.ok)throw new Error(`Catalog HTTP ${response.status}`);return response.json()}).then(data=>{
if(data.schema_version!==1||!Array.isArray(data.projects))throw new Error('Invalid project catalog');
projects=data.projects;render();
projects=[...data.projects].sort((a,b)=>(projectOrder.get(a.id)??4)-(projectOrder.get(b.id)??4));render();
}).catch(error=>{status.textContent=`Showcase unavailable: ${error.message}`;status.setAttribute('role','alert')});
18 changes: 15 additions & 3 deletions godbrain_core/showcase/projects.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
{
"id": "command-center",
"title": "Command Center",
"description": "Workstation and AI control in one native Windows interface: model settings, core services, remote access, AirPlay receiver lifecycle and Dell hardware display controls. All Command Center pages are collected here. Screenshots are sanitized UI captures, not live readiness or playback guarantees.",
"description": "Workstation and AI control in one native Windows interface: model settings, read-only research with attachments, core services, remote access, AirPlay receiver lifecycle, Dell monitor controls and saved display layouts. Sanitized captures show the actual pages, not live readiness, model answers or hardware-change guarantees.",
"url": "https://github.com/usrname1git/GodBrain",
"source_url": "https://github.com/usrname1git/GodBrain",
"cover": "CMDSTATUS",
"images": [
{"id":"CMDSTATUS","description":"Workstation and AI control; private connection details omitted.","capture_kind":"live-sanitized-ui"},
{"id":"CMDMODELS","description":"Model configuration and request-scoped reasoning controls; no generation started.","capture_kind":"live-sanitized-ui"},
{"id":"AIRPLAYCONTROLS","description":"AirPlay on Windows: implemented asynchronous Start/Stop/Open and exact-process ownership controls. ShairportQt supplies the receiver and AirPlay transport. Private sender details omitted; no receiver action or audible-delivery test performed.","capture_kind":"sanitized-source-ui"},
{"id":"MONITORCONTROLS","description":"Dell S2522HG brightness, contrast, color-preset and Dark Stabilizer controls. Production native Monitor page rendered without DDC queries or hardware changes; initial inputs are UI defaults, not measurements.","capture_kind":"sanitized-source-ui"}
{"id":"CMDASK","description":"Actual Ask page: optional scope, read-only file and CPU OCR attachments, Research text mode, Send and answer area. Inputs and answer are empty; no files read, clipboard accessed, request sent or model started.","capture_kind":"sanitized-source-ui"},
{"id":"MONITORCONTROLS","description":"Dell S2522HG brightness, contrast, color-preset and Dark Stabilizer controls. Production native Monitor page rendered without DDC queries or hardware changes; initial inputs are UI defaults, not measurements.","capture_kind":"sanitized-source-ui"},
{"id":"DISPLAYLAYOUTS","description":"Actual Display layouts page: saved-profile selection, capture, preview, apply, hotkey and recovery controls. Profile names and display details omitted; no layout discovery, hotkey registration, configuration write or hardware change performed.","capture_kind":"sanitized-source-ui"}
]
},
{
Expand Down Expand Up @@ -52,6 +53,17 @@
{"id":"IOSWORKFLOW","description":"Source-bound workflow illustration from phone-control.md and Start-RustDesk.ps1, not a captured iPhone screen. No keys, usernames, private addresses or live connection claims.","capture_kind":"source-workflow-illustration"}
]
},
{
"id": "clipshare",
"title": "ClipShare",
"description": "Send a completed local image, video or audio file as a browser-friendly link. Native Windows intake, CPU media preparation, hash-bound publication and live share revocation turn a simple action into a controlled workflow. The implementation is private; these links open public case-study notes and the illustration source, not a live sharing or external-reachability demo.",
"url": "https://github.com/usrname1git/GodBrain/blob/main/docs/Task1111.md#clipshare-case-study",
"source_url": "https://github.com/usrname1git/GodBrain/blob/51dd1d3d59b12782562b4c27a9df57f09ca853bc/godbrain_core/showcase/clipshare-workflow.html",
"cover": "CLIPSHAREFLOW",
"images": [
{"id":"CLIPSHAREFLOW","description":"Source workflow: completed file, atomic Inbox copy, verified CPU derivative and read-only recipient link. Not a screenshot of the native sender or a public-network test; no private media, credentials or bearer URLs.","capture_kind":"source-workflow-illustration"}
]
},
{
"id": "remote-dashboard",
"title": "Remote Dashboard",
Expand Down
50 changes: 50 additions & 0 deletions godbrain_core/showcase/showcase.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ test('actual static batch loads all bound images, filters, zooms and preserves b
const site = path.join(batch, 'site');
const catalog = await readProjectCatalogDirectory(site);
const summary = projects => `${projects.length} project${projects.length === 1 ? '' : 's'} / ${projects.reduce((sum, project) => sum + project.images.length, 0)} images`;
const commandCenter = catalog.projects.find(project => project.id === 'command-center');
assert.ok(commandCenter, 'Reviewed batch must include Command Center');
assert.deepEqual(commandCenter.images.map(image => image.id), ['CMDSTATUS', 'CMDMODELS', 'CMDASK', 'MONITORCONTROLS', 'DISPLAYLAYOUTS']);
for (const id of ['CMDASK', 'DISPLAYLAYOUTS']) {
assert.equal(commandCenter.images.find(image => image.id === id).captureKind, 'sanitized-source-ui');
}
const searchable = project => `${project.title} ${project.description} ${project.images.map(image => image.description).join(' ')}`.toLowerCase();
const reclaimed = catalog.projects.filter(project => searchable(project).includes('reclaim11'));
assert.ok(reclaimed.length, 'Reviewed batch must include Reclaim11');
Expand Down Expand Up @@ -70,6 +76,50 @@ test('actual static batch loads all bound images, filters, zooms and preserves b
assert.equal(createHash('sha256').update(actual).digest('hex'), new URL(src, origin).searchParams.get('v'));
}
assert.equal(await page.evaluate(() => document.documentElement.scrollWidth <= innerWidth + 1), true);
await page.getByLabel('Find a project').fill('Command Center');
await page.getByText(summary([commandCenter]), { exact: true }).waitFor();
const commandImages = page.locator('#projects article figure img');
assert.equal(await commandImages.count(), 5);
assert.equal(await commandImages.evaluateAll(images => images.some(image => image.src.includes('AIRPLAYCONTROLS'))), false);
const monitorBounds = await page.locator('figure:has(img[src*="/MONITORCONTROLS.webp"])').boundingBox();
const layoutBounds = await page.locator('figure:has(img[src*="/DISPLAYLAYOUTS.webp"])').boundingBox();
if (width === 1280) {
assert.ok(Math.abs(monitorBounds.y - layoutBounds.y) <= 1 && layoutBounds.x > monitorBounds.x, 'Layouts must be beside Monitor on desktop');
} else {
assert.ok(layoutBounds.y > monitorBounds.y && Math.abs(monitorBounds.x - layoutBounds.x) <= 1, 'Layouts must follow Monitor on mobile');
}
for (const id of ['CMDASK', 'DISPLAYLAYOUTS']) {
const image = page.locator(`figure img[src*="/${id}.webp"]`);
await image.evaluate(img => img.decode());
await image.locator('..').click();
await page.locator('#caption').getByText('sanitized-source-ui', { exact: false }).waitFor();
assert.ok((await page.locator('#full-image').getAttribute('src')).includes(`${id}.webp`));
await page.keyboard.press('Escape');
}
if (process.env.GODBRAIN_SHOWCASE_PROOF) {
await fs.mkdir(process.env.GODBRAIN_SHOWCASE_PROOF, { recursive: true });
await page.screenshot({ path: path.join(process.env.GODBRAIN_SHOWCASE_PROOF, `command-center-${width}.png`), fullPage: true });
}
const clipshare = catalog.projects.find(project => project.id === 'clipshare');
if (clipshare) {
await page.getByLabel('Find a project').fill('ClipShare');
await page.getByText(summary([clipshare]), { exact: true }).waitFor();
const article = page.locator('#projects article');
assert.equal(await article.count(), 1);
assert.equal(await article.getByRole('link', { name: 'Project', exact: true }).getAttribute('href'), clipshare.url);
const publicRepository = new URL(commandCenter.sourceUrl).pathname.split('/').slice(1, 3);
for (const name of ['Project', 'Source']) {
const target = new URL(await article.getByRole('link', { name, exact: true }).getAttribute('href'));
const parts = target.pathname.split('/');
assert.equal(target.hostname, 'github.com');
assert.deepEqual(parts.slice(1, 3), publicRepository, 'ClipShare links must not require access to its private implementation');
assert.equal(parts[3], 'blob');
assert.ok((await fs.stat(path.join(directory, '..', '..', ...parts.slice(5)))).isFile(), 'Public link target must exist in the source snapshot');
}
await article.locator('figure button').first().click();
await page.locator('#caption').getByText('source-workflow-illustration', { exact: false }).waitFor();
await page.keyboard.press('Escape');
}
await page.getByLabel('Find a project').fill('Reclaim11');
await page.getByText(summary(reclaimed), { exact: true }).waitFor();
await page.locator('figure button').first().click();
Expand Down
Loading