WIP: stage all uncommitted work — sprints 46-221, graduation headers, specialist fleet, test steps 909-1988

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Bill
2026-04-22 10:15:48 -06:00
parent 486940cbe4
commit 72ffee68fa
2179 changed files with 82979 additions and 1150 deletions

View File

@@ -0,0 +1,9 @@
# py_cli_todo
- stack: python
- validator: pytest -q
- common_failure_modes: arg validation, off-by-one index, missing tests
## Scope
Small representative project for training data generation.

View File

@@ -0,0 +1,7 @@
# Task Seeds: py_cli_todo
src/todo.py, tests/test_todo.py
## Validator
`pytest -q`

View File

@@ -0,0 +1,11 @@
def add_task(tasks, title):
title = title.strip()
if not title:
raise ValueError("title is required")
tasks.append({"title": title, "done": False})
return tasks
def complete_task(tasks, index):
tasks[index]["done"] = True
return tasks

View File

@@ -0,0 +1,8 @@
from src.todo import add_task, complete_task
def test_add_and_complete():
tasks = []
add_task(tasks, "pay bills")
complete_task(tasks, 0)
assert tasks[0]["done"] is True