fix: fail closed on unknown task-state response status #355

Open
nsaspy wants to merge 3 commits from rage/coding-task-state-status-contract into main
Owner

Implements #252 and advances #1.

RED

35b3952a8b60144105d51fb8df57fac4eeb88c70 adds a deterministic protocol test showing an unknown symbolic task-state response status must raise CodingError instead of entering structured coding state.

Implementation

dfadd7e40237638304da78a57039663bb31560ab closes the protocol response vocabulary to ok / rejected, matching the owned Prolog task-state driver. Unknown string statuses now fail closed with an explicit compatibility error.

No cross-plugin runtime composition and no Zara Core changes.

Implements #252 and advances #1. ## RED `35b3952a8b60144105d51fb8df57fac4eeb88c70` adds a deterministic protocol test showing an unknown symbolic task-state response status must raise `CodingError` instead of entering structured coding state. ## Implementation `dfadd7e40237638304da78a57039663bb31560ab` closes the protocol response vocabulary to `ok` / `rejected`, matching the owned Prolog task-state driver. Unknown string statuses now fail closed with an explicit compatibility error. No cross-plugin runtime composition and no Zara Core changes.
Some checks failed
CI / test (pull_request) Failing after 19s
This pull request has changes conflicting with the target branch.
  • plugins/zara-coding/lib/zara_coding/task_state.py
  • plugins/zara-coding/test/test_task_state_session.py
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin rage/coding-task-state-status-contract:rage/coding-task-state-status-contract
git switch rage/coding-task-state-status-contract

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 main
git merge --no-ff rage/coding-task-state-status-contract
git switch rage/coding-task-state-status-contract
git rebase main
git switch main
git merge --ff-only rage/coding-task-state-status-contract
git switch rage/coding-task-state-status-contract
git rebase main
git switch main
git merge --no-ff rage/coding-task-state-status-contract
git switch main
git merge --squash rage/coding-task-state-status-contract
git switch main
git merge --ff-only rage/coding-task-state-status-contract
git switch main
git merge rage/coding-task-state-status-contract
git push origin main
Sign in to join this conversation.
No description provided.