Skip to content

Commit 7c048df

Browse files
committed
chore: add agentic web proof guidance
1 parent 8ebe8fb commit 7c048df

8 files changed

Lines changed: 665 additions & 11 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Modern Web UI Follow-Up
2+
3+
Date: 2026-05-24
4+
5+
Source audit: `/Users/afo/Documents/Codex/2026-05-23/i-m-watching-this-great-video/modern-css-web-ui-audit.md`
6+
7+
## Summary
8+
9+
The active `public-website-design-implementation` hub remains the correct owner for Greenpill Network's modern CSS/Web UI follow-up. The website already has the strongest written CSS contract among the audited repos: token-only styling, container queries, dynamic viewport units, touch target rules, reduced-motion handling, and UI verification.
10+
11+
This report does not create a competing plan hub and does not authorize runtime changes ahead of the current P0 public map/design work.
12+
13+
## Production Posture
14+
15+
Already aligned with the Web UI audit:
16+
17+
- `packages/website/src/styles/gp-tokens.css` owns cascade layers, tokens, fluid type, reduced motion, and base behavior.
18+
- `packages/website/DESIGN.md` and `packages/website/CLAUDE.md` define token-only CSS, container-query use, 44px targets, dynamic viewport units, and visual proof expectations.
19+
- `GpLayout.astro` gives page content a query-container root.
20+
- `bun run ui:verify` provides multi-width UI proof for the public site.
21+
22+
## Follow-Up Candidates
23+
24+
Progressive candidates:
25+
26+
- Add `<meta name="text-scale" content="scale">` only after auditing root font-size assumptions and proving large text at 375, 1024, and 1440 widths.
27+
- Add Astro MPA View Transitions via `@view-transition { navigation: auto; }` only as progressive enhancement with reduced-motion fallback.
28+
- Use CSS scroll spy for long story, library, garden, or chapter pages with in-page navigation.
29+
- Use scroll-state queries for sticky header reveal/hide behavior only if it reduces noise without hiding orientation.
30+
- Add `closedby="any"` to simple dialogs such as HomeMap add-node only with existing escape/click fallback behavior preserved.
31+
- Review `packages/website/src/scripts/parallax.ts` against the current `GpLayout.astro` CSS-only background approach and remove or realign stale JS only through a future implementation lane.
32+
33+
Research-only candidates:
34+
35+
- overscroll gestures, HTML-in-Canvas, CSS `@function`, CSS `if()`, broad style-query architecture, `corner-shape`, `shape()`, `border-shape`, and `fit-text`.
36+
37+
## Guardrails
38+
39+
- Do not reintroduce fake map density, fake counts, or decorative-only network complexity.
40+
- Do not use modern CSS primitives to bypass the existing `DESIGN.md` standard.
41+
- Do not make Chromium-first features required for core content access.
42+
- Keep browser proof multi-width and reduced-motion aware.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Greenpill Network WebMCP Strategy
2+
3+
Status: strategy only. Do not ship runtime WebMCP tools in v1.
4+
5+
## Candidate Visible Tools
6+
7+
- Public website: summarize visible chapters, guilds, projects, locations, impact sources, and homepage sections from rendered content.
8+
- Map and directory surfaces: filter or focus visible map/list items using normal page controls.
9+
- Public JSON routes: explain `/locations.json` and `/impact-sources.json` as approved public projections.
10+
- Editorial docs: retrieve visible public page headings and links for navigation help.
11+
12+
## Forbidden Tools
13+
14+
- Directus private reads or writes, database access, pending intake, steward review notes, emails, IP addresses, user agents, spam metadata, or internal admin state.
15+
- Private Fly service actions, environment variables, deploy actions, migrations, or credential inspection.
16+
- Hidden actions outside the visible public website UI.
17+
- Destructive operations, bulk content edits, or publishing actions.
18+
19+
## Proof Before Runtime
20+
21+
- `bun run agentic:check` and the relevant `bun run agentic:verify <route>` loop pass on representative routes.
22+
- Axe/accessibility checks from the existing UI verify script remain clean or explicitly triaged.
23+
- Tool descriptions name only public projections and visibly available controls.

AGENTS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ Before UI or CSS work in `packages/website`, load the design system sources in t
8181
Use `bun run ui:check` as the fast static guardrail for source CSS drift. Use
8282
`bun run ui:verify <route>` when the rendered surface must be proven in-browser.
8383

84+
## Agentic Modern Web Standard
85+
86+
- Baseline target: Baseline Widely Available. Before frontend, UI, CSS, accessibility, browser proof, or web-design changes in `packages/website`, search and retrieve current Chrome Modern Web Guidance, then apply `packages/website/DESIGN.md` and the website token system.
87+
- Prefer semantic HTML, native controls, platform CSS, and browser primitives before custom JavaScript. Keep landmarks, headings, links, forms, accessible names, focus states, touch targets, empty/error/loading states, and reduced-motion behavior clear in the rendered DOM and accessibility tree.
88+
- Run `bun run agentic:check` for the advisory source proof path (`plans:validate` plus `ui:check`). Use `bun run agentic:browser-proof <route>` (same rendered lane as `agentic:verify`) when layout, interaction, motion, or public routes need browser proof at the repo's 375 / 1024 / 1440 viewport loop.
89+
- WebMCP is strategy-only in v1. Do not ship runtime WebMCP tools unless explicitly requested; future tools must be visible, user-confirmable, public-safe, and must not expose Directus private state, database credentials, pending intake, steward notes, hidden admin actions, destructive operations, or background-only actions.
90+
8491
Generated public JSON routes include `/locations.json` and `/impact-sources.json`, derived from the approved operational content snapshot. Keep those outputs public-safe.
8592

8693
The agent package owns private runtime concerns. `/health` is process health, `/ready` checks `DATABASE_URL`, `/content/public-snapshot` exposes the approved operational snapshot, and the impact/map-node routes preserve public/private projection contracts.

CLAUDE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ Website source and config live under `packages/website`:
5757
- `packages/website/src/scripts/` - browser interaction scripts.
5858
- `packages/website/src/styles/gp-tokens.css` - canonical design tokens + base styles (cascade layers, clamp() type). The UI standard is `packages/website/DESIGN.md`; `packages/website/CLAUDE.md` is the always-loaded rule digest. Verify UI with `bun run ui:verify` (`scripts/ui-verify.ts`, renders at 375/1024/1440 + axe) or the `greenpill-ui` skill.
5959

60+
## Agentic Modern Web Standard
61+
62+
- Baseline target: Baseline Widely Available. Before frontend, UI, CSS, accessibility, browser proof, or web-design changes in `packages/website`, search and retrieve current Chrome Modern Web Guidance, then apply `packages/website/DESIGN.md` and the website token system.
63+
- Prefer semantic HTML, native controls, platform CSS, and browser primitives before custom JavaScript. Keep landmarks, headings, links, forms, accessible names, focus states, touch targets, empty/error/loading states, and reduced-motion behavior clear in the rendered DOM and accessibility tree.
64+
- Run `bun run agentic:check` for the advisory source proof path (`plans:validate` plus `ui:check`). Use `bun run agentic:browser-proof <route>` (same rendered lane as `agentic:verify`) when layout, interaction, motion, or public routes need browser proof at the repo's 375 / 1024 / 1440 viewport loop.
65+
- WebMCP is strategy-only in v1. Do not ship runtime WebMCP tools unless explicitly requested; future tools must be visible, user-confirmable, public-safe, and must not expose Directus private state, database credentials, pending intake, steward notes, hidden admin actions, destructive operations, or background-only actions.
66+
6067
Generated public JSON routes include `/locations.json` and `/impact-sources.json`, derived from the approved operational content snapshot. Keep those outputs public-safe.
6168

6269
The agent package owns private runtime concerns. `/health` is process health, `/ready` checks `DATABASE_URL`, `/content/public-snapshot` exposes the approved operational snapshot, and the impact/map-node routes preserve public/private projection contracts.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
"directus:users:invite": "bun --env-file-if-exists=.env.local scripts/directus-users.ts invite",
4040
"plans:scaffold": "bun --no-env-file scripts/plan-hub.ts scaffold",
4141
"plans:validate": "bun --no-env-file scripts/plan-hub.ts validate",
42+
"agentic:check": "bun run plans:validate && bun run ui:check",
43+
"agentic:browser-proof": "bun run ui:verify",
44+
"agentic:verify": "bun run ui:verify",
4245
"test:agent": "bun run build:packages && bun test scripts/agent-contract.test.ts",
4346
"test:chapter-impact": "bun run build:packages && bun test scripts/chapter-impact-contract.test.ts",
4447
"test:content": "bun run build:packages && bun test scripts/public-content-contract.test.ts",

packages/website/public/llms.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Greenpill Network
2+
3+
Greenpill Network is a public website for Greenpill chapters, guilds, locations, initiatives, public steward profiles, and network impact context.
4+
5+
Public surfaces:
6+
- Homepage and public website routes generated by `packages/website`.
7+
- Public JSON routes such as `/locations.json` and `/impact-sources.json`.
8+
- Approved operational content snapshots only.
9+
10+
Agent guidance:
11+
- Treat the site as a public information surface.
12+
- Prefer cited public pages, static JSON, and approved snapshot data.
13+
- Respect the repo's Baseline Widely Available target and semantic, accessible HTML expectations when reasoning about UI.
14+
15+
Do not infer or expose:
16+
- Private Directus records, pending intake, steward review notes, emails, IP addresses, user agents, spam metadata, database credentials, or internal admin-only procedures.

0 commit comments

Comments
 (0)