Commit 8bb36ab
committed
refactor(squash): layered architecture simplification — extract sub-packages, fix races, add trace/trust-gate
- Extract tunnel sub-packages: envelope (L6), keyexchange (L5), udpio (L2), routing (L4)
- Extract plugins: handshake (port 444), gateway, webhook
- Extract internal utilities: trustedagents, skillinject, policy, dataexchange, eventstream, tasksfiles
- Split pkg/registry into client + server subpackages
- Add architecture enforcement tools: check-layers, check-bootstrap, check-globals
- CI: architecture-gates workflow (P1/P3/P4/P5/P6/P7/P9)
- Add build tags for optional components (no_gateway, no_nameserver, no_updater, etc.)
- Invert dependencies: networkSyncLoop via bus events, webhook → bus.Publish
- Fix data races: identity in beaconRefreshTick, RetxStop init order, registry shard.Lock
- Fix FIN-ACK ping-pong storm, IPC request-ID demux, beacon typed-nil
- Plug 48h memory leaks in daemon, handshake plugin, and registry
- Add panic boundaries across all layers (L1–L11)
- Add --trace flag to pilotctl ping/send-message/inbox with distributed path timing
- Add trust-gate UX: WaitForTrust IPC, auto-handshake, public/private gate
- Move black-box tests to tests/, tests/daemon, tests/plugins
- Add regression tests: rc5-storm, FIN-ACK, self-dial, port-leak, §4.8 stress harness
- Wire-format golden corpus (P6 invariance gate)
- IPC concurrent dispatch with request-ID demultiplexing
- regConn connection pool (4 conns) + Info/RotateKey race fix1 parent 9d16ff9 commit 8bb36ab
1,284 files changed
Lines changed: 140034 additions & 133293 deletions
File tree
- .github/workflows
- cmd
- daemon
- gateway
- nameserver
- pilotctl
- registry
- rendezvous
- updater
- configs
- networks
- sim
- docs
- examples/go
- dataexchange
- eventstream
- internal
- account
- crypto
- dataexchange
- eventstream
- fsutil
- ipcutil
- nodesapi
- policy
- pool
- skillinject
- trustedagents
- validate
- pkg
- beacon
- config
- coreapi
- daemon
- envelope
- keyexchange
- routing
- udpio
- dataexchange
- driver
- logging
- nameserver
- policy
- protocol
- registry
- client
- server
- accept
- api
- audit
- authz
- dashboard
- directory
- events
- identity
- membership
- metrics
- policy
- replication
- routing
- trust
- wal
- webhook
- wire
- secure
- skillinject
- tasksubmit
- updater
- urlvalidate
- plugins
- dataexchange
- eventstream
- gateway
- handshake
- nameserver
- policy
- runtime
- skillinject
- dockertest
- trustedagents
- updater
- webhook
- scripts
- sdk
- cgo
- node
- examples
- src
- tests
- python
- pilotprotocol
- tests
- testdata
- webhook
- wire
- tests
- daemon
- end-to-end
- integration
- local
- internal
- account
- fsutil
- nodesapi
- policy
- skillinject
- validate
- pilot_dashboard
- pkg
- config
- coreapi
- logging
- registry
- server
- wire
- secure
- urlvalidate
- plugins/policy
- regtestutil
- tools/check-layers
- web
- public
- src
- components
- data
- layouts
- pages
- blog
- docs
- plain
- docs
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
62 | 79 | | |
63 | 80 | | |
64 | 81 | | |
| |||
108 | 125 | | |
109 | 126 | | |
110 | 127 | | |
111 | | - | |
112 | 128 | | |
113 | 129 | | |
114 | 130 | | |
115 | 131 | | |
116 | 132 | | |
117 | 133 | | |
118 | 134 | | |
| 135 | + | |
119 | 136 | | |
120 | 137 | | |
121 | 138 | | |
| |||
129 | 146 | | |
130 | 147 | | |
131 | 148 | | |
| 149 | + | |
| 150 | + | |
132 | 151 | | |
133 | 152 | | |
134 | 153 | | |
| 154 | + | |
135 | 155 | | |
136 | 156 | | |
137 | 157 | | |
138 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
139 | 162 | | |
140 | 163 | | |
141 | 164 | | |
| |||
166 | 189 | | |
167 | 190 | | |
168 | 191 | | |
169 | | - | |
170 | 192 | | |
171 | | - | |
| |||
0 commit comments