Skip to content

feat: Phase D revised — memory rationalization, agent persistent memory, expanded verification (v2.8.0)#156

Merged
michael-wojcik merged 8 commits intomainfrom
feature/phase-d-revised
Feb 6, 2026
Merged

feat: Phase D revised — memory rationalization, agent persistent memory, expanded verification (v2.8.0)#156
michael-wojcik merged 8 commits intomainfrom
feature/phase-d-revised

Conversation

@michael-wojcik
Copy link
Collaborator

@michael-wojcik michael-wojcik commented Feb 6, 2026

Summary

Phase D (Revised) of the PACT v3 plan — focused on memory layer rationalization, documentation updates, and regression safety expansion.

  • D1: Rationalize memory layers for platform auto-memory coexistence (MAX_WORKING_MEMORIES 5→3, three-layer architecture docs)
  • D2: Update executor interface documentation with real Agent Teams API (TeamCreate, SendMessage, etc.)
  • D3: Add memory: user persistent memory to all 8 PACT specialist agents
  • D4: Extend verification scripts with 26 new checks (total: 108 across 3 scripts)
  • D5: Add 4 integration test scenario runbooks (standard orchestration, worktree lifecycle, memory layers, scoped orchestration)
  • D6: Add canary workflow checklist for PR verification
  • Version: Bump to 2.8.0 (reserving 3.0.0 for full Agent Teams integration)

Test plan

  • Run bash scripts/verify-protocol-extracts.sh — all 16 checks pass
  • Run bash scripts/verify-task-hierarchy.sh — all 24 checks pass
  • Run bash scripts/verify-scope-integrity.sh — all 68 checks pass
  • Verify memory: user in all 8 agent frontmatters: grep -l "memory: user" pact-plugin/agents/*.md | wc -l = 8
  • Verify version 2.8.0 in both plugin.json and marketplace.json

Add memory: user frontmatter to 8 agent definitions, enabling
cross-project persistent memory stored at ~/.claude/agent-memory/<name>/.
The first 200 lines auto-load into each agent's system prompt, allowing
specialists to accumulate domain expertise across sessions.
Rewrite "Future Executor: TeammateTool" section in pact-scope-contract.md
as "Future Executor: Agent Teams" with real API tool names (TeamCreate,
SendMessage, TeamDelete, Task with team_name/name). Add architectural
notes on behavioral differences (no nested teams, peer-to-peer messaging,
no conversation history inheritance). Update SSOT extract in
pact-protocols.md and verify-protocol-extracts.sh line ranges.
Reduce MAX_WORKING_MEMORIES from 5 to 3 to limit token overlap with
platform auto-memory. Add three-layer memory architecture documentation
to CLAUDE.md, SKILL.md, and pact-memory-agent.md clarifying the
complementary roles of auto-memory (session learnings), pact-memory
(structured institutional knowledge), and agent persistent memory
(domain expertise). Includes memory: user frontmatter for
pact-memory-agent (combined with section 4 updates).
Add 26 new checks to verify-scope-integrity.sh across 7 gap areas:
worktree integration (7), memory hooks baseline (3), executor interface
(3), agent persistent memory (8), scope detection heuristics (3),
completeness signals (1), Agent Teams docs (1). Total verification
checks: 108 (was 82). All 4 scripts pass.
Add 4 integration test scenario runbooks and a 3-tier canary
verification checklist to testing/ (repo-level development
infrastructure, not part of the distributed plugin):

Scenarios (P0/P1):
- Standard orchestration (P→A→C→T lifecycle)
- Memory layer interaction (auto-memory + pact-memory + agent memory)
- Worktree lifecycle (setup → work → cleanup)
- Scoped orchestration (detect → atomize → consolidate)

Canary checklist:
- Tier 1: Automated (run 4 verification scripts)
- Tier 2: Structural (reviewer cross-reference checks)
- Tier 3: Behavioral (dogfooding via PACT self-orchestration)
Reserve v3.0.0 for full Agent Teams integration. This release adds
memory layer rationalization, agent persistent memory, expanded
verification scripts, and integration test scenarios.
@michael-wojcik michael-wojcik force-pushed the feature/phase-d-revised branch from 72f52d0 to 3af339e Compare February 6, 2026 07:50
@michael-wojcik michael-wojcik changed the title PACT v3.0: Phase D — memory rationalization, Agent Teams docs, agent persistent memory, regression safety feat: Phase D revised — memory rationalization, agent persistent memory, expanded verification (v2.8.0) Feb 6, 2026
- Fix agent count "7" to "8" in memory layer test scenario
- Fix verification script count "three" to "four" in standard
  orchestration scenario
- Update stale "Last 5" to "Last 3" in session_init.py template
- Hoist AGENTS_DIR variable to top of verify-scope-integrity.sh
- Add unit test for MAX_WORKING_MEMORIES entry count limit
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