gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitbfd7826dbfd7826ddocs: neutral example organisation namemrebfd7826d/docs/pr-deploy-plan.md

2.4 KB

  1. # Plan: one shared PR-based deploy-init (#50 step 3)
  2. 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.
  3. ## Today
  4. `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.
  5. ## Change
  6. 1. **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.
  7. 2. **Kunibert.** Kunibert reviews the PR against hybriel/docs/HL-STANDARD.md (rule ids cited) and sets status context `kunibert`. When the repo marks Kunibert required, Merge stays off until approve + success.
  8. 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).
  9. 4. **Deploy.** `deploy-init.sh <app>` changes in three lines:
  10. - `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").
  11. - gates/boot gate/deploy unchanged.
  12. - after rc=0 no `git push`; `git -C $d merge --ff-only origin/main` keeps the local folder current.
  13. A broken merge is fixed by a new PR, never by a push to main.
  14. ## Open before the switch-on
  15. - **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.
  16. - Kunibert as **required** check per repo (today non-blocking on 9 app repos).
  17. - 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.
  18. ## Switch-on (proposal)
  19. 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

Latest commits

  • bfd7826ddocs: neutral example organisation namemre
  • 01b71c2edocs: neutral wording in missions, reports and logmre
  • 3eeea733log: 2026-11-09 PR flow plan and membersmre
  • e7c2ff1fdocs: neutral name for the apps-api reviewmre
  • 120b7abdlog: step 3 queuedmre
  • 358474bflog: P50 livemre
  • 477d7bdcMerge branch 'p50'mre
  • 00efc06fP50 reportmre
  • e3f85afblog: commit mention slipmre
  • 4d1a4cf4log: #25 numbersmre
  • 1af0a60ddocs: H25 run() correctionmre
  • eefa2dbcRepo setting: refuse direct pushes to the main branch (pre-receive over HTTPS and ssh)mre
  • 8c8ba2f1log: PR flow announcedmre
  • fa00cd35log: Kunibert pings provenmre
  • 3a68cfaclog: components decisionmre
  • 87de8e31log: Kunibert connected to 9 app reposmre
  • c22aff69log: PR-only rollout startedmre
  • 25309981log: STOP and paused workers 2026-11-08mre
  • 5286803alog: worker briefs and reports of 2026-11-08mre
  • 85c86605log: 2026-11-08 Arachne on list shapemre