Skip to content

Commit 2f54784

Browse files
authored
docs: add canonical navigation and ownership (#1095)
1 parent 9c32c14 commit 2f54784

21 files changed

Lines changed: 355 additions & 101 deletions

‎AGENTS.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,6 @@ aligned. Effective exact-review admission, publication, and batching overrides
145145
live in `dashboard/wrangler.toml`; owning fallback behavior lives in
146146
`dashboard/exact-review-queue.ts`. Update `.github/workflows/sweep.yml` or
147147
`src/clawsweeper.ts` only when the changed contract is actually owned there.
148+
149+
Use [`docs/README.md`](docs/README.md) for the documentation map, lifecycle
150+
states, role ownership, and cross-surface update triggers.

‎CONTRIBUTING.md‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
ClawSweeper is the conservative maintenance bot for OpenClaw repositories. This
44
guide is for people and coding agents preparing or updating a ClawSweeper pull
55
request. It complements the repository's [README](README.md) and
6-
[AGENTS.md](AGENTS.md); the latter is the binding instruction file for agents.
6+
[documentation index](docs/README.md). [AGENTS.md](AGENTS.md) is the binding
7+
instruction file for agents.
78

89
## Before You Start
910

@@ -30,13 +31,21 @@ pnpm run build
3031
pnpm run check
3132
```
3233

34+
Corepack reads the pinned `[email protected]` version from `package.json`; do not
35+
replace it with an unpinned global pnpm command in canonical examples.
36+
3337
Use the narrowest meaningful validation for the changed surface first. For a
3438
docs-only change, run `git diff --check` and verify the changed links and
3539
commands. For code, test, workflow, queue, API, UI, package, or integration
3640
changes, follow `AGENTS.md`: satisfy the real-behavior proof contract and
3741
mandatory Codex review loop before opening even a draft PR or updating one.
3842
Only Martin may expressly approve an evidence-in-progress exception.
3943

44+
Documentation-only changes should also classify new pages as active, proposed,
45+
compatibility-only, or historical. Active runbooks need a role owner, owning
46+
source, last-verified revision, and concrete update triggers; see the
47+
[documentation index](docs/README.md#document-lifecycle).
48+
4049
## Create or Update a Pull Request
4150

4251
Use the [pull request template](.github/pull_request_template.md). Keep these

‎README.md‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,17 @@ fanout.
1414

1515
Project vision and boundaries: [`VISION.md`](VISION.md)
1616

17+
Documentation by task and audience: [`docs/README.md`](docs/README.md)
18+
1719
## Contributing
1820

1921
For local setup, PR scope, main-body proof, and the author-owned review loop,
2022
read [CONTRIBUTING.md](CONTRIBUTING.md) before opening or updating a pull
21-
request. The guide explains when to use `@clawsweeper re-review`, why a changed
22-
head or PR body needs fresh evidence, and why readiness is not merge authority.
23+
request. Use the [documentation index](docs/README.md) to reach architecture,
24+
configuration, dashboard, policy, and operator references without scanning this
25+
entire README. The contributing guide explains when to use
26+
`@clawsweeper re-review`, why a changed head or PR body needs fresh evidence,
27+
and why readiness is not merge authority.
2328

2429
The OpenClaw-hosted ClawSweeper instance is not a public review service and does
2530
not provide free reviews for third-party repositories. If you want ClawSweeper

‎docs/README.md‎

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
# ClawSweeper documentation
2+
3+
- Status: active documentation index
4+
- Owner: ClawSweeper maintainers
5+
- Source of truth: the linked repository files and their owning code,
6+
configuration, workflows, and tests
7+
- Last verified: `openclaw/clawsweeper@9c32c14c65b0551b43a10c2086c0031338ae41e7`
8+
- Update when: a document is added, retired, moved, changes lifecycle, or gains a
9+
new canonical owner
10+
11+
ClawSweeper reviews GitHub issues and pull requests, publishes durable results,
12+
and applies or repairs only through guarded maintainer-controlled paths. Start
13+
with the task or audience below; this page is a map, not another operator
14+
manual.
15+
16+
## Start here
17+
18+
| Goal | First page | Next step |
19+
| --- | --- | --- |
20+
| Understand the product boundary | [Project vision](../VISION.md) | [Orchestration](orchestration.md) |
21+
| Set up a development checkout | [Contributing](../CONTRIBUTING.md) | [Local run](../README.md#local-run) |
22+
| Understand review and scheduling | [Scheduler](scheduler.md) | [Automation limits](limits.md) |
23+
| Add or operate a target repository | [Target repositories](target-repositories.md) | [Target dispatcher](target-dispatcher.md) |
24+
| Inspect production without mutation | [Live dashboard](live-dashboard.md) | [OpenClaw Bay](openclaw-bay-demo.md) |
25+
| Operate repair or automerge | [Repair entry point](repair/README.md) | [Repair operations](repair/operations.md) |
26+
| Prepare proof for a change | [Contributing](../CONTRIBUTING.md) | [Agent instructions](../AGENTS.md) |
27+
| Review a local committed range | [Local branch review](commit-sweeper.md) | `pnpm local-review -- --base origin/main` |
28+
29+
Production mutation commands are intentionally not repeated here. Follow the
30+
linked runbook, confirm its status and source of truth, and keep all execution,
31+
fix, merge, automerge, deployment, and queue gates closed unless the current
32+
operator has explicit authority to open them.
33+
34+
## Document lifecycle
35+
36+
Every evergreen page belongs to one of these states:
37+
38+
- **active**: current guidance for a supported surface
39+
- **proposed**: a future design or runbook that grants no execution approval
40+
- **compatibility-only**: retained for still-readable state or a supported
41+
migration boundary, but not for creating new work
42+
- **historical**: completed proof or decision history, not current procedure
43+
44+
Active runbooks and volatile configuration references should begin with status,
45+
role owner, owning source, last-verified revision, and update triggers. “Owner”
46+
is a responsibility role until maintainers approve a stable GitHub CODEOWNERS
47+
individual or team. Generated or checked values should name their checker;
48+
everything else requires human comparison with current main.
49+
50+
## Concepts and architecture
51+
52+
- [Project vision](../VISION.md) — active; product goals and boundaries
53+
- [Orchestration](orchestration.md) — active; planner, review, publish, apply,
54+
and repair shape
55+
- [Scheduler](scheduler.md) — active and volatile; scheduled and exact-event
56+
execution behavior
57+
- [State storage](state-storage.md) — active; Worker, R2, and Git-backed state
58+
ownership
59+
- [Action ledger](action-ledger.md) — active; mutation receipts and replay
60+
boundaries
61+
- [Work lane](work-lane.md) — active; bounded workflow admission
62+
- [Review cache](review-cache.md) — active; reusable review-state contract
63+
64+
## Configuration and repository onboarding
65+
66+
- [Automation limits](limits.md) — active; validated by
67+
`pnpm run check:limits`
68+
- [Target repositories](target-repositories.md) — active; profiles, generic
69+
fallbacks, inventory, and apply membership
70+
- [Target dispatcher](target-dispatcher.md) — active; exact-event integration
71+
- [OpenClaw event hooks](openclaw-event-hooks.md) — active; event routes
72+
- [Local branch review](commit-sweeper.md) — active local/GitHub-isolated
73+
replacement for hosted commit review
74+
75+
## Operations and runbooks
76+
77+
- [Live dashboard](live-dashboard.md) — active; public observer surface and
78+
operator diagnostics
79+
- [Queue-service split runbook](queue-service-split-runbook.md) — proposed;
80+
unapproved production migration plan
81+
- [Repair operations](repair/operations.md) — active; canonical repair operator
82+
procedures, trust checks, gates, and token boundaries
83+
- [Local ClawSweeper skill](local-clawsweeper-skill.md) — active; read-only
84+
local exact-item or committed-range review
85+
86+
## Dashboards and observability
87+
88+
- [Live dashboard](live-dashboard.md) — active; Worker status and operational
89+
telemetry
90+
- [OpenClaw Bay](openclaw-bay-demo.md) — active; public six-lane visualization
91+
- [Triage dashboard](triage-dashboard.md) — active; cached issue triage
92+
- [PR proof triage](pr-proof-triage-dashboard.md) — active; maintainer proof
93+
inspection
94+
95+
## Contributor, review, and proof guidance
96+
97+
- [Contributing](../CONTRIBUTING.md) — active; setup, scope, PR evidence, and
98+
author-owned review loop
99+
- [Agent instructions](../AGENTS.md) — active and binding for coding agents
100+
- [PR review comments](pr-review-comments.md) — active; review-thread handling
101+
- [Related issue discovery](related-issue-discovery.md) — active; duplicate and
102+
adjacent-report context
103+
104+
`docs/proof/**` contains inspectable artifacts for specific changes. Those
105+
files support their recorded claim but do not override current runbooks.
106+
107+
## Repair and automerge
108+
109+
- [Repair entry point](repair/README.md) — active; concepts, task map, and local
110+
command reference
111+
- [Repair operations](repair/operations.md) — active; canonical operator
112+
procedures
113+
- [Internal feature map](repair/internal-features.md) — active implementation
114+
reference, not an operator runbook
115+
- [Steerable repair architecture](steerable-repair-automation.md) — active;
116+
end-to-end protocol and control boundaries
117+
- [Trusted PR repair](repair/auto-update-prs.md) — active; autofix/automerge
118+
contract
119+
- [Automatic issue PRs](repair/automatic-issue-prs.md) — active; guarded issue
120+
implementation intake
121+
- [Automerge flow](repair/automerge-flow.md) — active; state machine
122+
- [Automerge proof](repair/automerge-e2e.md) — active; controlled proof harness
123+
- [Containment validation history](repair/containment-validation-todo.md) —
124+
historical; completed July 2026 work
125+
126+
## Close policy
127+
128+
- [Obsolescence policies](obsolescence-close-policies.md) — active policy map
129+
- [Unsponsored feature policy](unsponsored-feature-close-policy.md) — active
130+
- [Product direction policy](product-direction-close-policy.md) — active
131+
- [Author PR budget policy](author-pr-budget-close-policy.md) — active
132+
- [Stalled PR policies](stalled-pr-close-policies.md) — active
133+
134+
## Security and special-purpose surfaces
135+
136+
- [Spam scanner](spam-scanner.md) — active; trust and classification boundary
137+
- Security-sensitive work must use maintainer security handling rather than a
138+
normal public PR or public documentation page.
139+
140+
## Update triggers
141+
142+
Review the relevant pages in the same change when any of these surfaces move:
143+
144+
- `config/automation-limits.json` or workflow limit literals: automation limits
145+
and scheduler
146+
- `config/target-repositories.json`, repository profiles, target inventory, or
147+
apply membership: target-repository and dispatcher docs
148+
- exact-review queue schema, retry classification, publication capacity,
149+
batching, direct publication, or state writing: scheduler, limits, dashboard,
150+
Bay, and queue runbooks
151+
- dashboard route, projection, or public-field changes: dashboard and Bay docs
152+
- mutation, close, proof, repair, or merge policy changes: policy pages,
153+
CONTRIBUTING, AGENTS, and repair operations
154+
- workflow retirement or replacement: every command example and compatibility
155+
page that names the workflow
156+
157+
The current index and lifecycle labels are human-reviewed. Follow-on automated
158+
checks validate links, documented commands, and selected configuration-derived
159+
claims; they do not decide policy or production ownership.

‎docs/commit-sweeper.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Local Branch Review (`local-review`)
22

3+
- Status: active local/GitHub-isolated review reference; hosted commit review is
4+
retired
5+
- Owner: ClawSweeper maintainers
6+
- Source of truth: `src/commit-sweeper.ts`, `prompts/review-commit.md`, package
7+
scripts, and local-review tests
8+
- Last verified: `openclaw/clawsweeper@9c32c14c65b0551b43a10c2086c0031338ae41e7`
9+
- Update when: local range selection, network/token isolation, model-service
10+
requirements, output artifacts, or the retired hosted boundary changes
11+
312
The hosted commit-review lane (per-commit main reviews, GitHub Checks, and
413
commit-finding dispatch) was retired in July 2026 after producing zero
514
successful runs in its final month. What remains is the local, GitHub-isolated

‎docs/limits.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Automation Limits
22

3+
- Status: active generated/validated configuration reference
4+
- Owner: ClawSweeper maintainers
5+
- Source of truth: `config/automation-limits.json`, Worker overrides, and
6+
`scripts/check-limits.ts`
7+
- Last verified: `openclaw/clawsweeper@9c32c14c65b0551b43a10c2086c0031338ae41e7`
8+
- Update when: worker budgets, lane ratios, workflow literals, or production
9+
capacity overrides change; run `pnpm run check:limits`
10+
311
Read when changing ClawSweeper throughput, Codex fan-out,
412
or repair dispatch capacity.
513

‎docs/live-dashboard.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Live Dashboard
22

3+
- Status: active observer and operator reference
4+
- Owner: ClawSweeper maintainers and the designated Cloudflare operator
5+
- Source of truth: `dashboard/worker.ts`, `dashboard/exact-review-queue.ts`,
6+
`dashboard/wrangler.toml`, dashboard tests, and deployed read-only endpoints
7+
- Last verified: `openclaw/clawsweeper@9c32c14c65b0551b43a10c2086c0031338ae41e7`
8+
- Update when: routes, public fields, queue projections, capacity, alerts,
9+
deployment, or state-writer telemetry changes
10+
311
Read when changing the Cloudflare status dashboard, status ingest contract, or
412
operator-facing ClawSweeper observability.
513

‎docs/openclaw-bay-demo.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# OpenClaw Bay
22

3+
- Status: active public observer guide
4+
- Owner: ClawSweeper maintainers
5+
- Source of truth: `dashboard/bay-page.ts`, Worker queue projections, Bay tests,
6+
and the read-only `/bay-demo` route
7+
- Last verified: `openclaw/clawsweeper@9c32c14c65b0551b43a10c2086c0031338ae41e7`
8+
- Update when: lane names, stage mapping, projection bounds, control cards,
9+
routes, or navigation changes
10+
311
OpenClaw Bay is a public, indexable, read-only visualisation of the live
412
ClawSweeper pipeline. It lives at `/bay-demo` on the existing dashboard Worker
513
and turns active work into animated crustaceans moving across a shoreline. It

‎docs/queue-service-split-runbook.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
`dashboard/exact-review-queue.ts`, and the deployed Worker settings
77
- Last verified:
88
`openclaw/clawsweeper@2cc2c0df8d533677c5ff82cf3b86a148dd869554`
9+
- Update when: queue bindings, migrations, runtime variables, routes,
10+
publication/state writing, verification, rollback, or approval changes
911

1012
This runbook moves the existing SQLite-backed `ExactReviewQueue` Durable Object
1113
namespace from the `clawsweeper-status` Worker script to a dedicated Worker

0 commit comments

Comments
 (0)