test: align semantic index doc verifier
This commit is contained in:
@@ -234,9 +234,40 @@ text = text.replace(
|
||||
)
|
||||
path.write_text(text)
|
||||
PY
|
||||
semantic_index_spec='{"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)"}]}'
|
||||
semantic_index_spec="$(semantic_index_relationship_spec)"
|
||||
verify_markdown_table_relationships "$local_manual_paraphrase" "local manual paraphrase" "Semantic index ownership contract" "$semantic_index_spec" >/dev/null
|
||||
|
||||
production_paraphrase_root="$negative_root/production-paraphrase-root"
|
||||
mkdir -p "$production_paraphrase_root"
|
||||
rsync -a \
|
||||
--exclude '.git' \
|
||||
--exclude '.pytest_cache' \
|
||||
--exclude 'node_modules' \
|
||||
--exclude 'backend/node_modules' \
|
||||
--exclude 'frontend/node_modules' \
|
||||
--exclude 'harness/.venv' \
|
||||
"$root/" "$production_paraphrase_root/"
|
||||
python3 - "$production_paraphrase_root/docs/install/local-workspace-registry.md" <<'PY'
|
||||
import pathlib, sys
|
||||
path = pathlib.Path(sys.argv[1])
|
||||
text = path.read_text()
|
||||
text = text.replace(
|
||||
"| Workspace semantic index | Each workspace reserves a single Qdrant collection. | Schema, Evidence, and Memory stay in that one collection and remain isolated by payload `kind`. |",
|
||||
"| Workspace semantic index | A workspace keeps exactly one Qdrant collection reserved for itself. | Schema, Evidence, and Memory remain together in that collection and are still separated by payload `kind`. |",
|
||||
)
|
||||
path.write_text(text)
|
||||
PY
|
||||
set +e
|
||||
"$production_paraphrase_root/scripts/verify-workspace-install-docs.sh" --fixtures-only \
|
||||
>"$workspace_output" 2>&1
|
||||
workspace_status=$?
|
||||
set -e
|
||||
if [[ $workspace_status -ne 0 ]]; then
|
||||
echo "production verifier rejected the accepted semantic-index paraphrase" >&2
|
||||
cat "$workspace_output" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
local_manual_missing="$negative_root/local-manual-missing.md"
|
||||
cp "$root/docs/install/local-workspace-registry.md" "$local_manual_missing"
|
||||
python3 - "$local_manual_missing" <<'PY'
|
||||
|
||||
Reference in New Issue
Block a user