# Atlas v08 · iteration 14

Feedback-informed correction of the frozen [daily-products-cold-9 first verdict](../../../../../reviews/v08/daily-products-cold-9/first-verdict.md). The builder had the prior iteration and review context. The independent verdict and its scores remain unchanged.

## Shipped result

Whole-workout **Save** now preserves which sets were actually recorded. In the reproduced task, four bench sets are completed and eight prefilled row/press sets remain planned. Saving, reloading, reopening, history and statistics agree on that distinction.

The same save options reach validation, batched preparation and sequential saving. Planned input remains a draft until its row is explicitly recorded. An edit to an already completed set still saves, and newly added retrospective actual sets still save. Explicit row recording and the linked activity completion flow keep their existing behavior.

The recovery screen now places its period-mean explanation beside the chart. At 320 px, the title stays on one row; the device action remains available through the existing health menu. On phones the selected score and timestamp share a line, with the three source values aligned underneath. Existing date range, history selection and source-return URLs are preserved.

## Before / after

Both captures use fresh isolated synthetic accounts created by the same unchanged fixture, the same clock and values, and the same visible actions. Account/entity IDs differ. The history summary's exercise-name enumeration can consequently differ in order; the exercises, set positions, values and task are the same.

| Observed result | Before | After |
|---|---:|---:|
| Completed / planned sets after Save and reload | 12 / 0 | 4 / 8 |
| History recorded count | 12 | 4, with 8 pending |
| Selected day's statistical set count | 12 | 4 |
| Selected day's volume | 4,437.5 kg·reps | 1,917.5 kg·reps |
| 320 px recovery heading height | 57.59 px | 44 px |
| Phone recovery summary height | 156.34 px | 109 px |
| 320 px, 7-day plot top | 450.94 px | 390 px |
| 320 px, 28-day plot top | 450.94 px | 418 px |
| 390 px, 7-day plot top | 437.34 px | 390 px |
| 28-day mean / change explanation | absent | “7日平均 · %較前段” |

The plot is 180 px high on phones and remains 220 px on desktop. The 28-day chart gains a 28 px legend area; the seven-day chart has no redundant legend. At 320×568, the initial viewport shows the trend's shape, with its lower axis reached by scrolling. The desktop seven-day composition stays unchanged.

[Pair index](pairs.json) lists 12 matched screenshot pairs:

- Recovery, 7 and 28 days: 1440×900, 390×640, 320×568.
- Four explicitly recorded sets before Save: 390×640.
- Saved history: 390×640.
- Reopened workout: 1440×900, 390×640, 320×568.
- Same-day statistics: 1440×900.

[Before observations](before-observations.json) and [after observations](after-observations.json) include actual IndexedDB set statuses, visible history and statistics text, viewport geometry and browser errors. All captures use the real app build and live test API; static route interception selects the frozen baseline or new build.

## Validation

- Seven targeted regressions exercise the real Training class, SetLogger handles and IndexedRepository: ordinary and during-training entry, batched and sequential save, reload, history, volume, failed-write retry, existing completed edits, incomplete planned input and a new retrospective actual set. The final regressions fail against the frozen baseline and pass with the fix.
- **72/72** related tests pass: the new regression suite plus recording, batch entry, history and activity/save-race suites.
- Typecheck and production build pass.
- The browser records the third and fourth sets through their actual controls, saves, reloads, reopens and visits same-day statistics.
- An actual IndexedDB `put` failure leaves persisted rows unchanged and retains the 70 kg completed-set edit and 47.5 kg planned draft. Reload and retry save the intended completed edit while retaining **4 completed / 8 planned**.
- Custom range → selected historical date → sleep source → Back → reload preserves the exact range and selected date.
- At 320 px, the device dialog opens through the existing health menu.
- Deployed recovery and workout audits report no automated findings; painted-background cases were inspected in the rendered captures.
- A fresh normal-service browser shows Google sign-in with no developer password field; the authenticated isolated preview loads the same app entry. The test account's server records retain **4 completed / 8 planned**.

See [affected browser replay](affected-replay.json), [test output](after-regression.log), [typecheck](typecheck.log), [build](build.log), [deployment](deployment.json) and [public responses](public-verification.json).

## Deployment

The existing main service on port 3001 and isolated preview on port 3015 retain their original processes and roots. Assets were copied first and index.html last; old assets remain available. The public entry and its JavaScript/CSS return 200.

Current entry:

- `/assets/index-BjgXFSHC.js`
- `/assets/index-BZbRL8tg.css`

The first direct urllib public request returned 403 after the copy; WebCodex fetch_url then observed the public entry and both named assets at 200. The first browser comparison also included Google's sign-in script on the unauthenticated page. The corrected assertion compares the application's own asset paths. Both failed probe outputs remain alongside the successful verification.

## Reproduction and provenance

- [Capture script](capture.py): `python capture.py before <baseline-build>` and `python capture.py after <new-build>`.
- [Fresh fixture helper](fresh-fixture.py): supply a new absolute private output directory. It reuses the isolated test service and creates its own synthetic account, IndexedDB and authentication state.
- [Affected replay](affected-replay.py): operates the after fixture, including the actual failed storage write.
- [Deployment script](deploy.py): normal copying plus verification; `--verify-only` rechecks an already deployed build.
- [Source patch](source.patch), [changed files](changed-files.json), `source-before/` and `source-after/` preserve the exact changes over the dirty working tree.
- [Registration](registration.json) and `input-skill/` preserve the 22-file shipping input and actual-read provenance.

Initial harness timing and fixture-label probes are retained. Two existing nearby tests failed identically against the frozen baseline: they expected two row controls and a deletion icon as the button's sole child. Their assertions now check the actual index record action, single edit control, and labeled delete action. The frozen failure, first adjustment and final passing outputs are all retained. No Atlas Git staging, reset or commit was performed.
