mirror of
https://github.com/garrytan/gstack.git
synced 2026-10-05 02:47:17 +02:00
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:
1 parent
5ec930d569
commit
5d032ef299
156 files changed
+107
-32055
No files matched your search
@@ -54,20 +54,6 @@ export function seedCeoPaymentProject(projectDir: string, plan: string): void {
|
||||
git(['update-ref', 'refs/remotes/origin/main', 'HEAD']);
|
||||
}
|
||||
|
||||
/** Materialized documentation for the revised synthetic DX baseline. The SDK
|
||||
* implementation is deliberately absent; this does not run or install it. */
|
||||
export function seedDevexReviewProject(projectDir: string, plan: string): void {
|
||||
seedPlanReviewProject(projectDir, plan, 'plan-devex-review');
|
||||
const fixture = path.resolve(import.meta.dir, '../fixtures/devex-existing-sdk');
|
||||
const files = ['README.md', 'docs/getting-started.md', 'docs/feedback.md', 'docs/reference-v1.md'];
|
||||
fs.mkdirSync(path.join(projectDir, 'docs'));
|
||||
for (const file of files) fs.copyFileSync(path.join(fixture, file), path.join(projectDir, file));
|
||||
const git = (args: string[]) => execFileSync('git', args, { cwd: projectDir, stdio: 'pipe', timeout: 10_000 });
|
||||
git(['add', ...files]);
|
||||
git(['-c', 'user.name=Finding fixture', '-c', 'user.email=fixture@gstack.test', 'commit', '-m', 'Seed synthetic SDK documentation']);
|
||||
git(['update-ref', 'refs/remotes/origin/main', 'HEAD']);
|
||||
}
|
||||
|
||||
export function seedPlanReviewProject(projectDir: string, plan: string, skill: 'plan-ceo-review' | 'plan-eng-review' | 'plan-design-review' | 'plan-devex-review', design?: string): void {
|
||||
if (!fs.lstatSync(projectDir).isDirectory() || fs.readdirSync(projectDir).length !== 0) {
|
||||
throw new Error('Plan review fixture requires a fresh private directory');
|
||||
|
||||
Reference in new issue
Block a user