Skip to content

fix: pin acp-kernel 0.0.86 — count distillation default-off; deriveChildState carries image ledgers - #523

Merged
ranxianglei merged 1 commit into
masterfrom
2026-09-25_kernel-0.0.86
Sep 24, 2026
Merged

ranxianglei merged 1 commit into
masterfrom
2026-09-25_kernel-0.0.86

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

Fixes #522

What

1. Kernel pin 0.0.83 → 0.0.86

Bundles acp-kernel#379/#380:

  • tiers.tier2Trigger 5→1000 / tier3Trigger 10→2000 — the count path ("满5个块就蒸馏") is default-off; block count is not a need signal. Count distillations reclaimed ~nothing while rewriting the wire from the fold anchor onward — the prefix-cache sawtooth class (billion-context#1249).
  • The error terminater 看看为啥 #238 usage gate on count paths deleted — growth/token-mass stay the need signal, no percentage gates.
  • Crossing versions also brings: 0.0.84 image pre-compression + CCR + steering, 0.0.85 media-payload preservation + compress-schema widening.

2. Real bug found & fixed by the suite: deriveChildState dropped the image ledgers (#522)

Kernel 0.0.84 added imageFullRestored/imageShrinks to the state; deriveChildState enumerated fields manually and silently lost them → image_full on an inherited shrunk ref falsely refused. Fix: carry both (ref space is not re-issued on derive, so the records stay valid; the kernel's MUST-clear resetImageFullState applies only to ref-reissue resets).

3. Test updates

  • tests/t3-rewrite-guard.test.ts (tier3-rewrite rejection lacks the actionable tier-ready alternative #344): pins the hint MECHANISM with explicit low triggers (tier2Trigger: 3) — defaults are now count-off.
  • New tests/tier-ready-hint.test.ts: default triggers 1000/2000; tierReadyHint silent for 5 tier-1 / 9 tier-2 block handfuls under defaults; fires when explicitly configured low.

Verification

  • npm run typecheck clean
  • Full suite 929 tests / 926 pass / 0 fail (3 gated skips)
  • npm run build ✓ (dist inlines the kernel)

Sequence

acp-kernel 0.0.86 already live on npm — merge + next release carries everything.

…ildState carries image ledgers

- kernel 0.0.83 -> 0.0.86: bundles #379/#380 (tier2Trigger 5->1000,
  tier3Trigger 10->2000, #238 usage gate deleted) — count-triggered
  distillation is default-off; growth/token-mass stay the need signal.
  Fixes the prefix-cache sawtooth class (billion-context#1249).
- deriveChildState: carry imageFullRestored/imageShrinks from the parent
  (ref space is NOT re-issued on derive, so the ledgers stay valid for
  inherited content; kernel resetImageFullState applies only to
  ref-reissue resets). Without them image_full on an inherited shrunk ref
  falsely refused.
- t3-rewrite-guard #344 test pins the hint mechanism with explicit low
  triggers; new tier-ready-hint.test.ts asserts default-off silence.
@github-actions

Copy link
Copy Markdown
Contributor

📦 Built Extension Artifact

Branch: 2026-09-25_kernel-0.0.86 (430a27d)

Option A — Install from npm PR tag (recommended)

pi install npm:billion-context-pi@pr-523

Each push to this PR publishes a new version under the pr-523 npm tag.

Option B — Download artifact

  1. Download the artifact from the Actions run
  2. Extract the tarball and install:
tar xzf billion-context-pi-pr523.tgz
pi install ./package

This comment is automatically updated on each push.

@ranxianglei
ranxianglei merged commit 899849a into master Sep 24, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

deriveChildState drops kernel image ledgers (imageFullRestored/imageShrinks) — image_full falsely refuses inherited shrunk refs

1 participant