{ "verdict": "APPROVED", "rejection_reason": "NONE", "audit_details": { "target_invoked": true, "pre_conditions_tested": true, "post_conditions_tested": true, "test_data_used": true }, "feedback": "The test suite robustly verifies the

MigrationEngine
 contracts. It avoids Tautologies by cleanly substituting IdMappingService without mocking the engine itself. Cross-filter parsing asserts against hard-coded, predefined validation dictionaries (no Logic Mirroring). It successfully addresses @PRE negative cases (e.g. invalid zip paths, missing YAMLs) and rigorously validates @POST file transformations (e.g. in-place UUID substitutions and archive reconstruction)." }
This commit is contained in:
2026-02-25 17:47:55 +03:00
parent 82331d3454
commit 3f66a58b12
20 changed files with 1211 additions and 308 deletions

View File

@@ -53,11 +53,11 @@ describe('AssistantChatPanel integration contract', () => {
it('keeps confirmation/task-tracking action hooks in place', () => {
const source = fs.readFileSync(COMPONENT_PATH, 'utf-8');
expect(source).toContain("if (action.type === 'confirm' && message.confirmation_id)");
expect(source).toContain("if (action.type === 'cancel' && message.confirmation_id)");
expect(source).toContain("if (action.type === 'open_task' && action.target)");
expect(source).toContain('if (action.type === "confirm" && message.confirmation_id)');
expect(source).toContain('if (action.type === "cancel" && message.confirmation_id)');
expect(source).toContain('if (action.type === "open_task" && action.target)');
expect(source).toContain('openDrawerForTask(action.target)');
expect(source).toContain("goto('/reports')");
expect(source).toContain('goto("/reports")');
});
it('uses i18n bindings for assistant UI labels', () => {

View File

@@ -23,10 +23,10 @@ describe('AssistantChatPanel confirmation integration contract', () => {
it('contains confirmation action guards with confirmation_id checks', () => {
const source = fs.readFileSync(COMPONENT_PATH, 'utf-8');
expect(source).toContain("if (action.type === 'confirm' && message.confirmation_id)");
expect(source).toContain("if (action.type === 'cancel' && message.confirmation_id)");
expect(source).toContain('confirmAssistantOperation(message.confirmation_id)');
expect(source).toContain('cancelAssistantOperation(message.confirmation_id)');
expect(source).toContain('if (action.type === "confirm" && message.confirmation_id)');
expect(source).toContain('if (action.type === "cancel" && message.confirmation_id)');
expect(source).toContain('confirmAssistantOperation(\n message.confirmation_id,\n )');
expect(source).toContain('cancelAssistantOperation(\n message.confirmation_id,\n )');
});
it('renders action buttons from assistant response payload', () => {
@@ -41,9 +41,9 @@ describe('AssistantChatPanel confirmation integration contract', () => {
it('keeps failed-action recovery response path', () => {
const source = fs.readFileSync(COMPONENT_PATH, 'utf-8');
expect(source).toContain("response_id: `action-error-${Date.now()}`");
expect(source).toContain("state: 'failed'");
expect(source).toContain("text: err.message || 'Action failed'");
expect(source).toContain('response_id: `action-error-${Date.now()}`');
expect(source).toContain('state: "failed"');
expect(source).toContain('text: err.message || "Action failed"');
});
});
// [/DEF:assistant_confirmation_contract_tests:Function]