gitoria
All repositories: gitoria
8.7 KB
# W51b reportPRs no longer disappear when a later branch contains their marker commit. The pull list, its Merge button and merge execution now share the pull records' source-selection helper. A merged pull record returns 409 `conflict` with `details.reason = already_merged` even when the git list cannot place its marker.## Branch, commit and filesThe implementation commit is `c9c2b03` (`fix: preserve pull sources across containing branches`) on `w51b-pull-source`. The branch starts at current main `fc36fa2`, which contains `8312739`, `845fc0a` and the conductor's later log entries. Work was done in `/media/STORAGE/claude-scratch/gitoria/W51`. This report is committed separately as `report: W51b pull source verification`.The implementation changes only `lib/pulls.hl`, `lib/pullsync.hl`, `lib/api.hl` and `tests/member-merge.mjs`. No LOG.md or STATUS.md was edited. There was no merge, push or deployment and no access to live repositories or data.## Cause and changeThe list previously chose the first alphabetically ordered branch containing a marker, then discarded another PR if it chose the same branch. An earlier PR could therefore disappear as soon as another branch contained its commit. `mergePullNow` used that list and answered 404 when it could no longer find the PR.`pulls()` now looks up each marker's record and calls `sourceOf` from `pullsync.hl`. The shared helper prefers the recorded source while that branch still contains the marker. Otherwise it prefers a branch whose tip is the known PR head, then a descendant of that head, then a branch containing the marker. Record synchronization uses the same head-aware fallback after a source disappears. The branch-name deduplication was removed, so distinct marker commits remain distinct PRs even when they share a containing branch. Existing scan and result limits are unchanged.Both Merge buttons continue to use `mergeAndAnnounce` and `mergePullNow`; there is no second merge implementation. The API additionally checks the stored merged state before asking the git list to locate a PR. Required checks, member authorization and actual git merging are unchanged.## Regression proofThe extended member-merge gate creates PR A on branch `a`, merges it into main, then creates PR B on `z` from the updated main. An additional earlier-sorting branch `0-merged-descendant` contains B and reproduces the alphabetical collision. A must remain listed as merged with source `a`; B must retain source `z`; merging A again must return 409 `conflict` with reason `already_merged`.The open case creates PR C on `c`, advances its head beyond its marker, then creates PR D on `0-open-descendant` containing C. C must remain listed, open and mergeable with source `c`; GET must agree about its source and current head. The list button's face must merge C using C's own head as the second parent, while D remains open. A final check removes every branch containing A's marker and verifies that its merged record still gives 409 `already_merged`.The negative control used the new test with the original three implementation files from main: **76 passed, 6 failed**. It reproduced the missing merged row, wrong B source, API 404 for A, missing open C row, failed C button merge and API 404 after A's marker became unreachable from branches. The fixed implementation passed **82 checks, 0 failed**. Logs are `.scratch/w51b/member-old.log` and `.scratch/w51b/tests-member-merge.mjs.log`.## All gatesAll 18 entries in deploy.sh GATES completed with exit 0 under LC_ALL=C: **1,211 checks passed, 0 failed**, plus theme validation of **79 files, 0 problems**.| Gate | Result ||---|---|| node tests/member-merge.mjs | 82 passed, 0 failed || node tests/create-api.mjs | 47 passed, 0 failed || node tests/signin-return.mjs | 3 passed, 0 failed || node theme/check-theme.mjs . | check-theme: 79 files, 0 problems || node tests/security.mjs | 82 passed, 0 failed || node tests/private.mjs | 158 passed, 0 failed || node tests/ident-access-gitoria.mjs | 30 passed, 0 failed || node tests/apps.mjs | 95 passed, 0 failed || node tests/pull-numbers.mjs | 48 passed, 0 failed || node tests/pull-ssh.mjs | 20 passed, 0 failed || node tests/app-token.mjs | 42 passed, 0 failed || node tests/reviews.mjs | 98 passed, 0 failed || node tests/events.mjs | 52 passed, 0 failed || node tests/pr-page.mjs | 61 passed, 0 failed || node tests/status.mjs | 61 passed, 0 failed || node tests/limits.mjs | 53 passed, 0 failed || node tests/status-keyed.mjs | 13 passed, 0 failed || node tests/browser.mjs | 266 passed, 0 failed |The first browser attempt passed 54 checks and timed out opening a folder on `/code`, before reaching pull-request checks. As required by the worker rules for an overloaded host, I reran it before treating it as a bug. The fresh run passed all 266 checks with zero failures and no application or test changes. The initial log is preserved at `.scratch/w51b/tests-browser-first.log`; the successful retry is `.scratch/w51b/tests-browser.mjs.log`. Both first-attempt and final result records are retained in `.scratch/w51b/first-results.json` and `.scratch/w51b/results.json`.The gates used only ports 8720–8739, with ss checked before each gate. They used synthetic repositories and isolated ident/tickets copies. Automated headless browser gates were used under the mission's existing permission. No lisbeth Chrome tab was opened and no component layout or style was changed. The server-rendered list and actual merge faces were checked by the regression gate.## Cleanup and documentationThe gates stopped their own app, ident, tickets and browser processes. The runners and process monitors exited after the gates. Final inspection of every recorded process found no survivors; ss showed no listeners in 8720–8739, and the gate's `gitoria-sshd-w40gate` container was absent. No manual process termination was needed. Names and numeric PIDs are recorded below and in `.scratch/w51b/processes.json`; gate node PIDs are also in `.scratch/w51b/gate-pids.log`.DOCS: HL-PRIMER.md and CODE-ORDER.md were read in full during W51 and remain applicable. I used their immutable binding, hybrid, import and synchronous-call shapes, following the mission's direction to copy existing working app code. Source selection stays with pull records, and API handling remains a thin wrapper. There was no language or framework gap and no hand-written application JavaScript. Only the permitted `.mjs` gate was extended. No API contract change was needed: this fixes implementation of the existing documented `already_merged` behavior.Rough request accounting for this follow-up is 50–60 model replies, including tool continuations: about 5 for inspection/setup, 5 for implementation and regression setup, about 40 for negative control, sequential gates, the browser retry and progress updates, and about 5 for review/cleanup/reporting. Exact billing telemetry was not available. No worker was spawned.Nothing in W51b remains unimplemented. Conductor review, merge, deployment and live proof remain outside this worker's authorization.## Recorded stopped processesAll of these recorded worktree processes had exited at final inspection:- bash: 762451, 1029526.- python3: 762469, 773945, 774235, 996657, 1005356.- node-MainThread: 762481, 793624, 804826, 813813, 831102, 872407, 885124, 899095, 907565, 910471, 916394, 918484, 923060, 925690, 948417, 962267, 971238, 982338, 1005613.- ceb8e94a246ea49: 762550, 793636.- hybriel: 771203, 793974, 804894, 813875, 821722, 831129, 839145, 872516, 885169, 899160, 907587, 916495, 918493, 918620, 923122, 924328, 926074, 933345, 948426, 962275, 971299, 982404, 989355, 1005621, 1009725, 1019764.- git: 803748, 803749, 803755, 896644, 896645, 896689, 907203, 907204, 917961, 921591, 921592, 933988, 933995, 945278, 945279, 945286, 979173, 979174, 979180, 1029542.- git-remote-http: 803750, 896646, 907205, 921593, 934004, 945280, 979175.- 969b3c466e77383: 811724, 812988, 855368, 883032, 883033, 894860, 897383, 906781, 909986, 910586, 916557, 921261, 922117, 923489, 924487, 944842, 957263, 969177, 970242, 978641, 979610, 1002730, 1003066, 1015454, 1053248, 1055007.- chrome: 812238, 812307, 812391, 812393, 829470, 829481, 829506, 829508, 856007, 856017, 856044, 856046, 856728, 856742, 856775, 856777, 960394, 960404, 960428, 960430, 1015921, 1015931, 1015955, 1015957, 1016411, 1016421, 1016444, 1016469, 1018533, 1018543, 1018568, 1018570, 1035158, 1035170, 1035238, 1035248, 1037662, 1037672, 1037695, 1037697, 1044637, 1044648, 1044696, 1044710, 1053737, 1053747, 1053771, 1053773.- chrome_crashpad: 812297, 812300, 829473, 829475, 856009, 856011, 856734, 856736, 960396, 960398, 1015923, 1015925, 1016413, 1016415, 1018535, 1018537, 1035162, 1035164, 1037664, 1037666, 1044640, 1044642, 1053739, 1053741.- docker: 917445.- docker-buildx: 917482.- ssh: 917962.- firefox: 1036084.- crashhelper: 1036092.- forkserver: 1036312.
Branches
Latest commits
- fe209ffeMerge branch 'w56-owner-members' into mainGitoria
- fa0754c8|||PR repository owner transfer and members API (#55)mre
- 8862e537Merge branch 'w55-rename-org' into mainGitoria
- 014d2b7fOne immutable readers snapshot per move for the left-organization event (#53)mre
- 1859d506Decide who hears a repo left its organization by its readers before the move (#53)mre
- 499f25f2Review fixes for the Settings organization move (#53)mre
- ed3b922b|||PR move a repository into an organization in Settings (#53)mre
- 74ec2af8Merge branch 'w54-repo-rename-pr' into mainGitoria
- 9f7ce8d8Preserve rename compatibility and live page titlesmre
- c3d95b6e|||PR separate names and addresses, rename repositories in Settings (#53)mre
- ce08920dMerge branch 'w52c-header-phone' into mainGitoria
- 0bab9e46|||PR header: ident status wraps on phones instead of clippingmre
- e7af3eceMerge branch 'w52b-approval-followup' into mainGitoria
- c01e66c6|||PR approvals follow-up: live Merge after status writes, helpers (#52)mre
- 841da497Merge branch 'w53-pulls-speed-pr' into mainGitoria
- 80307ae2|||PR pulls page cache: live PR numbers, complete scans onlymre
- 69141f65|||PR pulls page: cache the git part per repo by branch tipsmre
- 155861f6Merge branch 'w52-person-approval' into mainGitoria
- b5435de8|||PR person approvals: second Kunibert round (#52)mre
- 3a8b2fb8|||PR person approvals: Kunibert review fixes (#52)mre