Files
arah2/.planning/STATE.md
T

97 lines
5.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
gsd_state_version: 1.0
milestone: v1.x
milestone_name: routing-engine-upgrades-and-extras
status: executing
stopped_at: "08-05 executed (D-03 optimality gate GREEN after the gate caught the four-family ALT steering returning suboptimal routes — fromTable families removed from the potential, Rule 1; the CPU campaign measured HONEST FAILs: 25-route p95 152.788 ms / extended 185.692 ms vs the 8 ms budget; the pre-committed L=32 ladder rung measured worse and stopped; c3 NOT retired — every record carries the quoted post-ALT truth; NEXT: maintainer decisions — R2 upload (deploy-time) + the SC-1 escalation track: direction-split potentials / CH / Workers Paid reversal / keep c3)"
last_updated: "2026-10-25T12:09:32.000Z"
last_activity: 2026-10-25
progress:
total_phases: 4
completed_phases: 1
total_plans: 5
completed_plans: 5
percent: 100
---
# Project State
## Project Reference
See: .planning/PROJECT.md (updated 2026-10-22)
**Core value:** A user finds a local destination via Telegram and gets there with reliable turn-by-turn guidance — tracked by nothing beyond what they explicitly opted in to.
**Current focus:** Phase 08 — ALT landmark preprocessing (routing backend v2)
## Current Position
Phase: 8
Plan: 08-05 complete (all five plans executed; commits `149636c` / `79a302c` / `720ad43` + the measurement session)
Status: Phase 8 executed — maintainer decisions open (R2 upload; the SC-1 escalation track)
Last activity: 2026-10-25
Progress: [██████████] 100%
## Performance Metrics
**Velocity:**
- Total plans completed: 34
- Average duration: —
- Total execution time: —
**By Phase:**
| Phase | Plans | Total | Avg/Plan |
|-------|-------|-------|----------|
| — | — | — | — |
| 01 | 4 | - | - |
| 02 | 3 | - | - |
| 3 | 4 | - | - |
| 4 | 4 | - | - |
| 5 | 5 | - | - |
| 6 | 8 | - | - |
| 7 | 6 | - | - |
## Accumulated Context
### Decisions
Logged in PROJECT.md Key Decisions table. Affecting current work:
- Routing = Valhalla (toll-free stays v2); self-hosted Photon for lookup; OpenFreeMap tiles + MapLibre GL JS v6
- grammY on one Cloudflare Worker (static assets + webhook + /api/*) — Workers, not Pages
- KV-only storage, TTL-only (chat_sessions minutes / guidance_sessions ~2h); guidance_sessions envelope designed in Phase 5 (upstream pre-work for GUID-05/06)
### Pending Todos
None yet.
### Blockers/Concerns
- **PHASE 8 ESCALATION (open, 2026-10-25):** the CPU verdict measured FAIL post-ALT (25-route p95 152.788 ms / extended 185.692 ms vs the 8 ms budget; the L=32 probe worse) — the c3 class remains. The theoretical wall: no two-sided-Lipschitz landmark extension exists on a graph with sentinel fringes; sound+fast needs direction-split potentials with a re-proven meet rule (search-skeleton work). Options: direction-split potentials (new phase) / CH (Phase-6 deferral) / Workers Paid reversal ($0 law) / keep c3 (current shipped posture). Records: docs/BUDGETS.md §c3, docs/KNOWN-LIMITATIONS.md, 08-05-SUMMARY.md.
- ~~PHASE 4 device-gate legs UNVERIFIED~~ RESOLVED 2026-10-24: legs 1–4+6 PASS on real hardware; leg 5 user-accepted (BotFather Main Mini App configured; unknown-id surface covered by automated gates). Known-open cosmetic: /cari absent from the client command menu (Telegram non-default setMyCommands defect; command works when typed; register script re-arms all scopes for retry).
- Design-source conflict (root `DESIGN.md` typography vs `telemetry_rams/DESIGN.md` + mockups) — Phase 1 resolves; mockup markup is layout reference only, design doc tokens are binding (scrub rounded/blur utilities)
- ~~VPS provisioning starts in Phase 4 (Photon bake-off)~~ SUPERSEDED by Phase 4 D-03: search is an in-Worker curated gazetteer ($0); VPS provisioning (Valhalla + Photon) defers to Phase 5; Photon is a documented SearchSource backend #3 (free-first mandate: one VPS, Oracle Cloud Always Free candidate)
- Research-flagged phases needing `/gsd-research-phase`: 3 (geolocation client matrix), 4 (Photon KL bake-off + gazetteer), 6 (backgrounded turn-card framing + snapshots)
- Project skill `.agents/skills/design-taste-frontend/` applies to UI phases (existing-design-system special case; Rams tokens binding)
### Quick Tasks Completed
| # | Description | Date | Commit | Directory |
|---|-------------|------|--------|-----------|
| 261024-001 | Replace logo references with master assets | 2026-10-24 | TBD | [261024-001-logo-asset-replacement](./quick/261024-001-logo-asset-replacement/) |
## Deferred Items
| Category | Item | Status | Deferred At |
|----------|------|--------|-------------|
| v1.x features | Voice guidance, live trip share, toll toggle, speed limits | Deferred to v1.x milestone (after user validation) | Roadmap init 2026-10-22 |
| v2 | Incident reports, gamification, traffic-weighted ETA | Out of scope for v1 | Requirements defined 2026-10-22 |
## Session Continuity
Last session: 2026-10-25T12:09:32.000Z
Stopped at: "08-05 executed (D-03 gate green after the fromTable fix; CPU verdict honest FAIL 152.788/185.692 ms; ladder stop at L=32; c3 remains — escalation open); NEXT: maintainer R2 upload + the SC-1 escalation decision"
Resume file: .planning/phases/08-alt-landmark-preprocessing-routing-backend-v2/08-05-SUMMARY.md