Skip to content

refactor(nextcloud-talk): consume canonical network opt-in - #164258

Merged
steipete merged 1 commit into
mainfrom
refactor/lg-config-nextcloud-network
Oct 4, 2026
Merged

steipete merged 1 commit into
mainfrom
refactor/lg-config-nextcloud-network

Conversation

@steipete

@steipete steipete commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Nextcloud Talk still passed whole account configurations into the SDK network helper, allowing message sends, reactions, bot preflight, and room lookup to read retired flat network aliases.

User Impact

These four runtime callers now consume only network.dangerouslyAllowPrivateNetwork, the documented setting. Existing Doctor retirement guidance remains the upgrade path for old aliases. Public SDK exports and their external-plugin compatibility contracts remain unchanged.

Why This Change Was Made

Configuration normalization belongs to Doctor. This follow-up to #163535 removes the remaining Nextcloud runtime alias reads. The existing config-threading test fixture gains the required config object; its assertions are unchanged. The requested rebase preserves main's newer URL normalization and message-body construction.

Update behavior: no state format, migration, updater, package version, or plugin compatibility floor changes. Maintainer-selected validation for this config-consumption cut is exact-head hosted CI; the previous package-floor limitation does not block this source change. No successful published-driver update cell is claimed.

Evidence

Production (src/** and extensions/**, excluding tests/support/fixtures): +12 / -4 / net +8. Four changed files, three production files. No new test cases.

git diff --check passes. Fresh independent Codex review is clean through P2 for 8db261cc40a8d870ee42f34dd8db0b3da6b79c4c. Exact-head CI passed all selected tests, types, lint, boundaries, and ratchets in 352 seconds from first job start to final completion. The changed-extension test job took 116 seconds, including setup. No new test cases or standalone test benchmark were added; no local tests/builds were run. Full paginated GitHub accounting confirms three production files at +12/-4/net +8.

@clawsweeper

clawsweeper Bot commented Oct 3, 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 channel: nextcloud-talk Channel integration: nextcloud-talk size: XS labels Oct 3, 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. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 3, 2026
@clawsweeper

clawsweeper Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 4, 2026, 4:12 AM ET / 08:12 UTC (Revision 3).

ClawSweeper review

What this changes

Nextcloud Talk’s messages, reactions, bot checks, and room lookups now use the documented nested private-network setting, with an existing test fixture updated accordingly.

Merge readiness

✅ Ready for maintainer review

The work remains necessary: current main still reads legacy aliases through the compatibility helper. No introduced defect was found, and the recorded validation choice resolves the previous updater-proof blocker.

Priority: P2
Reviewed head: 8db261cc40a8d870ee42f34dd8db0b3da6b79c4c

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, maintainable cleanup with no supported correctness finding and an explicit validation disposition.
Proof confidence 🌊 off-meta tidepool Not applicable: Repository State identifies a MEMBER-authored PR, so ordinary external-contributor proof is exempt. The changed owners feed a canonical boolean into the existing guarded HTTP path; exact-head CI is the recorded validation choice, and no live or updater success is claimed. No persisted-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Repository State identifies a MEMBER-authored PR, so ordinary external-contributor proof is exempt. The changed owners feed a canonical boolean into the existing guarded HTTP path; exact-head CI is the recorded validation choice, and no live or updater success is claimed. No persisted-data contract changes.
Evidence reviewed 8 items Pinned introduced change: The merge-base-to-head patch changes four policy arguments and adds config to one existing fixture; it does not change SDK exports, migrations, package requirements, or stored formats.
Work is still absent from main: Fetched main still passes the entire account configuration to the SDK helper for messages and reactions. The latest-release schema already declares the nested boolean and rejects unknown account keys; the requested runtime cleanup is distinct from that existing schema contract.
Canonical permission preserves the supported contract: The SDK helper ORs legacy and canonical object fields, whereas boolean false or undefined returns no private-network exemption. Account resolution supplies a required merged config object; the patch consumes its existing canonical field without introducing another policy owner.
Findings None None.
Security None None.

How this fits together

The Nextcloud Talk plugin turns resolved account configuration and channel operations into HTTP requests. Its network setting determines whether the shared request guard permits private server addresses.

flowchart TD
  A[Channel and account settings] --> B[Resolved account]
  C[Messages and channel lookups] --> D[Nextcloud HTTP request]
  B --> E[Canonical private-network permission]
  E --> F[Shared network guard]
  D --> F
  F --> G[Nextcloud server or blocked request]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +8, Tests +1. Total +9 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 3 12 4 +8
Tests 1 1 0 +1
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 13 4 +9

Review metrics

Metric Value Why it matters
Production versus test growth Production +12/-4, net +8; tests +1/-0 Production growth expands four existing calls to select the canonical field; the fixture change adds no cases or production seams.

Technical review

Best possible solution:

Keep canonical configuration authoritative in bundled callers while preserving public SDK compatibility and Doctor’s documented retirement recovery.

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

Yes, at source level: main’s whole-config calls reach an SDK helper that ORs legacy true with canonical false. No runtime reproduction was executed.

Is this the best way to solve the issue?

Yes. Selecting the existing canonical boolean at bundled callers removes the competing compatibility read while preserving the external SDK contract and migration owner.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded configuration-consumption cleanup without evidence of an urgent new user-facing regression.
  • merge-risk: 🚨 compatibility: Alias-only private-server requests lose their runtime exemption; the recorded cutover retains the already-documented intermediate-Doctor recovery policy.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Repository State identifies a MEMBER-authored PR, so ordinary external-contributor proof is exempt. The changed owners feed a canonical boolean into the existing guarded HTTP path; exact-head CI is the recorded validation choice, and no live or updater success is claimed. No persisted-data contract changes.

Evidence

What I checked:

  • Pinned introduced change: The merge-base-to-head patch changes four policy arguments and adds config to one existing fixture; it does not change SDK exports, migrations, package requirements, or stored formats. (extensions/nextcloud-talk/src/send.ts:119, 8db261cc40a8)
  • Work is still absent from main: Fetched main still passes the entire account configuration to the SDK helper for messages and reactions. The latest-release schema already declares the nested boolean and rejects unknown account keys; the requested runtime cleanup is distinct from that existing schema contract. (extensions/nextcloud-talk/src/send.ts:119, a6b9da2bdeee)
  • Canonical permission preserves the supported contract: The SDK helper ORs legacy and canonical object fields, whereas boolean false or undefined returns no private-network exemption. Account resolution supplies a required merged config object; the patch consumes its existing canonical field without introducing another policy owner. (src/plugin-sdk/ssrf-policy.ts:35, 8db261cc40a8)
  • Existing retirement and recovery contract: Doctor already detects Nextcloud Talk's flat key at root and account scopes, preserves the input, and directs users through an intermediate release. Current documentation identifies that retirement and the canonical replacement. This PR leaves that recovery owner unchanged. (src/commands/doctor/shared/retired-config-formats.ts:135, 8db261cc40a8)
  • Prior review disposition and accepted tradeoff: The captured current body explicitly selects exact-head hosted CI for this source-consumption cut and says the existing package-floor limitation does not block it; it claims no successful published-driver cell. Repository State identifies the author as MEMBER. The earlier rank-up request concerned updater activation, but this patch changes neither updater inputs nor migration or package contracts. Retired alias-only private-server configurations must still follow the documented intermediate-Doctor route. (8db261cc40a8)
  • Related merged work excludes this follow-up: refactor(channels): require canonical private-network settings #163535 is merged at f81a777. Its full body explicitly separates Nextcloud Talk from the Matrix, Mattermost, and Tlon cleanup; its successful three-channel update evidence does not prove this PR. (f81a7777f7d6)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Masato Hoshino: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-03T10:52:58.385Z sha 5d8c549 :: blocked before merge. :: none
  • reviewed 2026-10-03T10:59:37.013Z sha 5d8c549 :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Oct 3, 2026
@steipete
steipete force-pushed the refactor/lg-config-nextcloud-network branch from 5d8c549 to 8db261c Compare October 4, 2026 08:06
@steipete
steipete marked this pull request as ready for review October 4, 2026 08:06
@steipete
steipete enabled auto-merge (squash) October 4, 2026 08:07
@steipete
steipete merged commit 86e3f23 into main Oct 4, 2026
170 of 172 checks passed
@steipete
steipete deleted the refactor/lg-config-nextcloud-network branch October 4, 2026 08:13
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: nextcloud-talk Channel integration: nextcloud-talk merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant