Skip to content

Conversation

@michael-wojcik
Copy link
Collaborator

Summary

  • Reverts PR feat: integrate PACT with Claude Code Task system #118 (which assumed agents could call Task tools) and reimplements from scratch
  • Establishes orchestrator-only architecture: only the parent process owns TaskCreate/TaskUpdate/TaskGet/TaskList
  • Agents communicate via structured text: HANDOFF format, BLOCKER reports, ALGEDONIC signals
  • Orchestrator translates agent text into Task state changes

Changes

Phase 0: Revert — Clean slate by reverting PR #118 merge commit

Phase 1: Foundationpact-task-tracking SKILL.md (agent reporting protocol) + Task Lifecycle Management in CLAUDE.md

Phase 2: Core Workflows — Task hierarchy, signal monitoring, and agent prompt language in orchestrate.md, comPACT.md, imPACT.md

Phase 3: Supporting Workflows — Same additions in plan-mode.md, rePACT.md, peer-review.md, wrap-up.md

Phase 4: Protocols — pact-task-hierarchy.md (new), pact-protocols.md, pact-s2-coordination.md, algedonic.md updated; 11/11 protocol extracts verified

Key Architectural Decision

Sub-agents spawned via Claude Code's Task tool do NOT have access to Task tools. This was discovered empirically during PR #120. The revised architecture makes the orchestrator the single authority for all Task state management.

Test plan

  • Protocol extract verification: 11/11 MATCH
  • Manual: invoke /PACT:orchestrate on a test task and verify Task hierarchy creation
  • Manual: verify agent HANDOFF format compliance
  • Manual: verify blocker/algedonic text-based reporting flow

…tration (#118)"

This reverts commit 21bca1c (PR #118), giving us a clean baseline
for reimplementation with the orchestrator-only architecture.

The original integration assumed sub-agents could call Task tools
(TaskCreate, TaskUpdate, etc.), but empirical testing revealed this
is a Claude Code platform limitation — only the parent orchestrator
process has access to these tools.

Reimplementation follows the revised plan at
docs/plans/2026-01-28-task-system-revised-design.md
Create pact-task-tracking SKILL.md as the agent reporting protocol
(HANDOFF format, BLOCKER/ALGEDONIC text-based reporting) and add
Task Lifecycle Management section to CLAUDE.md defining the
orchestrator-only dispatch lifecycle.

Critical constraint: sub-agents do NOT have Task tools — only the
orchestrator owns TaskCreate/TaskUpdate/TaskGet/TaskList. Agents
communicate status via structured text.
Update orchestrate.md, comPACT.md, and imPACT.md with Task hierarchy
creation, signal monitoring, and agent blocker/algedonic prompt
language. Orchestrator creates all Tasks, agents report via text.
Update plan-mode.md, rePACT.md, peer-review.md, and wrap-up.md
with Task hierarchy, signal monitoring, agent prompt language,
and TaskList audit logic.
Create pact-task-hierarchy.md with orchestrator-only Task ownership
model. Update pact-protocols.md with Task Hierarchy section and
Task-Based Coordination in S2. Update algedonic.md flow to show
text-based agent reporting. All 11 protocol extracts verified.
@michael-wojcik
Copy link
Collaborator Author

Superseded by PR #122 (v3 fix-in-place approach).

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.

1 participant