Repository navigation
fix: reduce repeated npm publication evidence requests - #195099
Merged
Merged
Conversation
Reuse authenticated raw evidence from the trusted preview while preserving strict local validation and fresh publication authority. Fall back to live verification on failed-job reruns without current-attempt preview evidence. Co-authored-by: RomneyDa <[email protected]>
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
Allocate the exact 613 added regression lines plus the 12-line comparison-base debt reported by CI 42459857594. Leave the shared baseline and reviewed production code unchanged. Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Retain public return-time validation and final load/consume/authorize authority checks. Exercise actual CLI boundaries and revocation in offline regression tests. Co-authored-by: RomneyDa <[email protected]>
This was referenced Nov 8, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 9, 2026
* fix: reduce repeated npm publication evidence requests Reuse authenticated raw evidence from the trusted preview while preserving strict local validation and fresh publication authority. Fall back to live verification on failed-job reruns without current-attempt preview evidence. Co-authored-by: RomneyDa <[email protected]> * fix: account for inherited test budget debt Allocate the exact 613 added regression lines plus the 12-line comparison-base debt reported by CI 42459857594. Leave the shared baseline and reviewed production code unchanged. Co-authored-by: RomneyDa <[email protected]> * fix: avoid double-counting upstream test allocation Co-authored-by: RomneyDa <[email protected]> * fix: defer duplicate CLI evidence authority check Retain public return-time validation and final load/consume/authorize authority checks. Exercise actual CLI boundaries and revocation in offline regression tests. Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: RomneyDa <[email protected]>
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
Reduces repeated acquisition of identical publication evidence for every prepared npm plugin. Trusted preview captures bounded raw evidence; consumers authenticate the exact-attempt carrier and rerun strict validators, not a cached authorization verdict.
User Impact and Boundaries
No change to published package bytes. Attempts, permissions, protected tooling refs, artifact metadata and final authority remain live checks. Only eligible completed job pages are replayed; historical nonterminal pages remain live. Failed-job reruns without a current-attempt preview retain live verification.
The latest change removes one redundant intermediate combined authority check only in private CLI orchestration. Public
authenticatePreparedNpmArtifactretains its return-time check. Successful load, consume and authorize retain final checks; load writes its evidence handoff only after final validation. Local consume staging files can be created before that check, as before; publication outputs cannot.Request Accounting — Measured vs Modeled
The saved trace records command argv, not response bodies, terminal states, redirects or wire requests. Eligibility and fallback are conditional; no defensible positive lower savings bound follows from that trace alone. Synthetic 51.6% savings with 900 extra job rows per child are not release measurements. Live end-to-end request measurement remains outstanding.
Scope
The original transport/workflow implementation adds 548 net production/workflow lines. The incremental CLI repair adds 12 net production lines (+18/−6). Regression allocation is now exactly 940 net lines: 613 original plus 327 for real CLI/package fixtures and final-boundary revocation coverage; shared scalar is unchanged.
No generic retries, quota orchestration, ClawHub changes, publication dispatch, candidate rebuild or qualification change. Adoption requires landing on main and selecting a new protected publisher-tooling revision. Do not backport to frozen candidate/qualification source; existing pinned tooling does not acquire this automatically.
Validation
36086af45e6908cec7ed336231835759ceebfb37: no P0–P2 findings, with unchanged local-staging behavior explicitly noted.4285ae64a08; exact-current-head checks remain required.Current head:
cbc9ecdd9e7bb77d601eab69f7c9d3771aa5acb5. Exact-head CI, Security Review and ClawSweeper remain required. Earlier OpenGrep/CodeQL failures need current-run attribution; old quota diagnostics do not establish their cause.