gitoria
All repositories: gitoria
11.6 KB
# W56 — repository and organization ownership, members and moves (#55)The extended token-only flow is implemented on `w56-owner-members`, based on `8862e5378b03bc74299109185464a0bee8791f2d`, in `/media/STORAGE/claude-scratch/gitoria/W56/wt`. The existing W56 commit is amended rather than adding a second commit. Nothing was pushed or deployed, and no live repositories or tickets were changed.The conductor accepted Settings GET remaining HTTP 200 with hidden owner controls and refused mutations, and accepted the missing old-code screenshots. Both earlier open items are closed by that explicit review ruling. The organization/API scope addition and its browser checks are implemented and verified. No requested implementation work remains open.## Changes- `lib/repos.hl` owns repository transfer, organization creation input validation, organization member-name reads, organization transfer with optional retained membership, move input validation and available organization choices. It reuses `createOrg`, `changeMember`, `renameRepo` and `moveRepo`. `renameRepo` now accepts organizations the user belongs to through `mayUseOrg`.- `lib/orgs.hl` contains the organization owner table write and recognizes the reserved organization `/settings` page when parsing repository paths. `lib/repos-helpers.hl` adds display-name `owner` to organization rows and `clone` to repository rows.- `lib/api.hl` supplies thin user-token handlers; `project.hl` maps organization creation, members, ownership and repository moves alongside the original repository member/owner APIs, including organization-repository path variants. DELETE handles encoded display names containing slash and percent without decoding the request path twice.- `components/settings.hl` keeps the repository transfer form, lists owned and member organizations as move destinations and composes organization Settings. `components/orgsettings.hl` provides the organization transfer form with labelled name/confirmation controls and “Stay a member”. `components/orglist.hl` links the owner to Settings.- `tests/owner-members.mjs` covers both the original repository feature and the extended cookie-free API/Git flow. `tests/repo-rename.mjs` updates two error-message expectations to the authorized organization-membership rule. `deploy.sh` includes the owner-members gate.- `docs/apps-api.md` documents every operation in §7 with version 1.9. This report records the handoff. LOG.md and STATUS.md are excluded from the commit and remain the conductor’s responsibility.The original transfer ruling is preserved: changing repository ownership does not override inherited organization access or other existing memberships. No deny list was added. Repository transfer removes the new owner from repository membership. Organization transfer preserves the address, title and privacy, removes the new owner from organization membership, and adds the old owner as a member when `stayMember=true`. A failed organization owner write rolls back a newly added retained membership. Repository ownership remains independent of organization ownership until explicitly transferred.Moves retain the W55 implementation for forwards, relative Git aliases, member migration, ticket notification history and private-stays-private behavior. Responses include the new clone URL.## Gate resultsLatest results for all 22 entries in deploy.sh's GATES list are green: **1,676 passed, 0 failed**, plus theme validation of **92 files with 0 problems**. All runs used LC_ALL=C and explicit ports in 8720–8739. The first extended full-suite run had two stale rename error-message assertions; both requests were correctly refused, but the expected text still said “organization you own”. After changing those assertions to “organization you belong to”, the rename gate passed 144/0. The owner gate was also strengthened and rerun at 80/0. Other gates required no rerun.Exact commands, latest results and initial retry results are in `/media/STORAGE/claude-scratch/gitoria/W56/gate-results.json` and `gate-results-before-retries.json`. Logs are `gate-00.log` through `gate-21.log`, with focused results in `gate-00-retry.log` and `gate-01-retry.log`. The initial repository-only run is preserved in `original-run/`.| Gate | Latest result ||---|---|| tests/owner-members.mjs | 80 passed, 0 failed || tests/repo-rename.mjs | 144 passed, 0 failed || tests/person-approval.mjs | 121 passed, 0 failed || tests/create-api.mjs | 47 passed, 0 failed || tests/signin-return.mjs | 3 passed, 0 failed || theme/check-theme.mjs | 92 files, 0 problems || tests/browser.mjs | 300 passed, 0 failed || tests/security.mjs | 84 passed, 0 failed || tests/private.mjs | 158 passed, 0 failed || tests/ident-access-gitoria.mjs | 30 passed, 0 failed || tests/apps.mjs | 95 passed, 0 failed || tests/pull-numbers.mjs | 72 passed, 0 failed || tests/pull-ssh.mjs | 25 passed, 0 failed || tests/app-token.mjs | 42 passed, 0 failed || tests/reviews.mjs | 99 passed, 0 failed || tests/events.mjs | 52 passed, 0 failed || tests/pr-page.mjs | 61 passed, 0 failed || tests/status.mjs | 61 passed, 0 failed || tests/limits.mjs | 55 passed, 0 failed || tests/status-keyed.mjs | 14 passed, 0 failed || tests/member-merge.mjs | 92 passed, 0 failed || tests/protect-main.mjs | 41 passed, 0 failed |The 80-check owner gate proves: API add/list/remove and push revocation; confirmation and authorization failures; private visibility; restart persistence; organization creation with owner/title/privacy; organization member management; two repository moves; old-address forwarding; real clones using the returned clone URLs; organization transfer to B with retained A membership; A and C pushing both repos; subsequent individual repository transfers to B; continued pushes by B and retained members; member-owned destination selection from a top-level repo; transfer without retained membership revoking otherwise absent access; and encoded display-name removal. All organizational flow API calls carry only a gtr_ Authorization header, with no cookie. Sessions are used only to establish throwaway users/tokens and for the separate browser proof.Regression controls also ran on isolated old-code copies. The original repository gate on base `8862e5378b03bc74299109185464a0bee8791f2d` reported 7 passed, 25 failed (`baseline.log`). The extended gate on the earlier W56 commit `01c1833f537655171f5f18b4c9c8a7affad1bc72` reported 33 passed, 11 failed (`org-baseline.log`), detecting the missing organization and move endpoints before stopping when there was no returned clone URL. Both copies were deleted after testing.## Browser proofProof ran in one plain tab at a time in the existing lisbeth Chrome under the shared lock. The organization run reports **87 passed, 0 failed**, comprising the then-current 76 API/Git checks and 11 browser assertions. The final four encoded-name API assertions were added later and passed in the 80/0 focused gate; they do not change the UI. Browser checks cover 390×844, 800×1280, 1280×800 and 1280×900, absence of the incorrect missing-repository banner, disabled submission before correct confirmation, the real checkbox, actual transfer/navigation, retained membership, and a second Settings visit without owner controls.All organization screenshots were viewed. The labels, inputs, access explanation, checkbox and button fit without horizontal overflow. The first screenshots exposed a “No such repository” banner above organization Settings. The reserved Settings path handling was corrected and the browser proof repeated successfully. Final files are in `/media/STORAGE/claude-scratch/gitoria/W56/org-proof-evidence/`:- `org-transfer-390-844.png`- `org-transfer-800-1280.png`- `org-transfer-1280-800.png`- `org-transfer-1280-900.png`- `org-tabs-before.json` and `org-tabs-after.json`The original repository form proof exercised keyboard submission, confirmation and second-visit control visibility, with eight successful UI assertions. Its viewed screenshots and tab evidence remain in `proof-evidence/` (`transfer-390-844.png`, `transfer-800-1280.png`, `transfer-1280-800.png`, `transfer-1280-900.png`). No old-code browser screenshots were captured.The shared Chrome's final page list was rechecked over SSH after the runs and matches the original page IDs:```json[{"id": "742CF3402C5D35B01ADD8175BB525442","title": "about:blank","url": "about:blank"}]```## Review status and limitsThe conductor explicitly accepted Settings GET remaining HTTP 200 with owner controls hidden and server-face mutations refused. The conductor also accepted the missing old-code screenshots. These are no longer open requirements.The repeated A–D scope request was verified against the current branch: organization creation, owner-only organization members, confirmed organization transfer with stayMember and its Settings form, member-authorized repository moves, clone URLs, documentation and full-flow tests are present. The application and test sources are byte-identical to tested commit `8e07f089fe75c5cc78bd5381793ae8ca60bfc9a4`. The intervening `f3f4ae58f24cc7933cdae25f07862efc53b316e2` already excluded LOG.md and STATUS.md from the commit. This final amendment only aligns the report with the review ruling; no source changes required new gate or browser runs.No implementation work remains open. No live proof was attempted because this mission forbids deployment and live test data. The actual four live repositories have not been moved by this worker.DOCS: WORKER-RULES.md; archived conductor MANUAL.md (the non-archived path was absent); HL-STANDARD.md L16/L17 and F6/F7/F14/F19; HL-PRIMER.md; CODE-ORDER.md; COMPONENTS.md function-route/component guidance; CONCEPT.md; DECISIONS.md; GO34 report. Existing working forms/API handlers supplied the application shapes. The original mission, the inherited-access ruling and the explicit organization scope addition supplied task authorization. Initial ticket-history URL retrieval was unavailable through the web tool. No language/framework workaround was introduced.## Cleanup and request accountingThe gate helpers stopped their app, Ident and automated browser children. The current SSH tunnel, PID 1586103, was stopped after checking its cwd; the earlier tunnel PID 1308529 was stopped in the first phase. Final ss output contains no listeners in 8720–8739. The final /proc cwd audit found **no remaining W56 processes** (`remaining-processes.json`). Test copies and untracked throwaway gate stores were deleted while preserving tracked `.scratch/w62-repro` files. The temporary bin symlink was removed and is not committed. No manual browser cookie/session operations were used; browser sign-in was only to throwaway app hosts.Saved PID evidence from the completed focused/rename gate is also in `stopped-gate-pids.txt`:```text.scratch/person-approval-store/pids.txtgitoria 1611144ident 1608393.scratch/repo-rename-store/pids.txtgitoria 1758860ident 1753505.scratch/person-approval-store/browser-pid.txt1612229.scratch/repo-rename-store/browser-pid.txt1760617```Approximately 80 model requests were used in the first phase, exceeding the roughly 60-request guideline due to repeated full-suite tool resumptions; that was disclosed in the earlier report. The new scope used approximately 45 requests: about 5 for source inspection, 10 for implementation and focused proof, 20 for full-suite and regression waits/retries, and 10 for review, cleanup and the amended handoff. No agents were spawned.Final review follow-up: verified one commit above the mission base, no LOG.md or STATUS.md delta, and unchanged tested application/test files. Approximately four additional tool requests were used. No servers, tunnels or browser tabs were started in this follow-up.
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