Repository navigation
feat(web): issue/PR state from transitions, proved counts, dense numbering, upstream numbers - #158
Merged
Merged
Conversation
…ng, upstream numbers Tests not yet migrated. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…unts Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…e web branch Keeps both FG-6's imported origin and the upstream number; the mirror trust set is the provenance trust set; author events in tests use review kinds. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…mpotent transition retries, proved counts - createPatch's DraftMarkError is caught by the form (it opens the landed PR); unconfirmed draft marks say so. - writeTransition keys its intent by the action and returns without writing when the target already shows the action's outcome (a resumed browser merge finishes); one author fallback and one stale-state retry, escaped rule names matched. - Thread pages continue a >100 transition read on perTarget alone; incomplete rows keep their proved state (labels unverified, not state). - The issue index no longer seeds a feed without author events (the PR list lost head updates); open counts subtract skipped issues and are cached per index; header totals keep the L-37 floor; kind counts decode any integer width; ?upstream= reads the index to its end. - Retired TS folds and numbering removed; dead list-version counter removed. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
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 |
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
forge-web now uses the fresh beta.7 registration's transition design (WIPE-PLAN §2.5 and §2.6, web side). It builds on the rules and vectors from #155. The target is
wipe/beta7.Issue and PR state is a
transitionsetTargetStatedoes close, reopen, merge, draft and ready throughlib/repo/transitions.tswriteTransition.nextTransition).asAuthoris 0 for a member and the target's number for its author.c1…c5) it re-reads once.lib/merge/runner.ts) and "Mark as merged" record a member's merge transition.patchfollowed by the author's kind-14 transition, andpatch.draftis gone. If the draft mark fails,DraftMarkErrornames the PR that already landed. The form opens that PR instead of posting a second one.authorEventnow carries only the review kinds. The event-state writes (addAuthorEvent,stateEventRoute) and the TS event-state folds are removed.Readers
useTargetCounts): three proved requests, namely the issue total, the patch total, and onetransitioncount withkind in [1,2,11..17]+groupBy ['kind']. Totals keep the L-37 read-after-write floor. Kind keys are decoded at any integer width.targetId in [≤100],groupBy ['targetId'],summable delta) gives every row's state. Labels and assignees still fold the membereventfeed. A row whose event log is incomplete keeps its proved state and says "labels unverified".perTargetalone.transitionfeed alongsideevent. The backfill is windowed on the client, becauseperTargethas no time.Dense numbering (§2.6)
nextNumber. It iscount(issue) + count(patch) + 1, a single sequence.createNumberedwritestkand retries on a 10422 namingdense(or a duplicate).allocateNumber,readNumberTrust, the squatter probe). The mirror note's trust set is nowreadProvenanceTrust.upstreamNumber(D-2, ISS-02).?upstream=Nresolves the number through theupstreamindex, read to its end so decoys cannot hide it.#Nin text a trusted writer imported links through that route.Code review
upstreamNumbertrusts the owner and any current member (ISS-02 as specified), whiletrustedOrigin(FG-6) trusts the owner and maintainers only. I left both as specified.Tested offline
next lintclean.transitions.test.ts: the move data per role and state, author fallback, stale retry, a landed retry that writes nothing, key decoding at any width, and batches of 100.upstream.test.ts: trust and decoy-proof resolution.numbered-retry.test.ts: adenseretry, the single sequence, and a draft PR as patch + transition withDraftMarkError.v2.test.ts: the sum query per list page, the three count requests, the D-9 label, and >100 transitions.issue-index.test.ts: request budgets.inbox.test.ts: the transition feed and its window.The live checks (proofs, key encodings from a real node, consensus refusal texts, fees, reseeding the fixtures) are in
WIPE-PLAN.md§3.1.🤖 Generated with Claude Code