# Training Atlas — iteration 16

This implementation follows frozen `daily-final-cold-12` (Atlas 87). The frozen review and its original evidence remain unchanged. This folder records implementation and operated evidence; it assigns no replacement review score.

## Result

The first offline set write now works from a cold editor. Partial session saving preserves the active workout and its Continue entry. Daily journal values occupy one compact wrapping line. Recorded-set corrections use the visible label 儲存. Recovery date labels retain separation on a 390 px viewport. An unplanned Today card occupies two dashboard rows, retaining the pale/forest contrast and Start action.

## Changes and evidence

| Cold-review finding | Implemented behavior | Evidence |
| --- | --- | --- |
| First offline write rejected; reconnect reused the rejected validator import | Storage imports the same write validators statically, making them available before the offline action | `screens/before-first-offline.png`, `screens/before-reconnect-retry.png`, `screens/final-first-offline-record.png` |
| Saving 3 recorded / 9 planned sets closed the workout | 儲存訓練 keeps the session active while planned sets remain; existing More menu exposes explicit 結束訓練 | `screens/final-offline-partial-save.png`, `screens/final-reconnected-today-continue.png`, `screens/final-explicit-finish-390x420.png` |
| Recorded-row action still said 完成 while editing | Previously recorded rows show 儲存 when dirty | `screens/after-corrected-set-action.png`, `screens/final-corrected-set-reloaded.png` |
| Gray native alcohol buttons; tall numeric tiles | Existing Button styling, 44 px answer targets, compact wrapping diary values | `screens/before-diary-form-390x640.png`, `screens/after-diary-form-390x640.png`, `screens/after-diary-values-reload-390x640.png` |
| Last two recovery dates overlapped | Tick count accounts for spacing after integer-index rounding | `screens/before-recovery-axis-390x640.png`, `screens/after-recovery-axis-390x640.png`, `date-axis-spacing.json` |
| Empty pale Today card dominated the first screen | With no active workout and no actual plan, card height follows two dashboard rows; active workout retains its actual exercise preview | `screens/before-today-matched-1440x900.png`, `screens/after-today-matched-1440x900.png`, active-Today pair |

The matched Today capture uses the same synthetic account and 1440×900 viewport. Height changes from 414.546875 to 293.546875 px: 121 px, or 29.2%. The normal Today route is active; the pointer is outside navigation. The earlier apparent 課表 highlight was hover. No workout or metric was invented.

The first diary card measures 123.59 px after compaction. The previous recovery-axis pair overlapped by 5.18 px; the final four date labels have at least 37.65 px between their boxes.

## Operated workflow

A fresh synthetic account supplied a workout with two recorded and ten planned sets. In the candidate, the first offline third-set save changed progress to 3/12 and showed 離線 · 已存本機 (1). Global Save navigated to history while keeping the nine planned rows. After reconnect and reload, Today offered 繼續訓練. Reopening recovered third-set weight 67.5, reps 7 and RPE 8, plus the unrecorded fourth-set draft 62.5 × 9. Changing the recorded third-set reps to 6 and using its visible 儲存 action persisted through another reload.

The explicit 結束訓練 command then completed the synthetic workout. History still showed three recorded and nine planned sets; after reloading Today the Continue entry was gone. `final-workout-preserved.json` records both stages. The journal form was also actually edited and reloaded: energy 7, fatigue 4, stress 5, alcohol false, and the note 測試日記：晚間散步，保留明天的觀察。 remained present.

The offline validation repair removes the raw module-import error seen under navigation in the frozen run. The before error and reconnect failure remain in the evidence. No generic error state was fabricated to claim a broader error-layout result.

## Build, checks and deployment

- `npm run build -- --outDir /tmp/atlas-v08/dist-iteration16-final`: passed (`build.log`).
- `npm run typecheck`: passed (`typecheck.log`).
- Existing `training-save-planned`, `setlogger-recording` and `line-chart-design` tests: 23/23 passed (`tests.log`). The partial-save expectation now matches active-session semantics.
- Normal `scripts/publish-main.sh /tmp/atlas-v08/dist-iteration16-final`: exit 0 (`deployment.log`). The published entry is `/assets/index-Cz645dW2.js`.
- Public logged-out check: https://app.training-atlas.workers.dev/ loaded that entry and the Google login surface (`screens/public-login-deployed.png`).

The frozen before build is `/tmp/atlas-v08/dist-iteration15-cold12`. Captures used isolated synthetic accounts through the normal API, with local origins 4400/4401/4402 and service workers blocked. No personal account was authenticated for public checks.

## Handoff

`modified-paths.json` lists the exact eleven product paths. `implementation.patch` compares each captured pre-edit source with the final source, including the new BodyJournalForm stylesheet; `source-before/` and `source-after/` retain those files. No broad product staging, reset, or commit was performed.

The retained attempts include the real frozen offline failures, the earlier candidate save that succeeded before a stale harness locator timed out, a matched-capture attempt that still contained prototype CSS, and a harness click on the global More drawer before identifying the workout-specific 更多操作 button. Their action trace and images preserve the observed sequence. Final matched images have the `-matched-` names; failed capture attempts are named `attempt-` or explicitly marked prototype.
