{"v":{"id":451,"url":"https:\/\/www-s01.apinet.com\/codeforge\/api\/v1\/repos\/apiintl\/hhmanager\/issues\/198","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/198","number":198,"user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"title":"3040: Q4 & Q5 asked for an attendant who was removed from the schedule","body":"**Background.** Forms V2 is the new paperwork system for client visits. During a visit, staff go through an on-screen interview with the client, and the system fills in the agency's paper forms from the answers. Form 3040 is the state's supervisory visit form. Found while building #109.\n\n## What happens\nSince #109, the 3040's items 4 (\"Is the individual satisfied\u2026?\") and 5 (\"Is attendant following the schedule\u2026?\") are:\n* **not asked, printed N\/A** when that attendant's visit type is AO, which is also what an empty attendant slot holds (its visit type starts as AO);\n* **asked, starting as Yes** at an SV or SA visit.\n\nEdge case: a supervisor names Attendant B, sets B's visit type to **SV**, then removes B from the schedule. B's visit-type question is now hidden, but the visit **keeps** the hidden SV answer (hidden answers are kept until signing, #120\/#166), and conditions read kept answers. So items 4 and 5 are **asked for an attendant who isn't there**, starting as Yes. If the supervisor doesn't change them, Yes would print in B's column instead of N\/A.\n\n## Why it wasn't fixed in #109\n* Items 4 and 5 cannot also be gated on \"Attendant B is named\". A missing name makes the whole condition *unknown*, and unknown means \"ask\" (the safe side), so that doesn't help.\n* Making conditions ignore hidden answers would change how every interview reads them. The 3040's task grid, for one, relies on reading a hidden answer at an orientation.\n\n## To investigate\n1. Check whether it happens in practice: does the attendants step (#160) clear a removed attendant's name to `\"\"` or leave nothing? With `\"\"`, a condition on the name can decide.\n2. Possible fixes: clear an attendant's visit type when their name is removed; or a condition operator for \"blank or missing\"; or treat a hidden question's answer as its starting answer for later conditions (wider change, needs the full test suite).\n3. Check the signed-visit path: `form_v2_visit_drop_hidden()` runs at signing, after the projection is already printed.","ref":"","assets":[],"labels":[{"id":33,"name":"action","exclusive":false,"is_archived":false,"color":"d97706","description":"Action item tracked on the Connect dashboard","url":"https:\/\/www-s01.apinet.com\/codeforge\/api\/v1\/repos\/apiintl\/hhmanager\/labels\/33"},{"id":10,"name":"area:forms","exclusive":false,"is_archived":false,"color":"1d76db","description":"Forms engine, packets, review\/approval","url":"https:\/\/www-s01.apinet.com\/codeforge\/api\/v1\/repos\/apiintl\/hhmanager\/labels\/10"}],"milestone":null,"assignee":null,"assignees":null,"state":"open","is_locked":false,"comments":0,"created_at":"2026-10-20T09:10:09-05:00","updated_at":"2026-10-20T09:55:24-05:00","closed_at":null,"due_date":null,"pull_request":null,"repository":{"id":27,"name":"hhmanager","owner":"apiintl","full_name":"apiintl\/hhmanager"},"pin_order":0}}