Skip to content

perf(release): reduce repeated plugin publication evidence requests - #196977

Merged
RomneyDa merged 8 commits into
mainfrom
openclaw/major-plugin-request-reduction
Nov 11, 2026
Merged

RomneyDa merged 8 commits into
mainfrom
openclaw/major-plugin-request-reduction

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Plugin publication repeatedly traverses the same authenticated release evidence graph for every package, consuming hundreds of GitHub requests per plugin in receipt-recovery releases.

User Impact

Release tooling uses substantially fewer GitHub requests without changing publication selection, artifact integrity checks, or the requirement for fresh authority at publication. No configuration changes or migrations are required.

Why This Change Was Made

Authenticate immutable graph selection once in the trusted preview, carry its request-bound projection in the existing authenticated evidence artifact, and refresh the complete distinct live dependency set at each consume/authorize boundary. Batch retained artifact metadata by producer using complete, paginated inventories. Public authentication helpers still authenticate the graph themselves; a caller-supplied projection is not authority.

Permissions, refs, branch comparisons, and current attempts are not cached authorization verdicts. Final authority runs after the last asynchronous dependency refresh and before successful output. Integration with main preserves its command request ceilings, quota admission, and transport accounting.

Evidence

Measured through real child-process CLI entry points with synthetic GitHub responses, counting both fetch and gh transport requests:

Flow Baseline consume + authorize Current consume + authorize Reduction
Receipt recovery 137 + 134 = 271 39 + 36 = 75 72.3% (3.6× fewer)
Ordinary 101 25 + 22 = 47 53.5% (2.15× fewer)

Current one-time preview costs after integration with main's quota check: recovery 115 requests; ordinary 52. Two consume/authorize pairs were executed; ordinary coverage uses two distinct packages. The 101-consumer figures printed by the test are extrapolations, not an executed 101-package release. Only the ordinary baseline total is verified; no baseline split is claimed. This is a substantial reduction, not a 10× result.

  • Final integrated source: 321 tests passed across 9 affected suites, including release summary/qualification consumers, prepared publication, evidence reuse, artifact digest, receipt recovery, and real CLI processes. The full successful run included the required unzip executable on PATH; an earlier run without that prerequisite failed archive setup and skipped two artifact tests.
  • CLI mutations reject revoked permission, moved publication ref, changed run attempt, changed/expired retained artifacts, incomplete inventory pagination, and changes after package download or during the final sweep. Complete two-page inventory succeeds. A forged public-helper projection is rejected.
  • Production/tooling-test typechecks, touched-file lint/format, test-line ratchet, and git diff --check passed. The integrated test-line allocation matches net growth with zero slack.
  • Initial local autoreview covered implementation commit 8fe42058db95dedd3c834135059b41b28990dc91. Independent review of the later graph-reuse cutover identified a public-helper projection shortcut; that was fixed, regression-tested, and independently rechecked with no remaining P0–P2 findings.
  • Fresh independent read-only review of the final integration against main ab65615dcae1 also found no P0–P2 issues. It checked fresh dependency/authority ordering, private-only projection reuse, async callers, quota/transport accounting, and the resolved fixture contract. These were narrative reviews, not a new canonical autoreview run; the latter is unavailable here (no Codex CLI or bound autoreview tool).

Scope, Simplification, and Remaining Cost

The author simplification pass retained the existing replay owner rather than adding a new cache or manager. It removes repeated semantic graph traversal from package CLI invocations; complete live dependency validation and public-helper authentication remain. Added code records the authenticated projection and performs the complete fresh dependency sweep and batched metadata validation.

The residual requests authenticate the preview carrier, refresh distinct producer runs and artifact inventories, verify/download the selected package, and recheck current publication authority. These are observed remaining costs, not a proven theoretical minimum. A further order-of-magnitude reduction would need additional workflow/API restructuring; this PR does not weaken freshness checks to claim it.

No release, deployment, PR merge, or configuration change is part of this work. Final-head CI is running for d6d23d9036701e01648e72d6c4511634c61d5f67; prior-head green checks are not final-head proof.

RomneyDa and others added 2 commits November 11, 2026 02:05
Preserve fresh final authority checks while avoiding repeated raw reads within each plugin publication command.

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 9cd8c21e-c290-4be4-bdb9-e5002e972904
@clawsweeper

clawsweeper Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: M labels Nov 11, 2026
RomneyDa and others added 2 commits November 11, 2026 02:16
Authenticate immutable selection once in trusted preview, then refresh the distinct live dependency inventory and current authority at each CLI publication boundary.

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 4dd91a52-993f-4788-9a2f-df8dc348c3de
RomneyDa and others added 4 commits November 11, 2026 02:27
The synthetic merge carries 203 net allocated lines. Reproduced the CI ratchet error on ea623840e4e8 and verified the exact-base check passes after correcting the grant.

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 179cd704-d42d-4dd8-9f2b-5725163cba12
Resolve the CLI fixture arguments with upstream quota admission and refresh the exact test-line allocation.

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 8298915f-db37-4b36-9228-2ddffd66b054
@RomneyDa
RomneyDa merged commit 282ac00 into main Nov 11, 2026
105 of 106 checks passed
@RomneyDa
RomneyDa deleted the openclaw/major-plugin-request-reduction branch November 11, 2026 02:35
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 11, 2026
…penclaw#196977)

* perf(release): share publication evidence acquisition reads

Preserve fresh final authority checks while avoiding repeated raw reads within each plugin publication command.

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

* perf(release): reduce repeated plugin publication evidence requests

OpenClaw-Publication: 9cd8c21e-c290-4be4-bdb9-e5002e972904

* perf(release): reuse authenticated publication graph

Authenticate immutable selection once in trusted preview, then refresh the distinct live dependency inventory and current authority at each CLI publication boundary.

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

* Publish openclaw/major-plugin-request-reduction

OpenClaw-Publication: 4dd91a52-993f-4788-9a2f-df8dc348c3de

* test(release): match publication proof allocation to CI base

The synthetic merge carries 203 net allocated lines. Reproduced the CI ratchet error on ea623840e4e8 and verified the exact-base check passes after correcting the grant.

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

* Publish openclaw/major-plugin-request-reduction

OpenClaw-Publication: 179cd704-d42d-4dd8-9f2b-5725163cba12

* Publish openclaw/major-plugin-request-reduction

OpenClaw-Publication: 8298915f-db37-4b36-9228-2ddffd66b054

---------

Co-authored-by: RomneyDa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scripts Repository scripts size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant