Plan updated with the alknet-tty findings: the drainer pattern (single ordered writer) makes outbound chunk-boundary parsing sound; TestStdinSink's try_send→Full→Pending is the inbound backpressure precedent; OQ-01(a) now cites the reference. Task graph (taskgraph-validated, 17 tasks, 6 generations, no cycles): - tasks/server/: core-types, auth, healthz-decoy, adapter - tasks/gateway/: dispatch, routes, publish - tasks/websocket/: byte-adapter (research POC), upgrade-session, overlay-ops - tasks/adapters/: from-openapi, from-jsonschema, to-openapi, from-wss, mcp - tasks/client/: http-host - tasks/infra/: integration-suite (phase 4) Critical path runs through server core → adapter → WS session → overlay tests → integration suite. High-risk tasks are the three WS tasks, de-risked by the ws-byte-adapter POC blocking upgrade-session.
1.1 KiB
1.1 KiB
id, name, status, depends_on, scope, risk, impact, level, tags
| id | name | status | depends_on | scope | risk | impact | level | tags | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| adapter-from-jsonschema | from_jsonschema single-endpoint adapter | pending |
|
narrow | low | component | implementation |
|
Description
Port adapters/from_jsonschema.rs from
/workspace/@alkdev/alknet/crates/alknet-http/src/adapters/from_jsonschema.rs
per ADR-066: caller supplies OperationSpec + HttpServiceConfig + path
template + method; one HandlerRegistration with a reqwest forwarding
handler (same shape as from_openapi's), FromJsonSchema provenance
(leaf, Internal default). Sub op type → StreamingHandler expecting
text/event-stream. Shares the forwarding-handler code path with
from_openapi.
Acceptance Criteria
- Adapter ported; one registration per call, correct provenance
- Forwarding round-trip test against a local mock server
cargo testpasses
References
- docs/architecture/decisions/066-from-jsonschema-as-http-adapter.md
- docs/architecture/http-adapters.md (§from_jsonschema)
- alkcall ADR-027 (FromJsonSchema provenance)
Notes
Agent fills during implementation.
Summary
Agent fills on completion.