Skip to content

Commit f687f70

Browse files
committed
Merge branch 'docs-v2-dev' of https://github.com/livepeer/docs into docs-v2-dev
2 parents 743484d + 5ed4f07 commit f687f70

25 files changed

Lines changed: 14731 additions & 28 deletions

‎.allowlist‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ api
4444
Dockerfile
4545
Makefile
4646
sitemap-ai.xml
47-
llms-full.txt
4847
llms.txt
4948
docs-index.json
5049
contribute

‎.codex/task-contract.yaml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
11
task_id: 20260316
2-
branch: codex/20260316-research-skill-trust-hardening
2+
branch: codex/20260316-research-skill-adjudication
33
base_branch: docs-v2-dev
44
scope_in:
55
- .codex/task-contract.yaml
66
- .codex/locks-local
7+
- .allowlist
78
- docs-guide/frameworks/research-skill-workflow.mdx
89
- tasks/reports/repo-ops
10+
- tasks/reports/script-classifications.json
11+
- tasks/research
912
- tasks/research/claims
13+
- tests/script-index.md
14+
- tests/unit/docs-research-adjudication.test.js
1015
- tests/unit/docs-fact-registry.test.js
1116
- tests/unit/docs-page-research-pr-report.test.js
1217
- tests/unit/docs-page-research.test.js
18+
- tools/script-index.md
19+
- tools/scripts/docs-research-adjudication.js
1320
- tools/scripts/docs-fact-registry.js
1421
- tools/scripts/docs-page-research-pr-report.js
1522
- tools/scripts/docs-page-research.js
23+
- docs-guide/catalog/scripts-catalog.mdx
1624
scope_out: []
1725
allowed_generated:
1826
- .codex/pr-body.generated.md

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ Run command: node tests/unit/script-docs.test.js --write --rebuild-indexes
7575
| `tests/unit/docs-page-research.test.js` | Tests docs-page-research.js — validates claim extraction, contradiction detection, and evidence-source adapters for the experimental research runner. | `node tests/unit/docs-page-research.test.js [flags]` | docs |
7676
| `tests/unit/docs-page-scope.test.js` | Verifies generated authored-page scope helpers so warning-only validators skip generated docs pages while keeping authored pages in scope. | `node tests/unit/docs-page-scope.test.js` | docs |
7777
| `tests/unit/docs-path-sync.test.js` | Unit tests for docs path sync — validates staged move detection, deterministic docs.json/reference rewrites, validator behavior, and remediator write mode. | `node tests/unit/docs-path-sync.test.js` | docs |
78+
| `tests/unit/docs-research-adjudication.test.js` | Tests docs-research-adjudication.js — validates adjudication-ledger schema, report-aware outcome recording, and trust-tier summary rules for measured research-skill review outcomes. | `node tests/unit/docs-research-adjudication.test.js [flags]` | docs |
7879
| `tests/unit/docs-route-scope.test.js` | Verifies docs.json-derived tab and group route scopes resolve to live files. | `node tests/unit/docs-route-scope.test.js` | docs |
7980
| `tests/unit/export-portable-skills.test.js` | Tests export-portable-skills.js — validates portable skill export packs from canonical templates. | `node tests/unit/export-portable-skills.test.js [flags]` | docs |
8081
| `tests/unit/frontmatter-taxonomy.test.js` | Verifies shared docs frontmatter taxonomy normalization and purpose mapping. | `node tests/unit/frontmatter-taxonomy.test.js` | docs |
@@ -154,6 +155,7 @@ Run command: node tests/unit/script-docs.test.js --write --rebuild-indexes
154155
| `tools/scripts/docs-page-research-pr-report.js` | Docs page research PR report — runs the fact-check research runner on changed docs pages and emits an advisory PR artifact summarizing claim families, contradictions, unresolved factual risk, and propagation follow-up. | `node tools/scripts/docs-page-research-pr-report.js [flags]` | docs |
155156
| `tools/scripts/docs-page-research.js` | Docs page research runner — extracts factual claims from docs pages, checks evidence sources, detects contradictions across related pages, and emits manual-first research reports. | `node tools/scripts/docs-page-research.js [flags]` | docs |
156157
| `tools/scripts/docs-quality-and-freshness-audit.js` | Content freshness audit — checks for TODO/TBD/Coming Soon markers, thin pages, stale content | `node tools/scripts/docs-quality-and-freshness-audit.js [flags]` | docs |
158+
| `tools/scripts/docs-research-adjudication.js` | Docs research adjudication ledger — validates, records, and summarizes measured review outcomes for the page-content research workflow so trust decisions are based on real usage rather than intuition. | `node tools/scripts/docs-research-adjudication.js [flags]` | docs |
157159
| `tools/scripts/enforce-generated-file-banners.js` | Generated file banner enforcer — checks (--check) or writes (default) "do not edit" banners on generated files. | `node tools/scripts/enforce-generated-file-banners.js --check | --write [--staged]` | docs |
158160
| `tools/scripts/enforcers/pr/check-component-immutability.js` | Flags modifications to existing component files in PR context. New files allowed. Modifications require approval label. | `node tools/scripts/enforcers/pr/check-component-immutability.js --base-ref main` | docs |
159161
| `tools/scripts/enforcers/pr/check-pr-template.js` | Enforces that PR descriptions include required change and rationale sections before merge | `PR_BODY="..." node tools/scripts/enforcers/pr/check-pr-template.js` | docs |

‎docs-guide/frameworks/research-skill-workflow.mdx‎

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@ Canonical sources:
4343

4444
- skill behavior: `ai-tools/ai-skills/templates/*.template.md`
4545
- fact storage: `tasks/research/claims/`
46+
- adjudication ledger: `tasks/research/adjudication/page-content-research-outcomes.json`
4647
- registry validation: `tools/scripts/docs-fact-registry.js`
4748
- manual fact runner: `tools/scripts/docs-page-research.js`
4849
- PR advisory runner: `tools/scripts/docs-page-research-pr-report.js`
50+
- adjudication workflow: `tools/scripts/docs-research-adjudication.js`
4951
- local/manual PR prep integration: `tools/scripts/create-codex-pr.js --advisory-research`
5052
- forward plan: `tasks/plan/future/page-content-research-trust-roadmap.md`
5153

@@ -140,6 +142,54 @@ node tools/scripts/create-codex-pr.js \
140142
--changed-files v2/orchestrators/guides/deployment-details/setup-options.mdx,v2/orchestrators/setup/rcs-requirements.mdx,v2/orchestrators/guides/operator-considerations/business-case.mdx
141143
```
142144

145+
Validate the adjudication ledger:
146+
147+
```bash icon="terminal"
148+
node tools/scripts/docs-research-adjudication.js \
149+
--validate \
150+
--ledger tasks/research/adjudication/page-content-research-outcomes.json
151+
```
152+
153+
Record one adjudicated outcome from a report artifact:
154+
155+
```bash icon="terminal"
156+
node tools/scripts/docs-research-adjudication.js \
157+
--record \
158+
--ledger tasks/research/adjudication/page-content-research-outcomes.json \
159+
--report-json tasks/reports/repo-ops/2026-03-16-page-content-research-pilot-gateway-trust-hardening.json \
160+
--reviewer codex \
161+
--claim-id gw-startup-program-current \
162+
--human-verdict time-sensitive \
163+
--outcome-class true_positive \
164+
--cause-tag wording_only_conflict \
165+
--action "keep advisory and continue current verification"
166+
```
167+
168+
Record a missing-coverage outcome that was not detected in the report:
169+
170+
```bash icon="terminal"
171+
node tools/scripts/docs-research-adjudication.js \
172+
--record \
173+
--ledger tasks/research/adjudication/page-content-research-outcomes.json \
174+
--report-json tasks/reports/repo-ops/2026-03-16-page-content-research-pilot-gateway-trust-hardening.json \
175+
--reviewer codex \
176+
--claim-family gateway-support-contact-channel \
177+
--human-verdict time-sensitive \
178+
--outcome-class false_negative \
179+
--cause-tag missing_coverage \
180+
--action "expand claim-family coverage for the support contact channel"
181+
```
182+
183+
Write a trust summary from adjudicated outcomes:
184+
185+
```bash icon="terminal"
186+
node tools/scripts/docs-research-adjudication.js \
187+
--summary \
188+
--ledger tasks/research/adjudication/page-content-research-outcomes.json \
189+
--report-md /tmp/page-content-research-adjudication.md \
190+
--report-out-json /tmp/page-content-research-adjudication.json
191+
```
192+
143193
## Expected Outputs
144194

145195
Every substantive run should surface some combination of:
@@ -176,6 +226,8 @@ Interpretation:
176226
- higher `inferred_page_targets` is acceptable when path inference is covering current siblings, but it should not dominate stable high-confidence families
177227
- low `evidence_sources` on a broad review usually means claim-family coverage or source mapping is still too thin
178228

229+
The trust summary is a proxy only. Trust-promotion decisions should come from adjudicated review outcomes, not from raw report counts alone.
230+
179231
## Source-of-Truth Boundaries
180232

181233
Use this split consistently:
@@ -224,6 +276,51 @@ Use this rubric when deciding whether a run was useful enough to trust:
224276
- the claim is really style guidance, not factual truth
225277
- evidence quality is too weak to classify reliably
226278

279+
## Adjudication Workflow
280+
281+
Adjudicate runs when:
282+
283+
- a report is used to make or block a real content decision
284+
- a contradiction group looks noisy or unexpectedly broad
285+
- a reviewer had to manually rediscover facts that should have been tracked
286+
- a gateway status claim is being considered for stronger PR-time trust
287+
288+
Classify outcomes like this:
289+
290+
- `true_positive`: the report surfaced a real issue or useful current-state warning
291+
- `false_positive`: the report surfaced a claim family that was not actually useful or was misleadingly grouped
292+
- `false_negative`: the reviewer had to manually verify a factual claim that the system failed to track
293+
- `needs_split`: one family is collapsing multiple concepts and needs to be divided
294+
- `needs_narrowing`: the family exists but its matching or propagation logic is too broad
295+
- `needs_more_sources`: the family is valid but current source coverage is too weak
296+
297+
Treat these as the default family-status interpretations:
298+
299+
- `stable`: repeated adjudications show the family is useful and low-noise
300+
- `advisory-only`: keep reporting, but do not move toward stronger PR behavior yet
301+
- `needs-split`: separate mixed concepts before trusting the family further
302+
- `needs-narrowing`: reduce matching or inference breadth before trusting the family further
303+
- `needs-more-sources`: expand or improve source coverage before trusting the family further
304+
305+
## Trust Tiers
306+
307+
Trust tiers are metadata only in the current phase:
308+
309+
- `experimental`: not enough adjudicated evidence yet
310+
- `advisory`: usable, but still too noisy or under-evidenced for stronger handling
311+
- `advisory-high-confidence`: a narrow family with low noise and strong current source fit
312+
- `not-eligible`: outside the current trust-candidate slice
313+
314+
Current trust-candidate slice:
315+
316+
- `clearinghouse-public-readiness`
317+
- `remote-signer-current-scope`
318+
- `programme-availability`
319+
- `community-signer-testing-surface`
320+
- `gateway-support-contact-channel`
321+
322+
Do not treat any other family as eligible for stronger PR-time trust until adjudicated outcomes say otherwise.
323+
227324
Do not:
228325

229326
- widen the workflow back into generic navigation QA

0 commit comments

Comments
 (0)