Repository navigation
docs(agents): require end-to-end proof and resolved ClawSweeper findings - #176308
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR strengthens repository instructions for end-to-end reproduction, committed regression tests, consumer validation, and resolving substantive ClawSweeper findings. Review scores
ProductKind: Docs · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review The previous blocker is resolved, no actionable findings remain, and the exact-head documentation and CI gates pass. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherRoot AGENTS.md supplies repository-wide instructions to coding agents, directing their reproduction, validation, and review work toward the existing specialized guides. flowchart TD
A[Root agent instructions] --> B[Reproduce reported behavior]
B --> C[Repair existing owner]
C --> D[Commit regression tests]
D --> E[Verify real product behavior]
E --> F[Resolve substantive review findings]
Technical reviewBest possible solution: Retain the focused proof instructions and explicit advisory-review wording within the root guide’s bootstrap limit. Do we have a high-confidence way to reproduce the issue? This is an instruction-policy change; source inspection verifies the wording difference, while the historical replay results are reported in the PR rather than independently reproduced. Is this the best way to solve the issue? The small root-guide change makes reproduction and committed regression expectations explicit, uses existing proof owners, and preserves the recorded advisory-review policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d3b680c03eff. Provenance checked
SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceDocs +2. Total +2 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 18, 2026, 1:58 PM ET / 17:58 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Landed. Root AGENTS.md now asks for end-to-end reproduction and proof through the real product and the channel e2e skills, commits proof tests with consumer tests, and keeps the ClawSweeper review advisory while asking agents to fix its real findings. Proof: blind replay signal in the body, size check, green CI and the exact-head review. |
…les (#176320) Related: #176053, #176308 ## What Problem This Solves Fixes: agents working in a subsystem load scoped `AGENTS.md` guides that name removed code and commands, repeat root rules, and in places contradict current root rules (restart the Gateway for proof, run `check-changed.mjs` locally, avoid `importOriginal` mocks that a check now requires). ## User Impact No user-visible change. Agents get shorter scoped guides with current names and commands and one owner per rule. Scoped `AGENTS.md` total: 98,031 → 73,215 characters (−25%). Six guides with no remaining unique rule are deleted. ## Why This Change Was Made Every line of the 28 scoped guides was checked against `origin/main` and its history. Edits only remove or rewrite lines that are stale, duplicated, behavior-free, or in conflict with root; conflicts resolve toward current root. Lines that encode a recent maintainer decision are unchanged. **Stale (fixed):** - Telegram: `createTelegramTransportIngressDrain` (removed in #111214) → the monitor in `telegram-ingress-drain-factory.ts`; throttle owner → `getOrCreateAccountThrottler` (#157349). - `src/channels`: memory profile command → `pnpm test:extensions:memory`. - `extensions`: removed the `src/plugin-sdk/<id>.ts` facade allowance (the SDK guide forbids new ones) and the deleted `src/plugin-sdk-internal/**` path. - `apps/macos`: `AppLaunchPresentationPolicy` → `AppLaunchRuntimePlan`. - Embedded runner: `sessionFile` → `sessionTarget`. - `src/gateway/server-methods`: the raw JSONL transcript warning (transcripts are SQLite); its live `appendMessageAsync` rule moved to `src/agents`. The stale `server-methods/CLAUDE.md` entries in `.gitattributes` and `.oxfmtrc.jsonc` are removed. - `docs`: the "up to 30 pages" preview claim does not exist in `scripts/docs-dev.mjs`. **Conflicts with root (resolved toward root):** - acpx "restart the gateway" → validate in an isolated Gateway. - Telegram "bot-to-bot QA lane" proof → the userbot e2e skill route in root. - `scripts` and `apps/macos`: local `check-changed.mjs` suggestions removed (root: PR CI is the broad proof). - `src/agents`: "avoid `importOriginal` partial mocks" → pass the real module or annotate `// mock-isolation:` (`check:test-mock-exports`). - Embedded runner "prefer focused helper tests" → aligned with root end-to-end proof. **Duplicates and owner moves:** - `scripts/AGENTS.md` "Proof Rules" repeated root, the testing skill and `remote-gates.md`. - Release mechanics in `apps/ios` and `apps/android` repeated each app's `VERSIONING.md`; guardrails stay. - Rules that stylelint, lint scripts or tests already enforce now name the check instead of restating it. - Core ingress-drain rules moved word for word from the Telegram guide to `src/channels/AGENTS.md`, since five channels share that monitor. - `src/agents/tools/AGENTS.md` and `src/gateway/server-methods/AGENTS.md` deleted after moving their one live rule each into `src/agents/AGENTS.md`. - SDK compatibility: one bullet keeps both meanings (internal callers removed freely; third-party exports need a deprecation window and maintainer approval). **Test notes moved to their tests:** the per-test ownership notes in the litellm, lmstudio, ollama and vllm guides now sit as comments in the 20 test files they describe (several live outside the plugin folders, where those guides never loaded); the four guides are deleted. One vLLM note described a test deleted in #165813 and is dropped. **Telegram test rules → test-audit:** the copied test-ownership rules point at the `test-audit` skill; the Telegram-specific crash-window/restart-replay rule stays. **`openclaw-testing` skill:** the worktree hint no longer suggests local `check-changed.mjs`. **One check instead of prose:** `scripts/check-test-helper-extension-import-boundary.mts` now also scans `src/channels/plugins/contracts/test-helpers` (zero violations today), so that guide no longer restates the boundary. **Unchanged on purpose (recent maintainer decisions):** the Gateway session row projection contract, the UI session roster contract, the `NO_REPLY` reply rules, and the SDK SQLite removal date. ## Evidence - Every relative link in the changed guides resolves; no file links to the deleted guides. - `test/test-helper-extension-import-boundary.test.ts` passes; the script reports `[]` on the new root and flagged a temporary violating file during the check. - `oxfmt` and `git diff --check` clean; the pre-commit hook ran on this commit, including the `AGENTS.md` size check. - The 20 test files that received comments pass (318 tests, plus the shared SGLang discovery contract); comments only, no test logic changed. - Diff: 57 files, +191/−441. **Merge danger:** two-way door; a revert restores every guide. No runtime change. Blast radius: agent instructions for work in these directories, and one repository check that now scans one more test-helper directory. Co-authored-by: Ayaan Zaidi <[email protected]>
…ngs (openclaw#176308) Related: openclaw#176053 ## What Problem This Solves Fixes: agents working in this repository shipped fixes whose proof stopped short of the real product, after openclaw#176053 removed the root lines that asked for end-to-end reproduction and boundary proof. ## User Impact No user-visible change. Agents get one short, direct rule set for proof and review: reproduce end to end, prove the fix end to end through the real product and the channel's e2e skill, commit the proof tests, and resolve real ClawSweeper findings while its review stays advisory. ## Why This Change Was Made A blind replay of 16 held-out historical tasks (16 tasks × 2 instruction versions × 2 seeds, two independent model judges) compared root `AGENTS.md` before and after openclaw#176053. Overall results tied, but proof quality was lower with the trimmed file in 25 of 33 judge verdicts that differed (sign test p = 0.005; per pair 16 of 22, p = 0.052). Judges noted runs that left proof tests out of the diff and left consumer tests stale and unrun. openclaw#176053 had removed "reproduce defects through actual entry point before editing" and "Behavior-only fix: direct boundary proof". | Section | Change | |---|---| | Execution discipline | "Real failing entry point first" now says to reproduce end to end before editing. Added: ask whether the proof could pass while the task stays broken; a failed setup is not a product verdict. | | Product and validation | Added **Prove it end to end**: rerun the reproduction on the fix through an isolated Gateway with a real agent and model, the channel e2e skill or Control UI e2e, and an upgrade from the latest stable when update, Doctor, config or state changes. Mocks and helper tests support this proof and never replace it. | | Product and validation | **Fixes prove the invariant** now says to commit the tests with the fix and to update and run the tests of every consumer of what changed. | | Product and validation | The ClawSweeper line becomes **Make ClawSweeper happy**: its review is advisory (as openclaw#169739 decided); fix every real finding in one batch, request re-review once, and reject findings that add restrictions without a concrete harm. A maintainer's explicit land instruction does not wait for a pending or stale review. | ## Evidence | | Before (`origin/main`) | After | |---|---|---| | Characters | 18,083 | 19,091 | - `pnpm check:agents-md-size`: 33 files within 20,000 characters. The new pre-commit hook ran on this commit. - All four linked skill files exist under `.agents/skills/`. - `git diff --check` and `oxfmt --check` are clean. **Merge danger:** two-way door. Docs only; a revert restores the previous text. Blast radius: agent instructions for work in this repository. Co-authored-by: Ayaan Zaidi <[email protected]>
…les (openclaw#176320) Related: openclaw#176053, openclaw#176308 ## What Problem This Solves Fixes: agents working in a subsystem load scoped `AGENTS.md` guides that name removed code and commands, repeat root rules, and in places contradict current root rules (restart the Gateway for proof, run `check-changed.mjs` locally, avoid `importOriginal` mocks that a check now requires). ## User Impact No user-visible change. Agents get shorter scoped guides with current names and commands and one owner per rule. Scoped `AGENTS.md` total: 98,031 → 73,215 characters (−25%). Six guides with no remaining unique rule are deleted. ## Why This Change Was Made Every line of the 28 scoped guides was checked against `origin/main` and its history. Edits only remove or rewrite lines that are stale, duplicated, behavior-free, or in conflict with root; conflicts resolve toward current root. Lines that encode a recent maintainer decision are unchanged. **Stale (fixed):** - Telegram: `createTelegramTransportIngressDrain` (removed in openclaw#111214) → the monitor in `telegram-ingress-drain-factory.ts`; throttle owner → `getOrCreateAccountThrottler` (openclaw#157349). - `src/channels`: memory profile command → `pnpm test:extensions:memory`. - `extensions`: removed the `src/plugin-sdk/<id>.ts` facade allowance (the SDK guide forbids new ones) and the deleted `src/plugin-sdk-internal/**` path. - `apps/macos`: `AppLaunchPresentationPolicy` → `AppLaunchRuntimePlan`. - Embedded runner: `sessionFile` → `sessionTarget`. - `src/gateway/server-methods`: the raw JSONL transcript warning (transcripts are SQLite); its live `appendMessageAsync` rule moved to `src/agents`. The stale `server-methods/CLAUDE.md` entries in `.gitattributes` and `.oxfmtrc.jsonc` are removed. - `docs`: the "up to 30 pages" preview claim does not exist in `scripts/docs-dev.mjs`. **Conflicts with root (resolved toward root):** - acpx "restart the gateway" → validate in an isolated Gateway. - Telegram "bot-to-bot QA lane" proof → the userbot e2e skill route in root. - `scripts` and `apps/macos`: local `check-changed.mjs` suggestions removed (root: PR CI is the broad proof). - `src/agents`: "avoid `importOriginal` partial mocks" → pass the real module or annotate `// mock-isolation:` (`check:test-mock-exports`). - Embedded runner "prefer focused helper tests" → aligned with root end-to-end proof. **Duplicates and owner moves:** - `scripts/AGENTS.md` "Proof Rules" repeated root, the testing skill and `remote-gates.md`. - Release mechanics in `apps/ios` and `apps/android` repeated each app's `VERSIONING.md`; guardrails stay. - Rules that stylelint, lint scripts or tests already enforce now name the check instead of restating it. - Core ingress-drain rules moved word for word from the Telegram guide to `src/channels/AGENTS.md`, since five channels share that monitor. - `src/agents/tools/AGENTS.md` and `src/gateway/server-methods/AGENTS.md` deleted after moving their one live rule each into `src/agents/AGENTS.md`. - SDK compatibility: one bullet keeps both meanings (internal callers removed freely; third-party exports need a deprecation window and maintainer approval). **Test notes moved to their tests:** the per-test ownership notes in the litellm, lmstudio, ollama and vllm guides now sit as comments in the 20 test files they describe (several live outside the plugin folders, where those guides never loaded); the four guides are deleted. One vLLM note described a test deleted in openclaw#165813 and is dropped. **Telegram test rules → test-audit:** the copied test-ownership rules point at the `test-audit` skill; the Telegram-specific crash-window/restart-replay rule stays. **`openclaw-testing` skill:** the worktree hint no longer suggests local `check-changed.mjs`. **One check instead of prose:** `scripts/check-test-helper-extension-import-boundary.mts` now also scans `src/channels/plugins/contracts/test-helpers` (zero violations today), so that guide no longer restates the boundary. **Unchanged on purpose (recent maintainer decisions):** the Gateway session row projection contract, the UI session roster contract, the `NO_REPLY` reply rules, and the SDK SQLite removal date. ## Evidence - Every relative link in the changed guides resolves; no file links to the deleted guides. - `test/test-helper-extension-import-boundary.test.ts` passes; the script reports `[]` on the new root and flagged a temporary violating file during the check. - `oxfmt` and `git diff --check` clean; the pre-commit hook ran on this commit, including the `AGENTS.md` size check. - The 20 test files that received comments pass (318 tests, plus the shared SGLang discovery contract); comments only, no test logic changed. - Diff: 57 files, +191/−441. **Merge danger:** two-way door; a revert restores every guide. No runtime change. Blast radius: agent instructions for work in these directories, and one repository check that now scans one more test-helper directory. Co-authored-by: Ayaan Zaidi <[email protected]>
Related: #176053
What Problem This Solves
Fixes: agents working in this repository shipped fixes whose proof stopped short of the real product, after #176053 removed the root lines that asked for end-to-end reproduction and boundary proof.
User Impact
No user-visible change. Agents get one short, direct rule set for proof and review: reproduce end to end, prove the fix end to end through the real product and the channel's e2e skill, commit the proof tests, and resolve real ClawSweeper findings while its review stays advisory.
Why This Change Was Made
A blind replay of 16 held-out historical tasks (16 tasks × 2 instruction versions × 2 seeds, two independent model judges) compared root
AGENTS.mdbefore and after #176053. Overall results tied, but proof quality was lower with the trimmed file in 25 of 33 judge verdicts that differed (sign test p = 0.005; per pair 16 of 22, p = 0.052). Judges noted runs that left proof tests out of the diff and left consumer tests stale and unrun. #176053 had removed "reproduce defects through actual entry point before editing" and "Behavior-only fix: direct boundary proof".Evidence
origin/main)pnpm check:agents-md-size: 33 files within 20,000 characters. The new pre-commit hook ran on this commit..agents/skills/.git diff --checkandoxfmt --checkare clean.Merge danger: two-way door. Docs only; a revert restores the previous text. Blast radius: agent instructions for work in this repository.