mirror of
https://github.com/garrytan/gstack.git
synced 2026-10-03 18:06:54 +02:00
test(autoplan-dual-voice): the fixture declares that delivered bash blocks run alone, diagnostics separately
This commit is contained in:
1 parent
2734e2035c
commit
190e650d97
2 files changed
+5
-3
No files matched your search
@@ -64,7 +64,8 @@ mock.module(${JSON.stringify(path.join(ROOT, 'test/helpers/session-runner.ts'))}
|
|||||||
noPriorReview: actualPlan.split('## Review record')[1].trim() === '',
|
noPriorReview: actualPlan.split('## Review record')[1].trim() === '',
|
||||||
originalRestore: fs.readFileSync(path.join(opts.env.HOME, 'restore.md'), 'utf8') === fs.readFileSync(plan, 'utf8'),
|
originalRestore: fs.readFileSync(path.join(opts.env.HOME, 'restore.md'), 'utf8') === fs.readFileSync(plan, 'utf8'),
|
||||||
currentInput: actualPlan.includes(fs.readFileSync(plan, 'utf8')),
|
currentInput: actualPlan.includes(fs.readFileSync(plan, 'utf8')),
|
||||||
hasActualRanges: /ranges: \\[\\{\"offset\":1,\"limit\":/.test(entry)},
|
hasActualRanges: /ranges: \\[\\{\"offset\":1,\"limit\":/.test(entry),
|
||||||
|
blocksAsDelivered: entry.includes('Run each bash block below as\\ndelivered, alone in one Bash call; run any extra diagnostics as separate calls.')},
|
||||||
timeout: opts.timeout, maxTurns: opts.maxTurns,
|
timeout: opts.timeout, maxTurns: opts.maxTurns,
|
||||||
allowedTools: opts.allowedTools, tools: opts.tools,
|
allowedTools: opts.allowedTools, tools: opts.tools,
|
||||||
appendedPrompt: opts.appendSystemPrompt, model: opts.model,
|
appendedPrompt: opts.appendSystemPrompt, model: opts.model,
|
||||||
@@ -255,7 +256,7 @@ await import(${JSON.stringify(path.join(ROOT, 'test/skill-e2e-autoplan-dual-voic
|
|||||||
expect(attempt.initial).toBe(ORIGINAL_PLAN);
|
expect(attempt.initial).toBe(ORIGINAL_PLAN);
|
||||||
expect(attempt.prompt).toBe(`Read ${JSON.stringify(attempt.entryPath)} and execute the standalone CEO dual-voice review described there.`);
|
expect(attempt.prompt).toBe(`Read ${JSON.stringify(attempt.entryPath)} and execute the standalone CEO dual-voice review described there.`);
|
||||||
expect(attempt.entryPath).toBe(path.join(attempt.env.HOME, 'ceo-dual-entry.md'));
|
expect(attempt.entryPath).toBe(path.join(attempt.env.HOME, 'ceo-dual-entry.md'));
|
||||||
expect(attempt.entry).toEqual({exactDual: true, exactPreflight: true, scopeDeclared: true, noPriorReview: true, originalRestore: true, currentInput: true, hasActualRanges: true});
|
expect(attempt.entry).toEqual({exactDual: true, exactPreflight: true, scopeDeclared: true, noPriorReview: true, originalRestore: true, currentInput: true, hasActualRanges: true, blocksAsDelivered: true});
|
||||||
expect(attempt.timeout).toBe(600_000);
|
expect(attempt.timeout).toBe(600_000);
|
||||||
expect(attempt.maxTurns).toBe(40);
|
expect(attempt.maxTurns).toBe(40);
|
||||||
expect(attempt.allowedTools).toEqual(['Bash', 'Read', 'Write', 'Edit', 'Grep', 'Glob', 'Agent', 'Skill']);
|
expect(attempt.allowedTools).toEqual(['Bash', 'Read', 'Write', 'Edit', 'Grep', 'Glob', 'Agent', 'Skill']);
|
||||||
|
|||||||
@@ -199,7 +199,8 @@ Before dispatch, Read the bound methodology file completely using these actual
|
|||||||
ranges: ${JSON.stringify(methodology.readRanges)}. They contain the full current
|
ranges: ${JSON.stringify(methodology.readRanges)}. They contain the full current
|
||||||
CEO methodology, not an abridged test rubric. Then execute the following exact
|
CEO methodology, not an abridged test rubric. Then execute the following exact
|
||||||
current preflight and dual-voice section; preserve its native completion barrier,
|
current preflight and dual-voice section; preserve its native completion barrier,
|
||||||
input binding, outside fallback and consensus rules.
|
input binding, outside fallback and consensus rules. Run each bash block below as
|
||||||
|
delivered, alone in one Bash call; run any extra diagnostics as separate calls.
|
||||||
|
|
||||||
${principles}${preflight}${dual}`, { mode: 0o444, flag: 'wx' });
|
${principles}${preflight}${dual}`, { mode: 0o444, flag: 'wx' });
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user