Repository navigation
Conversation
This branch has not been deployed
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.
Overview
Resolves #5 by implementing download-based proportional split weight suggestions for dependencies in the split architecture cascade.
Changes
Hamilton-Hare Largest Remainder Allocator (
allocateWeightsByDownloadsinfrontend/src/lib/manifest.ts):targetBps(default 9000, 90.00%) with zero rounding drift.minFloorBps(default 50 bps / 0.50%) when feasible, scaling down floor dynamically for large trees.equalWeights.Registry Download Fetchers:
fetchCrateDownloads(name): Querieshttps://crates.io/api/v1/crates/{name}->crate.downloads.fetchNpmDownloads(name): Querieshttps://api.npmjs.org/downloads/point/last-month/{name}->downloads.suggestDependencyWeights(deps, targetBps, minFloorBps): Queries download metrics in parallel across ecosystems.User Interface Integration (
frontend/src/pages/Cascades.tsx):Suggest weightsbutton in theSplit architecturesection header aside (next toEqualize).Unit Tests (
frontend/src/lib/__tests__/weights.test.ts):tsc -b.Closes #5.
Bounty Payout Wallet (TRC20 USDT / TRX):
TMqmJjRgVS21NL2eFtfyHciTxvE4BqGmEv