Local Store shipping revision — 0.1.0
Manifest opts into supported launch:"window". The gateway only offers a same-
document loopback action in a top-level document; opaque embedded frames hide
the action and show an honest desktop-update warning. No sandbox/auth/CSRF/CORS
relaxation is made. Public package/download and actual updated-host desktop
acceptance remain unverified; historical candidate checks below are not a pass
for these changed shipping bytes. Original worker project/data remain untouched.

2FAuth — candidate 1.0.1-rc.1

Original Laravel/Vue two-factor account manager. Display name: 2FAuth.
Store slug and public path: 2fauth-clawbox, /apps/2fauth-clawbox/.
This is a review candidate, not a claim of completed Store acceptance.

Install and start
Linux x86_64, Node >=22. From a fresh package extraction:
  npm install --omit=dev --no-audit --no-fund
  npm start
The postinstall verifies .clawbox-local/php-dependencies.tar.gz against
scripts/clawbox/dependencies.json and composer.lock BEFORE extracting production
PHP sources into vendor/. Every extracted file is checked. No checkout vendor,
Composer cache, owner data or system PHP is required. No development PHP packages
or vendor/bin executables are installed. Retain all dependency licenses/sources.

First start downloads FrankenPHP 1.13.6 (177742640 bytes), containing PHP 8.5.13.
The mandatory SHA-256 is:
f0639ab1cdb0dd8c311c1d37b3278952b3c2b328106e09672b23f344f01d110a
The official release API and cryptographically verified Sigstore attestation
agree with downloaded bytes; see notices/PROVENANCE.txt. A fresh isolated build
uses the same pin. Startup checks PHP >=8.4.1 and required extensions. The prior
unverified 1.14.0 pin is not used. Download verification cannot be disabled.
Later starts use the verified external runtime cache offline. Optional external
integrations need a network. Upstream removal/change of pinned bytes causes an
explicit failure, never automatic adoption of a new hash.

PORT takes precedence over CLAWBOX_PORT, then 4436. PORT=0 chooses a spare port;
inherited 3005 is replaced with 4436. Both variables agree inside each process.
Public and private listeners bind 127.0.0.1. Use the public URL printed by:
  PORT=0 CLAWBOX_DATA_DIR="$TEST_STATE_DIR" node launch.mjs
TEST_STATE_DIR must be an absolute, fresh synthetic directory outside the package.
Never test against the owner's default state. After migrations, initialization,
key validation and health checks, STORE_READY prints port, url, localURL,
backendURL, dataDir and pid. Open url/localURL, not diagnostic backendURL.
An HTTP 200 or readiness line alone does not establish functional acceptance.

First use and persistence
Create your administrator in the original setup form. No account is shipped.
New vault encryption is enabled; outbound password-reset email is not configured.
State defaults to $XDG_DATA_HOME/2fauth-clawbox or
$HOME/.local/share/2fauth-clawbox. CLAWBOX_DATA_DIR overrides it.
Back up the ENTIRE state directory: app.key, database.sqlite, initialized,
storage/ (including Passport keys), local-port.json and runtime/.
Stop with SIGTERM/SIGINT and await exit before replacing the release. Startup
refreshes public symlinks and configuration paths while preserving vault keys,
database and sessions. Missing keys on an existing vault fail closed. A nonempty
database lacking initialized also fails; restore the original initialization
record and keys from backup. No key is silently regenerated over that database.
A corrupt cached runtime fails closed. After stopping the app, remove only that
runtime file to allow a verified download. Never delete vault state to repair it.
Only remove a stale launcher.lock after confirming its recorded process stopped.

Publisher selection contract
  npm run package:store -- --output "$RELEASE_ARTIFACTS/2fauth-1.0.1-rc.1.tar.gz"
Output must be outside the input tree and must not already exist. Selection uses
working-tree bytes, including nonignored untracked files such as favicon.ico.
Git ignore rules apply even to tracked files (check-ignore --no-index). Then
exclude node_modules, vendor, .git, .next, dist, build, .clawbox, .env*, *.pem and
*.key. The checked-in .gitignore excludes tests/docs and disposable build/cache
areas, but explicitly includes .clawbox-local/assets, build-info.json and the
verified PHP dependency archive. Production dependencies are restored by the
declared install step, without checkout vendor files.
The deterministic root-level gzip/ustar archive enforces <=50 MiB compressed,
<=256 MiB raw INCLUDING tar overhead, <=10000 entries, and checks decoded hashes,
paths, modes, links, state files and known credential patterns. The sidecar
<archive>.json records SHA-256, exact file inventory, payload and archive sizes,
input commit/tree and whether tracked bytes were dirty. Source/dependency archives
are recursively audited too. The public php-jwt README example-key exception is
byte-exact and documented in provenance; it never permits owner secrets.
This implements the task's publisher selection rules. The protected publisher
implementation was not read or modified. Parent must compare its actual selected
path/hash manifest with this sidecar; a Git tar alone is not equivalent evidence.

Source rebuild and license preservation
LICENSE, upstream notices, original artwork and the untracked favicon.ico remain
unchanged. Root favicon.png is byte-identical official 2FAuth artwork.
Regenerate corresponding source after staging all scoped production files:
  python3 scripts/clawbox/source.py --output "$RELEASE_ARTIFACTS/corresponding-source.tar.gz"
Review the output before replacing the tracked corresponding-source.tar.gz.
Its root retains the upstream source/npm/Composer lockfiles. release/ contains
the production overlay and lockfiles. Runtime version and SHA are synchronized
and checked; repeated regeneration also repairs an already regenerated archive.
In a fresh disposable extraction (never in this shipping checkout), run:
  CLAWBOX_APP_ID=2fauth-clawbox node scripts/clawbox/build.mjs
The build downloads and verifies FrankenPHP, Composer 2.11.3 and the bundled
component archive, installs locked npm dependencies with integrity checks and
Composer production dependencies, and builds the original Vue UI. CPU parallelism
is limited to at most two. It reads no sibling checkout. Download/build caches
stay inside that disposable extraction. Internet access is required.
Map .clawbox-local/build to shipping .clawbox-local/assets; package production PHP:
  node scripts/clawbox/dependencies.mjs pack "$SOURCE_ROOT" "$RELEASE_ARTIFACTS/php-dependencies.tar.gz"
Review/copy the resulting archive to .clawbox-local/php-dependencies.tar.gz and
its .json sidecar to scripts/clawbox/dependencies.json. Do not include build caches.
Publish corresponding source with equivalent access and retain dependency sources
and licenses. Upstream's AGPL LICENSE versus MIT Composer metadata discrepancy is
preserved, not resolved by relicensing. See notices/PROVENANCE.txt.

Review and host handoff
See repository docs/STORE-ACCEPTANCE.md for historical evidence and this repair's
handoff. Exact candidate hashes and executed results are supplied separately in
the release evidence, so this README does not turn a pending gate into a pass.
The public Store metadata and /package endpoints returned 404 on 2026-11-30.
No public release bytes are substituted with this local candidate.
Shared launch run-8yq91w19 remains protected/UNDEPLOYED. Parent must review/deploy
that separate repair and demonstrate actual installed Store sandbox -> supported
normal-browser handoff -> setup/login -> OTP writes. Preserve destination
validation, CSP, CORS, auth and CSRF. This app cannot remove an iframe sandbox.
No merge, push, publication, deployment, protected-host edit or owner-state change
is authorized or performed by this repair.
