gitoria
All repositories: gitoria
8.4 KB
# W51 reportThe apps API now implements v1.5.1. Valid user tokens on app-only routes receive 403 `app_token_required`. Missing and unknown tokens remain 401. Required checks that are not successful receive 422 `checks_failed`, with app id/name, context and state in a details list. Other existing merge refusals receive 409 `conflict` with a machine-readable reason.## Commits and filesThe implementation commit is `83f6a73` (`fix: return v1.5.1 app and merge error details`) on branch `w51-v151`, based on `b07d0e9`. It changes `lib/app-auth.hl`, `lib/api.hl`, `lib/pulls.hl`, `lib/statuses.hl`, `docs/apps-api.md` and `tests/member-merge.mjs`. This report, the LOG line and the branch's STATUS entry are committed separately as `docs: record W51 verification`.The worktree is `/media/STORAGE/claude-scratch/gitoria/W51`. Nothing was merged, pushed or deployed. No live data was accessed. The central `lib/pullmerge.hl` path remains the shared entry for the API and both Merge buttons. It already forwards the complete result, so it needed no edit.`mergePullNow` returns reasons `head_mismatch`, `already_merged`, `branch_gone`, `target_missing`, `merge_conflict`, `target_moved` and `git_error`. After update-ref fails, a reread distinguishes a changed target from a git write failure. The existing error messages and Merge button text are preserved. Missing statuses use the API state `missing`; the text continues to say `not set`, and removed apps continue to say `app removed`.## VerificationAll 18 entries in deploy.sh GATES completed with exit 0 under LC_ALL=C: 1202 checks passed, 0 failed. Theme validation additionally checked 79 files and found 0 problems. The browser gate used automated headless browsers, as explicitly allowed by this mission. No lisbeth Chrome tab was opened; no UI component or layout changed.| Gate | Result ||---|---|| 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/browser.mjs | 266 passed, 0 failed || 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/member-merge.mjs | 73 passed, 0 failed |The extended member-merge gate verifies valid user tokens on all eight app-only routes, missing/unknown user tokens on POST review and PUT status, structured missing/pending/failure check details, 409 head_mismatch, and 409 already_merged. It also retains the original member reads, pagination, permissions, actual git merge, event sender, button and member-removal checks. The existing status gate verifies text preservation, a changed head, removed apps and persisted settings after restart.Negative control: the extended member-merge gate against the original four implementation files produced 59 passed and 14 failed. The updated implementation produced 73 passed and 0 failed. Logs are in `.scratch/w51/member-old.log` and `.scratch/w51/tests-member-merge.mjs.log`.The first SSH attempt was interrupted because my scratch runner assigned its HTTP and SSH listeners the same port. I stopped node PID 293521 and its saved children 293593 and 325348, removed its own `gitoria-sshd-w40gate` container, corrected the mapping, and reran with HTTP 8720 and SSH 8726. That run passed 20 checks with 0 failed; the node PID was 420706. A separate runner pause after ident access was the previous server releasing its socket; the socket was checked free before resuming. Neither pause required an application change.Every gate port was assigned inside 8720–8739 and checked with ss before starting. The final ss check found no listeners in that slot, and the gate container no longer existed. Final saved-process inspection found no survivors. Gate result records and PID records are in `.scratch/w51/results.json`, `.scratch/w51/gate-pids.log` and `.scratch/w51/processes.json`. Automated gates stopped their own app, ident, tickets and browser children; the process monitors and runners exited when the gates ended. The old-code gate node PID was 139955 and ident PID was 139964; both exited.## Contract documentationThe version line is now 1.5.1. Section 6 lists `app_token_required`, `checks_failed` and merge `conflict`. Section 7 documents the structured check details and all seven conflict reasons. Both Known deviation notes were removed, and the changelog contains `v1.5.1 2026-11-05`. The v1.5 changelog remains as historical documentation.DOCS: I read HL-PRIMER.md fully, including hybrid named fields, immutable bindings, references, imports and error handling; I read CODE-ORDER.md fully and kept the API wrapper thin and logic in its existing topic files. I copied the working shapes from the existing app as the mission explicitly directs. No framework gap or JavaScript workaround was needed. No component or Style changes required framework documentation.The required current conductor MANUAL.md path was absent; I read its archived `archive/2026-10-31/MANUAL.md` instead. The mission's explicit worktree, report location and automated-headless permission were used where they differ from older worker defaults.## Scope and request accountingNothing in a+b+c remains unimplemented. Merge, push, deployment and live verification remain for the conductor, outside this worker's authorization. Exact billing/request counts are not exposed by these tools. The session used roughly 80 model replies, including tool continuations: about 15 for reading/setup, 10 for implementation and regression setup, 45 for the complete sequential gates and waits, and 10 for cleanup/reporting. This exceeded the approximate 60-request guideline because all 18 required gates, old-code proof and the corrected SSH run were completed while keeping progress updates within one minute. No worker was spawned.## Recorded stopped processesThe following names and PIDs were recorded by the worktree process monitor. All had exited by final inspection; the three manually terminated PIDs are identified above. Early gate node PIDs are also recorded in gate-pids.log.- bash: 153471, 207716, 225760, 245837, 420627.- python3: 161106, 207456, 283143, 283472, 420705, 420966.- node-MainThread: 185066, 251193, 259652, 268755, 283705, 291314, 293521, 326019, 335493, 338236, 358412, 369279, 377769, 388519, 409262, 420706.- 86a28a7981314d9: 185074.- d4410e2f6bb6c62: 191869.- hybriel: 203837, 213721, 251230, 259715, 267662, 268763, 283727, 292849, 326325, 335502, 336813, 338253, 338706, 358428, 369338, 377777, 385351, 388540, 395046, 409288.- sleep: 207731, 225776, 245860.- chrome: 209702, 209712, 209737, 209739, 210169, 210179, 210203, 210205, 212346, 212356, 212382, 212384, 230074, 230084, 230110, 230112, 232739, 232749, 232772, 232775, 240561, 240571, 240595, 240608, 249529, 249539, 249564, 249566, 367584, 367603, 367629, 367650.- chrome_crashpad: 209704, 209706, 210171, 210173, 212348, 212350, 230076, 230078, 232741, 232743, 240563, 240565, 249531, 249533, 367595, 367597.- firefox: 231020.- crashhelper: 231032.- forkserver: 231200.- 969b3c466e77383: 249073, 250748, 258312, 258313, 266470, 268059, 276651, 290432, 291587, 293593, 332904, 335654, 337115, 337411, 345122, 355193, 364809, 375970, 376885, 384514, 385538, 408451, 415905, 420719.- tail: 263120.- git: 277015, 277016, 336217, 336218, 336224, 336230, 345973, 345974, 416497, 416498, 416504, 422217.- git-remote-http: 277017, 336219, 345975, 416499.- sh: 294475, 295783, 297019, 298243, 299522, 300764, 302033, 303349, 304627, 306131, 307408, 308688, 310069, 311345, 312600, 313839, 315135, 316425, 317664, 319022, 320264, 321549, 322866, 324012, 325348.- ssh-keyscan: 294480, 295784, 297020, 298244, 299523, 300765, 302034, 303350, 304631, 306132, 307409, 308689, 310070, 311347, 312601, 313840, 315136, 316426, 317665, 319023, 320265, 321550, 322867, 324015, 325349.- grep: 294481, 295785, 297021, 298245, 299524, 300766, 302035, 303351, 304633, 306133, 307410, 308690, 310071, 311348, 312602, 313841, 315137, 316427, 317666, 319024, 320266, 321551, 322868, 324016, 325350.- ssh: 422218.
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