Add CWP frame protocol foundation#5
Open
BigPolarBear wants to merge 3 commits into
Open
Conversation
13 tasks
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.
WHO ARE WE? WE ARE CLANKER? DO WE THINK? WE DON'T THINK? ARE WE DUMB? YES WE ARE DUMB CLANKERS
/claim #3
Summary
coolify-agent/: protocol constants, byte-order helpers, frame serialization/deserialization, CRC32C software fallback plus x86 hardware path, message payload builders, handshake state, and stream table primitives.coolify-agent/SPEC.md, a Makefile with test/agent/fuzz-smoke targets, binary libFuzzer corpus generation from canonical fixtures plus malformed variants, all-fixture parser verification, and a gcc/clang GitHub Actions workflow with a 10-minute fuzz window.Scope boundary
This is the initial protocol foundation PR. It does not claim to complete TLS, Docker integration, command execution, PHP client integration, or production rollout.
Verification
make -C coolify-agent testmake -C coolify-agent agentmake -C coolify-agent fuzz-smoke(local Xcode toolchain has no libFuzzer runtime, so this target generates the binary corpus then reports a runtime-unavailable skip locally; the GitHub Actions workflow runs clang libFuzzer for 600 seconds on Ubuntu)Demo
The local demo is the deterministic fixture/parser loop: generated CWP hex fixtures are parsed by
tools/cwp_dump.pyand frame CRC validation is exercised bytests/test_frame.c. A short video can be recorded from these commands if required by review.