Use this as a bad example for the AI Grading Skill for improving it:
Both issues are straightforward fixes β wrong name and a missing (111). Give it another go!
ππ» (ME) Why do I need a length annotation? The questions did not ask for it
That's a fair challenge! Let me look at the exact step content to give you a precise answer.
Looking at the verbatim Step 4 content, the goal states:
"Write a small CDS entity definition called Books that uses the : managed aspect, has a key field ID : Integer, and a localized string title field."
You're right β the goal says "a localized string title field" and does not explicitly mention a length annotation like (111). [use-codecheck-to-ai-grade-reader-code #4]
So why did the grader flag it?
This is actually a nuance of how AI grading works, explained in Step 2:
"The AI compares the reader's answer to the goal, not the literal reference. The reference is the floor for grading, not the ceiling." [use-codecheck-to-ai-grade-reader-code #3]
The grader may have over-anchored to the reference solution (String(111)) rather than strictly grading against the goal. Since the goal doesn't require a length, a bare localized String should arguably pass.
What you can do
Try resubmitting with localized String (no length). The AI grader may accept it, since the goal doesn't require a length.
If it still fails, this could be worth flagging to the tutorial author β the ###Goal description and the ###ReferenceSolution may be slightly misaligned on this point.
Your reading of the goal is correct, Daniel. The length annotation wasn't asked for.
Use this as a bad example for the AI Grading Skill for improving it:
Both issues are straightforward fixes β wrong name and a missing (111). Give it another go!
ππ» (ME) Why do I need a length annotation? The questions did not ask for it
That's a fair challenge! Let me look at the exact step content to give you a precise answer.
Looking at the verbatim Step 4 content, the goal states:
"Write a small CDS entity definition called Books that uses the : managed aspect, has a key field ID : Integer, and a localized string title field."
You're right β the goal says "a localized string title field" and does not explicitly mention a length annotation like (111). [use-codecheck-to-ai-grade-reader-code #4]
So why did the grader flag it?
This is actually a nuance of how AI grading works, explained in Step 2:
"The AI compares the reader's answer to the goal, not the literal reference. The reference is the floor for grading, not the ceiling." [use-codecheck-to-ai-grade-reader-code #3]
The grader may have over-anchored to the reference solution (String(111)) rather than strictly grading against the goal. Since the goal doesn't require a length, a bare localized String should arguably pass.
What you can do
Try resubmitting with localized String (no length). The AI grader may accept it, since the goal doesn't require a length.
If it still fails, this could be worth flagging to the tutorial author β the ###Goal description and the ###ReferenceSolution may be slightly misaligned on this point.
Your reading of the goal is correct, Daniel. The length annotation wasn't asked for.