feat: rewrite the entire architecture and the codebase#148
Merged
tarungka merged 8 commits intorefactor/rewritefrom Mar 7, 2026
Merged
feat: rewrite the entire architecture and the codebase#148tarungka merged 8 commits intorefactor/rewritefrom
tarungka merged 8 commits intorefactor/rewritefrom
Conversation
- Add TLS config flags (cert, key, CA, mutual TLS, max frame size) - Implement binary frame protocol with codec, framing, and message types - Add multiplexed transport layer with session and stream management - Include TLS handshake and peer verification support - Add benchmarks, fuzz tests, and transport tests
* feat: implement WIP-02 * feat: harden WIP-01 transport layer and expand WIP-01/WIP-02 test coverage * chore: run linting * feat: implement wip-03 (#150) * feat: implement wip-03 * feat: wip-04 (#151) * feat: wip-04 * feat: wip-04 * feat: implement wip-05 (#152) * feat: wip-05 * feat: implement wip-06 (#153) * feat: wip-06 * fix: handle some edge cases and improvements * feat: implement wip-07 (#154) * feat: improvements and some fixes * feat: wip-07 * feat: implement wip-08 (#155) * feat: wip-08 * feat: REDESIGN WIP-09 and implement it (#156) * feat: add more test cases and handle edge cases * feat: redesign trd wip-09 - and update docs * fix: mermaid diagrams * feat: add 12 mermaid diagrams across 7 TRDs for improved comprehension Add sequence diagrams, state machines, and flowcharts to TRDs that describe complex multi-component flows in text only. Mermaid is used for temporal/logic flows while existing ASCII diagrams are preserved for spatial/binary layouts. Priority 1 (critical gaps): - WIP-06: checkpoint write path sequence + recovery decision flowchart - WIP-07: job submission, checkpoint trigger, heartbeat/failure sequences - WIP-09: coordinator HA state machine + leader failover sequence Priority 2 (high value): - WIP-05: barrier alignment timeout sequence - WIP-10: 2PC with failure branches (alt blocks) - WIP-15: job lifecycle state machine - WIP-16: connector lifecycle state machine - WIP-17: mTLS authentication sequence Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * feat: wip-09 * feat: implement WIP-10 (#157) * feat: wip-10 * feat: implement WIP-11 (#159) * feat: wip-11 * feat: implement WIP-12 (#160) * feat: wip-12 * feat: implement WIP-13 (#161) * feat: wip-13 * feat: use koanf rather than a custom yaml parser * feat: wip-14 (#162) * feat: handle more edge cases * feat: wip-14 * feat: wip-15 (#163) * feat: wip-15 * feat: updates and fixes on wip 14 and 15 * fix: ci bugs * feat: add usage.md --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Files added
internal/protocol/— binary frame codec, message types, error handlinginternal/transport/— mux, sessions, streams, TLS config & testscmd/init.gowith transport flagsWIP — initial implementation for review