Skip to content

fix: usage-gate count-triggered tier nudges - #238

Merged
ranxianglei merged 1 commit into
masterfrom
fix/tier-count-usage-floor
Sep 9, 2026
Merged

fix: usage-gate count-triggered tier nudges#238
ranxianglei merged 1 commit into
masterfrom
fix/tier-count-usage-floor

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

Fixes #237

  • Gate the count paths of the growthReady tier branches behind nudge.minContextLimitPct — count-triggered T2/T3 distillation no longer fires below the usage band (was: any usage once 5 blocks exist).
  • Token-mass paths (t2Pen >= tier2Threshold, 1.5× threshold) stay ungated — crossing them is need by itself.
  • Idle reason now labels count-ready-but-gated tiers: ready: T2 8 blocks (count, usage-gated) — acp_status explains why nothing injected.
  • README documents the gate.

Production repro (session 01a07b3c, 2026-09-09 14:41): T2 nudge injected at 43% usage / 5872 pending tokens → model flailed → user saw repeated injections. With this gate the injection is suppressed; the mass still shows as usage-gated in status.

Tests: 2 new (#237) + full suite 631 pass; typecheck clean.

Count-based tier distillation (tier2Trigger/tier3Trigger) fired at any
usage once enough blocks accumulated. Below the nudge usage band there
is no need yet, and the injected suggestion made repetition-prone
models flail against the tier3-rewrite guard. Gate the count paths
behind nudge.minContextLimitPct (the same band the first-sight bypass
uses); token-mass paths (>= 1.5x threshold) stay ungated. The idle
reason now labels gated tiers as 'usage-gated' so acp_status explains
the silence.
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown

📦 Built Package Artifact

Branch: fix/tier-count-usage-floor (8f2a67d)

Option A — Install from npm PR tag (recommended)

In your adapter project:

npm install acp-kernel@pr-238

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

Option B — Download artifact

  1. Download the artifact from the Actions run
  2. Extract the tarball and install:
tar xzf acp-kernel-pr238.tgz
npm install ./package

This comment is automatically updated on each push.

@ranxianglei
ranxianglei merged commit 71f31ef into master Sep 9, 2026
3 of 4 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.

Count-based tier nudges (tier2Trigger/tier3Trigger) fire below the usage band

1 participant