gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit83f0c95383f0c953Report person approval verificationmre83f0c953/REPORT.md

5.6 KB

  1. # W52 — person approval
  2. Completed on `w52-person-approval`, based on main `55c8477`. Owners and members who may push can approve or withdraw approval for the displayed PR head. Every click rechecks the real session through the existing `mayPush` rule. New pushes make approvals stale. The owner can require people beside app contexts. All app contexts succeeding OR any listed person approving the current head permits merge; person-only and app-only settings keep their specified rules.
  3. Files: README.md, components/pull.hl, components/settings.hl, deploy.sh, lib/approvals.hl, lib/prpage.hl, lib/pulls.hl, lib/pullsync.hl, lib/statuses.hl, project.hl, tests/person-approval.mjs.
  4. Commits:
  5. ```
  6. 3ae94b8 Record browser failures and verify owned tab cleanup
  7. 54eec68 Gate person approvals and merge alternatives
  8. 12b0882 Add person approvals for pull request heads
  9. ```
  10. Tests ran to completion with `LC_ALL=C`, `HL_GC_BUDGET_MB=32`, scratch TMPDIR and explicit listeners only in 8720–8734. `bash .scratch/run-gates.sh` extracted and ran every deploy.sh GATES command, with `GITORIA_IDA_PORT=8720 GITORIA_IDA_IDENT_PORT=8721` overriding that gate's out-of-slot defaults. Logs and commands are in `.scratch/gates/` and `.scratch/run-gates.sh`.
  11. | Gate | Passed | Failed |
  12. |---|---:|---:|
  13. | person-approval | 48 | 0 |
  14. | create-api | 47 | 0 |
  15. | signin-return | 3 | 0 |
  16. | check-theme | 87 files | 0 problems |
  17. | browser | 300 | 0 |
  18. | security | 84 | 0 |
  19. | private | 158 | 0 |
  20. | ident-access-gitoria | 30 | 0 |
  21. | apps | 95 | 0 |
  22. | pull-numbers | 48 | 0 |
  23. | pull-ssh | 20 | 0 |
  24. | app-token | 42 | 0 |
  25. | reviews | 99 | 0 |
  26. | events | 52 | 0 |
  27. | pr-page | 61 | 0 |
  28. | status | 61 | 0 |
  29. | limits | 55 | 0 |
  30. | status-keyed | 13 | 0 |
  31. | member-merge | 92 | 0 |
  32. | protect-main | 41 | 0 |
  33. The counted gates total 1349 passed and 0 failed, plus the theme check. The final committed-code rerun was `GITORIA_PA_PORT=8731 GITORIA_PA_IDENT_PORT=8733 GITORIA_GATE_CHROME=8734-8734 node tests/person-approval.mjs`: 48 passed, 0 failed (`.scratch/person-approval-final.log`). The shared lisbeth Chrome verification passed 49/0 under its lock, using one plain tab on `mm.w52.localhost`; it covered settings add/remove, approval/withdrawal, reload, Back, a push while in use, refusal of the old head, and an actual merge. An earlier real-browser attempt timed out on a click; the rerun passed after exposing its local ident to that browser. Other original tabs closed externally during the first attempt; the worker closed only its own tab.
  34. Base `55c8477` proof: `.scratch/baseline-test.log` has 4 passed and 3 intentional failures: the Approve control, approvals JSON field and person-requirement handler are absent. Before screenshots: `.scratch/baseline/.scratch/person-approval-store/before-390.png` and `before-1280.png`. After screenshots: `.scratch/real-evidence/settings-390.png` and `approval-390x844.png`, `approval-800x1280.png`, `approval-1280x800.png`, `approval-1280x900.png`. All were opened and inspected: the person setting and approval name/head/time are readable, controls stay reachable, and the approval page fits the viewport. No existing controls were removed or moved.
  35. Contract note (docs/apps-api.md was not edited): every `pull` JSON now adds `approvals: [{"user":{"id":"…","name":"…"},"head":"<40 hex>","created":"<ISO UTC time>","current":true|false}]`, listing current and earlier-head person approvals for that PR. `required` keeps its app/context entries and may additionally contain `{"user":{"id":"…","name":"…"}}`. A new head makes an earlier approval's `current` false and it does not satisfy merge. With person requirements, merge succeeds if there is at least one app requirement and all app requirements are success on the head, OR at least one listed person approved that head for that PR. Person-only requires a listed person's approval; no requirements and app-only requirements behave as before. When neither alternative is met, 422 `checks_failed` preserves the existing missing app/context/state rows and adds `{"approval":{"users":[{"id":"…","name":"…"}] },"state":"missing"}`; the message names the app checks or the people's approval. No person-approval REST write route is added; `gat_` tokens confer no person action.
  36. DOCS: HL-STANDARD.md (language, central topic logic, thin faces, forms, member state and IDs), HL-PRIMER.md (hybrids, literal field shadowing and emit/session), COMPONENTS.md function routes, §9 Data and §11 Routing; existing gitoriaPrMerge/gitoriaPrResolve, gitoriaRequiredAdd/Remove and review-table shapes. The PR approvals decision was read from main's existing uncommitted DECISIONS.md; it is absent from the base commit's copy. No main-checkout files were modified.
  37. GAP: None. No framework workaround or production JavaScript was added.
  38. Cleanup: all gate servers/browsers and SSH gate containers ended. Recorded stopped PIDs: real gitoria 3659596, real ident 3658719; final gate gitoria 4020169, ident 3973324, Chrome 4023335; SSH tunnels 3395937, 3508234 and 3658326. `.scratch/process-check.json` is empty and `ss -ltnp '( sport >= :8720 and sport <= :8734 )'` has no listeners. No branch push, deployment or ticket writes were performed.
  39. Final shared-Chrome page list (third listing, `.scratch/chrome-final.json`; none belongs to this worker):
  40. - `C62E88AF766C12C44899B23565E50F0C` — HyperConductor | New thread — http://127.0.0.1:8550/inbox/new
  41. - `0A3783C86F8513415EAB350C049F0D81` — about:blank — about:blank
  42. - `E4F3F10088892ED4E4EA8305EC681D7C` — ASI Reiseunterlagen Redesign — https://claude.ai/artifact/KuuikMVUQxx3a7JLQKKVV9
  43. Open risks: the contract addition needs reviewer versioning/announcement before release; live verification was outside this non-deploy mission. No unresolved failure was found in the tested scope.

Branches

Latest commits

  • 83f0c953Report person approval verificationmre
  • 3ae94b86Record browser failures and verify owned tab cleanupmre
  • 54eec687Gate person approvals and merge alternativesmre
  • 12b08829Add person approvals for pull request headsmre
  • 55c84779Merge branch 'gp-gate-ports' into mainGitoria
  • 57af42bbREADME: point to deploy.sh for the port listmre
  • d63375d2README: gate commands with explicit portsmre
  • feeaa701|||PR gates: explicit ports only, deploy.sh passes themmre
  • 6cc1f943Merge branch 'records-1112' into mainGitoria
  • 9448c438|||PR records: LOG, missions and reports since 11-09mre
  • 6dc08a8eMerge branch 'p51-public-pr-reads' into mainGitoria
  • 7b88cfe0Type publicReaderOfRequest parameters (L10)Gitoria
  • 2a4b3dc1|||PR Anonymous reads of public repos' pulls and statusesmre
  • 21b2c141Merge branch 's25-no-session-on-login-error' into mainGitoria
  • 698458e2|||PR No session for cookieless login errors: READMEmre
  • cce7b785|||PR No session for cookieless login errorsmre
  • 678d6303Merge branch 'v59' into mainGitoria
  • 5803cf4f|||PR vendor: Hybriel set-day59 and GC budget 32 MiBmre
  • 9eff6627Merge branch 'f2-api-bugs' into mainGitoria
  • 26117255|||PR apps API: review comments on files with spaces in their namemre