Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
274 commits
Select commit Hold shift + click to select a range
5a2f436
add self-verifiable Citizen Node light proof API
the-code-learner Aug 19, 2026
20800b0
test Citizen light API proof bundle
the-code-learner Aug 19, 2026
32a81bb
preserve uint64 validator power exactly in Citizen API
the-code-learner Aug 19, 2026
cc0eff2
implement in-wallet v2 Citizen cryptographic verifier
the-code-learner Aug 19, 2026
a400a41
gofmt v2 consensus tests
the-code-learner Aug 19, 2026
0d91fe6
gofmt v2 contract metering test
the-code-learner Aug 19, 2026
246a36a
gofmt v2 parallel execution test
the-code-learner Aug 19, 2026
5ab3eb8
gofmt v2 Citizen light server
the-code-learner Aug 19, 2026
b063320
gofmt v2 runtime
the-code-learner Aug 19, 2026
d086054
gofmt v2 runtime test
the-code-learner Aug 19, 2026
f9646da
gofmt v2 consensus
the-code-learner Aug 19, 2026
5ab7acf
add finalized v2 parallel execution benchmark
the-code-learner Aug 19, 2026
a98ade6
benchmark v2 finalized batch scaling in CI
the-code-learner Aug 19, 2026
564852f
document executable v2 implementation status and remaining gates
the-code-learner Aug 19, 2026
3934803
encode permanent shard placement in v2 object IDs
the-code-learner Aug 19, 2026
d32742c
make v2 shard routing explicit and destination objects deterministic
the-code-learner Aug 19, 2026
024eb87
route v2 outputs locally or into cross-shard receipts
the-code-learner Aug 19, 2026
8f6eaed
persist cross-shard receipt anti-replay in Merkle state
the-code-learner Aug 19, 2026
d0bdd4f
materialize finalized cross-shard receipts through consensus state
the-code-learner Aug 19, 2026
5c3a9d9
test finalized two-shard transfer and durable receipt anti-replay
the-code-learner Aug 19, 2026
85afdc4
bind v2 validator sets to consensus Merkle roots
the-code-learner Aug 19, 2026
ed1b43b
bind Citizen light snapshots to committed validator roots
the-code-learner Aug 19, 2026
258d772
reject certificates and receipts from uncommitted validator sets
the-code-learner Aug 19, 2026
1247a55
bind runtime test candidates to real validator roots
the-code-learner Aug 19, 2026
ec68a23
test trusted validator-root enforcement for cross-shard receipts
the-code-learner Aug 19, 2026
0d31aa5
test Citizen snapshots reject self-signed foreign validator sets
the-code-learner Aug 19, 2026
082f624
bind v2 benchmark certificates to committed validator root
the-code-learner Aug 19, 2026
5090e35
require genesis/checkpoint trust anchors for wallet Citizen verification
the-code-learner Aug 19, 2026
1ac8f62
make validator-root binding a core proposal invariant
the-code-learner Aug 19, 2026
e18a108
test validator-set root as a core consensus invariant
the-code-learner Aug 19, 2026
baf98c6
simulate hostile self-signed receipt certificates below normal builders
the-code-learner Aug 19, 2026
0d84029
simulate hostile self-signed light snapshots below normal builders
the-code-learner Aug 19, 2026
50ed9c8
gofmt hostile cross-shard validator-root test
the-code-learner Aug 19, 2026
a8da5d2
fix wallet Citizen trust Merkle typed-array inference
the-code-learner Aug 19, 2026
27c29cb
derive Citizen trust anchors directly from v2 genesis
the-code-learner Aug 19, 2026
926b394
map genesis validator fields into v2 trust anchors
the-code-learner Aug 19, 2026
f29f88e
test genesis-derived Citizen trust anchors
the-code-learner Aug 19, 2026
6a38161
update v2 status for trusted Citizen verification and finalized cross…
the-code-learner Aug 19, 2026
c213434
fix genesis trust-anchor validation error mapping
the-code-learner Aug 19, 2026
77541ea
fix genesis trust-anchor rejection test
the-code-learner Aug 19, 2026
7d34d16
stream canonical domain hashing without temporary buffers
the-code-learner Aug 19, 2026
a48872a
prove streamed domain hashing is bit-for-bit canonical
the-code-learner Aug 19, 2026
27f345a
remove transient allocations from sparse Merkle branch hashing
the-code-learner Aug 19, 2026
12462de
remove transient allocations from Merkle branch hashing
the-code-learner Aug 19, 2026
eeb747c
simulate sparse Merkle updates with a copy-on-write overlay
the-code-learner Aug 19, 2026
4681608
use copy-on-write sparse Merkle preview for proposal simulation
the-code-learner Aug 19, 2026
9a9a973
prove copy-on-write state preview matches real sparse Merkle apply
the-code-learner Aug 19, 2026
5a9a4de
add QC-backed v2 validator-set transition path
the-code-learner Aug 19, 2026
b9f2c68
verify QC-backed validator-set transitions for Citizen trust chains
the-code-learner Aug 19, 2026
61cfb74
test QC-backed v2 validator-set rotation
the-code-learner Aug 19, 2026
d5dda10
add strict wallet Citizen verifier with validator trust-chain rotation
the-code-learner Aug 19, 2026
378d4a2
gate v2 votes on independently executed candidate headers
the-code-learner Aug 19, 2026
58ceb5f
add v2 seven-validator partition and conflicting-proposal lab
the-code-learner Aug 19, 2026
476fae2
run v2 consensus partition conformance as a dedicated CI gate
the-code-learner Aug 19, 2026
ded4d91
document v2 validator trust-chain and Citizen rotation rules
the-code-learner Aug 19, 2026
6637ba0
refresh authoritative v2 architecture with implemented trust, shardin…
the-code-learner Aug 19, 2026
73c4ad2
add current executable Zephyr v2 implementation snapshot
the-code-learner Aug 19, 2026
421b569
bind next validator root into v2 global header
the-code-learner Aug 19, 2026
25f7428
parse next validator root from v2 header
the-code-learner Aug 19, 2026
7866147
upgrade Zephyr v2 toolchain baseline to Go 1.26
the-code-learner Aug 19, 2026
11fc2ce
resolve production dependencies for Zephyr v2
the-code-learner Aug 19, 2026
ebbd8f3
add certified validator checkpoint history for v2
the-code-learner Aug 19, 2026
2a4ab66
make compute market records consensus-state serializable
the-code-learner Aug 19, 2026
8a72645
add consensus-safe compute escrow and replicated slashing rules
the-code-learner Aug 19, 2026
a95168c
gofmt compute consensus settlement rules
the-code-learner Aug 19, 2026
67c1bc1
gofmt compute protocol object tests
the-code-learner Aug 19, 2026
6b8950a
add deterministic metered Zephyr Script contract runtime
the-code-learner Aug 19, 2026
7554803
add authenticated Reed-Solomon data availability coding
the-code-learner Aug 19, 2026
a2bc27f
add network-scoped libp2p QUIC transport for v2
the-code-learner Aug 19, 2026
699289b
lock Zephyr v2 Go dependencies
the-code-learner Aug 19, 2026
32dc189
remove hand-materialized dependency checksum lock
the-code-learner Aug 19, 2026
d8ca7bc
temporarily automate exact v2 Go dependency lock
the-code-learner Aug 19, 2026
77e98db
lock exact Zephyr v2 Go dependency graph
github-actions[bot] Aug 19, 2026
ae305ae
integrate metered contract deploy and call into v2 execution
the-code-learner Aug 19, 2026
f313ea3
allow parallel contract calls with shared read-only state
the-code-learner Aug 19, 2026
2625372
keep contract metering guard runtime-agnostic
the-code-learner Aug 19, 2026
2330728
preserve contract runtime sentinel errors
the-code-learner Aug 19, 2026
9f11d08
integrate compute escrow and cross-shard job lifecycle into v2 execution
the-code-learner Aug 19, 2026
2fa4d79
prove cross-shard compute escrow lifecycle end to end
the-code-learner Aug 19, 2026
12579d0
add shard-scoped GossipSub dissemination for v2
the-code-learner Aug 19, 2026
9405a53
test network and shard scoped gossip topics
the-code-learner Aug 19, 2026
e2f66ff
lock exact Zephyr v2 Go dependency graph
github-actions[bot] Aug 19, 2026
50140df
add self-verifying Citizen Node wallet panel
the-code-learner Aug 19, 2026
bfa3af4
mount Citizen Node verification panel in wallet
the-code-learner Aug 19, 2026
16faa80
add dedicated compute provider stream protocol
the-code-learner Aug 19, 2026
d4f08c8
add safe content-addressed compute provider service
the-code-learner Aug 19, 2026
1736fe7
add atomic content-addressed provider store
the-code-learner Aug 19, 2026
b959177
test safe content-addressed compute provider execution
the-code-learner Aug 19, 2026
87706e8
add Zephyr v2 compute provider daemon
the-code-learner Aug 19, 2026
d66afba
gate data availability withholding and corruption in v2 lab
the-code-learner Aug 19, 2026
53862d9
add native Citizen trust-anchor object bundle verifier
the-code-learner Aug 19, 2026
0955611
temporarily automate exact v2 Go formatting
the-code-learner Aug 19, 2026
60b40ec
gofmt Zephyr v2 compute and provider files
github-actions[bot] Aug 19, 2026
6504aa0
add gomobile-friendly Citizen Node core
the-code-learner Aug 19, 2026
c53d198
test mobile Citizen trust and resource policy
the-code-learner Aug 19, 2026
2257618
preserve uint64 validator power across Citizen JSON boundary
the-code-learner Aug 19, 2026
0d44d03
add strict human-readable v2 genesis JSON loader
the-code-learner Aug 19, 2026
159e66a
add deterministic idempotent v2 genesis state seeding
the-code-learner Aug 19, 2026
a613a90
strictly reject trailing v2 genesis JSON
the-code-learner Aug 19, 2026
ed87313
add canonical validator-set wire format for v2 network sync
the-code-learner Aug 19, 2026
5543cb8
add canonical block proposal and commit network wire
the-code-learner Aug 19, 2026
8cfdae8
allow runtime installation of v2 p2p handlers
the-code-learner Aug 19, 2026
08b03d3
add executable single-round v2 consensus network service
the-code-learner Aug 19, 2026
49cc52e
make v2 network consensus service state-safe and snapshot-aware
the-code-learner Aug 19, 2026
b99c571
test three-validator QUIC proposal vote and commit service
the-code-learner Aug 19, 2026
68c63c6
fix v2 QUIC consensus service test
the-code-learner Aug 19, 2026
181a5cf
fix v2 light api validator power encoding
the-code-learner Aug 19, 2026
4197b27
add normalized compute work model
the-code-learner Aug 19, 2026
8917f96
test normalized verified compute work
the-code-learner Aug 19, 2026
9700381
add shadow compute price index
the-code-learner Aug 19, 2026
07892af
test verified compute price index
the-code-learner Aug 19, 2026
753bd36
add shadow adaptive monetary controller
the-code-learner Aug 19, 2026
60bff30
test shadow adaptive monetary policy
the-code-learner Aug 19, 2026
287ea1d
add Zephyr monetary shadow simulator
the-code-learner Aug 19, 2026
318db21
document adaptive ZPH monetary policy and compute index
the-code-learner Aug 19, 2026
6793d2b
update v2 implementation status for compute economics
the-code-learner Aug 19, 2026
986642d
gofmt normalized compute work model
the-code-learner Aug 19, 2026
56bf534
gofmt normalized compute work tests
the-code-learner Aug 19, 2026
2aa758a
gofmt compute price index
the-code-learner Aug 19, 2026
8d953f0
gofmt compute price index tests
the-code-learner Aug 19, 2026
b7e6857
gofmt shadow adaptive monetary controller
the-code-learner Aug 19, 2026
e26b0d5
gofmt shadow monetary tests
the-code-learner Aug 19, 2026
c2e9f8d
gofmt monetary simulator
the-code-learner Aug 19, 2026
125caae
no-op
the-code-learner Aug 19, 2026
20ca43c
harden shadow activity arithmetic
the-code-learner Aug 19, 2026
630baf1
add deterministic v2 fee engine
the-code-learner Aug 19, 2026
555afa5
test deterministic v2 fee engine
the-code-learner Aug 19, 2026
776e04f
gofmt deterministic v2 fee engine
the-code-learner Aug 19, 2026
fe6d0d4
gofmt v2 fee engine tests
the-code-learner Aug 19, 2026
6b86a12
add native token supply policies and mutations
the-code-learner Aug 19, 2026
35b3fe4
add native token mutation operation ids
the-code-learner Aug 19, 2026
f36b51b
route native token mutation operations
the-code-learner Aug 19, 2026
3206037
enforce native token transfer policies
the-code-learner Aug 19, 2026
d67a476
execute native custom token mint and burn
the-code-learner Aug 19, 2026
1f3f7ef
test native token supply policies
the-code-learner Aug 19, 2026
c82e36d
test custom token mint burn lifecycle
the-code-learner Aug 19, 2026
ae942fa
fix custom token lifecycle test helper
the-code-learner Aug 19, 2026
1685317
allow shared read-only token policy proofs
the-code-learner Aug 19, 2026
88eb24e
test read-only token policy parallelism
the-code-learner Aug 19, 2026
5c16056
gofmt token policy parallel tests
the-code-learner Aug 19, 2026
b37dc10
guard custom token cross shard transfers
the-code-learner Aug 19, 2026
453c296
test custom token transfer policy guards
the-code-learner Aug 19, 2026
976b74b
Fix cross-shard token policy fixture
the-code-learner Aug 19, 2026
dc63ef2
Add shadow compute scarcity index
the-code-learner Aug 19, 2026
40f9b2b
Add compute feedback simulation modes
the-code-learner Aug 19, 2026
3c2df11
Test compute scarcity and feedback modes
the-code-learner Aug 19, 2026
25b0d51
Extend economics simulator with ZCSI modes
the-code-learner Aug 19, 2026
20f133d
Document ZCPI and ZCSI compute economics
the-code-learner Aug 19, 2026
8354510
Add ZCSI economics replay example
the-code-learner Aug 19, 2026
0df34bf
Format compute feedback policy
the-code-learner Aug 19, 2026
7d8a280
Format ZCSI simulator input
the-code-learner Aug 19, 2026
75a2171
Add coin creation height for velocity proofs
the-code-learner Aug 19, 2026
200557a
Stamp coin creation height during execution
the-code-learner Aug 19, 2026
36dfe30
Stamp native and token outputs with block height
the-code-learner Aug 19, 2026
9e62d11
Stamp contract fee outputs with block height
the-code-learner Aug 19, 2026
2956481
Stamp minted and burn-change coin heights
the-code-learner Aug 19, 2026
f9fc277
Add age-weighted velocity accumulator
the-code-learner Aug 19, 2026
74ffcc6
Test age-weighted velocity resistance
the-code-learner Aug 19, 2026
4ee8031
Test consensus-stamped coin creation height
the-code-learner Aug 19, 2026
2551622
Format age-weighted velocity accumulator
the-code-learner Aug 19, 2026
f896074
Add per-shard economic epoch aggregation
the-code-learner Aug 19, 2026
0189a83
Separate compute and chain utilization in epoch metrics
the-code-learner Aug 19, 2026
609fafa
Add economic epoch aggregation test scaffold
the-code-learner Aug 19, 2026
0bf979a
Test economic epoch aggregation
the-code-learner Aug 19, 2026
b7efb0d
Commit canonical epoch economic aggregate
the-code-learner Aug 19, 2026
468ff36
Add authenticated shadow monetary epoch state
the-code-learner Aug 19, 2026
136f1e1
Test authenticated shadow monetary epoch state
the-code-learner Aug 19, 2026
4dcd789
Fix monetary epoch compute fixture
the-code-learner Aug 19, 2026
3800b2a
Document authenticated economic epoch state
the-code-learner Aug 19, 2026
8221a1e
Add QC-safe shadow monetary state transition
the-code-learner Aug 19, 2026
521bfaf
Test shadow monetary transition through state root
the-code-learner Aug 19, 2026
bd2a47a
Refresh Zephyr v2 implementation status
the-code-learner Aug 19, 2026
64b7950
Update tokenomics for ZCSI and economic state
the-code-learner Aug 19, 2026
47d0ac8
Switch project license to Apache-2.0
the-code-learner Aug 19, 2026
128f3bb
Add Apache-2.0 attribution notice
the-code-learner Aug 19, 2026
ac50372
Derive verified work from settled compute state
the-code-learner Aug 19, 2026
8d67582
Test finalized compute work reconstruction
the-code-learner Aug 19, 2026
a7d5906
Verify finalized compute settlement receipts
the-code-learner Aug 19, 2026
fbcdca9
Test compute settlement receipt verification
the-code-learner Aug 19, 2026
2ae11ed
Make compute epoch accounting carry backlog across epochs
the-code-learner Aug 19, 2026
634703d
Encode cross-epoch compute backlog accounting
the-code-learner Aug 19, 2026
576f5ef
Test compute backlog flow across epochs
the-code-learner Aug 19, 2026
46e7448
Gate ZCSI on authenticated compute supply
the-code-learner Aug 19, 2026
e9a69bd
Track compute supply reliability in epoch metrics
the-code-learner Aug 19, 2026
10fcff0
Commit compute supply reliability in epoch wire
the-code-learner Aug 19, 2026
d18ba9c
Test compute supply reliability propagation
the-code-learner Aug 19, 2026
033f868
Test authenticated compute supply gate
the-code-learner Aug 19, 2026
d491519
Derive economic epochs from finalized v2 execution
the-code-learner Aug 19, 2026
39fce7b
Make finalized economics collection atomic
the-code-learner Aug 19, 2026
025c794
Test finalized economic epoch collector
the-code-learner Aug 19, 2026
756be43
Format compute settlement receipt tests
the-code-learner Aug 19, 2026
e532035
Format economic epoch accounting
the-code-learner Aug 19, 2026
9555a96
Format economic epoch wire encoding
the-code-learner Aug 19, 2026
6262259
Format finalized economics collector tests
the-code-learner Aug 19, 2026
1fad49d
Add finalized economics preview boundary
the-code-learner Aug 19, 2026
d12df18
Add previewable shadow economic epoch engine
the-code-learner Aug 19, 2026
ea5d5b8
Validate shadow epoch engine through preview inputs
the-code-learner Aug 19, 2026
8b6628d
Test shadow economic epoch preview and acceptance
the-code-learner Aug 19, 2026
ee419c3
Document finalized economic runtime pipeline
the-code-learner Aug 19, 2026
da2a6b0
Wire finalized economics preview into v2 runtime commits
the-code-learner Aug 19, 2026
2357c0a
Expose genesis-only shadow economics runtime configuration
the-code-learner Aug 19, 2026
730935b
Test finalized runtime economics integration
the-code-learner Aug 19, 2026
d22b15b
Update monetary state fixtures for compute stock-flow
the-code-learner Aug 19, 2026
60943e8
Update monetary transition fixture for compute stock-flow
the-code-learner Aug 19, 2026
21c46ea
Expose deep clone for finalized economics collector
the-code-learner Aug 19, 2026
cb8601c
Own shadow economics collector inside runtime
the-code-learner Aug 19, 2026
b83922b
Test runtime ownership of shadow economics state
the-code-learner Aug 19, 2026
f1e62e9
Expose deep clone for shadow economic epoch engine
the-code-learner Aug 19, 2026
0b69886
Finalize shadow monetary state through v2 consensus candidates
the-code-learner Aug 19, 2026
4d735c7
Expose current finalized economics epoch
the-code-learner Aug 19, 2026
05ceb4e
Configure consensus-finalized shadow economic epochs
the-code-learner Aug 19, 2026
19c9897
Test consensus-finalized shadow economic epoch scheduling
the-code-learner Aug 19, 2026
2af00e0
Document consensus-finalized shadow epoch scheduling
the-code-learner Aug 19, 2026
080e765
Rewrite README for Zephyr Protocol v2 and Apache-2.0
the-code-learner Aug 19, 2026
353ac32
Fix runtime economics ownership test precondition
the-code-learner Aug 19, 2026
fadc9dd
Commit normalized compute workload registry
the-code-learner Aug 19, 2026
1e3d604
Test deterministic workload registry commitment
the-code-learner Aug 19, 2026
39788f5
Clone normalized workload registry for runtime ownership
the-code-learner Aug 19, 2026
d48554b
Add canonical finalized economics collector checkpoint
the-code-learner Aug 19, 2026
0df81bd
Deep-copy finalized economics runtime configuration
the-code-learner Aug 19, 2026
7c32ae1
Test finalized economics collector checkpoint recovery
the-code-learner Aug 19, 2026
b59341b
Temporarily format economics checkpoint files
the-code-learner Aug 19, 2026
a9dc791
gofmt Zephyr v2 economics checkpoint files
github-actions[bot] Aug 19, 2026
0d4587b
Restore scoped v2 format workflow
the-code-learner Aug 19, 2026
46aa502
Add policy-bound shadow epoch engine checkpoint
the-code-learner Aug 19, 2026
e6952d9
Test shadow epoch engine checkpoint recovery
the-code-learner Aug 19, 2026
6ca5dce
Decode canonical economic epoch aggregates
the-code-learner Aug 19, 2026
7fd298e
Add recoverable pending shadow epoch checkpoint
the-code-learner Aug 19, 2026
1d67b6c
Test pending shadow epoch recovery
the-code-learner Aug 19, 2026
b904a75
Expose finalized economics recovery anchor
the-code-learner Aug 19, 2026
b7eb3cc
Add atomic network-bound economic runtime checkpoint
the-code-learner Aug 19, 2026
7614c61
Test economic runtime checkpoint restart and tamper rejection
the-code-learner Aug 19, 2026
9dc80a5
Temporarily format shadow epoch checkpoint test
the-code-learner Aug 19, 2026
10a7cbf
Restore scoped v2 format workflow
the-code-learner Aug 19, 2026
1d845e7
Preflight all shard commitments before state mutation
the-code-learner Aug 19, 2026
ba31250
Run all-shard commitment preflight before apply
the-code-learner Aug 19, 2026
a50f8c5
Test all-shard commit preflight safety
the-code-learner Aug 19, 2026
e31d60b
Expose v2 runtime fail-stop recovery state
the-code-learner Aug 19, 2026
5bceddc
Test fail-stop after uncertain state apply
the-code-learner Aug 19, 2026
5fe6168
Add canonical global shard commit journal format
the-code-learner Aug 19, 2026
f035cd8
Test canonical global commit journal encoding
the-code-learner Aug 19, 2026
8459fcf
Add global shard commit journal recovery
the-code-learner Aug 19, 2026
9c8bf05
Test recovery of partial and committed global shard journals
the-code-learner Aug 19, 2026
4ab5e87
Temporarily format v2 recovery and journal tranche
the-code-learner Aug 19, 2026
257d8e0
gofmt Zephyr v2 recovery and journal tranche
github-actions[bot] Aug 19, 2026
140d6bb
Test global commit journal with shadow economics recovery
the-code-learner Aug 19, 2026
c6958f5
Add one-shot recovery tranche formatter cleanup
the-code-learner Aug 19, 2026
539a134
Repair v2 global commit recovery path
the-code-learner Aug 20, 2026
059470b
Restore v2 node test helpers
the-code-learner Aug 20, 2026
500aa50
Allow certified journal restart anchoring
the-code-learner Aug 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ jobs:
- name: P-256 verification baseline
run: go test ./internal/api -run '^$' -bench '^BenchmarkLabP256TransactionVerification$' -benchtime=1s -count=1

- name: V2 finalized batch scaling sample
run: go test ./internal/v2/node -run '^$' -bench '^BenchmarkV2FinalizedBatch32$' -benchtime=1x -count=1 -timeout=120s

wallet:
name: Wallet build
runs-on: ubuntu-latest
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/v2-dependency-lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: V2 Dependency Lock

on:
pull_request:
paths:
- go.mod
- internal/v2/**
- .github/workflows/v2-dependency-lock.yml
workflow_dispatch:

permissions:
contents: read

jobs:
lock:
name: Resolve production v2 dependencies
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6

- name: Set up Go
uses: actions/setup-go@v7
with:
go-version-file: go.mod
cache: false

- name: Resolve pinned dependencies
run: |
go get go.starlark.net@5395d018f003e2a08bfbca6dcb2562acee700f62
go get github.com/tetratelabs/wazero@v1.11.0
go get github.com/klauspost/reedsolomon@latest
go get github.com/libp2p/go-libp2p@latest
go get github.com/libp2p/go-libp2p-pubsub@latest
echo '--- go.mod ---'
cat go.mod
echo '--- go.sum ---'
cat go.sum

- name: Upload dependency lock
uses: actions/upload-artifact@v4
with:
name: v2-go-dependency-lock
path: |
go.mod
go.sum
62 changes: 62 additions & 0 deletions .github/workflows/v2-format-write.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: V2 Exact Format

on:
push:
branches:
- chatgpt/protocol-v2-foundation
paths:
- internal/v2/compute/messages.go
- internal/v2/provider/service.go
- internal/v2/provider/service_test.go
- internal/v2/tx/transaction.go
- internal/v2/node/runtime.go
- internal/v2/node/commit_preflight.go
- internal/v2/node/commit_preflight_test.go
- internal/v2/node/recovery_state.go
- internal/v2/node/recovery_state_test.go
- internal/v2/node/global_commit_journal.go
- internal/v2/node/global_commit_journal_test.go
- internal/v2/node/global_commit_recovery.go
- internal/v2/node/global_commit_recovery_test.go
- internal/v2/economics/finalized_collector_checkpoint.go
- internal/v2/economics/finalized_collector_checkpoint_test.go
- internal/v2/economics/shadow_epoch_engine_checkpoint.go
- internal/v2/economics/shadow_epoch_engine_checkpoint_test.go
- internal/v2/economics/epoch_parse.go
- internal/v2/economics/shadow_epoch_pending_checkpoint.go
- internal/v2/economics/shadow_epoch_pending_checkpoint_test.go
- internal/v2/compute/work.go
- internal/v2/compute/work_test.go
- .github/workflows/v2-format-write.yml

permissions:
contents: write

jobs:
format:
if: github.repository == 'the-code-learner/Zephyr-Chain' && github.ref == 'refs/heads/chatgpt/protocol-v2-foundation'
runs-on: ubuntu-latest
steps:
- name: Checkout v2 branch
uses: actions/checkout@v6
with:
ref: chatgpt/protocol-v2-foundation
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version-file: go.mod
cache: false
- name: Format exact files
run: gofmt -w internal/v2/compute/messages.go internal/v2/provider/service.go internal/v2/provider/service_test.go internal/v2/tx/transaction.go internal/v2/node/runtime.go internal/v2/node/commit_preflight.go internal/v2/node/commit_preflight_test.go internal/v2/node/recovery_state.go internal/v2/node/recovery_state_test.go internal/v2/node/global_commit_journal.go internal/v2/node/global_commit_journal_test.go internal/v2/node/global_commit_recovery.go internal/v2/node/global_commit_recovery_test.go internal/v2/economics/finalized_collector_checkpoint.go internal/v2/economics/finalized_collector_checkpoint_test.go internal/v2/economics/shadow_epoch_engine_checkpoint.go internal/v2/economics/shadow_epoch_engine_checkpoint_test.go internal/v2/economics/epoch_parse.go internal/v2/economics/shadow_epoch_pending_checkpoint.go internal/v2/economics/shadow_epoch_pending_checkpoint_test.go internal/v2/compute/work.go internal/v2/compute/work_test.go
- name: Commit formatting if needed
run: |
if git diff --quiet; then
echo 'Formatting already exact.'
exit 0
fi
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add internal/v2/compute/messages.go internal/v2/provider/service.go internal/v2/provider/service_test.go internal/v2/tx/transaction.go internal/v2/node/runtime.go internal/v2/node/commit_preflight.go internal/v2/node/commit_preflight_test.go internal/v2/node/recovery_state.go internal/v2/node/recovery_state_test.go internal/v2/node/global_commit_journal.go internal/v2/node/global_commit_journal_test.go internal/v2/node/global_commit_recovery.go internal/v2/node/global_commit_recovery_test.go internal/v2/economics/finalized_collector_checkpoint.go internal/v2/economics/finalized_collector_checkpoint_test.go internal/v2/economics/shadow_epoch_engine_checkpoint.go internal/v2/economics/shadow_epoch_engine_checkpoint_test.go internal/v2/economics/epoch_parse.go internal/v2/economics/shadow_epoch_pending_checkpoint.go internal/v2/economics/shadow_epoch_pending_checkpoint_test.go internal/v2/compute/work.go internal/v2/compute/work_test.go
git commit -m 'gofmt Zephyr v2 recovery and journal tranche'
git push origin HEAD:chatgpt/protocol-v2-foundation
37 changes: 37 additions & 0 deletions .github/workflows/v2-lab.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: V2 Lab

on:
pull_request:
push:
branches:
- main

permissions:
contents: read

concurrency:
group: v2-lab-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
v2-lab:
name: Protocol v2 conformance
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6

- name: Set up Go
uses: actions/setup-go@v7
with:
go-version-file: go.mod
cache: false

- name: V2 seven-validator conformance
run: go test ./internal/v2/lab ./internal/v2/node ./internal/v2/consensus ./internal/v2/state ./internal/v2/worldstate -count=1 -timeout=120s

- name: V2 partition stress
run: go test ./internal/v2/lab -run '^TestV2Lab(FourThreePartitionStallsThenHeals|FiveTwoPartitionFinalizesQuorumSideAndMinorityCatchesUp)$' -count=10 -timeout=120s

- name: V2 finalized batch scaling
run: go test ./internal/v2/node -run '^$' -bench '^BenchmarkV2FinalizedBatch32$' -benchtime=1x -count=1 -timeout=120s
47 changes: 47 additions & 0 deletions .github/workflows/v2-lock-write.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: V2 Exact Dependency Lock

on:
push:
branches:
- chatgpt/protocol-v2-foundation
paths:
- go.mod
- internal/v2/contracts/**
- internal/v2/da/**
- internal/v2/network/**
- .github/workflows/v2-lock-write.yml

permissions:
contents: write

jobs:
lock:
if: github.repository == 'the-code-learner/Zephyr-Chain' && github.ref == 'refs/heads/chatgpt/protocol-v2-foundation'
runs-on: ubuntu-latest
steps:
- name: Checkout v2 branch
uses: actions/checkout@v6
with:
ref: chatgpt/protocol-v2-foundation
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v7
with:
go-version-file: go.mod
cache: false

- name: Generate exact module lock
run: go mod tidy

- name: Commit generated lock if needed
run: |
if git diff --quiet -- go.mod go.sum; then
echo 'Dependency lock already exact.'
exit 0
fi
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add go.mod go.sum
git commit -m 'lock exact Zephyr v2 Go dependency graph'
git push origin HEAD:chatgpt/protocol-v2-foundation
Loading
Loading