Skip to content

docs(mantis): clarify inline proof commands and activation - #140452

Merged
brokemac79 merged 1 commit into
mainfrom
openclaw/mantis-inline-proof-docs-alignment
Sep 7, 2026
Merged

brokemac79 merged 1 commit into
mainfrom
openclaw/mantis-inline-proof-docs-alignment

Conversation

@brokemac79

@brokemac79 brokemac79 commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The Mantis page still calls command integration future work and lists automatic selection as an open question. That conflicts with the paired request-bound implementation in ClawSweeper #1425 and OpenClaw #138953.

Related: merged #138210. This follows @brokemac79's request and @obviyus's feedback to make useful proof available inside the original review.

Why This Change Was Made

Correct the operator-facing instructions without adding more changes to the producer PR. The producer already adds a detailed later section about isolation and observations; this separate, non-overlapping patch supplies command, activation and timing guidance.

User Impact

  • Distinguishes legacy manual Actions entrypoints from selective inline proof; keeps the warning that @clawsweeper mantis is not a typed dispatch command.
  • Shows the bare @clawsweeper proof override and either/both supported scenario selections, with automatic current-head resolution.
  • Explains the shared 20-minute ceiling and smaller remaining-review bound, rather than promising a fresh 20 minutes per check.
  • Makes coordinated producer/Worker deployment explicit, retains the existing Convex service without requiring its deployment, and does not claim the feature is already active.
  • Removes the obsolete automatic-selection open question. No automatic post-review recording is restored.

Evidence

Scope is one English Markdown page only. No runtime, tests, workflow, database/schema, navigation, generated/localized docs or CHANGELOG.md changes.

Documentation proof: compared live merged/current-main page blob 38b736cccb9cdb41d6cc79927888d87b802ef5ad with consumer d405f24703ad7a7fc1539d06304faefdd98ebe8d command parser/prompt/budget and the then-current producer 72ace9d87d5002fed4828b811ecb4f01ca6284b1, plus both live PR bodies. The final reviewed and published producer revision is now f838be8f1e04fbca321aa60479f17490c9231aa1. An independent combined-patch audit found no contradictory claims or overlapping edits with the producer's later detailed section.

Executed on Node 24.19.0 using the dependency-ready checkout's repository tooling against the exact edited page:

node scripts/check-docs-mdx.mjs <docs-worktree>/docs/concepts/mantis.md
  Docs MDX check passed (1 files).
pnpm exec oxfmt --check <docs-worktree>/docs/concepts/mantis.md
  All matched files use the correct format.
git diff --check
  passed in the docs worktree.

No new headings, internal links, config fences or navigation routes are introduced. Both external PR links were inspected live. English remains the source of truth; translations are generated in the separate docs publish repository.

Codex reviews are scoped-clean through P2, zero actionable findings: dirty review confidence 0.97; committed-branch review confidence 0.98 at 7f5e0d0b84e6ce5442b43b848acc67b0aff1351a, base 1fde67b08a4e8426474a46acd9ea968e300f8872. Commands: python .agents/skills/autoreview/scripts/autoreview --mode local --max-priority P2 --prompt <paired source context> before commit, then --mode branch --base 1fde67b08a4e8426474a46acd9ea968e300f8872 --max-priority P2 after commit. Full scanning and final source verification stayed enabled. Source/mirror trees and complete binary branch diff matched; no findings required edits. git merge-tree --write-tree <docs-head> 72ace9d87d5002fed4828b811ecb4f01ca6284b1 also passed, proving the docs changes combined without conflict with that historical producer head. This historical merge-tree check is not a claim of fresh merge compatibility with the final producer revision.

Risks and Rollout

Pinned consumer source verification

The first ClawSweeper review could not retrieve the companion repository's blobs. To make the cross-repository evidence inspectable here, the following excerpts were checked against the GitHub Contents API at exact consumer revision d405f24703ad7a7fc1539d06304faefdd98ebe8d; every returned blob SHA matched the local Git object, not a stale web-search result.

Command parser (blob 50a85f20dc72172815594384d4a2a4686250e01e):

export const PROOF_COMMAND_USAGE =
  "@clawsweeper proof [scenario-id[,scenario-id...]] [40-character-head-sha]";

Its supported list is ["web-ui-chat-proof", "telegram-bot-e2e-proof"]; selection === "auto" returns both as available options. Admission sets const scenarioId = match[1] ?? "auto" and const headSha = match[2] ?? input.currentHeadSha, rejecting a supplied SHA that differs from the current PR head. The review prompt says to select useful supported checks in auto mode; explicit mode says to attempt each requested supported check and explain unavailable/inconclusive selections. Both use observations in that review's final decision and explicitly forbid enqueueing another review.

Shared ceiling (blob 161fd310c29f66220c8d4c40078fde0855736df3):

export const REVIEW_PROOF_LIFETIME_MS = 20 * 60_000;

Original review bound (blob 733f4a2f899aa5754d2c293baa0a62b3cf157b13):

const remainingProofMs = Math.max(
  0,
  Math.floor(reviewDeadline - Date.now() - Math.min(90_000, options.timeoutMs / 10)),
);

The worker defines reviewDeadline = Date.now() + options.timeoutMs once and uses AbortSignal.timeout(remainingProofMs) for proof. Default review timeout (blob 84278c4602d9fdaabfca98a9b162f11337264aa0) is DEFAULT_REVIEW_CODEX_TIMEOUT_MS = 1_200_000. Thus immediate proof has at most 1_200_000 - 90_000 = 1_110_000 ms, or 18m30s, less elapsed analysis. These exact-source checks resolve the review's source-access question; they do not claim deployment.

Complete-source follow-up

A supplemental read-only audit read the complete exact-consumer proof-command.ts, codex-app-server-worker.ts, and review-proof-client.ts, plus the relevant router, execution and timeout wiring, at d405f24703ad7a7fc1539d06304faefdd98ebe8d. This closes the remaining local source-inspection gap identified by review 5562250553; it does not claim that the reviewing service itself has regained source access or that its needs-human status has been cleared.

The audit confirmed all four documented command forms, automatic current-head capture, explicit scenario restriction, tool results returned to the active original review turn, the shared ceiling and final-decision reserve, and consumer cancellation limited to its HTTP wait. It also compared the producer documentation and existing credential-lease integration in staged tree 3608c96829a8fc3a936bbc21f282f7f5c964237b; no contradictory or overlapping documentation changes were found. The final reviewed and published producer commit f838be8f1e04fbca321aa60479f17490c9231aa1 resolves to tree 6acbc2a81d5662db4dd4e3e14ae3a48cd164302d. Its only difference from the audited tree is a three-line Web UI observer check marking a non-success send response as a protocol error; documentation and credential integration are unchanged. Fresh git merge-tree --write-tree 7f5e0d0b84e6ce5442b43b848acc67b0aff1351a f838be8f1e04fbca321aa60479f17490c9231aa1 passed, producing tree 79dc065da865c794f8766838a3dc9737f756f29f without changing either branch.

The existing Convex credential service remains necessary, but its APIs are reused without a Convex schema/API deployment or new broker credential. Coordinated producer workflow and consumer Worker/runtime deployment, followed by hosted verification, remain separate requirements. No rollout was executed by this documentation audit. It supplies source/prose verification, not live Telegram proof, hosted latency measurements, new runtime proof, or merge authorization.

This validates prose/source accuracy and MDX/formatting, not hosted activation, live Telegram or end-to-end latency. It must remain clear that the paired workflows/runtime need deployment. The existing producer PR retains the detailed execution boundaries; neither docs PR is a deployment or merge authorization.

Release-note context: clarify how selective inline proof is requested, bounded and activated.

@clawsweeper

clawsweeper Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@brokemac79

Copy link
Copy Markdown
Contributor Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XS maintainer Maintainer-authored PR labels Sep 6, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 6, 2026
@clawsweeper

clawsweeper Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 7, 2026, 8:34 AM ET / 12:34 UTC.

ClawSweeper review

What this changes

Updates the Mantis guide with inline proof command examples, deployment prerequisites, supported scenarios, and shared review time limits.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep open as a useful documentation update with no actionable findings. Current main still contains the older guidance; the supplied source excerpts and supplemental audit support the clarification without claiming hosted activation.

Priority: P3
Reviewed head: 7f5e0d0b84e6ce5442b43b848acc67b0aff1351a

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused documentation update with clear rollout limits, appropriate validation, and no actionable defect found.
Proof confidence 🌊 off-meta tidepool Not applicable: Real behavior proof is not required because this PR only changes files under docs/.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Real behavior proof is not required because this PR only changes files under docs/.
Evidence reviewed 7 items Verified introduced scope: The merge-base-to-head diff changes only documentation, preserving manual dispatch and explicitly conditioning inline commands on deployment. No runtime, authority, schema, dependency, or workflow changes are introduced.
Current main still needs the clarification: The relevant page is unchanged between the pinned merge base and fetched main. Main still calls command integration future work and directs readers to manual Actions entrypoints. The latest-release page has a different blob; its contents could not be retrieved, so no shipped implementation claim is made.
Existing manual dispatch boundary: The existing workflow exposes manual Discord, Slack, and Web UI scenarios. This supports retaining the manual route and distinguishing Telegram's separate integration.
Findings None None.
Security None None.

How this fits together

Mantis runs focused QA scenarios and produces observations for PR review. ClawSweeper evaluates those observations separately from workflow execution and merge readiness.

flowchart LR
  A[Maintainer proof request] --> B[Original PR review]
  B --> C[Select supported checks]
  C --> D[Deployed proof workflows]
  D --> E[Bounded observations]
  E --> B
  B --> F[Review decision]
Loading

Before merge

  • Resolve merge risk (P1) - Complete pinned consumer source could not be independently retrieved; cross-repository command and timing claims were assessed from supplied exact-revision excerpts and the supplemental audit.
Agent review details

Security

None.

PR surface

Docs +30. Total +30 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 1 37 7 +30
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 37 7 +30

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep command examples beside explicit activation prerequisites, shared time limits, and the distinction between observations and readiness decisions.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep command examples beside explicit activation prerequisites, shared time limits, and the distinction between observations and readiness decisions.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this PR corrects documentation, and the older guidance is directly visible on current main.

Is this the best way to solve the issue?

Yes: updating the existing guide preserves one documentation path and clearly separates proposed integration behavior from deployment.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against af78186c6c55.

Labels

Label justifications:

  • P3: This is a bounded operator-documentation clarification with no runtime changes.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required because this PR only changes files under docs/.

Evidence

What I checked:

  • Verified introduced scope: The merge-base-to-head diff changes only documentation, preserving manual dispatch and explicitly conditioning inline commands on deployment. No runtime, authority, schema, dependency, or workflow changes are introduced. Public docs: docs/concepts/mantis.md. (docs/concepts/mantis.md:315, 7f5e0d0b84e6)
  • Current main still needs the clarification: The relevant page is unchanged between the pinned merge base and fetched main. Main still calls command integration future work and directs readers to manual Actions entrypoints. The latest-release page has a different blob; its contents could not be retrieved, so no shipped implementation claim is made. Public docs: docs/concepts/mantis.md. (docs/concepts/mantis.md:315, af78186c6c55)
  • Existing manual dispatch boundary: The existing workflow exposes manual Discord, Slack, and Web UI scenarios. This supports retaining the manual route and distinguishing Telegram's separate integration. (.github/workflows/mantis-scenario.yml:3, 7f5e0d0b84e6)
  • Pinned consumer evidence and inspection limitation: The captured PR body at sourceRevision 1eb57af3905c56c745bfeda61d837b6945d7cdf4869fdb0c3d46510aabc213c5 supplies exact-revision parser, deadline, and shared-ceiling excerpts plus a complete-source audit. These support optional current-head capture, two supported scenarios, and the 18m30s maximum under the default timeout. Dependency ownership was verified from its remote. Independent blob retrieval failed locally and through GitHub; the excerpts and audit remain supplied evidence rather than independently read complete source. (src/repair/proof-command.ts, d405f24703ad)
  • Related work and review continuity: The supplied context identifies feat(qa): run isolated behavioral proof for inline reviews #138953 as the open companion producer and docs(mantis): correct proof publishing and QA dispatch guidance #138210 as the merged earlier documentation correction. Neither supersedes this command-and-timing clarification. Previous reviews recorded no findings; their source-access warning is a reviewer limitation, not a newly established contributor blocker. The unrelated OpenClaw pull/1425 is a cross-repository number collision and is excluded.
  • Feature-history routing: Recent page history includes repeated Mantis work by Ayaan Zaidi and the merged documentation update at 206aefe. That commit's raw message credits brokemac79, independently connecting this PR's author to prior merged work. Missing historical blobs prevented exact source-line introduction verification. Public docs: docs/concepts/mantis.md. (docs/concepts/mantis.md, 206aefe7e1a2)

Likely related people:

  • Ayaan Zaidi: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • brokemac79: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (3 earlier review cycles)
  • reviewed 2026-09-06T21:19:07.977Z sha 7f5e0d0 :: blocked before merge. :: none
  • reviewed 2026-09-06T21:27:17.850Z sha 7f5e0d0 :: blocked before merge. :: none
  • reviewed 2026-09-07T12:29:02.398Z sha 7f5e0d0 :: blocked before merge. :: none

@brokemac79

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@brokemac79

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@brokemac79
brokemac79 merged commit 3e10091 into main Sep 7, 2026
75 checks passed
@brokemac79
brokemac79 deleted the openclaw/mantis-inline-proof-docs-alignment branch September 7, 2026 14:13
@brokemac79

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant