openclaw - ✅(Solved) Fix docs(capabilities): define workspace capability discovery convention [1 pull requests, 1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#76074Fetched 2026-05-03 04:42:39
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
2
Timeline (top)
commented ×1cross-referenced ×1mentioned ×1subscribed ×1

Define a workspace capability discovery convention so agents can discover local, durable capabilities before concluding that a task is impossible.

Root Cause

That makes capability use inconsistent across sessions. An agent may incorrectly report that it cannot perform a task because it does not know that the workspace has an approved bridge, queue, taskflow, ACP runtime, or documented fallback path.

Fix Action

Fixed

PR fix notes

PR #76082: docs(capabilities): define workspace discovery convention

Description (problem / solution / changelog)

Summary

Describe the problem and fix in 2-5 bullets:

  • Problem: workspace-local integrations and durable procedures can be documented ad hoc, so agents may miss valid local capability paths before saying a task is unsupported.
  • Why it matters: users with bridge queues, taskflow recipes, ACP delegation paths, or local integration wrappers need a consistent way to make those capabilities discoverable across sessions.
  • What changed: added a docs-only workspace capability descriptor convention under capabilities/*.md, linked it from workspace/bootstrap docs, and documented current bootstrap-extra-files limits.
  • What did NOT change (scope boundary): no runtime auto-discovery, gateway wrapper, daemon, auth layer, session store, or tool policy change.

Change Type (select all)

  • Bug fix
  • Feature
  • Refactor required for the fix
  • Docs
  • Security hardening
  • Chore/infra

Scope (select all touched areas)

  • Gateway / orchestration
  • Skills / tool execution
  • Auth / tokens
  • Memory / storage
  • Integrations
  • API / contracts
  • UI / DX
  • CI/CD / infra

Linked Issue/PR

  • Closes #76074
  • Related #
  • This PR fixes a bug or regression

Root Cause (if applicable)

N/A.

Regression Test Plan (if applicable)

N/A.

User-visible / Behavior Changes

Docs only. No runtime behavior change.

Diagram (if applicable)

N/A.

Security Impact (required)

  • New permissions/capabilities? (Yes/No) No
  • Secrets/tokens handling changed? (Yes/No) No
  • New/changed network calls? (Yes/No) No
  • Command/tool execution surface changed? (Yes/No) No
  • Data access scope changed? (Yes/No) No
  • If any Yes, explain risk + mitigation: N/A

Repro + Verification

Environment

  • OS: Linux
  • Runtime/container: local checkout
  • Model/provider: N/A
  • Integration/channel (if any): N/A
  • Relevant config (redacted): N/A

Steps

  1. Read docs/concepts/workspace-capabilities.md.
  2. Confirm docs/concepts/agent-workspace.md links the optional capabilities/ workspace folder.
  3. Confirm docs/concepts/system-prompt.md and docs/automation/hooks.md state that descriptors are not part of the fixed bootstrap set by default.

Expected

  • The docs describe a narrow workspace capability descriptor convention without implying runtime permission or gateway behavior changes.

Actual

  • Matches expected.

Evidence

Attach at least one:

  • Failing test/log before + passing after
  • Trace/log snippets
  • Screenshot/recording
  • Perf numbers (if relevant)

Commands:

pnpm docs:list
git diff --check
pnpm exec oxfmt --check --threads=1 docs/concepts/workspace-capabilities.md docs/concepts/agent-workspace.md docs/concepts/system-prompt.md docs/automation/hooks.md docs/docs.json
pnpm docs:check-mdx

Human Verification (required)

What you personally verified (not just CI), and how:

  • Verified scenarios: docs list command, whitespace check, docs formatting check for changed docs, MDX docs check.
  • Edge cases checked: new docs page is listed in docs/docs.json; docs explicitly avoid gateway wrapper/proxy/daemon behavior.
  • What you did not verify: rendered docs site in browser.

Review Conversations

  • I replied to or resolved every bot review conversation I addressed in this PR.
  • I left unresolved only the conversations that still need reviewer or maintainer judgment.

Compatibility / Migration

  • Backward compatible? (Yes/No) Yes
  • Config/env changes? (Yes/No) No
  • Migration needed? (Yes/No) No
  • If yes, exact upgrade steps: N/A

Risks and Mitigations

  • Risk: readers may assume descriptors are automatically loaded into every prompt.
    • Mitigation: the docs explicitly state descriptors are not part of the fixed bootstrap set by default and should be linked intentionally or surfaced via hooks.

Changed files

  • docs/automation/hooks.md (modified, +2/-0)
  • docs/concepts/agent-workspace.md (modified, +3/-0)
  • docs/concepts/system-prompt.md (modified, +5/-0)
  • docs/concepts/workspace-capabilities.md (added, +102/-0)
  • docs/docs.json (modified, +1/-0)
RAW_BUFFERClick to expand / collapse

Summary

Define a workspace capability discovery convention so agents can discover local, durable capabilities before concluding that a task is impossible.

Problem to solve

OpenClaw already has several primitives that can support this behavior, including bootstrap hooks, before_prompt_build, taskflow, ACP runtimes, skills, and tool policy. However, workspace-specific capabilities are currently documented ad hoc in files such as AGENTS.md, TOOLS.md, or local notes.

That makes capability use inconsistent across sessions. An agent may incorrectly report that it cannot perform a task because it does not know that the workspace has an approved bridge, queue, taskflow, ACP runtime, or documented fallback path.

The goal is not to add a gateway wrapper, proxy, separate daemon, or parallel session/router layer. Gateway should remain the source of truth for sessions, routing, auth, and tool policy.

Proposed solution

Add a documented workspace convention for capability descriptors, for example:

  • capabilities/*.md for durable workspace capabilities.
  • Optional capabilities/index.md as a short registry.
  • Clear guidance that bootstrap or prompt-context mechanisms may surface these descriptors to agents.

Each capability descriptor should include:

  • Purpose.
  • Supported requests.
  • Required tools, commands, queues, or runtimes.
  • Safety and approval boundaries.
  • Verification steps.
  • Fallback behavior.
  • A rule for what to inspect before responding "not possible".

This should initially be documentation and convention-level work. A follow-up can evaluate whether bootstrap-extra-files, boot-md, or another existing hook should natively discover capabilities/*.md.

Alternatives considered

  • Put all capability details in AGENTS.md: simple, but it grows too large and mixes role policy with operational integration details.
  • Put all capability details in TOOLS.md: better than AGENTS.md, but still becomes a large manual index without per-capability structure.
  • Add a new gateway-like wrapper/orchestrator: rejected for now because it risks duplicating gateway responsibilities and creating split-brain behavior around sessions, routing, auth, and tool policy.
  • Use only plugins: useful for some capabilities, but not every workspace integration needs to become a plugin before agents can discover it.

Impact

Affected:

  • Users with local workspace integrations, bridge queues, ACP delegation paths, or taskflow-based automation.
  • Agents that need to discover available capabilities at session startup or before declaring a task unsupported.

Severity:

  • Medium. It does not block core OpenClaw runtime behavior, but it causes avoidable false negatives and manual re-explanation.

Frequency:

  • Recurring for workspaces with custom integrations or multi-agent workflows.

Consequence:

  • Extra manual context transfer.
  • Agents may miss valid execution paths.
  • Durable capabilities are harder to reuse across sessions.

Evidence/examples

Existing OpenClaw primitives that appear relevant:

  • bootstrap-extra-files can inject extra workspace bootstrap files during agent bootstrap.
  • before_prompt_build hooks can inject dynamic context before model calls.
  • Taskflow/task registry can coordinate durable multi-step work.
  • ACP runtimes and agent harnesses provide delegation substrates.
  • Tool policy and plugin prompt-injection controls already define important safety boundaries.

The requested change is to define a small convention that uses these existing primitives rather than creating a new gateway-adjacent service.

Additional information

Non-goals:

  • No separate listener.
  • No parallel session store.
  • No independent auth layer.
  • No shadow tool router.
  • No wrapper that mimics gateway behavior.

Potential follow-ups:

  • Document how bootstrap-extra-files can include capabilities/*.md.
  • Add a small test fixture showing capability descriptors included in startup context.
  • Consider a native capability registry only after the convention is validated in real workspaces.

extent analysis

TL;DR

Define a workspace capability discovery convention using capabilities/*.md files to enable agents to discover local, durable capabilities.

Guidance

  • Establish a clear convention for capability descriptors, including purpose, supported requests, required tools, and safety boundaries.
  • Use existing primitives such as bootstrap-extra-files and before_prompt_build hooks to surface capability descriptors to agents.
  • Create an optional capabilities/index.md registry for easy discovery of available capabilities.
  • Ensure that each capability descriptor includes verification steps and fallback behavior to handle errors.

Example

No code snippet is provided as the issue focuses on defining a convention rather than implementing a specific code change.

Notes

The proposed solution aims to leverage existing OpenClaw primitives to define a capability discovery convention, avoiding the introduction of new gateway-adjacent services or parallel session stores.

Recommendation

Apply the proposed workspace capability discovery convention using capabilities/*.md files, as it utilizes existing primitives and avoids duplicating gateway responsibilities.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - ✅(Solved) Fix docs(capabilities): define workspace capability discovery convention [1 pull requests, 1 comments, 2 participants]