Skip to content

docs: the README shows the map before it explains it (T-105) - #93

Merged
CLYEH merged 5 commits into
developfrom
docs/readme-condense
Sep 2, 2026
Merged

CLYEH merged 5 commits into
developfrom
docs/readme-condense

Conversation

@CLYEH

@CLYEH CLYEH commented Sep 2, 2026

Copy link
Copy Markdown
Owner

The README shows the map before it explains it (T-105)

The README is condensed from 251 lines to 124 and now leads with what a judge would otherwise have to imagine: the map after an agent session (hero image), the same task run twice as two GIFs — a screenshot agent by clicks and pictures, a WebMCP agent by five tool calls — and the page as it opens (landing image). Everything cut from the prose that still describes shipped behaviour moved to docs/details.md; everything that described unshipped or removed work (set_layers, "cut" notes, the "Remaining" clause, the status roll-call) is gone. The README describes the tree as it is.

What changed

  • README.md: pitch line, hero, "Why Glass", "The same task, two ways" (both clips with per-arm captions and an honesty paragraph), the 2026-08-28 measured table, "Try it" (Chrome 149+ steps, the five ask cards verbatim, a DevTools snippet, ?shim=1), "Fifteen tools" by layer, "One map, two hands", "Data", "How it is built".
  • docs/details.md (new): describe_surroundings district fallback, select_features 500-match cap, get_share_link v1/v2/v3, tier-2 permanent vs transient fetch failure — prose the README used to carry.
  • docs/media/: hero.jpg, landing.jpg, screenshot-agent.gif (5.2 MB), webmcp-agent.gif (3.4 MB).
  • src/components/TryAsking.tsx: the comment that said the README quotes three cards now says five, which is what the README does.

How the clips were made

Scripted replays recorded 2026-09-02 with Playwright's headless Chromium against a local production build of this branch — not a live model, and the README says so. The screenshot arm gets only clicks, keys, wheel and screenshots; the WebMCP arm calls document.modelContext.executeTool through the page's dev shim (?shim=1), the same tool code Chrome's native surface runs. The WebMCP arm's caption numbers (5 calls, 2.9 KB, 82 ms, 0 screenshots, 7 parks) are the ledger of that recording; the screenshot arm's (19 actions, 8 screenshots, 2 of 7 parks) are counted from the script. Recording the first arm surfaced T-104 (the awakening cancelled the first flight), fixed separately in PR #92; the WebMCP clip was re-recorded after that fix.

How verified

  • Every number in the README checked against the tree by docs-writer and then by the adversarial reviewer (two passes): 15 tools (14 registered in src/lib/map-tools/index.ts + the add_note form), dataset counts against public/data/manifest.json (109/12/865/445/607/25 = 2,063; 18 tier-2 categories, 31,069 features), the five ask cards byte-identical to ASK_CARDS, the measured table against docs/comparison.md, unit-test counts against pnpm check (60 files, 1,436 passing, 0 skipped).
  • Reviewer findings fixed before this PR: a zoom-readout claim the page does not support for a screenshot agent, "each with a name" (two parks are Unnamed park), "no screenshot can read", a 42 s / 53 ms mix-up, "Act … no server" (plan_route leaves the page), "always holds" → "holds", a dangling referent in details.md, commit subject > 72 chars.
  • Every relative link in the README resolves to a file in this branch; the live URL and the Devpost URL open.
  • pnpm check green on the branch. No source behaviour changed (one comment in TryAsking.tsx).
  • Not verified: rendering of the two GIFs on github.com is checked after merge to main, since GitHub serves the default branch's README.

Task: T-105

Removed: the roadmap/status roll-call ("Status:" line, set_layers mentions,
"cut"/"remaining" wording), the long City-wide breadth and Working-together
prose sections, the ASCII tool-layer diagram, and every "not yet
re-verified" hedge except the one dated ChatGPT desktop caveat the task
kept.

Added: the hero.jpg and landing.jpg screenshots (top of file and in "One
map, two hands"), the two screenshot-vs-WebMCP comparison GIFs with
captions and ledgers under "The same task, two ways", and a link to the
new docs/details.md.

Condensed 251 lines to 120: one condensed comparison table (3 rows,
2026-08-28), a 15-row tool table (≤20 words/row) replacing the old
per-tool prose, and 5-6 bullet summaries for design rules and
collaboration in place of full paragraphs.

New file docs/details.md carries, verbatim, the four facts cut from the
README that were not already documented elsewhere: the
describe_surroundings 300 m district fallback, the select_features
500-match cap, the get_share_link v1/v2/v3 versioning rule, and the
tier-2 permanent-vs-transient fetch failure rule. The tier-2 enrichment
tag list and coverage percentages were also cut but not moved, since
public/data/README.md already documents them in full.

Every number was re-verified against this worktree's tree before use:
tool roster (src/components/tool-roster.ts, 14 imperative + add_note),
Try Asking prompts (src/components/TryAsking.tsx), tool input schemas
(src/lib/map-tools/index.ts), tier-2 manifest (18 categories, 31,069
features, public/data/tier2/index.json), bundled dataset counts (109
mrt_station + 12 district + 865 park + 445 school + 607 supermarket + 25
listing = 2,063, public/data/*.geojson), Node 22 (.github/workflows/ci.yml),
MAX_SHARE_URL_BYTES/SELECT_MATCH_LIMIT (src/lib/map-tools/share.ts,
tier2-query.ts), the ?shim=1 behaviour (src/components/WebMcpProvider.tsx),
and the WebMCP flag/extension links (docs/webmcp-reference.md). The
comparison-table numbers and the two GIF ledgers are carried from
docs/comparison.md and the task's own recording ledger respectively, not
independently re-measured.

Second pass (adversarial review, T-41 follow-up), each item source-checked:
- Screenshot ledger: the radius was never read off an on-screen zoom
  readout (that readout lives in an off-screen .gm-machine block; the
  recording script hard-codes the radius) — now "a guess"; the other 5
  parks were reachable one click-and-read at a time, not unreadable — now
  says so; dropped the "42 s" timing, which was paced differently between
  clips and didn't belong next to the action counts.
- WebMCP ledger: 2 of the 7 parks are `Unnamed park` in OpenStreetMap
  (visible in the clip's own SELECTED panel) — the "each with a name"
  claim overstated it; now "an id ... two of them parks OpenStreetMap
  never named". Tool time corrected 53 ms -> 82 ms to match the
  re-recorded clip's on-screen ledger (docs/media/webmcp-agent.gif
  replaced by the orchestrator, not by this commit).
- Comparison-table honesty note: the table's Task A (16 actions) predates
  the human search box the live clips now use (docs/comparison.md honesty
  note 2), which is why the two measurements aren't directly comparable;
  now says so inline.
- Tool table: "Act (page state, no server)" was contradicted by
  plan_route, the one tool that calls out to FOSSGIS OSRM — reworded to
  "writes page state; only plan_route leaves the page", and the 15 rows
  are now grouped Perceive/Navigate/Act in that order (no new column).
- "Fourteen tools" (Try it) vs "Fifteen tools" (heading) both stood
  unexplained — now "fourteen registered tools" with the reason
  (add_note is a plain HTML form, not a document.modelContext
  registration). Moved that ChatGPT-verification sentence, and the
  docs/details.md link, out of "Try it" and the Data section to the end
  of "Fifteen tools", so "Try it" ends on the working DevTools snippet
  instead of a hedge.
- "always holds a link" -> "holds a link": a map whose hash would exceed
  MAX_SHARE_URL_BYTES leaves the previous hash in place instead of
  updating it (src/components/share-hash.ts:85).
- Added one clause: a share link carrying agent state opens with the
  inspector/activity feed already up, not replaying the idle-to-awake
  animation (src/lib/awaken/index.ts:177-179, bootMode).
- docs/details.md: fixed a dangling "is the clearest example. It" referent
  in the describe_surroundings opening; retitled the file and replaced
  the process note with one neutral sentence describing what the file is.
- Persuasion-only additions, no new facts: a strapline in the live-link
  line (15 tools, no backend, no API keys); a closing sentence on why this
  problem generalizes past this one map; a one-line lede on "One map, two
  hands" naming the map as shared state; a bullet naming the two distinct
  WebMCP registration paths (document.modelContext vs the add_note HTML
  form) that both write the same state; and a CI line (1,436 unit tests
  across 60 files, all green — pnpm check on this tree,
  .github/workflows/ci.yml) after the install/build commands.

README.md: 120 -> 122 lines (still under the 125-line budget).

Task: T-41
… follow-up)

- docs/media/webmcp-agent.gif: re-recorded against the T-104-fixed build; the
  closing caption no longer says "named" (two of the seven parks are unnamed
  in OpenStreetMap) and reads 82 ms of tool time, which the README now quotes.
- README.md: impact sentence moved ahead of the accessibility disclaimer; the
  screenshot-arm caption split into two plain sentences; docs/details.md link
  and the ChatGPT caveat separated into their own paragraphs.
- src/components/TryAsking.tsx: the comment coupling ASK_CARDS to the README
  said three cards were quoted; the README now quotes all five.

Task: T-41
@vercel

vercel Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
glassmap Ready Ready Preview Sep 2, 2026 3:37am UTC

CLYEH added a commit that referenced this pull request Sep 2, 2026
#94)

The fourth T-104 test compared the post-drag camera against a live sample
taken BEFORE `mouse.down()`, while the flight was still moving. On a slow
runner the flight's own motion between that sample and the mousedown ran
opposite to the 160x120px pan and cancelled most of it: CI read 0.00055
against the 0.001 floor (run 33586396145, PR #93). The pan handler is
`activateOnStart`, so the mousedown itself calls `stop(true)` and freezes
the camera; sampling right after it isolates the hand's effect exactly.

The fixed 400 ms inertia wait is now a poll on `!map.isMoving()`, so the
`moveend` the store publishes on has fired before the position is read.

Verified: 12/12 with `--workers=2 --repeat-each=3`; under a load average
above 150 (a parallel `--repeat-each=5` on this machine) the spec's other
tests also timed out, which is the runner, not the change.

Task: T-104
@CLYEH
CLYEH merged commit ea00534 into develop Sep 2, 2026
3 checks passed
@CLYEH
CLYEH deleted the docs/readme-condense branch September 2, 2026 03:42

This branch was successfully deployed

1 active deployment
Preview — f4cff49b Deployed Sep 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant