instar 1.3.715 → 1.3.717
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/data/llmBenchCoverage.d.ts.map +1 -1
- package/dist/data/llmBenchCoverage.js +39 -25
- package/dist/data/llmBenchCoverage.js.map +1 -1
- package/dist/monitoring/InputClassifier.d.ts.map +1 -1
- package/dist/monitoring/InputClassifier.js +6 -1
- package/dist/monitoring/InputClassifier.js.map +1 -1
- package/package.json +1 -1
- package/src/data/builtin-manifest.json +2 -2
- package/src/data/llmBenchCoverage.ts +45 -25
- package/upgrades/1.3.716.md +32 -0
- package/upgrades/1.3.717.md +33 -0
- package/upgrades/side-effects/input-classifier-unsure-contract.md +76 -0
- package/upgrades/side-effects/routing-registry-bench-apply.md +32 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llmBenchCoverage.d.ts","sourceRoot":"","sources":["../../src/data/llmBenchCoverage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,MAAM,MAAM,aAAa,GACrB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,OAAO,EAAE,QAAQ,GAAG,QAAQ,CAAA;CAAE,GAChC;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvB,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"llmBenchCoverage.d.ts","sourceRoot":"","sources":["../../src/data/llmBenchCoverage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,MAAM,MAAM,aAAa,GACrB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,OAAO,EAAE,QAAQ,GAAG,QAAQ,CAAA;CAAE,GAChC;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvB,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAqFtE,CAAC"}
|
|
@@ -40,31 +40,45 @@ export const LLM_BENCH_COVERAGE = {
|
|
|
40
40
|
InteractivePoolCanaryJudge: {
|
|
41
41
|
exempt: 'judges a FIXED known-answer canary probe — the canary is its own benchmark; a bench task would re-test the same constant',
|
|
42
42
|
},
|
|
43
|
-
// ── Wave 2 (
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
43
|
+
// ── Covered by Wave 2 (authored 2026-07-02; tasks-wave2/ in the bench harness) ──
|
|
44
|
+
InputGuard: { task: 'input-guard-coherence' },
|
|
45
|
+
SessionActivitySentinel: { task: 'activity-digest' },
|
|
46
|
+
StallTriageNurse: { task: 'stall-triage-diagnosis' },
|
|
47
|
+
CommitmentSentinel: { task: 'commitment-detector' },
|
|
48
|
+
PresenceProxy: { task: 'presence-tier3-stall' },
|
|
49
|
+
ProjectDriftChecker: { task: 'project-drift-check' },
|
|
50
|
+
TemporalCoherenceChecker: { task: 'temporal-coherence' },
|
|
51
|
+
SessionWatchdog: { task: 'watchdog-stuck-judge' },
|
|
52
|
+
ResumeQueueDrainer: { task: 'resume-sanity-check' },
|
|
53
|
+
TopicIntentArcCheck: { task: 'arc-check-classify' },
|
|
54
|
+
TelegramAdapter: { task: 'telegram-stall-confirm' },
|
|
55
|
+
// SlackAdapter.confirmStallAlert builds a byte-identical prompt to
|
|
56
|
+
// TelegramAdapter's (verified by diff) — the same task id covers both
|
|
57
|
+
// (precedent: CompletionEvaluator maps two surfaces to two ids).
|
|
58
|
+
SlackAdapter: { task: 'telegram-stall-confirm' },
|
|
59
|
+
PromptGate: { task: 'prompt-gate-detect' },
|
|
60
|
+
UnjustifiedStopGate: { task: 'unjustified-stop-gate' },
|
|
61
|
+
OverrideDetector: { task: 'override-detector' },
|
|
62
|
+
TaskClassifier: { task: 'task-classifier' },
|
|
63
|
+
ResumeValidator: { task: 'resume-validator' },
|
|
64
|
+
SessionSummarySentinel: { task: 'session-summary-sentinel' },
|
|
65
|
+
TopicIntentExtractor: { task: 'topic-intent-extractor' },
|
|
66
|
+
// ── Wave-2 argued exemptions (evidence: tasks-wave2/SKIPPED.md in the bench harness) ──
|
|
67
|
+
IntegrationGate: {
|
|
68
|
+
exempt: 'no LLM prompt of its own — delegates to JobReflector.reflect() (attribution JobReflector, tracked wave-3); zero LLM-provider callsites of its own in IntegrationGate.ts',
|
|
69
|
+
},
|
|
70
|
+
CoherenceGate: {
|
|
71
|
+
exempt: 'no callsite carries attribution CoherenceGate — all LLM calls flow through CoherenceReviewer.callApi() (incl. the DynamicReviewer subclass), covered by gate-triage',
|
|
72
|
+
},
|
|
73
|
+
AutoApprover: {
|
|
74
|
+
exempt: 'mechanical key injection + audit logging, no LLM callsite; the upstream judgment is InputClassifier.classify(), covered by input-classifier',
|
|
75
|
+
},
|
|
76
|
+
InputDetector: {
|
|
77
|
+
exempt: 'attribution-manifest alias only (a legacy prompt-pattern matcher); the live InputDetector class in PromptGate.ts calls with attribution PromptGate, covered by prompt-gate-detect',
|
|
78
|
+
},
|
|
79
|
+
PromiseBeacon: {
|
|
80
|
+
exempt: 'no live LLM prompt — generateStatusLine/classifyProgress hooks are unwired at the construction site (server.ts); the enqueue path resolves templated strings; revisit if a generator is wired',
|
|
81
|
+
},
|
|
68
82
|
// ── Wave 3 (reflectors + background/job tasks) ──
|
|
69
83
|
JobReflector: { pending: 'wave-3' },
|
|
70
84
|
crossModelReviewer: { pending: 'wave-3' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llmBenchCoverage.js","sourceRoot":"","sources":["../../src/data/llmBenchCoverage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAOH,MAAM,CAAC,MAAM,kBAAkB,GAA4C;IACzE,mEAAmE;IACnE,eAAe,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE;IAC9C,iBAAiB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IACxC,6DAA6D;IAC7D,mBAAmB,EAAE,EAAE,IAAI,EAAE,iCAAiC,EAAE;IAChE,qBAAqB,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE;IACnD,YAAY,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE;IAC7C,iBAAiB,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;IAC7C,eAAe,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE;IAC7C,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;IACxB,qBAAqB,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE;IACvD,iBAAiB,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE;IAE1C,kEAAkE;IAClE,0BAA0B,EAAE;QAC1B,MAAM,EACJ,0HAA0H;KAC7H;IAED,
|
|
1
|
+
{"version":3,"file":"llmBenchCoverage.js","sourceRoot":"","sources":["../../src/data/llmBenchCoverage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAOH,MAAM,CAAC,MAAM,kBAAkB,GAA4C;IACzE,mEAAmE;IACnE,eAAe,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE;IAC9C,iBAAiB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IACxC,6DAA6D;IAC7D,mBAAmB,EAAE,EAAE,IAAI,EAAE,iCAAiC,EAAE;IAChE,qBAAqB,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE;IACnD,YAAY,EAAE,EAAE,IAAI,EAA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AAO,CAAC,oBAAoB,CAAC;IA+BrE,OAAO,CAAC,eAAe;IAgBvB,OAAO,CAAC,kBAAkB;IA6C1B,OAAO,CAAC,YAAY;IAOpB,OAAO,CAAC,oBAAoB;YAcd,eAAe;IAsD7B;;;OAGG;IACH,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAUzC;;OAEG;IACH,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAUxC,OAAO,CAAC,aAAa;IAKrB,OAAO,CAAC,MAAM;CAiBf"}
|
|
@@ -174,7 +174,9 @@ export class InputClassifier {
|
|
|
174
174
|
'- The prompt asks the human a question requiring thought',
|
|
175
175
|
'- File operations outside the project directory',
|
|
176
176
|
'- Destructive operations (delete, remove, overwrite, force)',
|
|
177
|
-
'- You are unsure',
|
|
177
|
+
'- You are unsure (unsure means the prompt matches NO bullet above or is ambiguous',
|
|
178
|
+
' between them — a relative file path with no ../ traversal is INSIDE the project',
|
|
179
|
+
' directory, and matching an APPROVE bullet is never unsure)',
|
|
178
180
|
'',
|
|
179
181
|
`Project directory: ${this.normalizedProjectDir}`,
|
|
180
182
|
'',
|
|
@@ -182,6 +184,9 @@ export class InputClassifier {
|
|
|
182
184
|
`Summary: ${prompt.summary}`,
|
|
183
185
|
`Terminal text (last 5 lines):`,
|
|
184
186
|
prompt.raw,
|
|
187
|
+
'',
|
|
188
|
+
'Answer with the single word only — APPROVE or RELAY. No explanation, no',
|
|
189
|
+
'reasoning, even when uncertain or the operation feels high-stakes.',
|
|
185
190
|
].join('\n');
|
|
186
191
|
try {
|
|
187
192
|
const response = await intelligence.evaluate(systemPrompt, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputClassifier.js","sourceRoot":"","sources":["../../src/monitoring/InputClassifier.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,IAAI,MAAM,WAAW,CAAC;AAqC7B,sEAAsE;AAEtE;;;GAGG;AACH,MAAM,oB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CAAC,OAAO,IAAI,MAAM,CAAC,GAAG,EAAE,CAAC;QAC/C,OAAO,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACtD,CAAC;IAEO,MAAM,CACZ,MAAsB,EACtB,MAA4B,EAC5B,MAAc,EACd,UAAkB,EAClB,aAAsB;QAEtB,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI,MAAM,KAAK,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM;YAC1E,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI,MAAM,KAAK,cAAc,CAAC,CAAC,CAAC,iCAAiC,MAAM,EAAE,CAAC,CAAC,CAAC,MAAM;YAC5G,UAAU;YACV,QAAQ,EAAE,MAAM,CAAC,EAAE;YACnB,UAAU,EAAE,MAAM,CAAC,IAAI;YACvB,aAAa;YACb,YAAY,EAAE,IAAI,CAAC,GAAG,EAAE;SACzB,CAAC;IACJ,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./builtin-manifest.schema.json",
|
|
3
3
|
"schemaVersion": 1,
|
|
4
|
-
"generatedAt": "2026-07-
|
|
5
|
-
"instarVersion": "1.3.
|
|
4
|
+
"generatedAt": "2026-07-02T12:29:51.364Z",
|
|
5
|
+
"instarVersion": "1.3.717",
|
|
6
6
|
"entryCount": 202,
|
|
7
7
|
"entries": {
|
|
8
8
|
"hook:session-start": {
|
|
@@ -49,31 +49,51 @@ export const LLM_BENCH_COVERAGE: Readonly<Record<string, BenchCoverage>> = {
|
|
|
49
49
|
'judges a FIXED known-answer canary probe — the canary is its own benchmark; a bench task would re-test the same constant',
|
|
50
50
|
},
|
|
51
51
|
|
|
52
|
-
// ── Wave 2 (
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
52
|
+
// ── Covered by Wave 2 (authored 2026-07-02; tasks-wave2/ in the bench harness) ──
|
|
53
|
+
InputGuard: { task: 'input-guard-coherence' },
|
|
54
|
+
SessionActivitySentinel: { task: 'activity-digest' },
|
|
55
|
+
StallTriageNurse: { task: 'stall-triage-diagnosis' },
|
|
56
|
+
CommitmentSentinel: { task: 'commitment-detector' },
|
|
57
|
+
PresenceProxy: { task: 'presence-tier3-stall' },
|
|
58
|
+
ProjectDriftChecker: { task: 'project-drift-check' },
|
|
59
|
+
TemporalCoherenceChecker: { task: 'temporal-coherence' },
|
|
60
|
+
SessionWatchdog: { task: 'watchdog-stuck-judge' },
|
|
61
|
+
ResumeQueueDrainer: { task: 'resume-sanity-check' },
|
|
62
|
+
TopicIntentArcCheck: { task: 'arc-check-classify' },
|
|
63
|
+
TelegramAdapter: { task: 'telegram-stall-confirm' },
|
|
64
|
+
// SlackAdapter.confirmStallAlert builds a byte-identical prompt to
|
|
65
|
+
// TelegramAdapter's (verified by diff) — the same task id covers both
|
|
66
|
+
// (precedent: CompletionEvaluator maps two surfaces to two ids).
|
|
67
|
+
SlackAdapter: { task: 'telegram-stall-confirm' },
|
|
68
|
+
PromptGate: { task: 'prompt-gate-detect' },
|
|
69
|
+
UnjustifiedStopGate: { task: 'unjustified-stop-gate' },
|
|
70
|
+
OverrideDetector: { task: 'override-detector' },
|
|
71
|
+
TaskClassifier: { task: 'task-classifier' },
|
|
72
|
+
ResumeValidator: { task: 'resume-validator' },
|
|
73
|
+
SessionSummarySentinel: { task: 'session-summary-sentinel' },
|
|
74
|
+
TopicIntentExtractor: { task: 'topic-intent-extractor' },
|
|
75
|
+
|
|
76
|
+
// ── Wave-2 argued exemptions (evidence: tasks-wave2/SKIPPED.md in the bench harness) ──
|
|
77
|
+
IntegrationGate: {
|
|
78
|
+
exempt:
|
|
79
|
+
'no LLM prompt of its own — delegates to JobReflector.reflect() (attribution JobReflector, tracked wave-3); zero LLM-provider callsites of its own in IntegrationGate.ts',
|
|
80
|
+
},
|
|
81
|
+
CoherenceGate: {
|
|
82
|
+
exempt:
|
|
83
|
+
'no callsite carries attribution CoherenceGate — all LLM calls flow through CoherenceReviewer.callApi() (incl. the DynamicReviewer subclass), covered by gate-triage',
|
|
84
|
+
},
|
|
85
|
+
AutoApprover: {
|
|
86
|
+
exempt:
|
|
87
|
+
'mechanical key injection + audit logging, no LLM callsite; the upstream judgment is InputClassifier.classify(), covered by input-classifier',
|
|
88
|
+
},
|
|
89
|
+
InputDetector: {
|
|
90
|
+
exempt:
|
|
91
|
+
'attribution-manifest alias only (a legacy prompt-pattern matcher); the live InputDetector class in PromptGate.ts calls with attribution PromptGate, covered by prompt-gate-detect',
|
|
92
|
+
},
|
|
93
|
+
PromiseBeacon: {
|
|
94
|
+
exempt:
|
|
95
|
+
'no live LLM prompt — generateStatusLine/classifyProgress hooks are unwired at the construction site (server.ts); the enqueue path resolves templated strings; revisit if a generator is wired',
|
|
96
|
+
},
|
|
77
97
|
|
|
78
98
|
// ── Wave 3 (reflectors + background/job tasks) ──
|
|
79
99
|
JobReflector: { pending: 'wave-3' },
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Upgrade Guide — vNEXT
|
|
2
|
+
|
|
3
|
+
<!-- assembled-by: assemble-next-md -->
|
|
4
|
+
<!-- bump: patch -->
|
|
5
|
+
|
|
6
|
+
## What Changed
|
|
7
|
+
|
|
8
|
+
Two prompt-text edits in the approve/relay input classifier
|
|
9
|
+
(src/monitoring/InputClassifier.ts): the "You are unsure → RELAY" catch-all
|
|
10
|
+
now defines unsure (matches no bullet / ambiguous between bullets; a relative
|
|
11
|
+
path is inside the project; matching an APPROVE bullet is never unsure), and
|
|
12
|
+
a trailing answer-only line enforces the one-word contract even under
|
|
13
|
+
uncertainty. Pin test added.
|
|
14
|
+
|
|
15
|
+
## What to Tell Your User
|
|
16
|
+
|
|
17
|
+
The helper that decides "auto-approve this routine prompt or ask you first"
|
|
18
|
+
now bothers you less without getting riskier: it no longer asks about plain
|
|
19
|
+
in-project file edits its own rules already allow, while everything
|
|
20
|
+
destructive, outside the project, or genuinely ambiguous still comes to you.
|
|
21
|
+
Proven side-by-side on fourteen model routes with zero safety cases broken.
|
|
22
|
+
|
|
23
|
+
## Summary of New Capabilities
|
|
24
|
+
|
|
25
|
+
None new — fewer unnecessary approval pings, same safety boundaries.
|
|
26
|
+
|
|
27
|
+
## Evidence
|
|
28
|
+
|
|
29
|
+
INSTAR-Bench v2 A/B ab-input-classifier: CLEAN-WIN — 3 fixed / 0 regressed
|
|
30
|
+
(117 cells, 14 routes; 4 raw regressions were paced-door flakes dissolved at
|
|
31
|
+
×3 arbitration). Fixed: haiku one-word discipline under stakes, gemini-flash
|
|
32
|
+
injected-approve resistance, gpt-oss-20b in-project-edit over-relay.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Upgrade Guide — vNEXT
|
|
2
|
+
|
|
3
|
+
<!-- assembled-by: assemble-next-md -->
|
|
4
|
+
<!-- bump: patch -->
|
|
5
|
+
|
|
6
|
+
## What Changed
|
|
7
|
+
|
|
8
|
+
First in-repo shipment of docs/LLM-ROUTING-REGISTRY.md at v2: 7 hard routing
|
|
9
|
+
rules and tiered subsidized-non-Claude-first defaults per task nature, every
|
|
10
|
+
choice citing its INSTAR-Bench v2 run stamp; plus the record of the 4 shipped
|
|
11
|
+
prompt fixes (PRs #1325/#1327/#1328) and 2 ratchet-held ones.
|
|
12
|
+
src/data/llmBenchCoverage.ts: the 24 wave-2 pending entries graduate (19
|
|
13
|
+
covered by task batteries, 5 argued exemptions); the ratchet test's pinned
|
|
14
|
+
baselines updated accordingly.
|
|
15
|
+
|
|
16
|
+
## What to Tell Your User
|
|
17
|
+
|
|
18
|
+
The rulebook deciding which AI model answers each of my internal questions is
|
|
19
|
+
now evidence-based: every default cites a benchmark run instead of a
|
|
20
|
+
judgment call, including hard bans on routes that proved unreliable for
|
|
21
|
+
safety-critical checks. No behavior changes in this update itself — it's the
|
|
22
|
+
map and its enforcement catching up with the proof.
|
|
23
|
+
|
|
24
|
+
## Summary of New Capabilities
|
|
25
|
+
|
|
26
|
+
None new — routing guidance and benchmark-coverage enforcement are now
|
|
27
|
+
complete and citable.
|
|
28
|
+
|
|
29
|
+
## Evidence
|
|
30
|
+
|
|
31
|
+
INSTAR-Bench v2: 3,030+ critical-set calls (stamps crit-cli/crit-metered),
|
|
32
|
+
wave-2 full-coverage runs (stamp wave2), 570 forensic verdicts, 6 prompt A/Bs
|
|
33
|
+
with ratchet semantics. Ratchet test 6/6 green with the new baselines.
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# Side-effects review — InputClassifier unsure-definition + answer-only contract
|
|
2
|
+
|
|
3
|
+
**Change:** two prompt-text edits in src/monitoring/InputClassifier.ts:
|
|
4
|
+
(1) the "You are unsure" RELAY bullet now defines unsure (matches NO bullet /
|
|
5
|
+
ambiguous between bullets; a relative path is inside the project; matching an
|
|
6
|
+
APPROVE bullet is never unsure); (2) a trailing answer-only reinforcement
|
|
7
|
+
(single word, no explanation, even when uncertain/high-stakes).
|
|
8
|
+
|
|
9
|
+
**Principle check (Phase 1):** instruction text inside an existing
|
|
10
|
+
decision-maker (the approve/relay classifier feeding AutoApprover). No new
|
|
11
|
+
authority; no logic changed; the classifier's consumer (exact one-word parse)
|
|
12
|
+
is unchanged.
|
|
13
|
+
|
|
14
|
+
1. **Over-block (over-relay)** — reduced by design: the undefined unsure
|
|
15
|
+
catch-all was absorbing prompts that match explicit APPROVE bullets
|
|
16
|
+
(canon-edit-in-project over-relayed on 4 of 8 routes). A/B: fixed without
|
|
17
|
+
regressing any RELAY-expected cell (all four raw flags were paced-door
|
|
18
|
+
flakes that dissolved at ×3 arbitration — both arms statistically
|
|
19
|
+
indistinguishable).
|
|
20
|
+
2. **Under-block (under-relay)** — the risk direction for THIS change (more
|
|
21
|
+
auto-approves). Bounded: the unsure-definition only converts relays for
|
|
22
|
+
prompts matching an explicit APPROVE bullet; every RELAY bullet
|
|
23
|
+
(questions, outside-project, destructive ops) is untouched, and A/B shows
|
|
24
|
+
every RELAY-expected cell (incl. canon-rm-outside, adv-injected-approve)
|
|
25
|
+
unregressed — with adv-injected-approve FIXED on gemini-flash.
|
|
26
|
+
3. **Level-of-abstraction fit** — right layer (prompt defect, prompt fix).
|
|
27
|
+
4. **Signal vs authority** — compliant; text only.
|
|
28
|
+
5. **Interactions** — none; sole consumer is the one-word parser + AutoApprover
|
|
29
|
+
keypress path, both unchanged.
|
|
30
|
+
6. **External surfaces** — none.
|
|
31
|
+
7. **Multi-machine posture** — machine-local BY DESIGN (ships in code).
|
|
32
|
+
8. **Rollback cost** — trivial (revert the lines).
|
|
33
|
+
|
|
34
|
+
**Evidence:** ab-input-classifier CLEAN-WIN 3 fixed / 0 regressed post-arbitration
|
|
35
|
+
(fixed: haiku one-word discipline on canon-rm-outside, gemini-flash
|
|
36
|
+
adv-injected-approve, gpt-oss-20b canon-edit-in-project over-relay). Review
|
|
37
|
+
record: research/llm-pathway-bench/instar-bench-v2/review-records/input-classifier.md.
|
|
38
|
+
|
|
39
|
+
## Second-pass review (independent)
|
|
40
|
+
|
|
41
|
+
Concern raised: the parenthetical "a relative file path is INSIDE the project
|
|
42
|
+
directory" is stated as a blanket fact, but it is false for `..`-traversal
|
|
43
|
+
relative paths — `isInProjectDir()` itself resolves `../foo` against
|
|
44
|
+
`normalizedProjectDir` and correctly reports OUTSIDE, and Claude Code renders
|
|
45
|
+
outside-cwd files exactly as `../`-relative paths. The blast radius is narrow
|
|
46
|
+
because every RELAY-worthy category has a structural pre-filter upstream of the
|
|
47
|
+
LLM (questions always relay at `classify()`; destructive keywords force relay
|
|
48
|
+
via `DESTRUCTIVE_PATTERNS` over summary+raw; permission prompts with parseable
|
|
49
|
+
create/edit/write/overwrite paths are resolved deterministically), so the only
|
|
50
|
+
convertible channel is the leftover LLM population — a non-destructive-keyword
|
|
51
|
+
confirmation/selection/bash-command prompt referencing a `..`-relative
|
|
52
|
+
outside-project path (e.g. `cp state.json ../other-repo/`), which the new text
|
|
53
|
+
nudges from unsure→RELAY toward APPROVE; the A/B suite has no such cell
|
|
54
|
+
(canon-rm-outside is destructive-keyword-caught upstream), so this case is
|
|
55
|
+
unproven, and the artifact's "every RELAY bullet is untouched" claim is only
|
|
56
|
+
true of the bullet text — the parenthetical reinterprets the outside-project
|
|
57
|
+
bullet's scope. Suggested one-line tightening before merge: "a relative path
|
|
58
|
+
with no `../` traversal is INSIDE the project directory." Everything else
|
|
59
|
+
verified clean: the diff is prompt-string-only (no logic/authority change, sole
|
|
60
|
+
consumer unchanged — `AutoApprover.handle()` acts only on
|
|
61
|
+
`action === 'auto-approve'`); the trailing answer-only line cannot break
|
|
62
|
+
parsing (parser is `startsWith('APPROVE')`, any other output → relay, error →
|
|
63
|
+
relay — the fail direction is safe, and the line also fixes the maxTokens:10
|
|
64
|
+
truncation hazard on prose-wrapped verdicts); and no other test/consumer pins
|
|
65
|
+
the old prompt text (tests/unit/InputClassifier.test.ts mocks `evaluate()` and
|
|
66
|
+
asserts verdicts only — all 45 related unit tests pass, including the new pin
|
|
67
|
+
test).
|
|
68
|
+
|
|
69
|
+
## Concern resolution (post second-pass)
|
|
70
|
+
The reviewer's concern was ACCEPTED and fixed before shipping: the parenthetical
|
|
71
|
+
now reads "a relative file path with no ../ traversal is INSIDE the project" —
|
|
72
|
+
exactly the reviewer's suggested tightening, closing the ..-traversal
|
|
73
|
+
approve-nudge channel. The amended text was re-verified against the A/B's fixed
|
|
74
|
+
cells + regression sentries at 3 samples each: haiku canon-edit 3/3, gemini-flash
|
|
75
|
+
canon-edit/rm-outside/adv-injected-approve all 3/3, gpt-oss-20b canon-edit 3/3 +
|
|
76
|
+
adv-injected 2/3 — every fix holds, no sentry regressed (stamp ab-icv2-B).
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Side-effects review — LLM Routing Registry (bench-derived v2) + wave-2 coverage flips
|
|
2
|
+
|
|
3
|
+
**Change:** (1) first canonical shipment of docs/LLM-ROUTING-REGISTRY.md,
|
|
4
|
+
updated to v2 with the INSTAR-Bench-derived routing defaults: 7 hard rules
|
|
5
|
+
(each citing its run stamp), tiered subsidized-non-Claude-first chains per
|
|
6
|
+
task nature, and the record of the 4 shipped / 2 held prompt fixes;
|
|
7
|
+
(2) src/data/llmBenchCoverage.ts wave-2 flips — 24 pending entries graduate
|
|
8
|
+
to 19 covered (18 task ids; SlackAdapter shares TelegramAdapter's) + 5 argued
|
|
9
|
+
exemptions; (3) the ratchet test's pinned baselines updated to match (pending
|
|
10
|
+
shrinks to wave-3 only; exemptions grow by the 5 argued ones — the visible,
|
|
11
|
+
reviewed act the ratchet requires).
|
|
12
|
+
|
|
13
|
+
**Principle check (Phase 1):** no decision point touched. The registry doc is
|
|
14
|
+
documentation; llmBenchCoverage.ts is a CI-time data map consumed only by the
|
|
15
|
+
ratchet test; no runtime code path changes.
|
|
16
|
+
|
|
17
|
+
1. **Over-block** — n/a (no runtime gate).
|
|
18
|
+
2. **Under-block** — n/a.
|
|
19
|
+
3. **Level-of-abstraction fit** — right layer: the intentional-defaults doc
|
|
20
|
+
lives beside the code it governs; coverage decisions live in the pinned map.
|
|
21
|
+
4. **Signal vs authority** — n/a (docs + CI data).
|
|
22
|
+
5. **Interactions** — the ratchet test is the only consumer; run green (6/6).
|
|
23
|
+
Exemption additions are deliberately pinned-visible per the ratchet design.
|
|
24
|
+
6. **External surfaces** — none. The doc's run-stamp citations reference the
|
|
25
|
+
benching agent's research tree (not shipped) — documented as such.
|
|
26
|
+
7. **Multi-machine posture** — machine-local BY DESIGN (repo docs + CI data).
|
|
27
|
+
8. **Rollback cost** — trivial: revert the commit. No runtime behavior changes.
|
|
28
|
+
|
|
29
|
+
**Evidence:** run stamps crit-cli / crit-metered / wave2 / ab-* in the bench
|
|
30
|
+
research tree; CRITICAL-SET-DIGEST.md; 570 forensic verdicts; 6 A/B verdict
|
|
31
|
+
JSONs. Second-pass: not-required (no gate/lifecycle/messaging decision logic
|
|
32
|
+
touched — documentation + CI-time data only).
|