This is either a feature request or an invitation for discussion that bubbled up in our test kitchen earlier.
A cascade, as currently constructed, makes sense in an activity where one wants students to take a very carefully manicured path while sense making or following a specific procedure. It seems reasonable to not let students move on unless they understand where they currently are and answer the question correctly. For assessments, would it make sense to have the behavior be modified to where the cascade only checks for whether a response has been submitted not whether it is correct? The questions for an assessment will need to be written carefully enough and echo what the user entered while still making some sense although this would depend on the reasonableness of the user’s response.
Imagine a student is asked to find solutions to a polynomial equation and then use the solutions to do something else. They now factor the equation correctly but write only the factored expression and skip the “=0” at the end. Then they correctly identify the solutions in the comma separated list in the next part and use the solutions to complete the next tasks correctly. I’d like for them to be able to move on from part (a) to part (b) after they have written something there without the cascade blocking progress. On paper, I would have taken off some credit for the incomplete work/incorrect notation.
Is this unnecessary? I get that I could do something similar with a combination of hide conditions and sectionWideCheckWorks but wondering if anyone else can see writing different questions if something like this were available as an attribute for cascades.
Do you want to let any response allow a student to continue? Or do you want to require a “good enough” response?
If the latter, what about giving partial credit for the responses that are “good enough”? I could imagine configuring the gate to accept any credit larger than x%.
(If it needed to be more fine grained, one could imagine adding an attribute to an <award> to indicate that it satisfies “good enough”. That is more disruptive, as it involves changes to components beyond a cascade, so I’d be more hesitant to implement it.)
I’m not convinced this needs to be built into <cascade> itself.
Hide conditions can already be any boolean expression, including one that is derived from arbitrary state variables. That makes it possible to create submission-based, correctness-based, or hybrid behaviors without introducing specialized variations of the component.
My concern is that once we start adding shortcuts for specific use cases, it’s difficult to know where to stop. There are many possible interpretations of when a cascade should trigger (submitted, attempted, partially correct, correct, after n submissions, “good enough” submissions, etc.). Adding support for one variation often creates expectations that other variations should also be supported directly by the markup language.
In many cases, I think it’s both simpler and more flexible to let authors define their own boolean conditions that represent the exact behavior they want. For example:
<answer name="answer"></answer>
<div hide="$answer.numSubmissions=0">
I only show up once an answer is submitted.
</div>
This approach scales naturally to more complex scenarios without requiring additional sugar in the language.
Longer term, it may make more sense to provide a library of template <module> components for common pedagogical patterns. Authors could use those as starting points or comment specific pieces in or out to achieve the desired behavior. That would provide convenience without requiring the core markup language to support an ever-growing collection of specialized variants.
Otherwise, I think expecting the markup language itself to handle every variation of these kinds of components could become impractical.