Skip to content

Polish maps a whole site before an in-depth review (experimental) - #46

Merged
DeyangChan merged 9 commits into
mainfrom
card/b8460aaa
Nov 25, 2026
Merged

DeyangChan merged 9 commits into
mainfrom
card/b8460aaa

Conversation

@DeyangChan

@DeyangChan DeyangChan commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

What this changes

On a whole site or a large web app, one Polish pass reaches only a few screens and returns few findings. This PR adds an experimental In depth mode with two jobs: Pages (is each page right?) and Workflows (can people finish what they came to do?).

  1. Cover. With In depth on (under Experimental, or asked for in chat), picking a level opens a second step: three cards, Pages, Workflows and Both, each previewing what it covers. indepth saves pages, workflows or both, and the agent maps only that.
  2. Map. The agent maps the product: routes from the repo, sitemaps, and a breadth-first walk. assets/survey.js reads each page's same-origin links, overlay triggers, overlays and forms, and clicks nothing. Pages that share one layout become one, and one of them is checked. Workflows are named journeys across those pages.
  3. Pick. The tab reloads into site-map.html, a stepped form.
    • Pages: a tree with a switch on every page, and Include all.
    • Workflows: one card per journey. Remove one with its bin, steer one with a note, or add one in your own words. Update workflows saves workflowEdits, and the agent redraws them before the review.
    • Resting the pointer on a page or a step shows it in a preview fixed at the top of the side panel.
    • Review saves exclude.
  4. Review. One subagent per page and per workflow. A workflow agent walks the journey at phone and desktop size and gives checks WF1 to WF7 a verdict at every step. The map shows a beam on what is under review and on the step each workflow has reached.
  5. Report. Findings merge into one Polish report, workflows that break first.

A rail of steps runs under the top bar of every page in the run: Level, Cover, Map, Review and Report. It lives in lib/shell as an opt-in stamped block (rail.css, rail.html, VSShell.rail(step, busy)). The red block from the Visual Stack mark sits on the current step, and runs while the agent works.

This PR also changes the Polish report for every round. While the agent is still revising a steered section, or a section has no answer, the last slide names it and offers Go to it in place of Approve & finish.

The look and flow came out of two Polish Showcase rounds run on these pages. The owner approved, steered and rejected each proposal in the report, and only what was approved is built. Every effect stops under prefers-reduced-motion.

Instructions are in plugins/vstack/experimental/polish-indepth/SKILL.md. Polish's SKILL.md and report.md link to them. Version 6.20.0 (MINOR) on top of main's 6.19.0, which is merged in.

How it was tested

  • e2e R0b in report.feature drives the whole run:
    • In depth → level → the cover step with the rail on Cover → Both, saved with the level;
    • the map: step 1 "Pick the pages" with the rail on Map → the preview → collapse a page → switch one off;
    • Next → step 2 "Pick the workflows" → steer one and add one → Update workflows saves workflowEdits → the agent redraws → remove one → Review saves exclude;
    • agent progress with the rail on Review → a workflow on step 2 of 2 → the finished mark → the report with the rail on Report.
  • R2 and R3 cover the report's closing slide pointing at a section being revised, or one with no answer.
  • 57 of 57 scenarios pass under claude and under codex.
  • Why a new scenario for R0b. R0 covers the start page with the other experiments asserted off. The in-depth run adds its own stages, so it does not fit as steps in R0.
  • I captured every state in a real browser: cover, mapping, both map steps with a pending steer and a new workflow, review, pages only, and 375 px. Nothing scrolls sideways.
  • I ran survey.js against a fixture page and over 144 pages of info.cern.ch.
  • The node test suites, build-shell.mjs check, both claude plugin validate --strict runs and check-version.mjs all pass.
  • Not done: a full in-depth review driven by a real agent against a live site.

Checklist

  • Installed the plugin from this branch and drove the affected skill end to end. (The pages and bridge are driven by e2e. A live-site run has not been done.)
  • Nothing writes outside the user's project, and nothing transmits anywhere, unless that is the skill's stated purpose.
  • Per-machine state resolves through lib/workdir.mjs and lands under .vstack/local/<tool>/.
  • Pages stay self-contained. No external requests at runtime.
  • Edited lib/shell/ rather than a stamped region, ran node plugins/vstack/lib/build-shell.mjs stamp, and committed both.
  • Changed something under plugins/, and raised version in both host manifests with a matching CHANGELOG.md entry. Merging this publishes it.

🤖 Generated with Claude Code

DeyangChan and others added 9 commits November 25, 2026 16:28
Turning on In depth in the Polish start page makes the agent map the
product first: pages, plus the modals, popups and slide-in panels each
page opens, with same-layout pages grouped. The map opens in the same
tab; the owner ticks screens and sets a depth, and each picked screen is
reviewed by its own subagent before the findings merge into one report.

- experimental/polish-indepth/SKILL.md: the map, pick, per-screen and merge steps
- assets/site-map.html: the stamped map page served over the JSON bridge
- assets/survey.js: a read-only in-page survey of links and overlay triggers
- review-start.html: the In depth switch, and a reload into the map
- e2e R0b: the in-depth flow from the switch to the report

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The map now starts with every screen reviewed at the agent's suggested
depth (Standard by default). Each row takes Skip, Quick, Standard or
Deep; a page's choice carries to what sits under it, and one control
sets them all. Resting the pointer on a row shows the screen's preview,
captured while mapping. Pages that share a layout say that one of them
is checked. The page saves plan in place of focus and depth, and Polish
writes indepth when the owner asks for it in chat.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Takes main through 6.19.0. The in-depth switch moves onto the start page's
new switch markup, and this branch now ships as 6.20.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the Polish Showcase round on the site map itself:
- Depth is gone. Each screen has one switch, on by default; Include all
  appears once something is off, and the page saves exclude in place of
  plan. The explaining copy is cut.
- The preview has one fixed place at the top of the side panel, swapping
  with a fade and one pass of the scan beam. Narrow and touch screens show
  the picture inside a row the owner opens.
- The map arrives in layers: rows land in tree order and the red block of
  the mark runs down the tree.
- A screen under review shows the beam sweeping its row; a finished one
  flashes green and its tick pops in.
- When every screen is done, the mark stacks itself, the red block lands
  last, and the panel says the report is on its way.
Every effect stops under prefers-reduced-motion.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In-depth mode now has two modes. Screens asks whether each screen is right;
Workflows asks whether people can finish what they came to do.

- The agent finds the journeys while it maps: calls to action, navigation
  and every form, which survey.js now lists with its fields and submit.
- The map gains a Workflows tab: one card per journey, its steps as chips
  in order. Each card has a switch, and the side panel has one switch per
  mode. Resting on a step shows that screen in the preview. Review saves
  one exclude list holding screen and workflow ids.
- Each workflow gets its own agent, which walks the journey at phone and
  desktop size and gives checks WF1 to WF7 a verdict at every step. The
  map follows it with the beam on the step it has reached.
- Workflow findings get a category per journey, ahead of the screens, and
  show the steps up to the break as Today.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
While a steered section is still being revised, or a section has no answer,
the closing slide names it and offers Go to it. The ▾ menu's Approve & finish
waits for a revision in progress. R2 and R3 cover both cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the Polish Showcase round on the in-depth flow, all six approved:
- Choose what to cover first. With In depth on, picking a level opens a
  second step with three cards, Pages, Workflows and Both, each previewing
  what it covers on hover. indepth now saves "pages", "workflows" or
  "both", and the agent maps only that.
- One rail of steps, Level, Cover, Map, Review and Report, under the top
  bar of the start page, the map and the report. It lives in lib/shell as
  an opt-in stamped block, shown with VSShell.rail(step, busy); the red
  block runs inside the step the agent is working on.
- The map is a stepped form: Pages, then Workflows, with Next and Back,
  and a slide between them. One covered mode means a single step.
- Workflows are steered, removed or added rather than switched. Steers
  and new journeys save workflowEdits for the agent to redraw before the
  review.
- Fewer words: no count line, tab hint, legend, Preview label, paths or
  notes on the map, and "×33" for pages that share a layout.
- Mapping and review keep the rail, so the run never jumps between pages
  that look unrelated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DeyangChan
DeyangChan marked this pull request as ready for review November 25, 2026 15:30
@DeyangChan
DeyangChan merged commit f628abe into main Nov 25, 2026
13 checks passed
@DeyangChan
DeyangChan deleted the card/b8460aaa branch November 25, 2026 15:31
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