[Core] Final user-optimized system prompt (v2.76.9) and test alignment
This commit is contained in:
@@ -1,21 +1,29 @@
|
||||
import { getSystemPrompt } from '../src/utils';
|
||||
|
||||
describe('base system prompt', () => {
|
||||
it('requires local project paths to be inspected before upload requests', () => {
|
||||
it('requires local project paths to be inspected immediately', () => {
|
||||
const prompt = getSystemPrompt();
|
||||
|
||||
expect(prompt).toContain('Local Path Handling Rule');
|
||||
expect(prompt).toContain('inspect the path before asking for uploads');
|
||||
expect(prompt).toContain('Do not say "upload the source code"');
|
||||
expect(prompt).toContain('For code review requests, first confirm path access');
|
||||
expect(prompt).toContain('[LOCAL PATH RULE]');
|
||||
expect(prompt).toContain('use <list_files> or <read_file> immediately');
|
||||
expect(prompt).toContain('Never say "upload the source code"');
|
||||
});
|
||||
|
||||
it('gives Astra a stance instead of only response structure', () => {
|
||||
const prompt = getSystemPrompt();
|
||||
|
||||
expect(prompt).toContain('[PROFESSIONAL STANCE & THINKING]');
|
||||
expect(prompt).toContain('local operating partner');
|
||||
expect(prompt).toContain('engineering judgment');
|
||||
expect(prompt).toContain('If the answer starts sounding like a checklist');
|
||||
expect(prompt).toContain('[CORE BEHAVIOR]');
|
||||
expect(prompt).toContain('[ENGINEERING STANCE]');
|
||||
expect(prompt).toContain('Technical precision over polite filler');
|
||||
expect(prompt).toContain('Collapse checklists into: verdict → reason → risk → next move');
|
||||
});
|
||||
|
||||
it('defines clear interaction and formatting rules', () => {
|
||||
const prompt = getSystemPrompt();
|
||||
|
||||
expect(prompt).toContain('[STRICT GLOBAL RULES]');
|
||||
expect(prompt).toContain('[OUTPUT FORMAT]');
|
||||
expect(prompt).toContain('[FOLLOW-UP QUESTION RULES]');
|
||||
expect(prompt).toContain('Ask ONE focused question at the very end');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user