lesson 3 of 8 · name the narrow joblesson 3 of 8 · name the narrow joblesson 3 of 8 · name the narrow joblesson 3 of 8 · name the narrow joblesson 3 of 8 · name the narrow joblesson 3 of 8 · name the narrow joblesson 3 of 8 · name the narrow joblesson 3 of 8 · name the narrow joblesson 3 of 8 · name the narrow joblesson 3 of 8 · name the narrow joblesson 3 of 8 · name the narrow job
Write lint_specialist_job(job) — the check that decides whether a
job card is narrow enough to train. Walk the fields in this order and
return the first failure string (do not collect a list):
job["sentence"]empty or more than 24 words →"hold: job sentence must be one short sentence"set(job["labels"])is not exactly{"flake", "product-bug", "needs-human"}→"hold: labels must be flake, product-bug, needs-human"- fewer than 3 items in
job["acceptance"]→"hold: need at least 3 acceptance tests" job.get("knowledge_changing")is truthy →"hold: changing facts belong in RAG"- otherwise →
"pass"
The starter already prints four cards. Expected output:
good pass
long-sentence hold: job sentence must be one short sentence
extra-label hold: labels must be flake, product-bug, needs-human
handbook-facts hold: changing facts belong in RAG