Docs: AI-oriented additions to FE compliance checklist#6
Merged
Conversation
Add skippable `<details>` "Additional guide for AI" callouts on the heavy sections (§0, §1 pointer, §3, §4, §5, §10, §14) plus a new Appendix D — AI Audit Playbook. Appendix D defines: - 4-phase taxonomy (P1 Structural → P2 Build → P3 Runtime, P4 Cross-cutting parallel) - Swarm decision matrix with §3/§4/§5 sub-agent cut-lists - Read-only sub-agent role + paste-ready prompt template - Moderator role with required YAML output schema (REJECT/ACCEPT + §11-keyed fix list) - Tool mapping per phase (bg-manager, playwright, jq, grep, git diff) - Common AI failure modes & anti-patterns - Context budget rules (one section per sub-agent, never full doc) Cross-references added to frontend/docs/README.md index and a top-of-doc pointer in app-checklist.md routing AI auditors at Appendix D. This is pass 1 — covers heavy sections; §2/§6/§7/§8/§9/§11/§13 callouts and concrete failure-mode anti-patterns from real dogfooding land in pass 2.
FE bumps + plugin wiring: - All 9 frontend packages (2 apps + 7 web components) bumped @wippy-fe/* dependencies from ^0.0.26 to ^0.0.32. - All 9 packages now declare @wippy-fe/vite-plugin@^0.0.32 in devDependencies and add wippyPagePlugin() / wippyComponentPlugin() to their vite.config.ts. Build now emits dist/wippy-meta.json per the wippy-component-1.0 spec for wippy/views >= 0.5.0. - iframe-demo: customCSS moved to a sibling `custom-css.do-not-link.css` file referenced via `file://` from package.json wippy.configOverrides.customization.customCSS. The vite-plugin resolves the reference at build time and the *.do-not-link.<ext> name is the AI-readable directive that stops agents from <link>-ing it directly in app.html (proxy injects it at runtime instead). Agent catalog wiring: - New app.agents:build_artifacts_catalog (build_func_id wired into wippy_artifacts_trait) reads the live view.component registry + bundled meta and appends a Markdown catalog to the wippy agent's compiled system prompt. Filters announced + auto_register + NOT secure so privileged components don't leak into the LLM context for every actor. - New app.agents:debug_agent_prompt HTTP endpoint at /api/public/debug/agent-prompt — compiles an agent and returns its final system prompt + tool list, for verifying build_func contributions without burning LLM tokens. Windows build scripts: - make.ps1 mirrors the Makefile targets (build / clean-build / lint / build-<module>) for environments without GNU make. The `clean-build` target now also deletes package-lock.json, which was the root cause of an ERESOLVE peer-conflict on the @wippy-fe/* major-version bump (stale lock pinned 0.0.26). - make.bat is a thin cmd wrapper around make.ps1. Docs cascade (frontend/docs/): - host-spec.md, host-less-mode.md, app-checklist.md, fe-compliance- checklist.md updated for the 0.0.32 plugin: bumped version pins, added the "wippy-meta.json contract is MANDATORY", documented the *.do-not-link.<ext> naming convention with the blind-test rationale, added the wippy/views ↔ vite-plugin version correlation table. Lockfile + no replacements: - wippy.lock dropped the `replacements: wippy/views -> local` block and refreshed against the hub: wippy/views 0.4.31 -> 0.5.0, wippy/facade 0.6.4 -> 0.6.6, plus dependency-graph follow-ups (userspace/users, userspace/uploads, wippy/dataflow, wippy/migration, wippy/session). Verified end-to-end via Playwright — login, Components page renders all 7 WCs (reaction-bar, counter-persist, websocket-log, chart-circle, mermaid, markdown, model-gallery) with full bundled-meta projection.
Contributor
Author
Dogfood pass complete — 41 edits applied (commit 5570e5a)Ran the §D playbook on the checklist itself:
What's in this commitDoc updates across §0, §1, §2, §3, §4, §5 (including new §5.0a Capture-before-refactor protocol — screenshots + computed-style inventories before any styling refactor), §6, §7, §8, §9, §10, §11, §12, §13, §14, and Appendix D. Gold code fixes (downstream of doc rules):
Deferred (separate decisions)
Full review file at |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Make
frontend/docs/fe-compliance-checklist.mdconsumable for AI auditors out of the box, without disrupting human readers.Inline (skippable): 7
<details>callouts labeled "Additional guide for AI — click to expand" on the heavy sections:Humans can collapse them; agents reading mid-doc get section-local phase + swarm hints.
New Appendix D — AI Audit Playbook (~175 lines, all inside one outer
<details>):conflicts:block)sync_run/bg_run, playwright, jq, grep,git diff --no-index)Neighbour-doc pointers:
frontend/docs/README.md— index entry forfe-compliance-checklist.mdmentioning Appendix D for AI auditorsfrontend/docs/app-checklist.md— top-of-doc pointer routing AI auditors at the new playbookCLAUDE.md(project root, gitignored — not in this PR) — pointer added locally for the active sessionThis is pass 1 — covers heavy sections. Pass 2 (after dogfooding the playbook on a real audit) will add callouts to §2/§6/§7/§8/§9/§11/§13 and populate D.7 with concrete anti-patterns observed in practice.
Test plan
<details>blocks render as collapsible (closed by default).grep -n "Additional guide for AI" frontend/docs/fe-compliance-checklist.mdreturns 7 hits (one per heavy section + §1 pointer).frontend/web-components/mermaid), spawn the §4 swarm per D.3, run the moderator with the D.5 schema, verify (a) sub-agents emit the table format and (b) moderator produces the YAML schema (REJECT/ACCEPT + fix_list). Surface any gaps as pass-2 TODOs.🤖 Generated with Claude Code