Node-centric context rehydration for agentic systems.
rehydration-kernel is a generic context engine built around four public
concepts:
- root node
- neighbor nodes
- relationships
- extended node detail
The kernel does not own product-specific nouns. Integrating products are expected to map their own domain language to this graph model at the edge.
This repo is functionally complete for the kernel-owned migration scope.
What is already in place:
- graph-native domain and application layers
- split Neo4j, Valkey, NATS, and gRPC adapters
- frozen node-centric gRPC and async contracts
- contract CI with
buf breaking, AsyncAPI checks, and boundary naming policy - container-backed integration tests
- agentic end-to-end proofs:
- pull-driven runtime flow
- event-driven runtime trigger flow
- runtime integration reference docs and runnable client example
What is intentionally out of scope for this repo:
swe-ai-fleetlegacy noun modelingplanning.*ororchestration.*consumers- product-side shadow mode implementation
- rollout and rollback logic
Non-negotiable repo rules:
- DDD first
- hexagonal boundaries
- no god objects
- no god files
- one main concept per file
- one use case per file
Internal core language:
- root node
- neighbor nodes
- relationships
- node details in Valkey
Primary public artifacts:
- gRPC proto:
- async contract:
- contract examples:
- runtime integration reference:
Historical migration and handoff docs live under docs/migration.
They are useful for adopters, but they do not redefine the kernel domain.
api/proto: gRPC contractsapi/asyncapi: async contractsapi/examples: canonical request, response, and event fixturescrates/rehydration-domain: domain model and invariantscrates/rehydration-ports: application-facing portscrates/rehydration-application: use cases and orchestrationcrates/rehydration-adapter-*: infrastructure adapterscrates/rehydration-transport-*: transport boundariescrates/rehydration-server: composition rootcrates/rehydration-testkit: testing helpersscripts/ci: local quality and integration gatesdocs/migration: closeout, handoff, and integration strategy docs
Toolchain:
- Rust
1.90.0, pinned inrust-toolchain.toml
Core checks:
cargo fmt --all
cargo check --workspace
cargo test --workspaceRepository gate:
bash scripts/ci/quality-gate.shFocused contract gate:
bash scripts/ci/contract-gate.shContainer-backed integration targets:
bash scripts/ci/integration-valkey.sh
bash scripts/ci/integration-neo4j.sh
bash scripts/ci/integration-nats-compatibility.sh
bash scripts/ci/integration-grpc-compatibility.sh
bash scripts/ci/integration-agentic-context.sh
bash scripts/ci/integration-agentic-event-context.shFor deployed kernels, the generic projection runtime is enabled separately from
legacy compatibility NATS and persists its own state in Valkey through
REHYDRATION_RUNTIME_STATE_URI.
Container image build check:
bash scripts/ci/container-image.shThe script uses docker when available and falls back to podman. Override
with CONTAINER_RUNTIME=docker or CONTAINER_RUNTIME=podman if you need to
force one runtime.
Helm chart lint:
bash scripts/ci/helm-lint.shIf you are integrating another product with this kernel, start here:
docs/migration/kernel-node-centric-integration-contract.mddocs/migration/kernel-runtime-integration-reference.mddocs/migration/kernel-repo-closeout.md
If you are integrating swe-ai-fleet, the handoff docs are:
docs/migration/swe-ai-fleet-node-centric-integration-strategy.mddocs/migration/swe-ai-fleet-shadow-mode-spec.mddocs/migration/swe-ai-fleet-integration-checklist.md
This repo owns the kernel code, contracts, and integration proofs.
Operational packaging may live in sibling repos that consume the kernel. In the current ecosystem that includes a sibling runtime capable of:
- publishing container artifacts to GitHub Container Registry
- running under Docker Compose
- running on Kubernetes through Helm
That deployment packaging is intentionally kept outside the kernel repo when it belongs to the runtime or product layer rather than to the kernel itself.
See:
The kernel now owns a standalone OCI image intended for external download and evaluation.
Planned public location:
ghcr.io/underpass-ai/rehydration-kernel
Typical pull:
docker pull ghcr.io/underpass-ai/rehydration-kernel:latestSee docs/operations/container-image.md
for environment variables, tags, and usage.
Helm chart:
- source chart:
charts/rehydration-kernel - planned OCI location:
oci://ghcr.io/underpass-ai/charts/rehydration-kernel
The default chart values are intentionally secure:
- no implicit
latestimage tag - no inline backend URIs by default
- production-style installs should use
image.digestor a pinned tag plussecrets.existingSecret
For local evaluation only, use values.dev.yaml.
Apache-2.0. See LICENSE.