Glance — Store release candidate

Runtime and installation
Node.js >=22, Linux x86_64. The existing Go backend and upstream embedded UI are bundled in runtime/glance; no Go installation, npm dependency, network download or install-time build is needed. Run npm start (or sh scripts/clawbox/start.sh). npm install --omit=dev --no-audit --no-fund is optional; there are no npm dependencies, so no lockfile is needed.
Display name: Glance. Production port: 4430. Installed prefix: /apps/glance-clawbox/. A request to / returns 404 by design.

Ports and launcher contract (t1)
Both PORT and CLAWBOX_PORT unset: use manifest port 4430. One set: use it and normalize both. Both set: they must be identical decimal strings. Values must be 0 or 1024..65535, excluding 3005. Conflicts, empty/invalid values and inherited 3005 fail before binding or touching state; callers must explicitly supply both correct app ports. Tests must use spare ports, never 4430 or 3005. PORT=0 CLAWBOX_PORT=0 requests a dynamically assigned loopback listener; both are normalized to its concrete port before the backend is spawned. The Go child receives both variables set to its distinct private backend port.
CLAWBOX_DATA_DIR must be absolute and outside the replaceable release tree, including through symlinks. Default: $XDG_DATA_HOME/glance-clawbox, otherwise $HOME/.local/share/glance-clawbox. Existing data is preserved. An exclusive launcher-lock.json prevents concurrent use. A dead launcher lock is reclaimed; a still-live backend blocks restart. Inspect an invalid lock before removing it manually.
local-port.json retains the backend port. If another service occupies it, a new spare port is persisted. A bind race fails closed; a foreign server cannot satisfy readiness. runtime.json must identify this exact child, port and URL, and its real setup/login form must respond successfully. GLANCE_STARTUP_TIMEOUT_MS accepts 1000..180000 (default 30000). Child failure or readiness timeout exits nonzero and closes the gateway. SIGTERM/SIGINT drains the child (7-second kill fallback), closes listeners and removes the launcher lock. SIGKILL cannot guarantee child cleanup; stop any surviving backend before restarting.
On success exactly one line begins STORE_READY followed by JSON: {port,url,localURL,backendURL,backendPort,dataDir,pid,backendPid}. url is the public landing URL; localURL is the same public origin and prefix with ?__clawbox_local=1; backendURL is diagnostic only. The earlier CLAWBOX_URL/CLAWBOX_PORT lines belong to the private Go child, not the Store listener. Never use those lines to launch the Store app.
For isolated verification, create an external synthetic state directory and run PORT=0 CLAWBOX_PORT=0 CLAWBOX_DATA_DIR="$CLAWBOX_RUN_ARTIFACTS_DIR/manual-state" node launch.mjs from this project root. Keep the process running until checks finish; send SIGTERM and wait for exit.

First use, configuration and persistence
Open localURL from STORE_READY in a normal browser on this device. Create a local account: username 3–50 letters/digits/underscores/dashes; password 12–72 bytes. Then sign in using upstream Glance authentication. The adapter adds this first-run setup screen; it does not create a separate administrator role or ship credentials.
Setup writes private glance.yml with a bcrypt password hash and generated authentication secret. The initial page contains calendar, clock, bookmarks and a to-do list. Task add/edit/check/delete uses the real authenticated backend, with revision checks and per-user persistence under todos/. Edit glance.yml to configure pages, feeds and widgets; restart to apply. Preserve auth and back up the entire state directory. There is no remote password recovery service. Runtime port/lock files are launcher metadata, not dashboard configuration.
Core local setup and task use work offline; feeds and other network widgets need their configured services. The archived docs/configuration.md describes upstream configuration. No other-app initial-password file is used.

Browser integration boundary
Listeners bind only to 127.0.0.1. Host/Origin checks, upstream authentication and response headers are retained. No CORS exception, CSP weakening or sandbox escape is added. The landing page automatically continues only in a normal top-level browser with storage access; it otherwise shows a local URL to copy into a fresh browser address bar. Its ordinary link cannot promise escape from an HTTP or iframe sandbox.
The shared launch repair run-8yq91w19 is undeployed. No supported installed API for opening an unsandboxed browser has been supplied to this worker; no speculative manifest field is used. t3 must verify the installed Store's actual local-browser launch mechanism, correct port environment and sandbox behavior after the integration owner deploys a supported repair. This manual fallback is not proof of a working Store launch button.

Reproducible publisher package (t1 contract)
Stage/commit intended release files first. Run:
  node scripts/clawbox/package.mjs --output .clawbox/releases/glance.tar.gz --report .clawbox/releases/glance.json
Output files must not exist. Outputs must be outside publisher input; .clawbox is excluded. The CLI reads Git-listed working-tree files, retains executable Git modes and includes exactly those files except components matching node_modules, .git, .next, dist, build, .clawbox, .env*, *.pem and *.key. Untracked files (including favicon.ico) remain untouched and are not packaged. Relative symlinks must resolve to a packaged file inside the project. Absolute/escaping source or cache dependencies, index conflicts, missing mandatory materials and changed provenance hashes fail.
The archive is a deterministic gzip-compressed ustar with files at its root, sorted paths, zero timestamps/owners and canonical Git file modes. It enforces <=50 MiB compressed, <=256 MiB file bytes and tar bytes, and <=10000 files. No generated release archive enters its own input. The CLI uses Node builtins plus Git; no new dependency is installed.
Success prints STORE_PACKAGE plus JSON {archive,report,fileCount,rawBytes,tarBytes,compressedBytes,sha256}. The report is schemaVersion 1 with format, archive basename, Git revision, dirty flag, exact exclusions and limits, fileCount, rawBytes, tarBytes, compressedBytes, sha256, excludedFiles and files [{path,mode,bytes,sha256}] (symlinks have link instead of sha256). Failures exit 1 with a diagnostic and no success line. A report-write failure can leave the already written archive; choose fresh output names. Reports describe packaging, not functional acceptance. Two invocations with unchanged input produce identical archive bytes; report revision/dirty fields describe the checkout at invocation.

Source, build and licenses
See runtime/PROVENANCE.json for exact binary/source/icon hashes and build provenance. corresponding-source.tar.gz contains the supplied modified upstream Go source, original documentation/manifests/go.sum, a vendored dependency tree and readable Store wrapper sources under store-wrapper/. It is served at /apps/glance-clawbox/corresponding-source.tar.gz. Preserve LICENSE (AGPL), GO-LICENSE.txt, THIRD-PARTY-NOTICES.txt and DEPENDENCIES.json. Modified source must remain available to users of the distributed application; the publisher must retain the source download and provide equivalent source access alongside the binary. Dependency inventory records original module ZIP hashes; those ZIPs were checked during preparation, while build-required source is bundled as vendor/ in the corresponding source archive.
Rebuild with Go 1.27.4 and tar, using a new scratch directory outside publisher input:
  GO=go GLANCE_BUILD_DIR="$CLAWBOX_RUN_ARTIFACTS_DIR/rebuild" sh scripts/clawbox/build.sh
The script uses vendored source offline, CGO_ENABLED=0, linux/amd64, GOAMD64=v1, -trimpath, -buildvcs=false and two workers. It writes a scratch binary, leaves the shipped binary untouched and prints its SHA-256 for comparison. No absolute source/cache path is required at runtime. Upstream's historical build instructions inside the source archive are retained; this root recipe is the shipping recipe.

Acceptance and handoff
This worker's isolated implementation checks are not merged or installed Store acceptance. t2 owns tests/clawbox/ and docs/STORE-ACCEPTANCE.md and must request the contracts above before writing its harness. t2 was pending with no sibling run ID during t1, so no agreed t2 harness command was available to invoke. t3 owns combined regression/browser acceptance, exact public-release download checks, and the authorized publication handoff. No public package URL was supplied to t1; no public download, Store installation, publication, deployment or public icon deployment is claimed here. The historical docs/STORE-RELEASE.json reference was stale and is not an acceptance artifact in this shipping tree.
