mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-09 14:38:59 +02:00
fix(test): drop stale generate-lake-intro import (generator deleted in the emission-layer move)
Sol scope discipline stays pinned via the model overlay + completeness section; the lake intro is now a single script-emitted blurb. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
07b225a40c
commit
3bc3b5d5f9
@@ -2,7 +2,6 @@ import { describe, expect, test } from 'bun:test';
|
||||
import { resolveModel } from '../scripts/models';
|
||||
import { generateModelOverlay, readOverlay } from '../scripts/resolvers/model-overlay';
|
||||
import { generateCompletenessSection } from '../scripts/resolvers/preamble/generate-completeness-section';
|
||||
import { generateLakeIntro } from '../scripts/resolvers/preamble/generate-lake-intro';
|
||||
import { generateSetupCommand } from '../scripts/resolvers/utility';
|
||||
import type { TemplateContext } from '../scripts/resolvers/types';
|
||||
|
||||
@@ -49,24 +48,23 @@ describe('GPT-5.6 Sol model profile', () => {
|
||||
expect(out).toContain('Never use this patch to skip a concrete requirement');
|
||||
});
|
||||
|
||||
test('completeness and first-run copy stay inside the explicit task boundary', () => {
|
||||
// The lake intro moved from a per-model render-time generator into
|
||||
// bin/gstack-skill-start's one-time emission layer (token-reduction Phase 2).
|
||||
// Sol's scope discipline is carried by the model overlay + completeness
|
||||
// section (both still model-conditional and pinned here); the intro itself
|
||||
// is a single display-once blurb emitted by the script.
|
||||
test('completeness copy stays inside the explicit task boundary', () => {
|
||||
const completeness = generateCompletenessSection(ctx('gpt-5.6-sol'));
|
||||
const intro = generateLakeIntro(ctx('gpt-5.6-sol'));
|
||||
expect(completeness).toContain("inside the user's explicit task boundary");
|
||||
expect(completeness).toContain('report them, do not implement them');
|
||||
expect(completeness).toContain('all relevant in-scope edge cases');
|
||||
expect(intro).toContain("within the user's explicit task boundary");
|
||||
expect(intro).toContain('Do not widen that boundary');
|
||||
});
|
||||
|
||||
test('generic GPT copy remains unchanged', () => {
|
||||
const generic = generateModelOverlay(ctx('gpt'));
|
||||
const completeness = generateCompletenessSection(ctx('gpt'));
|
||||
const intro = generateLakeIntro(ctx('gpt'));
|
||||
expect(generic).toContain('make your best judgment and proceed');
|
||||
expect(completeness).toContain('the complete thing is the goal');
|
||||
expect(intro).toContain('do the complete thing when AI makes marginal cost near-zero');
|
||||
expect(intro).not.toContain('Do not widen that boundary');
|
||||
});
|
||||
|
||||
test('terse mode still suppresses the completeness section for Sol', () => {
|
||||
|
||||
Reference in New Issue
Block a user