Repository navigation
test: pin ambiguous preview contract - #79
Merged
Merged
Conversation
R15 found no ambiguity write bug on the current main. These tests pin that an ambiguous CLI/bridge preview carries ambiguity markers but no selection-shaped fields, while an explicit --thread still returns selected_thread and thread_requested.
The Unreleased block only accepts Keep a Changelog headings; Tests was rejected by test_docs.py in CI.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
R15 traced the WorkThread ambiguity contract across Core CLI/API/Bridge, the DSH Plugin and the VS Code extension. On the current
main(351cb45) the write paths already refuse ambiguous threads:continueandswitchexit 2, MCP refuses, DSH write tool uses explicit session ids, and VS Code one-click switch passes the clicked thread id.The earlier R14 claim that an ambiguous preview JSON still returned
selected_threadis not reproducible:selected_threadis only added bycli.cmd_previewwhen--threadwas explicitly supplied. An ambiguous preview only carriesthread_ambiguous,thread_candidates,thread_default_reason,scopeand the read-only bundle.This PR adds regression tests that pin that contract:
selected_thread, nothread;--threadpreview:selected_threadandthread_requested, no ambiguity marker;continue_context: noselected_thread, nothread;No production logic, JSON field, Bridge op,
BRIDGE_SCHEMA_VERSION, Plugin tool, or published Tag/Release is changed.Evidence
E:/sessionflow-scratch/r15/evidence-20261124-104633-60936.json,dsh-tool-evidence2.json,zero-session/zero-session-evidence.json.selected_threadin CLI preview makestest_cli_preview.pyfail; adding defaultthread/selected_threadto ambiguouscontinue_contextmakestest_thread_ambiguity.pyfail. Workspace was not mutated.No user-visible feature is added. This is a test-only contract pin.