3.1 KiB
Task 3 report — Remove external semantic bindings and render internal endpoints
Date: 2026-08-08
Scope
Implemented backend-owned schema-v3 semantic runtime rendering so workspace descriptors and installation contracts remain free of external Qdrant/Ollama endpoints and credentials, while DWH bindings stay unchanged.
RED evidence
Focused RED command:
cd backend && npx vitest run test/workspaces-contracts.test.ts test/workspaces-bindings.test.ts test/workspace-runtime-renderer.test.ts test/config.test.ts
Observed failures before implementation:
config.test.ts- missing
internalQdrantUrl - missing
internalEmbeddingUrl
- missing
workspaces-bindings.test.ts- schema v3 semantic binding resolution threw unsupported errors
workspace-runtime-renderer.test.ts- schema v3 runtime rendering threw
Schema version 3 runtime rendering is unsupported until the internal semantic runtime is implemented
- schema v3 runtime rendering threw
GREEN evidence
Focused GREEN command:
cd backend && npx vitest run test/workspaces-contracts.test.ts test/workspaces-bindings.test.ts test/workspace-runtime-renderer.test.ts test/config.test.ts
Result:
- 4 test files passed
- 36 tests passed
Typecheck:
cd backend && npx tsc --noEmit -p .
Result:
- passed
Hygiene:
git diff --checkpassed
Files changed
Listed-task files changed:
backend/src/config.tsbackend/src/workspaces/bindings.tsbackend/src/workspaces/runtime-renderer.tsbackend/test/config.test.tsbackend/test/workspace-runtime-renderer.test.tsbackend/test/workspaces-bindings.test.tsbackend/test/workspaces-contracts.test.ts
Listed-task files inspected but not changed:
backend/src/workspaces/contracts.ts
Unavoidable additional wiring changes:
backend/src/app.tsbackend/src/tht/tht-runner.ts
Reason: the new typed internal semantic runtime config had to flow from backend config into ephemeral harness config rendering at runtime.
Behavior delivered
- schema-v3 installation contract exposes DWH bindings only
- schema-v3 binding resolution ignores external semantic env vars instead of sourcing runtime semantics from them
- runtime rendering for schema v3 emits backend-owned internal semantic endpoints:
- Qdrant:
http://qdrant:6333 - Embedding:
http://embedding:11434 - Model:
qwen3-embedding:0.6b - Dimensions:
1024
- Qdrant:
- internal semantic URLs are validated to allow only
qdrant/embedding/localhost/ loopback hosts - DWH transport/runtime behavior remains unchanged
Self-review
- Confirmed schema-v3 contracts/docs no longer advertise VECTOR or EMBEDDING installation variables.
- Confirmed schema-v3 runtime output ignores injected external semantic endpoints from env bindings.
- Confirmed semantic endpoints are rendered only in the ephemeral backend-owned harness config path.
- Confirmed type wiring is explicit from
AppConfig→ThtRunner→ runtime renderer.
Concerns
- Host validation currently permits both
httpandhttpson the allowed internal hosts. That keeps the configuration flexible, but if the installation contract intendedhttponly, that restriction is not enforced here.