docs: add product experience officer best practice and demo - #5
Merged
anchenqlw merged 1 commit intoAug 14, 2026
Merged
Conversation
Signed-off-by: 时之 <yefengzi888@gmail.com>
There was a problem hiding this comment.
Pull request overview
Adds a new zh-CN best-practice article and an accompanying “Product Experience Officer” demo code drop that illustrates a read-only evaluation workflow (prompting, session orchestration, evidence summarization, safe report rendering, and owner-scoped persistence).
Changes:
- Add zh-CN best-practice content for running “read-only + browser” product experience evaluations with verifiable evidence boundaries.
- Add a demo source bundle (API routes, access-policy parsing/redaction, report finality/continuation logic, safe markdown rendering, and D1/Supabase-backed evaluation persistence).
- Add a minimal demo
package.jsondocumenting runtime expectations.
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| demos/product-experience-officer/README.md | Documents what the demo includes/excludes and how to verify key guarantees. |
| demos/product-experience-officer/package.json | Declares demo package metadata and Node engine requirement. |
| demos/product-experience-officer/lib/test-access.ts | Implements access policy validation, secret limits, summaries, and redaction helpers. |
| demos/product-experience-officer/lib/run-owner.ts | Adds owner isolation via cookie-based random owner id. |
| demos/product-experience-officer/lib/qca-report-finality.ts | Implements report completeness detection and continuation policy/messages. |
| demos/product-experience-officer/lib/product.ts | Adds product packs, evaluation stages, and baseline report/findings content. |
| demos/product-experience-officer/lib/evaluation-prompt.ts | Builds the evaluation prompt with access rules and report format contract. |
| demos/product-experience-officer/db/supabase-admin.ts | Provides server-only Supabase admin client creation. |
| demos/product-experience-officer/db/schema.ts | Defines Drizzle schema for evaluations table and indexes. |
| demos/product-experience-officer/db/index.ts | Provides D1 DB binding access via Cloudflare Workers env. |
| demos/product-experience-officer/db/evaluations.ts | Implements evaluation CRUD/update plans + D1 schema init + Supabase/D1 backends. |
| demos/product-experience-officer/app/report-markdown.tsx | Safely renders untrusted Markdown (no HTML, safe links, image placeholders, constrained Mermaid). |
| demos/product-experience-officer/app/api/runs/route.ts | Adds owner-scoped run history APIs (list/get/delete) with cookie binding. |
| demos/product-experience-officer/app/api/qca/route.ts | Implements QCA orchestration: provision resources, start sessions, poll evidence, continue reports, cleanup ephemeral resources. |
| content/zh-CN/best-practices/product-experience-officer/index.md | Adds the zh-CN best-practice article tying the approach and demo together. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
Cookbook contribution
Summary
Sources and assets
All submitted text and assets are original.Specialist review
Author checklist
##sections and no hand-written table of contents.demos/<slug>/matches the owner article, and the article contains the exact GitHub Demo link.Signed-off-bytrailer.mainis the publication event.Maintainer Demo review