- add 05-03 summary with task commits and verification details - update roadmap and state for completed Phase 05 plan 03
4.8 KiB
4.8 KiB
| phase | plan | subsystem | tags | requires | provides | affects | tech-stack | key-files | key-decisions | patterns-established | requirements-completed | duration | completed | |||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 05-mvp-deployment | 03 | infra |
|
|
|
|
|
|
|
|
|
3 min | 2026-04-27 |
Phase 05 Plan 03: Shared-volume attachment path hardening Summary
Room-safe Matrix inbox paths and relative shared-volume attachment normalization for /agents deployment
Performance
- Duration: 3 min
- Started: 2026-04-27T22:02:34Z
- Completed: 2026-04-27T22:05:41Z
- Tasks: 2
- Files modified: 3
Accomplishments
- Added regression coverage for room-safe
surfaces/matrix/.../inbox/...attachment layout under/agentsworkspaces. - Added explicit tests for
/workspace/...and/agents/...attachment-path normalization on both upstream send and downstream send-file rendering. - Tightened
RealPlatformClientso only relativeworkspace_pathvalues are forwarded to the agent API.
Task Commits
Each task was committed atomically:
- Task 1: Add shared-volume file contract tests for
/agentsdeployment -cafb0ec(test) - Task 2: Tighten attachment path handling for the shared volume contract -
9a03160(fix)
Files Created/Modified
tests/adapter/matrix/test_files.py- covers room-safe shared-volume inbox paths under an/agentsworkspace root.tests/platform/test_real.py- covers relative attachment forwarding and send-file normalization for/workspaceand/agentspaths.sdk/real.py- normalizes shared-volume roots before attachments cross the upstream or Matrix rendering boundary.
Decisions Made
- Kept
adapter/matrix/files.pyunchanged so path construction remains centralized there. - Reused one normalization helper in
sdk/real.pyfor both_attachment_paths()and_attachment_from_send_file_event()to keep inbound and outbound behavior aligned.
Deviations from Plan
Auto-fixed Issues
1. [Rule 3 - Blocking] Adjusted verification to use the project uv environment
- Found during: Task 2 (Tighten attachment path handling for the shared volume contract)
- Issue: The plan's raw
pytestcommand collected with an interpreter missingPyYAML, which blockedtests/adapter/matrix/test_send_outgoing.pybefore runtime assertions could execute. - Fix: Re-ran verification with
UV_CACHE_DIR=/tmp/uv-cache uv run pytest ..., matching the repo'sCLAUDE.mdguidance and the project.venv. - Files modified: None
- Verification:
UV_CACHE_DIR=/tmp/uv-cache uv run pytest tests/adapter/matrix/test_files.py tests/platform/test_real.py tests/adapter/matrix/test_send_outgoing.py -v - Committed in: None (verification-environment adjustment only)
Total deviations: 1 auto-fixed (1 blocking) Impact on plan: No scope creep. The deviation only changed the verification entrypoint so the planned test slice could run in the correct environment.
Issues Encountered
- The ambient
pytestresolved to a different virtualenv than the project.venv, so direct verification was unreliable for dependency-backed Matrix tests.
User Setup Required
None - no external service configuration required.
Next Phase Readiness
- Shared-volume file references now stay relative across inbound bot downloads, agent API attachment transport, and outbound Matrix send-file rendering.
- Phase 05 compose and deployment work can assume the
/agentscontract without adding file proxy infrastructure.
Self-Check: PASSED
- Found
.planning/phases/05-mvp-deployment/05-03-SUMMARY.md - Verified commit
cafb0ecexists in git history - Verified commit
9a03160exists in git history
Phase: 05-mvp-deployment Completed: 2026-04-27