Skip to content

Core Documentation Cleanup & Photonic P2P Alignment#786

Draft
iberi22 wants to merge 1 commit into
mainfrom
doc-cleanup-photonic-p2p-direction-1809302057467993357
Draft

Core Documentation Cleanup & Photonic P2P Alignment#786
iberi22 wants to merge 1 commit into
mainfrom
doc-cleanup-photonic-p2p-direction-1809302057467993357

Conversation

@iberi22

@iberi22 iberi22 commented Jun 14, 2026

Copy link
Copy Markdown
Owner

This PR performs a comprehensive cleanup and update of the Synapse Protocol documentation to align with the new strategic direction: a Decentralized P2P Ingestion Network leveraging Photonic (Holographic) Transport.

Key changes:

  1. README.md Overhaul: The project is now clearly defined as a P2P daemon. Legacy technologies like RWKV and LanceDB have been removed in favor of the current stack (Axum, Libp2p, SurrealDB).
  2. Gateway Clarification: Added specific mentions of the WebSocket /stream endpoint as the primary ingestion vector.
  3. Architectural Alignment: Updated docs/CRYSTAL_LOGIC_ARCHITECTURE.md to include references to PhotonicDhtAdapter and the Axum gateway, ensuring the documentation matches the latest infrastructure adapters.
  4. Docs Cleanup: Removed several outdated files in docs/ and docs/agent-docs/ that referenced old blockchain decisions or temporary planning phases no longer relevant to the current "Photonic" model.
  5. Integrity: Verified that no source code files (.rs, .toml) were modified, maintaining strict separation between documentation updates and logic.

Fixes #785


PR created automatically by Jules for task 1809302057467993357 started by @iberi22

- Update README.md to reflect the new Decentralized P2P Ingestion Network identity.
- Define Synapse as a local daemon with WebSocket (/stream) ingestion.
- Highlight PhotonicDhtAdapter and HolographicTransport as core components.
- Update Tech Stack to include Axum, Libp2p DHT, and SurrealDB.
- Clean up docs/ directory by removing obsolete blockchain and temporary files.
- Refine Crystal Logic documentation with current architectural mappings.
- Ensure source code remains untouched throughout the documentation update.
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@coderabbitai

coderabbitai Bot commented Jun 14, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: eb436f73-73c0-43c7-b0e4-a7fc4a63bcda

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch doc-cleanup-photonic-p2p-direction-1809302057467993357

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the project's focus to a decentralized P2P ingestion network and photonic transport, updating the README and documentation while purging legacy design documents and mega-issues. The review feedback identifies two documentation issues in CRYSTAL_LOGIC_ARCHITECTURE.md: an undefined dht_key variable in the store_photonic code snippet and duplicate, inconsistent section headers.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment on lines +63 to +67
pub async fn store_photonic(&self, key: &str, data_str: &str) -> Result<(usize, usize)> {
let photonic_vector = self.holographic_port.compress_context(data_str).await?;
self.network_port.dht_put(dht_key, photonic_vector).await?;
Ok(...)
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

In the store_photonic code snippet, the variable dht_key is used but not defined. It should be initialized using Self::dht_key(key) to match the actual implementation in PhotonicDhtAdapter.

Suggested change
pub async fn store_photonic(&self, key: &str, data_str: &str) -> Result<(usize, usize)> {
let photonic_vector = self.holographic_port.compress_context(data_str).await?;
self.network_port.dht_put(dht_key, photonic_vector).await?;
Ok(...)
}
pub async fn store_photonic(&self, key: &str, data_str: &str) -> Result<(usize, usize)> {
let dht_key = Self::dht_key(key);
let photonic_vector = self.holographic_port.compress_context(data_str).await?;
self.network_port.dht_put(dht_key, photonic_vector).await?;
Ok(...)
}

Comment on lines +95 to +105
### 3. Ingestion Gateway

Data enters the system via the Axum-based WebSocket gateway at `/stream`. The `synapse-cli` daemon listens for incoming connections and routes messages to the metabolism.

```rust
// crates/synapse-cli/src/commands.rs
.route("/stream", get(ws_handler))
```

### 4. Sender: HologramStreamEncoder
### 5. Receiver: HologramStreamDecoder

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The headers in this section have numbering inconsistencies and a redundant entry. ### 4. Sender: HologramStreamEncoder is duplicated (already defined as section 3 on line 70) and has no content. Let's correct the numbering and remove the redundant header:

### 4. Ingestion Gateway

Data enters the system via the Axum-based WebSocket gateway at `/stream`. The `synapse-cli` daemon listens for incoming connections and routes messages to the metabolism.

```rust
// crates/synapse-cli/src/commands.rs
.route("/stream", get(ws_handler))

5. Receiver: HologramStreamDecoder

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.

Limpieza de Documentación Core (Red Descentralizada & Enfoque Fotónico)

1 participant