Skip to content

Commit b04cb40

Browse files
committed
fix: showcase Turns-left counts DOWN + tracing log on tail-mode pick
User: "Turns left needs to decrease, not increase." - scripts/live.ts: emu.context_update now emits a DECREASING turn_estimate (200 → 12 over ~270 iterations of the showcase loop). The previous `25 + Math.floor(iter/4)` counted UP — opposite of what "turns left" means. - inspector/src/lib.rs::default_command: tracing::info! when bare \`enchanter\` picks tail mode, naming the file path. Operators can grep \`%LOCALAPPDATA%/enchanter/inspector.log\` to confirm which mode the cockpit boot picked — clears up "is this real data?" uncertainty without restarting.
1 parent 8a06511 commit b04cb40

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

inspector/src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,13 @@ fn default_command() -> Command {
189189
let hooks_wired_up = hook_jsonl.exists()
190190
|| hook_jsonl.parent().map(|p| p.is_dir()).unwrap_or(false);
191191
if hooks_wired_up {
192+
// Log so users can grep ~/.cache/enchanter/inspector.log to confirm
193+
// which mode bare `enchanter` picked — useful when troubleshooting
194+
// "is this real or showcase data" without restarting the binary.
195+
tracing::info!(
196+
path = %hook_jsonl.display(),
197+
"default_command: hooks wired up — tailing real Claude Code stream"
198+
);
192199
return Command::Inspect(InspectArgs {
193200
tail: Some(hook_jsonl),
194201
..InspectArgs::default()

scripts/live.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,13 @@ async function main(): Promise<void> {
295295
await client.bus.publish('emu.context_update', {
296296
phase: 'pre-dispatch',
297297
source: 'emu',
298-
payload: { context_size: 12000 + iter * 50, turn_estimate: 25 + Math.floor(iter / 4) },
298+
// Turns LEFT — start at a 200-turn budget and decrement. Floor
299+
// at 12 so the cockpit never shows 0 (sessions usually wrap up
300+
// earlier than that and emu's CI band acknowledges uncertainty).
301+
payload: {
302+
context_size: 12000 + iter * 50,
303+
turn_estimate: Math.max(12, 200 - Math.floor(iter * 0.7)),
304+
},
299305
});
300306
await client.bus.publish('crow.trust.scored', {
301307
phase: 'trust-gate',

0 commit comments

Comments
 (0)