instar 1.3.346 → 1.3.347
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/server.d.ts.map +1 -1
- package/dist/commands/server.js +3 -1
- package/dist/commands/server.js.map +1 -1
- package/dist/monitoring/RateLimitSentinel.d.ts +5 -2
- package/dist/monitoring/RateLimitSentinel.d.ts.map +1 -1
- package/dist/monitoring/RateLimitSentinel.js.map +1 -1
- package/dist/monitoring/sentinelWiring.d.ts +13 -4
- package/dist/monitoring/sentinelWiring.d.ts.map +1 -1
- package/dist/monitoring/sentinelWiring.js +10 -8
- package/dist/monitoring/sentinelWiring.js.map +1 -1
- package/package.json +1 -1
- package/src/data/builtin-manifest.json +2 -2
- package/upgrades/1.3.347.md +76 -0
- package/upgrades/rate-limit-resume-nudge-internal-channel.eli16.md +35 -0
- package/upgrades/side-effects/rate-limit-resume-nudge-internal-channel.md +102 -0
- package/upgrades/1.3.346.md +0 -57
|
@@ -67,8 +67,11 @@ export interface RateLimitRecoveryState {
|
|
|
67
67
|
}
|
|
68
68
|
export interface RateLimitSentinelDeps {
|
|
69
69
|
/**
|
|
70
|
-
* Inject a NEUTRAL "continue" nudge into the session
|
|
71
|
-
*
|
|
70
|
+
* Inject a NEUTRAL "continue" nudge into the session via the INTERNAL
|
|
71
|
+
* recovery channel — never a `[telegram:N]`-prefixed user-message path. The
|
|
72
|
+
* prefix would make the agent answer the nudge as if it came from the user
|
|
73
|
+
* and relay that reply, contradicting the throttle notices (incoherence
|
|
74
|
+
* incident 2026-06-05). Returns whether the injection was accepted.
|
|
72
75
|
* Must NOT reuse the compaction-resume payload.
|
|
73
76
|
*/
|
|
74
77
|
resumeFn: (sessionName: string) => Promise<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RateLimitSentinel.d.ts","sourceRoot":"","sources":["../../src/monitoring/RateLimitSentinel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;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IAAI,CAAC;YACtC,MAAM,MAAM,GAAG,OAAO;iBACnB,GAAG,CAAC,CAAC,CAAC,EAAE;gBACP,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;gBAChC,MAAM,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;gBAC7B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,OAAO,EAAE,CAAC;YAC1D,CAAC,CAAC;iBACD,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;YACxC,OAAO,MAAM,CAAC;QAChB,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;CACF"}
|
|
@@ -134,9 +134,17 @@ export type RecoveryReachKind = 'recovery-reached' | 'recovery-unreachable';
|
|
|
134
134
|
export declare const RATE_LIMIT_RESUME_NUDGE = "The temporary server throttle should have cleared \u2014 please continue where you left off.";
|
|
135
135
|
export interface RateLimitRecoverySurface {
|
|
136
136
|
isSessionAlive(sessionName: string): boolean;
|
|
137
|
-
/**
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
/**
|
|
138
|
+
* Trusted internal nudge that bypasses the topic-prefix requirement.
|
|
139
|
+
*
|
|
140
|
+
* This is the ONLY channel the resume nudge is allowed to use. The resume
|
|
141
|
+
* nudge is infrastructure poking the session to continue — it is NOT a user
|
|
142
|
+
* message, so it must never carry a `[telegram:N]` prefix. A telegram-prefixed
|
|
143
|
+
* nudge is byte-indistinguishable from a real message from the user, which
|
|
144
|
+
* makes the agent answer it ("no throttle on my end") and relay that denial
|
|
145
|
+
* back to the topic, contradicting the sentinel's own throttle notices.
|
|
146
|
+
* (Incoherence incident 2026-06-05.)
|
|
147
|
+
*/
|
|
140
148
|
injectInternalNudge(sessionName: string, text: string): boolean;
|
|
141
149
|
getTopicForSession(sessionName: string): number | null | undefined;
|
|
142
150
|
/** The always-available system topic; null during initial setup. */
|
|
@@ -149,7 +157,8 @@ export interface RateLimitRecoverySurface {
|
|
|
149
157
|
/**
|
|
150
158
|
* Build the resume/notify functions for RateLimitSentinel. Both paths ALWAYS
|
|
151
159
|
* record an audit event and never silently return:
|
|
152
|
-
* - resumeFn:
|
|
160
|
+
* - resumeFn: ALWAYS internal inject (no `[telegram:N]` user-message prefix),
|
|
161
|
+
* topic-bound or not — the resume nudge is infrastructure, never a user turn.
|
|
153
162
|
* - notifyFn: session topic → lifeline topic → recovery-unreachable audit.
|
|
154
163
|
*/
|
|
155
164
|
export declare function buildRateLimitRecoveryDeps(s: RateLimitRecoverySurface): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sentinelWiring.d.ts","sourceRoot":"","sources":["../../src/monitoring/sentinelWiring.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,KAAK,EACV,6BAA6B,EAC7B,oBAAoB,EACrB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EACV,wBAAwB,EAEzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAEpF,4DAA4D;AAC5D,MAAM,WAAW,sBAAsB;IACrC,aAAa,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAClE,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7C,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,MA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AAM,GAAG,OAAO,CAAC;IAChE,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnE,oEAAoE;IACpE,kBAAkB,IAAI,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAChD,8EAA8E;IAC9E,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/D,oEAAoE;IACpE,cAAc,CACZ,IAAI,EAAE,iBAAiB,EACvB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,EAAE,GACtB,IAAI,CAAC;CACT;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,CAAC,EAAE,wBAAwB,GAAG;IACvE,QAAQ,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACpD,QAAQ,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE,CA0DA;AAED,sFAAsF;AACtF;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,GACjD,MAAM,CAsBR"}
|
|
@@ -210,7 +210,8 @@ export const RATE_LIMIT_RESUME_NUDGE = 'The temporary server throttle should hav
|
|
|
210
210
|
/**
|
|
211
211
|
* Build the resume/notify functions for RateLimitSentinel. Both paths ALWAYS
|
|
212
212
|
* record an audit event and never silently return:
|
|
213
|
-
* - resumeFn:
|
|
213
|
+
* - resumeFn: ALWAYS internal inject (no `[telegram:N]` user-message prefix),
|
|
214
|
+
* topic-bound or not — the resume nudge is infrastructure, never a user turn.
|
|
214
215
|
* - notifyFn: session topic → lifeline topic → recovery-unreachable audit.
|
|
215
216
|
*/
|
|
216
217
|
export function buildRateLimitRecoveryDeps(s) {
|
|
@@ -218,16 +219,17 @@ export function buildRateLimitRecoveryDeps(s) {
|
|
|
218
219
|
resumeFn: async (sessionName) => {
|
|
219
220
|
if (!s.isSessionAlive(sessionName))
|
|
220
221
|
return false;
|
|
222
|
+
// The resume nudge ALWAYS goes through the internal recovery channel —
|
|
223
|
+
// topic-bound or not. It un-sticks the session identically to the
|
|
224
|
+
// user-message path (both converge on the same low-level inject) but
|
|
225
|
+
// carries no `[telegram:N]` prefix, so the agent can never mistake it for
|
|
226
|
+
// a message from the user and relay a contradictory "no throttle" reply.
|
|
227
|
+
// The topic (when present) is recorded for the audit trail only.
|
|
228
|
+
// (Incoherence incident 2026-06-05 — see throttle-notice-coherence spec.)
|
|
221
229
|
const topicId = s.getTopicForSession(sessionName);
|
|
222
|
-
if (topicId != null) {
|
|
223
|
-
const ok = s.injectTopicNudge(sessionName, topicId, RATE_LIMIT_RESUME_NUDGE);
|
|
224
|
-
s.recordRecovery(ok ? 'recovery-reached' : 'recovery-unreachable', sessionName, ok ? 'resume nudge injected via topic' : 'topic injectMessage returned false', ['topic']);
|
|
225
|
-
return ok;
|
|
226
|
-
}
|
|
227
|
-
// Non-topic-bound (e.g. interactive dev window): internal injection path.
|
|
228
230
|
const ok = s.injectInternalNudge(sessionName, RATE_LIMIT_RESUME_NUDGE);
|
|
229
231
|
s.recordRecovery(ok ? 'recovery-reached' : 'recovery-unreachable', sessionName, ok
|
|
230
|
-
?
|
|
232
|
+
? `resume nudge injected via internal recovery channel${topicId != null ? ` (topic ${topicId})` : ''}`
|
|
231
233
|
: 'internal injection returned false', ['internal-injection']);
|
|
232
234
|
return ok;
|
|
233
235
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sentinelWiring.js","sourceRoot":"","sources":["../../src/monitoring/sentinelWiring.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAWH,OAAO,EAAE,iBAAiB,E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,CAAC,EAAE,UAAU,CAAC,CAAC;IAC/B,CAAC;IACD,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AAChC,CAAC;AAED,SAAS,QAAQ,CAAC,WAAmB;IACnC,OAAO,WAAW;SACf,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC;SAC5B,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;SACvB,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;AAC/B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./builtin-manifest.schema.json",
|
|
3
3
|
"schemaVersion": 1,
|
|
4
|
-
"generatedAt": "2026-06-06T05:
|
|
5
|
-
"instarVersion": "1.3.
|
|
4
|
+
"generatedAt": "2026-06-06T05:48:21.704Z",
|
|
5
|
+
"instarVersion": "1.3.347",
|
|
6
6
|
"entryCount": 199,
|
|
7
7
|
"entries": {
|
|
8
8
|
"hook:session-start": {
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# Upgrade Guide — vNEXT
|
|
2
|
+
|
|
3
|
+
<!-- assembled-by: assemble-next-md -->
|
|
4
|
+
<!-- bump: patch -->
|
|
5
|
+
|
|
6
|
+
## What Changed
|
|
7
|
+
|
|
8
|
+
Honest turn-receipts — the standby (🔭) system now tells the truth about WHY a
|
|
9
|
+
turn failed instead of saying "actively working" while a session is dead.
|
|
10
|
+
|
|
11
|
+
Three incidents in two days had one symptom: a delivered message that never got
|
|
12
|
+
a reply, while the standby showed "🔭 actively working." Root: the tier-3
|
|
13
|
+
assessment classified a session "working" whenever it had a live child process
|
|
14
|
+
— but a rate-limited, policy-wedged, or context-exhausted session HAS a live
|
|
15
|
+
process (the model CLI is alive, just failing every turn). The live process
|
|
16
|
+
forced the lie. Separately, the "conversation too long" standby fired on that
|
|
17
|
+
phrase anywhere in the buffer, so a stale scrolled-past mention surfaced as
|
|
18
|
+
noise on healthy sessions.
|
|
19
|
+
|
|
20
|
+
New `StuckSignatureClassifier` (pure, tail-gated, signal-only) classifies a
|
|
21
|
+
live-but-failing session from its LIVE tmux tail — rate-limited / policy-wedge /
|
|
22
|
+
context-wedge / context-too-long — and PresenceProxy surfaces the real reason
|
|
23
|
+
instead of "working". Tail-gating (the signature must be the live tail, not a
|
|
24
|
+
scrollback mention) is the same discriminator that kills the "conversation too
|
|
25
|
+
long" noise. The classifier defers to any recovery sentinel that already owns a
|
|
26
|
+
session's recovery, so the user always hears one voice. Recovery itself is
|
|
27
|
+
unchanged — this only makes the messaging honest.
|
|
28
|
+
|
|
29
|
+
Fixes a coherence bug in rate-limit recovery where the agent appeared to **argue with itself** during an Anthropic throttle.
|
|
30
|
+
|
|
31
|
+
When the RateLimitSentinel detected a throttle it did two things: posted a user-facing "heads up — throttled, backing off" notice (intended), and — after backing off — poked the session with a "the throttle should have cleared, please continue" resume nudge to un-stick it. The bug was in the second part: that internal nudge was injected wearing a `[telegram:N]` prefix, the **exact** wire format of a real inbound user message. The agent could not distinguish its own recovery infrastructure from a message from the user, so it answered the nudge conversationally ("no throttle on my end, still rolling") and — because every `[telegram:N]` message triggers the mandatory "relay your reply to the user" rule — posted that denial into the topic, landing between the sentinel's own "still throttled" notices. To the user it read as the agent contradicting itself, and during a fleet-wide throttle (many sessions limited at once) it happened across several topics simultaneously.
|
|
32
|
+
|
|
33
|
+
The fix routes the resume nudge through the **internal recovery channel** instead of the user-message path. It un-sticks the session identically (both paths converge on the same low-level injection) but carries no `[telegram:N]` prefix, so the agent never mistakes it for the user and never relays a contradictory reply. The dead user-message injection path for the resume nudge was removed entirely so the bug cannot reappear. The "throttled / back online" notices are unchanged.
|
|
34
|
+
|
|
35
|
+
This change also ratifies a new constitutional standard — **Truthful Provenance — Speak Only as Yourself** (`docs/STANDARDS-REGISTRY.md`): every message into an agent carries an identity, and infrastructure must never wear the user's.
|
|
36
|
+
|
|
37
|
+
## What to Tell Your User
|
|
38
|
+
|
|
39
|
+
When a message of yours goes unanswered, I'll now tell you the real reason if I
|
|
40
|
+
can't reply — "I've hit the usage limit, resets 10:30pm", "my session got stuck
|
|
41
|
+
on a content-policy error, resend your last message" — instead of a misleading
|
|
42
|
+
"actively working." And the "conversation too long" messages that used to pop up
|
|
43
|
+
when nothing was wrong are gone: that only fires now when it's actually
|
|
44
|
+
happening.
|
|
45
|
+
|
|
46
|
+
If you ever saw your agent post "hit a throttle, backing off" and then, moments later in the same topic, "no throttle on my end, still rolling" — it wasn't confused or hijacked. Its rate-limit recovery was poking the session to continue, but that poke was formatted exactly like a message from you, so the agent answered it as if you'd said it. That's fixed: the recovery poke now travels an internal channel it can't mistake for you, so during a throttle you'll see a clean, coherent sequence of "throttled → still throttled → back online" instead of the agent seeming to disagree with itself. The recovery itself always worked; only the narration was incoherent, and now it isn't.
|
|
47
|
+
|
|
48
|
+
## Summary of New Capabilities
|
|
49
|
+
|
|
50
|
+
- `StuckSignatureClassifier` — tail-gated classification of a live-but-failing
|
|
51
|
+
session (rate-limited / policy-wedge / context-wedge / context-too-long) with
|
|
52
|
+
an honest user-facing message per kind. Pure + signal-only.
|
|
53
|
+
- PresenceProxy tier-3 surfaces the honest reason instead of "working", defers
|
|
54
|
+
to an owning recovery sentinel (`isStuckRecoveryActive`), and no longer fires
|
|
55
|
+
the context-too-long notice on a stale scrollback mention.
|
|
56
|
+
- CLAUDE.md "Honest standby (turn-receipts)" section so agents can explain the
|
|
57
|
+
new behavior and the noise fix.
|
|
58
|
+
|
|
59
|
+
- None — this is a behavior fix, not a new capability. No new endpoints or config. It takes effect on the next server restart after the update.
|
|
60
|
+
|
|
61
|
+
## Evidence
|
|
62
|
+
|
|
63
|
+
Grounded in the real 2026-06-04/05 incidents (rate-limit, AUP-wedge) using the
|
|
64
|
+
verbatim pane text. 30+ new unit tests both sides of every boundary
|
|
65
|
+
(honest-when-stuck AND quiet-when-fine, incl. the stale-scrollback noise case
|
|
66
|
+
and prose-mentions-a-limit false positive) + a behavioral test driving the real
|
|
67
|
+
fireTier3 with a live child process (wedge → honest, NOT "working"; deference →
|
|
68
|
+
silent) + migrator add/idempotent + server.ts wiring guard. All 119 existing
|
|
69
|
+
presence tests pass; tsc clean; preflight PASS.
|
|
70
|
+
|
|
71
|
+
Tier-1 fix; 59 tests green across the rate-limit/sentinel suites, `tsc --noEmit` clean, independent second-pass reviewer concurred (sentinel/recovery path):
|
|
72
|
+
|
|
73
|
+
- New regression in `tests/unit/rate-limit-recovery-reachability.test.ts` asserting the resume nudge is internal-only and its text never contains a `[telegram:` prefix (anti-impersonation), plus the updated topic-bound resumeFn contract.
|
|
74
|
+
- `tests/integration/rate-limit-recovery-sentinel-lifecycle.test.ts` re-pinned around the internal-only path.
|
|
75
|
+
- Root cause confirmed live in `logs/sentinel-events.jsonl` (fleet-wide throttle, ~7 sessions each logging "resume nudge injected via topic" pre-fix).
|
|
76
|
+
- Sibling sweep: the compaction-resume inject (honest provenance — fires only on a genuinely unanswered user message) is tracked for audit under the new standard at #894.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
user_announcement:
|
|
3
|
+
audience: user
|
|
4
|
+
maturity: stable
|
|
5
|
+
summary: "When a rate-limit clears, the agent no longer appears to argue with itself in chat."
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# The agent no longer argues with itself while recovering from a rate limit
|
|
9
|
+
|
|
10
|
+
When an Anthropic throttle hit a session, you could see something incoherent in the topic: the agent would post "heads up — hit a throttle, backing off," then a moment later post "no throttle on my end, still rolling," then "still throttled, next retry in 2m." Same agent, same topic, contradicting itself — and during a fleet-wide throttle (many sessions limited at once) it happened in several topics at the same time. The recovery always worked in the end; the *narration* of it looked like the agent was fighting itself.
|
|
11
|
+
|
|
12
|
+
Here is exactly what was happening. The rate-limit sentinel does two separate things when it detects a throttle:
|
|
13
|
+
|
|
14
|
+
1. It posts a user-facing notice to your topic ("hit a throttle, backing off, you haven't been dropped") — the heads-up you asked for.
|
|
15
|
+
2. After it backs off, it pokes the session with a "the throttle should have cleared — please continue where you left off" nudge, to un-stick it.
|
|
16
|
+
|
|
17
|
+
The bug was in step 2. That internal poke was injected into the session wearing a `[telegram:N]` prefix — the **exact** format a real message from you uses. So the session literally could not tell the difference between its own recovery infrastructure and you texting it. It treated the nudge as a message from you, answered it conversationally ("got it — no throttle on my end, still rolling"), and — because every message that looks like it's from you triggers the mandatory "relay your reply back to the user" rule — posted that denial into the topic. Right next to the sentinel's own "still throttled" notices. The sentinel was correct (there really was a throttle); the agent was answering the sentinel's poke as if it were you, and denying the throttle because from its seat the turn had finished fine.
|
|
18
|
+
|
|
19
|
+
## The fix
|
|
20
|
+
|
|
21
|
+
The resume nudge now goes through the **internal recovery channel** instead of the user-message path. It still un-sticks the session exactly the same way (both paths converge on the same low-level injection), but it no longer carries a `[telegram:N]` prefix — so the agent can never mistake it for a message from you, and never relays a contradictory "no throttle" reply. The dead user-message injection path for the resume nudge was removed entirely, so the bug cannot reappear.
|
|
22
|
+
|
|
23
|
+
The heads-up notices you DID ask for ("throttled, backing off" / "still throttled, retrying" / "back online") are unchanged. With the contradictory replies gone, those notices now read as a clean, coherent sequence instead of an argument.
|
|
24
|
+
|
|
25
|
+
## What you need to decide
|
|
26
|
+
|
|
27
|
+
Nothing. This is a behavior fix with no configuration. It takes effect on the next server restart after the update lands.
|
|
28
|
+
|
|
29
|
+
## How to verify it worked
|
|
30
|
+
|
|
31
|
+
The next time a session hits a throttle, watch the topic: you'll see the sentinel's notices in order, with no "no throttle on my end" denial interleaved. The internal nudge is recorded in `logs/sentinel-events.jsonl` as "resume nudge injected via internal recovery channel" (it used to say "via topic").
|
|
32
|
+
|
|
33
|
+
## The deeper lesson
|
|
34
|
+
|
|
35
|
+
This is the first enforcement of a new constitutional standard, **Truthful Provenance — Speak Only as Yourself**: every message delivered into an agent carries an identity, and the agent acts on who it believes is speaking before it acts on the words. Infrastructure must speak as infrastructure, never wearing the user's face. Tests pin the contract — the resume nudge can never again be injected with a user-message prefix.
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# Side-Effects Review — Rate-limit resume nudge routed through internal channel (not the user-message path)
|
|
2
|
+
|
|
3
|
+
**Version / slug:** `rate-limit-resume-nudge-internal-channel`
|
|
4
|
+
**Date:** `2026-06-05`
|
|
5
|
+
**Author:** `Echo (instar-dev agent)`
|
|
6
|
+
**Second-pass reviewer:** `independent reviewer subagent`
|
|
7
|
+
|
|
8
|
+
## Summary of the change
|
|
9
|
+
|
|
10
|
+
The RateLimitSentinel's post-backoff resume nudge ("the throttle should have cleared — please continue where you left off") was injected into the throttled session via `injectTopicNudge`, which prefixes the text with `[telegram:${topicId}]` — the exact wire format of a real inbound user message. The agent therefore could not distinguish the infrastructure's own poke from a message from the user: it answered the nudge conversationally ("no throttle on my end, still rolling") and, because the `[telegram:N]` prefix triggers the mandatory "relay your reply to the user" rule, posted that denial into the topic between the sentinel's own throttle notices — appearing to contradict itself. The change routes the resume nudge through the internal recovery channel (`injectInternalNudge` → `injectInternalMessage`) for ALL sessions, topic-bound or not. The internal path converges on the same low-level `rawInject` (identical un-stick behavior) but carries no user-message prefix, so the agent never mistakes it for the user. The now-dead `injectTopicNudge` method is removed from `RateLimitRecoverySurface` and its `server.ts` wiring. Files: `src/monitoring/sentinelWiring.ts`, `src/commands/server.ts`, plus the two rate-limit recovery test files.
|
|
11
|
+
|
|
12
|
+
## Decision-point inventory
|
|
13
|
+
|
|
14
|
+
- `buildRateLimitRecoveryDeps.resumeFn` (sentinelWiring.ts) — **modify** — was: topic-bound → `[telegram:N]`-prefixed inject; non-topic-bound → internal inject. Now: ALL sessions → internal inject; topic recorded in audit detail only.
|
|
15
|
+
- `RateLimitRecoverySurface.injectTopicNudge` (interface + server.ts wiring) — **remove** — the prefixed-inject path is deleted so the resume nudge cannot use it again.
|
|
16
|
+
- The user-facing notice path (`notifyFn` → `deliverNotice` → Telegram) — **pass-through** — unchanged; the "throttled / back online" heads-ups still post exactly as before.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## 1. Over-block
|
|
21
|
+
|
|
22
|
+
No block/allow surface — over-block not applicable. This change selects an injection channel; it neither rejects nor admits inputs.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 2. Under-block
|
|
27
|
+
|
|
28
|
+
No block/allow surface — under-block not applicable. The recovery still fires on every detected throttle; nothing is newly suppressed. The user-facing throttle notices are unchanged.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## 3. Level-of-abstraction fit
|
|
33
|
+
|
|
34
|
+
Correct layer. The resume nudge is infrastructure→session communication; the right primitive for that is `injectInternalMessage` (`source: 'sentinel-recovery'`), which exists precisely for "trusted internal nudge that bypasses the topic-prefix requirement" and logs the trusted bypass to the security log. The previous design borrowed the user-message primitive (`injectMessage` with a topic prefix) for InputGuard-provenance convenience, which was the wrong layer — it made an infra signal indistinguishable from user speech. The fix moves the resume to the primitive built for it. No higher-level gate is bypassed; the InputGuard provenance check the old path ran is intentionally not needed for a known-internal nudge (and `injectInternalMessage` records the bypass).
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 4. Signal vs authority compliance
|
|
39
|
+
|
|
40
|
+
**Required reference:** docs/signal-vs-authority.md
|
|
41
|
+
|
|
42
|
+
- [x] No — this change has no block/allow surface.
|
|
43
|
+
|
|
44
|
+
The change chooses a delivery channel for a recovery nudge. It holds no blocking authority and adds no brittle gate. It removes an accidental coupling (infra wearing the user's identity), which strictly reduces surface.
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## 5. Interactions
|
|
49
|
+
|
|
50
|
+
- **Shadowing:** None. The resume nudge and the user-facing notice are separate paths (`resumeFn` vs `notifyFn`); this change touches only `resumeFn`. The notice path is untouched.
|
|
51
|
+
- **Double-fire:** Reduced. Previously the agent burned a full conversational-reply turn answering each nudge (and relayed it). That spurious turn is eliminated — fewer LLM turns hitting the already-throttled account during a fleet-wide throttle.
|
|
52
|
+
- **Races:** No new shared state. `rawInject` resets the same idle-prompt timer it always did; the verify()/JSONL-growth recovery detection is unchanged. The internal path was already the live path for non-topic-bound sessions, so its reliability is proven in production.
|
|
53
|
+
- **Feedback loops:** This CLOSES one. The old behavior was a feedback loop — sentinel poke → agent reply → relayed to topic → contradicts sentinel notice. Removing the user-message framing breaks the loop at its source.
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## 6. External surfaces
|
|
58
|
+
|
|
59
|
+
- **Other agents / users (install base):** behavior change ships to every instar agent on update. It strictly improves coherence (removes self-contradiction during throttle recovery); no capability is added or removed.
|
|
60
|
+
- **Telegram:** fewer messages posted to topics during a throttle (the spurious "no throttle on my end" replies stop). The intended "throttled / back online" notices are unchanged.
|
|
61
|
+
- **Persistent state:** the audit line in `logs/sentinel-events.jsonl` / recovery records now reads "resume nudge injected via internal recovery channel (topic N)" instead of "via topic". Read-only observability; no consumer parses the prior exact string for control flow.
|
|
62
|
+
- **Timing/runtime:** none introduced. Same inject mechanism, same timers.
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## 7. Rollback cost
|
|
67
|
+
|
|
68
|
+
Pure code change — revert the two source edits and ship as the next patch. No persistent state, no schema, no migration, no agent-state repair. The only user-visible effect during a rollback window would be the return of the original incoherence, not a hard failure. Recovery itself never depended on the prefix (both channels converge on `rawInject`), so reverting cannot break un-sticking.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Conclusion
|
|
73
|
+
|
|
74
|
+
The review found no block/allow surface and no new authority — the change removes an accidental identity coupling (infrastructure injecting a nudge that looked like a user message) and replaces it with the purpose-built internal channel. It reduces external surface (fewer spurious Telegram messages, fewer wasted LLM turns under throttle) and closes a self-reinforcing feedback loop. The one related site found in the sibling sweep — the compaction-resume re-inject in `server.ts`, which also uses a `[telegram:N]` prefix — is left unchanged because it only fires when there is a genuinely unanswered user message, where a relayed reply is wanted; it is tracked for audit under the new Truthful Provenance standard at JKHeadley/instar#894 rather than altered here. Clear to ship. Regression coverage pins the contract (the resume nudge can never again carry a `[telegram:` prefix).
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Second-pass review (if required)
|
|
79
|
+
|
|
80
|
+
**Reviewer:** independent reviewer subagent
|
|
81
|
+
**Independent read of the artifact: CONCUR**
|
|
82
|
+
|
|
83
|
+
The reviewer independently read the diff and the SessionManager injection internals and concurred the fix is correct, minimal, and the artifact is honest:
|
|
84
|
+
|
|
85
|
+
- **Resume parity is real (the load-bearing claim).** `injectInternalNudge` → `injectInternalMessage` (SessionManager.ts:3060) and the old `injectTopicNudge` → `injectMessage` both converge on the identical `rawInject` (3080): same bracketed-paste, same framework-aware Enter (codex double-Enter), same `verifyInjection`/`recordStrandedDraftMarker`. The fix does not weaken un-sticking. The redundant `isSessionAlive` guard inside `injectInternalMessage` is harmless (resumeFn already guards it).
|
|
86
|
+
- **The relay-trigger cannot fire on the new path.** The mandatory "relay your reply" behavior keys strictly on the anchored `^\[telegram:(\d+)` prefix (InputGuard.ts:114; UserPromptSubmit hook regex). The bare nudge text carries no such prefix; the new test asserts `not.toContain('[telegram:')`, pinning the contract.
|
|
87
|
+
- **Audit/recordRecovery preserved.** Collapses to one `recordRecovery(..., ['internal-injection'])`; topic retained in the detail string, verified by the updated unit test.
|
|
88
|
+
- **No dead/broken code.** `injectTopicNudge` fully removed from interface, server.ts wiring, and both test harnesses (grep returns zero hits); typecheck clean.
|
|
89
|
+
- **The "compaction-resume is defensible to leave" judgment is correct, with a concrete reason.** That sibling inject (server.ts:6053-6055) is gated on `lastReal?.fromUser` — it fires only when the most recent real message is a genuinely unanswered user message, where a relayed reply is wanted. The RateLimitSentinel resume has no such gate, which is exactly why a user prefix there manufactured a phantom user turn. Structurally different cases.
|
|
90
|
+
- **No edge-case regression** for InputGuard provenance (the internal path auditably bypasses it via the logged `internal-recovery-injection` event), multi-line handling (nudge is single-line), or codex-vs-claude submit (shared `rawInject`).
|
|
91
|
+
|
|
92
|
+
**Reviewer nits, both resolved:**
|
|
93
|
+
1. Stale comments that still described the nudge as "topic-tagged so InputGuard accepts it" (RateLimitSentinel.ts:85 + sentinelWiring.ts:329) — **fixed** in this change so no future reader re-introduces the prefix.
|
|
94
|
+
2. The compaction-resume "leave unchanged" decision must be tracked durably, not left as prose — **filed as JKHeadley/instar#894** (audit it under the new Truthful Provenance standard).
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Evidence pointers
|
|
99
|
+
|
|
100
|
+
- Root cause confirmed live in `logs/sentinel-events.jsonl` (2026-06-06 ~04:31Z): a fleet-wide throttle drove ~7 sessions through this recovery, each logging "resume nudge injected via topic".
|
|
101
|
+
- Smoking-gun line: `src/commands/server.ts` `injectTopicNudge: (name, topicId, text) => sessionManager.injectMessage(name, \`[telegram:${topicId}] ${text}\`)` (pre-fix).
|
|
102
|
+
- Tests: `tests/unit/rate-limit-recovery-reachability.test.ts` (incl. new anti-impersonation regression) + `tests/integration/rate-limit-recovery-sentinel-lifecycle.test.ts`; 59 tests green across the rate-limit/sentinel suites.
|
package/upgrades/1.3.346.md
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
# Upgrade Guide — vNEXT
|
|
2
|
-
|
|
3
|
-
<!-- assembled-by: assemble-next-md -->
|
|
4
|
-
<!-- bump: patch -->
|
|
5
|
-
|
|
6
|
-
## What Changed
|
|
7
|
-
|
|
8
|
-
Honest turn-receipts — the standby (🔭) system now tells the truth about WHY a
|
|
9
|
-
turn failed instead of saying "actively working" while a session is dead.
|
|
10
|
-
|
|
11
|
-
Three incidents in two days had one symptom: a delivered message that never got
|
|
12
|
-
a reply, while the standby showed "🔭 actively working." Root: the tier-3
|
|
13
|
-
assessment classified a session "working" whenever it had a live child process
|
|
14
|
-
— but a rate-limited, policy-wedged, or context-exhausted session HAS a live
|
|
15
|
-
process (the model CLI is alive, just failing every turn). The live process
|
|
16
|
-
forced the lie. Separately, the "conversation too long" standby fired on that
|
|
17
|
-
phrase anywhere in the buffer, so a stale scrolled-past mention surfaced as
|
|
18
|
-
noise on healthy sessions.
|
|
19
|
-
|
|
20
|
-
New `StuckSignatureClassifier` (pure, tail-gated, signal-only) classifies a
|
|
21
|
-
live-but-failing session from its LIVE tmux tail — rate-limited / policy-wedge /
|
|
22
|
-
context-wedge / context-too-long — and PresenceProxy surfaces the real reason
|
|
23
|
-
instead of "working". Tail-gating (the signature must be the live tail, not a
|
|
24
|
-
scrollback mention) is the same discriminator that kills the "conversation too
|
|
25
|
-
long" noise. The classifier defers to any recovery sentinel that already owns a
|
|
26
|
-
session's recovery, so the user always hears one voice. Recovery itself is
|
|
27
|
-
unchanged — this only makes the messaging honest.
|
|
28
|
-
|
|
29
|
-
## What to Tell Your User
|
|
30
|
-
|
|
31
|
-
When a message of yours goes unanswered, I'll now tell you the real reason if I
|
|
32
|
-
can't reply — "I've hit the usage limit, resets 10:30pm", "my session got stuck
|
|
33
|
-
on a content-policy error, resend your last message" — instead of a misleading
|
|
34
|
-
"actively working." And the "conversation too long" messages that used to pop up
|
|
35
|
-
when nothing was wrong are gone: that only fires now when it's actually
|
|
36
|
-
happening.
|
|
37
|
-
|
|
38
|
-
## Summary of New Capabilities
|
|
39
|
-
|
|
40
|
-
- `StuckSignatureClassifier` — tail-gated classification of a live-but-failing
|
|
41
|
-
session (rate-limited / policy-wedge / context-wedge / context-too-long) with
|
|
42
|
-
an honest user-facing message per kind. Pure + signal-only.
|
|
43
|
-
- PresenceProxy tier-3 surfaces the honest reason instead of "working", defers
|
|
44
|
-
to an owning recovery sentinel (`isStuckRecoveryActive`), and no longer fires
|
|
45
|
-
the context-too-long notice on a stale scrollback mention.
|
|
46
|
-
- CLAUDE.md "Honest standby (turn-receipts)" section so agents can explain the
|
|
47
|
-
new behavior and the noise fix.
|
|
48
|
-
|
|
49
|
-
## Evidence
|
|
50
|
-
|
|
51
|
-
Grounded in the real 2026-06-04/05 incidents (rate-limit, AUP-wedge) using the
|
|
52
|
-
verbatim pane text. 30+ new unit tests both sides of every boundary
|
|
53
|
-
(honest-when-stuck AND quiet-when-fine, incl. the stale-scrollback noise case
|
|
54
|
-
and prose-mentions-a-limit false positive) + a behavioral test driving the real
|
|
55
|
-
fireTier3 with a live child process (wedge → honest, NOT "working"; deference →
|
|
56
|
-
silent) + migrator add/idempotent + server.ts wiring guard. All 119 existing
|
|
57
|
-
presence tests pass; tsc clean; preflight PASS.
|