Skip to content

Commit 5a2e42c

Browse files
committed
docs(skills): add research workflow docs
1 parent 7b59150 commit 5a2e42c

13 files changed

Lines changed: 18884 additions & 4711 deletions

‎.codex/task-contract.yaml‎

Lines changed: 14 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,28 @@
11
task_id: 20260316
2-
branch: codex/20260316-ownerless-rollout
2+
branch: codex/20260316-research-skill-docs
33
base_branch: docs-v2-dev
44
scope_in:
55
- .codex/task-contract.yaml
6-
- .vscode/
7-
- .github/
8-
- README.md
9-
- ai-tools/ai-skills/
10-
- ai-tools/agent-packs/skills/
11-
- contribute/CONTRIBUTING/
12-
- docs-guide/overview.mdx
13-
- docs-guide/catalog/scripts-catalog.mdx
14-
- docs-guide/catalog/
15-
- docs-guide/features/
16-
- docs-guide/frameworks/
17-
- docs-guide/policies/
6+
- docs-guide/catalog/ai-tools.mdx
7+
- docs-guide/catalog/pages-catalog.mdx
8+
- docs-guide/frameworks
189
- docs-index.json
19-
- lpd
20-
- snippets/templates/
21-
- tasks/reports/script-classifications.json
22-
- tests/script-index.md
23-
- tests/run-all.js
24-
- tests/run-pr-checks.js
25-
- tests/WHEN-TESTS-RUN.md
26-
- tests/integration/v2-link-audit.js
27-
- tests/unit/
28-
- tests/utils/
29-
- tools/config/
30-
- tools/lib/script-index.md
31-
- tools/lib/
32-
- tools/script-index.md
33-
- tools/scripts/
34-
- v2/about/index.mdx
35-
- v2/community/index.mdx
36-
- v2/developers/index.mdx
37-
- v2/gateways/index.mdx
38-
- v2/home/index.mdx
10+
- docs-guide/overview.mdx
11+
- docs.json
12+
- tests/README.md
3913
- v2/index.mdx
40-
- v2/internal/index.mdx
41-
- v2/lpt/index.mdx
42-
- v2/orchestrators/index.mdx
43-
- v2/solutions/index.mdx
44-
- v2/templates/
14+
- v2/resources/index.mdx
15+
- v2/resources/documentation-guide
4516
scope_out: []
4617
allowed_generated:
47-
- .vscode/
48-
- ai-tools/agent-packs/skills/
18+
- .codex/pr-body.generated.md
4919
- docs-guide/catalog/pages-catalog.mdx
50-
- docs-guide/catalog/ui-templates.mdx
51-
- docs-guide/catalog/scripts-catalog.mdx
5220
- docs-index.json
53-
- tests/script-index.md
54-
- tools/lib/script-index.md
55-
- tools/script-index.md
56-
- v2/about/index.mdx
57-
- v2/community/index.mdx
58-
- v2/developers/index.mdx
59-
- v2/gateways/index.mdx
60-
- v2/home/index.mdx
6121
- v2/index.mdx
62-
- v2/internal/index.mdx
63-
- v2/lpt/index.mdx
64-
- v2/orchestrators/index.mdx
65-
- v2/solutions/index.mdx
66-
- v2/templates/
22+
- v2/resources/index.mdx
6723
acceptance_checks:
68-
- node tests/unit/skill-docs.test.js
69-
- node tests/unit/codex-skill-sync.test.js
70-
- node tests/unit/export-portable-skills.test.js
71-
- node tests/unit/v2-link-audit.test.js
72-
- node tests/integration/v2-link-audit.js --staged --strict --report /tmp/livepeer-link-audit-staged-ownerless.md
73-
- node tests/run-all.js --staged --skip-browser
7424
- node tests/run-pr-checks.js --base-ref docs-v2-dev
75-
risk_flags: []
25+
risk_flags:
26+
- docs-ia
27+
- docs-governance
7628
follow_up_issues: []

‎docs-guide/catalog/ai-tools.mdx‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,22 @@ Generated metadata:
8888
- managed files inside an installed skill are created or updated from the canonical template bundle
8989
- stale managed bundle files are pruned on resync
9090
- unmanaged skills and unmanaged files inside a skill folder are preserved
91+
92+
## Fact-Check Research Workflow
93+
94+
The page-content research workflow is the active docs fact-checking skill family.
95+
96+
Canonical operator references:
97+
98+
- Internal runbook: `/docs-guide/frameworks/research-skill-workflow`
99+
- Public contributor page: `/v2/resources/documentation-guide/research-and-fact-checking`
100+
101+
Primary entrypoints:
102+
103+
```bash icon="terminal"
104+
node tools/scripts/docs-fact-registry.js --validate --registry tasks/research/claims
105+
node tools/scripts/docs-page-research.js --page v2/orchestrators/guides/deployment-details/setup-options.mdx --report-md /tmp/docs-page-research.md --report-json /tmp/docs-page-research.json
106+
node tools/scripts/docs-page-research-pr-report.js --files v2/orchestrators/guides/deployment-details/setup-options.mdx,v2/orchestrators/setup/rcs-requirements.mdx,v2/orchestrators/guides/operator-considerations/business-case.mdx --report-md /tmp/page-content-research-pr.md --report-json /tmp/page-content-research-pr.json
107+
```
108+
109+
The workflow is experimental and advisory-first. Use it for factual verification, contradiction review, and claim-family propagation, not generic MDX or link hygiene.

‎docs-guide/catalog/pages-catalog.mdx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@ Run command: node tools/scripts/generate-docs-guide-pages-index.js --write
425425
<Tree.File name="docs-features-and-ai-integrations.mdx" />
426426
<Tree.File name="documentation-guide.mdx" />
427427
<Tree.File name="documentation-overview.mdx" />
428+
<Tree.File name="research-and-fact-checking.mdx" />
428429
<Tree.File name="snippets-inventory.mdx" />
429430
<Tree.File name="style-guide.mdx" />
430431
</Tree.Folder>
Lines changed: 199 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,199 @@
1+
---
2+
title: Research Skill Workflow
3+
sidebarTitle: Research Skill
4+
description: >-
5+
Canonical internal runbook for the experimental docs fact-check research
6+
workflow, including sources of truth, operator commands, and maintenance
7+
expectations.
8+
keywords:
9+
- livepeer
10+
- docs guide
11+
- research skill workflow
12+
- fact checking
13+
- docs operators
14+
- codex
15+
'og:image': /snippets/assets/site/og-image/fallback.png
16+
'og:image:alt': Livepeer Docs social preview image
17+
'og:image:type': image/png
18+
'og:image:width': 1200
19+
'og:image:height': 630
20+
audience: internal
21+
pageType: how_to
22+
purpose: how_to
23+
status: current
24+
lastVerified: 2026-03-16
25+
---
26+
27+
# Research Skill Workflow
28+
29+
This is the canonical operator runbook for the experimental page-content research workflow that landed in `docs-v2-dev`.
30+
31+
Use this page for:
32+
33+
- operational usage
34+
- source-of-truth boundaries
35+
- readiness status
36+
- maintenance and improvement workflow
37+
38+
Do not use rollout reports or `tests/README.md` as the canonical narrative source.
39+
40+
## What Is Canonical
41+
42+
Canonical sources:
43+
44+
- skill behavior: `ai-tools/ai-skills/templates/*.template.md`
45+
- fact storage: `tasks/research/claims/`
46+
- registry validation: `tools/scripts/docs-fact-registry.js`
47+
- manual fact runner: `tools/scripts/docs-page-research.js`
48+
- PR advisory runner: `tools/scripts/docs-page-research-pr-report.js`
49+
- local/manual PR prep integration: `tools/scripts/create-codex-pr.js --advisory-research`
50+
- forward plan: `tasks/plan/future/page-content-research-trust-roadmap.md`
51+
52+
Generated or derived:
53+
54+
- local installed Codex skills under `$CODEX_HOME/skills`
55+
- saved advisory reports and validation artifacts
56+
57+
Historical only:
58+
59+
- rollout evidence and exploratory pilots under `tasks/plan/repo-ops-reports/`
60+
61+
Legacy:
62+
63+
- route-centric claim-ledger advisory helpers are retained only as legacy comparison tooling and are not the active PR advisory path
64+
65+
## Workflow Model
66+
67+
The workflow is claim-led rather than route-led.
68+
69+
It is responsible for:
70+
71+
- extracting material factual claims
72+
- checking evidence sources
73+
- detecting contradictions across related pages
74+
- classifying claims by confidence and freshness risk
75+
- producing a propagation queue for dependent pages
76+
77+
It is not responsible for:
78+
79+
- MDX syntax validation
80+
- style-guide compliance
81+
- link and import integrity
82+
- generic navigation cleanup
83+
84+
Route or ownership issues only belong here when they change factual ownership or contradiction resolution.
85+
86+
## Readiness Status
87+
88+
Current status:
89+
90+
- **Codex-ready:** yes
91+
- **Cross-agent-ready:** portable with minor work
92+
- **Operating mode:** experimental and advisory-first
93+
94+
Interpretation:
95+
96+
- Codex skills can sync from the canonical template bundle immediately.
97+
- The public and internal docs now explain how to use the workflow.
98+
- Cross-agent portability exists structurally, but broader packaging and operator guidance still need hardening before claiming equal readiness across all agents.
99+
100+
## Operator Commands
101+
102+
Validate the registry:
103+
104+
```bash icon="terminal"
105+
node tools/scripts/docs-fact-registry.js --validate --registry tasks/research/claims
106+
```
107+
108+
Run a single-page pass:
109+
110+
```bash icon="terminal"
111+
node tools/scripts/docs-page-research.js \
112+
--page v2/orchestrators/guides/deployment-details/setup-options.mdx \
113+
--report-md /tmp/docs-page-research.md \
114+
--report-json /tmp/docs-page-research.json
115+
```
116+
117+
Run a cluster review:
118+
119+
```bash icon="terminal"
120+
node tools/scripts/docs-page-research.js \
121+
--files v2/orchestrators/guides/deployment-details/setup-options.mdx,v2/orchestrators/setup/rcs-requirements.mdx,v2/orchestrators/guides/operator-considerations/business-case.mdx \
122+
--report-md /tmp/docs-page-research-cluster.md \
123+
--report-json /tmp/docs-page-research-cluster.json
124+
```
125+
126+
Run the PR advisory helper:
127+
128+
```bash icon="terminal"
129+
node tools/scripts/docs-page-research-pr-report.js \
130+
--files v2/orchestrators/guides/deployment-details/setup-options.mdx,v2/orchestrators/setup/rcs-requirements.mdx,v2/orchestrators/guides/operator-considerations/business-case.mdx \
131+
--report-md /tmp/page-content-research-pr.md \
132+
--report-json /tmp/page-content-research-pr.json
133+
```
134+
135+
Run PR prep with advisory research:
136+
137+
```bash icon="terminal"
138+
node tools/scripts/create-codex-pr.js \
139+
--advisory-research \
140+
--changed-files v2/orchestrators/guides/deployment-details/setup-options.mdx,v2/orchestrators/setup/rcs-requirements.mdx,v2/orchestrators/guides/operator-considerations/business-case.mdx
141+
```
142+
143+
## Expected Outputs
144+
145+
Every substantive run should surface some combination of:
146+
147+
- verified claims
148+
- conflicted claims
149+
- time-sensitive claims
150+
- unresolved or historical-only claims
151+
- cross-page contradictions
152+
- propagation queue items
153+
- explicit evidence sources
154+
155+
Operators should prefer conservative interpretation:
156+
157+
- if evidence is weak, treat the claim as unresolved
158+
- if wording is stronger than the evidence, downgrade the wording
159+
- if the same claim appears elsewhere, queue propagation work instead of fixing one page in isolation
160+
161+
## Source-of-Truth Boundaries
162+
163+
Use this split consistently:
164+
165+
- public contributor usage: `v2/resources/documentation-guide/`
166+
- internal operator workflow: this runbook in `docs-guide/frameworks/`
167+
- rollout/adoption record: `tasks/plan/repo-ops-reports/`
168+
- future hardening plan: `tasks/plan/future/`
169+
- executable behavior: scripts, templates, tests, and claim registries
170+
171+
If these sources disagree:
172+
173+
1. scripts and tests define runtime behavior
174+
2. template bundles define skill behavior
175+
3. this runbook defines operator workflow and readiness
176+
4. public documentation guide pages summarize contributor usage
177+
178+
## Maintenance Workflow
179+
180+
When improving the research skill:
181+
182+
1. expand claim-family coverage in `tasks/research/claims/`
183+
2. improve evidence matching and classification logic in the runner
184+
3. validate on real orchestrator and gateway page clusters
185+
4. run PR advisory on tracked factual docs pages
186+
5. update this runbook when the operator contract changes
187+
188+
Do not:
189+
190+
- widen the workflow back into generic navigation QA
191+
- let `tests/README.md` become the primary narrative home again
192+
- treat exploratory reports as canonical instructions
193+
194+
## Related Docs
195+
196+
- Public contributor page: `/v2/resources/documentation-guide/research-and-fact-checking`
197+
- AI tools index: `/docs-guide/catalog/ai-tools`
198+
- Source of truth policy: `/docs-guide/policies/source-of-truth-policy`
199+
- Trust roadmap: `tasks/plan/future/page-content-research-trust-roadmap.md`

‎docs-guide/overview.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ See [source-of-truth-policy.mdx](./policies/source-of-truth-policy.mdx) for full
3434
| Contributing | How to work in the repo safely and consistently | [contributing.mdx](./contributing/contributing.mdx), [mintlify.mdx](./contributing/mintlify.mdx) |
3535
| Features | Major repo systems, automation surfaces, and functional maps | [feature-map.mdx](./features/feature-map.mdx), [architecture-map.mdx](./features/architecture-map.mdx), [automations.mdx](./features/automations.mdx), [data-integrations.mdx](./features/data-integrations.mdx), [ui-system.mdx](./features/ui-system.mdx), [visual-explainer-workflows.mdx](./features/visual-explainer-workflows.mdx) |
3636
| Tooling | CLI, developer tooling support, and reusable authoring reference maps | [lpd-cli.mdx](./tooling/lpd-cli.mdx), [dev-tools.mdx](./tooling/dev-tools.mdx), [icon-map.mdx](./tooling/reference-maps/icon-map.mdx) |
37-
| Frameworks | Structural models, content system conventions, and component governance | [content-system.mdx](./frameworks/content-system.mdx), [component-framework.mdx](./frameworks/component-framework.mdx), [component-governance.mdx](./frameworks/component-governance.mdx) |
37+
| Frameworks | Structural models, content system conventions, component governance, and canonical operator workflows | [content-system.mdx](./frameworks/content-system.mdx), [component-framework.mdx](./frameworks/component-framework.mdx), [component-governance.mdx](./frameworks/component-governance.mdx), [research-skill-workflow.mdx](./frameworks/research-skill-workflow.mdx) |
3838
| Policies | Enforcement rules, quality controls, and audit standards | [source-of-truth-policy.mdx](./policies/source-of-truth-policy.mdx), [quality-gates.mdx](./policies/quality-gates.mdx), [audit-system-overview.mdx](./policies/audit-system-overview.mdx), [skill-pipeline-map.mdx](./policies/skill-pipeline-map.mdx), [cleanup-quarantine-policy.mdx](./policies/cleanup-quarantine-policy.mdx), [component-layout-decisions.mdx](./policies/component-layout-decisions.mdx), [infrastructure-principles.mdx](./policies/infrastructure-principles.mdx) |
3939
| Catalog | Generated catalogs plus manual reference indexes and archives | [ai-tools.mdx](./catalog/ai-tools.mdx), [ui-templates.mdx](./catalog/ui-templates.mdx), [pages-catalog.mdx](./catalog/pages-catalog.mdx), [components-catalog.mdx](./catalog/components-catalog.mdx), [scripts-catalog.mdx](./catalog/scripts-catalog.mdx), [workflows-catalog.mdx](./catalog/workflows-catalog.mdx), [templates-catalog.mdx](./catalog/templates-catalog.mdx), [visual-explainer-workflows-archive.mdx](./catalog/visual-explainer-workflows-archive.mdx) |
4040

0 commit comments

Comments
 (0)