Repository navigation
Conversation
366345e to
eece55b
Compare
[bot] 🏷 PR #8145 Review —
|
|
CI note: the three red lanes are not from this PR. All three fail in the same test — The same test fails on master's own CI run at this PR's base commit ( Everything else is green on this PR (35 checks passing), including |
[bot] 🏷 (ai: vllm-qwen/qwen3.8-27b) Fixed the 3 red test lanes. They were an inherited master-level born-red, not introduced by this PR — confirmed against the live job log, not just the forwarded note. What was red: Root cause: the 2026-11-30 owner ruling renamed the wire-evidence table Fix (2 commits, pushed as final head
Verification (local, targeted): footprint test 2/2 green, this PR's own 中文结构化八问:
判定:3 个红分片已修,最终 head |
1 similar comment
[bot] 🏷 (ai: vllm-qwen/qwen3.8-27b) Fixed the 3 red test lanes. They were an inherited master-level born-red, not introduced by this PR — confirmed against the live job log, not just the forwarded note. What was red: Root cause: the 2026-11-30 owner ruling renamed the wire-evidence table Fix (2 commits, pushed as final head
Verification (local, targeted): footprint test 2/2 green, this PR's own 中文结构化八问:
判定:3 个红分片已修,最终 head |
a8a89be to
774fd3f
Compare
[bot] 🏷 Conflict resolved — PR rebased onto current master, new head The PR's base moved from
Local verification on the rebased head: Push: force-pushed to the fork branch (sanctioned for this conflict-rebase; verified no concurrent push first — the fork head was still my prior 八问(中文,供人工 reviewer):
判定:冲突已解决,新 head |
… state Review follow-up on ranxianglei#8145: the status payload the takeover decision used to read was kept in one closure variable, so two omp passes in flight at the same time could read each other's payload and decide on the wrong conversation — the very failure this gate exists to prevent (a wrong cancel overflows the session). The budget evidence is now read fresh on every omp pass, so nothing is shared between calls. The ownership probe keeps its own payload local, as before. The cost is one extra loopback status read on the compaction path; the benefit is that a concurrent pass can never be decided on another conversation's numbers. The "two conversations decide independently" case is now actually concurrent (both passes in flight together) and is named for what it does.
01424d7 to
f546a9d
Compare
… state Review follow-up on ranxianglei#8145: the status payload the takeover decision used to read was kept in one closure variable, so two omp passes in flight at the same time could read each other's payload and decide on the wrong conversation — the very failure this gate exists to prevent (a wrong cancel overflows the session). The budget evidence is now read fresh on every omp pass, so nothing is shared between calls. The ownership probe keeps its own payload local, as before. The cost is one extra loopback status read on the compaction path; the benefit is that a concurrent pass can never be decided on another conversation's numbers. The "two conversations decide independently" case is now actually concurrent (both passes in flight together) and is named for what it does.
|
Review follow-up — both review points addressed (head |
[bot] 🏷 Verified the live state independently — the conflict is gone, the head is healthy, and CI is running with no failures. I did not take the forwarded claims at face value; I checked the live sources:
Local verification on the new head State: no conflict, no red CI, head is healthy. The 13 in-progress shards are the authoritative full-suite verdict — I'll confirm green when they land, and if any shard goes red I'll fix it on the branch. No action needed from anyone right now. 八问(中文,供人工 reviewer):
判定:冲突已解决、无红 CI、新 head |
…r budget (ranxianglei#7060) The omp lane's session_before_compact cancel claims compaction ownership on carriage evidence alone. On this lane the host's own compaction is the only thing that rewrites the host's message array — bili folds the outbound wire view — so a cancel taken while bili's fold is NOT holding the conversation inside the window leaves the host with no compaction path at all: the history grows past the window and the session overflows. The takeover now needs a second kind of evidence: the proxy's own effective context for that conversation (contextTokens vs contextLimit on the status route) must still be inside the window. When it is not, the pass is released and the host owns that fold — the proxy reconciles the boundary on session_compact (ranxianglei#395), and a surviving native compaction is safe where a wrong cancel overflows the session. The pi lane is untouched: its fold rides the ACP tool round-trip, so its host-visible context follows the proxy's view. Missing numbers are not over budget — a release needs evidence, so an unmeasured session keeps today's behaviour.
sessionStorageStats doc comment still referenced the pre-rename table name; the table is egress_debug since the 2026-11-30 owner ruling. Comment-only, zero runtime impact. Small in-passing fix (owner policy 2026-10-01) found while fixing the footprint test red.
… state Review follow-up on ranxianglei#8145: the status payload the takeover decision used to read was kept in one closure variable, so two omp passes in flight at the same time could read each other's payload and decide on the wrong conversation — the very failure this gate exists to prevent (a wrong cancel overflows the session). The budget evidence is now read fresh on every omp pass, so nothing is shared between calls. The ownership probe keeps its own payload local, as before. The cost is one extra loopback status read on the compaction path; the benefit is that a concurrent pass can never be decided on another conversation's numbers. The "two conversations decide independently" case is now actually concurrent (both passes in flight together) and is named for what it does.
f546a9d to
64b6b6d
Compare
Summary
Fixes the tracked-session half of #7060 on the omp lane.
The omp lane cancels the host's auto compaction (
session_before_compact->{cancel:true}) whenever bili "owns" the conversation. Ownership today is carriage evidence only — the proxy answers for that conversation id. On the omp lane that is not enough:contextTokens(the effective, post-fold context it is serving) againstcontextLimit(the effective limit it resolved for that session).This PR adds the second kind of evidence to the omp takeover: bili's own view must still be inside the window. When it is not, the pass is released and the host owns that fold. The proxy reconciles the boundary on
session_compact(#395) — a surviving native compaction is safe, where a wrong cancel overflows the session (the principle the ownership gate next to it already states).The pi lane and every other host are untouched: pi's fold rides the ACP tool round-trip, so its host-visible context follows the proxy's view.
Difference from #7076
Complementary halves of the same issue — the two diffs do not overlap:
Both are needed to close #7060: #7076 alone leaves the tracked-session overflow untouched, and this PR alone leaves the unknown-session overflow untouched. They compose — with #7076's change applied, the omp lane probes the status route on every pass and this PR reads the budget evidence from that same route.
The two reads are kept separate on purpose. The ownership probe keeps its payload local to the probe, and the budget evidence is fetched fresh on every omp pass (see "Review follow-up" below): sharing one payload between passes would let two conversations in flight at the same time decide on each other's numbers — a wrong cancel is exactly the failure this gate exists to prevent. On the probe path that is two status reads per pass; on the omp identity-stamp fast path it is one (the budget evidence is the only read there).
This PR does not touch the identity-stamp fast path, so it stands alone on
masterand composes with #7076 in either merge order.Behaviour
contextTokens < contextLimit)contextTokens >= contextLimit)session_compactcontextTokens/contextLimitabsent)Tests
tests/issue7060-omp-takeover-degradation.test.ts(7 cases):auto_compaction_startannouncement, and repeated passes stay released;Locally green on this head:
npm run typecheck,npm run build,npm run check:unused-exports,npm run check:test-import-graph,tests/plugin-agent.test.ts(77 cases),tests/issue7060-omp-takeover-degradation.test.ts(7 cases) andtests/pi-msgids*.test.ts(26 cases — master also touchedsrc/agent/pi.ts).Review follow-up
The first review raised two points on the earlier head; both are addressed here:
Not in this PR
session_before_compact->{ compaction?: CompactionResult }); handing the host bili's own summary would fold the host's array instead of releasing the pass to the host's summarizer. That needs a proxy route producing a host-usable compaction result — the [PR] feat: fold before pi's cancelled auto-compaction (POST /__bili/plugin/compress) #6351 territory (POST /__bili/plugin/compress), not this PR.phase: "pre-first-request"for a conversation it has only heard a runtime-info report about. That is a weaker carriage signal than a carried session; tightening it belongs with [PR] fix(omp): identity register is NOT carriage evidence for compaction ownership #7076's carriage gate.Refs #7060, #7076.