Build Zephyr Protocol v2 clean-break implementation - #15
Draft
the-code-learner wants to merge 274 commits into
Draft
Build Zephyr Protocol v2 clean-break implementation#15the-code-learner wants to merge 274 commits into
the-code-learner wants to merge 274 commits into
Conversation
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.
Scope
Builds the executable Zephyr Protocol v2 clean break on top of the existing hardening, Consensus & Performance Lab and persistence work.
The branch follows two equal goals:
Throughput may degrade when hardware is scarce; safety must not.
Authoritative design documents
README.md— current v2 project overview and non-claim boundary.docs/protocol-v2.md— protocol architecture and clean-break contract.docs/protocol-v2-implementation-status.md— executable/experimental/non-production status by subsystem.docs/tokenomics-v2.md— oracle-free adaptive ZPH monetary design and activation gates.docs/compute-economics-v2.md— ZCR/ZCPI/ZCSI compute economics.docs/economic-state-v2.md— economic state, velocity and epoch aggregation.docs/economic-runtime-v2.md— finalized-block economic collection, scheduler and shadow consensus-finality pipeline.docs/protocol-v2-validator-trust.md— validator trust/rotation model.Implemented v2 foundations
The branch now includes, with executable tests/gates:
Compute economics and tokenomics shadow mode
The branch includes executable instrumentation required to measure and simulate the monetary design before activation:
WorkVectorrather than one fake universal FLOP scalar;WorkloadHashandBenchmarkHash;VerifiedWorkobservations derived only from finalized/verification-satisfied compute settlements;ComputeSupplyReliablegate so unauthenticated capacity cannot make ZCSI reliable;opening backlog + new demand = fulfilled + expired + closing backlog;MonetaryEpochStatesystem object;EpochCollectorwith atomic preview/apply semantics and cross-shard supply attribution;ShadowEpochEnginecomposingEpochAggregate -> ZCPI -> ZCSI -> ZAMP -> pending MonetaryEpochStatewithout live minting;cmd/zephyr-econ-simfor replaying synthetic/devnet epoch metrics without mutating supply;License
The branch changes the project license to Apache License 2.0, adds the repository-level
NOTICEattribution for Zephyr Chain / the-code-learner, and rewrites the README around the actual v2 status.Deliberate non-claims
This draft does not claim that the following are production-ready or economically activated:
The rule is
measure first -> simulate second -> activate last.Gates
Both the existing v1 Consensus & Performance Lab and the dedicated V2 Lab remain mandatory. Performance changes do not enter the protocol if they regress safety/liveness. Shared GitHub runner benchmark numbers are development signals, not production-capacity claims.