{"v":"<p dir=\"auto\"><strong>Background.<\/strong> 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&#39;s paper forms from the answers. Form 3040 is the state&#39;s supervisory visit form. Found while building #109.<\/p>\n<h2 id=\"user-content-what-happens\" dir=\"auto\">What happens<\/h2>\n<p dir=\"auto\">Since #109, the 3040&#39;s items 4 (&#34;Is the individual satisfied\u2026?&#34;) and 5 (&#34;Is attendant following the schedule\u2026?&#34;) are:<\/p>\n<ul dir=\"auto\">\n<li><strong>not asked, printed N\/A<\/strong> when that attendant&#39;s visit type is AO, which is also what an empty attendant slot holds (its visit type starts as AO);<\/li>\n<li><strong>asked, starting as Yes<\/strong> at an SV or SA visit.<\/li>\n<\/ul>\n<p dir=\"auto\">Edge case: a supervisor names Attendant B, sets B&#39;s visit type to <strong>SV<\/strong>, then removes B from the schedule. B&#39;s visit-type question is now hidden, but the visit <strong>keeps<\/strong> the hidden SV answer (hidden answers are kept until signing, #120\/#166), and conditions read kept answers. So items 4 and 5 are <strong>asked for an attendant who isn&#39;t there<\/strong>, starting as Yes. If the supervisor doesn&#39;t change them, Yes would print in B&#39;s column instead of N\/A.<\/p>\n<h2 id=\"user-content-why-it-wasn-t-fixed-in-109\" dir=\"auto\">Why it wasn&#39;t fixed in #109<\/h2>\n<ul dir=\"auto\">\n<li>Items 4 and 5 cannot also be gated on &#34;Attendant B is named&#34;. A missing name makes the whole condition <em>unknown<\/em>, and unknown means &#34;ask&#34; (the safe side), so that doesn&#39;t help.<\/li>\n<li>Making conditions ignore hidden answers would change how every interview reads them. The 3040&#39;s task grid, for one, relies on reading a hidden answer at an orientation.<\/li>\n<\/ul>\n<h2 id=\"user-content-to-investigate\" dir=\"auto\">To investigate<\/h2>\n<ol dir=\"auto\">\n<li>Check whether it happens in practice: does the attendants step (#160) clear a removed attendant&#39;s name to <code>&#34;&#34;<\/code> or leave nothing? With <code>&#34;&#34;<\/code>, a condition on the name can decide.<\/li>\n<li>Possible fixes: clear an attendant&#39;s visit type when their name is removed; or a condition operator for &#34;blank or missing&#34;; or treat a hidden question&#39;s answer as its starting answer for later conditions (wider change, needs the full test suite).<\/li>\n<li>Check the signed-visit path: <code>form_v2_visit_drop_hidden()<\/code> runs at signing, after the projection is already printed.<\/li>\n<\/ol>\n"}