Repository navigation
fix(skippy): keep every concurrent session's exact-state entry past the hard cap #3098
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 56 commits
Commits
Show all changes
90 commits
Select commit
Hold shift + click to select a range
5e757b8
perf(skippy): reuse prompt prefixes without eager KV snapshots
i386 284ccb9
fix(skippy): report independent checkpoint RAM retention
i386 dfb5de0
docs: track reusable four-model KV validation jobs
i386 fc45513
fix(skippy): admit requests against the full KV pool
i386 2774f42
docs: cover admission and retained KV scaling in validation
i386 0ae5e10
feat(ggml): add indexed KV attention for validation
i386 493892c
docs(skippy): distinguish attention layout rounding from indexing
i386 52ee087
perf(ggml): bound indexed attention tuning and mask construction
i386 88c0e4a
test(skippy): add reusable four-model KV validation commands
i386 5e45c6a
test(skippy): drain snapshot fixture output while children run
i386 0f741cd
docs(skippy): record throughput parity and four-model CUDA validation
i386 d871b37
test(skippy): verify native checkpoint cold offload and restart
i386 5b50723
perf(ggml): route indexed decode through the vector attention kernel
jaredwy 0c4a0ca
feat(bench): add reusable fixed-work AgentX comparison campaigns
i386 31a0eb8
fix(skippy): enable resident prefix reuse with one lane
i386 83a052f
fix(bench): bind offline AgentX tokenizers to pinned snapshots
i386 25f3bb7
fix(bench): parse structured output independently of diagnostic redac…
i386 58dbff8
fix(skippy): admit queued requests until their actual deadline
i386 ae2b64f
fix(skippy): restore cooperative prefill and longest-prefix reuse
i386 1501768
fix(skippy): preserve upstream CUDA attention selection
i386 59c670b
test(skippy): verify large cold offload disk concurrency and restart
i386 85ff92f
fix(skippy): preserve standard attention arithmetic
i386 db52a30
fix(skippy): prevent cache restores waiting behind a partial wave
i386 623b524
fix(skippy): avoid waiting for an empty direct decode batch
i386 e3c43f6
perf(skippy): use upstream per-owner KV rows for attention
i386 4ae8c55
docs(skippy): record final row-attention gates and fleet policy
i386 e4ae069
fix(skippy): enforce shared prefix admission and evidence
i386 5be9a56
ci(agentx): admit the pinned upstream client environment
i386 3ea4eef
fix(skippy): preserve fair admission and native boundaries
i386 cfa7587
fix: address cache and AgentX review findings
i386 80a919d
perf(skippy): match llama.cpp decode on Metal and resume multi-turn c…
jaredwy 63602d8
perf(skippy): rebase the Metal decode work onto the new llama pin
jaredwy 73e7268
fix(skippy): restore multi-turn checkpoints and span nesting lost in …
jaredwy 2ab38ae
perf(skippy): place each request's share of a batch together in the K…
jaredwy 42005f4
feat(skippy): batch policy API, configurable sampling executor, revie…
jaredwy 2230468
test(skippy): add a concurrent wave to the cache reuse smoke
jaredwy c537fec
test(skippy): check row-list attention on the GPU for pooled list lay…
jaredwy ee8d792
fix(skippy): give the task pool test the source include path
jaredwy ea6de46
fix(skippy): keep every concurrent session's exact-state entry past t…
i386 e821ec3
fix(skippy): scale exact-state capture admission with the serving lan…
i386 2b25bb6
feat(xtask): reproducible parallel AgentX fleet benchmarks
i386 69f2785
feat(xtask): build AgentX fleet inputs from pinned source, move bytes…
i386 fbd6ae2
fix(xtask): build fleet inputs without sccache on fresh machines
i386 98ac0d7
fix(xtask): disable fleet in-job sccache through the build script's s…
i386 3acd8e8
fix(xtask): retry refused connections in the fleet smoke probe
i386 e06ea6a
fix(xtask): ship smoke serve logs as artifacts and stagger probe starts
i386 ec18faf
fix(xtask): gate fleet smoke probes on real server readiness
i386 943b8a0
fix(xtask): collect llama-server's companion libs from build/bin too
i386 9737f96
feat(xtask): decode-profile pass in the fleet smoke
i386 d5d7dcc
fix(skippy): make the hard byte cap enforce above the retention floor…
i386 625d2f4
feat(xtask): prefill chunk-size sweep in the fleet smoke
i386 b6dc1a4
feat(xtask): emit skippy stderr telemetry spans during the decode pro…
i386 381d3c9
fix(xtask): wait for serve processes to exit before starting the next
i386 56fab3a
fix(xtask): repair mangled skippy profile serve invocation
i386 d3d8b6d
feat(xtask): skippy no-cache profile pass to isolate prefill overhead
i386 06d0221
feat(xtask): nsys CUDA timeline profiling for prefill overhead isolation
i386 8b5e87b
Merge main 90286bb7 into skippy/metal-placement-batching
jaredwy 25770dc
fix(skippy): stop building native test targets no patch defines
jaredwy 738bef6
fix(skippy): keep compacted KV rows when their chunk had been released
jaredwy ec1fa11
fix(skippy): check every row-list entry before Metal reads a block fr…
jaredwy 275f71e
fix(skippy): keep a task pool helper within the limit of the run it s…
jaredwy 12de9dd
fix(skippy): apply the KV memory opt-outs to MSA, DSA-ISWA and DeepSe…
jaredwy 89c4a21
fix(skippy): end process tracing when the host exits, not when a mode…
jaredwy aa4bb28
fix(skippy): report native checkpoint bytes against the checkpoint bu…
jaredwy 470e81c
fix(skippy): release a discarded span's Tracy lane
jaredwy 837cb73
fix(skippy): read the current row-list attention layout in the KV matrix
jaredwy 76a06e5
docs(skippy): move the KV validation plan beside its README
jaredwy 46c314b
Merge main 152ecf5a into skippy/metal-placement-batching
michaelneale 1ec8152
fix: defer unpinned Qwen performance suites
i386 01eb926
ci: merge latest main into PR 3031
i386 7f54431
ci: declare the KV validation model list as a cache input and match m…
michaelneale ede388c
ci: stop requiring an eager kv-recurrent record from dense resident s…
michaelneale 8af030b
ci: expect resident prefixes for the hybrid model in the split smoke
michaelneale 3afad3e
Merge branch 'main' into skippy/metal-placement-batching
michaelneale b31d74b
chore: merge skippy/metal-placement-batching into fix/pr3031-prefix-r…
michaelneale d3c020a
fix(xtask): drop unused probe_url_range
michaelneale 7271922
fix(ci): review fleet-worker python probes, drop standalone probe scr…
michaelneale e8b3351
Merge origin/main into fix/pr3031-prefix-retention
michaelneale f5e1d2c
fix(skippy-serving): keep explicit exact budgets strict and floor per…
michaelneale aff032f
chore(agentx): split fleet launcher out of the prefix-retention fix
michaelneale 012de4e
fix(skippy): restore the hybrid checkpoint test from its page and rec…
michaelneale f8c9800
fix(skippy): record the patch queue digest after the hybrid checkpoin…
michaelneale 678d162
fix(skippy): recheck model content when file stamps fall inside the t…
michaelneale e6037b0
perf(skippy): defer batch synchronization to export time for CPU/GPU …
i386 6e88aea
Merge remote-tracking branch 'origin/main' into w3098
michaelneale 4e851c2
fix(skippy): address exact-state retention and runtime review findings
i386 9d69c02
Merge main into prefix retention
i386 e9c35db
Stabilize inference and cancellation tests on slow Windows runners
i386 e60fe81
fix(skippy): account for embeddings after the cleanup fence
i386 04164fc
Merge remote-tracking branch 'origin/main' into fix/pr3031-prefix-ret…
michaelneale File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| # agentx-fleet-bench | ||
|
|
||
| Reproduce AgentX llama-vs-skippy benchmarks across parallel fleet machines, driven by xtask, with | ||
| everything pinned and reviewable. | ||
|
|
||
| ## When to use this skill | ||
|
|
||
| - Run, reproduce, or harvest an AgentX comparison (llama vs skippy) or smoke probe across one or | ||
| more fleet machines. | ||
| - Diagnose a fleet benchmark run (bounced jobs, missing results, stranded evidence). | ||
| - Publish fleet benchmark results to MLflow or a PR. | ||
|
|
||
| ## Surface | ||
|
|
||
| All verbs live under `cargo xtool automation agentx`: | ||
|
|
||
| | Verb | Purpose | | ||
| |---|---| | ||
| | `pin` / `comparison` | Single-machine provenance pin and the 6-arm comparison (existing) | | ||
| | `fleet --input manifest.json` | Validate a manifest, pre-flight every kit URL, generate one jy spec per run, submit all in parallel, stamp a run-root | | ||
| | `fleet-status --run-root DIR` | Per-job status table for a run-root | | ||
| | `fleet-harvest --run-root DIR` | Fetch evidence for terminal jobs, extract matrices, print the results table | | ||
| | `mlflow-export` / `mlflow-publish` | Publication (existing) | | ||
|
|
||
| The fleet worker script is repo-owned at `skippy/evals/agentx/fleet-worker.sh` and embedded by | ||
| SHA; never edit a copy in a run directory. Models and the corpus are pinned by repo/rev/sha256 | ||
| in the manifest. The worker clones the product repository at the manifest commit, builds the | ||
| native runtime, skippy CLI and the unpatched llama-server baseline from pinned source, and | ||
| moves every result and evidence file through jy artifacts (the daemon uploads | ||
| $JIANYANG_ARTIFACT_DIR). There is no external object storage in the flow: distribution is by | ||
| git commits, evidence by jy artifacts. | ||
|
|
||
| ## Manifest | ||
|
|
||
| ```json | ||
| { | ||
| "campaign": "agentx-prNNNN-YYYYMMDD", | ||
| "product_source_commit": "<full40>", | ||
| "repo_url": "https://github.com/Mesh-LLM/mesh-llm", | ||
| "mode": "smoke", | ||
| "corpus": {"repo": "...", "rev": "...", "sha256": "64-hex"}, | ||
| "runs": [ | ||
| {"model": "qwen3.5-4b", "backend": "cuda", "probe": {"conversations": 4, "turns": 4, "block_chars": 6300}} | ||
| ] | ||
| } | ||
| ``` | ||
|
|
||
| Model references resolve to repo/rev/file/sha entries that live in | ||
| `skippy/evals/kv-validation/models.json` plus the manifest's per-run overrides. | ||
|
|
||
| ## Hard rules (learned expensively) | ||
|
|
||
| 1. **Placement is by hardware only.** Targets are `os: linux|macos` plus worker-side guards | ||
| (`NO_AARCH64_HOST`, memory floor for Metal). Never target nodes by name. | ||
| 2. **`jy result` returns nothing until a job TERMINATES.** A running job with no results is | ||
| healthy. Never cancel for missing results. | ||
| 3. **Artifacts ship only on clean worker exit.** For stranded evidence use the scavenge pattern: | ||
| a pinned-hardware job that tars the dead run dir into `$JIANYANG_ARTIFACT_DIR` and exits 0. | ||
| 4. **Guard-exits requeue; real errors diagnose.** `NO_PYTHON312`/`NO_AARCH64_HOST`/placement | ||
| bounces: `jy requeue <job>` (submit dedupes identical specs). Anything else: read | ||
| `jy logs <job> | tail -30` first. | ||
| 5. **`fleet` pre-flights the pinned commit** (`git ls-remote`) before submitting, and the | ||
| worker builds everything from that commit. Never distribute binaries through external object | ||
| storage: source pins + jy artifacts only. The historical CDN path-keyed negative-cache | ||
| (404s pinned for hours per URL path) is exactly why. | ||
| 6. **A/B experiments must target the intended budget knob.** `AGENTX_SKIPPY_PREFIX_CACHE_BUDGET` | ||
| (exact-state catalog cap) is distinct from `AGENTX_SKIPPY_PREFIX_CACHE_RAM` (resident | ||
| checkpoint RAM). | ||
| 7. The prefix-reuse regression probe is `skippy/evals/agentx/prefix-reuse-probe.py` (exit 1 on | ||
| any post-first-turn miss). | ||
| 8. `jy` sessions expire; empty CLI output means `jy login` and retry. | ||
| 9. Watch long runs with a paseo heartbeat that carries these rules; 10-minute cadence for smoke, | ||
| 30 for full campaigns. | ||
| 10. Harvest order: evidence -> results table -> PR comment -> MLflow publish, in that order. | ||
|
|
||
| ## Reading results | ||
|
|
||
| - Smoke reports per-turn `tok/s` and `cached%` plus a `steady_tok_s` summary per engine. Skippy | ||
| `cached%` should track llama's on every model; a gap with matching cache means decode-bound, a | ||
| gap with low cache means retention is still failing. | ||
| - Comparison campaigns interleave arms (`llama, skippy, skippy, llama, llama, skippy`) at | ||
| c1/c2/c4 with 69 requests and 18,713 verified output tokens per cell. Judge skippy by | ||
| `output_tok_s`, `cache_read_tokens.p50`, and `ttft.p50` per cell. | ||
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
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
18 changes: 18 additions & 0 deletions
18
.agents/skills/manage-ci/references/maintainer-decisions.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # Maintainer decisions | ||
|
|
||
| ## 2026-11-06: retain the external AgentX client | ||
|
|
||
| James directed: “we must make allowances for agentx.” This answered the proposal | ||
| to admit PR #2746's existing pinned upstream client and locked environment, | ||
| with setup using an installed Python 3.12 interpreter. | ||
|
|
||
| Source: [James's decision in Reviews](buzz://message?channel=97e27aa1-1281-4752-91a4-24ea085e1a62&id=31a7946c8680288d723e2831e22218e77d3d62c6732e87b70b24ed8605fd52b8). | ||
|
|
||
| The bounded owner is `skippy/evals/agentx/`: its exact upstream AgentX wheel, | ||
| dependency manifest, lock and setup invocation are registered in | ||
| `ci/python-tooling-policy.json`. Setup does not download an interpreter. | ||
| Campaign workers consume the prepared environment offline and verify its bytes. | ||
| This decision permits the external client dependency; it does not permit new | ||
| repository Python implementations or a general interpreter invocation bypass. | ||
| Changing the admitted inputs still requires updating their exact typed policy | ||
| and passing the policy's rejection tests and normal repository consistency gate. |
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.