Back to evaluations
Public evaluation

Secure Code Generation for a Defined Task

The generated code will be evaluated for correctness, adherence to specifications, security vulnerabilities (via static analysis), and passing unit tests. The efficiency of the DSPy pipeline and MCP tool integration will also be assessed.

Evaluation type
task based
Challenge
Agent for Advanced Secure Code Synthesis
Difficulty
Advanced
Rigor
Unspecified

Evaluation overview

How the linked challenge is judged: tasks, benchmarks, and criteria count.

Tasks
2
Benchmarks
0
Criteria
0

Task templates

Inputs and expected outputs.

Task 1

Secure Code Generation for a Defined Task

Generate Python code for a specific, security-sensitive task (e.g., secure data serialization, cryptographic utility) based on provided specifications.

Input format

{'task_description': 'str', 'security_constraints': 'list_of_strings', 'language': 'str'}

Output format

{'generated_code': 'str', 'static_analysis_report': 'dict', 'unit_test_results': 'dict', 'agent_reasoning_log': 'list'}

Task 2

Code Refinement Based on Test Feedback

Given a code snippet and failing unit test results, use the agent to refine the code until all tests pass.

Input format

{'initial_code': 'str', 'failing_tests': 'dict', 'task_context': 'str'}

Output format

{'refined_code': 'str', 'final_test_results': 'dict', 'refinement_iterations': 'int'}