Repository navigation
fix(sdk): clarify retired GitHub publication diagnostics - #169750
Conversation
Describe fail-fast publication methods accurately while retaining OAuth compatibility guidance. Add a coordinator warning regression; SQL and runtime ownership are unchanged. Follow-up to #169581.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR corrects warnings and migration documentation for retired GitHub publication methods. Example: Plugin publication-compat-diagnostic calls deferOrphanedRequests().
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR completes an owner-requested diagnostic follow-up that current main still needs; no actionable defect was found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherPlugin calls enter Gateway publication coordinators, which emit bounded SDK warnings and reject retired operations with replacement guidance. flowchart LR
A[Plugin caller] --> B[Publication coordinator]
B --> C[SDK warning helper]
C --> D[Deprecation warning]
B --> E[Migration error]
A --> F[Awaited replacement]
F --> G[Publication worker]
Technical reviewBest possible solution: Keep the existing fail-fast publication contract and provide accurate warnings and migration guidance. Do we have a high-confidence way to reproduce the issue? Source establishes the contradictory warning followed by rejection on current main; target code was not executed during this read-only review. Is this the best way to solve the issue? Using the existing helper's compatibility override fixes the diagnostic at its owner while preserving warning budgets, rejection behavior, and OAuth adapters. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 97775a426a35. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +13, Tests +23, Docs +4. Total +40 across 7 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label 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 HistoryReviewed October 12, 2026, 5:15 AM ET / 09:15 UTC (Revision 3). |
…9750) Retired GitHub publication methods warned that their legacy contract remained supported immediately before failing. Supply accurate migration diagnostics at all retired entry points and align compatibility registry and policy text, preserving the separate personal OAuth synchronous guarantee. Adds a coordinator regression for the failure, replacement warning, and per-plugin warning budget. SQL, worker ownership, authority, and API signatures are unchanged. Follow-up to openclaw#169581; triage of the 70 merged campaign PRs is recorded in openclaw#169750.
What Problem This Solves
Deprecated GitHub publication methods currently warn that their legacy contract remains supported, then immediately fail with migration guidance. This resolves the diagnostic follow-up from #169581 without restoring synchronous publication work.
User Impact
Plugin authors get an accurate warning and migration instructions. Publication methods still fail as before; personal OAuth cancellation and disconnection retain their existing synchronous compatibility behavior. No API signature, authorization, SQL, schema, retention, update, plugin-loading, or service-lifecycle change.
Why This Change Was Made
All thirteen retired publication entry points now supply the existing warning helper's compatibility description. The compatibility registry and migration policy distinguish these fail-fast methods from supported placement and OAuth adapters. One regression exercises the retired coordinator entry point and verifies both the warning text and its existing per-plugin budget.
Follow-up triage
Reviewed bodies and follow-up/limitations comments on all 70 merged
dbasync/PRs returned by the requested author/date query, checked current source, and compared open lanes. Repeated limitations are grouped below. a = small unowned fix; b = active owner; c = design/proof decision; resolved = already fixed.phasee4activation.phasee4.t1compat2; require deprecated-only reachability proof.t1cut-s8and related lanes.t1cut-s1-memory; prefer an isolated capability probe.t1compat2; no restored main-thread reads here.smallfold2work.phasee4; no competing native owner.phasee4,t1cut-*, and compatibility lanes.Evidence
git diff --check.src/gateway/github-publication.test.ts, through the existing coordinator fixture; passed in CI job114730622716. The new regression took 618 ms; its shard passed 24 tests in 24.62 seconds. Local execution of the changed test was deferred to CI under v6.64f11ced232c7; the branch now integrates that repair without a duplicate change.pnpm test test/scripts/type-suppression-inventory.test.ts --maxWorkers=1on the integrated head passed three cases and timed out on the full repository scan at 120 seconds (336.02 seconds command wall time). This is not a passing assertion replay; CI owns the completed proof. No new tests or timeouts were added.188a702238a7e8f79b91237acf8a8be00cb0f443, passed changed-owner tests, lint, source contracts/Knip, architecture/Madge, and ratchets, but failed on inherited nullable fixture-row dereferences insrc/config/sessions/session-entry-patch.authority.test.ts:41,56. Current main had the same file and nullable fixture contract; the first-turn PR had the same type failure. Fixed directly on main in684874efa1c52a113a63b1056e2349bd060bdd0dwith two row-matching assertions (format/lint passed), preserving the seeded and committed labels. Some remaining type jobs were cancelled, so no static success is claimed for them. Integrated this repair in head5503575db9f155b231b7922f357e2137377d402f.No SQL checks or reads were removed, so there are no newly accepted bookkeeping edges. No update cell applies. No SDK exports or signatures changed. LOC: production +16/−3 (net +13); tests +23/−0; docs +8/−4.