3 Commits

Author SHA1 Message Date
a80f9948b8 feat(build): feature-sided builds — server/client sides independently selectable (ADR-039 Amendment 1)
Split the feature graph so consumers pulling only the import adapters
(from_openapi / from_jsonschema / from_mcp) no longer compile the axum
/ hyper server stack, and server-only deployments no longer compile
reqwest. One crate, one import path — sides cut by features, not by a
crate split.

Feature graph:
- server (default): axum host, gateway, WS upgrade, to_openapi, to_mcp
- client (default): client host, forward, from_jsonschema, from_openapi
- openapi: shared OpenAPISpec model (implied by both sides)
- mcp: from_mcp needs client, to_mcp needs server
- wss: tungstenite transport (from_wss); tungstenite half of the
  shared WS↔byte-stream adapter
- h2/http1: hyper protocol features; imply server

Wire-contract neutral: gateway endpoints, ALPNs, and all public API
shapes unchanged; defaults keep both sides on.

Supporting changes:
- forward.rs drops its axum::body::Bytes type leak (bytes crate types)
- bounded_join + error-echo caps move to input_validation (usable by
  both sides; openapi_spec no longer imports from forward)
- byte_adapter: axum flavor compiles under server, tungstenite under
  wss; the generic pumps stay shared (WS-11)
- input_validation / openapi_spec import-only internals gated to the
  side that consumes them
- http-body-util moves to dev-dependencies (was test-only)
- integration-test required-features updated for the new sides
- from_wss unit tests (axum producer harness) gated to server

Verified: cargo test (defaults, 453) and --all-features (575) pass;
lean side builds (client / server / client,mcp / client,wss /
server,wss / openapi-only) build clean with zero warnings;
clippy -D warnings clean across all feature combinations; fmt clean.
2026-08-31 17:19:05 +00:00
604b7c7c63 docs: document conventional commits style and unit-of-work commits in AGENTS.md
- Explicitly require small, focused commits (one per unit of work) so
  work is easy to revert and review
- Specify conventional commits format: <type>(<scope>): <summary> with
  feat/fix/docs/chore/refactor/test/perf/build/ci types, matching the
  alkcall repo's established pattern
2026-08-25 08:51:33 +00:00
9c714382dc chore: bootstrap repo with AGENTS.md, gitignore, and project-specific agent specs
- AGENTS.md adapted from alkcall: shared Rust conventions (no comments,
  thiserror, tokio, no-env-vars, OperationEnv trait) plus alkhttp-specific
  rules (HTTP surface as stable contract, gateway endpoints, feature flags
  h2/http1/mcp, five-subsystem module structure, adapter Internal-by-default)
- Root .gitignore (target/, node_modules/, .worktrees/)
- Purged alkcall/alknet residuals from agent specs: coordinator prompt
  template now targets @alkdev/alkhttp with h2/http1/mcp feature flags,
  architect deferral examples reference alkhttp, implementation-specialist
  conventions rewritten for the HTTP crate (no BAST/chunk-header/abort-cascade
  rules), code-reviewer feature flags updated, sdd_process.md package name fixed
- Dropped the preconfigured git-identity note (glm-specific, not applicable)

Verification: no cargo code changed; grep confirms no residual
alkcall/alknet/glm/iroh/quinn/acme/BAST references outside intentional
alkcall-dependency and alknet-extraction-origin mentions
2026-08-25 08:44:26 +00:00