@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix edu: <https://knobit.org/def/> .
@prefix knobit: <https://knobit.org/id/knobit/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix register: <https://knobit.org/id/register/> .
@prefix schema: <https://schema.org/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .

knobit:K-801 a edu:Knobit ;
    rdfs:label "Recognises generated SQL edited by hand"@en ;
    dcterms:identifier "K-801" ;
    dcterms:license <https://creativecommons.org/licenses/by/4.0/> ;
    dcterms:source "Review checklist 05-ddl, row 1; BCBS 239; Humble & Farley 2010"@en ;
    skos:altLabel "Generated SQL edited by hand (generated DDL)"@en ;
    skos:definition "A file in `08-ddl/` that regeneration does not reproduce byte for byte. The header says `DO NOT HAND-EDIT`; look for the edit anyway — an added constraint, a reordered statement, a tweaked type, a comment. From here the model and the database tell different stories and nothing mechanical can say which is right."@en ;
    skos:prefLabel "Recognises generated SQL edited by hand"@en ;
    edu:actionVerb "Recognises"@en ;
    edu:appliesKnowledge knobit:K-851 ;
    edu:assessmentCriterion "Flags the deficient case and passes the acceptable one. Deficient: `ck_fact_payment_settled_le_instructed` added straight into `01_create_tables.sql` after a deploy failure; the next regeneration drops it, nobody notices for two releases, and over-settled payments load again Acceptable: The check added to `fact_payment.check_constraints` in `physical-model.yaml` and the DDL regenerated; `diff -r 08-ddl /tmp/ddl-check` empty, and that diff run in CI"@en ;
    edu:assessmentMethod "skill-tests task: Generated DDL review, Postgres and Snowflake (DDL review skills)"@en ;
    edu:contextFunction <https://knobit.org/def/contextFunction/resultEvaluation> ;
    edu:creationMethod <https://knobit.org/def/creationMethod/aiGeneratedHumanEdited> ;
    edu:expectedResult "The hand edit and the model change replacing it"@en ;
    edu:followedBy knobit:K-641 ;
    edu:graphRelevance <https://knobit.org/def/graphRelevance/learnerState>,
        <https://knobit.org/def/graphRelevance/taskSelection> ;
    edu:knobitType <https://knobit.org/def/knobitType/skill> ;
    edu:targetObject "generated DDL file"@en ;
    schema:creativeWorkStatus "accepted" ;
    schema:isPartOf register:data-modelling .

edu:Knobit rdfs:label "Knobit"@en,
        "Knobit"@et .

knobit:K-641 rdfs:label "Routes a defect to the deliverable responsible for it"@en .

knobit:K-851 rdfs:label "Explains generated artefacts and their single source of truth"@en .

