Repository navigation
perf(release): reduce repeated plugin publication evidence requests - #196977
Merged
Merged
Conversation
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
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
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
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
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]>
This was referenced Nov 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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.
unzipexecutable on PATH; an earlier run without that prerequisite failed archive setup and skipped two artifact tests.git diff --checkpassed. The integrated test-line allocation matches net growth with zero slack.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.ab65615dcae1also 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.