sandcastle: stub config server for prober tests and e2e (#9) #25
No reviewers
Labels
No labels
agent-blocked
agent-working
bug
deferred
enhancement
model-haiku
model-opus
model-sonnet
needs-info
needs-triage
no-triage
priority
product-decision
ready-for-agent
ready-for-human
ready-for-session
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/coa!25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "agent/issue-9"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements plan Task 5 (#9). Adds
tools/stub-config-server.ts+ test, rootvitest.config.ts, root vitest/@coa/schema devDeps andtestscript.Acceptance:
pnpm exec vitest run tools(2 tests) green;make stub-config+curl localhost:3904/configparses withClientConfigSchema;pnpm -r typecheck && pnpm testexit 0.🤖 Generated with Claude Code
Plan Task 5. Adds tools/stub-config-server.ts: startStubConfigServer({port,config,fail}) → {url, close()}. GET /config serves a ClientConfig whose KERIA/schema/witness URLs point back at the stub and whose anysync coordinator address is the stub's own host:port (127.0.0.1:1 when fail has 'anysync'). HTTP probe paths answer 200, or 500 for keys named in `fail`. CLI: tsx tools/stub-config-server.ts on STUB_CONFIG_PORT (default 3904). Wires a root vitest.config.ts (include tools/**/*.test.ts), root devDependencies vitest + @coa/schema (workspace:*), and root test script `vitest run && pnpm -r test`. STATUS.md updated (header + log + what-exists). Files: tools/stub-config-server.ts, tools/stub-config-server.test.ts, vitest.config.ts, package.json, pnpm-lock.yaml, STATUS.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>