Skip to content

Comments

Deprecate JSON hydrate endpoints; move to .deprecated/#131

Merged
AdaWorldAPI merged 3 commits intomainfrom
claude/plan-openclaw-rust-Q2z7Q
Feb 20, 2026
Merged

Deprecate JSON hydrate endpoints; move to .deprecated/#131
AdaWorldAPI merged 3 commits intomainfrom
claude/plan-openclaw-rust-Q2z7Q

Conversation

@AdaWorldAPI
Copy link
Owner

Summary

Remove the qualia substrate JSON endpoints (/api/v1/qualia/hydrate and /api/v1/qualia/write-back) from the active server codebase and archive them in .deprecated/. This enforces the architectural principle that internal operations must never serialize to JSON—they communicate via &BindSpace borrows, not HTTP.

Key Changes

Rationale

The hydrate endpoints violated the one-binary, zero-JSON-on-hot-path architecture:

  1. JSON serialization forbidden internally — crates in the same binary communicate via borrows, not HTTP/JSON
  2. text_to_dn() is semantically meaningless — DN paths must encode viewpoint/perspective in the tree, not hash collisions
  3. Hollow pipeline — endpoints constructed empty data structures (FeltPath, VolitionalAgenda) with hardcoded defaults or random noise (ghost types via match i % 8)
  4. Wrong integration model — assumed crewai-rust calls ladybug-rs via HTTP; correct model is shared &BindSpace in one binary

The route concept (message → qualia state → preamble) is sound and will be rewritten as &Container → &Container operations, not JSON endpoints.

Not Changed

https://claude.ai/code/session_01PJXVVtCXFi2BvJMrM8gmwE

AdaWorldAPI and others added 3 commits February 17, 2026 08:30
PR #127 + #128 added POST /api/v1/qualia/hydrate and write-back.
These are rolled back because:

1. Internal operations must never serialize to JSON
2. text_to_dn() is hash soup — DN must carry semantic meaning
3. Pipeline was hollow (hardcoded defaults, match i%8 ghost types)
4. Wrong paradigm: HTTP between crates that share one binary

The code is preserved in .deprecated/pr127_128_json_hydrate/ for
reference. The rewrite will use &BindSpace borrows directly.

Removed from server.rs:
- POST /api/v1/qualia/hydrate handler (~240 lines)
- POST /api/v1/qualia/write-back handler (~100 lines)
- text_to_container(), text_to_dn() helpers
- DbState.qualia_graph, DbState.self_dims fields
- Hydrate-only imports (ContainerGraph, AgentState, etc.)

Total: -418 lines from server.rs
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@AdaWorldAPI AdaWorldAPI merged commit d75b890 into main Feb 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants