Repository navigation
docs: add a docs/ set covering the cycle pipeline, manifest format, and operations - #21
Merged
Merged
Conversation
The gated suite in test/relay.integration.test.ts had no workflow, so it could only be run from a developer's shell with three env vars set by hand — and an unset gate is indistinguishable from a pass, because every test skips. Add a workflow_dispatch-only workflow that runs it against a throwaway vault, with a gate check that fails loudly instead of reporting green on a suite that verified nothing. It is deliberately never scheduled: the submit test is state-changing and the cycle-closing workflow must stay the only thing that touches the treasury vault. Generated with Codebuff 🤖 Co-Authored-By: Codebuff <noreply@codebuff.com>
The documentation existed only as a single README; give it an entry point that fixes the reading order before the pages land. Generated with Codebuff 🤖 Co-Authored-By: Codebuff <noreply@codebuff.com>
Readers arriving at the action repo need the same framing the other two repos use — what the protocol settles and which repo does what — before they meet GitHub-specific mechanics. Name this repo as the authoritative source for the manifest format up front, since that is the part other repos depend on. Generated with Codebuff 🤖 Co-Authored-By: Codebuff <noreply@codebuff.com>
…ives in The rule that decides who gets paid was spread across the README's numbered stages and its terminology, so a reader had to assemble it. Give it one prominent statement with a worked example that includes a non-zero dust remainder, then document the stages around it: registry load, window, ingest, count, shares, tree, manifest, relay — plus the cross-repo aggregation and the oracle pre-flight that refuse to relay on a mismatch. Generated with Codebuff 🤖 Co-Authored-By: Codebuff <noreply@codebuff.com>
… contract This repo produces the manifest and every consumer has to decode it exactly, so the field-by-field shape and the leaf/tree construction belong in one reference with the string-vs-number distinction called out. The example root is computed with buildMerkleRoot() rather than hand-written, so the page cannot quietly drift from the implementation. Generated with Codebuff 🤖 Co-Authored-By: Codebuff <noreply@codebuff.com>
The operational knowledge — which variable the schedule path reads, why the pool guard exists but CYCLE_ID has none, that cycle 0 cannot run on the schedule path, and what a dry run's output should look like — was only discoverable by reading the workflow and src/index.ts. Include the caveat that the manifest commit's push is rejected on a branch whose ruleset requires a PR, since that is where the audit trail can silently stop. Generated with Codebuff 🤖 Co-Authored-By: Codebuff <noreply@codebuff.com>
…ated suite The Merkle cross-check against splitstream-core's Rust implementation is the one procedure that must run before a real relay, and it was only described in CONTRIBUTING.md's golden-fixture section. Point at it from a developer-facing page, record the 2026-09-10 verified values, and explain the gates and the new manual integration workflow — including why it stays separate from the cycle-closing workflow, which cannot be flag-gated because it must always relay. Generated with Codebuff 🤖 Co-Authored-By: Codebuff <noreply@codebuff.com>
A contributor reading only this repo's CONTRIBUTING.md will not know that the manifest format and Merkle scheme are consumed byte-for-byte elsewhere, so a "small" format tweak lands as a protocol break. Link the repo's own guide rather than duplicating it, and state who depends on this repo's output. Generated with Codebuff 🤖 Co-Authored-By: Codebuff <noreply@codebuff.com>
…ze() The page said only that oracleAccount must match the deployment, which reads like a value someone could change later. The vault exposes no setter, so the account stored on-chain is the only one that will ever accept a relayed root — say so, and point at the fix(config) history that already repointed this registry once. Generated with Codebuff 🤖 Co-Authored-By: Codebuff <noreply@codebuff.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.
This repo is the authoritative source for the distribution manifest format, its payout rule is frozen, and almost none of that was written down outside the README and source comments. This adds a
docs/set — one commit per page, all content read from the currentsrc/,schemas/,action.yml, and.github/workflows/rather than from memory.Pages
docs/SUMMARY.mddocs/introduction.mddocs/how-it-works.mddocs/manifest-reference.mddocs/for-maintainers.mdCYCLE_POOL_AMOUNT/CYCLE_ID, the pool guard and whyCYCLE_IDhas none, the registry field by field,oracleAccountmatching the deployment, and what to check in a dry run.docs/developer-guide.mddocs/contributing.mdCONTRIBUTING.md, then states that a manifest-format or Merkle change is a breaking cross-repo change.Two things worth reviewing closely:
buildMerkleRoot()for the exact entries shown, so the page cannot drift from the implementation..github/workflows/integration-check.yml. The gated suite had no CI entry point, so an unset gate and a passing run looked identical. This one isworkflow_dispatchonly, runs against a throwaway vault, and fails fast whenSOROBAN_RPC_URL,SPLITSTREAM_VAULT_CONTRACT, orORACLE_SECRET_KEYis unset.wave-cycle-close.ymlis intentionally left alone: it must always relay, so it cannot be made conditional on a flag.npm run typecheckandnpm testpass (76 passed, 3 skipped — the skipped ones are the gated testnet blocks). No source, schema, ordist/change, so the ncc bundle is untouched.The README Socials section is not in this PR — it landed after the merge, in #22.