Skip to content

feat(workers): preserve repository authority during dispatch and recovery - #188656

Merged
roboclaw-bot merged 20 commits into
mainfrom
openclaw/p3a-repository-authority
Oct 31, 2026
Merged

roboclaw-bot merged 20 commits into
mainfrom
openclaw/p3a-repository-authority

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Optional repository policies need caller-bound admission throughout worker preparation, checkout, and authenticated recovery, whether placement begins from chat or session creation and regardless of GitHub credential type.

User Impact

Deployments opt in with gateway.repositoryIntegration. Missing or revoked admission refuses worker source access; omitting the integration preserves native behavior. Required repository placement retains the original session-creation caller after acknowledgment. Automatic required placement does not request setup scripts, consistent with its existing worktree behavior.

Native owners retain credential issuance, managed-profile reading/rotation, and cleanup. The feature introduces no schema or checkpoint-format migration; the integrated upstream base includes agent schema 39. Fresh installed schema-25→39 configuration/checkpoint preservation passed on the published source, using the maintained private runtime-package profile described below. This is offline checkpoint recovery, not worker reconnection or full release-distribution acceptance.

Why This Change Was Made

One lifetime-bound integration owner supplies policy; existing identity, dispatch, and worker owners enforce it. Managed PAT/OAuth profiles enter policy admission before refresh/profile reads without asking a plugin for their bearer. Native/App paths retain their issuer and guarded return value. Dispatch forwards the original reader; source owners compose caller, policy, and dispatch lifetime checks. The redundant reader wrapper was deleted.

Session creation passes its native caller-bound reader through an internal preparation option. Existing retention and source-custody owners retain post-acknowledgment work. No chat admission is fabricated, and no wire field or additional issuer is introduced. Host credential callbacks remain excluded from node transport.

Published head b062896364982a2838139025c0497d6e5bfb7712 has the exact source tree of tested candidate b4358540899f6cbad387b302ae7dd35b88179ede: 2b96a7360603b237e4d4b3facbaff778c25f3cdf. History is preserved, including exact main 510e1687e965c1a5e2c372f6622704c88448fb5b and #188922. The sole current-main conflict retains the canonical upstream logger. Reviewed fixture correction 1420553393074da1a7434cb06011be929d9a6032 preserves required shutdown joins and real connection-identity resolution. No guard, timeout, or test-line budget was relaxed; shared Workboard diagnostics credit is not duplicated.

Evidence

  • Published-source installed upgrade: the real v2026.10.9 baseline (8b18b5578f66eab1501cba4cef2310d88bfb9a41) produced the repository session and revision-3 checkpoint through actual dispatch/editor RPCs. Its preserved pre-Doctor snapshot was restored into an isolated copy with exact hashes and database integrity checks: agent schema 25, global schema 20. The genuine stable package was installed and its CLI version checked, then the exact b062 candidate installed over the same prefix/config/state with networking disabled. Installed doctor --fix --full-integrity-check --non-interactive created backups and migrated agent 25→39 and global 20→36. Both resulting database versions were independently read back.
  • Preservation oracles: Gateway, model, and plugin configuration remained equal; agent configuration differed only by the existing heartbeat migration, whose disabled job was verified through cron.list. All 14 plugins observed active in the baseline remained active through actual plugins.list RPC. Session identity and the exact repository/base/manifest/checkpoint reference and revision survived. With zero connected nodes and failed/offline placement, public sessions.files.get returned the original edited bytes, absent from the Git base. SHA-256 remained 823ca7b910bb25c9299516a968a823fb1b06f20a10cb685c33e2cd8ee66133cd. This proves stored-checkpoint preservation and offline reads, not active-worker recovery, reconnection, or move-to-Gateway behavior.
  • Package scope and integrity: the maintained packer built fresh with --runtime-only --bundle-plugin codex; no partial-build --skip-build was used. This private profile retains runtime CLI/Doctor, core plugins, configured Codex, and schema metadata while omitting SDK declaration promises and unrelated isolated external-plugin builds. Canonical inventory, normalization, and tarball-integrity checks passed. Installed build identity is 2026.10.9-b06289636498-2026-10-31T05-24-57.798Z; package manifest declares agent 39/global 36. Tarball SHA-256: 01d5ceead1f6955103033e3dbc04fd6e314c41017f7b721c2b7b68d5227451c7. Proof receipt SHA-256: 6084cc8b1d7ec77573948c86f28a955422e3ef91c158d3c83d1c06b5bbc3ec09. This is not complete release-distribution or SDK/declaration acceptance.
  • Isolation and recovery: public-registry preparation used task-owned caches and a separate dependency prefix. Actual stable/candidate installation, Doctor, Gateway, and RPC acceptance ran offline in disposable Node 24.22.1 containers with synthetic credentials and a TLS-validating local GitHub/Git fixture. An initial offline cache miss was retained, then the independently prepared cache was used for the complete offline install-over. The earlier full-distribution attempt timed out after 900 seconds. A later retained build lock was released only after documented descendant/namespace-custody verification; normal locking and signature/integrity checks remained enabled. All owned test containers and Gateway processes are stopped, build ownership released, and source checkouts clean. No live Gateway, shared dependency install, cloud allocation, or real credential setup was changed.
  • Current boundary proof: all five actual sessions.create controls and both diagnostic-enabled Workboard terminal hooks passed on b435, whose source tree exactly matches b062. The creation path exercises handleGatewayRequest → required preparation → coordinator → native dispatch/Git/checkpoint effects after the RPC ACK, plus revoked policy, changed caller scope, replaced source, and targeted controller Stop. This is in-process RPC proof, not WebSocket/model proof; Stop coverage uses the real controller owner, not public sessions.abort.
  • Startup CI repair: the exact failing compact-small20 group reproduced one failure, 47 passes, and one skip on pinned Bun. The fixture still expected early release before the intentional required-join repair in fix(gateway): preserve session state during slow shutdown #188920. Corrected assertions retain HTTP resources and keep rollback unsettled until cleanup is released. The same group then passed 48 tests with one existing skip. Restoring the old shutdown owner makes the new held-process assertion fail. Four shutdown controls also passed. After the perf(ui): shorten remote page loading waterfalls #188922 integration, all 12 startup and five creation tests passed together.
  • Handshake CI repair: compact-small2 exposed a fixture mock missing resolveRepositoryConnectionIdentity, causing actual hello to return UNAVAILABLE. The partial mock retains both native identity resolvers and mocks only remote enrichment. The original failure reproduced; all 54 handshake cases passed without weakening handshake/admission assertions. One broader ten-file replay produced 290 passes and a prewarm-cleanup timeout. Focused diagnostic and uninstrumented runs passed, but that timeout remains investigated and unexplained—not claimed fixed or flaky.
  • Independent review and static checks: local autoreview with Codex, P0–P2, reviewed the final two-file correction against c6ceb4ae6a44bf244e381e3006ed986778f6a3a3, with complete owning/caller context: scoped-clean, no actionable findings. Earlier complete RPC-correction review against 0f2cc377e276367afbb641f7c38dde1679459126 and prior feature reviews remain prior-cut evidence. Targeted typecheck, lint, formatting, normal commit hooks, and diff checks passed. Final b435 test-line ratchet passed: 6,323,662 lines against 6,353,478. Earlier schema generation/workflow validation remains source-bound prior proof. Source review is not CI approval.
  • Historical c6 upgrade retained: the separate full canonical c6 package previously passed integrity and actual agent-schema 25→38 installed configuration/checkpoint preservation. Its tarball SHA-256 is b0156d285bcbc8954252b1e3a28160cba0b7f329bb1ba71faa39b2dea6aa556a. That original evidence and state are unchanged; they are not relabeled as schema-39 proof.
  • Retained earlier proof: 28 managed/native dispatch, 17 required-profile, two Workboard, and four workflow-selection cases passed before the final RPC correction; earlier 24-case dispatch proof remains prior-cut evidence. Allocation, HTTP, tunnel transport, and policy fixtures are synthetic. The forwarding correction incorporates the image-lane proof.

The scoped installed-upgrade gate is complete. Exact-head hosted CI and native landing remain independently owned by the coordinating maintainer workflow; no CI waiver or merge is implied by this evidence update.

Source implementation by @galiniliev, extracted and adapted from 63fda88754e4b57b6893095c0dffc88a3ba1381f and the minimal required prerequisite slices. The original source branch was not changed.

Worked on by

Work sessions

roboclaw-bot and others added 3 commits October 30, 2026 19:44
…overy

Extract the optional repository integration prerequisite and carry current
caller authority through native App issuance, preparation, checkout and
authenticated redispatch. Keep cleanup with dispatch and preserve native
behavior when no integration is selected.

Co-authored-by: galiniliev <[email protected]>
Consume source credential capabilities in the host access owner before handing the ordinary prepared binding to node transport.

Co-authored-by: galiniliev <[email protected]>
…very

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 4abaa98c-2f3b-4712-af02-5afb8839a3bd
@clawsweeper

clawsweeper Bot commented Oct 30, 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 gateway Gateway runtime agents Agent runtime and tooling size: XL labels Oct 30, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 30, 2026 19:53
@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: b062896364982a2838139025c0497d6e5bfb7712
  • Maintainer: @roboclaw-bot
  • Repository role: maintain

These security sensitive changes were made:

  • src/agents/github-credential-reader.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/gateway/server/ws-connection/connect-session.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.

Carefully review these changes before merging.

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 30, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR adds an optional plugin contract that preserves caller-bound repository authority during worker preparation, checkout, and recovery.

Example: Repository access is revoked after checkpoint loading for example/project.

  • Before: Prepared checkout could continue without consulting the retained repository-policy guard.
  • After: The retained guard rejects the next workspace command before branch binding or checkpoint restoration.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful and source-reviewed, with repaired authority findings and meaningful worker-effect proof; upgrade compatibility remains unverified.
Proof confidence 🦐 gold shrimp (3/6) Sufficient (live_output): The supplied production-path harness exercises real local Git checkout, prepared branch binding, persisted checkpoint restoration, and loopback HTTP transfer with allowed, forbidden, and late-revoked controls; source inspection confirms both earlier guards are retained. This supports the authority repair, without claiming live GitHub or cloud qualification. The new configuration path still lacks the explicitly unclaimed latest-stable upgrade run; no stored-data incompatibility was demonstrated.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Deployments cannot carry an optional repository integration's current caller policy through worker preparation and authenticated recovery.
Reason: Maintainer authorship supplies direction approval, and the change keeps deployment-specific policy behind a generic, explicitly selected plugin contract.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep this useful, maintainer-authored PR open. The earlier authority findings are repaired, and no new actionable code defect was identified; GitHub currently reports a merge conflict.

Priority: P2
Reviewed head: 9fd01e1f6aad0c2b19f046acf6f975bf31e288d2

Before merge

  • Complete next step - Resolve GitHub's reported merge conflict while preserving the repository-authority repairs.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Tests

  • Missing end-to-end proof: Provide a latest-stable install-over upgrade showing preserved configuration and successful restoration of an existing repository checkpoint.
Agent review details

How this fits together

Authenticated Gateway requests supply caller and session authority to worker dispatch; the native GitHub issuer and workspace owners consume live policy guards while preparing repository-backed workers.

flowchart TD
A[Authenticated caller] --> B[Gateway dispatch admission]
B --> C[Selected repository integration]
C --> D[Native GitHub credential owner]
D --> E[Worker preparation and checkout]
C --> E
E --> F[Checkpoint restoration]
Loading

Technical review

Best possible solution:

Retain the existing credential and workspace owners, complete upgrade validation, and resolve the reported conflict without weakening live authority checks.

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

Current-main source lacks this optional worker admission seam; the supplied regressions document failures before the authority repairs, but no target code was executed during this review.

Is this the best way to solve the issue?

The bounded integration seam is appropriate: plugins own repository policy, while existing native owners retain signing keys, temporary-token cleanup, worker effects, and checkpoint persistence.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 87ff32dbf367.

Provenance checked

  • GitHub App issuance keeps the original intent (4579af0: Foreground repository-scoped App reads required caller admission and an explicit cleanup owner.)
  • Checkout identity admission keeps the original intent (cd53ad1: Unavailable configured identities must reject checkout instead of silently using anonymous Git.)
  • Prepared workspace authority keeps the original intent (b077d4e: Workspace transfers must stop when caller authority closes.)
  • Provider lifecycle keeps the original intent (b690de6: Keep provisioning and cleanup within existing environment lifecycle owners.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Galin Iliev: Raw commit 4579af0 adds src/agents/github-app-identity.ts:23 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4579af08ce8a; files: src/agents/github-app-identity.ts)
  • Peter Steinberger: Raw commit cd53ad1 adds src/gateway/worker-environments/repository-github-identity.ts:9 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: cd53ad130f42; files: src/gateway/worker-environments/repository-github-identity.ts)

PR surface

Source +801, Tests +866, Docs +29, Generated 0, Other +4. Total +1700 across 51 files. Added test files: 4.

View PR surface stats
Area Files Added Removed Net
Source 36 868 67 +801
Tests 10 938 72 +866
Docs 1 29 0 +29
Config 0 0 0 0
Generated 2 3 3 0
Other 2 4 0 +4
Total 51 1842 142 +1700

Review metrics

Metric Value Why it matters
Configuration surface 1 new optional selector gateway.repositoryIntegration explicitly selects a required plugin owner; omission preserves native selection.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: This is a bounded optional worker-integration capability with meaningful repository-access safeguards.
  • merge-risk: 🚨 compatibility: The maintainer-authorized change introduces a public plugin registration contract and an optional fail-closed configuration selector.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.

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 (2 earlier review cycles)
  • reviewed 2026-10-30T20:38:39.592Z sha cba98ba :: needs real behavior proof before merge. :: [P1] [P1] Carry repository-policy authority into the checkout guard | [P1] [P1] Retain prepared repository authority during workspace sync
  • reviewed 2026-10-30T21:18:53.692Z sha 9fd01e1 :: blocked before merge. :: none

Reviewed October 30, 2026, 5:27 PM ET / 21:27 UTC (Revision 3).

roboclaw-bot and others added 2 commits October 30, 2026 21:09
Keep the repository policy assertion in shared read identities and prepared workspace synchronization through checkpoint awaits and each worker command. Prove allowed, forbidden, and late-revoked cold and prepared flows with local Node execution, Git, and checkpoint transfer.

Co-authored-by: galiniliev <[email protected]>
Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: ca19bb5b-7413-420d-9ba1-46578e011f37
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Oct 30, 2026
roboclaw-bot and others added 3 commits October 30, 2026 22:44
Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: f39063e4-d5ac-484a-996c-378d1aed25ae
Integrate main without rewriting history and retain native credential results through policy admission.

Co-authored-by: galiniliev <[email protected]>
Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 405b9b26-cce1-43e7-9acb-93166b710d9c
@openclaw-barnacle openclaw-barnacle Bot reopened this Oct 31, 2026
roboclaw-bot and others added 9 commits October 31, 2026 00:51
Merge a32d79a and regenerate the canonical config baseline without changing the reviewed authority repairs.

Co-authored-by: galiniliev <[email protected]>
Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: c1d161ad-84f6-4784-bd5c-c779e8588775
Forward the native caller-bound reader through required placement without borrowing a chat scope. Keep automatic repository setup aligned with required-worker setup policy and repair the exact-head CI fixtures.

Co-authored-by: galiniliev <[email protected]>
Regenerate the config baseline on the combined source; retain the reviewed RPC admission fixes and landed prefix configuration.

Co-authored-by: galiniliev <[email protected]>
Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 72a91f97-2870-4d52-87e3-5f276658e867
Align startup rollback proof with required finalizer joins from #188920. Keep native repository connection and Enterprise identity resolution in the handshake fixture, mocking only remote enrichment. Preserve existing handshake and revocation assertions.

Co-authored-by: galiniliev <[email protected]>
Integrate main through #188922 (0a9f3a6) to repair the observed cron detail and settings Escape CI failures. No conflicts or repository-authority owner changes. This pinned integration does not include the later schema39 migration.

Co-authored-by: galiniliev <[email protected]>
Integrate exact main 510e168 without rewriting history. Retain the canonical upstream gateway logger for the sole conflict. The upstream agent schema39 migration requires fresh installed-upgrade qualification; prior c6/schema38 evidence remains historical.

Co-authored-by: galiniliev <[email protected]>
Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 5bbb8a2f-4466-4f58-9406-3c8b39e44b5f
@roboclaw-bot
roboclaw-bot merged commit a4b07c6 into main Oct 31, 2026
201 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/p3a-repository-authority branch October 31, 2026 05:41
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

roboclaw-bot added a commit that referenced this pull request Oct 31, 2026
Resolve the live startup-fixture conflict against main by adopting the
canonical required-shutdown-join test from #188656. Remove the task-only
startup synchronization variant rather than keeping duplicate coverage
of the superseded bounded-settlement contract.

Move three unchanged enrollment assertions to the existing fixture
support owner to retain the file-size gate after upstream #188671.
All 78 cases across the seven owning files pass on the resolved tree;
targeted type, type-aware lint, format, and test-line gates pass.
The optional node split prototype remains outside this publication.

Co-authored-by: galiniliev <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 1, 2026
…very (openclaw#188656)

* feat(workers): preserve repository authority through dispatch and recovery

Extract the optional repository integration prerequisite and carry current
caller authority through native App issuance, preparation, checkout and
authenticated redispatch. Keep cleanup with dispatch and preserve native
behavior when no integration is selected.

Co-authored-by: galiniliev <[email protected]>

* fix(workers): keep repository admission out of node transport

Consume source credential capabilities in the host access owner before handing the ordinary prepared binding to node transport.

Co-authored-by: galiniliev <[email protected]>

* feat(workers): preserve repository authority during dispatch and recovery

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 4abaa98c-2f3b-4712-af02-5afb8839a3bd

* test: preserve integration exports in dispatch fixture

Co-authored-by: galiniliev <[email protected]>

* fix(workers): stop checkout when repository access is revoked

Keep the repository policy assertion in shared read identities and prepared workspace synchronization through checkpoint awaits and each worker command. Prove allowed, forbidden, and late-revoked cold and prepared flows with local Node execution, Git, and checkpoint transfer.

Co-authored-by: galiniliev <[email protected]>

* Publish openclaw/p3a-repository-authority

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: ca19bb5b-7413-420d-9ba1-46578e011f37

* Publish openclaw/p3a-repository-authority

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: ab1916b4-e0cf-4992-a62f-13d94e27e2db

* Publish openclaw/p3a-repository-authority

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: f39063e4-d5ac-484a-996c-378d1aed25ae

* Publish openclaw/p3a-repository-authority

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 405b9b26-cce1-43e7-9acb-93166b710d9c

* Publish openclaw/p3a-repository-authority

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: c1d161ad-84f6-4784-bd5c-c779e8588775

* fix(workers): retain repository admission after session creation

Forward the native caller-bound reader through required placement without borrowing a chat scope. Keep automatic repository setup aligned with required-worker setup policy and repair the exact-head CI fixtures.

Co-authored-by: galiniliev <[email protected]>

* Publish openclaw/p3a-repository-authority

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 72a91f97-2870-4d52-87e3-5f276658e867

* fix(gateway): preserve native shutdown and identity fixture contracts

Align startup rollback proof with required finalizer joins from openclaw#188920. Keep native repository connection and Enterprise identity resolution in the handshake fixture, mocking only remote enrichment. Preserve existing handshake and revocation assertions.

Co-authored-by: galiniliev <[email protected]>

* Publish openclaw/p3a-repository-authority

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 5bbb8a2f-4466-4f58-9406-3c8b39e44b5f

---------

Co-authored-by: galiniliev <[email protected]>
wangmiao0668000666 added a commit to wangmiao0668000666/openclaw that referenced this pull request Nov 6, 2026
…urnal suite

The connect-session path now calls resolveRepositoryConnectionIdentity
(introduced on main by openclaw#188656), but the connect-journal test mocked
github-user-identity with a static factory that did not provide it, so the
call threw and the connect journal line was never written. Mock it to
undefined (the fixture configures no repository integration, which is what
the real implementation returns), keeping the connect path alive.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. security-sensitive-changed size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant