feat(messaging): PM-to-PM Messaging System [FEATURE-9] #1

Open
namcho wants to merge 0 commits from feature/pm-messaging into develop
Owner

See /tmp/pr_body.md

See /tmp/pr_body.md
This implements Feature 9 - a first-class messaging primitive for PCC
enabling Project Manager agents to exchange information without human
intervention.

Backend:
- Message, Capability, AgentToken, IdempotencyKey models
- Dual-path auth: get_current_agent (JWT subject_type=agent) + user auth
- Full REST API: POST /messages, GET inbox, ack/read, capabilities, agent-tokens
- Redis pub/sub on new messages
- SSE endpoint for real-time inbox updates
- Idempotency via Idempotency-Key header (24h dedup)

MCP Server (tools/pcc-mcp/):
- 9 tools: pcc_send_message, pcc_read_inbox, pcc_ack_message, pcc_mark_read,
  pcc_list_capabilities, pcc_create_task, pcc_update_task_status,
  pcc_get_task, pcc_get_agent_session
- stdio transport for OpenCode integration
- Auth via PCC_AGENT_TOKEN + PCC_PROJECT_ID env vars

Frontend:
- InboxPanel with correlation_id threading, intent badges, unread highlighting
- SSE live updates via useMessageSSE hook
- ComposeMessageDialog with JSON payload editor
- CapabilityRegistry with schema display

Docs:
- docs/SPEC-FEATURE-9-PM-MESSAGING.md (full spec)
- docs/PCC-MCP-INTEGRATION.md (MCP setup guide)
- PLAN.md updated with Phase 7

RPi5 considerations:
- 30-day retention strategy documented
- Sequential test execution
- Queue maxsize limits on SSE

Phase 7 (promoted above GDRIVE 6.2)
This branch is already included in the target branch. There is nothing to merge.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feature/pm-messaging:feature/pm-messaging
git switch feature/pm-messaging

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch develop
git merge --no-ff feature/pm-messaging
git switch feature/pm-messaging
git rebase develop
git switch develop
git merge --ff-only feature/pm-messaging
git switch feature/pm-messaging
git rebase develop
git switch develop
git merge --no-ff feature/pm-messaging
git switch develop
git merge --squash feature/pm-messaging
git switch develop
git merge --ff-only feature/pm-messaging
git switch develop
git merge feature/pm-messaging
git push origin develop
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
namcho/project-command-center!1
No description provided.