TiinyOS Upgrade Reset v6 - Windows and macOS - English

Purpose
Recover an eligible local paused-download or pending-download-cancellation record
without installing another TiinyOS package. This version can clear a safe record
beside unrelated historical installation or unknown records. Those historical
records stay in the live checkpoint and in the backup.

How to run
1. Extract this ZIP into a normal local folder.
2. Quit TiinyOS completely, including its system tray icon. Close any TiinyOS
   installer that has already finished. Do not interrupt an active installation.
3. Windows: double-click TiinyOS-Reset-Upgrade-Windows.cmd as the affected user.
   macOS: double-click TiinyOS-Reset-Upgrade-macOS.command as the affected user.
   Run as your normal user. Do not use sudo. Administrator rights, Python,
   downloaded modules and Internet are not needed.
4. Read the confirmation and choose Reset. Cancel is the default action.
5. Read the result, then reopen TiinyOS and check the update page.

What the result means
- Local download records cleared: N. These eligible records were removed.
- Historical records preserved: N. Unknown or installation-related evidence was
  kept. A preserved local upgrade lock may still restrict installation. This
  partial reset does not claim that every upgrade restriction has been removed.
- RESET_BLOCKED_ACTIVE_INSTALL_RECORD. The active record is an installation,
  reboot or unknown state. The tool did not clear it. Contact support with the
  displayed result; do not manually delete installation records.
- No eligible local download records need clearing. No profile files changed.
- A file, process or disk error stops the operation. If a backup path is shown,
  retain it. A partial-completion result needs support review before another run.

Backups and scope
Before profile changes, byte-exact originals of update-state.json and config.json
are saved in TiinyOS-Recovery under your Windows user folder or macOS home
folder, in reset-<time>-<random-id>, with a
manifest describing the changed files and preserved-record count. Backups may
contain private profile data. Keep them private; do not publish the files.

Profile location:
- Windows: %APPDATA%\tiiny-ai
- macOS: ~/Library/Application Support/tiiny-ai

The tool changes only eligible records in update-state.json and, when there is
no retained ownership uncertainty, the local hardwareUpgradeDeviceLock in
config.json. It advances stale-task fences. Unknown
history, protected installation receipts and prepared resource candidates are
preserved. A task linked to protected history is not removed.

Accounts, chats, models, packages, download-resume files and application binaries
are kept. No device API is called. Device-side jobs are not paused, cancelled,
resumed, installed or rebooted by this tool. Resetting a local download may mean
that a later update needs another download. Running the tool again after a
successful reset is normally a no-op.

This delivery contains the Windows and macOS v6 reset tools. The Windows CMD
payload is identical to the previous Windows-only v6 delivery. The macOS tool
uses the same selective-reset policy and preserves native JSON numeric values.
It contains no client installer. Earlier deliveries are unchanged. Validation
uses generated isolated profiles, not customer data. A specific customer's
recovery still requires their result.

Integrity
SHA256SUMS.txt contains SHA-256 checksums of both reset scripts and this README.
