mirror of
https://github.com/garrytan/gstack.git
synced 2026-10-03 01:46:55 +02:00
test: derive paid touchfiles from each eval's static closure (E)
touchfiles.test.ts now checks, per key, that the paid file's static test/helpers and test/fixtures closure (plus fixture paths it names in string literals) is covered, and names the file, path, chain and key to fix when it is not. Free *.test.ts files are no longer touchfiles, so editing a free replay test stops selecting paid evals: 950 entries removed, 653 real closure paths added. The hand-copied inventories go: periodic-fixture-selection, fake-impeccable-touchfiles and 45 per-file selection examples. Selection for the sample edits (plan-eng-review template, claude-pty-runner, plan-count-fixture, gstack-config) loses no case under either profile. CONTRIBUTING documents the rule and its lower bound.
This commit is contained in:
1 parent
689ef3094b
commit
7cbb5e04e4
53 files changed
+627
-1873
No files matched your search
@@ -20,9 +20,6 @@ import os_ceo_handoff_y from 'node:os';
|
||||
import path_ceo_handoff_y from 'node:path';
|
||||
import fixture_ceo_handoff_y from './fixtures/ceo-handoff-y-call.json';
|
||||
import captured_dx_manual_handoff_ao from './fixtures/dx-manual-handoff-ao.json';
|
||||
import { E2E_TOUCHFILES } from './helpers/touchfiles-data';
|
||||
import { LLM_JUDGE_TOUCHFILES } from './helpers/touchfiles-data';
|
||||
import { GLOBAL_TOUCHFILES } from './helpers/touchfiles-data';
|
||||
import fixture_plan_count_dx_handoff_o from './fixtures/devex-handoff-o-call.json';
|
||||
import actual_eng_next_handoff_ah from './fixtures/eng-next-handoff-ah.json';
|
||||
import { isCurrentPlanApprovalScreen } from './helpers/plan-count-pending-exit';
|
||||
@@ -1148,11 +1145,6 @@ function change(call:NativePlanQuestionCall,from:string,to:string){
|
||||
const selected=call.answers![q.question];q.question=q.question.replace(from,to);call.answers={[q.question]:selected!};
|
||||
}
|
||||
describe('AO completed manual DX handoff preserves report freshness',()=>{
|
||||
test('shared completion callers register the regression with dense literal paths',()=>{
|
||||
const arrays=[...Object.values(E2E_TOUCHFILES),...Object.values(LLM_JUDGE_TOUCHFILES),GLOBAL_TOUCHFILES];
|
||||
expect(arrays).toHaveLength(216);
|
||||
for(const values of arrays)for(let i=0;i<values.length;i++)expect(typeof values[i]).toBe('string');
|
||||
});
|
||||
test('exact owned report precedes navigation only, with the current Exit gate recognized',()=>{
|
||||
expect(captured.calls).toHaveLength(2);expect(captured.events).toHaveLength(4);
|
||||
expect(Date.parse(captured.calls[0]!.answeredAt!)).toBeLessThan(captured.provenance.reportMtimeMs);
|
||||
|
||||
Reference in new issue
Block a user