Skip to content

feat: integrate PACT with Claude Code Task system (#112)#113

Open
michael-wojcik wants to merge 10 commits intomainfrom
feature/pact-task-integration
Open

feat: integrate PACT with Claude Code Task system (#112)#113
michael-wojcik wants to merge 10 commits intomainfrom
feature/pact-task-integration

Conversation

@michael-wojcik
Copy link
Collaborator

Summary

  • Add Task System Integration SSOT to pact-protocols.md defining hybrid task model, naming conventions, and metadata schemas
  • Update all 6 PACT commands with Task Management sections for task creation, status transitions, and handoff capture
  • Standardize HANDOFF format across all 6 specialist agents
  • Add task structure documentation to pact-workflows.md and algedonic.md
  • Create comprehensive reference documentation (task-metadata-schema.md, task-integration-guide.md)

Test plan

  • Verify protocol extract sync (line shifts expected after SSOT additions)
  • Validate Task metadata schema consistency across commands
  • Check cross-file references are valid
  • All tests pass

Closes #112

Add comprehensive Task Integration section including:
- Hybrid Task Model (phase + specialist subtasks)
- Naming conventions for all task types
- Metadata schemas for Phase, Specialist, and Workflow tasks
- Command integration summary for all PACT workflows
- Algedonic task annotation specifications
- Key principles for task-based orchestration

Part of #112 - PACT Task System Integration
pact-workflows.md:
- Add task structure notes to each workflow section
- Reference SSOT in pact-protocols.md for schema details

algedonic.md:
- Add Task Annotation section explaining metadata approach
- Document algedonicHalt and algedonicHistory schemas

Part of #112 - PACT Task System Integration
orchestrate.md:
- Task creation at workflow start (4 phase tasks)
- Per-phase task status transitions
- Subtask management and handoff capture

comPACT.md:
- Workflow task creation with specialist subtasks
- Parallel subtask pattern

peer-review.md:
- Reviewer subtasks with verdict/findings structure

plan-mode.md:
- 4 phase tasks with Plan: prefix
- Planner subtasks during Consult phase

rePACT.md:
- Nested tasks with rePACT: prefix
- Parent phase blocking by nested TEST

imPACT.md:
- Task modification logic for blockers
- imPACTHistory tracking schema
- META-BLOCK detection threshold

Part of #112 - PACT Task System Integration
Add consistent HANDOFF format to all agent definitions:
- Produced: artifacts created/modified
- Decisions: choices made during work
- Uncertainties: items needing orchestrator attention
- Open Questions: unresolved items for future work

Updated agents:
- pact-architect.md (new section)
- pact-backend-coder.md (updated)
- pact-database-engineer.md (updated)
- pact-frontend-coder.md (updated)
- pact-preparer.md (new section)
- pact-test-engineer.md (updated)

Part of #112 - PACT Task System Integration
task-metadata-schema.md:
- Complete field definitions for all 3 task types
- Phase Task, Specialist Subtask, Workflow Task schemas
- Examples and required vs optional field guidance

task-integration-guide.md:
- How Task system integrates with PACT methodology
- Workflow integration details for each command
- Best practices and VSM mapping
- Migration guide for existing sessions

Part of #112 - PACT Task System Integration
- Update verify-protocol-extracts.sh line ranges after Task System Integration
- Regenerate extract files to match SSOT (pact-protocols.md)
- Align orchestrate.md handoff field names with agent definitions
  - 'Key context' → 'Decisions'
  - 'Areas of uncertainty' → 'Uncertainties'
  - 'Open questions' → 'Open Questions'

All 10 protocol extract verifications now pass.
orchestrate.md:
- Update handoff example with realistic multi-file output
- Demonstrate priority-tagged uncertainties [HIGH]

task-metadata-schema.md:
- Add validation guidance (Req? columns, required notes)
- Add algedonicHistory[].resolution field description
- Standardize enum casing to uppercase (HALT, ALERT, SECURITY, etc.)
- Add blockedBy auto-resolution clarification
- Add troubleshooting section for blocked state recovery

task-integration-guide.md:
- Add edge cases for blocked status transitions
- Add parallel subtask coordination scenarios with examples
- Add CODE-to-TEST handoff example in practice
- Add circular dependency troubleshooting entry
…ections

Agents don't need to know WHY the handoff format exists - they just
need to follow it. The task system is managed by the orchestrator,
not specialist agents.
Replace dangling reference to agent definitions with inline
specialist subtask metadata example.
- Replace TodoWrite with TaskCreate/TaskUpdate across all commands
- Add full task examples with subject, description, activeForm, metadata
- Fix activeForm to use strings (not objects) in plan-mode and rePACT
- Show complete task lifecycle: create, link (addBlockedBy), complete

Files updated: orchestrate.md, comPACT.md, peer-review.md,
plan-mode.md, rePACT.md, imPACT.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement PACT Task System Integration

1 participant