Skip to content

feat: monitor upstream Gateway protocol changes nightly - #1692

Merged
RomneyDa merged 10 commits into
mainfrom
karkarl-upstream-gateway-protocol-monitor
Oct 22, 2026
Merged

RomneyDa merged 10 commits into
mainfrom
karkarl-upstream-gateway-protocol-monitor

Conversation

@karkarl

@karkarl karkarl commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Related sender: openclaw/openclaw#173567

What Problem This Solves

Windows needs to notice meaningful Gateway capability changes without opening a new implementation PR for each publication or nightly scan.

User Impact

The existing permanent tracker #1829, addressed by fixed issue number, shows focused investigations and existing work. Unchanged evidence stays quiet. Copilot starts with automatic PR creation disabled and is instructed to open at most one linked draft PR only after confirming missing production behavior. No automatic merge, runtime dependency pin, or live activation.

Why This Change Was Made

There is no tracker discovery by title, label or marker, and no automatic tracker creation. Copies cannot redirect the target; missing, closed or damaged #1829 requires restoring that issue. Markers only validate the editable section.

Publication notifications provide the fast path; nightly reconciliation is independent fallback. Candidate identity uses relevant family/schema contracts rather than daily package versions or broad commit hashes. Closed exact candidates remain acknowledged; exact monitor work, tasks, and linked PRs are reused. Prose-matched issues and PRs provide investigation context, not verified coverage or a reason to suppress investigation. A durable reservation prevents blind replay after uncertain task creation.

The write boundary rechecks immutable upstream main evidence, the integrity-checked schema artifact, and current Windows assessment. These authorize investigation only. Released package-source binding remains explicitly unverified. The current explicit family policy covers question-answer; other unknown surfaces remain visible backlog, not automatic defects.

Evidence

  • Public transport-boundary tests exercise the real collector/publisher/handoff, not private VM-injected helpers. They cover quiet repeat runs, closed-candidate deduplication, preserved human tracker text, existing work, one active task, uncertain responses, stalled work, and linked draft PRs.
  • Supplemental live proof records authenticated local collection and manual Copilot task creation. Sender dispatch returned HTTP 204. These do not prove receiver acceptance, the configured token, or effective App authority. No activation or secret change was performed.
  • Repairs the outstanding schema-diff finding for wire fields named description/title; task creation rejects non-default/read-only contexts and rechecks current candidate eligibility at the final effect.

Change Type

  • Feature
  • Refactor
  • Docs or instructions
  • Tests or validation
  • Chore or infrastructure

Scope

  • Permissions, privacy, or security
  • Tests, CI, or docs

Required proof pools

none: automation-only change, with no app UI, node command, or capacity-dependent custom product proof. Native build/shared/tray closeout is recorded below separately.

Validation

Current head: 07620a90286ad8b40918178056a770f9ad85bffd. Documentation-only follow-up: restored the existing drift-guard guide and added a 27-line operator note; removed the new monitor guide. The full PR now changes eight files with 27 documentation additions. All executable, workflow, policy and test bytes are unchanged from 43942215.

  • Local validate-agent-skills.ps1: passed (11 skills, 20 Markdown files).
  • Edited-document local link targets and git diff --check: passed.
  • Current-head Windows validate-docs.ps1 and validate-agent-skills.ps1: both passed in native CI. Local docs validation was blocked by its Windows-specific path-prefix check on macOS; the native result resolves that validation gap.
  • Ready for review after the documentation trim; the broader current-head CI and review gates remain pending, not merge-ready. No additional local native runtime rebuild requested for this prose-only follow-up. Prior runtime evidence below is explicitly revision-bound.

Prior implementation head 43942215407554c0db52ac7a4926b1e4de6b636a, exact tested tree 62eefe52df1adbdbcf8b7be52343a6fc684eefeb, secretless Azure native Windows normal.

Command Result
node --test .github/scripts/upstream-gateway-protocol.test.cjs .github/scripts/gateway-capabilities.test.cjs 54 passed, 0 failed/skipped; 69.80 s wall
./scripts/validate-docs.ps1 Passed: 65 Markdown files, 7 named proof pools; 10.47 s wall
./build.ps1 Blocked before compilation: .NET SDK and Windows SDK missing; WebView2 also undetected; 6.79 s wall
dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore Not executed locally; build prerequisites unavailable
dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore Not executed locally; build prerequisites unavailable
git diff --check Passed

Earlier setup-dev.ps1 -CheckOnly confirmed the required SDK/runtime gap, and authorized setup refused because winget was absent. The replacement host lacked the same prerequisites; the failed setup was not blindly repeated. No full local build success is claimed. All task-owned proof leases were released and read back.

The 43942215 hosted run completed with two WSL setup inactivity timeouts and a Tray UI testhost crash; its aggregate gate failed. Revocation recovery, core/CLI, tray/setup/integration and CodeQL passed. These are not the earlier Node-version installation failures. The failing owners are unchanged by this PR; causality has not been established by an exact-base reproduction. Current documentation-head CI is linked above. The following hosted results and ClawSweeper verdict are prior-head evidence at b9387409, not checks of the fixed-number follow-up.

Prior-head Build and Test finished: 11 successful jobs, 4 failed, 5 skipped. CodeQL passed. Hosted native results: Shared 4,676 passed/8 skipped, Connection 1,672/1, CLI 129 passed, Tray 4,474 passed, SetupEngine 2,425 passed/1 skipped, integration 55/3, dev-settings 31 passed, Functional UI 19 passed, Tray UI 509/33, accessibility 23 passed. This is prior-head hosted proof, not current-head CI or successful local closeout.

At b9387409, the three failed WSL E2E lanes and their aggregate gate were red because installation rejects Node 24.19.0 (requires 24.22.1+ or 26.12.1+). The exact tested main base showed the same setup/network failures; its revocation job was cancelled, so that lane has no exact-base terminal-failure comparison. A newer main run showed the same rejection in all three lanes. The PR does not change those installer/test owners. No CI reruns were requested.

Prior-head UI CI passed all seven ReasoningPicker cases. This does not establish a fix for the previous-head testhost crash: that artifact contains no exception code, stack, fault module or event record, and its cause remains unknown. No speculative UI change was made.

Completed ClawSweeper review binds prior head b9387409, confirms prior source findings repaired, and reports zero actionable source findings. It retains an authority-proof/security hold: overall/proof 1/6, patch quality 3/6. Actual service scope and revocation evidence remains required before merge; no bypass was demonstrated. Neither PR is merged, auto-merge is off, and automation remains inactive.

Real Behavior Proof

  • Environment: task-owned secretless native Windows through Azure Crabbox; no ambient credentials, managed identity, source sync or hydration.
  • Candidate: 43942215407554c0db52ac7a4926b1e4de6b636a, exact tree 62eefe52df1adbdbcf8b7be52343a6fc684eefeb.
  • Command: the two-file Node boundary suite above.
  • Causal negative control: restoring the prior b9387409 publisher made the copied-marker/title-change test fail with Permanent tracker identity missing or ambiguous; reconcile manually. Current bytes were restored and verified before the full suite.
  • Result at 43942215: 54 passed, 0 failed, 0 skipped. The new regressions prove fixed-number updates despite copied markers and title changes, no tracker creation, and no replacement writes for a closed or invalid pinned tracker. Existing prose-context and repeat-task regressions also pass. Existing exact-work, reservation, linked-PR, returned Copilot identity and authority regressions remain green.
  • Prior schema and Copilot-identity causal negatives remain valid evidence for those unchanged owners; they were not unnecessarily repeated.
  • Native proof run (Crabbox access may be required). Focused tests/docs passed; overall command exited 1 because the required build was prerequisite-blocked.
  • Screenshot/artifact links: N/A, no visual change.
  • Not verified: authenticated sender HTTP 204 plus receiver acceptance; effective installation scope/denial/revocation; actual configured Copilot token, task POST and agent disposition. The API flag suppresses automatic PR creation at task start, not an absolute guarantee about later agent behavior.

Security Impact

  • New permissions/capabilities: Yes, repository automation only; no Windows app permission.
  • Secrets/tokens: Yes, the existing Windows Copilot user token is limited to task API calls.
  • Network/tool execution: Yes, fixed GitHub/npm reads, issue writes and explicitly gated Agent tasks calls.
  • Data scope: Yes, source/test hashes and wiring evidence, not exported source contents.

Issue/tracker writes use the workflow token. Only task API calls use the Windows COPILOT_GITHUB_TOKEN, never the upstream App key. No automatic retry of a non-idempotent task POST; incomplete history and ambiguous state stop work. No contributor package/source code is executed during collection. The full nine-file P0-P3 source review completed scoped-clean; the subsequent three-file Copilot identity/coalescing follow-up also completed scoped-clean with full owner/test context. The related-work and fixed-number tracker follow-ups each completed full-context P0-P3 source review without actionable findings. The schema, Copilot identity, prose suppression and final-effect authority checks have public boundary regressions. This is source review, not live credential-boundary proof.

Compatibility and Migration

Backward compatible for installed clients: Yes. Config/environment change: Yes, opt-in automation activation. Runtime migration: No.

Merge the receiver first, inspect a manual report_only: true run, then explicitly configure:

  1. Windows Actions variable UPSTREAM_GATEWAY_MONITOR_ENABLED=true to permit writes. Unset by default; manual report-only defaults true.
  2. Windows COPILOT_GITHUB_TOKEN: user token with Agent tasks read/write, eligible Copilot Business/Enterprise user, repository/organization cloud-agent approval and budget. No issue-assignment fallback.
  3. Existing upstream ClawSweeper App installation: selected Windows repository with Contents write, retaining its existing upstream private-key secret. No App credential in receiver jobs.

Existing source-coverage reports stay explicitly unverified. Preserve tracker/candidate labels, identity markers, and bot-owned delimiters. Resolve uncertain reservations manually rather than deleting them to replay task creation. Nothing has been activated by this update.

Review Conversations

  • Accepted source findings repaired, regression-tested and confirmed by prior-head ClawSweeper review; fixed-number follow-up has a clean independent P0-P3 review.
  • Live credential/deployment proof remains owner-controlled and is not replaced by fixtures.

Track live main, npm Gateway sources and published schemas independently from CI. Queue durable review issues and verified Copilot implementation handoffs, with cumulative review baselines and explicit activation failures.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 2711e4e4-fdec-49db-8fe5-caf7f038d64c
@clawsweeper

clawsweeper Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

🦞👀
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.

@karkarl karkarl added status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. and removed status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. labels Oct 9, 2026
@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 9, 2026
@karkarl karkarl added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 9, 2026
@clawsweeper

clawsweeper Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex review: needs real behavior proof before merge.

What this changes

Adds publication-triggered and nightly Gateway monitoring with a permanent tracker, deduplicated candidates, and opt-in Copilot investigations.

Example: The published schema introduces question.resolve with operator.questions authorization.

  • Before: Offline client-versus-snapshot tests can remain green without drawing attention to the new capability.
  • After: The monitor records a question-answer investigation candidate and can start one investigation without automatically creating a PR.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Prior source findings are repaired; readiness remains held by the required authority evidence.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Maintainers can miss upstream Gateway capabilities while existing Windows snapshot tests continue passing.
Reason: Collaborator direction approves focused, opt-in investigations, while unchanged evidence, acknowledged candidates, and existing agent work avoid repeated tasks.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep open: this collaborator-approved monitoring capability is absent from main, the prior findings are repaired, and no new actionable source defect was identified.

Priority: P2
Reviewed head: b9387409a9004afc49c28aebece3a0c7eab0d832

Before merge

  • Add real behavior proof - Authority-chain proof required: show authorized task creation and rejection before the final effect for forbidden dispatches, revoked candidate eligibility, and revoked task credentials. The reported 52-test native run exercises real collector/publisher/handoff owners with replaced transports, including local eligibility rejection, but expressly leaves actual task POST and configured credential boundaries unverified. Supply redacted terminal output or logs; the inaccessible Crabbox artifact is a reviewer limitation, not an additional contributor defect. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Resolve security review attention item - No concrete bypass was found, but effective task-credential scope and revocation require final-effect verification.
  • Resolve merge risk - Before merge, establish that effective task authority stays within the selected repository and that credential revocation prevents task creation at GitHub's final effect.

Findings

None.

Tests

  • Missing end-to-end proof: The production handoff still needs authenticated task creation and denial/revocation evidence; the reported suppression regression includes a relevant pre-fix failure and post-fix pass.
Agent review details

How this fits together

GitHub Actions reads upstream GitHub/npm evidence and Windows source, produces observation artifacts, and optionally writes tracking issues and starts repository agent tasks.

flowchart TD
  A[Publication or nightly schedule] --> B[Collector]
  C[GitHub and npm evidence] --> B
  D[Windows source and policy] --> B
  B --> E[Observation artifacts]
  E --> F[Tracker and candidate reconciliation]
  F --> G[Gated agent task]
Loading

Technical review

Best possible solution:

Retain the focused monitor and opt-in gates, with final-effect authorization evidence established before merge.

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

This is a new monitoring capability rather than a current runtime bug; source inspection confirms main only has the offline drift guard.

Is this the best way to solve the issue?

The collaborator-approved separation of observation, deduplicated investigation, and conditional draft implementation is coherent, and the latest repair correctly leaves coverage judgments to the agent.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 1b4d325e4118.

Merge-risk options

Maintainer options:

  1. Verify the existing authority boundary (recommended)
    Supply allowed and forbidden final-effect evidence through the production handoff, including credential revocation, without adding a parallel authorization mechanism.
  2. Defer task creation
    Split task creation into later work if its effective credential boundary cannot yet be verified.

Provenance checked

  • Offline protocol regression checks keeps the original intent (c939e39: Provide deterministic, repository-contained checks for a reviewed protocol subset without network access.)
  • Drift-guide explanation changes intended behavior with a stated reason (c939e39: Document the static guard and manual upstream refresh; the rewrite explains why agreeing local inputs cannot independently discover upstream changes.)

Testing

Proof path: in-process harness.

Security

Needs attention: No concrete bypass was found, but effective task-credential scope and revocation require final-effect verification.

Evidence

What I checked:

  • Capability remains absent from main: The fetched main tree has no upstream Gateway monitor scripts or workflow; its existing drift guide describes deterministic offline checks. (docs/gateway-protocol-drift-guard.md:32, 1b4d325e4118)
  • Previous suppression finding repaired: The latest change removes prose matches from candidate and task blockers, passes them as investigation context, and refreshes that context after reservation. (.github/scripts/upstream-gateway-publish.cjs:207, b9387409a900)
  • Task authority checked before final effect: Handoff rejects non-default and report-only contexts, persists a reservation, then rereads candidate eligibility before the task POST; issue writes and task calls use separate credentials. (.github/scripts/upstream-gateway-publish.cjs:348, b9387409a900)
  • Reported validation and explicit proof limits: The full supplied body and re-review discussion report 52 passing boundary tests and a causal negative control for suppression, while explicitly leaving authenticated delivery, actual task POST, effective credential scope/revocation, and agent disposition unverified; the linked Crabbox artifact was inaccessible to this reviewer. (.github/scripts/upstream-gateway-protocol.test.cjs:508, b9387409a900)
  • Original offline contract preserved: The original drift-guard PR deliberately provided network-independent subset checks; this PR retains those tests and explains their upstream-discovery limitation. Historical blob lookup encountered the local partial-clone limit; the original rationale was verified through the PR and current-main blame. (docs/gateway-protocol-drift-guard.md:17, c939e3907546)
  • Earlier stacked work consolidated: The author explains that feat: report Windows capability gaps on Gateway publication #1694 was consolidated into this feature branch and was not merged into main. (3f25a2726ecf)

Labels

Label changes:

  • remove merge-risk: 🚨 automation: Current PR review merge-risk labels are merge-risk: 🚨 security-boundary.

Label justifications:

  • P2: Useful maintainer automation with no demonstrated urgent application regression.
  • merge-risk: 🚨 security-boundary: The workflow introduces credentialed agent-task creation whose effective repository scope and revocation boundary remain unverified.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

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

  • Add final-effect proof for forbidden dispatches and revoked candidate eligibility, and prove revoked task credentials prevent task creation.

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 (8 earlier review cycles)
  • reviewed 2026-10-09T23:10:41.728Z sha d90dee1 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-09T23:15:32.575Z sha d90dee1 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-09T23:43:48.181Z sha e667547 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-10T00:14:30.545Z sha e667547 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-10T00:33:00.234Z sha e667547 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-10T00:56:29.240Z sha e667547 :: needs changes before merge. :: [P2] Restrict annotation filtering to schema keyword objects
  • reviewed 2026-10-10T01:27:37.140Z sha e667547 :: needs real behavior proof before merge. :: [P2] Restrict annotation filtering to schema keyword objects
  • reviewed 2026-10-22T04:31:17.048Z sha 3c76e24 :: needs real behavior proof before merge. :: [P2] Let the investigation agent assess related-work coverage

Reviewed October 22, 2026, 1:06 AM ET / 05:06 UTC (Revision 9).

Use the existing COPILOT_GITHUB_TOKEN as requested. Reframe the drift guide around live nightly discovery versus local snapshot regression checks, removing stale verification claims and clarifying why unchanged fixtures cannot catch upstream changes.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 2711e4e4-fdec-49db-8fe5-caf7f038d64c
@karkarl karkarl removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 9, 2026
@karkarl
karkarl marked this pull request as ready for review October 10, 2026 00:11
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. label Oct 10, 2026
@karkarl
karkarl marked this pull request as draft October 10, 2026 00:19
@karkarl karkarl added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 10, 2026
Add exact publication verification, conservative local evidence assessment, persistent tracked gaps, and bounded existing-work-aware handoff.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 0e9789a8-ec09-45db-897e-b32c16d447ef
@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 10, 2026
@karkarl
karkarl added this pull request to stack #1695 October 10, 2026 01:12
@karkarl karkarl removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 10, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. 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 Oct 10, 2026
Retain honest partial main/schema/capability coverage, omit unverified released-source comparisons, and block implementation writes until independent source-to-artifact verification exists.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 0e9789a8-ec09-45db-897e-b32c16d447ef
@karkarl
karkarl marked this pull request as ready for review October 14, 2026 17:28
@clawsweeper

clawsweeper Bot commented Oct 14, 2026

Copy link
Copy Markdown

ClawSweeper reviews are opt-in for maintainers. If a review is required, finish the work and validation first, then comment @clawsweeper review. Please avoid repeated requests while a review is queued or running; agents should not request reviews automatically.

@karkarl

karkarl commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator Author

Global repo triage

Decision: HOLD_FOR_AUTHOR
Take confidence: 5%
Recommendation confidence: 99%
Effort: Small to medium
Risk: High

Reviewed exact head e667547ed24ce17b2db4d921fb20471a99c1f3fb. The PR is open, non-draft, cleanly mergeable, and all 43 reported checks are complete without failure.

Blocking findings

  1. P1: successful Copilot assignment is treated as failure. .github/scripts/upstream-gateway-publish.cjs requests and validates assignee login copilot-swe-agent[bot]. GitHub's REST issue representation in this repository returns the Coding Agent assignee as login Copilot (user id 198982749). After a successful assignment, the confirmation check therefore throws. Later runs can repeat the assignment path instead of recognizing the active handoff. Validate the returned Coding Agent identity used by the API, and cover it with a representative fixture.
  2. P2: schema comparison hides real wire fields whose names resemble annotations. schemaChanges() filters keys such as title, description, examples, and $comment without considering whether the key is inside a properties map. A real protocol field with one of those names is skipped, so the monitor can report no actionable delta for an actual wire-contract change. Filter annotation keys only in schema-keyword context, and add regression cases for these property names.

The schema finding was independently raised by both adversarial reviewers. The assignment finding was raised by one reviewer and independently confirmed against the live repository API. Canonical P0-P3 autoreview was unavailable because its engine returned HTTP 401, so that attempt is not counted as a clean review.

Required next action: fix both blockers and rerun the monitor test suite at the new exact head. No fixes, commits, branch changes, or pushes were made during this triage.

@karkarl karkarl added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 15, 2026
@karkarl
karkarl removed this pull request from stack #1695 October 15, 2026 22:58
@roboclaw-bot roboclaw-bot added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 22, 2026
roboclaw-bot and others added 2 commits October 22, 2026 04:07
Use a persistent tracker and focused candidates with no-auto-PR agent tasks. Reconcile existing work and durable reservations before task creation, revalidate current authority, and retain explicit source-evidence limits.

Co-authored-by: RomneyDa <[email protected]>
Recognize GitHub's returned Coding Agent principal in assignments, timeline history and PR ownership. Preserve closed-candidate reconciliation and document pending-run coalescing.

Co-authored-by: RomneyDa <[email protected]>
@roboclaw-bot

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

Please review exact head 3c76e24bae49fbfd0be682a063cb5a48fb3d620c. The approved architecture now uses one permanent tracker and focused, deduplicated candidates. Agent tasks are created with create_pull_request: false, not issue assignment; only confirmed missing behavior is instructed to produce a linked draft PR. Nothing is merged or activated.

Prior findings addressed: schema annotation filtering now preserves actual wire-field names; handoff rejects non-default/read-only contexts and rechecks current candidate eligibility before its final effect; existing Copilot work is recognized by the live returned account ID, not request-login spelling. Pending-run coalescing is documented.

Exact-tree native Windows proof: 51 tests passed with no failures/skips, docs passed, and restoring each old owner causally reproduced the schema and Copilot-identity defects. Full candidate and subsequent narrow follow-up both completed independent P0-P3 source review without actionable findings. The PR body records exact proof and limits: full build/Shared/Tray local closeout remains host-prerequisite-blocked, and real App delivery/task POST/agent disposition remain unverified owner-controlled activation checks. Please keep those distinct from source findings.

@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 22, 2026
Pass potential issue and PR overlap to the investigation agent as context instead of treating keyword matches as verified coverage. Preserve exact-work deduplication and refresh related references before task creation.

Co-authored-by: RomneyDa <[email protected]>
@roboclaw-bot

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

Please review exact head b9387409a9004afc49c28aebece3a0c7eab0d832. The P2 related-work suppression finding is repaired: prose matches are candidate/task context for the agent to assess, never blockers to investigation. Exact candidates, reservations, linked PRs, Copilot ownership and active-task deduplication remain intact.

Current-tree secretless native Windows proof: 52 passed, 0 failed, 0 skipped, plus docs validation. Restoring the previous publisher reproduced the reported defect through publish() (no candidate, expected candidate 2); restoring the fix passed candidate creation, refreshed references after reservation, closed-hint exclusion and repeat-task deduplication. Full-context independent P0-P3 review found no actionable findings in the three-file follow-up. Both PR bodies have been updated and read back.

Remaining limits are explicit, not waived: local full build/Shared/Tray remains SDK/runtime-prerequisite-blocked; previous-head hosted WSL failures match its exact main base, while the prior UI testhost crash remains unattributed because the archive lacks a fault code/stack. New-head hosted CI is separate evidence. Actual App dispatch, configured-token task POST, effective scope/revocation and agent disposition remain unverified owner-controlled checks; no merge or activation has occurred.

@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. and removed merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 22, 2026
@roboclaw-bot roboclaw-bot removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 22, 2026
@RomneyDa

RomneyDa commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Live dispatch and Copilot API proof (2026-10-22)

Scope: maintainer-authorized live integration checks using RomneyDa's existing gh user credential. This is partial live proof, not end-to-end deployment acceptance. No merge, package publication, secret change, activation-variable change, or source edit.

Exact heads:

Real behavior proof

  1. Executed the exact sender notifyPublications() implementation and its unchanged import, fetched from the sender SHA, on macOS / Node v26.9.0. A thin observer forwarded real fetch calls unchanged and recorded response statuses, not credentials. Replayed already-published @openclaw/[email protected] with its exact npm SHA512 integrity. Registry GET returned 200; exactly one POST to repos/openclaw/openclaw-windows-node/dispatches, event gateway-protocol-published, returned 204 at 08:54:01 UTC. GitHub request ID: FDE2:31EE37:61F3EA:6966BF:6AD9CF29. Sender exited 0 with accepted by GitHub; downstream validation is not awaited. No POST retry.
  2. Replayed that same six-field payload through the receiver's current-head CLI with GITHUB_EVENT_NAME=repository_dispatch and a local event JSON file, using real GitHub/npm reads. Collector exited 0. verifyInvestigation() then passed in 3468 ms, checking main ancestry, immutable tree and exact schema bytes; local head matched, dirty=false. Schema SHA256: 90d43d4fd014ad5cd8814c07676a43002624043695757462cec7a01e4797ec88. This is local replay, not GitHub workflow receipt. Declared source is the v2026.10.5 tag commit 1b58cb9a1b4f4353e1add63c8506db4d890962e8; package-source binding correctly remains unverified.
  3. The existing direct Agent tasks POSTs returned 201 Created, with create_pull_request: false, using the same user identity: sender task and receiver task. Both reached in_progress, with branch artifacts but no pull-request artifacts at observation. These prove user-token task creation, not monitor handoff or completed agent disposition. The earlier test-only tasks are separate from this live integration check.

Not verified / blocked

  • Receiver workflow is absent from main (contents API 404; workflow directory confirms absence). The Actions API reports zero repository_dispatch runs. HTTP 204 therefore does not establish receiver acceptance.
  • UPSTREAM_GATEWAY_MONITOR_ENABLED is unset. COPILOT_GITHUB_TOKEN secret metadata exists, but its value/effective permissions were not read or exercised. No fabricated default-branch context or bypass of the monitor's authority checks was used.
  • Actual ClawSweeper installation-token Contents grant, narrowed repository scope, out-of-scope denial and revocation remain unverified. A personal-token POST cannot prove those App boundaries.
  • Hosted report/artifact delivery, tracker/candidate reservation, configured-token task creation, deduplication and final agent disposition remain deployment checks. No claim of native Windows validation or all-green CI is added here.

Next deployment prerequisite: land the receiver on its default branch under separate merge authority, run report-only observation, then exercise the actual App sender and explicitly enabled receiver/configured Copilot token. Keep the deployment-proof hold until that chain is observed.

Task cleanup update

The sender cloud run completed successfully and its task is completed; no pull-request artifact was created. The receiver cloud run was canceled after the requester clarified that live integration, not independent suite reruns, was the desired scope. Both the run and task reached cancelled, with no pull-request artifact. A green cloud-run exit is not a test-count claim, and the canceled run is not test success. The direct HTTP 201 task-creation proof above remains valid; configured-token monitor handoff and candidate disposition remain unverified.

roboclaw-bot and others added 2 commits October 22, 2026 09:22
Address tracker #1829 directly instead of discovering or creating it by labels and markers. Preserve candidate deduplication and human notes; copied tracker markers cannot redirect or stop publication.

Co-authored-by: RomneyDa <[email protected]>
@RomneyDa RomneyDa added status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. and removed status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. labels Oct 22, 2026
@RomneyDa
RomneyDa merged commit f5978f0 into main Oct 22, 2026
28 of 30 checks passed
@RomneyDa
RomneyDa deleted the karkarl-upstream-gateway-protocol-monitor branch October 22, 2026 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. P2 Normal priority bug or improvement with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. 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.

4 participants