Repository navigation
feat(contracts): UPDATE-1, one in-place update of all three contracts, applied on sakura - #390
Merged
Merged
Conversation
Roadmap D4 (owner decision 2026-10-04). Each addition is a build.py flag (UPDATE1_FLAGS); with every one off the build reproduces the schemas sakura registered, now frozen for all three contracts in contracts/registered/, and CI validates each contract as an update of its own (--expect-update). forge-core: release.targetOid (optional, not requiredSince), config.movedTo, and a packMirror type. forge-collab: transition.closedByPr and a maintainer ban type. forge-community: profile.keyProofs, profile.bot, authorEvent kind 8 with value (the author's retarget), policy.requireCodeOwners. The rules an update cannot add are a mainnet flag set (MAINNET_FLAGS; build.py --mainnet builds a fresh registration with them): a public publish names its target, kind 8 carries a value, no plaintext movedTo beside a sealed config, public-only mirrors; consensus archive and current-epoch sealed writes are declared, not built. Documented in forge-v2.md 9.1. Sizes 17,381 / 17,633 / 17,513 B (under the 17,832 B ceiling); 77/77 variant combinations valid. The layout maps (Rust and web) know the new types. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…probe and live vectors deploy-v2.mjs --update core|collab|community|all updates each recorded contract in place, in registration order, with the recorded ids substituted. update1-probe.mjs measures the update and the per-write costs on a throwaway contract and what a reader that still holds version 1 gets (a refused read and a refused write wait: "trailing bytes ... refetch the contract"). rc1-live.mjs gains an update1 group for every addition. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
From review: - packMirror.uris take https:// (no credentials) or ipfs:// only, the logUrl pattern; no later update can add a pattern - profile.keyProofs items hold up to 1,200 characters (an RSA-3072 sshsig or an RSA-4096 OpenPGP signature) and may be empty (no proof for that key) - mainnet_mirror_public stamps a public-only vis, so the where refuses a stranger's mirror of a private repo - deploy-v2 --update settles a pending update only for the schema and version it broadcast, and stops instead of broadcasting another - rc1-live's profile cases replace an existing profile on a rerun - forge-core: packMirror and ban are optional types (absent before the update), audited by the cost audit, and ban is maintainer-only in E601 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…snapshot deploy-v2.mjs --update all took forge-core, forge-collab and forge-community to version 2 on devnet sakura (2026-10-05 05:41 UTC). The deployment record gains each update; the web app's seed snapshot now holds the version-2 contracts, so a fresh page load decodes documents written after the update without a refetch. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 58 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (25)
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. Comment |
PastaPastaPasta
added a commit
that referenced
this pull request
Oct 5, 2026
Brings #390's contract snapshot (sakura runs UPDATE-1) and the latest master; conflicts resolved keeping both sides. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
PastaPastaPasta
added a commit
that referenced
this pull request
Oct 5, 2026
Brings #390's contract snapshot (sakura runs UPDATE-1) and the latest master; conflicts resolved keeping both sides. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
PastaPastaPasta
added a commit
that referenced
this pull request
Oct 5, 2026
Brings #390's contract snapshot (sakura runs UPDATE-1) and the latest master; conflicts resolved keeping both sides. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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.
UPDATE-1 (roadmap D4, owner decision 2026-10-04) is one batched, in-place
DataContractUpdateof the three forge-v2 contracts. This PR has the schemas, the tooling, and the record of the live update on devnet sakura, with the refreshed contract snapshot. The design and the decision for each item are in dash-forge-qadesign/v5/CONTRACT-UPDATE-1.md.What the update adds
Each item is a
build.pyflag (UPDATE1_FLAGS). None of them adds a rule or index to an existing type, and none adds a required field.forge-core
release.targetOid(optional)config.movedTopackMirrorforge-collab
transition.closedByPrban(the maintainer ban list)forge-community
profile.keyProofsprofile.botauthorEventkind 8, plusvaluepolicy.requireCodeOwnersRules that an update cannot add are mainnet-only
MAINNET_FLAGS(build.py --mainnet): the public-publish target, the retarget value, a public-onlymovedTo, public-only mirrors, the consensus archive and the epoch-only sealed writes. They are documented indocs/contracts/forge-v2.md§9.1.In this PR
forge-contracts/contracts/*.jsonbuilt with UPDATE-1.contracts/registered/*.v1.jsonare the schemas sakura registered.contracts.ymlnow checks all three contracts withcontract-validate --expect-update.variants.pycovers UPDATE-1 whole and with each item left out.deploy-v2.mjs --update core|collab|community|alldoes an in-place update. It can be resumed (a pending update is recorded before the broadcast) and is idempotent.update1-probe.mjs, the fee and compatibility probe, and anupdate1group inrc1-live.mjs.deployments/devnet-sakura.jsonrecords each update, anddeployments/contracts/devnet-sakura.jsonis the version-2 snapshot that forge-web seeds.Live on sakura (2026-10-05 05:41 UTC)
Before the update, a dry run showed all three contracts on chain at version 1. Client tolerance (#367) was merged and deployed first: the live site served 555bbb6.
EfLLbz…6scu1j…6fVegR…The live vectors (
rc1-live.mjs --only update1) passed 32 of 32. Every new field and type lands, and the uniqueness, maintainer-only, author-only, https/ipfs-only and repo-must-exist refusals all hold. Per-write fees in credits:targetOidclosedByPrReads after the update:
dash://clone of forge-v2-demo works.Gates
--expect-updatereports ALLOWED v1 → v2 for all three contracts, and all vectors pass.-D warningsandcargo test --workspacepass.🤖 Generated with Claude Code