gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit4d1a4cf44d1a4cf4log: #25 numbersmre4d1a4cf4/missions/P50-protect-main.md

2.3 KB

  1. # P50 — repo setting "refuse direct pushes to the main branch" (gitoria#50)
  2. Task line (his words, relayed by Apollo): "proceed as you see fit" — on making all app repos PR-only with a Kunibert review.
  3. Ticket: https://tickets.worldapi.org/gitoria.worldapi.org/50 (read it).
  4. ## Read first
  5. - /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md (fully)
  6. - /media/STORAGE/projects/hybriel/docs/HL-PRIMER.md, docs/CODE-ORDER.md; COMPONENTS.md sections for forms/checkboxes as used in components/settings.hl. Copy working shapes; a framework gap → a DOCS line in the report, no workaround, no hand-written JS.
  7. - README.md (settings, transport, post-receive, merge), docs/git-backend.md.
  8. ## Build
  9. - A per-repo owner setting in Settings: "Refuse direct pushes to the main branch" (main branch = the repo's PR target setting, else `main`). DEFAULT OFF; existing repos unchanged.
  10. - When on: a push (HTTPS and SSH) that updates or deletes that branch is refused with a clear one-line message naming the PR way (push a branch with a `|||PR ` commit, merge on /pulls). Other branches, tags and the creation of the branch in an empty repo stay allowed (decide and state which).
  11. - Merges done by gitoria itself (Merge button, merge API) must still work: they are not pushes.
  12. - Find where a push is accepted (pre-receive / receive-pack path / sshd guard) and enforce it in the server, not in the UI.
  13. - Show the state on the repo page or /pulls only if it costs a line; no new design.
  14. - README: one short entry. docs/apps-api.md: only if the pull/repo JSON changes (prefer no change).
  15. ## Prove
  16. - New test (tests/…mjs, join the GATES list in deploy.sh): setting off → direct push to main works; on → refused over HTTPS and over SSH with the message; branch push + |||PR + merge via API works while on; only the owner can change the setting (403 otherwise).
  17. - All gates `LC_ALL=C`: node theme/check-theme.mjs ., node tests/browser.mjs, plus the GATES list. Ports only from 8720–8739 (check `ss -ltn`).
  18. ## Limits
  19. - Worktree ../gitoria-P50 (branch p50) from main. Commit there; no push to the remote, no deploy, no merge into main. No "#N" in commit subjects.
  20. - No test data in his repos. Stop when done.
  21. - Report: reports/P50-REPORT.md in the worktree (what changed, file:line, test counts, gate results, DOCS lines). Then stop.

Branches

Latest commits

  • 4d1a4cf4log: #25 numbersmre
  • 1af0a60ddocs: H25 run() correctionmre
  • 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
  • cb634512log: 2026-11-08 keyed lists livemre
  • 07c98d4aLists: keyed rows with @id, remove(id) and one whole-list assignment instead of hand-rebuilt loopsmre
  • 0db0d81elog: 2026-11-08 day52 live, W30 startedmre
  • b05f6d92tests/status: the gate's 3 s app token expired during the restart; it lives 60 s like status-keyedmre
  • 1e8f4f0avendor: Hybriel set-day52 (fault-path leak fix #335, keyed rows #331)mre
  • f5f0fb7blog: 2026-11-08 day50/#29 live, H25 correction, V52 startedmre
  • dc77fb95main: offline note from __hlOnline, tick removed (#29)mre
  • 37a86d93tests/reviews: seeded fake hook's DNS failures are not server errors (flaky gate)mre
  • 07ab845bvendor: Hybriel set-day50 (run() leak fix #335)mre
  • 71b2fa4blog: hybriel#335mre