Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ A task is done only when **all** of these hold. Anything missing must be stated

- Tests exist for the behaviour and encode *why* it matters; `pnpm check` green, no skipped tests.
- Relevant e2e spec green.
- No `alert` / `confirm` / `prompt`; no API keys; nothing from the banned list (Shopify, Google Maps, geocoders, QR, GPS). No external API calls, with ONE user-approved exception (2026-08-31): `plan_route` calls the keyless FOSSGIS OSRM service (`routing.openstreetmap.de`) at runtime — throttled to their published 1 request/second policy, attributed on the page, failing honestly when unreachable, and mocked or network-blocked in every test (the suite stays network-isolated). No other runtime external data call is permitted (the keyless OpenFreeMap basemap tiles predate this rule and stay display-only).
- No `alert` / `confirm` / `prompt`; no API keys; nothing from the banned list (Shopify, Google Maps, geocoders, QR, GPS). No external API calls, with ONE user-approved exception (2026-08-31, widened to the human gesture 2026-09-02): walking routes are planned by the keyless FOSSGIS OSRM service (`routing.openstreetmap.de`) at runtime — asked by the `plan_route` tool and by the human Route pill, through the one shared throttle in `src/lib/map-tools/route.ts` that keeps their published 1 request/second policy, attributed on the page, failing honestly when unreachable, and mocked or network-blocked in every test (the suite stays network-isolated). No other runtime external data call is permitted (the keyless OpenFreeMap basemap tiles predate this rule and stay display-only).
- Docs updated if the change is visible to judges or users.
- Everything in the repo is English. The only permitted CJK is a genuine place name or OSM tag value: in string literals that are data (queries, test inputs), and quoted inside English prose — a comment or commit message may name 大安森林公園 when that specific name is what the sentence is about, because renaming it would make the sentence false. Prose around the quoted name stays English; CJK sentences never appear.
- A PR whose suite contains `test.fail()`-marked known-defect tests must say so explicitly in "How verified" — green CI must never hide a known defect.
Expand Down
5 changes: 4 additions & 1 deletion docs/TASKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Owner asked how a human uses routing; the answer was "only through an agent". Pa

| ID | Task | Owner | Status | Notes |
|---|---|---|---|---|
| T-110 | Fourth pill "Route": click a start, click an end, the same `planWalk` (shared 1 req/s throttle, not re-implemented) draws a `source: "user"` line labelled `walking route · 1.2 km · 16 min`; a refusal shows the service's sentence in the hint and leaves the person in route mode; `Escape` cancels. A human route latches the FOSSGIS credit exactly as an agent's does | map-ui-dev → qa → review | doing | Nothing under `src/lib/**` changes; `remove_from_map` keeps refusing human marks, so an agent cannot remove a human's route |
| T-110 | Fourth pill "Route": click a start, click an end, the same `planWalk` (shared 1 req/s throttle, not re-implemented — a unit test finds the shared queue still busy after a hand-planned walk) draws a `source: "user"` line labelled `walking route · 1.2 km · 16 min`; a refusal shows the service's sentence in the hint and leaves the person in route mode; `Escape` cancels. A human route latches the FOSSGIS credit exactly as an agent's does | map-ui-dev → qa → review | done | Nothing under `src/lib/**` changes; `remove_from_map` keeps refusing human marks, so an agent cannot remove a human's route. Review: no blockers; README and CONTRIBUTING wording widened to name both callers of the routing service (README half rides T-111). e2e `route-human-gesture.spec.ts` pins all seven contract points |

## Follow-ups (ticketed, unscheduled)

Expand All @@ -91,6 +91,7 @@ Owner asked how a human uses routing; the answer was "only through an agent". Pa
- **F-13 (tool-dev)** No tool echoes an annotation's coordinate: `AnnotationOutput` (`state.ts:55`) carries `id`, `note`, `source` only, so an agent that pinned a note by place name cannot confirm where it landed without re-resolving the name itself. Found writing the T-106 e2e, which had to read the store directly. Adding `at: [lng, lat]` (5 dp) costs ~30 B a note.
- **F-14 (map-ui-dev)** At ≤640 px the loaded-categories strip overflows the bottom bar's left edge by 6–22 px (`.bottom-bar` is `justify-content: flex-end` and `.corner` is `flex-shrink: 0`, so overflow goes left). Text stays readable. Fix is letting `.corner` shrink at that tier — not `safe flex-end`, which would push the attribution off the right instead. Found during T-109.
- **F-15 (map-ui-dev)** `.pin-card` has `max-width: 210px` and no `max-height`: `annotate` with `"a\n".repeat(250)` renders a ~4,400 px bubble that covers other pins. The fold (T-107) is the current escape hatch. A companion cap (`max-height` + fold-on-overflow, or collapsing interior newlines in the bubble only) is a design call. Found during T-108's review.
- **F-16 (qa)** `e2e/awakening-flight.spec.ts:249` reads bounds immediately after `setViewportSize` and races the republish (~4/24 on develop). Same family as F-1; the fix is a wait on the republished bounds, never a sleep. Handed to qa 2026-09-02.

## Handoff log

Expand All @@ -115,5 +116,7 @@ Append-only. `date · from → to · what`.
- 2026-08-31 · orchestrator → all · The 2026-08-28 line "delete is UI-only" is superseded by T-90: `remove_from_map` gives agents removal of agent-sourced drawings/annotations and any selection entry; user-sourced marks stay human-only (refused per-id with the reason).
- 2026-09-01 · orchestrator → all · `CONTRIBUTING.md` English rule relaxed: a genuine place name may be quoted inside English prose (a comment or commit message), because `gazetteer.ts:32-33` cannot explain the 大安 / 大安森林公園 disambiguation without naming it. CJK sentences are still banned. The rule text was out of date, not the code.
- 2026-09-01 · orchestrator → all · `scripts/ship-pr.sh --merge-back` runs `git switch` in the repo root, which fails when the head branch is checked out in a worktree. Merge `origin/develop` inside the worktree instead, then ship without the flag — and it is the better order anyway, because the integration check then runs against the base you are merging into.
- 2026-09-02 · qa → all (lesson) · Every tool call writes an activity row, read-only ones included — `get_map_state` too. "A human gesture writes no row" is only assertable before the next tool call, so an e2e that checks it must read the store, not call a tool, or assert before the first call.
- 2026-09-02 · orchestrator → qa · `e2e/awakening-flight.spec.ts:249` flakes ~4/24 on develop: it reads bounds right after `setViewportSize` with no wait for the republish. Wait for the republished bounds (no fixed sleep). Ticketed F-16.
- 2026-09-01 · review → all (lesson) · Four of the T-41 README defects were the same shape: prose describing what a surface was *designed* to do rather than what the component does. Read the component before the sentence, not the sibling doc.
- 2026-09-02 · qa → tool-dev · Beads are tier-2/browse-only: a selected *bundled* feature paints a selection ring, and its clickable render is its category's circle layer (`INTERACTIVE_LAYER_IDS`), not `BEAD_LAYER_IDS`. A spec that needs to tap a selected station must query the interactive layers.
Loading
Loading