Skip to content

feat: add scope_id tagging to pact-memory entries #157

@michael-wojcik

Description

@michael-wojcik

Context

Deferred from PACT v3 Phase D (original D1-D3 scope). Tracked for v3.1+.

Description

Tag pact-memory entries with a scope_id field to enable scope-filtered retrieval during scoped orchestration. When sub-scopes execute via rePACT (e.g., backend, frontend, database), lessons and decisions from each sub-scope would be tagged with their scope identifier.

This enables:

  • Scope-filtered memory search ("show me lessons from the backend sub-scope")
  • Cross-scope pattern detection ("what patterns recur across sub-scopes?")
  • Scope-aware context loading for rePACT cycles

Current State

  • No real-world scoped orchestration usage yet — scope detection and ATOMIZE/CONSOLIDATE phases are documented but untested in production
  • Agent persistent memory (memory: user, added in v2.8.0) provides partial domain-level separation implicitly (each specialist accumulates its own domain expertise)
  • scope_id is defined in scope contracts (pact-scope-contract.md) but not yet consumed by pact-memory

Priority

Low — blocked on real-world scoped orchestration usage to validate the need.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions