AI Playbook中文

Knowledge work

End-to-end pipeline: a source-anchored research brief — every fact quoted, every number traced or labelled an assumption

Verification

Tested on
2026-11-23
What was tested
The first-hand material is a read-only monetization research report written 2026-11-23 (internal, redacted) that already used dated sources, 'to verify' marks, labelled assumptions and a correction of an earlier error. The quote check, number check and the reviewer step below are a DESIGN built on that practice: not written, not run.
Evidence level
Written in dated process docs, without per-run records
Status
Published
Version
0.1.0
Updated
2026-11-29
Source commit
a8fb8db149
Tools
Any chat model (examples: Kimi, GLM, Qwen, DeepSeek, Claude, GPT), python3 (standard library) for the quote and number checks (to be written), public pages and APIs
Models
Not filled in
Audience
knowledge-workers, developers
Availability in mainland China
Partly available
Alternatives for mainland China
Domestic models for extraction and drafting: Kimi, GLM, Qwen, DeepSeek, Any reference manager or spreadsheet for claims.csv

Framing: a solo developer's workflow. Any model works (Kimi, GLM, Qwen, DeepSeek, or Claude/GPT as examples). Wherever Claude is mentioned: Anthropic has not supported mainland China, Hong Kong and Macau since 2026-11-12 (verified 2026-11-23). We design and export only.

Situation

Requirement → spec (the seven steps)

Requirement: "I have 4 apps with few downloads; which monetization should come first? Give me research I can check."

Step What to do First-hand material (research of 2026-11-23)
1 Intake write the decision and 3–7 questions; known vs unknown; budget and time decision: monetization order. Known: 31 free downloads in 7 days (from console screenshots), about 65% overseas; unknown: conversion rate
2 Decompose 8 stages: questions (human) → fetch (code) → quoted claims (model) → quote check (code) → draft (model) → number check (code) → support review (different model) → human sign-off stages
3 Pattern workflow:chain; no multi-agent: narrow question, few sources, each step must be testable alone pattern_reason
4 Spec conclusion first; sources after; each number maps to a row in claims.csv or sits next to ASSUMPTION; unknowns say TO VERIFY the real report did this: conversion 1–4% and price ranges are labelled assumptions, "not measured, not a forecast"
5 Gates g_quotes (each quote appears verbatim in the saved source) → g_numbers (0 untraced numbers) → g_support (a different model judges whether the quote supports the sentence) → human checks 2 gates
6 Reliable runs fetch each source once per day and archive it; reruns use the archive; unreachable sources are TO VERIFY, never filled from memory reliability
7 Cost below cost_roi

Spec file: pipelines/e2e/e2e-sourced-research-brief-pipeline.pipeline.yaml

First-hand material: how our 2026-11-23 research was done, and where it went wrong

Filled eval checklist

Eval plan and cases K1–K6 are in the Chinese section. In short: gold set research-brief-gold-v0 has 6 cases (template suggests ≥20), half from the real error above, half synthetic. Deterministic gates must pass 100% (min_pass_rate 1.0, per-slot). Cases: a verbatim quote passes; a "polished" quote fails the exact match; an untagged "3% conversion" fails the number check; a conclusion contradicted by the source must be rated unsupported; an unreachable source becomes TO VERIFY; an "ignore previous instructions" line in a page is treated as data.

ROI estimate (estimated, not measured)

Failure cases

China alternatives

Safety notes

Test notes

Related recipes (not repeated here)

research-digest-with-citations · verify-ai-output-checklist · long-doc-to-brief · decide-from-real-data.

来源 / Sources

Pipeline design: End-to-end pipeline: a source-anchored research brief — every fact quoted, every number traced or labelled an assumption

Export to your agent

Path: e2e-sourced-research-brief-pipeline/SKILL.md

Preview
---
name: e2e-sourced-research-brief-pipeline
description: "End-to-end pipeline: a source-anchored research brief — every fact quoted, every number traced or labelled an assumption. Use when the user asks for help with this task."
metadata:
  version: "0.1.0"
  status: "published"
  source-commit: "5f7272be13826bec473d6f2e073c82a5a620f1d2"
---

# End-to-end pipeline: a source-anchored research brief — every fact quoted, every number traced or labelled an assumption

- Version: 0.1.0
- Status: published
- Tested on: 2026-11-23
- Tested scope: The first-hand material is a read-only monetization research report written 2026-11-23 (internal, redacted) that already used dated sources, 'to verify' marks, labelled assumptions and a correction of an earlier error. The quote check, number check and the reviewer step below are a DESIGN built on that practice: not written, not run.
- Evidence level: documented-practice
- Source commit: 5f7272be13826bec473d6f2e073c82a5a620f1d2

> Reference playbook: follow it only when the user asks for this task, and ask a human before running commands or irreversible actions.

## English

> **Framing: a solo developer's workflow.** Any model works (Kimi, GLM, Qwen, DeepSeek, or Claude/GPT as examples). Wherever Claude is mentioned: **Anthropic has not supported mainland China, Hong Kong and Macau since 2026-11-12 (verified 2026-11-23).** We design and export only.

### Situation
- **Who:** a solo developer or knowledge worker choosing between options (which monetization first? ads or not?) who wants a brief that can be **spot-checked**, not an article that merely sounds right.
- **When:** facts come from public pages/docs and the decision costs weeks.
- **Not for:** login-only or paid material; legal or tax opinions (the brief marks "to verify" rather than concluding for you).

### Requirement → spec (the seven steps)
Requirement: "I have 4 apps with few downloads; which monetization should come first? Give me research I can check."

| Step | What to do | First-hand material (research of 2026-11-23) |
|---|---|---|
| 1 Intake | write the **decision** and 3–7 questions; known vs unknown; budget and time | decision: monetization order. Known: 31 free downloads in 7 days (from console screenshots), about 65% overseas; unknown: conversion rate |
| 2 Decompose | 8 stages: questions (human) → fetch (code) → quoted claims (model) → quote check (code) → draft (model) → number check (code) → support review (different model) → human sign-off | `stages` |
| 3 Pattern | `workflow:chain`; **no multi-agent**: narrow question, few sources, each step must be testable alone | `pattern_reason` |
| 4 Spec | conclusion first; sources after; each number maps to a row in `claims.csv` or sits next to **ASSUMPTION**; unknowns say **TO VERIFY** | the real report did this: conversion 1–4% and price ranges are labelled assumptions, "not measured, not a forecast" |
| 5 Gates | `g_quotes` (each quote appears verbatim in the saved source) → `g_numbers` (0 untraced numbers) → `g_support` (a different model judges whether the quote supports the sentence) → human checks 2 | `gates` |
| 6 Reliable runs | fetch each source once per day and archive it; reruns use the archive; unreachable sources are TO VERIFY, never filled from memory | `reliability` |
| 7 Cost | below | `cost_roi` |

**Spec file:** `pipelines/e2e/e2e-sourced-research-brief-pipeline.pipeline.yaml` (pipeline spec: e2e-sourced-research-brief-pipeline)

### First-hand material: how our 2026-11-23 research was done, and where it went wrong
- **Sources up front:** competitor ratings from the iTunes Search API; competitor in-app prices from the store page's purchase list; terms from Apple's official pages; downloads from console screenshots — each with a **fetch date** and its **limits** (e.g. "the purchase list may repeat a name at several price points; only representative prices are shown").
- **Assumptions apart from facts:** conversion rates and one-time prices are labelled **assumptions**, in the report's words "not measured, not to be quoted as a forecast"; prices or ratings that could not be fetched are marked "to verify".
- **Catching its own error:** a second pass found that the first report said "a native Swift file can be reused", and **corrected** it: the real code used a Flutter purchase plugin. **That is exactly what `g_quotes` + `g_support` exist to catch: a conclusion not tied to the source file.** (The correction is recorded; how it was found — by a person or a second pass — is not, so do not treat it as a measured automatic gate.)
- **What not to do:** treat conversion rates from secondary articles as facts; treat "every price that appeared in a competitor's list" as "what to charge".

### Filled eval checklist
Eval plan and cases K1–K6 are in the Chinese section. In short: gold set `research-brief-gold-v0` has 6 cases (template suggests ≥20), half from the real error above, half synthetic. Deterministic gates must pass 100% (`min_pass_rate` 1.0, per-slot). Cases: a verbatim quote passes; a "polished" quote fails the exact match; an untagged "3% conversion" fails the number check; a conclusion contradicted by the source must be rated unsupported; an unreachable source becomes TO VERIFY; an "ignore previous instructions" line in a page is treated as data.

### ROI estimate (**estimated, not measured**)
- Tokens: about 10^5 per brief (about 130k in, 20k out), from page sizes; real research may be larger.
- Cash-price proxy: roughly 0.1–1 USD per brief. Prices from secondary aggregators, **not verified against the official page** (<https://platform.claude.com/docs/en/about-claude/pricing>; check and date it yourself).
- Time: human baseline about 4 hours (estimate, not measured); post-pipeline review about 1 hour (estimate, not measured). **Human review is the largest cost.**
- Break-even: about 2 months in `cost_roi` (not worth building for a one-off decision; worth it when repeated). Not a forecast.
- Another benefit — not building weeks of work on a wrong premise — cannot be quantified and is **not in the numbers**.

### Failure cases
- **Facts and guesses mixed:** readers cannot tell them apart → `ASSUMPTION` / `TO VERIFY` labels plus `g_numbers`.
- **Quotes rewritten by the model:** looks like a citation, is a paraphrase → verbatim match.
- **A model grading itself:** waves its own inventions through → `g_support` uses a different model, read-only, score only.
- **Mixed or duplicated source scope:** purchase lists repeat names → state the limits in the source notes.

### China alternatives
- `china_availability: partial`. Some overseas pages may be slow or unstable; use official sources you can reach reliably (no circumvention). Models: Kimi, GLM, Qwen, DeepSeek. Claude is unavailable in the mainland, Hong Kong and Macau.

### Safety notes
- **Fetched page content is untrusted input**: the model has no tools in this flow and acts on nothing.
- Respect each site's terms and request rate; save only the page text you need and do not republish third-party articles (keep quotes short).
- No account IDs or console links in the brief; console data (e.g. downloads) goes public only with the owner's agreement on the wording.

### Test notes
- Model: not pinned; the quote/number-check scripts are **not written, not tested**; the `g_support` review has **not been run**. What actually happened is only the research report itself and its correction.

### Related recipes (not repeated here)
`research-digest-with-citations` · `verify-ai-output-checklist` · `long-doc-to-brief` · `decide-from-real-data`.

## 来源 / Sources

- Anthropic, building effective agents: <https://www.anthropic.com/engineering/building-effective-agents>
- Anthropic, multi-agent research system (token multiple): <https://www.anthropic.com/engineering/multi-agent-research-system>
- Hamel Husain, Evals FAQ: <https://hamel.dev/blog/posts/evals-faq/>
- Anthropic supported regions (checked 2026-11-23): <https://www.anthropic.com/legal/supported-regions>