Repository navigation
fix(web): show only what was verified; label actions for what they do - #6
Merged
Merged
Conversation
The trust panel and landing chip now derive refs/content/source states (verified, partial, unverified, pending, failed) from checks that actually ran: whether the SDK connection is in proof-checking trusted mode, the attested ref's folded state, and a per-repo ledger fed by the browse reader's per-object hash check and the fallback clone's sha256 pack check. Copy is network-aware and discloses the quorum-key endpoint. PR Merge is now 'Mark as merged', shown only to WRITE/MAINTAIN holders (token history), and states whether the head is already on the base branch. Close/reopen on issues and PRs are shown only to the author or token holders. Star/follow read the viewer's real initial state and surface read/write failures. The Archive button (no handler, no write path) is removed, and copy that overstated behaviour (IPFS serving, in-browser review/merge, backend routing) is corrected. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Warning Review limit reachedNext included review available in 28 minutes. View limit detailsLimit 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. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (39)
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 |
… unreadable The PR page already tells the viewer why Mark as merged is missing when the token history read fails; the issue page silently hid Close/Reopen from maintainers in the same case. Show the same kind of reason. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
PastaPastaPasta
added a commit
that referenced
this pull request
Sep 25, 2026
…ailed Review #6: the contrast scan now includes hover:/dark: variants and fails on fills it cannot resolve (Tailwind defaults, arbitrary values, tints) instead of skipping them. That found hover:bg-forge-600 behind white (3.56:1) on the primary button and the PR diff link; hover now darkens to forge-800 (7.31:1). The identity pill's avatar used hsl(h 45% 45%) behind a white initial (2.58:1 at hue 60); its lightness now steps down per hue until white clears 4.5:1, and the test checks all 360 hues. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This was referenced Sep 27, 2026
PastaPastaPasta
added a commit
that referenced
this pull request
Sep 29, 2026
Issues and PRs share one dense sequence, so the demo's PRs are #5 (approved), #6 (merged) and #7 (the review-parity draft). e2e/seed-summary.ts reads pulls {approved, merged, reviewParity} from $FORGE_SEED_SUMMARY, else forge-contracts/deployments/fixtures/devnet-<devnet>.json, lazily, and fails loudly without them. The explore jump-box case for an issue and a PR sharing a number is gone (a number is one or the other); the draft is read from its kind-14 transition. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
PastaPastaPasta
added a commit
that referenced
this pull request
Sep 30, 2026
The live vitest tests read the fixture owners from the seed summary (v2.live, chrome.live were still on moutai's identity ids). A malformed seed summary no longer breaks every spec's import: seedRepo returns null and loadSeedPulls names the file. fg5-dash skips only when the dash mirror's name does not resolve, not on a transport failure. pulls-budget opens the merged PR by its dense number from the seed summary (#6, was #2). The docs say the hosted site and the nightly follow master's workflow files, so they move to bonsia at the cut-over. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This was referenced Sep 30, 2026
Merged
This was referenced Nov 22, 2026
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.
Problem
Roadmap Phase 0, invariant 4: the UI shows only what was verified, and a button's label says what the click does. In several places forge-web claimed more than it did:
repo-rail.tsxhard-codedrefs: 'verified', packs: 'verified', and the landing page hard-coded a "verified" chip. The panel said "testnet" even on mainnet, and it did not say where the quorum keys come from, which is the one thing a trust-minimized client has to trust.mergeevent and merges no code. The fold ignores that event unless the signer holds WRITE or MAINTAIN and the head has reached the base branch.dghas an archive write.git pushalways stores packs on Platform (roadmap gap 3).What changed
Trust state comes from checks that actually ran (
lib/view/trust.ts,lib/view/content-checks.ts)evoSdkService.isTrustedrecords that the live connection is a*Trusted()connect, which proof-checks plain.query()reads (design-freeze-2 feat(mint-identity): mint funded identities on devnet moutai (PV14) #5).useSdkexposes it.onObjectcallback onBrowseReaderreportsverified | unchecked | failed. The fallback clone reports its whole-pack sha256 checks. Range fetches record the host that actually served the bytes. All of this goes into a per-repo session ledger, and the rail subscribes to it withuseSyncExternalStore.deriveTrust()is a pure function that maps the connection, the attested ref's folded state and the ledger to one of five states per link:verified | partial | unverified | pending | failed.quorums.<network>.networks.dash.org) and says plainly that whoever controls that endpoint could vouch for false data.PR controls (
lib/view/pull-actions.ts,components/repo/pull-content.tsx)readViewerHoldings/currentHoldings, which share the authz cache. A failed history read counts as unknown: the control is withheld and the page says why.PullView.headOnBaseis computed with the same historical-tips predicate the fold uses. The page and the confirm dialog say either "the head commit is already on<base>, so the mark counts now" or "push it to<base>first".Star / Follow (
hooks/use-registry-toggle.ts)star/followdocs with the newhasStarred/isFollowing, which reuse thefind_ownquery. The button offers no action until that state is known.–, not a false0.Other
/newbackend picker, the settings page and the backend badge now say that the mode is a recorded preference.git pushstores packs on Platform whatever the mode says, anddg repack/dg reseedmove them.Verification
pnpm install --frozen-lockfilepnpm typecheckpnpm lint<img>inmarkdown-view.tsx)pnpm testpnpm build(static export)New tests:
trust.test.ts: every state, headline precedence, and network/endpoint disclosure.pull-actions.test.ts: the merge/close gating for holder, author, stranger, logged-out, loading and unknown-history viewers. One end-to-end case checks that when the gate says "counts now",foldPrStatedoes merge, and that a stranger's identical event stays inert.content-checks.test.ts: the ledger.BrowseReadertest thatonObjectreports verified, failed (a lying locator) and unchecked.A manual smoke test against live testnet used the built static export and the
m1fixture, logged out:Not verified:
failed/partialpanel states were not seen in a browser; they are unit-tested only./assay|proof|sha256|verif|trust/i, theVerification statusgroup) still match the new markup.🤖 Generated with Claude Code