Repository navigation
fix: narrow unconfigured GitHub tools in the built-in harness - #197592
roboclaw-bot wants to merge 3 commits into
Conversation
Keep credential-free readiness and original receipt observation when the built-in listing owner knows no publisher is configured. Preserve unknown/native/managed selections and pin discovery-dependent declarations through the existing prompt owner. Native harness omission remains deferred. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]>
Exercise an absent publisher and configured-unhealthy identity through a paired synthetic browser and the actual built Gateway. Capture original provider request bytes and action counts without live credentials or publication. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]>
Worked on by: - @jalehman - @GrahamMcBain - @vincentkoc Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 46ccf8c9-3348-8666-b35f-4e205cbb1daf
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
|
Codex review: needs changes before merge. What this changesThis PR narrows built-in GitHub publication declarations to readiness when no publishing identity is configured, while preserving session prompt stability. Example: A new built-in session has authoritative confirmation that no GitHub publisher is configured.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-authored PR provides a useful declaration correction with no actionable introduced bug found, but GitHub reports a merge conflict. Priority: P2 Before merge
FindingsNone. Agent review detailsHow this fits togetherThe GitHub lifecycle supplies configuration facts to tool assembly; the session prompt owner pins declarations before catalog compaction, while existing Gateway owners authorize execution. flowchart LR
A[GitHub configuration] --> B[Lifecycle discovery]
B --> C[Tool assembly]
C --> D[Session declaration pin]
D --> E[Provider tool catalog]
E --> F[Gateway action owners]
Technical reviewBest possible solution: Land the focused declaration correction through the existing GitHub lifecycle and session prompt owners after resolving the reported conflict. Do we have a high-confidence way to reproduce the issue? Current-main construction advertises authenticated publication actions without checking publisher configuration, and the PR supplies a concrete built-Gateway before/after scenario; no target code was executed during this review. Is this the best way to solve the issue? The change uses authoritative configuration discovery and the existing declaration checkpoint, preserves unknown and delegated cases, and avoids changing native harness lifecycle contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7b303779c41f. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +297, Tests +620, Docs +17, Other +4. Total +938 across 31 files. Added test files: 1. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 12, 2026, 1:49 AM ET / 06:49 UTC. |
What Problem This Solves
Fixes the built-in OpenClaw harness offering authenticated GitHub operations after the GitHub owner has confirmed that no publishing identity is configured.
User Impact
Unconfigured built-in listings keep credential-free readiness, setup/status, and original publication-receipt observation without advertising unsupported writes. Public GitHub read/search remain available. Native-default authentication, configured but unhealthy identities, unknown discovery, and possible delegated publishers are preserved; no migration or new setting is required.
Scope: Codex and other native/SDK harnesses without the embedded declaration pin retain their existing listings. Omission there is deferred rather than risking warm-thread rotation or adding a native custody lifecycle. Another configured agent conservatively retains the broader surface because it may own a delegated publishing target.
Why This Change Was Made
The existing GitHub lifecycle publishes authoritative configuration facts off the turn path. Tool construction consumes those facts without reading credentials or probing authentication. Known absence selects a compact readiness-only schema; failed discovery is unknown, not absence. A linked human GitHub account is not treated as the managed bot publisher.
The existing session-prompt owner pins the declaration before catalog compaction, so background discovery cannot rewrite an established provider prefix. Configuration/support changes and explicit refresh re-evaluate it. Fresh execution closures, current authority, private access, direct-only handoffs, and accepted-operation settlement remain with their existing owners.
Evidence
Actual built-product before/after
Matched source builds: BASE
24819901d92ee379b5b36a957276d3b3657d7b79and the candidate's unchanged production tree. Both use the actual built Gateway and served Control UI, a separately paired synthetic test viewer, visible composer/Send, and the same neutral loopback provider. No mocked baseline Gateway. These are original UTF-8 HTTP body bytes, not JSON reserialization.Exactly 6,129 bytes are removed from the publisher definition: 6,954 → 825 bytes. In direct mode tool JSON is 126,204 → 120,075 bytes; system JSON is unchanged at 31,911 and remaining bytes at 2,787 (2,827 for the receipt case). In Code Mode tool JSON is 16,832 → 10,703; system JSON is unchanged at 27,740 and remaining bytes at 2,787. These scopes are not added together.
Checks and review
8e86fe88d51c135071a05c3b5e550cf57cf2272dwith intact owner context:scoped-clean, no findings. The current-head local ClawSweeper attempt failed in its reviewer process (exit 101, no verdict); earlier completed passes are prior-head evidence only. Following the documented maintainer fallback, one hosted review will be requested after publication.Limits: synthetic provider, not real-model quality or live GitHub authentication/publication/private-access proof. No latency, token, billing or cache-performance claim. The matched FIX capture reused audited byte-identical outputs with matching production-source signatures; the original precommit stamp was preserved, not relabeled. The rejected CLI/agent-exec branch remains stopped/unqualified; the independent browser fixture used its own canonical local owner and preserved both attribution markers.
Rerunnable workload:
OPENCLAW_E2E_USE_PREBUILT_DIST=1 node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-github-tool-surface.real-gateway.e2e.test.ts --maxWorkers=1.OPENCLAW_GITHUB_TOOL_BUILD_ROOTselects an already-qualified build;OPENCLAW_GITHUB_TOOL_STAGE=base|fixselects the expected declaration. Full evidence and commands are retained in the implementation work session.Contributor credit
Requested by @vincentkoc, based on the original idea from @jalehman. Commit coauthor credit also includes @GrahamMcBain.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by