Skip to content

feat: rewrite the entire architecture and the codebase#148

Merged
tarungka merged 8 commits intorefactor/rewritefrom
feat/wip-01
Mar 7, 2026
Merged

feat: rewrite the entire architecture and the codebase#148
tarungka merged 8 commits intorefactor/rewritefrom
feat/wip-01

Conversation

@tarungka
Copy link
Copy Markdown
Owner

Changes

  • Add TLS config flags (cert, key, CA, mutual TLS, max frame size) to CLI
  • 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

Files added

  • internal/protocol/ — binary frame codec, message types, error handling
  • internal/transport/ — mux, sessions, streams, TLS config & tests
  • Updated cmd/init.go with transport flags

WIP — initial implementation for review

tarungka and others added 8 commits February 26, 2026 13:43
- 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>
@tarungka tarungka merged commit f2bab39 into refactor/rewrite Mar 7, 2026
1 check passed
@tarungka tarungka changed the title feat: wire protocol transport layer with mTLS support feat: rewrite the entire architecture and the codebase Mar 7, 2026
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.

1 participant