test: delete tests of dead eval code (A)

- A1: the retired Eng lexical oracle (evaluateEngSeedCoverage,
  isEngSeedDecisionAUQ), the completion-handoff detector and the retained
  corpus had no paid caller since v1.87.6; delete their 26 replay files,
  ~2.6k helper LOC and fixtures, and the dead blocks in 8 mixed files
  (live hasNativePlanTerminal / batching assertions stay).
- A2: dead viewport approvers in autoplan-artifact-permission and their 11
  replay files + fixtures; recorder/launcher cases stay.
- A3: never-wired oracles and seeders (autoplan-phase-order,
  eng-finding-fixture, ceo-paired-fixture, design-ui-scope,
  plan-skill-completion, pty-current-screen, required-reads,
  transcript-section-logger); plan-seed-submission now decodes through the
  production createPtyScreen; section manifests name their actual guard.
- A4: zero-reference helper exports, plus execGit and invokeAndObserve
  found by the reachability pass.
- 52 fixtures orphaned by the deletions; touchfile and selection-table
  entries for every deleted path.
This commit is contained in:
garrytan committed 2026-09-29 05:09:36 +00:00
1 parent 5ec930d569
commit 5d032ef299
156 files changed
+107 -32055

No files matched your search

+5 -5
View File
@@ -3,7 +3,7 @@ import * as fs from 'node:fs';
import * as os from 'node:os';
import * as path from 'node:path';
import { submitPlanSeed, PlanSeedTimeout } from './helpers/plan-seed-submission';
import { PtyCurrentScreen } from './helpers/pty-current-screen';
import { createPtyScreen } from './helpers/pty-screen';
import { launchClaudePty, runPlanSkillObservation, isProseAUQVisible, isNumberedOptionListVisible, isPermissionDialogVisible } from './helpers/claude-pty-runner';
// A real PTY process consumes the actual paste/Enter/slash bytes and publishes
@@ -25,12 +25,12 @@ for (const scenario of ['success', 'completed-tool', 'status-updating', 'history
const dir = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), 'plan-seed-')));
const config = path.join(dir, '.claude'); fs.mkdirSync(config);
const script = path.join(dir, 'cli.ts'); fs.writeFileSync(script, CLI);
const decoder = new PtyCurrentScreen({ cols: 120, rows: 40 });
const decoder = await createPtyScreen(120, 40);
let raw = '', exited = false;
const launchedAt = Date.now();
const proc = Bun.spawn([process.execPath, script], {
cwd: dir, env: { ...process.env, CLAUDE_CONFIG_DIR: config, SEED_CASE: scenario },
terminal: { cols: 120, rows: 40, data(_terminal, data) { const s = Buffer.from(data).toString(); raw += s; decoder.feed(s); } },
terminal: { cols: 120, rows: 40, data(_terminal, data) { const s = Buffer.from(data).toString(); raw += s; decoder.write(s); } },
onExit() { exited = true; },
});
const sent: string[] = [];
@@ -39,7 +39,7 @@ for (const scenario of ['success', 'completed-tool', 'status-updating', 'history
send(s: string) { sent.push(s); proc.terminal!.write(s); },
sendKey(key: string) { expect(key).toBe('Enter'); sent.push('\r'); proc.terminal!.write('\r'); },
mark: () => raw.length,
currentScreen: async () => { const mark = raw.length; const frame = await decoder.snapshot();
currentScreen: async () => { const mark = raw.length; const frame = await decoder.readFrame();
if (scenario === 'startup-fresh-waiting') {
const statusFile = path.join(config, 'sessions', `${proc.pid}.json`);
const status = JSON.parse(fs.readFileSync(statusFile, 'utf8'));
@@ -79,7 +79,7 @@ for (const scenario of ['success', 'completed-tool', 'status-updating', 'history
} finally {
if (!exited) proc.kill();
await proc.exited;
proc.terminal?.close(); decoder.dispose();
proc.terminal?.close(); await decoder.dispose();
fs.rmSync(dir, { recursive: true, force: true });
}
}, 6000);