Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 113 additions & 0 deletions src/inferrsi/knowledge/atoms/audit-vllm-kv-lifetimes.original.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
{
"authority": "checkout",
"metadata": {
"id": "audit-vllm-kv-lifetimes.original",
"kind": "knowledge",
"entrypoint": "guide.md",
"title": "Audit vLLM V1 asynchronous KV load/save completion, block retention, preemption, and receive-failure contracts when requests stall or blocks may be reused too early; requires a concrete connector trace.",
"origin": [
"external"
],
"sources": [
{
"type": "git",
"repo": "https://github.com/InferMatrixLab/InferRSI",
"commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf",
"path": "src/inferrsi/knowledge/data/skill_library/systems/engines/vllm/audit-vllm-kv-lifetimes/SKILL.md",
"sha256": "10f7ad0b6c04089fa32e9d08b2e0b45b159659ac0e42de8fb91eb19bfe07bb06"
},
{
"type": "git",
"url": "https://github.com/vllm-project/vllm",
"commit": "7f730b4cea9a66520a9200265928ebe016b48a39",
"paths": [
"vllm/distributed/kv_transfer/kv_connector/v1/base.py",
"vllm/v1/core/sched/scheduler.py"
],
"readset": "references/source-notes.md",
"revision_precision": "full"
}
],
"applicability": {
"scope": "Pinned vLLM V1 scheduler/connector ownership audit for asynchronous KV load/save completion, retained blocks, preemption and failed receives; concrete connector conformance is not established by the interface.",
"prerequisites": "A concrete connector and worker/model-runner call trace at identified revisions, with request/block events sufficient to compare actual callers against the pinned scheduler/interface contracts.",
"input_contract": "Engine/connector revision and class, producer/consumer roles, KV-group count/block namespace, failure policy, concurrent-batch and graph modes; correlate bounded request IDs with allocation, matched tokens, load/save events, receive failures, preemption, finish and pool return.",
"produced_artifact": "An ownership/event ledger and bounded contract-conformance report naming the earliest evidenced broken obligation, owner, affected requests/blocks and smallest missing observation, with a proposed targeted regression check.",
"failure_modes": "Equating reserved tokens with usable KV, finished responses with reusable blocks, or send completion with scheduler write-fence completion can hide unsafe reuse; missing failed-receive completion can leave waits unreleased.",
"refusal_point": "Escalate absent concrete caller evidence, ambiguous block namespaces, unsupported layouts or revision drift; stop before inferring a backend fix, freeing retained blocks or claiming a reproduced bug."
},
"state": "candidate",
"limitations": [
"Source-derived candidate; no local efficacy validation.",
"Checkout-only local skill; no automatic execution or promotion.",
"Only declared references are required; other cross-skill links are navigation.",
"Historical revisions require a matching checkout or a retained store."
],
"attribution": [
{
"type": "git",
"url": "https://github.com/vllm-project/vllm",
"commit": "7f730b4cea9a66520a9200265928ebe016b48a39",
"paths": [
"vllm/distributed/kv_transfer/kv_connector/v1/base.py",
"vllm/v1/core/sched/scheduler.py"
],
"readset": "references/source-notes.md"
}
],
"empirical_validation": "not_run",
"atom": {
"when": {},
"license": "Apache-2.0",
"permissions": {
"read": true,
"retain": true,
"redistribute": true
},
"layer": "L3",
"source_span": {
"source_index": 0,
"path": "src/inferrsi/knowledge/data/skill_library/systems/engines/vllm/audit-vllm-kv-lifetimes/SKILL.md",
"byte_range": [
0,
10174
],
"sha256": "10f7ad0b6c04089fa32e9d08b2e0b45b159659ac0e42de8fb91eb19bfe07bb06"
}
}
},
"content": {
"guide.md": {
"path": "engines/audit-vllm-kv-lifetimes.md"
}
},
"parts": {
"navigation": {
"skill_section": "navigation",
"layer": "L0",
"byte_range": [
0,
250
],
"sha256": "e702ce3f7a36931981174990b4501ed84e993cbe209b42931f85e8dd331d0527"
},
"decision": {
"skill_section": "decision",
"layer": "L1",
"byte_range": [
0,
3275
],
"sha256": "daa44826dc31ff55dcb1077efc35489cd216825122815459aec1c36288305cc7"
},
"procedure": {
"skill_section": "procedure",
"layer": "L2",
"byte_range": [
3275,
10174
],
"sha256": "3e80a22308594bf1ca2def93b5e71b08b4bb5b1914d542ceb633581309a46fa7"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"authority": "checkout",
"metadata": {
"origin": [
"external"
],
"applicability": {
"scope": "Pinned vLLM V1 scheduler/connector ownership audit for asynchronous KV load/save completion, retained blocks, preemption and failed receives; concrete connector conformance is not established by the interface.",
"prerequisites": "A concrete connector and worker/model-runner call trace at identified revisions, with request/block events sufficient to compare actual callers against the pinned scheduler/interface contracts.",
"input_contract": "Engine/connector revision and class, producer/consumer roles, KV-group count/block namespace, failure policy, concurrent-batch and graph modes; correlate bounded request IDs with allocation, matched tokens, load/save events, receive failures, preemption, finish and pool return.",
"produced_artifact": "An ownership/event ledger and bounded contract-conformance report naming the earliest evidenced broken obligation, owner, affected requests/blocks and smallest missing observation, with a proposed targeted regression check.",
"failure_modes": "Equating reserved tokens with usable KV, finished responses with reusable blocks, or send completion with scheduler write-fence completion can hide unsafe reuse; missing failed-receive completion can leave waits unreleased.",
"refusal_point": "Escalate absent concrete caller evidence, ambiguous block namespaces, unsupported layouts or revision drift; stop before inferring a backend fix, freeing retained blocks or claiming a reproduced bug."
},
"state": "candidate",
"limitations": [
"Source-derived candidate; no local efficacy validation.",
"Checkout-only local skill; no automatic execution or promotion.",
"Only declared references are required; other cross-skill links are navigation.",
"Historical revisions require a matching checkout or a retained store."
],
"empirical_validation": "not_run",
"title": "Source notes: vLLM KV lifetimes",
"attribution": [
{
"type": "git",
"url": "https://github.com/vllm-project/vllm",
"commit": "7f730b4cea9a66520a9200265928ebe016b48a39",
"paths": [
"vllm/distributed/kv_transfer/kv_connector/v1/base.py",
"vllm/v1/core/sched/scheduler.py"
],
"readset": "references/source-notes.md"
}
],
"sources": [
{
"type": "git",
"repo": "https://github.com/InferMatrixLab/InferRSI",
"commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf",
"path": "src/inferrsi/knowledge/data/skill_library/systems/engines/vllm/audit-vllm-kv-lifetimes/references/source-notes.md",
"sha256": "3665b034594fc8cc767c408002f4e16f8803369242405027c7f37ce6c9ecebe9"
},
{
"type": "git",
"url": "https://github.com/vllm-project/vllm",
"commit": "7f730b4cea9a66520a9200265928ebe016b48a39",
"paths": [
"vllm/distributed/kv_transfer/kv_connector/v1/base.py",
"vllm/v1/core/sched/scheduler.py"
],
"readset": "references/source-notes.md",
"revision_precision": "full"
}
],
"id": "audit-vllm-kv-lifetimes.source-notes",
"kind": "knowledge",
"entrypoint": "source-notes.md",
"atom": {
"when": {},
"license": "Apache-2.0",
"permissions": {
"read": true,
"retain": true,
"redistribute": true
},
"layer": "L3",
"source_span": {
"source_index": 0,
"path": "src/inferrsi/knowledge/data/skill_library/systems/engines/vllm/audit-vllm-kv-lifetimes/references/source-notes.md",
"byte_range": [
0,
13853
],
"sha256": "3665b034594fc8cc767c408002f4e16f8803369242405027c7f37ce6c9ecebe9"
}
}
},
"content": {
"source-notes.md": {
"path": "engines/audit-vllm-kv-lifetimes/references/source-notes.md"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"authority": "checkout",
"metadata": {
"origin": [
"external"
],
"applicability": {
"scope": "Pinned vLLM V1 branch-based diagnosis of queued requests, low scheduled-token counts and KV-pressure preemption, separating admission/token/input/allocation/connector-wait constraints.",
"prerequisites": "The deployed scheduler must be mapped to the pinned branches, with effective configuration and a bounded request/step trace; another revision requires re-establishing that correspondence.",
"input_contract": "Deployed revision, scheduler class/configuration, connector role, KV layout, policy and speculative/encoder/concurrent-batch features; per-step queues, tokens, both budgets, allocation results, victims, transfer/free state and timing.",
"produced_artifact": "A per-step accounting ledger, observed limiting branch and competing explanation, missing instrumentation and one conditional configuration/progress hypothesis with predicted effects and trade-offs.",
"failure_modes": "Inferring memory exhaustion from a queue or high KV usage, conflating token/input budgets, ignoring pending frees or reading async token accounting as load completion can attribute admission stalls to the wrong branch.",
"refusal_point": "When required state is missing, leave the diagnosis unresolved and request the smallest trace; escalate allocation or connector behavior outside the readset and stop before live mutation or performance claims."
},
"state": "candidate",
"limitations": [
"Source-derived candidate; no local efficacy validation.",
"Original typed source inventory is not normalized; retain source identities and limits in the procedure/readsets.",
"Checkout-only local skill; no automatic execution or promotion.",
"Only declared references are required; other cross-skill links are navigation.",
"Historical revisions require a matching checkout or a retained store."
],
"empirical_validation": "not_run",
"title": "FastServe exact source and readset",
"attribution": [],
"sources": [
{
"type": "git",
"repo": "https://github.com/InferMatrixLab/InferRSI",
"commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf",
"path": "src/inferrsi/knowledge/data/skill_library/systems/engines/vllm/diagnose-vllm-admission-pressure/references/papers-20261015/references/fastserve-readset.md",
"sha256": "9866bd0c78b2b638998b3b632f6bae26aef032462c81abee336d309af5b07831"
},
{
"type": "unknown",
"note": "Legacy provenance remains in procedure/readsets"
}
],
"id": "diagnose-vllm-admission-pressure.fastserve-readset",
"kind": "knowledge",
"entrypoint": "fastserve-readset.md",
"atom": {
"when": {},
"license": "Apache-2.0",
"permissions": {
"read": true,
"retain": true,
"redistribute": true
},
"layer": "L3",
"source_span": {
"source_index": 0,
"path": "src/inferrsi/knowledge/data/skill_library/systems/engines/vllm/diagnose-vllm-admission-pressure/references/papers-20261015/references/fastserve-readset.md",
"byte_range": [
0,
7173
],
"sha256": "9866bd0c78b2b638998b3b632f6bae26aef032462c81abee336d309af5b07831"
}
}
},
"content": {
"fastserve-readset.md": {
"path": "engines/diagnose-vllm-admission-pressure/references/papers-20261015/references/fastserve-readset.md"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"authority": "checkout",
"metadata": {
"origin": [
"external"
],
"applicability": {
"scope": "Pinned vLLM V1 branch-based diagnosis of queued requests, low scheduled-token counts and KV-pressure preemption, separating admission/token/input/allocation/connector-wait constraints.",
"prerequisites": "The deployed scheduler must be mapped to the pinned branches, with effective configuration and a bounded request/step trace; another revision requires re-establishing that correspondence.",
"input_contract": "Deployed revision, scheduler class/configuration, connector role, KV layout, policy and speculative/encoder/concurrent-batch features; per-step queues, tokens, both budgets, allocation results, victims, transfer/free state and timing.",
"produced_artifact": "A per-step accounting ledger, observed limiting branch and competing explanation, missing instrumentation and one conditional configuration/progress hypothesis with predicted effects and trade-offs.",
"failure_modes": "Inferring memory exhaustion from a queue or high KV usage, conflating token/input budgets, ignoring pending frees or reading async token accounting as load completion can attribute admission stalls to the wrong branch.",
"refusal_point": "When required state is missing, leave the diagnosis unresolved and request the smallest trace; escalate allocation or connector behavior outside the readset and stop before live mutation or performance claims."
},
"state": "candidate",
"limitations": [
"Source-derived candidate; no local efficacy validation.",
"Original typed source inventory is not normalized; retain source identities and limits in the procedure/readsets.",
"Checkout-only local skill; no automatic execution or promotion.",
"Only declared references are required; other cross-skill links are navigation.",
"Historical revisions require a matching checkout or a retained store."
],
"empirical_validation": "not_run",
"title": "FastServe: preemption must budget its suspended state",
"attribution": [],
"sources": [
{
"type": "git",
"repo": "https://github.com/InferMatrixLab/InferRSI",
"commit": "e2f3be102c66c358803ed2186ed67bf627ebcbdf",
"path": "src/inferrsi/knowledge/data/skill_library/systems/engines/vllm/diagnose-vllm-admission-pressure/references/papers-20261015/notes/fastserve.md",
"sha256": "9b4e275843000ef453d508d9c3c9c3f8ea1de5545fbd01d7abe74baa8a4931a7"
},
{
"type": "unknown",
"note": "Legacy provenance remains in procedure/readsets"
}
],
"id": "diagnose-vllm-admission-pressure.fastserve",
"kind": "knowledge",
"entrypoint": "fastserve.md",
"atom": {
"when": {},
"license": "Apache-2.0",
"permissions": {
"read": true,
"retain": true,
"redistribute": true
},
"layer": "L3",
"source_span": {
"source_index": 0,
"path": "src/inferrsi/knowledge/data/skill_library/systems/engines/vllm/diagnose-vllm-admission-pressure/references/papers-20261015/notes/fastserve.md",
"byte_range": [
0,
9289
],
"sha256": "9b4e275843000ef453d508d9c3c9c3f8ea1de5545fbd01d7abe74baa8a4931a7"
}
}
},
"content": {
"fastserve.md": {
"path": "engines/diagnose-vllm-admission-pressure/references/papers-20261015/notes/fastserve.md"
}
}
}
Loading
Loading