Skip to content

feat(knowledge): readable scribe prompts the operator can edit - #185974

Merged
jalehman merged 4 commits into
mainfrom
openclaw-d69/scribe-readable-prompts
Oct 27, 2026
Merged

jalehman merged 4 commits into
mainfrom
openclaw-d69/scribe-readable-prompts

Conversation

@jalehman

@jalehman jalehman commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Follows #185949 (merged); rebased onto main without changes to these commits.

What Problem This Solves

Scribe prompts are opaque: the page sends a skill pointer plus a JSON options block, the setup steps live in a skill reference, and every reply ends with a SCRIBE_RESULT {json} line. An operator can't read or change what a scribe is told.

User Impact

User impact: the Scribes start dialog shows the full prompt it will send, in plain language, and the operator can edit it before starting. Ongoing scribes install a readable run message on their automation; editing that message on the Automations page changes what later runs do. Scribe replies end with a plain Scribe status: on|done|failed — <sentence> line instead of JSON.

Why This Change Was Made

Each prompt now says what the scribe does, lists its settings as bullets (for example Runs weekly, Sundays at 3:45 AM America/Los_Angeles (cron \45 3 * * 0`)), and gives numbered setup steps inline: access check, one automation per declaration key targeting this conversation, same-key cleanup and pause carry-over, no run from the setup turn, and a report. The run message and the repair prompt are readable too; repair keeps the automation's current schedule and run message. Skills keep only the work (a "Scribe runs" section), and the shared scribe-setup.md` reference is gone.

The page no longer parses options out of the conversation. State comes from the job (declaration key, session target, enabled, last run); the status line is read only where the job can't tell: whether a once scribe is Done or Failing, and whether setup succeeded before the page forces the first run. A failing scribe without an automation now offers Start again…, which reopens the dialog instead of resending stored options; the detail page drops its Options row.

Evidence

  • pnpm test extensions/knowledge/src/scribes-state.test.ts extensions/knowledge/src/scribes-view.test.ts: pass. New coverage: setup, run and repair prompts are readable settings and steps with no JSON; the status line parses with Markdown emphasis and any dash and keeps underscores inside the sentence; the dialog shows and sends its prompt; a hand-edited prompt survives choice changes until Use generated prompt, and an empty prompt can't start; repair keeps the job's schedule and run message; a failing once scribe starts again from the dialog.
  • pnpm tsgo:extensions, pnpm tsgo:extensions:test, oxlint on the changed files, and sync-skill-references.mjs --check: clean.
  • Autoreview (Claude, P0–P2): no findings.

Live proof on a private test Gateway (fresh state, this branch built clean, Claude Opus via ClawRouter). All three scribes were started from the dialog:

  • Review unlinked claims, hand-edited. In the dialog I changed the settings line to Runs weekly, Tuesdays at 5:30 AM America/Los_Angeles (cron \30 5 * * 2`). The dialog switched to "Edited by hand", and the conversation created knowledge:scribe:unlinked-reviewwith30 5 * * 2 in America/Los_Angeles, targeting its own session. The job's payload message matched the generated run message byte for byte. The page then forced the first run, and the scribe reached **On** (Scribe status: on — 0 claims examined, 0 linked, 0 withdrawn and 0 left.`).
  • Learn from Memory (MEMORY.md + daily notes) reached Done: read 2 Memory files and saved 3 items; 0 were already known and 0 were skipped.
  • Learn from conversations (ongoing, defaults) created 0 4 * * *, got its page-forced first run, and is On.
  • Edited run message. I edited the review job's payload message with cron.update (the field the Automations page edits) to add a step 0: "Start your reply with the line: Edited run message received." The next run, started with Run now, opened its reply with "Edited run message received." and then reviewed the 3 claims Memory had saved.

Dialog: the Prompt area under the choices, generated from them.

Dialog prompt, generated

Dialog after a hand edit (here the Memory files line): the note says so, and Use generated prompt brings back the generated text.

Dialog prompt, edited by hand

A scribe conversation: the start prompt is plain settings and steps, and the reply ends with a plain status line. No JSON.

Memory scribe conversation
Review scribe runs, including the edited run message

Scribes list and the review detail after the runs:

Scribes list: Review and Conversations On, Memory Done
Review detail: edited schedule, two runs

Before this change, the dialog had no prompt area and sent a skill pointer plus JSON (from #185949):

Before: dialog without a prompt

Live builds: 15ea9e1 for the scribe runs and 3069353 for the dialog screenshots. Later heads are patch-identical rebases (onto the final #185949, then onto main after it merged) plus test consolidation; the scribe runtime code is unchanged apart from the status-line underscore fix and the button wrap in 3069353.

@clawsweeper

clawsweeper Bot commented Oct 27, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation plugin: knowledge size: XL labels Oct 27, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 27, 2026
@clawsweeper

clawsweeper Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR makes scribe setup and run prompts readable and editable, replaces JSON result markers with plain status lines, and preserves automation settings during repair.

Example: Start Review unlinked claims on Tuesdays at 5:30 AM America/Los_Angeles.

  • Before: The dialog sends a fixed skill pointer and JSON options without an editable prompt.
  • After: The operator edits the visible prompt, and the scribe creates an automation using cron 30 5 * * 2.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, coherent implementation with direct live proof, focused supporting tests, and no actionable finding.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected Control UI captures show the changed dialog and prompts reaching real scribe conversations, including an edited automation message affecting a later run; the body records successful startup of all three scribes on an isolated Gateway with a real model.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Operators cannot inspect or adjust the complete instructions sent when starting a scribe.
Reason: The established feature owner supplies the direction, and the change makes the existing workflow understandable and editable without adding another execution owner.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it provides a useful, owner-directed improvement to Scribes, with live evidence supporting the central behavior and no actionable introduced defect found.

Priority: P2
Reviewed head: 3069353de66c6c53decba706b3c5f4286896de7d

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Knowledge plugin’s Scribes page sends prompts to operator-owned conversations; those conversations use existing skills and automation APIs, while the page derives status from jobs and conversation replies.

flowchart LR
  A[Operator choices and edits] --> B[Scribes dialog]
  B --> C[Owned conversation]
  C --> D[Knowledge skills]
  C --> E[Existing automation owner]
  E --> C
  D --> F[Knowledge store]
  C --> G[Scribes status view]
  E --> G
Loading

Technical review

Best possible solution:

Land the readable prompt flow through the existing Scribes, conversation, and automation owners after its scheduling base is resolved and required checks finish.

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

This is a feature improvement; current-main source confirms the fixed-message limitation, and supplied live captures demonstrate the new prompt-editing flow.

Is this the best way to solve the issue?

The implementation uses the existing catalog, dialog, conversations, and automation settings while removing the superseded setup reference and option parser.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Fixed setup messages and shared skill reference changes intended behavior with a stated reason (288d503: Shared setup instructions enabled unattended scribes to declare their automations and report structured results.)
  • Scribes transcript parsing and retry controls changes intended behavior with a stated reason (f69f246: The page recovered serialized options and result markers to display state, retry one-time work, and force the first ongoing run.)
  • Automation ownership and pause preservation keeps the original intent (288d503: Declaration keys are scoped to owning conversations, requiring same-key cleanup, target correction, and pause carry-over.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +197, Tests +22, Docs -276. Total -57 across 16 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 7 426 229 +197
Tests 2 161 139 +22
Docs 7 125 401 -276
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 16 712 769 -57

Labels

Label changes:

  • add P2: This improves operator control and understanding of an optional Knowledge workflow without addressing an urgent runtime failure.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: This improves operator control and understanding of an optional Knowledge workflow without addressing an urgent runtime failure.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 27, 2026, 10:32 AM ET / 14:32 UTC.

@jalehman
jalehman force-pushed the openclaw-d69/scribe-readable-prompts branch from 3069353 to 6ed12ac Compare October 27, 2026 14:42
Base automatically changed from openclaw-4c8/knowledge-review-schedule to main October 27, 2026 14:50
@jalehman
jalehman force-pushed the openclaw-d69/scribe-readable-prompts branch from 6ed12ac to 2ee3f5e Compare October 27, 2026 15:08
@jalehman
jalehman enabled auto-merge (squash) October 27, 2026 15:13
@jalehman
jalehman merged commit ed23336 into main Oct 27, 2026
104 of 105 checks passed
@jalehman
jalehman deleted the openclaw-d69/scribe-readable-prompts branch October 27, 2026 15:27
@jalehman

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

@jalehman

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

ClawSweeper could not start a re-review for this item.
Reason: re-review requires an open issue or PR.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 28, 2026
…law#185974)

* feat(knowledge): readable scribe prompts the operator can edit

* fix(knowledge): drop unused scribe job field and point the dialog at its prompt

* fix(knowledge): keep underscores in scribe status sentences

* test(knowledge): consolidate scribe prompt assertions
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 P2 Normal backlog priority with limited blast radius. plugin: knowledge proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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