Repository navigation
Closed
Labels
priority/p2-mediumPriority P2: standard workscope/aiAI review pipeline, personas, prompts, LLM client, or RAGtype/bugType bug: the code does not do what it must
Milestone
Description
Context & Rationale
ai/test_gen.py:70-82 emits assert hasattr(module, name) for each public function, plus assert <module> is not None. commands/ai.py:1929-1931 then prints 'Synthesized N unit test(s)'. The MCP tool ai_test_gen (ai/mcp/server.py:1076) offers the same output to agents.
#601 measured such a test passing against a multiply() that returned x + y (ROADMAP.md:546). It relabelled the status UNEXECUTED (config/defaults.py:542) but kept the templates.
None of this repo's own tests came from the command. The problem is that a shipped tool overstates what it produced.
Scope & Deliverables
- Deliverable: choose one.
- (a) Scaffolds:
- every generated test ends with
pytest.fail('expected behaviour of <function> not written'); - no presence assertions are emitted;
- the CLI and MCP wording says 'scaffold'.
- every generated test ends with
- (b) Delete the command and the MCP tool, with a CHANGELOG
Removedentry. - In both cases, regenerate
CLI_REFERENCE.mdandMCP_TOOLS.md.
- (a) Scaffolds:
- Acceptance criteria:
- For (a):
- the generated code parses;
- every test function contains
pytest.failand no presence assertion; - a pytester run reports every generated test as failed;
- no output says 'Synthesized'.
- For (b): the command and the tool are gone, and the CHANGELOG lists them.
devops docs checkpasses, and the new tests take at most 1 s.
- For (a):
- Key questions:
- Scaffold or delete? (proposed) Scaffold, unless the owner doesn't use the command. The CEGIS work under Release Epic: v0.3.1 — Autonomous Trial-and-Error Synthesis, MCTS & Delta-Debugging #302 is the planned real generator.
- Constraint: No new dependency.
Strategic Alignment
- Milestone: Backlog
- Depends on: none
Owner decisions (2026-10-01)
From the agentic quality assessment (https://claude.ai/artifact/K7S7AkKJymFydhjwexigiN), decided by the owner. These replace any matching proposed answer above.
- D8, the fix.
devops ai test-genand its MCP tool emit scaffolds that fail until someone writes a real assertion. They stop reporting presence-only tests as 'Synthesized N unit test(s)'. The command is kept, not deleted.
Metadata
Metadata
Assignees
Labels
priority/p2-mediumPriority P2: standard workscope/aiAI review pipeline, personas, prompts, LLM client, or RAGtype/bugType bug: the code does not do what it must
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 14, 2026
Moved to v0.2.36: v0.2.36 started with fewer than its 16 items and was topped up to 16 from Ready items, critical fixes and P0 features first. (devops roadmap reprioritize)
dan-petty commentedon Oct 16, 2026
What changed
#1584, merged into
release/v0.2.36as f35d338.11 file(s) changed.
How it was verified
Check runs at 57c4be0:
Acceptance Criteria of
docs/agent/tasks/task-856-ai-test-gen-scaffolds.md:tests/test_ai_test_gen.py::test_test_gen_emits_failing_scaffolds_without_presence_assertions).pytest.failand no presence assertion (tests/test_ai_test_gen.py::test_test_gen_emits_failing_scaffolds_without_presence_assertions).pytesterrun reports every generated test as failed (tests/test_ai_test_gen.py::test_test_gen_emits_failing_scaffolds_without_presence_assertions).'Synthesized'(tests/test_ai_test_gen.py::test_test_gen_emits_failing_scaffolds_without_presence_assertions).devops docs checkpasses, and the new tests take at most1 s.