out prdA backlog heavy
Tasks¶
T001: Enforce atomic file-overlap exclusion in claim transactions¶
Feature: F001 Priority: high Likely files: src/claim/transaction.py, src/claim/concurrency.py Dependencies: T002
Acceptance criteria:
- Two tasks claiming overlapping files cannot both be claimed at the same time
- A concurrency regression suite validates single-winner guarantee under N threads
- The system prevents race conditions in file access during claim operations
Verification:
python -m pytest tests/test_concurrent_claims.py -vcargo test --lib claim::concurrent_access
T002: Implement fractional lease/heartbeat support across CLI and MCP¶
Feature: F001 Priority: medium Likely files: src/lease/manager.py, src/mcp/server.py Dependencies:
Acceptance criteria:
- Lease durations can be specified in fractional minutes (e.g., 0.5)
- Fractional values are preserved and not silently truncated
- All code paths (CLI and MCP) honor the configured lease values
Verification:
python -c "from anvil.lease import LeaseManager; l = LeaseManager(0.5); print(l.duration)"pytest tests/test_lease_fractional.py -v
T003: Enable standalone onboarding from init to ready task¶
Feature: F002 Priority: high Likely files: src/cli/init.py, src/flow/onboarding.py Dependencies: T004
Acceptance criteria:
- A new user can execute
anvil init -> PRD -> plan -> nextand reach a ready task - No external crew/flow dependencies are required
- Self-sufficient documentation is available for the process
Verification:
anvil init && anvil plan && anvil nextshould complete successfullyanvil diagnoseshould show no missing dependencies
T004: Resolve project root consistently across host/container environments¶
Feature: F003 Priority: high Likely files: src/project/root.py, src/mcp/context.py Dependencies:
<The engine must resolve the same project root regardless of whether it's running on the host or inside a container, ensuring consistency between CLI and MCP environments. This includes handling path resolution differences and maintaining a stable command surface.>
Acceptance criteria:
- Project root resolves identically in CLI and MCP contexts
- Host/container divergence does not affect project identification
- Command surface remains version-pinned and auditable
Verification:
anvil --project-rootshould return same path in container vs hostanvil --versionshould show pinned version info
T005: Emit stable, schema-versioned JSON output for read commands¶
Feature: F004 Priority: high Likely files: src/read/command.py, src/schema/versioning.py Dependencies:
Acceptance criteria:
- Read commands emit paginated, schema-versioned JSON
- On-disk state carries an authoritative schema version
- Completion responses name the next ready task
Verification:
anvil read --format jsonshould output valid schema versioned JSONanvil read --paginate 10should return paginated results
T006: Ingest existing repo into draft PRD and re-scannable model¶
Feature: F005 Priority: high Likely files: src/brownfield/ingest.py, src/code/model.py Dependencies:
Acceptance criteria:
- Engine can ingest an existing repo into a draft PRD
- Codebase model is re-scannable and maintains task types
- Process is right-sized by score for different task categories
Verification:
anvil brownfield scan /path/to/reposhould create draft PRDanvil list tasksshould show non-feature task types
T007: Migrate .anvil artifacts across engine versions with global config support¶
Feature: F006 Priority: high Likely files: src/migration/engine.py, src/config/global.py Dependencies:
Acceptance criteria:
- Artifacts migrate cleanly across engine versions
- Global-config layer merges with project overrides
- Engine updates do not clobber per-project user data
Verification:
anvil migrateshould work without data lossanvil config listshould show merged settings
T008: Query deferred/failed-review evidence and enforce review gates¶
Feature: F007 Priority: high Likely files: src/evidence/query.py, src/review/gates.py Dependencies:
Acceptance criteria:
- Deferred/failed review evidence is queryable and visible
- File overlap triggers evidence surfacing
- Decisions back-propagate to the PRD
- Dependency edits batch atomically
- Cross-agent contract fields are enforced by review gates
Verification:
anvil evidence listshould show failed reviewsanvil review validateshould enforce contract fields
T009: Generate Mermaid diagrams and GitHub-Issues projection from project state¶
Feature: F008 Priority: medium Likely files: src/diagram/generator.py, src/github/projection.py Dependencies:
Acceptance criteria:
- Project state generates auto-generated Mermaid diagrams
- Optional GitHub-Issues projection is supported
- Local SQLite remains source of truth
- Diagrams and projections are consistent with internal state
Verification:
anvil diagram generateshould produce valid Mermaid outputanvil github syncshould update issues if enabled