Skip to content

Commit d75b890

Browse files
authored
Merge pull request #131 from AdaWorldAPI/claude/plan-openclaw-rust-Q2z7Q
Deprecate JSON hydrate endpoints; move to .deprecated/
2 parents 53dc026 + 92bc8c3 commit d75b890

File tree

4 files changed

+737
-423
lines changed

4 files changed

+737
-423
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Deprecated: PR #127 + #128 — JSON Hydrate Endpoints
2+
3+
**Date**: 2026-02-17
4+
**PRs**: #127 (POST /api/v1/hydrate), #128 (POST /api/v1/qualia/hydrate + write-back)
5+
6+
## Why deprecated
7+
8+
1. **JSON is forbidden on the internal hot path.** Internal operations use
9+
`&self` / `&mut self` borrows on shared substrate. Zero serialization.
10+
11+
2. **text_to_dn() is hash soup.** DN addressing must carry semantic meaning.
12+
The SPOQ model requires positions in the DN tree to represent viewpoints,
13+
not random hashes of message strings.
14+
15+
3. **Hollow pipeline.** PR #127 manually constructed FeltPath, ReflectionResult,
16+
and VolitionalAgenda with empty data and hardcoded defaults. PR #128 tried
17+
to fix this but used `match i % 8` for ghost type assignment (random noise).
18+
19+
4. **Wrong paradigm.** The hydrate endpoint assumed crewai-rust calls ladybug-rs
20+
via HTTP. The correct architecture: one binary, shared `&BindSpace`, blackboard
21+
borrow pattern (grey matter reads / white matter writes).
22+
23+
## What to salvage
24+
25+
- The `AgentState::compute()` integration pattern is correct (PR #126 has it)
26+
- The route from message → qualia is right, but should be `&Container``&Container`, not JSON
27+
- The INTEGRATION_SPEC Layer A concept (preamble for system prompt) is valid
28+
29+
## Files
30+
31+
- `server_hydrate_block.rs` — extracted 400-line code block from src/bin/server.rs

0 commit comments

Comments
 (0)