Repository navigation
fix: narrow unconfigured GitHub tools in the built-in harness - #197594
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
Integrate pinned main c7962d6 to resolve the published PR conflict. Preserve worker-backed credential reads and prepared-prefix reuse alongside the existing configuration selector and publication listing pin. The inherited test-line gate remains 25 lines over its ceiling; task growth is exactly covered by the existing 411 and 207 allocations, with zero merge-repair test growth. 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: 87791c30-f9ca-89bb-a8bc-b571cf3e6908
|
🦞👀 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. |
|
The existing CI ownership guard requires the private-server inventory in its canonical sorted order. Move the GitHub workload entry without changing membership, assertions or production behavior. 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: 72534aee-21f5-4321-8e43-35ef484fc0be
Document the internal publication-listing checkpoint assertion and include the new private serial Gateway workload in the independent exact inventory expectation. 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: a50d8f29-075b-4d82-b29a-14140f62cdfa
|
Codex review: needs maintainer review before merge. What this changesThis PR narrows built-in GitHub publication declarations when no publisher is configured while preserving session-stable listings and receipt observation. Example: A new built-in session has confirmed empty native GitHub configuration.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR addresses a concrete tool-listing problem absent from current main. No actionable code defect was found; current-head CI failures still need attribution before landing. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe GitHub lifecycle supplies configuration facts to tool assembly, and the session-prompt owner pins the resulting declarations before catalog compaction and provider submission. flowchart LR
A[GitHub configuration] --> B[GitHub lifecycle]
B --> C[Tool assembly]
C --> D[Session declaration pin]
D --> E[Tool catalog and provider request]
E --> F[Gateway action authorization]
Technical reviewBest possible solution: Land the focused lifecycle-backed selector and session-owned declaration pin after resolving current-head CI attribution. Do we have a high-confidence way to reproduce the issue? Current main constructs the full publication declaration without consulting confirmed publisher absence; the PR body supplies matched built-product observations, and no target code was executed during this review. Is this the best way to solve the issue? The smallest complete fix uses the existing GitHub lifecycle for absence facts and the existing session-prompt owner for declaration stability; the added selector and catalog wiring serve those responsibilities. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0950f7a77e98. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +298, Tests +620, Docs +17, Other +4. Total +939 across 32 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. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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, 2:33 AM ET / 07:33 UTC. |
Keep the existing observer and detachment assertions while awaiting their actual asynchronous readiness instead of assuming two animation frames have completed registration. 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: 1c1da582-1abc-4ffe-8128-c99865ac0334
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…aw#197594) * fix: trim unavailable GitHub actions without changing session tools 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]> * test: retain built GitHub declaration workload 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]> * fix: narrow unconfigured GitHub tools in the built-in harness 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 * Publish openclaw/grand-shell-4 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: 87791c30-f9ca-89bb-a8bc-b571cf3e6908 * fix: keep private browser inventory in canonical order The existing CI ownership guard requires the private-server inventory in its canonical sorted order. Move the GitHub workload entry without changing membership, assertions or production behavior. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> * Publish openclaw/grand-shell-4 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: 72534aee-21f5-4321-8e43-35ef484fc0be * fix: align GitHub workload CI contracts Document the internal publication-listing checkpoint assertion and include the new private serial Gateway workload in the independent exact inventory expectation. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> * Publish openclaw/grand-shell-4 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: a50d8f29-075b-4d82-b29a-14140f62cdfa * test(ui): wait for position rail observer readiness Keep the existing observer and detachment assertions while awaiting their actual asynchronous readiness instead of assuming two animation frames have completed registration. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> * Publish openclaw/grand-shell-4 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: 1c1da582-1abc-4ffe-8128-c99865ac0334 --------- Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]>
Allow initial guest PR preparation from the recorded project's published history while preserving unpublished work and original PR identity. (cherry picked from commit 2757947) Stable adaptation: preserve the existing linked-identity fixture; expand its options type and allocate exactly 89 regression LF instead of 84. Production and documentation patches are unchanged from the source. Companions: #188785 is present-equivalent. Later #188784, #190223, #190576, #190542, #195413, #197229, #197243, #199717, #195787, #197510, #193664, #199851, #199864, #197656, #198851, #193873, #197594, #189006, #188904, #194025, #196200, #192283, #189010, #188816 and e0466ff are not prerequisites to this scoped repair; retain their separate intake dispositions. No later PR-number mentions. Proof: baseline 4 failed/20 passed through registered agent action; fixed 41/41 across preparation, refresh and base-action suites. Type-aware lint4, formatting5, docs MDX1419 and diff check pass. No live GitHub or full release qualification claim. Co-authored-by: RomneyDa <[email protected]>
Related: #197592 (earlier publication of this change; this PR contains the current-main integration).
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 them 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
Matched built-product before/after
Historical matched qualification used BASE
24819901d92ee379b5b36a957276d3b3657d7b79and the pre-integration production tree inbb2b031c95d5869dfb2bec33f8ddd7d2b898e06f. Both used 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. Counts are original UTF-8 HTTP body bytes, not JSON reserialization.In this table, “Native empty/configured/unknown” refers to the native GitHub credential backend within the built-in pinned harness, not reduced listings in native/Codex harnesses, which remain deferred.
Exactly 6,129 bytes are removed from the publisher definition: 6,954 → 825 bytes. Direct tool JSON is 126,204 → 120,075 bytes; system JSON stays 31,911 and remaining bytes 2,787 (2,827 for the receipt case). Code Mode tool JSON is 16,832 → 10,703; system JSON stays 27,740 and remaining bytes 2,787. These scopes are not added together.
Current integration and checks
Integrated main
c7962d6a108ca4f3f46a76e254bf29a487e5145fto resolve the published conflict. The identity import resolution preserves main's worker-backed credential reads, fs-safe policy and redaction alongside this PR's pure selector. Main's prepared-prefix reuse and the publication-listing pin coexist. At that integration, twenty-nine of 31 reviewed PR-file blobs were unchanged.Current publication:
30369593fd36822548b25f4fd6428582c951e7b3is an empty publication child of tested/reviewed6ebcb0abddba4a2cc90947ed3fa626b21c23387d; both have verified tree930c12fb3beaf704ebaaf8d6e45f0b1be3dc4617. The final delta changes only two positive observer-readiness waits in one UI test file to canonicalwaitForSolid, preserving the assertions and immediate negative detachment assertion. Production/runtime behavior and timeout configuration are unchanged. Current-head CI completed FAILURE, with the three root failures independently reproduced on actual main as detailed below; no all-green or fresh build/browser claim is made. Under Vincent's scoped finalize-and-land instruction, the lead has selected the native inherited-failure landing route and owns exact-head preparation/evidence binding and execution. This metadata update is not a merge receipt.43180496930, attempt 1, completed FAILURE with 94 jobs, all terminal, on30369593fd36822548b25f4fd6428582c951e7b3. Three root failures remain:build-artifacts(job131055724373), only Check generated schema, reporting stalepackages/gateway-protocol/src/compiled/protocol.generated/predicates.js; updaterchecks-node-changed-compact-large-8(job131055725637), the same expected2026.5.20missing/invalid version and postinstall-inventory case; and UI E2E 5/7 (job131055724727), the cold-load anchor case at line 267, timing out on exact text Worked for 3m 30s. Derivedci-gatealso failed (job131061985758). The repaired position-rail UI unit tests passed in this run; no additional task defect was identified.9fe59d5e7ef063a15c39523386c15c0b68b733f3, with exact Node 24.22.1 and the verified project-pinned Bun 1.4.4 canary 191755, reproduces all three root signatures. Native PR evidence:.local/baseline-validators24.logexits 1 with the same stale predicates;.local/baseline-updater24.logrecords 1 failed / 11 filtered, the exact missing version/inventory failure;.local/baseline-cold-load24.logrecords 1 failed / 2 filtered, the same Worked for 3m 30s timeout at line 267. Preliminary Node 26 failures are not the qualifying proof: the exact Node 24 replays are. Relevant failure-owner, test and generator blobs were verified unchanged from CI parentff8d8d2cac5b20f81364c241294eb09c796ca591to both main baseline9fe59d5e7ef063a15c39523386c15c0b68b733f3and tested mergeeb4bac034ed74b3d8b3854840f7005540974b415. The lead is binding the native exception artifact to published head30369593fd36822548b25f4fd6428582c951e7b3, run43180496930attempt 1, that CI parent and exact tested merge. These are attributed inherited failures, not green checks or a waiver of remaining enforced review/security gates; landing is unconfirmed until its execution receipt.e930f31df6f94d8b2b3cb3f11b4e59c07cf6cee2or the new published head.e930f31df6f94d8b2b3cb3f11b4e59c07cf6cee2or the new published head.552b2bca90248d51e49101bec9932f983e70474dCI merge-tree test-line check passed: 6,672,146 ≤ 6,672,197, with 51 lines of slack. No allocation, scalar, baseline, ignore, suppression or waiver was changed to obtain that pass. This is prior-head CI evidence, not ane930or current-head check result.c7962d6a108ca4f3f46a76e254bf29a487e5145f→b89852b39648cfd30c7890a4e8eac5689f0297dd, was scoped-clean, with no findings;539d2ef01d93018ff22b71c54d77e2f64ad1b980was an empty publication child of that reviewed tree. A subsequent full-range Autoreview,c7962d6a108ca4f3f46a76e254bf29a487e5145f→7c397401079c82d1155a6f3e1307e7e34f5da828, was also scoped-clean, covering the first workload-inventory ordering repair. Fresh independent incremental Autoreview (Codex, P0–P3) of the exact552b2bca90248d51e49101bec9932f983e70474d→9ea97ec3588c14d18a41d447d471b0006a18c276working-tree snapshot, with complete checkpoint-writer and CI-configuration context, was scoped-clean, with no findings (ci552-owner-status.json,ci552-owner-review.md). Publishede930f31df6f94d8b2b3cb3f11b4e59c07cf6cee2is an empty child of tested/reviewed9ea97ec3588c14d18a41d447d471b0006a18c276; both have verified tree0edcddc2a2036a0a13ad46e03fddd2f66ec0bbd0. A final independent incremental Autoreview (Codex, P0–P3),e930f31df6f94d8b2b3cb3f11b4e59c07cf6cee2→6ebcb0abddba4a2cc90947ed3fa626b21c23387d, with the complete position-rail owner and Solid settle-helper context, was scoped-clean, with no findings (rail-final-status.json,rail-final-review.md). Simplification review found the delta minimal, with no added machinery.SAFETYcomment at the assertion. UI resource-ownership inventory tests went from 3 failed / 12 passed → 15 passed by adding the real new workload to the independent expected inventory. The earlier workload-inventory ordering guard was reproduced red and then passed after moving the entry to its sorted position. Targeted types, lint, format and diff checks pass for the repair; production executable behavior is unchanged. The frozen repair receipt isci552-repair-receipt.jsonin the implementation evidence.e930f31df6f94d8b2b3cb3f11b4e59c07cf6cee2jobchecks-node-changed-compact-small-1(job131033680797) failedsrc/cli/update-cli.fresh-doctor.test.tssplit-root writable-override package verification on missing version/postinstall inventory, repeating the prior552signature. The original terminal classifier labeled it UNKNOWN, with no matching main job. Subsequent actual-main reproduction on611bea727f21c2f901f5f6d963aa2b5c5553b4ea, usingCI=true,GITHUB_ACTIONS=trueand the verified repository-pinned CI Bun, reproduced the same missing version/postinstall inventory signature: 1 failed / 11 filtered (.local/baseline-updater-pinned.login the native PR evidence). The lead verified relevant CLI owner, fixture and pin blobs unchanged across the qualified main baseline and actual previously tested merge8bf6621fefe93530e183da0c23ed3834da9c5c48. This supersedes the earlier unknown attribution with a reproduced baseline failure; the lead owns the native inherited-failure evidence and landing decision. It does not relabel a failed check green or claim an updater fix.9ea97ec3588c14d18a41d447d471b0006a18c276passed (1 passed / 11 filtered); the later frozen Bun focused reproduction also passed (1 passed / 11 filtered,e930-updater-bun-focused.log). The exact nine-file CI-cohort Bun replay exceeded its bounded 360 seconds before reaching the failing test and was terminated (e930-bun-cohort-repro.log): no verdict. An earlier parent reproduction attempt was refused by the source-change compiler and is retained separately as setup failure, not a product verdict. No timeout increase, CI rerun or updater source fix was made. Passing replays were not fixes; baseline qualification comes from the actual-main failing reproduction above, not these passes.checks-ui 2/3(job131033679753) failedchat-position-rail.test.tsx:694, in the test keeping the focused run marker through streaming:observed.has(streamBubble)expectedtrue, receivedfalse. The original terminal classifier marked it new against a matching passing main job, not proof of PR causation. The initial bounded Bun whole-file replay passed 19 testswithout a fix, which alone did not resolve CI timing uncertainty. The final repair replaces fixed-frame waits before two positive observer assertions with canonicalwaitForSolid; the exact assertions and immediate negative detachment check remain. The full file passes 19 tests on Node and 19 tests on verified pinned CI Bun (1.4.4 canary 191755). A negative control that never registers the observer fails the original positive assertion; it was then restored. Targeted types, lint, format and diff checks pass. The frozen evidence isui-rail-readiness-receipt.json. This is a test-readiness repair only: no product/runtime/timeout configuration changes, no weakened assertions.43173752610completed FAILURE. Complete REST inventory fore930f31df6f94d8b2b3cb3f11b4e59c07cf6cee2: 157 check runs = 92 success, 61 skipped, 1 neutral, 3 failed, 0 pending. Failures were the update-CLI and UI jobs above plus derivedci-gate(job131038667373). Dependency/security combined-status contexts succeeded; combinedci-gatefailed. Classification evidence is retained ine930-terminal-classification.jsonin the implementation work session. This remains prior-head failure evidence, not the new head's CI result; final-head results and qualified baseline attribution are recorded above.43175375747completed SUCCESS. Its durable review comment explicitly identifies reviewed heade930f31df6f94d8b2b3cb3f11b4e59c07cf6cee2, reports Findings: None, and finds no actionable code issue in patch quality. Its outcome was Ready for maintainer review, not a CI pass or merge receipt. The unchanged production change retains that review evidence; the final test-only delta has the fresh independent local review above. No additional hosted review was requested. The earlier local ClawSweeper process failed with exit 101/no verdict and remains historical evidence.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 a qualified build;OPENCLAW_GITHUB_TOOL_STAGE=base|fixselects expected declarations. Evidence and commands are retained in the implementation work session.Limits: synthetic provider, not real-model quality or live GitHub authentication/private-access proof. The task's own publication used the configured managed
roboclaw-bot; synthetic workload cases made no GitHub writes. No latency, token, billing or cache-performance claim. Matched captures reused audited byte-identical outputs with matching production-source signatures and preserved original producer metadata. The rejected CLI/agent-exec case remains stopped/unqualified; the independent browser fixture used its own canonical local owner and preserved attribution markers.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