Self-improving /loop runbook that weaves the ruvnet package fabric. Each tick ingests lane reports into the weaver ledger, refreshes the package graph, repo scans, open PRs and release checks, ranks a one-lane-per-repo queue, and dispatches up to 8 lanes that integrate, fix, land, create and publish packages behind hard gates. Use for ecosystem cross-integration, release-regression repair, open-PR triage, and autopilot package creation across ruvnet repos.
90%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Medium
Suggest reviewing before use
weaver (crate crates/ruvector-weaver, ADR-355) is the deterministic half
of the loop. It produces queue.json. LLM lanes consume it and report back
through weaver ledger record. The ledger is the loop's memory: shipped,
rejected, queued and in-flight pairs are never re-proposed, and hit rates
per signal type reweight the next ranking.
cd /home/ruvultra/projects/ruvector # or a dedicated worktree
git worktree add --detach ../wt-weaver-loop origin/main
cd ../wt-weaver-loop
cargo build --release -p ruvector-weaver
export W="$PWD/target/release/weaver --config-dir $PWD/config/weaver"
# work dir defaults to /data/scratch/weaver (graph.json, scan/, prs/, gates/, repos/, queue.json)
# LIVE ledger: /data/scratch/weaver/ledger.jsonl (override with WEAVER_LEDGER)--config-dir supplies weaver.toml and capabilities.toml. The live
ledger sits outside the repo, so recording an outcome never needs a PR. On
first use it is seeded from the in-repo snapshot
config/weaver/ledger.jsonl. To refresh that snapshot occasionally, run
ledger snapshot and open one small PR. To apply entries collected
elsewhere, run ledger import <file>; entries that are already present
are skipped.
weaver ledger record ... command its brief asked it to return
(outcome shipped|rejected|failed, PR URL, pkg@version, one-line reason,
--measure metric=value:unit@baseline for every measured delta). A lane
that ended without a report is recorded failed with the reason it
stopped. A research PR closed as REJECT is recorded rejected with its
verdict BEFORE it is closed.$W graph # npm maintainer:ruvnet + crates.io owner; 12 h HTTP cache
$W release # repo change / surface drop / open ranges per package
$W prs --all # open PRs per repo (add --checks for CI rollups)
$W resolve --top 15 # fresh installs + npm ls --all: invalid_resolution
$W scan <repos touched since last tick> # daily: $W scan --all$W queue --gate-top 20 writes queue.json: lanes (≤ 8, one
per repo), items (each with a self-contained brief), suppressed
(with the reason: ledger state, gate rejection, open PR already covering
it, PR no longer open), busy_repos.direct items first. queue.direct lists items the tick runs
itself, with no agent and no lane. Today the only kind is
infra:cancel-superseded: its brief holds the exact gh run cancel loop,
which only touches runs on loop-owned branches.queue.lanes:
in_progress first
($W ledger record --repo R --candidate C --subject S --kind K --signal SK --outcome in_progress)
so the repo stays busy and no later tick double-dispatches it;run_in_background: true,
isolation: "worktree" where the lane edits a repo), all lanes in one
message, with the concatenated brief of the lane's active + batched
items. Batched items are independent (distinct candidate, no shared
evidence file) and ship in the same PR / release.memory_store namespace weaver); re-arm with Monitor on the lane
agents plus a ScheduleWakeup safety net (1200-1800 s). Do not poll.weaver/<lane>-<topic> (or feat/weaver-*).
Those are the only branches whose superseded CI runs weaver ever cancels
([loop] owned_branch_prefixes).weaver prs also records each repo's queued and
in-progress run counts. A repo over max_active_runs_per_repo (default 20)
is listed in busy_repos as gha-saturated and gets no lane that tick.--outcome rejected --blocked-on <subject> (repeatable). The queue
re-opens it automatically once every blocker's latest entry is shipped.weaver prs records the
workflows already failing on each repo's default branch. Each brief lists
them, and the repo gets its own main_red hygiene item. Compare your PR
against that baseline; do not stall on failures that were already there.
Hanging (never-finishing) jobs are not detected; record those as ledger items.rejected: covered by #N).--measure. weaver readme <pkg> renders the measured
block; weaver readme --lint README.md must pass.create item may
create and publish a NEW npm name with no human approval, only when every
gate passes: gap evidence with file:line in a consumer, no near-duplicate
in the fabric, real implementation + passing tests
($W gate <name> --new --dir <pkg> --run-tests), non-empty tarball with a
working entrypoint and a clean leak scan, smoke import from the registry
after publish ($W gate <name> --consumer <repo>), README via
weaver readme, and the same lane wires the package into the consumer
(no orphans). Caps per tick/day are optional knobs in weaver.toml
(unset = unlimited).--consumer-package <pkg> to check a cycle from the
exact package that takes the dependency; without it, siblings published
from the candidate's own repo are ignored. Paths a package ships on purpose
go in [gate.leak_allow]. Leak paths the previous version already carried
are reported, and only NEW ones fail.$W gate <pkg> --dir <pkg dir>. It refuses (exit 2) on repository change,
sharp file/size/export drop, or open-ended ecosystem ranges, unless the
ledger holds --outcome override --subject release:<check>:<pkg> with a reason.$W vuln-evidence X --dir <consumer> --affected "<range>". It resolves
every installed copy (npm ls --all) and exits 2 when none falls inside
the affected range. A nested stale copy is a dependency bump in the parent
package, not an advisory against latest.gcloud secrets versions access latest --secret=NPM_TOKEN|CARGO_REGISTRY_TOKEN --project=cognitum-20260110 --account=ruv@ruv.net
only at publish time, piped into the publish command; never printed,
logged, or written to disk. npm unpublish is not available: gate first.mktemp -d (under its scratchpad or /data/scratch) and deletes ONLY that
dir, by its exact path, at the end. Never rm -rf a shared parent such as
/data/scratch, /tmp/* or another lane's worktree, and never use glob or
age-based sweeps. Two over-broad cleanups on 2026-11-05 removed other
lanes' work.git add <paths> only. Commits end with
Co-Authored-By: claude-flow <ruv@ruv.net>.jq '.lanes' /data/scratch/weaver/queue.json
jq -r '.items[] | select(.status=="active") | .brief' /data/scratch/weaver/queue.json
jq '.suppressed | group_by(.reason | split(":")[0]) | map({reason: .[0].reason | split(":")[0], n: length})' /data/scratch/weaver/queue.json
$W ledger show # history + hit rates + busy reposSignal types and work kinds: missing_package (404 import) -> replace, or
create when no capability covers it; undeclared_import / unused_declared
-> hygiene; stub_marker -> replace; security -> security; open_pr ->
land / close_with_ledger; release_regression -> release_fix. A rejection
whose reason is a heavy dependency tree is re-queued automatically once the
candidate ships a release under the size/dep bar in weaver.toml [gate].
weaver resolve installs the top packages fresh and runs npm ls --all.
It emits invalid_resolution for every dependency whose resolved version
breaks a declared range, and the lane goes to the consumer whose range won
hoisting (for example, metaharness ^2.5.6 beat ruvector ^4.1.0 for
@ruvector/ruvllm).
weaver release also emits fix_unreachable (a dependent's declared range
excludes the version carrying a shipped security fix in the ledger; queue a
bump) and zero_caret (a ^0.y / ~0.y range that already misses the
dep's current release, because 0.x carets act as pins).
weaver seo sets the portfolio metadata standard: homepage https://ruv.io,
canonical repository (with directory) and bugs, 8 to 20 taxonomy
keywords, and a description of at most 200 characters containing the
primary topic phrase. READMEs carry install / quick-start, a
"Works with / Used by" block built from REAL dependency edges, a ruv.io
footer and, for flagships, an animated flow SVG. Nothing in this layer adds
a dependency.
The taxonomy lives in config/weaver/topics.toml. Each topic carries its
measured demand. Brand and niche terms are legal keywords but never primary
topics.
$W seo demand --taxonomy --record # re-measure npm keyword totals + GitHub topic counts -> ledger seo:topic:<t>
$W seo audit --all [--smoke-stale] # -> /data/scratch/weaver/seo-audit.json + ranked table (downloads x issues)
$W seo baseline --inventory /data/scratch/weaver/seo/npm-inventory-2026-11-08.json \
--plan /data/scratch/weaver/seo/distribution-plan.md # -> seo/baseline.json (405 rows, unknowns explicit)
$W seo propose <pkg> | --repo owner/name | --all [--checkout <dir>] # exact diffs, nothing written
$W seo apply --repo owner/name --repo-level # gh repo edit: homepage + topics (replace, <= 20), read back
$W seo apply --repo owner/name --top 5 | --packages a,b # branch + PR with patch bumps; never publishesRules:
apply --repo-level writes a
seo:repo-settings ledger entry (outcome gated) holding the old
homepage, the old topics and the exact revert command BEFORE it runs
gh repo edit. After reading the values back it writes a second entry,
shipped or failed.apply. npm renders the tarball README, so package
metadata goes live only on a republish. Merge the PR, then publish through
the repo's documented release path and the ADR-355 release gates.
Stagger publishes at no more than about 10 per hour.npm view <pkg> version homepage keywords, npm view <pkg> readme | head,
then a clean install and import.hands_off_packages / hands_off_repos in topics.toml.
Another lane owns those, so apply refuses them. Hand the propose output
to the owning lane instead.seo-audit.json .stale_low_download gives one of:
refresh+republish (imports cleanly and has a real consumer),
fix+republish, a deprecate-candidate (import fails AND it has no consumer;
the owner deprecates with 2FA after a migration audit), or leave as-is.
Never deprecate on downloads or name alone.@ruvector/kge, @ruvector/rvf-mcp-server): measure cold
install against the pinned prior version and record it with
--measure cold_install_bytes=<n>:bytes@<prior>. A regression above 5%
is rejected.ruvnet/RuVector
4d5d066
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.