Repository navigation
feat: forge-community contract id in forge-web, forge-core, dg and forge-relay - #156
Merged
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
…rge-relay Every client learns the third contract (WIPE-PLAN 2.4): ForgeIds.community from the deployment file (forge-collab's id on a pre-split file), social and CI types routed to forge-community, key scope and wallet grants per contract with the grant sheet naming the contract a write needs, group trust requiring all three, runner keys bound to (forge-community, checkRun), monotonic checkRun reports, and the seeds writing star, beat, watch, policy and checkRun to forge-community. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
PastaPastaPasta
force-pushed
the
feat/wipe-contract-resolution
branch
from
September 29, 2026 17:54
053a540 to
3326877
Compare
PastaPastaPasta
added a commit
that referenced
this pull request
Sep 29, 2026
…munity in its fixtures #158 merged after #156 and was not rebuilt on it: DOC gained a second transition key (TS1117) and two new test fixtures lack ForgeIds.community, so wipe/beta7's typecheck fails. 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.
What
Every client learns the third contract, forge-community (WIPE-PLAN §2.4), on top of the three-contract schema (#154). Target:
wipe/beta7.Deployment ids
ForgeIds.communitycomes fromv2.forgeCommunityin the deployment file: forge-corenetwork.rs, weblib/deployments.ts,deploy-v2.mjscommunityId().communityfalls back to forge-collab's id. That is why the current moutai file behaves exactly as before.forgeCommunityrecord that is notregisteredmeans a half-finished deploy, and is not a deployment.forgeCommunitySupersededjoins the superseded-in-group set.ForgeIds::all(),contains()and atest_forge()fixture. The web gainsForgeContractKindandcontractKind().Routing
COMMUNITY_TYPESandcontractOfinlib/repo/source.ts, plus the direct call sites: stars, beats, watches and follows insocial.ts,trending.ts,writes.ts,first-write.ts,mine.ts, and thechrome.ts/discovery.tscomposites.community_contract()for star/starBeat/watch/policy/checkRun, andwebhooks.rs.Contracts.communityfor checkRun streams, webhook discovery and the relay identity's key bound.Keys and grants
KeyScope.community. A shipped wallet grants one contract per approval, so a forge-collab key does not cover forge-community on a three-contract deployment. A group-bound key covers all three.openLogin('grant', kind), captured when the sheet opens). The sheet's copy comes from that kind. The keys panel asks for the next missing grant (collab, then community).communityfailisScope, so they re-verify once.Group trust
check_pair/is_knownand webgroup-trust.tsrequire forge-community as a whole-contract member, and know it.CI
dg ci runner newbinds(forge-community, checkRun).CheckRunsreads and writes community.CheckReport::changesis monotonic, to match the contract:startedAtis set on the first non-queued report (the report's own time, otherwise now),completedAton completion, and nothing is ever removed.run_to_updatenever replaces a completed run, or a started run with a queued report. Those become new runs.seed_check_run.rsand the relay'sci_consumerwrite both times.Seeds (WIPE-PLAN §2.8, the split part)
seed-v2-fixture,seed-trendingandverify-c1write star, starBeat, watch, policy and checkRun to forge-community.Docs
Behaviour change to note
CI reports on a pre-split deployment:
dg ci reportno longer re-queues a started run or re-opens a completed run by--external-id; either one is now a new run. This matches forge-community's rules, but it also applies on the current moutai contracts, where forge-community is forge-collab and the rules are absent. There, a re-run that used to reset one document now creates a new one. Readers take the newest run per name, so checks show the same result.Verified offline
cargo test --workspace: green. New tests cover three-contract ids, group trust without community,run_to_updatefinal vs no-match, monotonicchanges, and a first start set without a report time.cargo clippy --workspace --all-targets: clean.cargo fmt --check: clean.tscandpnpm lintclean. New tests covercontractOfrouting,COMMUNITY_TYPESmatching the schema, three-contract key scope,nextGrant/contractKind, group trust,forgeV2Idswith community,communityId, and trending reading community.deploy-v2.mjs --self-test: ok. Seed scripts:node --check.Nothing ran against a devnet. The playwright job is red until fixtures exist on the new chain.
🤖 Generated with Claude Code