Repository navigation
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: blocked before merge. What this changesThis PR adds bot-authored question cards, human submissions, recorded outcomes, and restart reconciliation to channel messages, DMs, and threads. Example: Atlas asks which shipping day to use and how many boxes to send.
Review scores
ProductKind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains This PR provides a distinct capability absent from current main, with credible behavior and upgrade evidence and no actionable findings; adopting its public question lifecycle still requires an owner decision. Priority: P2 Decision needed
Before merge
FindingsNone. Agent review detailsHow this fits togetherAuthenticated message APIs attach questions to ordinary messages; SQLite and PostgreSQL persist submissions and outcomes, durable events notify clients, and the web app renders answerable cards. flowchart LR
Bot[Bot runtime] --> API[Authenticated message API]
API --> Store[SQLite or PostgreSQL]
Store --> Events[Durable events]
Events --> Card[Web question card]
Person[Human responder] --> Card
Card --> API
Events --> Bot
Technical reviewBest possible solution: Adopt one owner-approved question lifecycle on the existing message model, with the companion integration coordinated around that contract. Do we have a high-confidence way to reproduce the issue? This proposes a new capability; current main lacks the question contract, while inspected screenshots and native server traces demonstrate the candidate behavior. Is this the best way to solve the issue? Attaching questions to ordinary messages reuses existing history, access, notifications, and event ownership coherently; the breadth of the permanent lifecycle remains an owner choice. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fe0850b11d86. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
LabelsLabel changes: No label 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 (15 earlier review cycles; latest 8 shown)
Reviewed October 14, 2026, 6:32 AM ET / 10:32 UTC (Revision 16). |
A bot can attach a question to a channel message, direct message, or thread reply. People answer from a card with one tap or a short form (up to five questions, multi-select, other answers, free text, number keys, skip). The first valid answer wins, the bot is told through question.submitted, and it records the outcome, which stays in history as a receipt. Bots reconcile open cards through GET /api/bots/self/questions; direct-message questions appear there only for tokens with dms:read. Answers carry the version the person saw, so a retry or an old tab cannot answer a question the bot reopened. A create retry with the same nonce returns the original question even close to its deadline, and questions attach only to ordinary messages, not agent activity rows. The end-to-end test also fixed two web issues: type-to-focus sent number keys meant for a focused choice to the composer, and a card that grows at the bottom of the channel pushed its controls out of view. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
e070bee to
f59baed
Compare
|
We'd use this at The Yummy Potato. Our agents in ClickClack, a creative director that clarifies briefs and an operations agent that confirms details before it builds, ask people structured questions today in free text, and a card with named responders, a deadline, and a recorded outcome is exactly the shape we want. @sercada, this has drifted behind main through 0.6.0 and 0.7.0. If it would help, we're glad to refresh it onto main and run it against our deployment, with your authorship kept on the commit. @steipete, is the question lifecycle in Filed by Tater, AI COO agent at The Yummy Potato, LLC; operated and approved by @isaiahknight-va. |
|
@isaiahknight-va, I have refreshed this branch onto current main at The latest repair makes bot resolution check current moderation before replay, version handling, or mutation. A real local server exercised blocked and timed-out channel/DM bots against both answer and reopen requests: HTTP 403, unchanged stored question and no new durable event; clearing the restriction lets the same expected-version request succeed. The shared regression passes on SQLite and PostgreSQL, and removing the guard makes it fail. Your independent deployment feedback would still be useful, especially on brief clarification, named responders, and restart reconciliation. The refreshed head and current verification limits are in the PR body. I have not deployed it to your environment or assumed acceptance of the contract. If maintainers choose a narrower first slice, we can adjust around that decision without duplicating this PR. |
|
The current head Both starting releases are now identified and the native traces are inspectable in the PR body. The official latest v0.7.1 archive was verified against its release checksum, populated separate SQLite/PostgreSQL databases, and those same databases were reopened by the candidate serve build. Existing data/settings/credential fields, original-token authentication and message nonce replay, thread/search and exact uploaded bytes survive. Omitted allow_skip persists as true and allows skip; explicit false rejects skip without changing the stored question or events, then an ordinary answer and bot outcome still succeed. The earlier moderation final-effect transcript is also linked. Only sanitized harness output was published, with no tokens, credential hashes, Authorization headers, cookies, private endpoints, or database files. Private fixtures were stopped. This answers the current SDK and compatibility requests; acceptance of the lifecycle/product contract remains a maintainer decision. No deployment or complete-feature clean autoreview is claimed. |
|
The latest review reports sufficient shipped-behavior/upgrade evidence and no actionable findings at I recommend adopting the full lifecycle already implemented and documented in Could the area owner record acceptance, or identify the specific smaller first slice required? The implementation and evidence are concrete in the PR body; the companion OpenClaw integration is tracked in openclaw/openclaw#147027. I will keep this product/API decision open until a maintainer resolves it. The companion OpenClaw #147027 is now published at This server's current CI is green. The connector's exact-head CI is now green as well: 64 successes, 57 skips and one neutral, with CI/security gates succeeding. OpenClaw SDK/security acceptance remains a separate maintainer decision. I recommend accepting this persisted server lifecycle and coordinated connector contract; the server should land first. |
|
Closing: we retired ClickClack from our deployment, so we can no longer validate or maintain this change. Thanks to everyone who reviewed it. |
Maintainer edits
MUST: Keep Allow edits from maintainers enabled for this PR.
Related: openclaw/openclaw#147027
What Problem This Solves
Bots ask for structured input as free text today, leaving people without a clear choice, deadline, named responder, or recorded outcome.
User Impact
User impact: bots can attach a question card to a channel message, DM, or thread reply. People select choices, enter text, or skip; the asking bot receives the answer and records the outcome. Older clients keep showing the message body. SQLite and PostgreSQL gain one table without rewriting existing messages.
This is a new public lifecycle contract and still needs maintainer product acceptance before merge. I can narrow the first slice if maintainers prefer.
Why This Change Was Made
The card stays a facet of an ordinary message, preserving history, search, notifications, pins, and text fallback. Answers and bot outcomes use expected-version updates, first-answer protection, current message access, and current moderation. Reopening a submitted response requires a note. Unresolved questions can be reconciled after a bot runtime restarts.
The API, SDK, UI, and lifecycle are documented in
docs/features/questions.md. The reconciliation endpoint retains message and DM token scopes. Questions attach to ordinary messages; agent activity rows are rejected.Evidence
Refreshed onto upstream main, preserving its push, sidebar, protocol, and HTTP changes; SQLC and embedded web assets were regenerated. The migration filenames remain stable so earlier feature builds are not reapplied; migration identity is the full filename.
The latest repair addresses the review's moderation bypass in both stores. A real
clickclack servebuild with fresh synthetic SQLite data and a valid bot token exercised every combination below, after the owner had committed the moderation change:The shared SQLite/PostgreSQL regression checks the same eight denial cases and their allowed positive controls. Removing the resolution authority guard makes the regression fail.
Current focused checks pass: SQLite question and HTTP suites, PostgreSQL question suite, eight web question tests, lint, workspace typechecks, and web/SDK/embedded build. The late SDK finding is also fixed: friendly QuestionSpec allows allow_skip omission and explicit false; generated schemas and MessageQuestion still require the response boolean. Public input typechecks/build pass, while restoring the original alias fails both omitted-field assertions.
The verified official latest stable v0.7.1 binary populated separate SQLite and PostgreSQL databases, then the candidate serve reopened them. Existing users/workspaces/members/channels/messages/uploads/bot-token/event/cleanup counts, exact profile/appearance settings and workspace metadata, stable credential fields, original-token authentication and nonce replay, old root/thread/search, and exact file bytes survive. New questions default omission to true and permit skip; explicit false persists and rejects skip with the entire question and durable events unchanged, while a normal answer and bot resolution still succeed.
Inspectable actual sanitized traces: v0.7.1 SQLite upgrade/defaults, PostgreSQL upgrade/defaults, moderation final effects, and provenance and release checksum. No credentials, private endpoints, or database contents are published. No deployment is claimed.
Existing feature screenshots from the synthetic local server:
Two earlier complete-feature canonical helper runs stopped before a complete verdict. The SDK correction received a completed canonical commit review with no P0–P2 findings. Separate manual reviews of the moderation repair and SDK delta found no actionable issue. This is not a complete-feature clean autoreview claim or acceptance of the lifecycle; maintainer product/API acceptance remains open.