Confirm write-path story coverage #191

Merged
Collaborator

Add tests for the draft and flag input schemas, refusal of colours when IMAP keywords are unsupported, and preservation of an owner’s read-state change during flag undo.

Story Test(s) (pytest node id) Seam Note
1 tests/integration/test_greenmail_writes.py::test_http_draft_and_undo_through_the_running_worker; tests/integration/test_greenmail_writes.py::test_draft_reply_then_undo GreenMail, HTTP New draft and threaded reply
2 tests/test_write_tools.py::test_draft_and_flag_input_schema; tests/integration/test_greenmail_writes.py::test_draft_reply_then_undo; tests/test_jmap.py::test_a_draft_is_imported_into_drafts_and_never_submitted HTTP, GreenMail, FakeJMAP Configured sender and no sender argument
3 tests/integration/test_greenmail_writes.py::test_changed_draft_is_left_in_place; tests/test_jmap.py::test_a_changed_draft_is_left_in_place GreenMail, FakeJMAP IMAP size change with Draft still set cannot be reached on a fixed UID at the existing seam
4 tests/integration/test_greenmail_writes.py::test_flag_then_undo; tests/test_jmap.py::test_a_flag_change_patches_keywords_and_undo_restores_them GreenMail, FakeJMAP Set and clear Seen
5 tests/integration/test_greenmail_writes.py::test_flag_then_undo; tests/integration/test_greenmail_writes.py::test_colour_then_change_clear_and_undo GreenMail Set and clear Flagged
6 tests/test_colors.py::test_each_colour_maps_both_ways Pure All seven colours
7 tests/test_colors.py::test_a_colour_sets_the_flag_and_its_bits_and_never_seen; tests/test_jmap.py::test_a_colour_patches_the_bits_and_undo_restores_only_what_changed Pure, FakeJMAP Colour leaves read state alone
8 tests/integration/test_greenmail_writes.py::test_flag_undo_preserves_owner_read_change; tests/test_jmap.py::test_a_colour_patches_the_bits_and_undo_restores_only_what_changed GreenMail, FakeJMAP GreenMail test not run locally
9 tests/test_actions.py::test_runner_refuses[flag-params1-unsupported] FakeIMAP No keyword support returns unsupported
10 tests/test_write_tools.py::test_draft_and_flag_input_schema; tests/test_colors.py::test_bad_flag_requests_are_refused HTTP, Pure Closed schema and raw keyword refusal
11 tests/test_write_tools.py::test_cap_fires_and_queues_nothing; tests/integration/test_greenmail_writes.py::test_move_then_undo_and_refusals HTTP, GreenMail Archive role and mailbox name
12 tests/integration/test_greenmail_writes.py::test_move_then_undo_and_refusals; tests/test_jmap.py::test_a_move_keeps_the_id_and_undo_keeps_a_label GreenMail, FakeJMAP Move undo
13 tests/test_write_tools.py::test_cap_fires_and_queues_nothing; tests/test_jmap.py::test_write_outcomes_name_stable_ids HTTP, FakeJMAP Result includes destination IDs

GreenMail and Stalwart integration targets did not run: the expected sibling blade checkout is absent and neither container daemon is reachable. R18, write-path log privacy, remains a follow-up outside this issue.

After installing the declared test dependencies, the pristine non-integration baseline passed 1,475 tests; its audit could not write the default uv tool directory. The final check passed with a writable uv cache: 1,477 passed, 8 skipped, 23 deselected, and no known audit vulnerabilities. The native package build and focused tests passed. The unsupported-colour test failed as expected under a temporary in-process mutation.

Closes #189
Co-Authored-By: gpt-6.1-terra noreply@openai.com

Add tests for the draft and flag input schemas, refusal of colours when IMAP keywords are unsupported, and preservation of an owner’s read-state change during flag undo. | Story | Test(s) (pytest node id) | Seam | Note | |---|---|---|---| | 1 | tests/integration/test_greenmail_writes.py::test_http_draft_and_undo_through_the_running_worker; tests/integration/test_greenmail_writes.py::test_draft_reply_then_undo | GreenMail, HTTP | New draft and threaded reply | | 2 | tests/test_write_tools.py::test_draft_and_flag_input_schema; tests/integration/test_greenmail_writes.py::test_draft_reply_then_undo; tests/test_jmap.py::test_a_draft_is_imported_into_drafts_and_never_submitted | HTTP, GreenMail, FakeJMAP | Configured sender and no sender argument | | 3 | tests/integration/test_greenmail_writes.py::test_changed_draft_is_left_in_place; tests/test_jmap.py::test_a_changed_draft_is_left_in_place | GreenMail, FakeJMAP | IMAP size change with Draft still set cannot be reached on a fixed UID at the existing seam | | 4 | tests/integration/test_greenmail_writes.py::test_flag_then_undo; tests/test_jmap.py::test_a_flag_change_patches_keywords_and_undo_restores_them | GreenMail, FakeJMAP | Set and clear Seen | | 5 | tests/integration/test_greenmail_writes.py::test_flag_then_undo; tests/integration/test_greenmail_writes.py::test_colour_then_change_clear_and_undo | GreenMail | Set and clear Flagged | | 6 | tests/test_colors.py::test_each_colour_maps_both_ways | Pure | All seven colours | | 7 | tests/test_colors.py::test_a_colour_sets_the_flag_and_its_bits_and_never_seen; tests/test_jmap.py::test_a_colour_patches_the_bits_and_undo_restores_only_what_changed | Pure, FakeJMAP | Colour leaves read state alone | | 8 | tests/integration/test_greenmail_writes.py::test_flag_undo_preserves_owner_read_change; tests/test_jmap.py::test_a_colour_patches_the_bits_and_undo_restores_only_what_changed | GreenMail, FakeJMAP | GreenMail test not run locally | | 9 | tests/test_actions.py::test_runner_refuses[flag-params1-unsupported] | FakeIMAP | No keyword support returns unsupported | | 10 | tests/test_write_tools.py::test_draft_and_flag_input_schema; tests/test_colors.py::test_bad_flag_requests_are_refused | HTTP, Pure | Closed schema and raw keyword refusal | | 11 | tests/test_write_tools.py::test_cap_fires_and_queues_nothing; tests/integration/test_greenmail_writes.py::test_move_then_undo_and_refusals | HTTP, GreenMail | Archive role and mailbox name | | 12 | tests/integration/test_greenmail_writes.py::test_move_then_undo_and_refusals; tests/test_jmap.py::test_a_move_keeps_the_id_and_undo_keeps_a_label | GreenMail, FakeJMAP | Move undo | | 13 | tests/test_write_tools.py::test_cap_fires_and_queues_nothing; tests/test_jmap.py::test_write_outcomes_name_stable_ids | HTTP, FakeJMAP | Result includes destination IDs | GreenMail and Stalwart integration targets did not run: the expected sibling blade checkout is absent and neither container daemon is reachable. R18, write-path log privacy, remains a follow-up outside this issue. After installing the declared test dependencies, the pristine non-integration baseline passed 1,475 tests; its audit could not write the default uv tool directory. The final check passed with a writable uv cache: 1,477 passed, 8 skipped, 23 deselected, and no known audit vulnerabilities. The native package build and focused tests passed. The unsupported-colour test failed as expected under a temporary in-process mutation. Closes #189 Co-Authored-By: gpt-6.1-terra <noreply@openai.com>
Confirm write-path story coverage
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
12df020c7b
Add tests for the draft and flag input schemas, refusal of colours when IMAP keywords are unsupported, and preservation of an owner’s read-state change during flag undo.

| Story | Test(s) (pytest node id) | Seam | Note |
|---|---|---|---|
| 1 | tests/integration/test_greenmail_writes.py::test_http_draft_and_undo_through_the_running_worker; tests/integration/test_greenmail_writes.py::test_draft_reply_then_undo | GreenMail, HTTP | New draft and threaded reply |
| 2 | tests/test_write_tools.py::test_draft_and_flag_input_schema; tests/integration/test_greenmail_writes.py::test_draft_reply_then_undo; tests/test_jmap.py::test_a_draft_is_imported_into_drafts_and_never_submitted | HTTP, GreenMail, FakeJMAP | Configured sender and no sender argument |
| 3 | tests/integration/test_greenmail_writes.py::test_changed_draft_is_left_in_place; tests/test_jmap.py::test_a_changed_draft_is_left_in_place | GreenMail, FakeJMAP | IMAP size change with Draft still set cannot be reached on a fixed UID at the existing seam |
| 4 | tests/integration/test_greenmail_writes.py::test_flag_then_undo; tests/test_jmap.py::test_a_flag_change_patches_keywords_and_undo_restores_them | GreenMail, FakeJMAP | Set and clear Seen |
| 5 | tests/integration/test_greenmail_writes.py::test_flag_then_undo; tests/integration/test_greenmail_writes.py::test_colour_then_change_clear_and_undo | GreenMail | Set and clear Flagged |
| 6 | tests/test_colors.py::test_each_colour_maps_both_ways | Pure | All seven colours |
| 7 | tests/test_colors.py::test_a_colour_sets_the_flag_and_its_bits_and_never_seen; tests/test_jmap.py::test_a_colour_patches_the_bits_and_undo_restores_only_what_changed | Pure, FakeJMAP | Colour leaves read state alone |
| 8 | tests/integration/test_greenmail_writes.py::test_flag_undo_preserves_owner_read_change; tests/test_jmap.py::test_a_colour_patches_the_bits_and_undo_restores_only_what_changed | GreenMail, FakeJMAP | GreenMail test not run locally |
| 9 | tests/test_actions.py::test_runner_refuses[flag-params1-unsupported] | FakeIMAP | No keyword support returns unsupported |
| 10 | tests/test_write_tools.py::test_draft_and_flag_input_schema; tests/test_colors.py::test_bad_flag_requests_are_refused | HTTP, Pure | Closed schema and raw keyword refusal |
| 11 | tests/test_write_tools.py::test_cap_fires_and_queues_nothing; tests/integration/test_greenmail_writes.py::test_move_then_undo_and_refusals | HTTP, GreenMail | Archive role and mailbox name |
| 12 | tests/integration/test_greenmail_writes.py::test_move_then_undo_and_refusals; tests/test_jmap.py::test_a_move_keeps_the_id_and_undo_keeps_a_label | GreenMail, FakeJMAP | Move undo |
| 13 | tests/test_write_tools.py::test_cap_fires_and_queues_nothing; tests/test_jmap.py::test_write_outcomes_name_stable_ids | HTTP, FakeJMAP | Result includes destination IDs |

GreenMail and Stalwart integration targets did not run: the expected sibling blade checkout is absent and neither container daemon is reachable. R18, write-path log privacy, remains a follow-up outside this issue.

After installing the declared test dependencies, the pristine non-integration baseline passed 1,475 tests; its audit could not write the default uv tool directory. The final check passed with a writable uv cache: 1,477 passed, 8 skipped, 23 deselected, and no known audit vulnerabilities. The native package build and focused tests passed. The unsupported-colour test failed as expected under a temporary in-process mutation.

Closes #189
Co-Authored-By: gpt-6.1-terra <noreply@openai.com>
svc-svd-writer deleted branch feat/svd-dev-mail-mind-mcp-189-confirm-the-write-baseline-map-8398a167 2026-11-12 06:01:32 +00:00
Sign in to join this conversation.
No description provided.