Skip to content

fix: include GitHub and transcript tools in Disable All - #156865

Merged
steipete merged 2 commits into
mainfrom
codex/fix-disable-all-catalog597
Sep 24, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/fix-disable-all-catalog597

Conversation

@steipete

@steipete steipete commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes GitHub and meeting transcript tools remaining enabled after an operator clicks Disable All in an agent's Tools settings.

User Impact

Operators can configure and deny github_identity_status, github_publish, and transcripts from the tool catalog. Existing saved deny lists are unchanged; click Disable All and Save again to include the newly listed tools.

transcripts appears in the Media catalog section while remaining outside group:media and group:openclaw. Existing group grants and denies retain their meaning, and the minimal, coding, and messaging profiles are unchanged. Runtime workspace, identity, caller, and capture access checks continue to apply.

Why This Change Was Made

Disable All generates explicit denies from the configurable catalog. The catalog omitted meeting transcripts and hid GitHub tools behind per-run availability facts that the catalog endpoint does not have. The policy matcher correctly applied the supplied denies, but those names were missing.

The canonical catalog now lists these configurable tools independently of per-run authorization. The obsolete catalog availability argument and its callers are removed; the Swarm and personal-instructions feature gates remain. A regression invokes the registered tools.catalog handler and verifies that its returned deny list covers every configurable core factory tool.

Evidence

  • Live reproduction on an isolated synthetic agent: Disable All saved 72 denies and displayed 0/72 enabled, while a subsequent model turn still received GitHub identity and transcript tool declarations. No transcript read or GitHub action was invoked.
  • A rebuilt live candidate passed the UI flow before the subsequent group-compatibility correction (which leaves the displayed catalog and explicit deny behavior unchanged): the catalog lists 75 tools, and Disable All → Save persisted 75 unique deny IDs exactly equal to the displayed catalog IDs. All three formerly omitted tool names were denied. A marked, completed native turn returned an empty dynamic-tool list and undefined for all three tool functions; its current binding matched the inspected rollout. Only the metadata probe wrapper ran. The original empty agent tool policy was restored and verified exactly.
  • Original-code regression failed for exactly github_identity_status, github_publish, and transcripts; the repaired code passes.
  • 70 tests passed across the core catalog, registered catalog handler, Doctor profile-conflict migration, UI catalog, and existing browser tools-panel cases. This includes 25 browser cases covering bulk actions.
  • Single-worker focused test wrapper: 31.317s wall, including a 12.28s compiled-worker preparation. Registered catalog test lane: 3.37s, with the new regression taking 2ms. Browser lane: 807ms. The cold original-code regression run took 18.964s wall.
  • Before the group-compatibility correction, selected check:changed passed, including core typechecking, all 25 test type shards, changed-file lint, documentation/config checks, and architecture guards: 1204.705s wall. Formatting and git diff --check passed.
  • Review identified that adding the transcript catalog row also changed saved group:media and group:openclaw permissions. The catalog now keeps visual section placement separate from policy group membership. Two real matcher regressions failed before this correction and passed afterward; they cover both saved allows and saved denies, including an explicit transcript grant.
  • After that correction, 93 focused tests passed in 31.116s wall across the catalog, real policy matcher, registered catalog handler, Doctor profile conflicts, and UI fallback. The two new matcher cases each measured under 1ms; the registered Disable All regression measured 2ms. Fresh managed review of the complete staged patch found no actionable P0–P2 findings.
  • After the correction, core production typechecking passed in 37.406s and the canonical agents-root test type graph passed in 36.382s. Targeted lint passed in 26.845s, scoped MDX in 0.598s, formatting in 0.488s, and staged diff whitespace validation passed. The unchanged graph-boundary and other static results above were reused. Exact-head CI passed for 30332b7a9fa13551f856ad2b8c3e1a85230a5dbd in 802s elapsed including setup and scheduling. The three UI check jobs took 327–362s and the nine browser jobs 247–518s each; these are whole-job costs, not isolated regression timings.

Two initial setup failures occurred before validation completed: the fresh checkout lacked workspace dependency links, then the declaration guard rejected borrowed dependencies. Providing matching private dependency copies resolved the setup; no product or test assertions were weakened.

Before/after screenshots and the metadata probe were delivered in chat. All six embedded PR images were verified to render. The PR is ready for review with exact-head CI green; the refreshed ClawSweeper review and normal native merge gates remain.

The separate effective-tool preview undercount for permitted run-dependent tools is outside this catalog repair. The proof above checks the saved policy and actual native metadata, rather than relying on the UI's Live count.

The first two images show the before catalog: 72 configurable tools and a Media section without meeting transcripts. The after images show the 75-tool catalog, the newly listed transcript tool, the saved 0/75 state, and the completed metadata-only probe.

Before: agent tool catalog exposes only 72 configurable tools

Before: Media lists six tools and omits meeting transcripts

After: all 75 configurable tools are visible

After: meeting transcripts appears in the Media section

After: Disable All saves the complete 75-tool deny list

After: native metadata reports no dynamic tools and all three formerly missed functions are undefined

Complete the configurable core catalog with meeting transcripts and GitHub tools so bulk disables cover their names. Preserve runtime availability and caller authority gates, and keep transcripts out of restricted profiles.
@clawsweeper

clawsweeper Bot commented Sep 23, 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 app: web-ui App: web-ui gateway Gateway runtime commands Command implementations agents Agent runtime and tooling size: S labels Sep 23, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 24, 2026
@clawsweeper

clawsweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed September 23, 2026, 8:29 PM ET / September 24, 2026, 00:29 UTC (Revision 2).

ClawSweeper review

What this changes

The branch adds GitHub publishing and meeting transcript tools to the agent Tools catalog so Disable All includes them, and updates documentation and tests.

Merge readiness

⛔ Blocked before merge - 10 items remain

The fix remains needed: current main omits three tools from Disable All. The branch covers that gap, but it also changes the meaning of saved tool-group policies. The prior blocking finding remains on the unchanged head.

Priority: P1
Reviewed head: 6dd543c4cdfbbd7a151a2b09ebd2e89147db7454
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The central UI flow has useful live evidence, but the unchanged P1 saved-policy access defect and missing final-effect authority proof block merge.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: Authority-chain proof required: The isolated-agent before/after account and inspected screenshots support catalog visibility, and the PR body reports an explicit Disable All deny and native metadata result. They do not exercise a saved group-only grant or deny through the final transcript read. Two later linked images were not present in the prepared media manifest, leaving that visual context uninspected. No stored-data model changes. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🧂 unranked krab (1/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: Authority-chain proof required: The isolated-agent before/after account and inspected screenshots support catalog visibility, and the PR body reports an explicit Disable All deny and native metadata result. They do not exercise a saved group-only grant or deny through the final transcript read. Two later linked images were not present in the prepared media manifest, leaving that visual context uninspected. No stored-data model changes. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 9 items Introduced policy expansion: The added transcript definition is placed in the media section and included in the OpenClaw group; the verified test merge retains this change.
Saved-group behavior: The catalog derives media and OpenClaw groups from definitions, while the runtime expands those groups in both allow and deny lists.
Policy matching: Group expansion feeds both deny and allow matchers, with deny taking precedence.
Findings 1 actionable finding [P1] Preserve saved tool-group permissions when listing transcripts
Security Needs attention Saved group grants newly select transcript reads: An agent selected through an existing media or OpenClaw group grant can gain the transcript tool after upgrade; operator callers can list and show meeting notes even though caller checks remain active.

How this fits together

The Gateway sends a configurable tool catalog to the Control UI, which saves Disable All as explicit tool denies. The agent runtime expands saved tool groups and applies policy and caller checks before tools can run.

flowchart LR
A[Core tool definitions] --> B[Gateway catalog]
B --> C[Agent Tools settings]
C --> D[Saved tool policy]
A --> E[Tool group expansion]
D --> E
E --> F[Runtime tool selection]
F --> G[Transcript access checks]
Loading

Decision needed

Question Recommendation
Should existing group:media and group:openclaw policies acquire transcript access on upgrade, or should transcripts be catalog-visible without joining those saved groups? Preserve saved group scope: List transcripts for explicit selection and Disable All while leaving existing group grants and denies unchanged.

Why: The branch changes the effective scope of persisted grants and denies; accepting that access change requires explicit owner intent and upgrade evidence.

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: Authority-chain proof required: The isolated-agent before/after account and inspected screenshots support catalog visibility, and the PR body reports an explicit Disable All deny and native metadata result. They do not exercise a saved group-only grant or deny through the final transcript read. Two later linked images were not present in the prepared media manifest, leaving that visual context uninspected. No stored-data model changes. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Preserve saved tool-group permissions when listing transcripts (P1) - This new media definition also enters group:media and group:openclaw. Runtime policy expansion therefore lets an existing group allow select transcripts and makes a group deny suppress it, without any operator config edit. For an operator caller, transcript reads can return meeting notes. Keep the tool catalog-visible without silently changing those saved groups, or obtain explicit owner acceptance with upgrade and final-effect proof.
  • Resolve security concern: Saved group grants newly select transcript reads - An agent selected through an existing media or OpenClaw group grant can gain the transcript tool after upgrade; operator callers can list and show meeting notes even though caller checks remain active.
  • Resolve merge risk (P1) - Existing group:media or group:openclaw allows would begin selecting transcripts without a config edit, while matching denies would newly suppress it. The PR's explicit Disable All proof does not establish safe upgrade behavior for those saved policies.
  • Resolve merge risk (P1) - The PR body still marks required before/after screenshot delivery to the originating chat as unconfirmed.
  • Complete next step (P2) - Resolve the saved-group transcript access change, provide allowed and previously excluded final-effect proof, and confirm the required chat screenshot delivery before merge.
  • Improve patch quality - Separate transcript catalog visibility from existing group-policy membership, or obtain explicit acceptance of the upgrade change.
  • Improve patch quality - Show the allowed and nearest previously excluded group-policy cases at the final transcript read boundary, using redacted output.
  • Improve patch quality - Confirm required before/after screenshot delivery to the originating chat.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

  • [P1] Preserve saved tool-group permissions when listing transcripts — src/agents/tool-catalog.ts:490-494
  • [medium] Saved group grants newly select transcript reads — src/agents/tool-catalog.ts:494
Agent review details

Security

Needs attention: The new catalog definition also expands existing group grants to a tool capable of reading meeting captures.

PR surface

Source +3, Tests +21, Docs +9. Total +33 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 1 9 6 +3
Tests 4 33 12 +21
Docs 1 10 1 +9
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 52 19 +33

Review metrics

Metric Value Why it matters
Saved policy groups affected 2 groups The new transcript definition changes both media and OpenClaw group expansion for existing allow and deny entries.

Merge-risk options

Maintainer options:

  1. Decouple catalog and groups (recommended)
    Preserve existing group-policy behavior while adding the transcript row to explicit Disable All denies.
  2. Own the upgrade change
    A maintainer may accept expanded group access after documenting the behavior and verifying allowed and previously excluded transcript reads at the final tool boundary.

Technical review

Best possible solution:

Keep all three tools visible to Disable All while separating catalog visibility from legacy group expansion, so saved group policies retain their prior meaning.

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

Yes, the source path is clear and the contributor captured a baseline live mismatch: Disable All saved only catalog-visible names while a subsequent turn still received omitted tools. This read-only review did not execute current main.

Is this the best way to solve the issue?

No. Adding the catalog entries addresses the reported failure, but the transcript definition also changes saved tool-group permissions; catalog visibility should be independent of that policy expansion.

Full review comments:

  • [P1] Preserve saved tool-group permissions when listing transcripts — src/agents/tool-catalog.ts:490-494
    This new media definition also enters group:media and group:openclaw. Runtime policy expansion therefore lets an existing group allow select transcripts and makes a group deny suppress it, without any operator config edit. For an operator caller, transcript reads can return meeting notes. Keep the tool catalog-visible without silently changing those saved groups, or obtain explicit owner acceptance with upgrade and final-effect proof.
    Confidence: 0.95

Overall correctness: patch is incorrect
Overall confidence: 0.95

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against d1a3a33acc1c.

Labels

Label changes:

  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Authority-chain proof required: The isolated-agent before/after account and inspected screenshots support catalog visibility, and the PR body reports an explicit Disable All deny and native metadata result. They do not exercise a saved group-only grant or deny through the final transcript read. Two later linked images were not present in the prepared media manifest, leaving that visual context uninspected. No stored-data model changes.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: Authority-chain proof required: The isolated-agent before/after account and inspected screenshots support catalog visibility, and the PR body reports an explicit Disable All deny and native metadata result. They do not exercise a saved group-only grant or deny through the final transcript read. Two later linked images were not present in the prepared media manifest, leaving that visual context uninspected. No stored-data model changes. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • remove status: ⏳ waiting on author: Current PR status label is status: 📣 needs proof.

Label justifications:

  • P1: Disable All currently leaves run-dependent tools available, and the proposed fix introduces a saved-policy access change that must be resolved before merge.
  • merge-risk: 🚨 compatibility: Existing group allow and deny settings would acquire a new transcript member on upgrade.
  • merge-risk: 🚨 security-boundary: A saved group grant can newly select a tool that reads meeting capture metadata and notes.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🦪 silver shellfish and patch quality is 🧂 unranked krab.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: Authority-chain proof required: The isolated-agent before/after account and inspected screenshots support catalog visibility, and the PR body reports an explicit Disable All deny and native metadata result. They do not exercise a saved group-only grant or deny through the final transcript read. Two later linked images were not present in the prepared media manifest, leaving that visual context uninspected. No stored-data model changes. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Authority-chain proof required: The isolated-agent before/after account and inspected screenshots support catalog visibility, and the PR body reports an explicit Disable All deny and native metadata result. They do not exercise a saved group-only grant or deny through the final transcript read. Two later linked images were not present in the prepared media manifest, leaving that visual context uninspected. No stored-data model changes.

Evidence

Security concerns:

  • [medium] Saved group grants newly select transcript reads — src/agents/tool-catalog.ts:494
    An agent selected through an existing media or OpenClaw group grant can gain the transcript tool after upgrade; operator callers can list and show meeting notes even though caller checks remain active.
    Confidence: 0.93

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Pavan Kumar Gondhi: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Ayaan Zaidi: 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 (1 earlier review cycle)
  • reviewed 2026-09-24T00:02:48.423Z sha 6dd543c :: blocked before merge. :: [P1] Preserve saved tool-group permissions when listing transcripts

@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 24, 2026
Keep meeting transcripts visible in the configurable catalog without adding it to existing media or OpenClaw policy groups. Preserve saved allows and denies while keeping Disable All coverage complete.
@steipete
steipete marked this pull request as ready for review September 24, 2026 00:33
@steipete

Copy link
Copy Markdown
Contributor Author

Fixed the saved-group finding in 30332b7. The transcript catalog row stays visible, but remains outside both group:media and group:openclaw. Existing group grants and denies retain their meaning; Disable All still denies the explicit transcript name.

Two real matcher regressions failed before the correction and pass now. All 93 focused tests, core and affected test typechecks, targeted lint, docs, formatting, and fresh managed review pass. The PR body includes the measured costs and inspected before/after proof. Current-head CI is progressing; no test failures have been reported by the exact-head watcher.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete
steipete merged commit 5e20a15 into main Sep 24, 2026
289 of 293 checks passed
@steipete
steipete deleted the codex/fix-disable-all-catalog597 branch September 24, 2026 00:56
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 24, 2026
)

* fix: include run-dependent tools in Disable All

Complete the configurable core catalog with meeting transcripts and GitHub tools so bulk disables cover their names. Preserve runtime availability and caller authority gates, and keep transcripts out of restricted profiles.

* fix(tools): preserve transcript policy group semantics

Keep meeting transcripts visible in the configurable catalog without adding it to existing media or OpenClaw policy groups. Preserve saved allows and denies while keeping Disable All coverage complete.
@roboclaw-bot roboclaw-bot mentioned this pull request Sep 24, 2026
2 of 8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: S status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant