Skip to content

feat(agents): expose configured descriptions in agents_list - #75225

Open
shannon0430 wants to merge 51 commits into
openclaw:mainfrom
shannon0430:feat/agents-description-field
Open

shannon0430 wants to merge 51 commits into
openclaw:mainfrom
shannon0430:feat/agents-description-field

Conversation

@shannon0430

@shannon0430 shannon0430 commented Apr 30, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Agent configuration accepts descriptions, but agents_list omits them. A requester choosing an allowed subagent cannot see the operator-authored capability summary. Fixes #7490.

Why This Change Was Made

Expose bounded, nonblank descriptions only in on-demand discovery. Preserve the complete authorized roster, ordering, resolved model/runtime metadata, and existing child-agent restrictions. Each description is limited to 512 UTF-16 units without splitting a surrogate pair, with a shared 4096 CJK-aware weighted-unit budget. Later description text may be shortened or omitted; agent rows remain.

User Impact

Names, descriptions and existing model/runtime metadata remain available together. Documentation at the current per-agent-entry and subagent-discovery owners describes model visibility and excludes secrets or tenant-sensitive material. There is no new configuration, authorization, persistence, provider, or automatic prompt-roster mechanism.

Existing nonblank descriptions would become model-visible to already-authorized discoverers after upgrade without an operator editing configuration. That disclosure choice requires the maintainer decision below; the spawn allowlist alone does not establish prior operator expectations.

Evidence

Current conflict integration - 2026-11-07

Current head: 750690e3c9433c1df8af5419617893664d95e44b; previous head: a35853664c4ac3d9f1941f90200e93fbea9baa27; pinned official main: aa75d20870ac22affa7c94975210c8ad8b5e4efa.

GitHub and the native merge both confirmed a real generated-file conflict. This ordinary merge resolves it through the existing generator. The native prompt-snapshot owner regenerates and verifies all six outputs. Its seven-case owner test passes. All seven authored production, test, allocation and documentation inputs remain byte-identical to the previously accepted head. Only generated snapshots/catalogs changed; the agents_list description is retained. Earlier behavioral and native Gateway evidence retains its measured scope.

The exact prepared-base test-line ratchet and whitespace checks pass. Counter: Test lines OK: 6563185; ceiling: 6563189; slack: 4. Shared budgets, allocations, assertions, timeouts and behavior are retained. Resolved output passes the publication secret gate; unchanged authored inputs retain prior reviewed proof. This mechanical integration does not require a new behavioral review.

The first native CI 42374591897, attempt 1, completed SUCCESS on this exact head: 48 successful jobs, 27 skipped, no failed or pending job. All three required statuses (CI gate, dependency review and security-sensitive review) are SUCCESS on this head. Earlier successful runs remain prior-head evidence. No workflow rerun, duplicate review request or adoption ping was submitted. Maintainer product adoption, official distribution and employee acceptance remain separate.

Earlier validated author head: 02db206611aaf040ab37ea819889b8264483914b. It normally merges CI-green head 1c771bb8 with official main 0372963434f6a0b79394dbe330abde2ae34f2a89 to resolve one new generated Discord-delta conflict that arose while the prior CI was running.

  • The canonical generator resolved the actual conflicts, without hand-editing any fixture. First integration 556aa634 merged repaired head ce374565 with main 4c35e950 and resolved two fixtures; it passed 34 focused tests / 3 files and the six-artifact check. The current merge resolves only the later Discord delta, passes 13 snapshot-owner tests and the canonical six-artifact check, and has an independent generated-resolution review plus zero-finding secret gate.
  • Product discovery, discovery assertions, shared tool-description source and public Gateway E2E remain byte-identical to ce374565, including removal of the retired heartbeat setting. The two corrected subagent fixture files are byte-identical to CI-green 1c771bb8. No production behavior, authorization, assertion, timeout or CI routing was changed by these integrations.
  • CI on 556aa634 exposed the existing subagent progress fixture: it expected optional external silence from a public completion cohort. The exact same-order Bun file replay reproduced 1 failed / 25 passed; it was not dismissed as a flake. The correction binds the current requester incarnation as native spawn does and chooses private/parent completion for that optional-silence case. Production public/internal visible-reply requirements and every retire-count assertion are preserved.
  • Corrected fixture proof at 1c771bb8: 26 / 26 same-order Bun tests passed, plus the exact case passed separately. Type-aware lint, format, diff check, independent parent review, fresh scoped Codex review and zero-finding secret gate passed. The private review snapshot is not a public ancestor.
  • CI on 1c771bb8 completed SUCCESS: 83 jobs, 56 successful / 27 skipped / zero failed, including the real Gateway E2E and previously failing fixture lane. All current checks and both ci-gate contexts were terminal success/skip/neutral. That success is attributed to its own head; later main introduced the new generated conflict now resolved above.
  • Current-head CI 39910370654 completed SUCCESS on 02db2066: 81 jobs, 54 successful / 27 skipped / zero failed. Gateway E2E, the corrected fixture lane, UI, types, lint and both ci-gate contexts passed. Latest-check readback: 75 success / 52 skipped / 1 neutral, zero failure or pending. An older PR-context attempt was cancelled and superseded by its successful current attempt; it is not a product CI failure. Prior local Gateway proof at ce374565 and earlier failed/cancelled/successful heads remain historical evidence.
  • Final GitHub mergeability returned UNKNOWN. A read-only merge-tree against actual main d3359fe448d37a56e4f9e38451832e6088f4842e at 2026-10-23 06:26:52 UTC returned exit0 / zero conflicts. No freshness-only merge was made. No new post-push review request or non-author comment was present at final review readback.
  • This work performs no employee/runtime update, private Core distribution, permission workaround or freshness-only merge. Only actual conflicts blocking this PR's validation are integrated. The maintainer disclosure/implementation-owner decision below is unchanged.

Prior validation (historical)

Current author head: bb51672d391105ad3b06ae1336ce1c1d1f5ee97e. Integrated official main 79262d0571694dbf083b7d1bf5a206cc8fb93936 with an ordinary merge to resolve the named cached-title CI failure. It contains the adopted repairs #178510 and #178474. The existing feature patch is preserved; earlier validation below is attributed to prior head f729bed82a2cbe2419ecfe49d0d913fd11caac58.

  • Focused current discovery tests: 2 files / 14 tests passed.
  • Core and extension typechecks, touched-source/proof type-aware lint, format, official prompt-snapshot check, and candidate diff check passed. The initial proof lint required only braces around two for...of assertions; no assertion changed.
  • Fresh independent review of the full proposal found no P0-P2 defect. A separate fresh review of the final proof found no P0-P2 defect.
  • Compiled real Gateway, public authenticated POST /tools/invoke: PASS, using synthetic configuration and standard QA child lifecycle. The committed opt-in case is extensions/qa-lab/src/agents-list-descriptions.e2e.test.ts.
  • Public-entry proof: all 10 authorized rows retained in order; the restricted requester sees exactly its 2 allowed rows; the split-surrogate boundary returns 512 valid UTF-16 units; CJK descriptions consume exactly 4096 weighted units; late and blank descriptions are omitted without losing agent rows; configured model and current auto/implicit discovery metadata remain intact.
  • The proof performs no inference or external delivery because discovery is a read-only Gateway-owned tool. It does not claim a live Slack/provider test or a package upgrade. Standard cleanup stopped owned Gateway PID 51147; process liveness readback confirmed it stopped.
  • Opt-in E2E: 1 test passed, 53.50 seconds command wall time / 50.01 seconds Vitest duration (about 19 seconds test body, including Gateway startup and cleanup). Unit tests keep the cheaper budget cases.
  • The first hosted run caught an unsupported, unused label cleanup option in the new proof (TS2353). It is removed; the canonical test/tsconfig/tsconfig.extensions.test.json now passes. This does not change runtime cleanup or assertions. Prior-head CI 39421952171 completed. Canonical check-test-types, all five core-test type shards and the other product/static/test leaves succeeded. The only failed leaf is UI cold-load case 118626035515, plus its dependent aggregate. It is the same intermittent failure recorded on official main 6a2e9a1f9ea002b14e2847e8ca89e2b90c37f59d, main job 118557975798: expected 'New session' to be 'Synthetic cold-load conversation'. No new or unclassified failed leaf remains.
  • The integrated-base green CI 39417964143 skipped UI E2E; a later full main run 39415536071 passed the mocked UI shards. These are kept distinct from a green control for this case. Under CONTRIBUTING's known-main-failure policy, this PR adds no unrelated CI-only repair, weakening, rerun or budget change. Maintainers retain inherited-failure acceptance; this is not an all-green-CI claim.

Captured public Gateway proof output

The following is the captured stdout from the existing successful Gateway run, copied with ANSI escapes and duplicate reporter lines removed. It is not a newly generated result summary. Only fixed proof fields and the test result are retained; no credential, endpoint, IP address, configuration dump, or conversation text is included. The HTTP response bodies were not separately saved. The committed scenario's assertions check the exact full/restricted agent IDs, bounded description strings, omitted fields and metadata before emitting AGENTS_DESCRIPTION_PROOF.

AGENTS_DESCRIPTION_OWNER {"pid":51147}
AGENTS_DESCRIPTION_PROOF {"gatewayHttp":true,"rosterCount":10,"restrictedCount":2,"unicodeUnits":512,"aggregateWeightedUnits":4096,"modelMetadataRetained":true,"noInferenceOrExternalDelivery":true}
✓ extensions/qa-lab/src/agents-list-descriptions.e2e.test.ts > bounds configured descriptions without changing the authorized Gateway roster 19298ms
✓ bounds configured descriptions without changing the authorized Gateway roster 19298ms
Test Files  1 passed (1)
Tests  1 passed (1)
Duration  50.01s (transform 52%, tests 39%, import 8%, worker 1%)

The capture precedes the final removal of an unused unsupported cleanup label option. That one-line type fix leaves production code, response assertions and runtime cleanup unchanged; the current-head canonical test-type gates pass. This capture claims the compiled candidate tree's public Gateway behavior, not an employee runtime or official package upgrade.

Reproduce the public entry proof after installing dependencies:

node --import ./scripts/tsx.mjs scripts/build-all.mts qaRuntime
OPENCLAW_E2E_USE_PREBUILT_DIST=1 OPENCLAW_VITEST_RUNTIME=node \
  node scripts/run-vitest.mjs run --config test/vitest/vitest.e2e.config.ts \
  extensions/qa-lab/src/agents-list-descriptions.e2e.test.ts --maxWorkers=1

Current mechanical integration (2026-11-18)

Exact head: bb9061c336b0a97619502dca6da8ede1badc9618. Integrated pinned official main f7c6804343843245d8ab6f37a91675ecc257a7b9 with a normal merge. The two conflicting prompt snapshots were regenerated by pnpm prompt:snapshots:gen; the focused agents-list-tool.test.ts suite passed on this tree. The authored implementation and behavior contract remain unchanged. The PR difference against the pinned main and the commit message passed secret and whitespace gates. An unchanged upstream changelog whitespace diagnostic is outside this PR's authored difference.

Previous live/product proof remains limited to its recorded head and scope. Current-head native CI and maintainer adoption are separate; no workflow approval or duplicate hosted re-review was requested for this mechanical integration.

Remaining Maintainer Decision

Should bounded operator-authored descriptions become model-visible within existing authorized discovery, including descriptions configured before upgrade? This branch makes that narrow proposal ready to assess; it does not assume approval.

#148757 also overlaps discovery and adds a prompt roster. Please choose one implementation owner. This PR keeps on-demand discovery separate from automatic prompt injection and does not add that broader behavior.

Adopted official cached-title repair and prior integration

The title repair is adopted upstream through #178510 (58c3f35e0e1894bc837871e5ca58b47be78031f2) and #178474 (fe739f62fcfa1f91dfaa25f7a710292da190822c). Duplicate #178478 is closed and #178470 is resolved. This branch consumes those official main commits; it adds no separate UI patch.

The feature patch-id is unchanged across this merge. The full-index feature diff and all 10 feature file contents are byte-identical to the prior validated head. 14 focused integration tests passed; applicable prior canonical review and real-owner proof are retained. On the same official UI sources, the original synthetic cached-tail Chromium case passed with en-US/CPU4 (6.831 s case, 21.85 s wrapper), retaining the official pending-hydration/first-title assertions and the original title/scroll checks. Local diagnostic setup was restored exactly after testing. No assertions, timeout, CI routing or runtime configuration were changed by this contribution.

Prior integration CI: 39469313363 completed SUCCESS on bb51672d391105ad3b06ae1336ce1c1d1f5ee97e: all 83 jobs terminal, 57 successful / 26 skipped / 0 failed. All eight UI E2E shards and final openclaw/ci-gate passed. No additional feature or private runtime correction was needed.

Current agents_list integration and proof scope

Current published head ee264d4ea5b3252ddb51898dde5ed1aec7ae5442, tree a4bb784548cc50b8cb2f0440110442ec00dc97d2, official integration base a6c11850723c4c47fa30eba37d7a58dff9ef8ec4.

Integrate only minimal official cap ownera6c11850723c4c47fa30eba37d7a58dff9ef8ec4 (#185886), resolving sole actual scalar conflict while retaining6300000. No new budget mechanism, unmerged proposal head or whole latest tip merge.25 feature/caller/generator/golden/mock inputs unchanged,3 mock owners official-exact;162 prior focused cases and applicable canonical/lint/format proof reused. Official lock only changed UI Mermaid-to-Pele graph; independent owned frozen install passes, root test importer unchanged. Fresh types and staged counter pass:6287428 total,12572 bounded slack. Comparator/growth/assertions unchanged. Full-candidate immutable P0-P2 review scoped-clean/findings0; diff/gitleaks clean. Frozen candidate modeled against fixed32679f5ac9f9e429673364a87421b51a232c5d8f:exit0/conflicts[], basea6c. Source model is not hosted CI acceptance. Owned proof draft updated and93bb native historical only. No reflex native/canonical/large proof rerun, private package/product repair or runtime effect. Parent retains publication and exact-head hosted CI/review.

The three duplicate mock/ACK fallback changes are retired in favor of official #185840 source. Earlier93bb native before/after cases remain historical cause evidence; they are not claimed as whole-current-tree native proof. Current feature assertions, authorization boundaries and canonical generated fixtures are qualified by the recorded unchanged input bindings, focused integration checks and this head's CI. No assertions, comparison rules or scope guards were weakened.

This exact published head subsequently passed hosted CI and additional review; old-head failures remain historical, not relabeled success.

{"currentHeadHostedCi": "success"}

Current main integration — 2026-10-27

Resolved the single shared-budget conflict by integrating official ancestor a6c, retaining the documented6300000 proposal (#185911). Feature, caller, prompt/golden and official #185840 mock/ACK inputs remain byte-identical across25 bindings;162 prior focused cases and canonical/lint/format proof are reused within that scope. The official renderer lock change was reconciled by a frozen install, with the selected root importer unchanged. Current targeted types, staged counter (6287428/6300000), fixed32679 merge model and immutable independent P0-P2 review pass. Prior93bb native evidence remains historical. No assertions or authority boundaries were weakened.

Integration base: a6c11850723c4c47fa30eba37d7a58dff9ef8ec4. Current PR head: ee264d4ea5b3252ddb51898dde5ed1aec7ae5442.

This exact head passed the hosted CI gate, including dependency and security-sensitive review. All current check lanes completed without failures. Previous-head results are not counted as this head's CI proof.

The existing maintainer adoption decision remains open. No downstream runtime or modified package was distributed.

Validation refresh (2026-11-15)

Merged official main 2e1b61901c5d139dd4b40e00eb3ca326a0ef9b89 normally and resolved both prompt-fixture conflicts with the canonical generate-prompt-snapshots.ts --write, followed by --check. Feature implementation and its test file remain byte-identical to 08bc752d6f6422e7a1676dea466a9e949fa4aed4.

Added the missing red-on-base evidence without changing the tests: with official main's agents-list-tool.ts, the current 11 tests produced 5 failures and 6 passes; restoring the candidate implementation produced 11 passes. The original implementation was restored and its bytes verified before committing. This is owning-tool and generated-fixture evidence, not a native Gateway, provider, or delivery claim. Native CI for the new head still requires its own readback.

Current upstream integration

Merged upstream main 8802e8885de1 into 4efba7e93935. Regenerated the prompt snapshots. The roster and prompt-snapshot suites passed. Hosted CI awaits maintainer approval (0 jobs).

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: S labels Apr 30, 2026
@clawsweeper

clawsweeper Bot commented Apr 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR adds bounded configured descriptions to authorized agents_list results.

Example: The allowed research agent has description " Finds and synthesizes evidence ".

  • Before: agents_list returns its identity and metadata without the description.
  • After: Its result also includes description: "Finds and synthesizes evidence".

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused implementation has adequate production-entry proof and no findings; unresolved product direction caps overall readiness.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): Captured terminal output exercises the compiled Gateway through authenticated HTTP discovery with synthetic configuration, proving bounded descriptions and retained authorized rosters; no inference is needed for this tool, and the inspected images concern unrelated adjacent work.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: A coordinating model can list allowed agents but cannot see their configured capability summaries when choosing a delegation target.
Reason: The bounded discovery feature has clear utility, but exposing existing descriptions expands their audience and still needs an owner decision.

Merge readiness

⛔ Blocked before merge - 1 item remains

This PR remains a focused implementation of missing discovery behavior, with no actionable code defects found; maintainer acceptance of existing-description visibility remains unresolved.

Reviewed head: 4efba7e93935beb3e179b9feeb68295f2f2026e9
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should agents_list expose configured descriptions to authorized discoverers, including descriptions stored before upgrade?
  • Recommendation: Accept bounded discovery descriptions: Approve the proposed visibility contract, including existing descriptions, with the documented capability-only guidance.
  • Why: Existing configuration accepts descriptions and also uses them as welcome metadata, but no recorded owner decision establishes that they should become model-visible through discovery.

Before merge

  • Await maintainer action - A maintainer must approve the current-head CI workflow so required checks can run.

Findings

None.

Agent review details

How this fits together

The built-in discovery tool reads configured agent entries and existing spawn-target policy, then returns ordered agent metadata to the requesting model.

flowchart LR
  A[Agent configuration] --> C[Agents list tool]
  B[Spawn target policy] --> C
  C --> D[Description text budgets]
  D --> E[Authorized agent results]
  E --> F[Requesting model]
Loading

Technical review

Best possible solution:

Retain the existing discovery owner and bounded projection, subject to an explicit decision on exposing descriptions configured before upgrade.

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

Current main accepts agent descriptions but omits them from the discovery schema and returned entries; the contributor also records five failing focused cases with main's implementation and eleven passing cases with the candidate.

Is this the best way to solve the issue?

Extending the existing on-demand result is a small, coherent implementation that reuses roster policy and text-budget helpers without adding an automatic prompt catalog.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Conditional agents_list tool description keeps the original intent (ffa0929: Avoid advertising sessions_spawn when it is unavailable; both conditional descriptions remain intact and only gain the metadata field name.)
  • Resolved model identity and runtime metadata keeps the original intent (107f03d: Publish canonical model identity consistently with resolved runtime metadata; description projection preserves that existing resolution.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 2b29b86 adds src/agents/tools/agents-list-tool.ts:17 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 2b29b86ab5df; files: src/agents/tools/agents-list-tool.ts)
  • Ayaan Zaidi: Raw commit 265577c adds src/agents/tools/agents-list-tool.ts:106 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 265577c4c159; files: src/agents/tools/agents-list-tool.ts)
  • Peter Lee: Raw commit 107f03d adds src/agents/tools/agents-list-tool.ts:132 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 107f03d177ad; files: src/agents/tools/agents-list-tool.ts)

PR surface

Source +38, Tests +285, Docs +6, Other +4. Total +333 across 10 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 2 40 2 +38
Tests 5 300 15 +285
Docs 2 9 3 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 1 4 0 +4
Total 10 353 20 +333

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Discovery surface 1 optional result field; 0 new configuration keys The additive description field reuses existing configuration and introduces no persistence migration.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #7490
Summary: This PR implements the canonical discovery request; the broader overlapping proposal never merged.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

No label changes.

Label justifications:

  • merge-risk: 🚨 compatibility: Descriptions previously configured for existing uses become model-visible without an operator editing them.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Resolve whether existing configured descriptions should become model-visible.
  • Approve current-head CI and assess its completed required checks.

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.

History

Review history (36 earlier review cycles; latest 8 shown)
  • reviewed 2026-11-13T02:48:20.076Z sha 5cb3d74 :: ready, awaiting a maintainer decision. :: none
  • reviewed 2026-11-14T02:35:25.174Z sha afbe5dc :: blocked before merge. :: none
  • reviewed 2026-11-15T02:31:36.223Z sha 08bc752 :: blocked before merge. :: none
  • reviewed 2026-11-16T02:17:56.642Z sha 6182cb1 :: blocked before merge. :: none
  • reviewed 2026-11-22T14:54:18.043Z sha a7e4cb0 :: blocked before merge. :: none
  • reviewed 2026-11-25T02:11:53.108Z sha d01f991 :: blocked before merge. :: none
  • reviewed 2026-11-26T13:53:01.918Z sha 51f3e1f :: blocked before merge. :: none
  • reviewed 2026-11-28T13:28:42.984Z sha 4a4ff9c :: blocked before merge. :: none

Reviewed November 29, 2026, 8:35 AM ET / 13:35 UTC (Revision 37).

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: huggingface and removed extensions: huggingface labels Apr 30, 2026
@openclaw-barnacle openclaw-barnacle Bot added the gateway Gateway runtime label May 3, 2026
@shannon0430

Copy link
Copy Markdown
Contributor Author

Updated to address the docs gap from ClawSweeper.

Changes made on latest head 28aeb6dbc2f878f2b0f501b582f27f992b18bdb0:

  • Documented agents.list[].description in docs/gateway/config-agents.md.
  • Added the field to the agents.list config example.
  • Updated docs/tools/subagents.md discovery docs to state that agents_list includes configured names/descriptions when present.

Validation:

pnpm exec oxfmt --check --threads=1 docs/gateway/config-agents.md docs/tools/subagents.md
pnpm config:docs:check
pnpm exec vitest run src/agents/openclaw-tools.agents.test.ts src/agents/tools/agents-list-tool.test.ts src/config/zod-schema.agent-defaults.test.ts src/config/schema.test.ts

All passed locally.

@shannon0430

Copy link
Copy Markdown
Contributor Author

CI looks flaky on the latest head rather than related to this docs/config-agent change.

Current head: 28aeb6dbc2f878f2b0f501b582f27f992b18bdb0

The remaining red check is from checks-node-core-runtime-media-ui. The failing shard reports all UI tests passing, then Vitest exits on an unhandled teardown rejection:

EnvironmentTeardownError: [vitest-worker]: Closing rpc while "onUserConsoleLog" was pending
This error originated in "ui/src/ui/navigation.browser.test.ts"
Test Files 80 passed

I reran the named test locally on this head and it passed:

pnpm exec vitest run --config test/vitest/vitest.ui.config.ts ui/src/ui/navigation.browser.test.ts

Result: 1 file passed / 11 tests passed.

Could a maintainer please rerun the failed CI job for this PR?

@openclaw-barnacle openclaw-barnacle Bot added triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. proof: supplied External PR includes structured after-fix real behavior proof. and removed triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels May 6, 2026
@barnacle-openclaw

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@barnacle-openclaw barnacle-openclaw Bot added the stale Marked as stale due to inactivity label May 30, 2026
@clawsweeper clawsweeper Bot added the rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. label May 30, 2026
@shannon0430

Copy link
Copy Markdown
Contributor Author

Triage update after the stale marker:

This PR is still relevant, but it is now partially superseded by current main.

Checked current main at 9090f6b1c4a3e434e37ff901164a420e8fe7e2dc:

  • AgentConfig already has optional description?: string.
  • AgentEntrySchema already accepts description: z.string().optional().
  • agents_list still does not expose configured descriptions in its returned agent entries.

So the request from #7490 is not fully shipped yet: config parsing is partly handled, but runtime discovery still cannot see each agent's configured description. The right next action is not to close this as stale/obsolete; it is to refresh or replace this PR with a smaller patch focused on:

  • adding description?: string to the agents_list response entry,
  • carrying non-empty configured descriptions through the mapper,
  • adding focused inclusion/omission tests,
  • updating the subagent/tool docs and prompt snapshots if the tool description changes.

The current branch is also CONFLICTING, so it should not be merged as-is. It needs to be rebased/scoped down against current main, or maintainers should explicitly reject exposing agent descriptions in model-visible tool output.

@shannon0430
shannon0430 force-pushed the feat/agents-description-field branch from fe1abe0 to 2248576 Compare May 30, 2026 05:31
@shannon0430

Copy link
Copy Markdown
Contributor Author

Refreshed this PR against current origin/main and reduced it to the remaining unsatisfied part of #7490.

Current head: 224857684e1991d5687ea54b9c03b8a8e649eeb1

What changed now:

  • agents_list returns description only when a configured agent has a non-blank description.
  • Existing config type/schema support from current main is left alone instead of reintroducing the older conflicting changes.
  • Added focused tests for configured description inclusion and blank-description omission.
  • Updated subagent/config docs, prompt snapshots, and config baseline hash.

Local validation on the refreshed branch:

pnpm exec oxfmt --check --threads=1 src/agents/tools/agents-list-tool.ts src/agents/tools/agents-list-tool.test.ts src/agents/openclaw-tools.agents.test.ts docs/tools/subagents.md docs/gateway/config-agents.md test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/discord-group-codex-message-tool.md test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/telegram-direct-codex-message-tool.md test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/telegram-heartbeat-codex-tool.md
pnpm exec vitest run src/agents/openclaw-tools.agents.test.ts src/agents/tools/agents-list-tool.test.ts
pnpm prompt:snapshots:check
pnpm config:docs:check
node scripts/run-oxlint.mjs src/agents/openclaw-tools.agents.test.ts src/agents/tools/agents-list-tool.ts src/agents/tools/agents-list-tool.test.ts

Results:

  • format: passed
  • focused Vitest: 4 files / 28 tests passed
  • prompt snapshots: current
  • config docs baseline: OK
  • oxlint: passed

GitHub now reports the PR as MERGEABLE; CI is running on the new head.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. P2 Normal backlog priority with limited blast radius. and removed rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. labels May 30, 2026
@shannon0430

Copy link
Copy Markdown
Contributor Author

Follow-up on the failing build-artifacts check:

  • Failing job was build-artifacts / core-support-boundary, specifically test/scripts/crabbox-wrapper.test.ts.
  • The two failures were not from the agents_list description change. They reproduced on a clean origin/main worktree as well.
  • Cause: .crabbox.yaml now defaults the runner provider to azure, while the test still expected the old aws behavior in two assertions.
  • Pushed a narrow test fix in e366fe775a to align those assertions with the Azure default and preserve fail-closed behavior when the selected provider is not advertised.

Local validation after the fix:

pnpm exec oxfmt --check --threads=1 test/scripts/crabbox-wrapper.test.ts
# passed

node scripts/run-vitest.mjs run --config test/vitest/vitest.full-core-support-boundary.config.ts test/scripts/crabbox-wrapper.test.ts
# 1 file passed, 114 tests passed

@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 30, 2026
@shannon0430
shannon0430 force-pushed the feat/agents-description-field branch from e366fe7 to 4fa2de5 Compare May 30, 2026 05:50
…-20261114

# Conflicts:
#	test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/discord-group-codex-message-tool.md.diff
#	test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/telegram-direct-codex-message-tool.md
@shannon0430

Copy link
Copy Markdown
Contributor Author

Integrated pinned current main through 675eb35fbb60d1f5f96f757157838fd2059c1646 with a normal merge (no force push). The only merge conflicts were the two owned prompt snapshots, regenerated with the canonical generator. GitHub readback matches exact head afbe5dc7dd87ba21ccf1304e69b019e909f1ee19 and reports it mergeable after the later base advance.

Current-head verification passed: all six prompt snapshots are current, the focused agents_list suite passed 11/11, and git diff --check passes. The opt-in E2E prebuild was stopped during a long declaration build before test execution, so no new current-head Gateway E2E result is claimed; the previously published compiled-Gateway proof remains bound to its recorded head. Maintainer adoption of description visibility remains separate.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

# Conflicts:
#	test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/discord-group-codex-message-tool.md.diff
#	test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/telegram-direct-codex-message-tool.md
@shannon0430

Copy link
Copy Markdown
Contributor Author

Integrated pinned current main through a64758be048909c5c59ef781d5b4f34aaefc34af with a normal merge (no force push). The two conflicts were owned prompt snapshots and were regenerated canonically.

Exact head: 08bc752d6f6422e7a1676dea466a9e949fa4aed4

Focused exact-head proof: 11 agents_list description/authorization/budget assertions passed; all six canonical prompt snapshots are current; git diff --check --cached passed. The QA-lab E2E prebuild was stopped before execution and is not claimed as behavior proof. No maintainer workflow approval was performed.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@shannon0430

Copy link
Copy Markdown
Contributor Author

Resolved the actual prompt-fixture conflicts in 6182cb113098b2e9a446546a9e0174668cae3c87 by merging pinned official main 2e1b61901c5d139dd4b40e00eb3ca326a0ef9b89 and regenerating the fixtures with their canonical owner; --check passes. No authored feature or test code was changed.

For the red-on-base gap noted in the current review: the same 11 tests with official main's implementation fail in 5 cases (6 pass), then all 11 pass after restoring the PR implementation. Restoration was byte-checked. This supplements the focused regression evidence; it does not claim native Gateway/provider/delivery acceptance or maintainer adoption. The latest PR description retains those scope limits.

@shannon0430

Copy link
Copy Markdown
Contributor Author

Current exact head remains 6182cb113098b2e9a446546a9e0174668cae3c87, mergeable after the published main integration.

The branch comment and PR description already record the canonical prompt regeneration plus red-on-base evidence: the same 11 focused tests fail 5 cases with main's implementation and pass all 11 with the PR implementation. No authored feature or test code changed in that integration.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@shannon0430

Copy link
Copy Markdown
Contributor Author

Updated the focused evidence for a7e4cb02dba6.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@shannon0430

Copy link
Copy Markdown
Contributor Author

Validated the current exact head d01f991f2a01f after the latest main integration:

  • src/agents/tools/agents-list-tool.test.ts: 11/11 passed
  • canonical prompt snapshot check: all 6 files current
  • test/scripts/prompt-snapshots.test.ts: 7/7 passed
  • git diff --check: passed; worktree remained clean

The remaining product adoption decision is unchanged.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@shannon0430

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@shannon0430

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@shannon0430

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

This branch has not been deployed

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

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation extensions: qa-lab gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: supplied External PR includes structured after-fix real behavior proof. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: expose configured agent descriptions through agents_list

2 participants