@prefix core: <http://proethica.org/ontology/core#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix pcsh: <http://proethica.org/shapes/core#> .
@prefix proeth: <http://proethica.org/ontology/intermediate#> .
@prefix proeth-prov: <http://proethica.org/provenance#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

proeth:ClientDataConsentConstraint a owl:Class ;
    rdfs:label "Client Data Consent Constraint" ;
    proeth:affectedStakeholders "Client",
        "Engineer",
        "Third parties with access to exposed data" ;
    proeth:confidence "0.88" ;
    proeth:constraintType "confidentiality" ;
    proeth:flexibility "hard" ;
    proeth:mitigationStrategies "Anonymize or de-identify data before use in external tools",
        "Obtain written client consent before uploading data to any external platform",
        "Use only secure, private, client-approved systems" ;
    proeth:textReferences "Per Code section II.1.c, confidential information can only be shared with prior consent of the Client.",
        "When Engineer A uploaded Client W's information into the AI open-source interface, this was tantamount to placing the Client's private information in the public domain. The facts here do not indicate Engineer A obtained permission from Client W to use the private information in the public domain." ;
    proeth:violationImpact "Breach of client confidentiality, exposure of proprietary information to public domain, loss of client trust, potential legal liability" ;
    proeth-prov:discoveredInCase 7 ;
    proeth-prov:discoveredInPass 2 ;
    proeth-prov:discoveredInSection "discussion" ;
    proeth-prov:firstDiscoveredAt "2026-06-03T14:11:08.316438+00:00"^^xsd:dateTime ;
    proeth-prov:firstDiscoveredInCase 7 ;
    proeth-prov:matchConfidence 0.0 ;
    proeth-prov:matchesExisting false ;
    proeth-prov:sourceText "Per Code section II.1.c, confidential information can only be shared with prior consent of the Client." ;
    rdfs:comment "Confidentiality constraint prohibiting an engineer from sharing, uploading, or otherwise transmitting confidential client information to any external system or third party without first obtaining the client's explicit prior consent, regardless of the purpose or perceived benefit of the transmission." ;
    rdfs:subClassOf proeth:ConfidentialityConstraint,
        proeth:InviolableConstraint ;
    skos:definition "Confidentiality constraint prohibiting an engineer from sharing, uploading, or otherwise transmitting confidential client information to any external system or third party without first obtaining the client's explicit prior consent, regardless of the purpose or perceived benefit of the transmission." ;
    prov:generatedAtTime "2026-06-03T14:11:08.316438+00:00"^^xsd:dateTime ;
    prov:wasAttributedTo "Case 7 Extraction",
        "claude-sonnet-4-6" .

pcsh:CaseAnnotationShape a sh:NodeShape ;
    rdfs:label "Shared per-case annotation schema (all nine components)"@en ;
    rdfs:comment "The cross-component annotation fields on committed case individuals: proeth:confidence (extraction confidence, decimal; all components except Action, whose Step-3 contract carries no confidence field), proeth:textReferences (verbatim supporting quotes, universal), proeth-prov sourceText (the source snippet, on the Step-1/2 provenance layers; Step-3 A/E individuals ground via textReferences only), and the involvement gloss (proeth:caseInvolvement on role individuals, proeth:caseContext on obligation, capability, and constraint individuals). Values are per-individual; the fields do not individuate any type."@en ;
    sh:property [ sh:description "Extraction confidence for this individual (0 to 1)." ;
            sh:name "confidence" ;
            sh:order 1 ;
            sh:path proeth:confidence ],
        [ sh:description "Verbatim case quotes supporting this individual." ;
            sh:name "text references" ;
            sh:order 2 ;
            sh:path proeth:textReferences ],
        [ sh:description "How this individual figures in the case narrative (role individuals; the same text is routed into rdfs:comment)." ;
            sh:name "case involvement" ;
            sh:order 3 ;
            sh:path proeth:caseInvolvement ],
        [ sh:description "Grounding context in this case (obligation, capability, and constraint individuals)." ;
            sh:name "case context" ;
            sh:order 4 ;
            sh:path proeth:caseContext ] ;
    sh:targetClass core:Action,
        core:Capability,
        core:Constraint,
        core:Event,
        core:Obligation,
        core:Principle,
        core:Resource,
        core:Role,
        core:State .

pcsh:ConstraintDefinitionShape a sh:NodeShape ;
    rdfs:label "Constraint definition schema (type-level, descriptive, field contract)"@en ;
    rdfs:comment "What individuates a constraint TYPE: the boundary it states (boundary_type, which drives the subClassOf typing into one of the ten closed boundary-type classes) and the source provision that establishes it. The per-case severity and applicability, the agent it limits, and the action it bounds are per-individual and declared on ConstraintPropertyShape, mirroring the R/P/O/S/Rs/Ca Definition/Property split and the constraint scopeNote (the TYPE is the prohibition plus its source provision; the constrained party, per-occasion applicability, and any exception attach to the case individual). Descriptive only (no validation result); the routing input is the constraint_type schema field (the boundaryType property is its shape-path anchor), not stored as a literal."@en ;
    sh:property [ sh:description "The controlled boundary type, which drives the subClassOf typing into one of the ten closed boundary-type classes: LegalConstraint, RegulatoryConstraint, ResourceConstraint, CompetenceConstraint, JurisdictionalConstraint, ProceduralConstraint, EthicalConstraint, SafetyConstraint, ConfidentialityConstraint, TemporalConstraint. The prohibition/boundary content that individuates the type. A routing input, not stored as a literal." ;
            sh:name "boundary type" ;
            sh:order 1 ;
            sh:path proeth:boundaryType ],
        [ pcsh:informationalOnly true ;
            sh:description "The source CodeProvision that establishes the constraint, via the establishedBy edge. The second type-individuating coordinate: per the scopeNote a constraint type is the boundary it states plus its source provision. Range: CodeProvision." ;
            sh:name "established by" ;
            sh:order 2 ;
            sh:path core:establishedBy ] ;
    sh:targetClass core:Constraint .

pcsh:ConstraintPropertyShape a sh:NodeShape ;
    rdfs:label "Constraint per-case schema (individual data, non-definitional)"@en ;
    rdfs:comment "What a given constraint INDIVIDUAL is described by in a specific case: its per-occasion severity and applicability window, the agent whose conduct it limits, and the action it bounds. These do NOT individuate the constraint TYPE (that is ConstraintDefinitionShape, keyed on the boundary it states and its source provision); their values are per-case, asserted on the individual. Descriptive only."@en ;
    sh:property [ sh:description "The severity of the constraint in this case (critical, high, medium, low); a per-occasion assessment (Dennis severity ordering) that can differ across cases sharing the same boundary." ;
            sh:name "severity" ;
            sh:order 1 ;
            sh:path proeth:severity ],
        [ sh:description "The situational TRIGGER: the circumstances under which the prohibition applies in this case (the Dennis specification-by-context condition); temporalScope carries the durational window." ;
            sh:name "applicability condition" ;
            sh:order 2 ;
            sh:path proeth:applicabilityCondition ],
        [ sh:description "The agent whose conduct the constraint limits, via the outgoing constrainedEntity edge. Range: Agent." ;
            sh:name "constrained entity" ;
            sh:order 3 ;
            sh:path core:constrainedEntity ],
        [ sh:description "The durational WINDOW during which the boundary is in force in this case (e.g. for the duration of the engagement); applicabilityCondition carries the situational trigger under which it applies." ;
            sh:name "temporal scope" ;
            sh:order 4 ;
            sh:path proeth:temporalScope ],
        [ sh:description "The provision or authority string as extracted, kept verbatim on the individual; each dotted NSPE designation that resolves against the provision registry is also materialized as the establishedBy edge (a non-code source survives only in this literal)." ;
            sh:name "source" ;
            sh:order 5 ;
            sh:path proeth:source ],
        [ sh:description "The operative must-not clause, kept verbatim; mirrors skos:definition and is one of the narrative source fields the defeasibility harvest reads from committed TTLs." ;
            sh:name "constraint statement" ;
            sh:order 6 ;
            sh:path proeth:constraintStatement ] ;
    sh:targetClass core:Constraint .

