Repository navigation
Conversation
[bot] 🏷 (ai: vllm-qwen/qwen3.8-27b) Duplicate screening (查重): not a duplicate. Searched open+closed issues/PRs for the same fix/feature (anchor sidecar, deterministic anchor, verbatim index, preserve-on-distill, durable IDs across folds, the
Labeled the PR Now reviewing the diff against the PR Review 规范 (direction → regression → code → test validity → diff/code cleanliness) plus the Kernel Boundary (declaration, version discipline, two-layer tests). Full structured 8-question conclusion to follow. |
[bot] 🏷 (ai: vllm-qwen/qwen3.8-27b) Review of PR #7846 — kernel: opt-in deterministic anchor sidecarWhat I verified (evidence, not "should work"):
结构化八问(PR review)
Findings (for the author — not code bugs)
VerdictCode quality: high, mergeable on quality grounds. The tests have teeth (secret hygiene / idempotence / char caps / default-off byte-identity / MEDIA REFS coexistence / T2 carry-forward / refold carry-forward / empty input, plus root config valid+invalid+merge+apply). All Kernel Boundary requirements are met: However this is a kernel change = always human-only review (no auto-merge), and it is a new capability (not a bug fix) — whether to adopt it is the owner's call. Recommendation: author adds the "config surface" section (must-fix) + a source issue (suggested), then the owner decides on merge. |
… kernel version conflict The PR bumped acp-kernel 0.0.211->0.0.212; master independently advanced it to 0.0.214. The merged kernel carries master's 0.0.214 changes PLUS the PR's anchor-sidecar kernel/src changes, so the version resolves to 0.0.215 (next above master) per Kernel Boundary version discipline. Only the three version/lockfile files conflicted; the PR's 17-file feature diff is preserved byte-for-byte. Verified: kernel+root typecheck clean, kernel+pi-subagents build, anchor-sidecar 3/3 + compress-settings 44/44, config-surface/coverage/unused-exports/ architecture-docs/lifecycle-ledger/lock-sync all green.
(ai: vllm-qwen/qwen3.8-27b) Conflict resolved and pushed. PR #7846 was What conflicted and how I resolved it. Only three files conflicted — all kernel version/lockfile fields. The PR bumped Local verification (targeted, per local-testing discipline — the full-suite verdict is CI's job on the pushed head):
七问
Current state: head = Verdict: conflict cleared, CI running on the new head (0 failed so far). Nothing left for this run. |
… kernel version conflict (round 2) Master advanced 165 commits past the previous merge (4cad860), moving acp-kernel 0.0.214->0.0.217 (crush-removal ranxianglei#7966, mixed-tier auto-split ranxianglei#7959, eg_debug table ranxianglei#7976, release v0.1.218, ...). The PR head carried 0.0.215; the merged kernel = master's 0.0.217 + the PR's anchor-sidecar kernel/src changes, so the version resolves to 0.0.218 (next above master) per Kernel Boundary version discipline. Only the three version/lockfile files conflicted; the PR's 17-file feature diff is preserved byte-for-byte (git diff origin/master = exactly the feature, 758+/11-). Verified: kernel+root typecheck clean, kernel+pi-subagents build, anchor-sidecar 3/3 + compress-settings 44/44, config-surface/coverage/unused-exports/architecture-docs/ lifecycle-ledger/lock-sync all green.
(ai: vllm-qwen/qwen3.8-27b) [CI] Round 2 — master moved 165 commits past my round-1 merge; re-resolved the kernel version conflict, pushed, conflict cleared. This run I re-verified the live state first (not from memory): the PR head was my round-1 merge commit What changed since round 1: master's Conflict scope: only the same 3 version/lockfile files conflicted ( Verified before pushing: kernel typecheck clean (0.0.218), root typecheck clean, kernel + pi-subagents build, New head: 七问(中文,供人工 reviewer)
收工判定:冲突已解,PR 恢复 mergeable/blocked,CI 在跑。本轮为纯机械冲突解决,未触碰任何行为/配置/设计。 |
…ed blocks Adds an opt-in, pure-DAG deterministic anchor extractor (kernel/src/anchor-sidecar.ts) modeled on kernel/src/media-refs.ts (d126087), wired behind Config.anchorSidecar (default off) and exposed via compress.anchorSidecar (global -> provider -> model). Rebased cleanly as a single linear commit onto master (c18f6b7) with acp-kernel bumped 0.0.217 -> 0.0.218 and lockfiles synced.
4a3e094 to
f3dc437
Compare
… (close-object-guard was stale) The close-object-guard check ran on a pre-fix body snapshot (no closing reference) and failed. The PR body has since been updated to carry 'Closes ranxianglei#8007' at the top, which satisfies the guard's regex. A re-run of the failed job reuses the original event payload (stale body), so a fresh push is required to re-capture the current body. This commit changes no code — it exists only to re-trigger the check suite against the current body.
(ai: vllm-qwen/qwen3.8-27b) [CI] Round 3 — This run I re-verified the live state first (not from memory): the PR head had moved to Root cause of the red: the Why a re-run wasn't enough: I triggered Fix: I pushed a single code-free commit ( New head: 八问(中文,供人工 reviewer)
收工判定: |
Closes #8007
kernel-change: add opt-in
kernel/src/anchor-sidecar.ts(pure DAG leaf) andConfig.anchorSidecarwiring inkernel/src/compress.ts/kernel/src/types.ts/kernel/src/index.ts; bumpacp-kernelto0.0.218with synced lockfiles.Summary
kernel/src/anchor-sidecar.ts, zero cycles, depends only ontypes.ts) modeled onkernel/src/media-refs.ts(commitd126087ab).compress.anchorSidecar.enabledistrue, mechanically extracts verbatim file paths, error lines, and durable identifiers (filtering out secret-shaped tokens) from covered raw messages and carries them across T2 distillation and refolds under a boundedANCHORSsection (coexisting cleanly withMEDIA REFS).enabled: false), keeping default behavior byte-identical tomaster.compress.anchorSidecar(enabled,maxAnchors,maxSectionChars) acrossglobal -> provider -> modeland updates config docs vianode tools/gen-config-docs.mjs generate.Config surface
compress.anchorSidecar(optional object withenabled?: boolean,maxAnchors?: number,maxSectionChars?: number, default disabled) inside the existing three-levelcompresshierarchy (global -> providers[<key>].compress -> providers[<key>].models[<model>].compress), mirroring kernelConfig.anchorSidecar.compresscascade (parseCompressSettings/mergeCompress/applyCompressSettings, matchingreasoningGuard,priceProfile, andtierNudgeTokens); no new top-level section, env var, or CLI flag introduced.enabled: false, fold summaries and storage are byte-identical tomaster. Existing blocks without anANCHORSsection remain readable and interoperate cleanly when enabled later.Verification
f3dc43700) ontomaster(c18f6b7de, including0682f5beawhich fixes the 3eg_debugtable-count tests);acp-kernelbumped0.0.217 -> 0.0.218with idempotent root and kernel lockfiles.kernel/tests/anchor-sidecar.test.ts: 3/3 pass; fullnpm --prefix kernel testpasses.tests/compress-settings.test.ts: 44/44 pass.npm run typecheck,gen-config-docs generate(zero drift),gen-config-docs check-coverage,config-surface-guard,check-unused-exports,check-test-import-graph,check-architecture-docs,lifecycle-ledger-guard, andlock-syncall pass.