feat: add work order failure-code categorization scenarios#351
Open
ShuxinLin wants to merge 1 commit into
Open
feat: add work order failure-code categorization scenarios#351ShuxinLin wants to merge 1 commit into
ShuxinLin wants to merge 1 commit into
Conversation
Add src/scenarios/local/workorder_utterance.json with 6 focused WorkOrder-type scenarios exercising the wo/ server's failure-code categorization (get_failure_codes, get_work_order_distribution): knowledge queries, code-to-category mapping, and per-asset category distribution. Add an evaluation loader test validating the file parses and conforms to the Scenario schema. Closes #350 Signed-off-by: Shuxin Lin <linshuhsin@gmail.com>
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.
Summary
src/scenarios/local/workorder_utterance.jsonwith 6 focusedWorkOrder-type evaluation scenarios for failure-code categorization (IDs 401–406).wo/server'sget_failure_codesandget_work_order_distributiontools across three task categories:test_workorder_scenarios_load_and_conform) verifying the file parses viaload_scenariosand conforms to theScenarioschema.This is the first
workorderscenario set undersrc/scenarios/local/(previously onlyvibration_utterance.json). Uses the PascalCasetypeconvention ("WorkOrder") consistent with the sibling vibration scenarios.Test plan
uv run pytest src/evaluation/ -v -k "not integration"— 41 passed, including the new loader testuv run pytest src/ -q -k "not integration"— 313 passed; the lone failure (iot ... test_unknown_asset) is pre-existing onmainand requires a local CouchDB (unrelated to this change)ScenariomodelCloses #350