test: align semantic index doc verifier
This commit is contained in:
@@ -155,6 +155,14 @@ for row_spec in spec["rows"]:
|
||||
PY
|
||||
}
|
||||
|
||||
semantic_index_relationship_spec() {
|
||||
cat <<'JSON'
|
||||
{"rows":[
|
||||
{"scope":"workspace semantic index","ownership rule":"(each|one|single|exactly one).*(workspace).*(single|one|exactly one).*(Qdrant).*(collection)|(workspace keeps exactly one qdrant collection reserved for itself)","isolation rule":"schema.*evidence.*memory.*(one|that).*(collection).*(kind|payload)|schema.*evidence.*memory.*together.*collection.*(kind|payload)"}
|
||||
]}
|
||||
JSON
|
||||
}
|
||||
|
||||
verify_compose_internal_semantic_contract() {
|
||||
python3 - "$root/compose.yaml" <<'PY'
|
||||
import sys, yaml, pathlib
|
||||
@@ -308,9 +316,7 @@ verify_internal_semantic_infrastructure_docs() {
|
||||
{"component":"^Qdrant$","ownership":"^Internal$","operator contract":"internal|Compose|qdrant-data"},
|
||||
{"component":"^Ollama embedding$","ownership":"^Internal$","operator contract":"internal|Compose|qwen3-embedding:0\\.6b"}
|
||||
]}'
|
||||
semantic_index_spec='{"rows":[
|
||||
{"scope":"workspace semantic index","ownership rule":"(each|one|single).*(workspace).*(single|one).*(Qdrant).*(collection)|(each workspace reserves a single qdrant collection)","isolation rule":"schema.*evidence.*memory.*(one|that).*(collection).*(kind|payload)"}
|
||||
]}'
|
||||
semantic_index_spec="$(semantic_index_relationship_spec)"
|
||||
compact_spec='{"rows":[
|
||||
{"componente":"^DWH$","ownership":"^Esterno$","contratto operativo":"endpoint.*estern"},
|
||||
{"componente":"^LLM$","ownership":"^Esterno$","contratto operativo":"esterna|esterno"},
|
||||
|
||||
Reference in New Issue
Block a user