docs: refactor hub/spoke to head/worker, add service layer and HD key derivation
- Replace hub/spoke terminology with head/worker throughout all research docs - Add irpc service layer architecture (AuthProtocol, SecretProtocol, ConfigProtocol, StorageProtocol) - Add BIP39/SLIP-0010 HD key derivation for secrets management - Add event boundary discipline (domain events vs integration events) - Add application services layer (Docker, Node, Wallet, Proxy, Compute) - New docs/research/services.md defining irpc service protocols - Update core.md with service layer section and head/worker model - Update configuration.md to delegate auth to AuthService (irpc) - Update storage.md with secrets/key derivation and event boundaries - Update flow.md with event boundary decision and cross-references
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Alknet Flowgraph: Operation Graph, Call Graph, and Graph Operations
|
||||
|
||||
> Status: Research / Draft
|
||||
> Last updated: 2026-06-05
|
||||
> Last updated: 2026-06-06
|
||||
|
||||
## Overview
|
||||
|
||||
@@ -457,6 +457,7 @@ tokio = { version = "1", features = ["full"] }
|
||||
| `NodeAttributes` / `EdgeAttributes` traits | Generic over attribute types, matching flowgraph's type parameter pattern |
|
||||
| DAG enforcement at construction | Matches TypeScript flowgraph: `fromSpecs()` throws `CycleError` |
|
||||
| `filter_by_status` is O(n) | Matches TypeScript: small graphs (tens to hundreds of nodes), no index needed |
|
||||
| Call protocol as integration boundary | Call protocol `EventEnvelope` is the cross-node integration boundary; domain events stay within services |
|
||||
|
||||
## References
|
||||
|
||||
@@ -466,4 +467,6 @@ tokio = { version = "1", features = ["full"] }
|
||||
- `/workspace/jsonschema` — JSON Schema validation crate
|
||||
- `/workspace/@alkdev/storage/docs/architecture/metagraph-module.md` — TypeBox Module pattern
|
||||
- `/workspace/@alkdev/storage/docs/architecture/sqlite-host.md` — SQLite table definitions
|
||||
- `/workspace/@alkdev/storage/docs/architecture/acl.md` — ACL as metagraph
|
||||
- `/workspace/@alkdev/storage/docs/architecture/acl.md` — ACL as metagraph
|
||||
- [services.md](services.md) — Service layer architecture (irpc protocols)
|
||||
- [core.md](core.md) — Core overview, head/worker terminology
|
||||
Reference in New Issue
Block a user