gitoria
All repositories: gitoria
2.7 KB
# Plan: one shared PR-based deploy-init (#50 step 3)2026-11-09, Gitoria. Status: PLAN accepted by Apollo 2026-11-09; switch-on gitoria 2026-11-12, others after one proof PR each. Flow: branch → PR → Kunibert → merge → deploy.## Today`worldapi-conductor/deploy-init.sh <app>` checks out the local HEAD in a worktree, runs boot gate + `deploy.sh` gates, deploys, and after rc=0 runs `git push` (main). With "Refuse direct pushes to the main branch" switched on, that push is refused.## Change1. **Branch + PR.** A worker commits on a branch `<topic>` and pushes it; the PR is opened by the commit subject `|||PR ` (into main). Local main is never committed to directly.2. **Kunibert.** Kunibert reviews the PR against hybriel/docs/HL-STANDARD.md (rule ids cited) and sets status context `kunibert`. App-only repos keep approve + success. The creator's recorded OR decision ([gitoria#52](https://tickets.worldapi.org/gitoria.worldapi.org/52), DECISIONS.md "PR approvals": "PR merges should not be possible without his or my approval" and "yes add the approve button for people") applies only when the owner adds person entries: all required app contexts succeeding OR any listed person approving the current head permits merge. People-only entries require a listed person's approval.3. **Merge.** The owner (caramboleyo, button on /pulls) or a member conductor with its own gtr_ user token: `POST /api/repos/<repo>/pulls/N/merge {"head":"<sha>"}` (apps-api.md §7; apps cannot merge).4. **Deploy.** `deploy-init.sh <app>` changes in three lines:- `git -C $d fetch -q origin main` and the worktree at `origin/main` (not local HEAD); refuse if local main has commits not on origin/main ("FAILED — unmerged local commits").- gates/boot gate/deploy unchanged.- after rc=0 no `git push`; `git -C $d merge --ff-only origin/main` keeps the local folder current.A broken merge is fixed by a new PR, never by a push to main.## Open before the switch-on- **Who merges (decided, his rule 2026-10-31 via Apollo 2026-11-09):** conductors merge bug fixes and utility changes themselves; caramboleyo merges features after accepting them. So every app conductor gets its own gitoria user (member of its repo, #48 member merge) and its own gtr_ token in `~/.config/<app>/gitoria-token`; features wait for his button.- Kunibert as **required** check per repo (today non-blocking on 9 app repos).- Records-only commits (LOG.md) also go through PRs once the setting is on; conductors batch them into one PR per day, or LOG.md moves out of git.## Switch-on (proposal)Per repo, in this order: deploy-init change live (works with the setting off too) → one proof PR per app merged + deployed → owner switches the setting on. Proposed date: 2026-11-12 for gitoria first, the other app repos after their conductors confirm one proof PR each.
Branches
- f1-broken-json
- f2-api-bugs
- gp-gate-ports
- heap-revert
- hl25-records
- ident-chooser-selector
- mainmain branch
- p51-public-pr-reads
- records-1112
- s25-no-session-on-login-error
- v59
- w52-person-approval
- w52b-approval-followup
- w52c-header-phone
- w53-pulls-speed-pr
- w54-repo-rename-pr
- w55-rename-org
- w56-owner-members
- w62-pr-close
- w63-force-push
- w64-org-slash
Latest commits
- 52576cb0force push: defer on a failed scan, one-to-one pairs, docs (#56)mre
- 5a7b3e68|||PR a force push keeps the same pull request (#56)mre
- cc1be2d6Merge branch 'w62-pr-close' into mainGitoria
- 6e03be0apull state: keep the resync marker until the sync ran (#56)mre
- 93bdd26cpull state: wait for a claimed row, resync when it stays busy (#56)mre
- e53d284bpull state: stop on a failed branch scan, claim the row on writes (#56)mre
- d8608224close and reopen: keep a manual close against sync (#56)mre
- ffb60746|||PR close and reopen pull requests (#56)mre
- 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