@quickpipeaiab/domain 0.11.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ai.ttl CHANGED
@@ -13,8 +13,8 @@
13
13
 
14
14
  <https://id.quickpipe.ai/domain/ai>
15
15
  a owl:Ontology ;
16
- owl:versionIRI <https://id.quickpipe.ai/domain/0.11.0/ai> ;
17
- owl:versionInfo "0.11.0" ;
16
+ owl:versionIRI <https://id.quickpipe.ai/domain/0.13.0/ai> ;
17
+ owl:versionInfo "0.13.0" ;
18
18
  core:title "QuickPipe domain model: ai"@en ;
19
19
  core:preferred-prefix "ai" ;
20
20
  core:preferred-namespace "https://id.quickpipe.ai/domain/ai#" ;
@@ -462,7 +462,7 @@ ai:model a owl:Class ;
462
462
 
463
463
  ai:tool a owl:Class ;
464
464
  rdfs:subClassOf ai:target ;
465
- owl:disjointUnionOf ( ai:mcp-tool ai:client-tool ) ;
465
+ owl:disjointUnionOf ( ai:mcp-tool ai:client-tool ai:agent-tool ) ;
466
466
  core:label "tool"@en ;
467
467
  core:definition "An operation that the model of a run can call. The task sets the tools that its runs can use."@en ;
468
468
  core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
@@ -496,6 +496,17 @@ ai:client-tool a owl:Class ;
496
496
  core:owner core:kai-agent ;
497
497
  core:has-contract true .
498
498
 
499
+ ai:agent-tool a owl:Class ;
500
+ rdfs:subClassOf ai:tool ;
501
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( ai:tool
502
+ [ a owl:Restriction ; owl:onProperty ai:has-tool-kind ; owl:hasValue ai-vocab:tool-kind-agent ] ) ] ;
503
+ core:label "agent tool"@en ;
504
+ core:definition "A tool that gives work to a registered client agent through the A2A client adapter, as 0053 tells."@en ;
505
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
506
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
507
+ core:owner core:kai-agent ;
508
+ core:has-contract true .
509
+
499
510
  ai:server-token a owl:Class ;
500
511
  rdfs:subClassOf core:entity ;
501
512
  owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( core:entity
@@ -596,10 +607,10 @@ ai:admin-change a owl:Class ;
596
607
  # Object properties.
597
608
 
598
609
  ai:of-task a owl:ObjectProperty , owl:FunctionalProperty ;
599
- rdfs:domain [ a owl:Class ; owl:unionOf ( ai:run ai:prompt-version ai:release ai:override ai:schedule ai:spend-entry ai:scorer ai:eval-set ) ] ;
610
+ rdfs:domain [ a owl:Class ; owl:unionOf ( ai:run ai:flow ai:prompt-version ai:release ai:override ai:schedule ai:spend-entry ai:scorer ai:eval-set ) ] ;
600
611
  rdfs:range ai:task ;
601
612
  core:label "of task"@en ;
602
- core:definition "The task of a run, a prompt version, a release, an override, a schedule, a spend entry, a scorer or an eval set."@en ;
613
+ core:definition "The task of a run, a flow, a prompt version, a release, an override, a schedule, a spend entry, a scorer or an eval set."@en ;
603
614
  core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
604
615
  core:defined-by <https://id.quickpipe.ai/domain/ai> ;
605
616
  core:owner core:kai-agent .
@@ -632,7 +643,7 @@ ai:of-schedule a owl:ObjectProperty , owl:FunctionalProperty ;
632
643
  core:owner core:kai-agent .
633
644
 
634
645
  ai:in-thread a owl:ObjectProperty , owl:FunctionalProperty ;
635
- rdfs:domain [ a owl:Class ; owl:unionOf ( ai:run ai:memory ) ] ;
646
+ rdfs:domain [ a owl:Class ; owl:unionOf ( ai:run ai:flow ai:memory ) ] ;
636
647
  rdfs:range ai:thread ;
637
648
  core:label "in thread"@en ;
638
649
  core:definition "The thread of a conversation. The caller sends a `thread` id for a conversation."@en ;
@@ -644,7 +655,7 @@ ai:of-run a owl:ObjectProperty , owl:FunctionalProperty ;
644
655
  rdfs:domain [ a owl:Class ; owl:unionOf ( ai:run-status-period ai:identifier-index ai:server-token ai:outbound-call ai:spend-entry ai:run-content ai:score ai:flow-event ) ] ;
645
656
  rdfs:range ai:run ;
646
657
  core:label "of run"@en ;
647
- core:definition "The run of a run status, an identifier index, a stored server token, an outbound call or a spend entry."@en ;
658
+ core:definition "The run of a run status period, an identifier index, a stored server token, an outbound call, a spend entry, a run content, a score of a run or a flow event."@en ;
648
659
  core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
649
660
  core:defined-by <https://id.quickpipe.ai/domain/ai> ;
650
661
  core:owner core:kai-agent .
@@ -743,7 +754,7 @@ ai:has-output-kind a owl:ObjectProperty , owl:FunctionalProperty ;
743
754
  ai:has-task-tag a owl:ObjectProperty ;
744
755
  rdfs:domain ai:task ;
745
756
  rdfs:range billing:tag ;
746
- core:label "has task tag"@en ;
757
+ core:label "task tag"@en ;
747
758
  core:definition "A key and a value in the task code that the hold of each run of the task carries to `billing`. A task tag is a tag of `billing`. A task has a maximum of 5 task tags, because a hold has a maximum of 5 tags."@en ;
748
759
  core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
749
760
  core:defined-by <https://id.quickpipe.ai/domain/ai> ;
@@ -1058,7 +1069,7 @@ ai:has-decision-form a owl:ObjectProperty , owl:FunctionalProperty ;
1058
1069
  ai:has-escalation-model a owl:ObjectProperty , owl:FunctionalProperty ;
1059
1070
  rdfs:domain ai:prompt-version ;
1060
1071
  rdfs:range ai:model ;
1061
- core:label "has escalation model"@en ;
1072
+ core:label "escalation model"@en ;
1062
1073
  core:definition "The one model of the prompt version of a decision task that answers again after a valid object with the confidence `low`, as 0054 tells. It has its own model settings, and it is not a part of the fallback list."@en ;
1063
1074
  core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Registry" ;
1064
1075
  core:defined-by <https://id.quickpipe.ai/domain/ai> ;
@@ -1086,10 +1097,10 @@ ai:escalates a owl:ObjectProperty , owl:FunctionalProperty ;
1086
1097
  # Datatype properties.
1087
1098
 
1088
1099
  ai:has-correlation-id a owl:DatatypeProperty , owl:FunctionalProperty ;
1089
- rdfs:domain [ a owl:Class ; owl:unionOf ( ai:run ai:spend-entry desk:flow-action billing:outbox-row events:webhook-message ) ] ;
1100
+ rdfs:domain [ a owl:Class ; owl:unionOf ( ai:run ai:flow ai:spend-entry desk:flow-action billing:outbox-row events:webhook-message ) ] ;
1090
1101
  rdfs:range xsd:string ;
1091
1102
  core:label "has run correlation id"@en ;
1092
- core:definition "The trace id of the request that starts a run, or that makes an outbox row or a flow action. Later requests have their own traces, with a span link to it."@en ;
1103
+ core:definition "The trace id of the request that starts a run or a flow, or that makes an outbox row or a flow action. Later requests have their own traces, with a span link to it."@en ;
1093
1104
  core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
1094
1105
  core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1095
1106
  core:owner core:kai-agent ;
@@ -1108,7 +1119,7 @@ ai:has-segment-number a owl:DatatypeProperty , owl:FunctionalProperty ;
1108
1119
  ai:has-schema-version a owl:DatatypeProperty , owl:FunctionalProperty ;
1109
1120
  rdfs:domain [ a owl:Class ; owl:unionOf ( ai:task ai:prompt-version ) ] ;
1110
1121
  rdfs:range xsd:positiveInteger ;
1111
- core:label "has schema version"@en ;
1122
+ core:label "schema version"@en ;
1112
1123
  core:definition "The major version of the input and output JSON Schemas of a task, in `@quickpipeaiab/contracts`."@en ;
1113
1124
  core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
1114
1125
  core:defined-by <https://id.quickpipe.ai/domain/ai> ;
@@ -1118,7 +1129,7 @@ ai:has-schema-version a owl:DatatypeProperty , owl:FunctionalProperty ;
1118
1129
  ai:has-task-minimum a owl:DatatypeProperty , owl:FunctionalProperty ;
1119
1130
  rdfs:domain ai:task ;
1120
1131
  rdfs:range xsd:long ;
1121
- core:label "has task minimum"@en ;
1132
+ core:label "task minimum"@en ;
1122
1133
  core:definition "The smallest cost that lets a task give one useful result, for example one complete answer. The task code declares it."@en ;
1123
1134
  core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
1124
1135
  core:defined-by <https://id.quickpipe.ai/domain/ai> ;
@@ -2081,7 +2092,7 @@ ai:metric-run-fallbacks a owl:NamedIndividual , core:metric-instrument ;
2081
2092
  ai:has-pass-mark a owl:DatatypeProperty , owl:FunctionalProperty ;
2082
2093
  rdfs:domain [ a owl:Class ; owl:unionOf ( ai:eval-set ai:eval-result ) ] ;
2083
2094
  rdfs:range xsd:decimal ;
2084
- core:label "has pass mark"@en ;
2095
+ core:label "pass mark"@en ;
2085
2096
  core:definition "The minimum average score, from 0 to 1, that a prompt version must get on the eval set of its task. An eval result keeps the pass mark of its eval."@en ;
2086
2097
  core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2087
2098
  core:defined-by <https://id.quickpipe.ai/domain/ai> ;
@@ -2427,6 +2438,16 @@ ai:column-prompts-releases-updated-at a owl:NamedIndividual , core:column ;
2427
2438
  core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2428
2439
  core:owner core:kai-agent .
2429
2440
 
2441
+ ai:column-prompts-releases-released-by a owl:NamedIndividual , core:column ;
2442
+ core:of-table ai:table-prompts-releases ;
2443
+ core:has-name "released_by" ;
2444
+ core:not-modelled-reason "A technical marker of the writer of the row: `seed` for the seed step, `staff` for a publish or a rollback. The database lists a version as released only for `staff`."@en ;
2445
+ core:label "prompts.releases.released_by"@en ;
2446
+ core:definition "The writer of the last change of the prompt release row."@en ;
2447
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0014-prompt-store.md#Decision" ;
2448
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2449
+ core:owner core:kai-agent .
2450
+
2430
2451
  ai:table-prompts-versions a owl:NamedIndividual , core:table ;
2431
2452
  core:in-database-schema ai:schema-prompts ;
2432
2453
  core:has-name "versions" ;
@@ -3017,7 +3038,7 @@ ai:column-execution-runs-correlation a owl:NamedIndividual , core:column ;
3017
3038
  ai:column-execution-runs-flow a owl:NamedIndividual , core:column ;
3018
3039
  core:of-table ai:table-execution-runs ;
3019
3040
  core:has-name "flow" ;
3020
- core:not-modelled-reason "The id of the flow that the run serves. The model has no class for a flow. The flow keeps the id of its run in `desk:records.flow_actions`."@en ;
3041
+ core:stores-property ai:of-flow ;
3021
3042
  core:label "execution.runs.flow"@en ;
3022
3043
  core:definition "The id of the flow of `kai-agent` that asked for the run. A run outside a flow has none."@en ;
3023
3044
  core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
@@ -3449,17 +3470,273 @@ ai:chooses-option a owl:DatatypeProperty ;
3449
3470
  core:owner core:kai-agent ;
3450
3471
  core:gdpr-category core-vocab:gdpr-category-non-personal .
3451
3472
 
3452
- ai:has-flow-status a owl:ObjectProperty , owl:FunctionalProperty ;
3473
+ ai:answers-event a owl:DatatypeProperty , owl:FunctionalProperty ;
3474
+ rdfs:domain ai:flow-message ;
3475
+ rdfs:range xsd:positiveInteger ;
3476
+ core:label "answers event"@en ;
3477
+ core:definition "The number of the last card of the flow that the user saw when the user sent a text or a choice. The flow takes the message only when that card is still the open card or a copy of it."@en ;
3478
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3479
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3480
+ core:owner core:kai-agent ;
3481
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3482
+
3483
+ ai:flow a owl:Class ;
3484
+ rdfs:subClassOf core:entity ;
3485
+ core:label "flow"@en ;
3486
+ core:definition "One prospect flow or campaign flow of one user in one workspace. It has a thread, a task, a status for the user and a list of steps. Each step of the model is a run that has the flow."@en ;
3487
+ core:hint "A chat with Koa that leads you through a job, step by step."@en ;
3488
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
3489
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3490
+ core:owner core:kai-agent ;
3491
+ core:has-contract false ;
3492
+ core:retention "none" ;
3493
+ core:retention-clock core-vocab:retention-clock-since-created ;
3494
+ core:controller-role core-vocab:controller-role-processor .
3495
+
3496
+ ai:of-flow a owl:ObjectProperty , owl:FunctionalProperty ;
3453
3497
  rdfs:domain ai:run ;
3498
+ rdfs:range ai:flow ;
3499
+ core:label "of flow"@en ;
3500
+ core:definition "The flow that asked for a run. A run outside a flow has none."@en ;
3501
+ core:hint "The chat that this work belongs to."@en ;
3502
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3503
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3504
+ core:owner core:kai-agent ;
3505
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3506
+
3507
+ ai:has-flow-status a owl:ObjectProperty , owl:FunctionalProperty ;
3508
+ rdfs:domain ai:flow ;
3454
3509
  rdfs:range core:concept ;
3455
3510
  core:label "has flow status"@en ;
3456
- core:definition "The state of a run that drives a flow, as the user sees it. The value is a concept of the scheme `flow status`."@en ;
3511
+ core:definition "The state of a flow, as the user sees it. The value is a concept of the scheme `flow status`."@en ;
3457
3512
  core:hint "What the flow does now."@en ;
3458
3513
  core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3459
3514
  core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3460
3515
  core:owner core:kai-agent ;
3461
3516
  core:gdpr-category core-vocab:gdpr-category-non-personal .
3462
3517
 
3518
+ ai:ranked-account a owl:Class ;
3519
+ rdfs:subClassOf core:entity ;
3520
+ core:label "ranked account"@en ;
3521
+ core:definition "One account of an account rank, with its fit level and its rank notes. The rule of the task `account.rank` gives both."@en ;
3522
+ core:hint "One company in the ranked list, with how well it fits and what is against it."@en ;
3523
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Account rank" ;
3524
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3525
+ core:owner core:kai-agent ;
3526
+ core:has-contract false ;
3527
+ core:retention "none" ;
3528
+ core:retention-clock core-vocab:retention-clock-since-created ;
3529
+ core:controller-role core-vocab:controller-role-processor .
3530
+
3531
+ ai:fit-level a owl:Class ;
3532
+ rdfs:subClassOf core:concept ;
3533
+ core:label "fit level value"@en ;
3534
+ core:definition "A concept of the scheme `fit level`: how well one ranked account fits the wanted groups."@en ;
3535
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Account rank" ;
3536
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3537
+ core:owner core:kai-agent .
3538
+
3539
+ ai:rank-note a owl:Class ;
3540
+ rdfs:subClassOf core:concept ;
3541
+ core:label "rank note value"@en ;
3542
+ core:definition "A concept of the scheme `rank note`: one thing that the rule finds against one ranked account."@en ;
3543
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Account rank" ;
3544
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3545
+ core:owner core:kai-agent .
3546
+
3547
+ ai:has-fit-level a owl:ObjectProperty , owl:FunctionalProperty ;
3548
+ rdfs:domain ai:ranked-account ;
3549
+ rdfs:range ai:fit-level ;
3550
+ core:label "has fit level"@en ;
3551
+ core:definition "The fit level of a ranked account. The value is a concept of the scheme `fit level`."@en ;
3552
+ core:hint "How well this company fits what you want."@en ;
3553
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0092-account-rank-order-in-code.md#Decision" ;
3554
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3555
+ core:owner core:kai-agent ;
3556
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3557
+
3558
+ ai:has-rank-note a owl:ObjectProperty ;
3559
+ rdfs:domain ai:ranked-account ;
3560
+ rdfs:range ai:rank-note ;
3561
+ core:label "has rank note"@en ;
3562
+ core:definition "A rank note of a ranked account. A ranked account has zero or more. The value is a concept of the scheme `rank note`."@en ;
3563
+ core:hint "One thing that is against this company."@en ;
3564
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0092-account-rank-order-in-code.md#Decision" ;
3565
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3566
+ core:owner core:kai-agent ;
3567
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3568
+
3569
+ ai:table-execution-flows a owl:NamedIndividual , core:table ;
3570
+ core:in-database-schema ai:schema-execution ;
3571
+ core:has-name "flows" ;
3572
+ core:has-row-class ai:flow ;
3573
+ core:label "execution.flows"@en ;
3574
+ core:definition "The table of the flows of `kai-agent`: one row for each flow, with its place, its phase outputs, its bound `leads` run and its deadline."@en ;
3575
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3576
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3577
+ core:owner core:kai-agent .
3578
+
3579
+ ai:column-execution-flows-id a owl:NamedIndividual , core:column ;
3580
+ core:of-table ai:table-execution-flows ;
3581
+ core:has-name "id" ;
3582
+ core:in-primary-key true ;
3583
+ core:stores-property core:id ;
3584
+ core:label "execution.flows.id"@en ;
3585
+ core:definition "The id of the flow. It is the primary key."@en ;
3586
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3587
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3588
+ core:owner core:kai-agent .
3589
+
3590
+ ai:column-execution-flows-workspace a owl:NamedIndividual , core:column ;
3591
+ core:of-table ai:table-execution-flows ;
3592
+ core:has-name "workspace" ;
3593
+ core:stores-property core:in-workspace ;
3594
+ core:label "execution.flows.workspace"@en ;
3595
+ core:definition "The id of the workspace that owns the flow."@en ;
3596
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3597
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3598
+ core:owner core:kai-agent .
3599
+
3600
+ ai:column-execution-flows-user-id a owl:NamedIndividual , core:column ;
3601
+ core:of-table ai:table-execution-flows ;
3602
+ core:has-name "user_id" ;
3603
+ core:stores-property core:for-user ;
3604
+ core:label "execution.flows.user_id"@en ;
3605
+ core:definition "The id of the user who owns the flow."@en ;
3606
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3607
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3608
+ core:owner core:kai-agent .
3609
+
3610
+ ai:column-execution-flows-thread a owl:NamedIndividual , core:column ;
3611
+ core:of-table ai:table-execution-flows ;
3612
+ core:has-name "thread" ;
3613
+ core:stores-property ai:in-thread ;
3614
+ core:label "execution.flows.thread"@en ;
3615
+ core:definition "The id of the thread of the flow."@en ;
3616
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3617
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3618
+ core:owner core:kai-agent .
3619
+
3620
+ ai:column-execution-flows-task a owl:NamedIndividual , core:column ;
3621
+ core:of-table ai:table-execution-flows ;
3622
+ core:has-name "task" ;
3623
+ core:stores-property ai:of-task ;
3624
+ core:label "execution.flows.task"@en ;
3625
+ core:definition "The name of the task that the flow runs."@en ;
3626
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3627
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3628
+ core:owner core:kai-agent .
3629
+
3630
+ ai:column-execution-flows-status a owl:NamedIndividual , core:column ;
3631
+ core:of-table ai:table-execution-flows ;
3632
+ core:has-name "status" ;
3633
+ core:stores-property ai:has-flow-status ;
3634
+ core:label "execution.flows.status"@en ;
3635
+ core:definition "The state of the flow for the user: a notation of the scheme flow status."@en ;
3636
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3637
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3638
+ core:owner core:kai-agent .
3639
+
3640
+ ai:column-execution-flows-correlation a owl:NamedIndividual , core:column ;
3641
+ core:of-table ai:table-execution-flows ;
3642
+ core:has-name "correlation" ;
3643
+ core:stores-property ai:has-correlation-id ;
3644
+ core:label "execution.flows.correlation"@en ;
3645
+ core:definition "The trace id of the request that started the flow. Each run of the flow has it."@en ;
3646
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3647
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3648
+ core:owner core:kai-agent .
3649
+
3650
+ ai:column-execution-flows-created-at a owl:NamedIndividual , core:column ;
3651
+ core:of-table ai:table-execution-flows ;
3652
+ core:has-name "created_at" ;
3653
+ core:stores-property core:started-at ;
3654
+ core:label "execution.flows.created_at"@en ;
3655
+ core:definition "The time when the flow started."@en ;
3656
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3657
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3658
+ core:owner core:kai-agent .
3659
+
3660
+ ai:column-execution-flows-step a owl:NamedIndividual , core:column ;
3661
+ core:of-table ai:table-execution-flows ;
3662
+ core:has-name "step" ;
3663
+ core:not-modelled-reason "The place of the flow in its list of steps, as a number. The model keeps the step of an event, not of a flow."@en ;
3664
+ core:label "execution.flows.step"@en ;
3665
+ core:definition "The index of the step that the flow is in."@en ;
3666
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3667
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3668
+ core:owner core:kai-agent .
3669
+
3670
+ ai:column-execution-flows-phase a owl:NamedIndividual , core:column ;
3671
+ core:of-table ai:table-execution-flows ;
3672
+ core:has-name "phase" ;
3673
+ core:not-modelled-reason "The place of the flow in the phases of its step, as a number. The model keeps no phase."@en ;
3674
+ core:label "execution.flows.phase"@en ;
3675
+ core:definition "The index of the phase of the step that the flow is in."@en ;
3676
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3677
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3678
+ core:owner core:kai-agent .
3679
+
3680
+ ai:column-execution-flows-mastra-run a owl:NamedIndividual , core:column ;
3681
+ core:of-table ai:table-execution-flows ;
3682
+ core:has-name "mastra_run" ;
3683
+ core:not-modelled-reason "The id of the run of the workflow engine. It is work state that the model does not keep."@en ;
3684
+ core:label "execution.flows.mastra_run"@en ;
3685
+ core:definition "The id of the Mastra run that holds the suspend snapshot of the flow."@en ;
3686
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3687
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3688
+ core:owner core:kai-agent .
3689
+
3690
+ ai:column-execution-flows-outputs a owl:NamedIndividual , core:column ;
3691
+ core:of-table ai:table-execution-flows ;
3692
+ core:has-name "outputs" ;
3693
+ core:not-modelled-reason "The outputs of the phases as JSON. They hold answers of the user and personal data, and the model keeps no property for them."@en ;
3694
+ core:label "execution.flows.outputs"@en ;
3695
+ core:definition "The outputs of the phases of the flow, as JSON."@en ;
3696
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3697
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3698
+ core:owner core:kai-agent .
3699
+
3700
+ ai:column-execution-flows-leads-run a owl:NamedIndividual , core:column ;
3701
+ core:of-table ai:table-execution-flows ;
3702
+ core:has-name "leads_run" ;
3703
+ core:not-modelled-reason "The id of the run of `leads` that the flow waits for. The model keeps that run in `leads`."@en ;
3704
+ core:label "execution.flows.leads_run"@en ;
3705
+ core:definition "The id of the run of `leads` that the flow is bound to."@en ;
3706
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3707
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3708
+ core:owner core:kai-agent .
3709
+
3710
+ ai:column-execution-flows-wait-token a owl:NamedIndividual , core:column ;
3711
+ core:of-table ai:table-execution-flows ;
3712
+ core:has-name "wait_token" ;
3713
+ core:not-modelled-reason "The token that a wait phase uses to match its resume. It is work state that the model does not keep."@en ;
3714
+ core:label "execution.flows.wait_token"@en ;
3715
+ core:definition "The token of the wait that the flow is in."@en ;
3716
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3717
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3718
+ core:owner core:kai-agent .
3719
+
3720
+ ai:column-execution-flows-deadline-at a owl:NamedIndividual , core:column ;
3721
+ core:of-table ai:table-execution-flows ;
3722
+ core:has-name "deadline_at" ;
3723
+ core:not-modelled-reason "The time limit of a wait phase. It is work state that the model does not keep."@en ;
3724
+ core:label "execution.flows.deadline_at"@en ;
3725
+ core:definition "The time when the deadline job of the flow runs."@en ;
3726
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3727
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3728
+ core:owner core:kai-agent .
3729
+
3730
+ ai:column-execution-flows-updated-at a owl:NamedIndividual , core:column ;
3731
+ core:of-table ai:table-execution-flows ;
3732
+ core:has-name "updated_at" ;
3733
+ core:not-modelled-reason "A technical timestamp of the row. The model keeps no such time for this class."@en ;
3734
+ core:label "execution.flows.updated_at"@en ;
3735
+ core:definition "The time of the last change of the flow row."@en ;
3736
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3737
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3738
+ core:owner core:kai-agent .
3739
+
3463
3740
  ai:table-execution-contents a owl:NamedIndividual , core:table ;
3464
3741
  core:in-database-schema ai:schema-execution ;
3465
3742
  core:has-name "contents" ;
@@ -3692,6 +3969,27 @@ ai:erasure-marker a owl:Class ;
3692
3969
  core:retention-clock core-vocab:retention-clock-since-created ;
3693
3970
  core:controller-role core-vocab:controller-role-processor .
3694
3971
 
3972
+ ai:has-publish-reason a owl:DatatypeProperty , owl:FunctionalProperty ;
3973
+ rdfs:domain ai:admin-change ;
3974
+ rdfs:range xsd:string ;
3975
+ core:label "publish reason"@en ;
3976
+ core:definition "The text that an author writes to publish or roll back the own prompt version, from 1 to 500 characters. The admin change keeps it with `selfApproved`."@en ;
3977
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Actors" ;
3978
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3979
+ core:owner core:kai-agent ;
3980
+ core:gdpr-category core-vocab:gdpr-category-non-personal ;
3981
+ core:may-contain-free-text true .
3982
+
3983
+ ai:has-subject-request-kind a owl:ObjectProperty , owl:FunctionalProperty ;
3984
+ rdfs:domain ai:subject-request ;
3985
+ rdfs:range core:concept ;
3986
+ core:label "has subject request kind"@en ;
3987
+ core:definition "What a subject request asks. The value is a concept of the scheme `subject request kind`."@en ;
3988
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
3989
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3990
+ core:owner core:kai-agent ;
3991
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3992
+
3695
3993
  ai:subject-request a owl:Class ;
3696
3994
  rdfs:subClassOf core:activity ;
3697
3995
  core:label "subject request"@en ;
@@ -3842,7 +4140,7 @@ ai:column-execution-subject-requests-id a owl:NamedIndividual , core:column ;
3842
4140
  ai:column-execution-subject-requests-kind a owl:NamedIndividual , core:column ;
3843
4141
  core:of-table ai:table-execution-subject-requests ;
3844
4142
  core:has-name "kind" ;
3845
- core:not-modelled-reason "The kind of the request, `erasure` or `export`. The model has the classes `identity:erasure` and `identity:export-request`, and no scheme for the kind of a subject request."@en ;
4143
+ core:stores-property ai:has-subject-request-kind ;
3846
4144
  core:label "execution.subject_requests.kind"@en ;
3847
4145
  core:definition "The kind of the subject request: `erasure` or `export`."@en ;
3848
4146
  core:source "docs/specs/lead-scoring/docs/internal/decisions/0111-subject-requests.md#Decision" ;