Initialize Workout Tracker app shell
This commit is contained in:
@@ -0,0 +1,97 @@
|
||||
# Exercise Tracker decisions
|
||||
|
||||
This file records durable accepted decisions. Implementation detail and temporary status belong in `PROJECT_OVERVIEW.md`, `CURRENT_STATE.md`, or `HANDOFF.md`.
|
||||
|
||||
## ADR-001: Repository evidence is authoritative
|
||||
|
||||
- Status: Accepted
|
||||
- Date: 2026-10-18
|
||||
|
||||
### Decision
|
||||
|
||||
For claims about current state, current code and configuration take precedence over maintained documentation, task requirements, handoff snapshots, and assumptions from earlier chats, in that order. Conflicts are reported rather than silently resolved from stale context.
|
||||
|
||||
### Context
|
||||
|
||||
The project may be developed across multiple conversations, people, machines, or deployment checkouts; conversational context can become stale.
|
||||
|
||||
### Consequences
|
||||
|
||||
Agents inspect repository evidence before acting. Durable facts are maintained in repository documents; `HANDOFF.md` remains supplementary and replaceable.
|
||||
|
||||
## ADR-002: Preserve existing behavior by default
|
||||
|
||||
- Status: Accepted
|
||||
- Date: 2026-10-18
|
||||
|
||||
### Decision
|
||||
|
||||
Existing functionality, routes, controls, permissions, data flow, and public behavior are preserved unless an accepted task or explicit user instruction requests a behavioral change. Agents do not invent product requirements or perform unrelated refactoring.
|
||||
|
||||
### Context
|
||||
|
||||
Repository work must remain reviewable and scoped.
|
||||
|
||||
### Consequences
|
||||
|
||||
Changes stay within accepted scope and avoid accidental product redesign.
|
||||
|
||||
## Maintenance workflow
|
||||
|
||||
1. Discuss/receive requirements.
|
||||
2. Record important accepted durable decisions here.
|
||||
3. Record accepted implementation scope and acceptance criteria in `TASKS.md`.
|
||||
4. Implement and test.
|
||||
5. Update `CURRENT_STATE.md`.
|
||||
6. Refresh `HANDOFF.md` when transferring work.
|
||||
|
||||
## ADR-003: Offline local application architecture
|
||||
|
||||
- Status: Accepted
|
||||
- Date: 2026-10-18
|
||||
|
||||
### Decision
|
||||
|
||||
Build Workout Tracker with React, Vite, React-Bootstrap, and IndexedDB for persistent local data. The application has no backend, authentication, or cloud dependency.
|
||||
|
||||
### Context
|
||||
|
||||
These are explicit requirements from the project owner and `docs/SPEC.md`.
|
||||
|
||||
### Consequences
|
||||
|
||||
The UI must work from locally available data, and persistence and backup flows must remain local. Implementation details and library choices beyond the named stack remain open.
|
||||
|
||||
## ADR-004: Documented routine is the initial-programme authority
|
||||
|
||||
- Status: Accepted
|
||||
- Date: 2026-10-18
|
||||
|
||||
### Decision
|
||||
|
||||
Use `docs/WORKOUT_ROUTINE.md` as the authoritative source for the initial exercise programme. Do not invent, remove, or change prescribed exercises. Use `docs/SPEC.md` for application behavior.
|
||||
|
||||
### Context
|
||||
|
||||
The project owner identified these documents as authoritative; both are now present.
|
||||
|
||||
### Consequences
|
||||
|
||||
Keep the bundled seed distinct from local edits and historical records. Resolve programme wording differences in favor of `docs/WORKOUT_ROUTINE.md` for initial prescriptions.
|
||||
|
||||
## ADR-005: Seed, edits, and history have separate authority
|
||||
|
||||
- Status: Accepted
|
||||
- Date: 2026-10-18
|
||||
|
||||
### Decision
|
||||
|
||||
Bundle the documented programme as versioned seed data, initialize a new local store from it once, and preserve subsequent user edits and historical workout data through app updates. Keep exercise-library content independent from prescriptions and logs. React components access IndexedDB through a storage adapter.
|
||||
|
||||
### Context
|
||||
|
||||
`docs/SPEC.md` requires editable routines, immutable historical performance in substance, offline use, and a tested local storage boundary.
|
||||
|
||||
### Consequences
|
||||
|
||||
Routine versions and dated records require distinct identities. Reseeding and schema migrations must never silently replace user edits or completed performance.
|
||||
Reference in New Issue
Block a user