Add married disclosure chat experiment
This commit is contained in:
1 parent
0f76bcf59a
commit
927636ec8b
2 files changed
+21
-2
No files matched your search
@@ -125,6 +125,22 @@ describe('Prompt Testing', () => {
|
||||
expect(uniquePrompts.size).toBe(prompts.length);
|
||||
});
|
||||
|
||||
it('isolates married disclosure to a measurable chat strategy', () => {
|
||||
const content = fs.readFileSync(configPath, 'utf-8');
|
||||
const yaml = require('yaml');
|
||||
const config = yaml.parse(content);
|
||||
const married = config.chatStrategies.variants.find(
|
||||
(variant: { id: string }) => variant.id === 'chat_married_disclosure',
|
||||
);
|
||||
|
||||
expect(config.openrouter.chatOpenerPrompt).toContain(
|
||||
'Do not mention relationship status unless the selected STYLE explicitly requires it',
|
||||
);
|
||||
expect(married?.weight).toBe(1);
|
||||
expect(married?.promptOverride).toContain('Mention naturally in the first sentence');
|
||||
expect(married?.promptOverride).toContain('Do not claim an open marriage');
|
||||
});
|
||||
|
||||
it('strategy variants have valid IDs', () => {
|
||||
const content = fs.readFileSync(configPath, 'utf-8');
|
||||
const yaml = require('yaml');
|
||||
|
||||
Reference in new issue
Block a user