Repository navigation
Refresh Syscoin documentation for PQ and zkSYS - #31
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins. |
sidhujag
left a comment
There was a problem hiding this comment.
Review: connect the engineering into the complete Syscoin thesis
Reviewed head: 4040a589d806a84cb627a2a503c47ba6b3c239e9.
Recommendation: retain the careful engineering chapters and revise the introductory synthesis before treating this as the complete explanation for people and agents. The main gap is the reasoning connecting the pieces, especially Bitcoin ↔ Syscoin reciprocity and durable funding. I did not establish a material false architectural claim in the sampled technical paths.
The intended argument is that increasingly capable economic actors need independently verifiable rights, authorization, ordering, data and settlement; the common foundation must remain practical to verify and economically supportable while execution evolves above it. Bitcoin and Syscoin have complementary roles in that argument. The docs should let a reader reconstruct it, inspect its assumptions, and identify which capabilities actually exist.
Preserve what is already strong
- AuxPoW is distinguished from Bitcoin best-chain membership and from a BTC bridge.
- Missing fresh ChainLocks is distinguished from incompatible durable locks; PoW is not presented as automatically reversing accepted finality.
- Direct PQ signing, custom signer-state obligations, overlapping roster membership and wrapper assumptions remain visible.
- Data integrity, local availability, inclusion, finality, execution validity and historical replay are separate.
- The worked Genesis trace explicitly identifies the mock Gateway proof. Keep that reproducibility.
- The cooperative example separates authorization from physical truth and policy legitimacy.
- SYS/zkSYS gas accounting is not presented as a market-price peg or redemption promise.
- The consistent human-centered illustrations, DA budget plot, Mermaid accessibility descriptions and enlargement controls are useful. More artwork alone will not supply the missing argument.
1. High priority: identify Syscoin and state the thesis before the example
Homepage lines 21–25 begins with “Who gets the last GPU hour?” Its explanatory paragraph never identifies Bitcoin's role or defines Syscoin. Nutshell lines 7–18 begins with a zkSYS payment and introduces much of the vocabulary immediately. The former what-is page now answers where an application should run.
Keep the GPU example, but precede it with:
- A plain two-sentence identity and purpose.
- Why capable humans and agents need shared, independently checkable rules.
- What Bitcoin contributes and what Syscoin adds.
- A short visible current-status summary.
- Then the transaction and disputed-reservation walkthroughs.
Suggested direction, to refine into the site's voice:
Syscoin is a Bitcoin-merge-mined blockchain with programmable settlement and data publication. Its modular design aims to let people and autonomous systems use a common record they can independently verify while applications execute and evolve on separate layers.
The following paragraph should explain the architectural ambition and the existing/candidate/testnet boundaries. A newcomer should not need to infer the definition from a component table.
2. High priority: complete the Bitcoin ↔ Syscoin economic argument
“The economic feedback loop,” lines 26–43, is currently an acyclic map from SYS/Sentry eligibility through zkSYS issuance and execution to DA/settlement. It contains neither Bitcoin nor a return path to miners. Core's merge-mining section explains the commitment mechanism, but not the reciprocal economic rationale.
Add a dedicated “Why Bitcoin and Syscoin fit together” section and figure:
- Participating Bitcoin-compatible miners reuse SHA-256 work to produce Syscoin blocks.
- Syscoin supplies its own independently validated services without making Bitcoin execute Syscoin applications.
- Useful applications consume publication, settlement and execution services.
- The applicable SYS producer rewards and fee shares can supply incremental revenue to participating mining operations.
- That additional revenue can support continued operation and participation in the shared mining ecosystem.
Use solid arrows for protocol-enforced transfers and dashed arrows for economic responses. The final step depends on demand, asset value, costs, pool economics and behavior; revenue does not automatically become additional Bitcoin hashpower or greater decentralization. Show BTC interoperability as a separate research/bridge relationship, not a consequence of AuxPoW alone.
Every arrow should answer: who supplies work, who pays, who receives value, in which asset, under which rule? Do not draw PoDA blobs as data stored on Bitcoin.
Include the base funding model
The governance guide explains proposal operations; the architecture explains zkSYS issuance. Neither gives the reader a complete account of who pays to maintain the common foundation.
Verified implementation anchors for a new funding table:
| Component | Current pinned behavior to explain |
|---|---|
| Core subsidy | Ordinary subsidy reduces by 5% per configured interval and returns zero after 50 reductions. Released Core source |
| Sentry payments | Separate minimum subsidy/seniority and fee allocation. The minimum is a network block-payment rule, not a payment to every Sentry every block. Payment calculation |
| NEVM producer issuance | Released sysgeth v5.1.0 defines 10.55 SYS and credits the configured block beneficiary. The candidate pinned in these docs retains it. This path has no declining schedule, so do not infer that all miner issuance disappears with the Core subsidy. Constant · Credit path |
| NEVM fees | Effective priority tips go to the producer; the consumed base-fee component is burned. Burning is not a payment to miners. Tip accounting |
| Public-goods funding | Proposal-governed superblock issuance, with bounded ±10% nominal-budget adjustments. Explain the actual utilization rule and distinguish available budget from money minted/spent. Constants · Adjustment |
| zkSYS | Separate capped issuance, reward eligibility, operator/service policy and Gas Tank burn. Preserve the existing distinction from SYS and the fact that burning does not refill scheduled issuance. |
Explain the tradeoff as well as the purpose: dilution and purchasing power matter; fixed token-denominated rewards do not guarantee sufficient real operating revenue. The thesis is a continuing funding design, not a demonstrated perpetual economic equilibrium.
3. High priority: connect principles to mechanisms and user powers
The human/AI chapter is thoughtful, but it asks the reader to assemble the reason this particular composition follows from the goals.
Add a compact requirement → design choice → benefit → remaining obligation map:
- Independent verification → bounded shared work and locally checkable evidence → a provider's statement is not the only evidence → show a practical operator profile.
- Rapidly growing computation → separate execution/proving → applications can evolve without every Core node re-executing their workloads → DA and settlement remain shared constraints.
- Durable authorization → explicit account policies and cryptographic migration → people can constrain delegated action → identify actual coverage and current authority.
- Long-lived infrastructure → miner/Sentry/prover funding and public-goods governance → ongoing services can be paid for → demand, dilution, concentration and accountability still matter.
- Replacement and recovery → retained data, authenticated state and deployment-specific exit/replacement rules → users can preserve useful rights after a provider leaves → demonstrate the actual available path.
At human-and-ai line 17, the speculation that money loses much of its role is unnecessary. “Even if intelligence and software labor become cheap…” carries the scarce-resource argument under prices, quotas, membership or need.
Extend the existing reservation scenario through the user's retained powers: scoped budget, expiry, revocation, operator censorship, recovery, appeal and exit. A processed revocation being honored does not establish that a sequencer must promptly include it. An archive permitting replay does not establish unilateral withdrawal. For each power, name the enforcing component, the blocker/upgrader, status, and available remedy.
Keep the broader thesis as a reasoned architectural preference. Literal exclusivity among all possible future systems and a guarantee of AI alignment are not established by these mechanisms. Readers should be able to see why this composition was chosen and what would count as evidence against it.
4. High priority for agent use: make qualifiers survive retrieval
The status page is good, and many pages disclose their scope. Preserve that. However, a detached table row, image or search excerpt can lose an introductory qualifier.
Examples:
- The Rootstock comparison row includes direct PQ ChainLocks without an adjacent candidate label.
- The homepage settlement card should identify the trace as a testnet settlement trace with a mock Gateway proof.
- Architecture figures should carry a small “design target / candidate / public testnet / mainnet” caption appropriate to their components.
Generate an agent entry point and claim/status index from the same source data as the human pages. Useful fields: claim ID, capability, network, status, observed date, source commit, deployment/verifier identity where relevant, assumptions and verification procedure. Export readable Markdown/text with canonical links. An optional llms.txt can point to it, but that filename by itself is not evidence of comprehension.
Do not maintain an independent second truth in a manually copied “AI guide.” The important property is consistent, attributable facts and relationships.
5. Medium priority: turn the corpus into synthesis and add the missing media path
Research and design sources already indexes seven essays and many dated public posts. It is a useful bibliography. It does not yet show the argument's evolution or incorporate a curated podcast/interview transcript section.
Add a source-to-argument map with: original date, design question, reasoning carried forward, superseded details, current mechanism/status, and the relevant guide.
Useful primary additions:
- Revealing the Method in the Madness: connect the ideals to one complete transaction path; label its historical Rollux/testnet passages and later update.
- April 2, 2025 Crypto Coin Show interview and timestamped transcript: 1:32–7:26 for accessible base design; 8:32–14:08 for agent authority/resource competition; 20:18 for merge-mining versus bridging; 23:07–27:15 for Bitcoin's reserve role. Transcript is auto-generated/lightly edited, so verify any exact quotation.
- June 2025 Token for Your Thoughts episode: available publisher chapters identify modularity, AI/Sentries, interoperability and long-term building. Mark show notes as show notes until a transcript has been checked.
Older essays/interviews establish intention and intellectual history. Current pinned code and deployment evidence establish current behavior. Do not silently import older bridge, token, finality, quantum or performance claims.
6. Medium priority: two precise evidence corrections
Bootstrap comparison: at comparison line 69, put the PQ migration qualification next to the comparison with Ethereum's recent checkpoint. The candidate itself requires an authenticated legacy handoff; a future bootstrap release may explicitly trust the independently verified A−1 boundary. Pinned protocol notes. Work-based header screening and migration bootstrap answer different questions; this does not make the two systems' ongoing trust requirements identical.
Benchmark provenance: DA line 47 supports “about 1.1 MiB” with a LinkedIn profile root. Replace it with the specific workload post, immutable benchmark/result, or dated source. If that is unavailable, label the size author-reported. For headline benchmark graphics, record commit, security configuration, input encoding/size, hardware, measurement definition and excluded costs. Keep the existing distinction between commitment-stage cycles, full proving, user fees and settlement latency.
7. Visual priorities
Keep the six narrative plates. Add or revise explanatory visuals in this order:
- Bitcoin ↔ Syscoin work and revenue relationship: mechanisms versus conditional economic feedback.
- One complete system map: person/agent, wallet/account authority, Edgechain, publication/proof branches, Gateway, NEVM/Core, Sentry and mining roles, Bitcoin relationship. Make the text equivalent complete.
- Evidence stages: local receipt, publication, accepted finality, proof verification, settlement effects and retained recovery inputs. Publication and proving can progress separately; do not imply a single automatic guarantee ladder.
- Who pays whom: SYS issuance, service fees, treasury expenditure, burns and separate zkSYS economics. Use a flow map unless actual numeric data supports a Sankey.
- Cryptographic scope and deployment status: what hashes/signatures/proofs protect, which wrappers and classical paths remain, and what is activated.
- Independent-operator cost envelope: preserve the DA chart and add reference hardware/network conditions when measured. Average incoming payload is not total node cost.
Use illustrations for human stakes, diagrams for mechanisms and measured charts for evidence. Give each visual one question it answers.
Suggested delivery order and acceptance checks
First: introduction + Bitcoin reciprocity + base funding.
Second: user powers + shared status/agent data + the two evidence corrections.
Third: curated media synthesis + the missing causal diagrams and benchmark records.
A reader/model seeing only these docs should answer with citations:
- What is Syscoin in two sentences, and why is it designed this way?
- What does Bitcoin contribute, and what can flow back to participating miners?
- Why does SYS have an economic role alongside BTC and zkSYS?
- Where do actual DA bytes live, and who keeps old replay inputs?
- What does a receipt establish, and what requires later evidence?
- Does AuxPoW mean Bitcoin validates Syscoin state?
- Are PQ finality, the sample proof and the BTC bridge deployed, candidate, mock/testnet or research?
- Can a user revoke, replace or exit if an operator censors them?
- Does burning zkSYS refill issuance or directly burn SYS?
- Which parts of the human/AI thesis are enforceable mechanisms, conditional economics, and normative judgments?
The objective is that a sympathetic reader and a skeptical reader can accurately retell the same argument and its assumptions.
Validation and scope
I ran a clean npm ci --ignore-scripts and npm run build using Node 24.22.3; the production build passed with the repository's strict link/anchor settings. I reviewed the introductory and architecture source, relevant operator/reference pages, visual assets and selected pinned protocol/payment paths. A browser-runtime failure prevented my own fresh desktop/mobile interaction pass; the PR author's reported browser checks are separate. This review does not claim a new end-to-end protocol security audit or an exhaustive archive of every historical post.
sidhujag
left a comment
There was a problem hiding this comment.
Follow-up review at 29c64ed
I rechecked the changes since the original review of 4040a58, including 51296f3, the synthesis and visual additions in 64f3e20 / 28eb7e1, and the final wording pass in 29c64ed.
The major requested changes are implemented in substance. The earlier structural and synthesis findings can be closed. I found no new material protocol or economic error in the reviewed delta. Two small precision/provenance edits remain below.
Closure of the previous findings
| Previous finding | Recheck result |
|---|---|
| Identity and purpose before the worked example | Closed. The homepage defines Syscoin and identifies mainnet, candidate and testnet scopes before the GPU example. In a Nutshell explains the Bitcoin relationship and the reason for the architecture before tracing a transaction. |
| Bitcoin reciprocity and durable infrastructure funding | Closed. The work and revenue diagram connects reused mining work, independently validated chains, application services and SYS receipts. The dashed return path remains conditional on the pool's use of its earnings. The funding table separates Core/Sentry payments, continuing 10.55 SYS NEVM issuance, fees, burns, governance and zkSYS economics. The governance utilization examples match the pinned rules. |
| Human/AI requirements and retained powers | Closed. The authority chapter specifies grant scope, budget and expiry; distinguishes included from censored revocation; and covers conditional guardian recovery, appeal, replay, operator replacement and exit. It connects the cooperative's needs to concrete mechanisms and their limits. |
| Human and agent retrieval that preserves status | Substantively closed. The dated claim register and generated llms.txt keep status, scope, source and verification instructions together. The generator uses the reviewed register as its source; the build prehook and CI drift check catch a stale committed export. One newly edited caption needs its real-verifier qualifier restored, as detailed below. |
| Synthesis across the source corpus | Closed for the documented, curated corpus. The continuous historical account connects wallet control and inclusion, recoverable data, infrastructure economics, Bitcoin and delegated authority over scarce resources. The dated essays and provenance-qualified interview/podcast guide support that narrative. |
| Comparison and benchmark evidence corrections | Bootstrap and source-link corrections closed. The comparison includes the authenticated legacy handoff alongside the bootstrap comparison. The DA benchmark discussion now links the specific original post and attributes the approximate workload size. Retain a compact record of unavailable reproduction details, as requested below. |
| Visual teaching sequence and operator evidence | Closed at the content/structure level. The payment introduction leads to the full system and evidence map, Bitcoin revenue/funding diagrams, authority/recovery flow, and cryptographic object/scope table. The final operator-cost discussion distinguishes modeled average/burst bandwidth, certificate size, historical synchronization and application replay; it identifies peak production hardware requirements as unmeasured. |
Why the revision now communicates the thesis
The docs now show a continuous reason for the architecture: a person needs control of an asset and a way to exercise that control; execution elsewhere introduces data and recovery requirements; independently operated verification needs an economic base; agents acting over scarce resources need explicit authority and remedies. Bitcoin–Syscoin alignment sits inside that argument.
The object/scope table also helps readers distinguish PQ finality, spending authorization, blob authentication, execution proofs and settlement verification. This makes the argument easier for both people and agents to reconstruct accurately.
Two small follow-ups
1. Preserve the real-verifier condition in the PQ figure caption.
At post-quantum.mdx:36, the final sentence unconditionally says that zkSYS's settlement verifier checks execution. The table correctly distinguishes real-proof configuration from observed Gateway batch 9,448 using a mock proof, but the caption loses that condition when quoted on its own.
Replace the caption's final sentence with:
With an enforcing real-proof verifier, zkSYS settlement checks the batch's claimed state transition.
The table and status register already explain the mock observation. This is a one-sentence scope correction.
2. Keep a concise benchmark reproduction note.
The last wording pass removed the missing-input list from data-availability.mdx:51 and the missing configuration/cost details from the small-prover result. The remaining text correctly labels guest cycles and extrapolated capacity, but the original review also asked for benchmark provenance.
A short note or expandable record is sufficient: identify the source/date, workload, measurement and known hardware, and mark the unreported commit, input fixture/transaction mix, proof/security settings, runner and cost breakdown as unavailable where applicable. Keep the H100 throughput report separate from the nine-blob cycle result.
This does not require new benchmark runs or restoring the long operator-measurement checklist.
Verification performed
- Ran
npm run buildsuccessfully at29c64ed, with the configured strict route/anchor validation. - Executed the actual export generator with its write captured in memory: exact match to the final committed export, 12 unique claim IDs, 37 absolute HTTPS links.
- Checked the added funding and governance explanations against the pinned Core/sysgeth implementations, including ordinary Core subsidy versus NEVM issuance, priority tips, base-fee burn and zkSYS accounting.
- Independently resolved
zksync-os-server v0.24.4tod22deb8a5ba6ab96296a913d34934d6af27b6909and checked the mock/real proof encoding and real-prover readiness rules.
Review limits: I could not complete a fresh rendered desktop/mobile interaction check because the available browser could not access the local preview. I also could not independently repeat the historical Tanenbaum contract calls during this recheck because the explorer/RPC requests returned HTTP 403, or reread the two X posts through retrieval. The source-level proof encoding was verified; those historical observations and the author's stated browser tests are not being represented as independently reproduced here.
Disposition: Accept the documentation direction and close the previous structural/synthesis requests. Make the two concise edits above; no further broad rewrite is needed to satisfy the earlier feedback.
sidhujag
left a comment
There was a problem hiding this comment.
Re-review at 2a8dc4c
I checked the changes since the review of 29c64ed, including the developer/agent quickstarts, mission and R&D additions, and the final mobile-homepage changes.
Both outstanding corrections are fixed. The earlier structural and synthesis closures stand. I found no new actionable blocking issue in the reviewed changes.
Outstanding items: closed
| Item | Verified resolution |
|---|---|
| Real-verifier qualification | The PQ figure caption now explicitly conditions the execution check on an enforcing real-proof verifier. The adjacent table retains the observed mock-proof scope. |
| Benchmark provenance | The expandable nine-blob benchmark record and three-GPU estimate record identify known workload/measurement/hardware information and unpublished reproduction details. The H100 throughput result remains separate. |
New additions reviewed
- Mission and current R&D: The introduction preserves the precise Syscoin definition and Bitcoin reciprocity argument while separating released services, candidate PQ finality, public Genesis testnet/mock proof, experimental account signing and bridge research. The mission-first homepage and general scarcity argument are consistent with the intended human/AI thesis.
- Concrete relay example: The homepage's 5 MiB → 288-byte Gateway message is correctly scoped: 5 MiB plus the length prefix requires three blobs, and the relay contains 192 bytes of framing/context plus three 32-byte digests. The prose explicitly says Core still carries the payload.
- Developer entry points: The new Genesis quickstart, command overview, EVM reference and SyscoinJS examples distinguish the networks, public reads, operator-restricted Gateway RPC, local unsigned construction, and wallet approval.
- Agent reference: The expanded export is generated from the same six human-readable source pages. Runnable examples accompany the status/evidence register without maintaining a second manually copied version.
Validation
npm run buildpasses at2a8dc4cwith strict route/anchor checks; the generated export is unchanged and the checkout is clean. The GitHub build check also passed.- The expanded export matches the generator output exactly: 36,164 bytes, 12 unique claim IDs, 136 absolute HTTPS Markdown links, and 10 code blocks identical to their source. All 46 unique first-party targets/fragments resolve in the built output.
- Executed the exact fictional, unsigned payment example against syscoinjs-lib 2.0.0, with network requests disabled. It produced one input, 40,000 satoshis to the recipient, 59,706 satoshis of change, and a 294-satoshi fee, as documented. This execution used Node 24.22.3.
- Checked the pinned SDK/Pali source for the package version, PSBT serialization and signing handoff. The interactive wallet approval flow was not executed.
Verification limits: Read-only Blockbook and Genesis RPC requests returned HTTP 403 from this review environment, so I do not claim a fresh successful live-endpoint run. I also did not independently repeat the rendered desktop/mobile interaction checks. The homepage mobile changes were reviewed in source and built successfully.
Disposition: The requested documentation revisions are complete from this review's content, source and build checks. No further revision request from this pass.
Where to recheck the November 19 review
The review evaluated
4040a58. The review map links to the current head,2a8dc4c. The revised introduction and design history explain how the pieces fit. The editorial pass covered the homepage and all 53 guides.Developer and agent entry points
Mission, current research, and the first reading path
Follow-up review
The follow-up review closed the structural and synthesis findings at
29c64ed. The figure now conditions the execution check on an enforcing real-proof verifier. The two expandable benchmark records give the known workload, measurement and hardware and identify the unpublished details. The H100 throughput report has its own scope. Cryptographic scope · Nine-blob measurements · Three-GPU estimateWhat changed
This branch includes the narrow Z-DAG documentation correction from #30. The wider refresh documents proposal and testnet behavior alongside current operator commands.
The DA chart now derives bandwidth and the six-hour storage budget from the count of full 2 MiB blobs per Core block. The historical nine-blob prover workload and the upstream nine-blob packing example have separate explanations. The Genesis transaction walkthrough includes the five public settlement records and a command to reproduce the V8 mock-proof identification for Gateway batch 9,448.
Verification
npm auditreported zero vulnerabilities for the locked docs dependencies after scoped build-tool overrides.