bus, harness: decision.raise takes one recommendation key and says which field failed (row 112, #1606)
A recommendation that isn't exactly one option key now refuses invalid-recommendation, checked after the options, instead of sharing invalid-options with bad option lists. The raise_decision tool text says recommendation is one key with the reason in question, and that approvalChoice defaults to yes. The bus README lists the three codes, the field each names and the check order; a malformed option object refuses invalid-request. No schema change. Candidate manifest 013c82c2fd99d23d92f6bed543a788aa04ff97b164019ccb15252ae808b4138e (Darkwing round 2, packetfee89d52f), BASE96656dd21. Approved by Filbert (comment 28383) and Sage (comment 28384). Sage gate rerun atf63fc20e4plus the candidate passed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -50,6 +50,11 @@ test("list_requirements reads the requirement ids, for a task.create holder with
|
||||
const raise = tools.find((x) => x.name === "raise_decision").parameters.properties;
|
||||
assert.match(raise.blocking.description, /needs task_ref/);
|
||||
assert.match(raise.blocking.description, /A request with no task is false/);
|
||||
assert.match(raise.recommendation.description, /^Exactly one option key, as written in options, with nothing added/);
|
||||
assert.doesNotMatch(raise.recommendation.description, /with a reason/);
|
||||
assert.match(raise.recommendation.description, /The reason goes in question/);
|
||||
assert.match(raise.question.description, /the reason for your recommendation/);
|
||||
assert.match(raise.approvalChoice.description, /defaults to yes, so pass it whenever no option key is yes/);
|
||||
});
|
||||
|
||||
test("a coder gets no launch, no resolve_decision, and no task tools without a tracker", (t) => {
|
||||
|
||||
Reference in New Issue
Block a user