Skip to content

chore(contracts): re-register forge-v2 on moutai with the private-repo schema - #25

Merged
PastaPastaPasta merged 1 commit into
masterfrom
chore/moutai-forge-v2-reregister
Sep 26, 2026
Merged

PastaPastaPasta merged 1 commit into
masterfrom
chore/moutai-forge-v2-reregister

Conversation

@PastaPastaPasta

Copy link
Copy Markdown
Owner

What this does

The forge-v2 contracts on devnet moutai are re-registered with the schema changes that docs/security/private-repos.md §13 requires before any mainnet registration. This PR lands only the deployment record and the schemas, so every in-flight branch can rebase onto the new ids.

  • Schema changes:
    • $createdAtBlockHeight is now required on config, repoKey, refUpdate, protectedRefUpdate, packManifest, issue, patch, comment and review.
    • forge-core enc.maxItems goes from 1024 to 1536 (room for the key-committing config anchor).
  • New ids (forge-contracts/deployments/devnet-moutai.json):
    • forge-core GM7ozWV1MNuAxyMnrf4JngAyGSDickvLznGi72WMp8EL: 0.6057 DASH.
    • forge-collab GCBfP3cMdxPNyAwEQC6ppfKCDEoNS9HHyF6aBrsK7fRr: 0.5556 DASH.
    • Contract group G6T1mjQZJ4pqjaraEw71RRSbVasd7JSbgsWfmLUgNhL2.
    • The previous ids are kept under *Superseded.
  • deploy-v2.mjs --force-new without --only now supersedes the whole pair.
  • Fixtures are re-seeded: forge-v2-demo = 8H5JaQm8Z765UunuttoUuVsVMCmDoy2EBKgmGKYpdB2z, forge-v2-empty = F9puk5NBQyySFbgj9yUfubdXAVv1YV7Zk2KDvfyHzxLU.
  • crates/forge-core/src/private.rs moves to private/mod.rs. There is no content change; the crypto core that fills it lands separately.

Verified: the SDK 4.2 documents.create path fills $createdAtBlockHeight. The live re-seed created every changed type except repoKey under the new schemas.

🤖 Generated with Claude Code

… schema changes

Applies docs/security/private-repos.md §13: $createdAtBlockHeight is required on config, repoKey, refUpdate, protectedRefUpdate, packManifest, issue, patch, comment and review (anchor ordering and the late-content rule need a network-set order), and forge-core enc.maxItems rises from 1024 to 1536 for v0x02 config anchors.

A new required field is refused on update, so deploy-v2.mjs --force-new now supersedes the whole pair when forge-core's schema changed. New moutai ids: forge-core GM7ozWV1MNuAxyMnrf4JngAyGSDickvLznGi72WMp8EL, forge-collab GCBfP3cMdxPNyAwEQC6ppfKCDEoNS9HHyF6aBrsK7fRr, group G6T1mjQZJ4pqjaraEw71RRSbVasd7JSbgsWfmLUgNhL2. Fixtures re-seeded with seed-v2-fixture.mjs.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Sep 26, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 58 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 840793c5-8b8d-4f80-bb06-658387563298

📥 Commits

Reviewing files that changed from the base of the PR and between 53071dd and 26b7531.

📒 Files selected for processing (6)
  • crates/forge-core/src/private/mod.rs
  • docs/contracts/forge-v2.md
  • forge-contracts/contracts/forge-collab.json
  • forge-contracts/contracts/forge-core.json
  • forge-contracts/deployments/devnet-moutai.json
  • forge-contracts/scripts/deploy-v2.mjs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@PastaPastaPasta
PastaPastaPasta merged commit a9455d4 into master Sep 26, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant