TALENTLENS — PHASE 8 AUDIT / RELEASE BOUNDARY

PRE-IMPLEMENTATION STACK AUDIT
- C# 5 / .NET Framework WinForms, Windows x64 memory reader.
- Source ZIP plus .cmd calling built-in csc.exe; no installer/updater existed.
- Version duplicated in main title, exe name, mutex and launcher.
- XML DataSet workspaces under LocalAppData/TalentLens/workspaces; Targets
  + workflow metadata + notes/history persisted atomically. Saved searches
  XML, custom role TSV and portrait folder file in the same user-data root.
- No activation/payment server, private key, telemetry or API configuration.
- BackgroundWorker reads FM, timer detects processes. Reader errors showed
  raw exception messages; action/startup text files contained technical detail.
- Prior release launcher multi-file guard was already fixed and is preserved
  by replacing developer build workflow with dedicated build scripts.

IDENTITY AND BUILD
Version.txt is authoritative. Build.ps1 generates BuildInfo.g.cs and NSIS
Version.nsh. TalentLens.exe has title/product/company/version metadata,
asInvoker manifest and supplied TL icon in Win32 and managed resources.
TalentLensSetup.exe is a genuine compiled NSIS Windows installer, not a
renamed ZIP. Per-user LocalAppData/Programs/TalentLens install; Start Menu
and optional desktop shortcuts; normal upgrade/uninstall; exact-file
removal, no recursive program or user-data deletion. Stable Local mutex
prevents concurrent installed versions and coordinates installation.
Developer output is separate; developer installers are refused.

USER DATA AND RECOVERY
AppPaths centralises existing paths without relocating/deleting lists.
Preferences have schema 1, atomic writes, backups and corrupt-file quarantine.
Future/unreadable preferences are retained; safe defaults warn the user.
Before a new version marker is committed, existing metadata is exported
when accessible. Three newest version backups are retained by time.
Export backup uses a whitelist: preferences/searches/roles/portrait setting
and workspace XML. It does not export the full FM database, licences, device
identity or logs. There is no automated import in this release.
Old custom role load errors are logged/redacted, retaining the source file.

FIRST RUN / SETTINGS
Welcome, actual FM connection test, workflow basics and ready steps. Ready
and completion-from-ready require a validated player snapshot. Set up later
is explicit. Onboarding completion persists; Settings can rerun/reset it.
Settings sections: General, FM, Appearance, Updates, Licence, Diagnostics,
About. Existing face library settings remain available. New system UI uses
the dark teal component style. Main window is clamped to the working area.

LICENSING
Generic HTTPS activate/validate/deactivate/status interface, opaque keys,
app-scoped random-installation hash, central feature IDs/access service.
RS256 JWS verification with public RSA >=2048 using framework crypto. Issuer,
audience, device, signed times and permissions checked before caching.
CurrentUser DPAPI protects cache; private issuer keys are never shipped.
Offline deadline/expiry are server-signed; temporary outages use valid cache.
Invalid refresh/revoked/expired results remove enforced grants. Invalid new
activation/write failure does not silently replace a good activation.
Device allowances are claims, not UI hardcodes. No customer portal or checkout.
The shipped beta is an explicit public preview with all scouting features;
it does NOT report an activated/paid licence. Production/stable defaults to
enforcement, even if configuration disappears, and build tooling refuses
stable packaging without configured services/public keys. Mock issuer and
transport code exist only in excluded test sources.

UPDATES
Background checks after UI usability, optional auto-check, stable/beta UI.
Signature-authenticated JWS feed and exact SHA/size checks for full setup.
TLS 1.2, normal certificate trust, no redirects, bounded responses/downloads.
Progress, Later, verified staging, restored ready state, re-verification at
Restart & Update. No custom binary patching, forced update or arbitrary URL
execution. NSIS performs install/upgrade; failures leave installed app intact.
Publisher manifest-signing script uses a real Windows certificate store key
without exporting it; no private key or fake production certificate is made.

LOGGING / CONNECTION
Structured JSONL INFO/WARN/ERROR (DEBUG opt-in); one current + three rotated
logs, 1 MiB threshold per file. Event/version/channel/OS/count and exception
method/type only. Exception messages, paths, keys, tokens and player records
are omitted. Copy/export diagnostics is user-initiated; no automatic upload.
Friendly connection classifications, real process/read/record states,
troubleshooting with PASS/WARNING/unvalidated statuses. Optional club checks
never guess a club. Controlled 5–60 second detection/retry backoff; unsupported
builds need a manual compatibility update instead of repeated memory reads.
Existing reader hashes/offsets and scoring algorithms remain unchanged.
Save change inside a running process is not reliably detected; manual refresh
is documented and invalidates derived data/workspace/comparison state.
Action errors are nonfatal recovery dialogs; global fatal error offers logs,
diagnostics and restart. Restart waits for the previous same executable to
exit before taking its mutex. Service callbacks tolerate closed views.

SECURITY REVIEW
No hardcoded production endpoint, API secret, private token, certificate or
private signing key in app sources/configuration. No telemetry. No raw game
memory upload. No privilege elevation, memory writes or injected code.
Process.Start is limited to fixed app/log paths or a verified staged setup;
no shell command is assembled from user input. XML readers prohibit DTDs and
external resolvers; network bodies, licence cache, roles and preferences are
bounded. Source-based test keys are ephemeral and excluded from release.
Public service config is deployment trust configuration, not a secret; a
local user who can replace app binaries/configuration remains outside any
claim of invasive tamper-proof DRM. Device ID is app identity, not hardware.

VERIFICATION PERFORMED
Production C# 5/x64 compilation with icon/resources/manifest; NSIS setup
compilation; PE identity/resource inspection; prior recruitment/workspace/
profile/portrait/search/Discover/Squad/decision checks; RSA signed activation,
offline/restart/device/entitlement/deactivation and failure fixtures; update
signature/channel/version/hash/tampered-staging checks; backup exclusions,
corrupt preferences, log redaction/rotation and reconnect backoff. New system
UI at 1366x768 working area, 1920x1080 and 2560x1440 plus existing UI suites.
Mono/Xvfb testing skips only the Windows cue-banner P/Invoke in its test copy.

NOT CLAIMED AS VERIFIED / PUBLISHER WORK REMAINING
- Clean Windows install, Start Menu/taskbar, upgrade and uninstall exercise.
- Native Windows .NET compilation/runtime and CurrentUser DPAPI round trip.
- Live FM process open/close/reconnect and actual save/player validation.
- Hosted HTTPS activation service, key issuance and live device management.
- Hosted signed update feed, real download/install/restart end-to-end.
- Real Authenticode certificate and publisher trust/SmartScreen acceptance.
These cannot be fabricated by client code. This is a usable unsigned local
beta with configured service interfaces, not a live paid licensing business.
