- drop sdk/real.py change to respect requested write scope - update phase summary file list
1.4 KiB
1.4 KiB
Phase 04 Plan 02: Matrix Context Commands Summary
Outcome
Added Matrix context management for !save, !load, !reset, and !context, plus
pending-state interception in the Matrix bot and prototype-state tracking for saved
sessions, current session, and last token usage.
Commits
2720ee2feat(04-02): extend prototype and matrix pending stateb52fdc4feat(04-02): add matrix context management commands
Verification
pytest tests/platform/test_prototype_state.py -qpytest tests/adapter/matrix/test_context_commands.py tests/platform/test_prototype_state.py -qpytest tests/adapter/matrix/test_dispatcher.py tests/adapter/matrix/test_confirm.py -q
Deviations from Plan
Auto-fixed Issues
-
[Rule 2 - Critical functionality]Sanitized save names before using them in save/load prompts. This rejects names outside[A-Za-z0-9_-]and prevents path-like input from flowing into/workspace/contexts/{name}.md. -
[Rule 2 - Critical functionality]Cleared the active current-session marker on reset. Without this,!contextcould report a stale loaded session after!reset.
Files Changed
sdk/prototype_state.pyadapter/matrix/store.pyadapter/matrix/handlers/__init__.pyadapter/matrix/handlers/context_commands.pyadapter/matrix/bot.pytests/adapter/matrix/test_context_commands.pytests/platform/test_prototype_state.py